diff options
author | Mathias Bauer <mba@openoffice.org> | 2009-10-06 07:38:24 +0200 |
---|---|---|
committer | Mathias Bauer <mba@openoffice.org> | 2009-10-06 07:38:24 +0200 |
commit | 1dabbee147229251ea4bc4ef416c45875e17b090 (patch) | |
tree | 015c22561a44d3de8565848a4a73a7f59ddc9f8d | |
parent | f90820387d551d174ee07d628d27b78b3714dad8 (diff) |
#103496#: move VCL free ConfigItems to unotools
26 files changed, 54 insertions, 45 deletions
diff --git a/basctl/source/basicide/baside2.hxx b/basctl/source/basicide/baside2.hxx index 7c9fd764cef0..685217e337eb 100644 --- a/basctl/source/basicide/baside2.hxx +++ b/basctl/source/basicide/baside2.hxx @@ -58,6 +58,10 @@ DBG_NAMEEX( ModulWindow ) #define MARKER_NOMARKER 0xFFFF +namespace utl +{ + class SourceViewConfig; +}; // #108672 Helper functions to get/set text in TextEngine // using the stream interface (get/setText() only supports @@ -108,13 +112,13 @@ namespace svt { class SourceViewConfig; } -class EditorWindow : public Window, public SfxListener +class EditorWindow : public Window, public SfxListener, public utl::ConfigurationListener { private: ExtTextView* pEditView; ExtTextEngine* pEditEngine; - svt::SourceViewConfig* pSourceViewConfig; + utl::SourceViewConfig* pSourceViewConfig; long nCurTextWidth; @@ -151,6 +155,7 @@ protected: virtual void Command( const CommandEvent& rCEvt ); virtual void LoseFocus(); virtual void RequestHelp( const HelpEvent& rHEvt ); + virtual void ConfigurationChanged( utl::ConfigurationBroadcaster* ); void DoSyntaxHighlight( ULONG nPara ); String GetWordAtCursor(); diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx index 27dce8dccc2f..56a275b081a2 100644 --- a/basctl/source/basicide/baside2b.cxx +++ b/basctl/source/basicide/baside2b.cxx @@ -62,7 +62,7 @@ //#ifndef _SFX_HELP_HXX //autogen //#include <sfx2/sfxhelp.hxx> //#endif -#include <svtools/sourceviewconfig.hxx> +#include <unotools/sourceviewconfig.hxx> #ifndef _COM_SUN_STAR_SCRIPT_XLIBRYARYCONTAINER2_HPP_ #include <com/sun/star/script/XLibraryContainer2.hpp> @@ -172,7 +172,7 @@ EditorWindow::EditorWindow( Window* pParent ) : pModulWindow = 0; pEditView = 0; pEditEngine = 0; - pSourceViewConfig = new svt::SourceViewConfig; + pSourceViewConfig = new utl::SourceViewConfig; bHighlightning = FALSE; pProgress = 0; nCurTextWidth = 0; @@ -181,15 +181,14 @@ EditorWindow::EditorWindow( Window* pParent ) : SetPointer( Pointer( POINTER_TEXT ) ); SetHelpId( HID_BASICIDE_EDITORWINDOW ); - - StartListening( *pSourceViewConfig ); + pSourceViewConfig->AddListener(this); } __EXPORT EditorWindow::~EditorWindow() { - EndListening( *pSourceViewConfig ); + pSourceViewConfig->RemoveListener(this); delete pSourceViewConfig; aSyntaxIdleTimer.Stop(); @@ -662,7 +661,7 @@ void EditorWindow::DataChanged(DataChangedEvent const & rDCEvt) } } -void EditorWindow::Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) +void EditorWindow::Notify( SfxBroadcaster& /*rBC*/, const SfxHint& rHint ) { if ( rHint.ISA( TextHint ) ) { @@ -718,10 +717,11 @@ void EditorWindow::Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) DoDelayedSyntaxHighlight( rTextHint.GetValue() ); } } - else if ( &rBC == pSourceViewConfig ) - { - ImplSetFont(); - } +} + +void EditorWindow::ConfigurationChanged( utl::ConfigurationBroadcaster* ) +{ + ImplSetFont(); } void EditorWindow::SetScrollBarRanges() diff --git a/basctl/source/basicide/basobj2.cxx b/basctl/source/basicide/basobj2.cxx index e4abb3fad92e..f7ddd62e144a 100644 --- a/basctl/source/basicide/basobj2.cxx +++ b/basctl/source/basicide/basobj2.cxx @@ -36,7 +36,7 @@ #include <vector> #include <algorithm> #include <basic/sbx.hxx> -#include <svtools/moduleoptions.hxx> +#include <unotools/moduleoptions.hxx> #include <com/sun/star/document/XEmbeddedScripts.hpp> #include <com/sun/star/document/XScriptInvocationContext.hpp> #include <basobj.hxx> diff --git a/basctl/source/basicide/basobj3.cxx b/basctl/source/basicide/basobj3.cxx index 8ef06af7dc25..a1887e0ea7a0 100644 --- a/basctl/source/basicide/basobj3.cxx +++ b/basctl/source/basicide/basobj3.cxx @@ -36,7 +36,7 @@ #include <vector> #include <algorithm> #include <basic/sbx.hxx> -#include <svtools/moduleoptions.hxx> +#include <unotools/moduleoptions.hxx> #include <iderdll.hxx> #include <iderdll2.hxx> diff --git a/basctl/source/basicide/moduldl2.cxx b/basctl/source/basicide/moduldl2.cxx index f0143cc8517b..ea5f7cec9878 100644 --- a/basctl/source/basicide/moduldl2.cxx +++ b/basctl/source/basicide/moduldl2.cxx @@ -72,7 +72,7 @@ #include "com/sun/star/ucb/XCommandEnvironment.hpp" #include <com/sun/star/ucb/NameClash.hpp> #include "com/sun/star/packages/manifest/XManifestWriter.hpp" -#include <svtools/pathoptions.hxx> +#include <unotools/pathoptions.hxx> #include <comphelper/processfactory.hxx> #include <com/sun/star/util/VetoException.hpp> diff --git a/extensions/inc/pch/precompiled_extensions.hxx b/extensions/inc/pch/precompiled_extensions.hxx index 45763b2dccdb..f667c6bdfdfb 100644 --- a/extensions/inc/pch/precompiled_extensions.hxx +++ b/extensions/inc/pch/precompiled_extensions.hxx @@ -510,7 +510,7 @@ #include "svtools/filenotation.hxx" #include "svtools/imgdef.hxx" #include "svtools/miscopt.hxx" -#include "svtools/moduleoptions.hxx" +#include "unotools/moduleoptions.hxx" #include "svtools/numuno.hxx" #include "svx/flagsdef.hxx" diff --git a/extensions/source/abpilot/abpfinalpage.cxx b/extensions/source/abpilot/abpfinalpage.cxx index ac6c01693c2d..6569c475f640 100644 --- a/extensions/source/abpilot/abpfinalpage.cxx +++ b/extensions/source/abpilot/abpfinalpage.cxx @@ -37,7 +37,7 @@ #include <tools/urlobj.hxx> #include <unotools/ucbhelper.hxx> #include <sfx2/filedlghelper.hxx> -#include <svtools/pathoptions.hxx> +#include <unotools/pathoptions.hxx> #ifndef SVTOOLS_FILENOTATION_HXX_ #include <svtools/filenotation.hxx> #endif diff --git a/extensions/source/abpilot/makefile.mk b/extensions/source/abpilot/makefile.mk index 8830b9144409..9ecf96b89246 100644 --- a/extensions/source/abpilot/makefile.mk +++ b/extensions/source/abpilot/makefile.mk @@ -1,7 +1,7 @@ #************************************************************************* # # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -# +# # Copyright 2008 by Sun Microsystems, Inc. # # OpenOffice.org - a multi-platform office productivity suite diff --git a/extensions/source/dbpilots/commonpagesdbp.cxx b/extensions/source/dbpilots/commonpagesdbp.cxx index 43d8c7af5889..c9e657dd2f69 100644 --- a/extensions/source/dbpilots/commonpagesdbp.cxx +++ b/extensions/source/dbpilots/commonpagesdbp.cxx @@ -50,7 +50,7 @@ #include <vcl/stdtext.hxx> #include <vcl/waitobj.hxx> #include <sfx2/docfilt.hxx> -#include <svtools/pathoptions.hxx> +#include <unotools/pathoptions.hxx> #include <sfx2/filedlghelper.hxx> #ifndef SVTOOLS_FILENOTATION_HXX_ #include <svtools/filenotation.hxx> diff --git a/extensions/source/dbpilots/makefile.mk b/extensions/source/dbpilots/makefile.mk index 5591a11b9d36..aba20a2f105a 100644 --- a/extensions/source/dbpilots/makefile.mk +++ b/extensions/source/dbpilots/makefile.mk @@ -1,7 +1,7 @@ #************************************************************************* # # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -# +# # Copyright 2008 by Sun Microsystems, Inc. # # OpenOffice.org - a multi-platform office productivity suite @@ -89,6 +89,7 @@ SHL1STDLIBS= \ $(SVLLIB) \ $(SFXLIB) \ $(DBTOOLSLIB) \ + $(UNOTOOLSLIB) \ $(COMPHELPERLIB) \ $(CPPUHELPERLIB) \ $(CPPULIB) \ diff --git a/extensions/source/plugin/base/manager.cxx b/extensions/source/plugin/base/manager.cxx index bb5422c69a51..1cc09221e67e 100644 --- a/extensions/source/plugin/base/manager.cxx +++ b/extensions/source/plugin/base/manager.cxx @@ -38,7 +38,7 @@ #include "plugin/impl.hxx" #include "osl/mutex.hxx" -#include "svtools/pathoptions.hxx" +#include "unotools/pathoptions.hxx" #include "vcl/configsettings.hxx" #include "com/sun/star/container/XEnumerationAccess.hpp" diff --git a/extensions/source/plugin/util/makefile.mk b/extensions/source/plugin/util/makefile.mk index dfba6a755201..b4ac6686a71e 100644 --- a/extensions/source/plugin/util/makefile.mk +++ b/extensions/source/plugin/util/makefile.mk @@ -1,7 +1,7 @@ #************************************************************************* # # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -# +# # Copyright 2008 by Sun Microsystems, Inc. # # OpenOffice.org - a multi-platform office productivity suite @@ -89,6 +89,7 @@ SHL1STDLIBS= \ SHL1STDLIBS+= \ $(VCLLIB) \ $(SVLLIB) \ + $(UNOTOOLSLIB) \ $(TOOLSLIB) \ $(VOSLIB) \ $(UCBHELPERLIB) \ diff --git a/extensions/source/preload/makefile.mk b/extensions/source/preload/makefile.mk index db8b58b6e118..143d866773b7 100644 --- a/extensions/source/preload/makefile.mk +++ b/extensions/source/preload/makefile.mk @@ -1,7 +1,7 @@ #************************************************************************* # # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -# +# # Copyright 2008 by Sun Microsystems, Inc. # # OpenOffice.org - a multi-platform office productivity suite @@ -69,6 +69,7 @@ SHL1STDLIBS= \ $(VCLLIB) \ $(SVLLIB) \ $(TOOLSLIB) \ + $(UNOTOOLSLIB) \ $(COMPHELPERLIB) \ $(CPPUHELPERLIB) \ $(CPPULIB) \ diff --git a/extensions/source/preload/oemwiz.cxx b/extensions/source/preload/oemwiz.cxx index 8456c1a05c37..3121b6b07bc5 100644 --- a/extensions/source/preload/oemwiz.cxx +++ b/extensions/source/preload/oemwiz.cxx @@ -37,7 +37,7 @@ #include <svtools/itemset.hxx> #include <svtools/itempool.hxx> #include <vcl/msgbox.hxx> -#include <svtools/pathoptions.hxx> +#include <unotools/pathoptions.hxx> #ifndef _EXTENSIONS_PRELOAD_PRELOAD_HRC_ #include "preload.hrc" #endif diff --git a/extensions/source/propctrlr/formcomponenthandler.cxx b/extensions/source/propctrlr/formcomponenthandler.cxx index e28eb2e89224..d77b8dc7d0c2 100644 --- a/extensions/source/propctrlr/formcomponenthandler.cxx +++ b/extensions/source/propctrlr/formcomponenthandler.cxx @@ -94,7 +94,7 @@ #include <svtools/filenotation.hxx> #include <svtools/intitem.hxx> #include <svtools/itemset.hxx> -#include <svtools/moduleoptions.hxx> +#include <unotools/moduleoptions.hxx> #include <svtools/numuno.hxx> #include <svtools/urihelper.hxx> #include <svx/dialogs.hrc> diff --git a/forms/inc/pch/precompiled_forms.hxx b/forms/inc/pch/precompiled_forms.hxx index 734020cc1613..4b85ab076a1b 100644 --- a/forms/inc/pch/precompiled_forms.hxx +++ b/forms/inc/pch/precompiled_forms.hxx @@ -340,7 +340,7 @@ #include "svtools/itempool.hxx" #include "svtools/itemset.hxx" #include "svtools/languageoptions.hxx" -#include "svtools/lingucfg.hxx" +#include "unotools/lingucfg.hxx" #include "svtools/numuno.hxx" #include "svtools/poolitem.hxx" #include "svtools/solar.hrc" diff --git a/forms/source/richtext/richtextengine.cxx b/forms/source/richtext/richtextengine.cxx index b13a6eebc94b..5ad8fbe52353 100644 --- a/forms/source/richtext/richtextengine.cxx +++ b/forms/source/richtext/richtextengine.cxx @@ -44,7 +44,7 @@ #include <vcl/mapunit.hxx> #include <vcl/mapmod.hxx> #include <vcl/outdev.hxx> -#include <svtools/lingucfg.hxx> +#include <unotools/lingucfg.hxx> #include <svtools/undo.hxx> #include <vos/mutex.hxx> diff --git a/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx b/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx index b24bc6ee80f5..69390656d40e 100644 --- a/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx +++ b/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx @@ -39,8 +39,8 @@ #include <cppuhelper/factory.hxx> // helper for factories #include <com/sun/star/registry/XRegistryKey.hpp> #include <i18npool/mslangid.hxx> -#include <svtools/pathoptions.hxx> -#include <svtools/useroptions.hxx> +#include <unotools/pathoptions.hxx> +#include <unotools/useroptions.hxx> #include <tools/debug.hxx> #include <unotools/processfactory.hxx> #include <osl/mutex.hxx> @@ -57,9 +57,9 @@ #include <rtl/ustrbuf.hxx> #include <linguistic/lngprops.hxx> -#include <svtools/pathoptions.hxx> -#include <svtools/useroptions.hxx> -#include <svtools/lingucfg.hxx> +#include <unotools/pathoptions.hxx> +#include <unotools/useroptions.hxx> +#include <unotools/lingucfg.hxx> #include <osl/file.hxx> #include "dictmgr.hxx" diff --git a/lingucomponent/source/languageguessing/guesslang.cxx b/lingucomponent/source/languageguessing/guesslang.cxx index bd2c29430f76..fd3e123e1d26 100644 --- a/lingucomponent/source/languageguessing/guesslang.cxx +++ b/lingucomponent/source/languageguessing/guesslang.cxx @@ -50,7 +50,7 @@ #include <com/sun/star/registry/XRegistryKey.hpp> #include <com/sun/star/lang/XServiceInfo.hpp> #include <com/sun/star/linguistic2/XLanguageGuessing.hpp> -#include <svtools/pathoptions.hxx> +#include <unotools/pathoptions.hxx> #include <unotools/localfilehelper.hxx> #include <osl/thread.h> diff --git a/lingucomponent/source/lingutil/lingutil.cxx b/lingucomponent/source/lingutil/lingutil.cxx index d32af21f7e7a..2e00035628bc 100644 --- a/lingucomponent/source/lingutil/lingutil.cxx +++ b/lingucomponent/source/lingutil/lingutil.cxx @@ -49,8 +49,8 @@ #include <tools/debug.hxx> #include <tools/urlobj.hxx> #include <i18npool/mslangid.hxx> -#include <svtools/lingucfg.hxx> -#include <svtools/pathoptions.hxx> +#include <unotools/lingucfg.hxx> +#include <unotools/pathoptions.hxx> #include <rtl/ustring.hxx> #include <rtl/string.hxx> #include <linguistic/misc.hxx> diff --git a/lingucomponent/source/spellcheck/macosxspell/macspellimp.cxx b/lingucomponent/source/spellcheck/macosxspell/macspellimp.cxx index d1d8103eedd5..7244a4988236 100644 --- a/lingucomponent/source/spellcheck/macosxspell/macspellimp.cxx +++ b/lingucomponent/source/spellcheck/macosxspell/macspellimp.cxx @@ -46,8 +46,8 @@ //#include <linguistic/lngprops.hxx> #include <linguistic/spelldta.hxx> -#include <svtools/pathoptions.hxx> -#include <svtools/useroptions.hxx> +#include <unotools/pathoptions.hxx> +#include <unotools/useroptions.hxx> #include <osl/file.hxx> #include <rtl/ustrbuf.hxx> diff --git a/lingucomponent/source/spellcheck/spell/makefile.mk b/lingucomponent/source/spellcheck/spell/makefile.mk index 623ade9f3f3c..cbc41c00633b 100644 --- a/lingucomponent/source/spellcheck/spell/makefile.mk +++ b/lingucomponent/source/spellcheck/spell/makefile.mk @@ -1,7 +1,7 @@ #************************************************************************* # # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -# +# # Copyright 2008 by Sun Microsystems, Inc. # # OpenOffice.org - a multi-platform office productivity suite @@ -65,6 +65,7 @@ SHL1STDLIBS= \ $(CPPUHELPERLIB) \ $(I18NISOLANGLIB) \ $(TOOLSLIB) \ + $(UNOTOOLSLIB) \ $(SVLLIB) \ $(SALLIB) \ $(LNGLIB) \ diff --git a/lingucomponent/source/spellcheck/spell/sspellimp.cxx b/lingucomponent/source/spellcheck/spell/sspellimp.cxx index ed1ddf4ca77b..1a92db58a4dc 100644 --- a/lingucomponent/source/spellcheck/spell/sspellimp.cxx +++ b/lingucomponent/source/spellcheck/spell/sspellimp.cxx @@ -50,9 +50,9 @@ #include <linguistic/lngprops.hxx> #include <linguistic/spelldta.hxx> #include <i18npool/mslangid.hxx> -#include <svtools/pathoptions.hxx> -#include <svtools/lingucfg.hxx> -#include <svtools/useroptions.hxx> +#include <unotools/pathoptions.hxx> +#include <unotools/lingucfg.hxx> +#include <unotools/useroptions.hxx> #include <osl/file.hxx> #include <rtl/ustrbuf.hxx> diff --git a/lingucomponent/source/thesaurus/libnth/nthesimp.cxx b/lingucomponent/source/thesaurus/libnth/nthesimp.cxx index 1ecba30bcb8c..c526d2b07444 100644 --- a/lingucomponent/source/thesaurus/libnth/nthesimp.cxx +++ b/lingucomponent/source/thesaurus/libnth/nthesimp.cxx @@ -41,8 +41,8 @@ #include <tools/debug.hxx> #include <unotools/processfactory.hxx> #include <osl/mutex.hxx> -#include <svtools/pathoptions.hxx> -#include <svtools/lingucfg.hxx> +#include <unotools/pathoptions.hxx> +#include <unotools/lingucfg.hxx> #include <rtl/string.hxx> #include <rtl/ustrbuf.hxx> diff --git a/xmlsecurity/inc/xmlsecurity/macrosecurity.hxx b/xmlsecurity/inc/xmlsecurity/macrosecurity.hxx index 8fb05fdaa895..88dd1b9a592d 100644 --- a/xmlsecurity/inc/xmlsecurity/macrosecurity.hxx +++ b/xmlsecurity/inc/xmlsecurity/macrosecurity.hxx @@ -39,7 +39,7 @@ #include <vcl/tabpage.hxx> #include <svtools/stdctrl.hxx> #include <svx/simptabl.hxx> -#include <svtools/securityoptions.hxx> +#include <unotools/securityoptions.hxx> namespace com { namespace sun { diff --git a/xmlsecurity/source/component/documentdigitalsignatures.cxx b/xmlsecurity/source/component/documentdigitalsignatures.cxx index dde41a4ac636..5882bdbafd4a 100644 --- a/xmlsecurity/source/component/documentdigitalsignatures.cxx +++ b/xmlsecurity/source/component/documentdigitalsignatures.cxx @@ -53,7 +53,7 @@ #include <com/sun/star/ucb/Command.hpp> #include <tools/urlobj.hxx> #include <vcl/msgbox.hxx> -#include <svtools/securityoptions.hxx> +#include <unotools/securityoptions.hxx> #include <com/sun/star/security/CertificateValidity.hpp> #include <com/sun/star/security/SerialNumberAdapter.hpp> #include <ucbhelper/contentbroker.hxx> |