|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectWeakBase
Main
public class Main
| Constructor Summary | |
|---|---|
Main(XComponentContext xCompContext)
|
|
| Method Summary | |
|---|---|
static XSingleComponentFactory |
__getComponentFactory(String sImplName)
|
static boolean |
__writeRegistryServiceInfo(XRegistryKey regKey)
|
boolean |
addLinguServiceEventListener(XLinguServiceEventListener xLinEvLis)
Add a listener that allow re-checking the document after changing the options in the configuration dialog box. |
void |
changeContext(XComponentContext xCompContext)
|
GrammarCheckingResult |
doGrammarChecking(int docID,
String paraText,
Locale locale,
int startOfSentencePos,
int suggEndOfSentencePos,
int[] aLanguagePortions,
Locale[] aLanguagePortionsLocales)
Runs the grammar checker on paragraph text. |
void |
endDocument(int oldDocID)
Called when the document check is finished. |
void |
endParagraph(int docID)
Called to clear the paragraph state. |
String |
getImplementationName()
|
Locale[] |
getLocales()
|
static String[] |
getServiceNames()
|
String[] |
getSupportedServiceNames()
|
boolean |
hasLocale(Locale locale)
|
boolean |
hasOptionsDialog()
LT has an options dialog box, so we return true. |
boolean |
isSpellChecker()
LT does not support spell-checking, so we return false. |
boolean |
removeLinguServiceEventListener(XLinguServiceEventListener xLinEvLis)
Remove a listener from the event listeners list. |
void |
resetDocument()
Inform listener (grammar checking iterator) that options have changed and the doc should be rechecked. |
void |
runOptionsDialog()
Runs LT options dialog box. |
void |
startDocument(int docID)
Called to setup the doc state via ID. |
void |
startParagraph(int docID)
Called to setup the paragraph state in a doc with some ID. |
boolean |
supportsService(String sServiceName)
|
void |
trigger(String sEvent)
|
| Methods inherited from class Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Main(XComponentContext xCompContext)
| Method Detail |
|---|
public void changeContext(XComponentContext xCompContext)
public final GrammarCheckingResult doGrammarChecking(int docID,
String paraText,
Locale locale,
int startOfSentencePos,
int suggEndOfSentencePos,
int[] aLanguagePortions,
Locale[] aLanguagePortionsLocales)
throws IllegalArgumentException
docID - int - document IDparaText - - paragraph textlocale - Locale - the text LocalestartOfSentencePos - int start of sentence positionsuggEndOfSentencePos - int end of sentence positionaLanguagePortions - - lengths of language portions with a given localeaLanguagePortionsLocales - - locales of language portions
IllegalArgumentException - (not really, LT simply returns
the GrammarCheckingResult with the values supplied)
public void endDocument(int oldDocID)
throws IllegalArgumentException
oldDocID - - the ID of the document already checked
IllegalArgumentException - in case oldDocID is not a
valid myDocID.public void endParagraph(int docID)
docID - - the ID of the document already checked
valid myDocID.public final boolean hasOptionsDialog()
public final boolean isSpellChecker()
public final void runOptionsDialog()
public final void startDocument(int docID)
throws IllegalArgumentException
docID - - the doc ID
IllegalArgumentException - in case docID is not a
valid document ID.
public void startParagraph(int docID)
throws IllegalArgumentException
docID - - the doc ID
IllegalArgumentException - in case docID is not a
valid myDocID.public final Locale[] getLocales()
public final boolean hasLocale(Locale locale)
locale - The Locale to check.
public final boolean addLinguServiceEventListener(XLinguServiceEventListener xLinEvLis)
xLinEvLis - - the listener to be added
public final boolean removeLinguServiceEventListener(XLinguServiceEventListener xLinEvLis)
xLinEvLis - - the listener to be removed
public final void resetDocument()
public String[] getSupportedServiceNames()
public static String[] getServiceNames()
public boolean supportsService(String sServiceName)
public String getImplementationName()
public static XSingleComponentFactory __getComponentFactory(String sImplName)
public static boolean __writeRegistryServiceInfo(XRegistryKey regKey)
public void trigger(String sEvent)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||