Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: star :: linguistic2 ::

unpublished interface XProofreadingIterator
Usage Restrictions
not published
Description
API for the proofreading iterator that mediates between the document and the proofreader.
Since
OOo 3.0.1

Methods' Summary
startProofreading start proofreading and automatically process the whole text  
checkSentenceAtPosition start proofreading from a given position  
resetIgnoreRules clears the list of ignored rules for each prrofreader  
isProofreading checks if the given document is currently being checked  
Methods' Details
startProofreading
void
startProofreading( [in] ::com::sun::star::uno::XInterface  xDocument,
[in] ::com::sun::star::text::XFlatParagraphIteratorProvider  xIteratorProvider )
raises( ::com::sun::star::lang::IllegalArgumentException );

Description
start proofreading and automatically process the whole text
Parameter xDoc
the text document.
Parameter xIteratorProvider
the flat paragraph iterator provider.
Throws
IllegalArgumentException when any argument is wrong.
checkSentenceAtPosition
ProofreadingResult
checkSentenceAtPosition( [in] ::com::sun::star::uno::XInterface  xDocument,
[in] ::com::sun::star::text::XFlatParagraph  xFlatParagraph,
[in] string  aText,
[in] ::com::sun::star::lang::Locale  aLocale,
[in] long  nStartOfSentencePosition,
[in] long  nSuggestedBehindEndOfSentencePosition,
[in] long  nErrorPositionInParagraph )
raises( ::com::sun::star::lang::IllegalArgumentException );

Description
start proofreading from a given position
Parameter xDoc
the document.
Parameter xStartPara
the single flat paragraph to be checked.
Parameter nErrorPosInPara
the given index.
Throws
IllegalArgumentException when any argument is wrong.
resetIgnoreRules
void
resetIgnoreRules();

Description
clears the list of ignored rules for each prrofreader
isProofreading
boolean
isProofreading( [in] ::com::sun::star::uno::XInterface  xDocument );

Description
checks if the given document is currently being checked
Parameter xDoc
the document.
Returns
if the document is currently being checked.
Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.