Hi Thomas,
Thomas Lange - Sun Germany - ham02 - Hamburg pisze:
Or to be more precisely you don't even start the grammar checking by
calling doGrammarChecking()!
That function is called by the grammar checking iterator (see file
gciterator in linguistic). That iterator is a listener to the results of
the grammar checker and when processing them will call a function to
draw the green lines.
The application (or user) is just supposed to call
startGrammarChecking(...) at that iterator whenever it thinks sth needs
to be done. The grammar checking iterator will then take care of the rest.
Please note that currently the iterator is hardcoded to call the dummy
grammar checker. (That is currently being changed.)
For the time being you need to change that part in gciterator.cxx to
create your grammar checker by using the multi service factory.
OK, this is pretty clear. Yet starting the check is not such a big issue
to me - I still don't know where the results of the check should go. Is
there API to dispatch them somewhere? I'm trying to write a skeleton of
the method that will call our checker on the paragraph but I simply
don't know what to do with the results of the check.
Compiling OOo with special code won't help me with that yet...
Regards,
Marcin
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]