Methods' Details |
isSpellChecker
boolean |
isSpellChecker( |
[in] ::com::sun::star::lang::Locale |
aLocale ); |
- Description
- whether is the text checked by the spellchecker
- Returns
- true If yes,
false otherwise.
|
|
startDocument
- Description
- start checking document. This enables the grammar checker to maintain
state information about the document
- Parameter nDocId
- the Document ID.
- Throws
- IllegalArgumentException
when any argument is wrong.
|
|
startParagraph
- Description
- start checking paragraph
- Parameter nDocId
- the Document ID.
- Throws
- IllegalArgumentException
when any argument is wrong.
|
|
endParagraph
- Description
- end checking paragraph
- Parameter nDocId
- the Document ID.
- Throws
- IllegalArgumentException
when any argument is wrong.
|
|
endDocument
- Description
- end checking document
- Parameter nDocId
- the Document ID.
- Throws
- IllegalArgumentException
when any argument is wrong.
|
|
doGrammarChecking
- Description
- start checking
- Parameter nDocId
- the Document ID.
- Parameter rFlatParaText
- the flat text to be checked.
- Parameter xFlatPara
- the flat paragraph to be checked.
- Parameter aLocale
- Language used in the text.
- Parameter nStartOfSentencePos
- Start Index of the text.
- Parameter nSuggestedSentenceEndPos
- Probable end position of the text.
- Throws
- IllegalArgumentException
when any argument is wrong.
|
|
getEndOfSentencePos
long |
getEndOfSentencePos( |
[in] long |
nDocId, |
| [in] string |
aFlatParaText, |
| [in] ::com::sun::star::lang::Locale |
aLocale, |
| [in] long |
nStartOfSentencePos ) |
raises( |
::com::sun::star::lang::IllegalArgumentException ); |
- Description
- get the end position of the specific text
- Parameter nDocId
- the Document ID.
- Parameter rFlatParaText
- the text.
- Parameter aLocale
- Language used in the text.
- Parameter nStartOfSentencePos
- Start Index of the text.
- Returns
- the locale for the language identified.
If no language could be identified, the locale will be empty.
- Throws
- IllegalArgumentException
when any argument is wrong.
|
|
getStartOfSentencePos
- Description
- get the start index of the specific text
- Parameter nDocId
- the Document ID.
- Parameter rFlatParaText
- the text.
- Parameter aLocale
- Language used in the text.
- Returns
- the locale for the language identified.
If no language could be identified, the locale will be empty.
- Throws
- IllegalArgumentException
when any argument is wrong.
|
|
requiresPreviousText
boolean |
requiresPreviousText(); |
- Description
- check whether the checker needs the previous text to judge current grammar error
- Returns
- true If it needs
false otherwise.
|
|
hasCheckingDialog
boolean |
hasCheckingDialog(); |
- Description
- check whether the checker has the checking dialog
- Returns
- true If it has
false otherwise.
|
|
hasOptionsDialog
boolean |
hasOptionsDialog(); |
- Description
- check whether the checker has the options dialog
- Returns
- true If it has
false otherwise.
|
|
runCheckingDialog
- Description
- call a dialog by which users can the grammar error.
- Parameter nDocId
- the DocumentId.
- Throws
- IllegalArgumentException
when any argument is wrong.
|
|
runOptionsDialog
- Description
- call a dialog in order to display the setting options
- Parameter nDocId
- the DocumentId.
- Throws
- IllegalArgumentException
when any argument is wrong.
|
|
Copyright © 2008 Sun Microsystems, Inc.