Hi Thomas,

Thomas Lange - Sun Germany - ham02 - Hamburg pisze:
For simple Grammar checker implementation that does not use a new thread
to get the result you can look up the file grammarchecker.cxx in linguistic.

How do other parts of OOo code know they should add themselves as listeners? I implemented a simple Java method

public final boolean addGrammarCheckingResultListener(final XGrammarCheckingResultListener xListener)

but how would OOo know it should add listener to the class I'm implementing? As this method is not defined in IDL, it seems that there could be checkers that don't implement it, so how would they be used?

Or maybe this is a default behavior for a class that has a certain service name or something like that? Looking at grammarchecker.cxx doesn't really give me any hint... Or should I implement a grammar checking iterator class as well?


When I'm done with my fixes and the results got a bit of testing I can
provide you with some patches for improved overall behavior.

Actually, I'm not ready for preparing a full OOo build environment on my box, so I will wait a little :)

Regards,
Marcin

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to