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 /basctl/source/basicide/baside2b.cxx | |
parent | f90820387d551d174ee07d628d27b78b3714dad8 (diff) |
#103496#: move VCL free ConfigItems to unotools
Diffstat (limited to 'basctl/source/basicide/baside2b.cxx')
-rw-r--r-- | basctl/source/basicide/baside2b.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
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() |