summaryrefslogtreecommitdiff
path: root/sw/source/core/doc/acmplwrd.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-08-12 11:14:54 +0000
committerOliver Bolte <obo@openoffice.org>2004-08-12 11:14:54 +0000
commit27d9dee0ce63fe9350537bfd8cef19861481536d (patch)
tree9e7f357f07af999a01bdf808c74a49d350480e9f /sw/source/core/doc/acmplwrd.cxx
parent4ac4428adf406084a59d86748688f9c7f03f96cc (diff)
INTEGRATION: CWS tune05 (1.9.210); FILE MERGED
2004/07/22 10:57:56 cmc 1.9.210.1: #i30554# unused SwAutoCompleteWord methods
Diffstat (limited to 'sw/source/core/doc/acmplwrd.cxx')
-rw-r--r--sw/source/core/doc/acmplwrd.cxx52
1 files changed, 2 insertions, 50 deletions
diff --git a/sw/source/core/doc/acmplwrd.cxx b/sw/source/core/doc/acmplwrd.cxx
index 3b69e4eca86d..eea02cbe2c08 100644
--- a/sw/source/core/doc/acmplwrd.cxx
+++ b/sw/source/core/doc/acmplwrd.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: acmplwrd.cxx,v $
*
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
*
- * last change: $Author: hr $ $Date: 2004-02-03 14:35:24 $
+ * last change: $Author: obo $ $Date: 2004-08-12 12:14:54 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -402,54 +402,6 @@ BOOL SwAutoCompleteWord::InsertWord( const String& rWord, SwDoc& rDoc )
return bRet;
}
-BOOL SwAutoCompleteWord::RemoveWord( const String& rWord )
-{
- BOOL bRet = FALSE;
- USHORT nPos;
- const StringPtr pStr = (StringPtr)&rWord;
- if( !bLockWordLst && aWordLst.Seek_Entry( pStr, &nPos ))
- {
- void* pDel = aWordLst[ nPos ];
- aWordLst.Remove(nPos);
-
- nPos = aLRULst.GetPos( pDel );
- ASSERT( USHRT_MAX != nPos, "String nicht gefunden" );
- aLRULst.Remove( nPos );
- delete (SwAutoCompleteString*)pDel;
-
- }
- return bRet;
-}
-
-BOOL SwAutoCompleteWord::SearchWord( const String& rWord, USHORT* pFndPos ) const
-{
- const StringPtr pStr = (StringPtr)&rWord;
- return aWordLst.Seek_Entry( pStr, pFndPos );
-}
-
-
-BOOL SwAutoCompleteWord::SetToTop( const String& rWord )
-{
- BOOL bRet = FALSE;
- USHORT nPos;
- const StringPtr pStr = (StringPtr)&rWord;
- if( !bLockWordLst && aWordLst.Seek_Entry( pStr, &nPos ))
- {
- bRet = TRUE;
- void* pTop = aWordLst[ nPos ];
-
- nPos = aLRULst.GetPos( pTop );
- ASSERT( USHRT_MAX != nPos, "String nicht gefunden" );
- if( nPos )
- {
- void** ppData = (void**)aLRULst.GetData();
- memmove( ppData+1, ppData, nPos * sizeof( void* ) );
- *ppData = pTop;
- }
- }
- return bRet;
-}
-
void SwAutoCompleteWord::SetMaxCount( USHORT nNewMax )
{
if( nNewMax < nMaxCount && aLRULst.Count() > nNewMax )