|
||||||||||
| 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)
|
ProofreadingResult |
doProofreading(String docID,
String paraText,
Locale locale,
int startOfSentencePos,
int nSuggestedBehindEndOfSentencePosition,
PropertyValue[] props)
Runs the grammar checker on paragraph text. |
String |
getImplementationName()
|
Locale[] |
getLocales()
|
String |
getServiceDisplayName(Locale locale)
|
static String[] |
getServiceNames()
|
String[] |
getSupportedServiceNames()
|
boolean |
hasLocale(Locale locale)
|
void |
ignoreRule(String ruleId,
Locale locale)
|
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 |
resetIgnoreRules()
Called on rechecking the document - resets the ignore status for rules that was set in the spelling dialog box or in the context menu. |
void |
runOptionsDialog()
Runs LT options dialog box. |
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 final void changeContext(XComponentContext xCompContext)
public final ProofreadingResult doProofreading(String docID,
String paraText,
Locale locale,
int startOfSentencePos,
int nSuggestedBehindEndOfSentencePosition,
PropertyValue[] props)
String - docID - document IDString - paraText - paragraph textlocale - Locale - the text LocalestartOfSentencePos - start of sentence positionnSuggestedBehindEndOfSentencePosition - end of sentence positionPropertyValue - [] props - properties
IllegalArgumentException - (not really, LT simply returns the ProofreadingResult with the
values supplied)public final boolean isSpellChecker()
public final void runOptionsDialog()
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)
public void ignoreRule(String ruleId,
Locale locale)
throws IllegalArgumentException
IllegalArgumentExceptionpublic void resetIgnoreRules()
public String getServiceDisplayName(Locale locale)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||