Hi all,

I'm trying to understand the new API from the point of view of the grammar checker developer (unfortunately, the docs are written from the opposite point of view).

So far I got this (I'm using Java, so Java API names follow):

The checker should implement the XGrammarChecker interface, and define its abilities this way. OK. The checking process would be started with doGrammarChecking() method. OK. But here goes what I don't understand. Suppose I found some errors with my code, and I built the structures that describe errors (as far as I understand, I should use GrammarCheckingResult that contains a collection of SingleGrammarErrors). But what should I do with this structure? In other words, how do I make a wavy green line to appear, or supply data for a grammar checker dialog box / context menu? I haven't found any APIs that allow doing that but maybe they're generic and not for grammar-checking only.

It's not clear to me if doGrammarChecking() would be triggered automatically or not - if not, whether I should build a class that uses XFlatParagraph to iterate the document? Also I cannot see any use for document IDs in the API - what are they for? And what endDocument method should do?

Thanks for any advice on this,
Marcin

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

Reply via email to