LibreOffice
LibreOffice 5.1 SDK API Reference
Public Member Functions | List of all members
XProofreader Interface Reference

API for proofreading a text. More...

import"XProofreader.idl";

Inheritance diagram for XProofreader:
XSupportedLocales XInterface Proofreader

Public Member Functions

boolean isSpellChecker ()
 whether is the text checked by the spell checker More...
 
ProofreadingResult doProofreading ([in] string aDocumentIdentifier, [in] string aText, [in] com::sun::star::lang::Locale aLocale, [in] long nStartOfSentencePosition, [in] long nSuggestedBehindEndOfSentencePosition, [in] sequence< com::sun::star::beans::PropertyValue > aProperties) raises ( com::sun::star::lang::IllegalArgumentException )
 start checking More...
 
void ignoreRule ([in] string aRuleIdentifier, [in] com::sun::star::lang::Locale aLocale) raises ( com::sun::star::lang::IllegalArgumentException )
 disables a specific rule for a given locale. More...
 
void resetIgnoreRules ()
 sets all rules back to their default settings. More...
 
- Public Member Functions inherited from XSupportedLocales
sequence< com::sun::star::lang::LocalegetLocales ()
 
boolean hasLocale ([in] com::sun::star::lang::Locale aLocale)
 
- Public Member Functions inherited from XInterface
any queryInterface ([in] type aType)
 queries for a new interface to an existing UNO object. More...
 
void acquire ()
 increases the reference counter by one. More...
 
void release ()
 decreases the reference counter by one. More...
 

Detailed Description

API for proofreading a text.

Since
OOo 3.0.1

Member Function Documentation

ProofreadingResult doProofreading ( [in] string  aDocumentIdentifier,
[in] string  aText,
[in] com::sun::star::lang::Locale  aLocale,
[in] long  nStartOfSentencePosition,
[in] long  nSuggestedBehindEndOfSentencePosition,
[in] sequence< com::sun::star::beans::PropertyValue aProperties 
)
raises (com::sun::star::lang::IllegalArgumentException
)

start checking

Parameters
nDocIdthe Document ID.
rFlatParaTextthe flat text to be checked.
xFlatParathe flat paragraph to be checked.
aLocaleLanguage used in the text.
nStartOfSentencePosStart Index of the text.
nSuggestedSentenceEndPosProbable end position of the text.
Exceptions
IllegalArgumentExceptionwhen any argument is wrong.
void ignoreRule ( [in] string  aRuleIdentifier,
[in] com::sun::star::lang::Locale  aLocale 
)
raises (com::sun::star::lang::IllegalArgumentException
)

disables a specific rule for a given locale.

If the locale is empty the rule should be ignored for all languages.

boolean isSpellChecker ( )

whether is the text checked by the spell checker

Returns
true if it is also a spell checker
void resetIgnoreRules ( )

sets all rules back to their default settings.


The documentation for this interface was generated from the following file: