diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2008-07-16 12:22:57 +0000 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2008-07-16 12:22:57 +0000 |
commit | 1e1ad0424d848f0294a4fb81dbef5118b7f36501 (patch) | |
tree | 5ec55321d4df21745c113e4d40381cabc3e1690d /sw/inc/doc.hxx | |
parent | b3655e1d96775f37e6b9221e4bcb9d79b0cac5c6 (diff) |
INTEGRATION: CWS tl55 (1.152.48); FILE MERGED
2008/07/07 15:11:34 tl 1.152.48.6: RESYNC: (1.152-1.153); FILE MERGED
2008/06/26 14:19:57 os 1.152.48.5: i85999 interactive grammar checking
2008/06/13 12:07:06 ama 1.152.48.4: Fix #i90238#: Delayed grammar check in active paragraphs
2008/06/11 09:59:28 tl 1.152.48.3: #i85999# grammar checking framework
2008/05/24 13:25:01 tl 1.152.48.2: #158047# customer specific extension
2008/05/23 14:22:44 tl 1.152.48.1: #158047# customer specific extension
Diffstat (limited to 'sw/inc/doc.hxx')
-rw-r--r-- | sw/inc/doc.hxx | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/sw/inc/doc.hxx b/sw/inc/doc.hxx index 29300d4eb3a9..0c4bb5cbfe30 100644 --- a/sw/inc/doc.hxx +++ b/sw/inc/doc.hxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: doc.hxx,v $ - * $Revision: 1.155 $ + * $Revision: 1.156 $ * * This file is part of OpenOffice.org. * @@ -106,6 +106,7 @@ class SwList; #include <svx/numitem.hxx> #include "comphelper/implementationreference.hxx" #include <com/sun/star/chart2/data/XDataProvider.hpp> +#include <com/sun/star/linguistic2/XGrammarCheckingIterator.hpp> #include <hash_map> #include <stringhash.hxx> @@ -237,6 +238,7 @@ class SwRewriter; class SwMsgPoolItem; class SwChartDataProvider; class SwChartLockController_Helper; +class IGrammarContact; namespace com { namespace sun { namespace star { @@ -262,6 +264,9 @@ SV_DECL_PTRARR_DEL( SwPageDescs, SwPageDescPtr, 4, 4 ) // forward declartion void SetAllScriptItem( SfxItemSet& rSet, const SfxPoolItem& rItem ); +// global function to start grammar checking in the document +void StartGrammarChecking( SwDoc &rDoc, SwRootFrm &rRootFrame ); + class SwDoc : public IInterface, public IDocumentSettingAccess, @@ -312,6 +317,7 @@ class SwDoc : SvStringsDtor aPatternNms; // Array fuer die Namen der Dokument-Vorlagen com::sun::star::uno::Reference<com::sun::star::container::XNameContainer> xXForms; // container with XForms models + mutable com::sun::star::uno::Reference< com::sun::star::linguistic2::XGrammarCheckingIterator > m_xGCIterator; // ------------------------------------------------------------------- // die Pointer @@ -402,6 +408,7 @@ class SwDoc : // document for a faster formatting SwUnoCallBack *pUnoCallBack; + IGrammarContact *mpGrammarContact; // for grammar checking in paragraphs during editing mutable comphelper::ImplementationReference< SwChartDataProvider , ::com::sun::star::chart2::data::XDataProvider > @@ -1133,7 +1140,7 @@ public: ::com::sun::star::uno::Any Spell( SwPaM&, ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XSpellChecker1 > &, - sal_uInt16* pPageCnt, sal_uInt16* pPageSt, + sal_uInt16* pPageCnt, sal_uInt16* pPageSt, bool bGrammarCheck, SwConversionArgs *pConvArgs = 0 ) const; ::com::sun::star::uno::Reference< @@ -1984,6 +1991,8 @@ public: // call back for API wrapper SwModify* GetUnoCallBack() const; + IGrammarContact* getGrammarContact() const { return mpGrammarContact; } + // -> #i27615# /** Marks/Unmarks a list level of a certain list @@ -2053,6 +2062,8 @@ public: com::sun::star::uno::Reference<com::sun::star::container::XNameContainer> getXForms() const; + com::sun::star::uno::Reference< com::sun::star::linguistic2::XGrammarCheckingIterator > GetGCIterator() const; + /// is this an XForms document? bool isXForms() const; |