diff options
author | Oliver Specht <os@openoffice.org> | 2002-08-06 07:37:50 +0000 |
---|---|---|
committer | Oliver Specht <os@openoffice.org> | 2002-08-06 07:37:50 +0000 |
commit | 609e0d4b1eed0e37f9f8251b7d03b2fec96c3d26 (patch) | |
tree | b578bb681dca09a97d5868e23f8162f395309c21 /sw/inc/acmplwrd.hxx | |
parent | e7a6f5a96c19d459a2b1e945c729dfb5c23ba520 (diff) |
#96286#enable removal of auto completion words when the source document is closed
Diffstat (limited to 'sw/inc/acmplwrd.hxx')
-rw-r--r-- | sw/inc/acmplwrd.hxx | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/sw/inc/acmplwrd.hxx b/sw/inc/acmplwrd.hxx index 046c44affe91..578d81fb9040 100644 --- a/sw/inc/acmplwrd.hxx +++ b/sw/inc/acmplwrd.hxx @@ -2,9 +2,9 @@ * * $RCSfile: acmplwrd.hxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 17:14:24 $ + * last change: $Author: os $ $Date: 2002-08-06 08:37:19 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -65,18 +65,27 @@ #define _SVSTDARR_STRINGSISORTDTOR #include <svtools/svstdarr.hxx> +class SwDoc; +class SwAutoCompleteWord_Impl; +class SwAutoCompleteClient; class SwAutoCompleteWord { - SvStringsISortDtor aWordLst; + friend class SwAutoCompleteClient; + + SvStringsISortDtor aWordLst; // contains extended strings carrying source information SvPtrarr aLRULst; + + SwAutoCompleteWord_Impl* pImpl; USHORT nMaxCount, nMinWrdLen; BOOL bLockWordLst; + + void DocumentDying(const SwDoc& rDoc); public: SwAutoCompleteWord( USHORT nWords = 500, USHORT nMWrdLen = 10 ); ~SwAutoCompleteWord(); - BOOL InsertWord( const String& rWord ); + BOOL InsertWord( const String& rWord, SwDoc& rDoc ); BOOL RemoveWord( const String& rWord ); BOOL SearchWord( const String& rWord, USHORT* pFndPos = 0 ) const; |