diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2012-07-31 17:46:14 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2012-08-01 18:34:57 +0200 |
commit | 27ccf8d73688fe90835f9b2c978c4fc3566dd8c3 (patch) | |
tree | e9156aa7312adf68536e511296b1400754630b1b | |
parent | e0be9e6691269d305ceedc7f1d4955a7976e3dc6 (diff) |
Remove unused code: those classes are unused
So dump them
Change-Id: I7a7a37d4d6fde4afbee77cf9fadc26118dd88dc1
25 files changed, 0 insertions, 505 deletions
diff --git a/binfilter/bf_sc/source/ui/dbgui/sc_imoptdlg.cxx b/binfilter/bf_sc/source/ui/dbgui/sc_imoptdlg.cxx index f8038fd6e..04fc29d4d 100644 --- a/binfilter/bf_sc/source/ui/dbgui/sc_imoptdlg.cxx +++ b/binfilter/bf_sc/source/ui/dbgui/sc_imoptdlg.cxx @@ -26,32 +26,8 @@ #include <rtl/tencinfo.h> -static const sal_Char pStrFix[] = "FIX"; - namespace binfilter { -class ScDelimiterTable -{ -public: - ScDelimiterTable( const String& rDelTab ) - : theDelTab ( rDelTab ), - cSep ( '\t' ), - nCount ( rDelTab.GetTokenCount('\t') ), - nIter ( 0 ) - {} - - String FirstDel() { nIter = 0; return theDelTab.GetToken( nIter, cSep ); } - String NextDel() { nIter +=2; return theDelTab.GetToken( nIter, cSep ); } - -private: - const String theDelTab; - const sal_Unicode cSep; - const xub_StrLen nCount; - xub_StrLen nIter; -}; - -//------------------------------------------------------------------------ - /*N*/ void ScImportOptions::SetTextEncoding( rtl_TextEncoding nEnc ) /*N*/ { /*N*/ eCharSet = (nEnc == RTL_TEXTENCODING_DONTKNOW ? diff --git a/binfilter/bf_sc/source/ui/inc/imoptdlg.hxx b/binfilter/bf_sc/source/ui/inc/imoptdlg.hxx index 38581803a..0635c7d42 100644 --- a/binfilter/bf_sc/source/ui/inc/imoptdlg.hxx +++ b/binfilter/bf_sc/source/ui/inc/imoptdlg.hxx @@ -36,8 +36,6 @@ namespace binfilter { //=================================================================== class ScImportOptions; -class ScDelimiterTable; - //------------------------------------------------------------------------ diff --git a/binfilter/bf_sfx2/source/appl/sfx2_appcfg.cxx b/binfilter/bf_sfx2/source/appl/sfx2_appcfg.cxx index f62137842..76c7ac675 100644 --- a/binfilter/bf_sfx2/source/appl/sfx2_appcfg.cxx +++ b/binfilter/bf_sfx2/source/appl/sfx2_appcfg.cxx @@ -79,7 +79,6 @@ #include "appdata.hxx" #include "misccfg.hxx" #include "appimp.hxx" -#include "helper.hxx" // SfxContentHelper::... #include "app.hxx" #include <legacysmgr/legacy_binfilters_smgr.hxx> diff --git a/binfilter/bf_sfx2/source/appl/sfx2_appinit.cxx b/binfilter/bf_sfx2/source/appl/sfx2_appinit.cxx index 0093dda31..469788685 100644 --- a/binfilter/bf_sfx2/source/appl/sfx2_appinit.cxx +++ b/binfilter/bf_sfx2/source/appl/sfx2_appinit.cxx @@ -67,7 +67,6 @@ #include "nochaos.hxx" #include "fcontnr.hxx" -#include "helper.hxx" // SfxContentHelper::Kill() #include <legacysmgr/legacy_binfilters_smgr.hxx> diff --git a/binfilter/bf_sfx2/source/appl/sfx2_appmisc.cxx b/binfilter/bf_sfx2/source/appl/sfx2_appmisc.cxx index b368c4704..61a96fae1 100644 --- a/binfilter/bf_sfx2/source/appl/sfx2_appmisc.cxx +++ b/binfilter/bf_sfx2/source/appl/sfx2_appmisc.cxx @@ -65,7 +65,6 @@ #include "module.hxx" #include "openflag.hxx" #include "appimp.hxx" -#include "helper.hxx" // SfxContentHelper::Kill() #include <legacysmgr/legacy_binfilters_smgr.hxx> diff --git a/binfilter/bf_sfx2/source/doc/sfx2_docfile.cxx b/binfilter/bf_sfx2/source/doc/sfx2_docfile.cxx index 09bc06d93..4fea36682 100644 --- a/binfilter/bf_sfx2/source/doc/sfx2_docfile.cxx +++ b/binfilter/bf_sfx2/source/doc/sfx2_docfile.cxx @@ -93,7 +93,6 @@ using namespace ::com::sun::star::io; #include <ucbhelper/content.hxx> #include <sot/stg.hxx> -#include "helper.hxx" #include "request.hxx" // SFX_ITEMSET_SET #include "app.hxx" // GetFilterMatcher #include "appuno.hxx" // LoadTargetFrame diff --git a/binfilter/bf_sfx2/source/doc/sfx2_objstor.cxx b/binfilter/bf_sfx2/source/doc/sfx2_objstor.cxx index 9a11ee64c..f68ea4187 100644 --- a/binfilter/bf_sfx2/source/doc/sfx2_objstor.cxx +++ b/binfilter/bf_sfx2/source/doc/sfx2_objstor.cxx @@ -76,7 +76,6 @@ #include "module.hxx" #include "app.hxx" #include "openflag.hxx" -#include "helper.hxx" #include "dlgcont.hxx" #include "appuno.hxx" diff --git a/binfilter/bf_sfx2/source/inc/dlgcont.hxx b/binfilter/bf_sfx2/source/inc/dlgcont.hxx index 21759fe42..868c7b5f8 100644 --- a/binfilter/bf_sfx2/source/inc/dlgcont.hxx +++ b/binfilter/bf_sfx2/source/inc/dlgcont.hxx @@ -71,22 +71,6 @@ public: }; -// class to represent application container service -class SfxApplicationDialogLibraryContainer -{ -public: - // Service - static ::com::sun::star::uno::Sequence< ::rtl::OUString > impl_getStaticSupportedServiceNames(); - static ::rtl::OUString impl_getStaticImplementationName(); - static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL impl_createInstance - ( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceManager ) - throw( ::com::sun::star::uno::Exception ); - static ::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleServiceFactory > impl_createFactory - ( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceManager ); - -}; - - //============================================================================ class SfxDialogLibrary : public SfxLibrary_Impl diff --git a/binfilter/bf_sfx2/source/inc/helper.hxx b/binfilter/bf_sfx2/source/inc/helper.hxx deleted file mode 100644 index 35c797b7f..000000000 --- a/binfilter/bf_sfx2/source/inc/helper.hxx +++ /dev/null @@ -1,53 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ -#ifndef _SFX_HELPER_HXX -#define _SFX_HELPER_HXX - -// include --------------------------------------------------------------- - -#include <com/sun/star/uno/Sequence.hxx> - -class String; - - - -namespace binfilter { - -// class SfxContentHelper ------------------------------------------------ - -class SfxContentHelper -{ -private: - -public: - - static ::com::sun::star::uno::Sequence< ::rtl::OUString > - GetResultSet( const String& rURL ); - static String GetActiveHelpString( const String& rURL ); - - - - // please don't use this! -}; - -}//end of namespace binfilter -#endif // #ifndef _SFX_HELPER_HXX - - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/binfilter/bf_sfx2/source/inc/scriptcont.hxx b/binfilter/bf_sfx2/source/inc/scriptcont.hxx index 7072e445e..20cc71945 100644 --- a/binfilter/bf_sfx2/source/inc/scriptcont.hxx +++ b/binfilter/bf_sfx2/source/inc/scriptcont.hxx @@ -109,22 +109,6 @@ public: }; -// class to represent application container service -class SfxApplicationScriptLibraryContainer -{ -public: - // Service - static ::com::sun::star::uno::Sequence< ::rtl::OUString > impl_getStaticSupportedServiceNames(); - static ::rtl::OUString impl_getStaticImplementationName(); - static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL impl_createInstance - ( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceManager ) - throw( ::com::sun::star::uno::Exception ); - static ::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleServiceFactory > impl_createFactory - ( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceManager ); - -}; - - //============================================================================ class SfxScriptLibrary : public SfxLibrary_Impl diff --git a/binfilter/bf_sfx2/source/inc/sfxtypes.hxx b/binfilter/bf_sfx2/source/inc/sfxtypes.hxx index 53d00ff7d..238edc2d4 100644 --- a/binfilter/bf_sfx2/source/inc/sfxtypes.hxx +++ b/binfilter/bf_sfx2/source/inc/sfxtypes.hxx @@ -135,21 +135,6 @@ String SfxStringDecode( const String &rSource, DELETEX(pArr); \ } -class SfxBoolResetter -{ - BOOL& _rVar; - BOOL _bOld; - -public: - SfxBoolResetter( BOOL &rVar ) - : _rVar( rVar ), - _bOld( rVar ) - {} - - ~SfxBoolResetter() - { _rVar = _bOld; } -}; - #define GPF() *(int*)0 = 0 }//end of namespace binfilter diff --git a/binfilter/bf_svtools/source/numbers/numhead.hxx b/binfilter/bf_svtools/source/numbers/numhead.hxx index af4346584..03c89fa74 100644 --- a/binfilter/bf_svtools/source/numbers/numhead.hxx +++ b/binfilter/bf_svtools/source/numbers/numhead.hxx @@ -26,39 +26,6 @@ namespace binfilter { - -// ----------------------------------------------------------------------- - - // "Automatischer" Record-Header mit Groessenangabe - -/* wird fuer SvNumberFormatter nicht gebraucht -class SvNumReadHeader -{ -private: - SvStream& rStream; - ULONG nDataEnd; - -public: - SvNumReadHeader(SvStream& rNewStream); - ~SvNumReadHeader(); - - ULONG BytesLeft() const; -}; - -class SvNumWriteHeader -{ -private: - SvStream& rStream; - ULONG nDataPos; - ULONG nDataSize; - -public: - SvNumWriteHeader(SvStream& rNewStream, ULONG nDefault = 0); - ~SvNumWriteHeader(); -}; - -*/ - // Header mit Groessenangaben fuer mehrere Objekte class ImpSvNumMultipleReadHeader diff --git a/binfilter/bf_svtools/source/numbers/svt_numhead.cxx b/binfilter/bf_svtools/source/numbers/svt_numhead.cxx index b0021127c..1fa89fc79 100644 --- a/binfilter/bf_svtools/source/numbers/svt_numhead.cxx +++ b/binfilter/bf_svtools/source/numbers/svt_numhead.cxx @@ -29,72 +29,6 @@ namespace binfilter // STATIC DATA ----------------------------------------------------------- -//SEG_EOFGLOBALS() - -// ======================================================================= -/* wird fuer SvNumberformatter nicht gebraucht -//#pragma SEG_FUNCDEF(numhead_01) - -SvNumReadHeader::SvNumReadHeader(SvStream& rNewStream) : - rStream( rNewStream ) -{ - ULONG nDataSize; - rStream >> nDataSize; - nDataEnd = rStream.Tell() + nDataSize; -} - -//#pragma SEG_FUNCDEF(numhead_02) - -SvNumReadHeader::~SvNumReadHeader() -{ - ULONG nReadEnd = rStream.Tell(); - DBG_ASSERT( nReadEnd <= nDataEnd, "zuviele Bytes gelesen" ); - if ( nReadEnd != nDataEnd ) - rStream.Seek(nDataEnd); // Rest ueberspringen -} - -//#pragma SEG_FUNCDEF(numhead_03) - -ULONG SvNumReadHeader::BytesLeft() const -{ - ULONG nReadEnd = rStream.Tell(); - if (nReadEnd <= nDataEnd) - return nDataEnd-nReadEnd; - - OSL_FAIL("Fehler bei SvNumReadHeader::BytesLeft"); - return 0; -} - -// ----------------------------------------------------------------------- - -//#pragma SEG_FUNCDEF(numhead_04) - -SvNumWriteHeader::SvNumWriteHeader(SvStream& rNewStream, ULONG nDefault) : - rStream( rNewStream ) -{ - nDataSize = nDefault; - rStream << nDataSize; - nDataPos = rStream.Tell(); -} - -//#pragma SEG_FUNCDEF(numhead_05) - -SvNumWriteHeader::~SvNumWriteHeader() -{ - ULONG nPos = rStream.Tell(); - - if ( nPos - nDataPos != nDataSize ) // Default getroffen? - { - nDataSize = nPos - nDataPos; - rStream.Seek(nDataPos - sizeof(sal_uInt32)); - rStream << nDataSize; // Groesse am Anfang eintragen - rStream.Seek(nPos); - } -} -*/ - -// ======================================================================= - //#pragma SEG_FUNCDEF(numhead_06) //! mit Skip() synchron diff --git a/binfilter/bf_sw/source/core/bastyp/sw_init.cxx b/binfilter/bf_sw/source/core/bastyp/sw_init.cxx index d86347e61..1b5506f8b 100644 --- a/binfilter/bf_sw/source/core/bastyp/sw_init.cxx +++ b/binfilter/bf_sw/source/core/bastyp/sw_init.cxx @@ -119,7 +119,6 @@ #include <viscrs.hxx> #include <fntcache.hxx> #include <doc.hxx> -#include <acmplwrd.hxx> #include <fmtclbl.hxx> #include <cmdid.h> #include <breakit.hxx> diff --git a/binfilter/bf_sw/source/core/inc/dflyobj.hxx b/binfilter/bf_sw/source/core/inc/dflyobj.hxx index 4320ab5f3..b2d696b38 100644 --- a/binfilter/bf_sw/source/core/inc/dflyobj.hxx +++ b/binfilter/bf_sw/source/core/inc/dflyobj.hxx @@ -25,7 +25,6 @@ namespace binfilter { class SwFlyFrm; class SwFrmFmt; -class SdrObjMacroHitRec; const UINT32 SWGInventor = UINT32('S')*0x00000001+ UINT32('W')*0x00000100+ diff --git a/binfilter/bf_sw/source/core/inc/docfunc.hxx b/binfilter/bf_sw/source/core/inc/docfunc.hxx deleted file mode 100644 index c6e466459..000000000 --- a/binfilter/bf_sw/source/core/inc/docfunc.hxx +++ /dev/null @@ -1,65 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ -#ifndef _DOCFUNC_HXX -#define _DOCFUNC_HXX - -#include <bf_svtools/bf_solar.h> - - -// Diese Klasse wird von der Editshell benutz um fuer belibige -// Doc-Aktionen ueber eine definierte Schnittstelle alle Cursor/ -// Bookmarks/usw. aus dem Loeschbereich zu verschieben, mit einem -// anschliessenden Join-Node. -// Das wird zur Zeit vom -// - Delete -// - Replace -// benotigt. - - -#include <bf_tools/string.hxx> -namespace binfilter { -class SwPaM; - -enum DocFNType { DOC_DELETE, DOC_REPLACE }; - -class SwCallDocFunction -{ - // Parameter fuers Replace (leider kein union moeglich; Str-Klasse !!) - const String aRplStr; - DocFNType eDocFnType; - BOOL bRplRegExp; - -public: - // fuer parameterlose Methoden - SwCallDocFunction( DocFNType eDocFn ) : eDocFnType( eDocFn ), aRplStr() {} - // fuer das Replace - SwCallDocFunction( const String& rStr, BOOL bFlag ); - - BOOL Call( SwPaM& ); - - // ALLE Methoden stehen im eddel.cxx !! -}; - - -} //namespace binfilter -#endif - //_DOCFUNC_HXX - - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/binfilter/bf_sw/source/core/txtnode/sw_txtedt.cxx b/binfilter/bf_sw/source/core/txtnode/sw_txtedt.cxx index 90ab1da34..3d72b1505 100644 --- a/binfilter/bf_sw/source/core/txtnode/sw_txtedt.cxx +++ b/binfilter/bf_sw/source/core/txtnode/sw_txtedt.cxx @@ -39,8 +39,6 @@ #include <com/sun/star/i18n/WordType.hdl> #include <com/sun/star/i18n/ScriptType.hdl> -#include <acmplwrd.hxx> - #include <horiornt.hxx> #include <doc.hxx> // GetDoc() diff --git a/binfilter/bf_sw/source/ui/app/sw_docsh2.cxx b/binfilter/bf_sw/source/ui/app/sw_docsh2.cxx index 6d214eb02..ed44dd1ad 100644 --- a/binfilter/bf_sw/source/ui/app/sw_docsh2.cxx +++ b/binfilter/bf_sw/source/ui/app/sw_docsh2.cxx @@ -70,7 +70,6 @@ #include <usrpref.hxx> #include <wdocsh.hxx> #include <unotxdoc.hxx> -#include <acmplwrd.hxx> #include <swmodule.hxx> #include <unoobj.hxx> #include <swwait.hxx> diff --git a/binfilter/inc/bf_svtools/ondemand.hxx b/binfilter/inc/bf_svtools/ondemand.hxx index a576f280f..3721fe53a 100644 --- a/binfilter/inc/bf_svtools/ondemand.hxx +++ b/binfilter/inc/bf_svtools/ondemand.hxx @@ -237,80 +237,6 @@ public: CalendarWrapper& operator*() { return *get(); } }; -/** Load a collator only if it's needed. - SvNumberformatter uses it upon switching locales. - @ATTENTION If the default ctor is used the init() method MUST be called - before accessing the collator. - */ -class OnDemandCollatorWrapper -{ - ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > xSMgr; - ::com::sun::star::lang::Locale aLocale; - mutable CollatorWrapper* pPtr; - mutable bool bValid; - bool bInitialized; - -public: - OnDemandCollatorWrapper() - : pPtr(0) - , bValid(false) - , bInitialized(false) - {} - OnDemandCollatorWrapper( - const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& rxSMgr, - ::com::sun::star::lang::Locale& rLocale - ) - : bValid(false) - , bInitialized(false) - { - init( rxSMgr, rLocale ); - } - ~OnDemandCollatorWrapper() - { - delete pPtr; - } - - bool isInitialized() const { return bInitialized; } - - bool is() const { return pPtr != NULL; } - - void init( - const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& rxSMgr, - ::com::sun::star::lang::Locale& rLocale - ) - { - xSMgr = rxSMgr; - changeLocale( rLocale ); - if ( pPtr ) - { - delete pPtr; - pPtr = NULL; - } - bInitialized = true; - } - - void changeLocale( ::com::sun::star::lang::Locale& rLocale ) - { - bValid = false; - aLocale = rLocale; - } - - const CollatorWrapper* get() const - { - if ( !bValid ) - { - if ( !pPtr ) - pPtr = new CollatorWrapper( xSMgr ); - pPtr->loadDefaultCollator( aLocale, ::com::sun::star::i18n::CollatorOptions::CollatorOptions_IGNORE_CASE ); - bValid = true; - } - return pPtr; - } - - const CollatorWrapper* operator->() const { return get(); } - const CollatorWrapper& operator*() const { return *get(); } -}; - /** Load a transliteration only if it's needed. SvNumberformatter uses it upon switching locales. @ATTENTION If the default ctor is used the init() method MUST be called diff --git a/binfilter/inc/bf_svx/svdobj.hxx b/binfilter/inc/bf_svx/svdobj.hxx index e55451cad..3fef2279b 100644 --- a/binfilter/inc/bf_svx/svdobj.hxx +++ b/binfilter/inc/bf_svx/svdobj.hxx @@ -155,30 +155,6 @@ public: }; //************************************************************ -// Hilfsklasse SdrObjMacroHitRec -//************************************************************ -class SdrObjMacroHitRec -{ -public: - Point aPos; - Point aDownPos; - OutputDevice* pOut; - const SetOfByte* pVisiLayer; - const SdrPageView* pPageView; - USHORT nTol; - bool bDown; - -public: - SdrObjMacroHitRec() - : pOut(NULL), - pVisiLayer(NULL), - pPageView(NULL), - nTol(0), - bDown(FALSE) - {} -}; - -//************************************************************ // Hilfsklasse SdrObjUserData // // Anwenderdaten an einem Zeichenobjekt, z.B. applikationsspezifische Daten. diff --git a/binfilter/inc/bf_svx/unolingu.hxx b/binfilter/inc/bf_svx/unolingu.hxx index 573046779..c31be4040 100644 --- a/binfilter/inc/bf_svx/unolingu.hxx +++ b/binfilter/inc/bf_svx/unolingu.hxx @@ -46,24 +46,6 @@ class LinguMgrExitLstnr; //#define DIC_ERR_ENTRY_NOTEXISTS 6 /////////////////////////////////////////////////////////////////////////// -// SvxLinguConfigUpdate -// class to update configuration items when (before!) the linguistic is used. -// -// This class is called by all the dummy implementations to update all of the -// configuration (list of used/available services) when the linguistic is -// accessed for the first time. - -class SvxLinguConfigUpdate -{ - static BOOL bUpdated; - -public: - - static BOOL IsUpdated() { return bUpdated; } - static void UpdateAll(); -}; - -/////////////////////////////////////////////////////////////////////////// class LinguMgr { diff --git a/binfilter/inc/bf_sw/acmplwrd.hxx b/binfilter/inc/bf_sw/acmplwrd.hxx deleted file mode 100644 index f40435fa3..000000000 --- a/binfilter/inc/bf_sw/acmplwrd.hxx +++ /dev/null @@ -1,71 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ -#ifndef _ACMPLWRD_HXX -#define _ACMPLWRD_HXX - -#include <bf_svtools/bf_solar.h> - - -#define _SVSTDARR_STRINGSISORTDTOR -#include <bf_svtools/svstdarr.hxx> -namespace binfilter { - -class SwDoc; -class SwAutoCompleteWord_Impl; -class SwAutoCompleteClient; - -class SwAutoCompleteWord -{ - 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, SwDoc& rDoc ); - - - - USHORT Count() const { return aWordLst.Count(); } - - const String& operator[]( USHORT n ) const { return *aWordLst[ n ]; } - - BOOL IsLockWordLstLocked() const { return bLockWordLst; } - void SetLockWordLstLocked( BOOL bFlag ) { bLockWordLst = bFlag; } - - USHORT GetMaxCount() const { return nMaxCount; } - - USHORT GetMinWordLen() const { return nMinWrdLen; } - - const SvStringsISortDtor& GetWordList() const { return aWordLst; } -}; - - -} //namespace binfilter -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/binfilter/inc/bf_sw/doc.hxx b/binfilter/inc/bf_sw/doc.hxx index f212c9c41..3e1a1d392 100644 --- a/binfilter/inc/bf_sw/doc.hxx +++ b/binfilter/inc/bf_sw/doc.hxx @@ -93,7 +93,6 @@ class SvStringsSort; class SvxAutoCorrDoc; class SvxLinkManager; class SvxBorderLine; -class SwAutoCompleteWord; class SwAutoCorrExceptWord; class SwBookmark; class SwBookmarks; @@ -159,7 +158,6 @@ class SwTableBoxFmt; class SwTableFmt; class SwTableLineFmt; class SwTableNode; -class SwTextBlocks; class SwTxtFld; class SwTxtFmtColl; class SwTxtFmtColls; diff --git a/binfilter/inc/bf_sw/editsh.hxx b/binfilter/inc/bf_sw/editsh.hxx index 10dee27ad..9ff21ced2 100644 --- a/binfilter/inc/bf_sw/editsh.hxx +++ b/binfilter/inc/bf_sw/editsh.hxx @@ -62,7 +62,6 @@ struct SwDocStat; class SfxDocumentInfo; class SvStringsSort; -class SwAutoCompleteWord; class SwFmtRefMark; class SwFmtCol; @@ -83,7 +82,6 @@ class SwTxtNode; // fuer IsNotMakeTxtNode class SwFmtINetFmt; // InsertURL class SwTable; -class SwTextBlocks; // fuer GlossaryRW class SwBlockExceptList; class SwFmtFtn; class SpellCheck; diff --git a/binfilter/inc/bf_sw/shellio.hxx b/binfilter/inc/bf_sw/shellio.hxx index 55c553238..e0c75e2f3 100644 --- a/binfilter/inc/bf_sw/shellio.hxx +++ b/binfilter/inc/bf_sw/shellio.hxx @@ -366,20 +366,6 @@ public: class SwImpBlocks; -class SwTextBlocks -{ - friend class Sw2TextBlocks; - friend class Sw3IoImp; - SwImpBlocks* pImp; - ULONG nErr; - -public: - void Flush(){} - - ULONG GetError() const { return nErr; } -}; - - extern void _InitFilter(); extern void _FinitFilter(); extern SwRead ReadRtf, ReadAscii, ReadSwg, ReadSw3, ReadHTML; |