grammar check: How to get TextRange of processed paragraph

Fred Kruse f.kruse at
Fri Nov 3 13:00:48 UTC 2017


I'm working on LanguageTool an international grammar checker (java based 
extension for LibreOffice). Till now the environment of a sentences is 
checked only for the surrounding paragraph. But some rules need to check 
the whole text. To implement such a check I need to know which paragraph 
is currently checked (TextRange).

Is there a possibility to get the TextRange for the checked paragraph 
while doProofreading is processed?



More information about the LibreOffice mailing list