diff options
author | Noel Grandin <noel@peralex.com> | 2015-01-12 12:55:32 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-01-12 12:57:05 +0200 |
commit | 5333782d090a9e147c0c431f0f741863d1d8cf8e (patch) | |
tree | efff4a9394099568688559d52a36c8d9fe94ebd2 /starmath | |
parent | a5b5ad9f9306d868430ed9efd210b95c24a15161 (diff) |
convert SETTINGS_ #defines to 'enum class'
and dump the ones that nothing is listening to
Change-Id: I253ef284df785812a439dd160edba1b07fdbaac4
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/dialog.cxx | 6 | ||||
-rw-r--r-- | starmath/source/toolbox.cxx | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx index ca19bfa88969..a5f59e0dd6a9 100644 --- a/starmath/source/dialog.cxx +++ b/starmath/source/dialog.cxx @@ -399,7 +399,7 @@ void SmFontDialog::InitColor_Impl() void SmFontDialog::DataChanged( const DataChangedEvent& rDCEvt ) { if ( rDCEvt.GetType() == DataChangedEventType::SETTINGS && - (rDCEvt.GetFlags() & SETTINGS_STYLE) ) + (rDCEvt.GetFlags() & AllSettingsFlags::STYLE) ) InitColor_Impl(); ModalDialog::DataChanged( rDCEvt ); @@ -1504,7 +1504,7 @@ void SmSymbolDialog::InitColor_Impl() void SmSymbolDialog::DataChanged( const DataChangedEvent& rDCEvt ) { if ( rDCEvt.GetType() == DataChangedEventType::SETTINGS && - (rDCEvt.GetFlags() & SETTINGS_STYLE) ) + (rDCEvt.GetFlags() & AllSettingsFlags::STYLE) ) InitColor_Impl(); ModalDialog::DataChanged( rDCEvt ); @@ -2069,7 +2069,7 @@ void SmSymDefineDialog::InitColor_Impl() void SmSymDefineDialog::DataChanged( const DataChangedEvent& rDCEvt ) { if ( rDCEvt.GetType() == DataChangedEventType::SETTINGS && - (rDCEvt.GetFlags() & SETTINGS_STYLE) ) + (rDCEvt.GetFlags() & AllSettingsFlags::STYLE) ) InitColor_Impl(); ModalDialog::DataChanged( rDCEvt ); diff --git a/starmath/source/toolbox.cxx b/starmath/source/toolbox.cxx index 1d487812046f..1092d251d815 100644 --- a/starmath/source/toolbox.cxx +++ b/starmath/source/toolbox.cxx @@ -192,7 +192,7 @@ void SmToolBoxWindow::ApplyImageLists( sal_uInt16 nCategoryRID ) void SmToolBoxWindow::DataChanged( const DataChangedEvent &rEvt ) { - if ( (rEvt.GetType() == DataChangedEventType::SETTINGS) && (rEvt.GetFlags() & SETTINGS_STYLE) ) + if ( (rEvt.GetType() == DataChangedEventType::SETTINGS) && (rEvt.GetFlags() & AllSettingsFlags::STYLE) ) ApplyImageLists( nActiveCategoryRID ); SfxFloatingWindow::DataChanged( rEvt ); |