From 9c78e819d9d69f55f70044f995c6b4d32ee4ab7d Mon Sep 17 00:00:00 2001 From: Ivo Hinkelmann Date: Wed, 16 Jul 2008 12:51:51 +0000 Subject: INTEGRATION: CWS tl55 (1.3.44); FILE MERGED 2008/06/25 05:37:55 tl 1.3.44.3: #i85999# grammar checking framework 2008/06/07 15:23:35 tl 1.3.44.2: #i85999# grammar checking framework 2008/05/27 11:17:17 tl 1.3.44.1: #i85999# improve grammar checking framework --- .../sun/star/linguistic2/GrammarCheckingResult.idl | 31 +++++++++++++++++----- 1 file changed, 24 insertions(+), 7 deletions(-) (limited to 'offapi') diff --git a/offapi/com/sun/star/linguistic2/GrammarCheckingResult.idl b/offapi/com/sun/star/linguistic2/GrammarCheckingResult.idl index 183cf53fd9b8..892dfb999adc 100644 --- a/offapi/com/sun/star/linguistic2/GrammarCheckingResult.idl +++ b/offapi/com/sun/star/linguistic2/GrammarCheckingResult.idl @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: GrammarCheckingResult.idl,v $ - * $Revision: 1.3 $ + * $Revision: 1.4 $ * * This file is part of OpenOffice.org. * @@ -42,27 +42,44 @@ #include #endif +//#ifndef __com_sun_star_linguistic2_XGrammarChecker_idl__ +//#include +//#endif + + //============================================================================= module com { module sun { module star { module linguistic2 { +// forward declaration +interface XGrammarChecker; + //============================================================================= struct GrammarCheckingResult { - //the paragraph that was checked - com::sun::star::text::XFlatParagraph xPara; + // the document ID + long nDocumentId; - //text that was checked(may have changed meanwhile!) + // the paragraph that was checked + com::sun::star::text::XFlatParagraph xFlatParagraph; + + // text that was checked (the paragraphs content may have changed meanwhile!) string aText; - //language used for checking + // language used for checking com::sun::star::lang::Locale aLocale; - // the sentence boundary + // the start of sentence position passed to the grammar checker + long nStartOfSentencePos; + + // the end of sentence position found by the grammar checker long nEndOfSentencePos; - //a list of grammar error + // the list of errors sequence< com::sun::star::linguistic2::SingleGrammarError > aGrammarErrors; + + // reference to the specific grammar checker implementation that reported the error + com::sun::star::linguistic2::XGrammarChecker xGrammarChecker; }; //============================================================================= -- cgit