diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-09-10 17:53:41 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-09-12 06:08:32 +0000 |
commit | ea733ab5b632109d28bb8f1dc37116340b26229b (patch) | |
tree | 78a5c4d6cad5d6f2c58a89745ba0af130ef0e188 /extensions | |
parent | cc3294e127a6aedb8f6da5741ac9063da1cc2135 (diff) |
Turn SfxItemState into a C++11 scoped enumeration
...to gain further confidence in the claim "that none of the existing
code tries to uses combinations of these enum values"
(d92602c5b13d0a60439d86c5a033d124178726ca "more fixes for SfxItemState")
Change-Id: I987922d945e8738e38adfde83b869adf3ff35b13
Reviewed-on: https://gerrit.libreoffice.org/11384
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/propctrlr/fontdialog.cxx | 20 | ||||
-rw-r--r-- | extensions/source/propctrlr/formcomponenthandler.cxx | 2 |
2 files changed, 11 insertions, 11 deletions
diff --git a/extensions/source/propctrlr/fontdialog.cxx b/extensions/source/propctrlr/fontdialog.cxx index e760437708ba..02ab6ca16cfd 100644 --- a/extensions/source/propctrlr/fontdialog.cxx +++ b/extensions/source/propctrlr/fontdialog.cxx @@ -309,7 +309,7 @@ namespace pcr // font name SfxItemState eState = _rSet.GetItemState(CFID_FONT); - if ( eState == SFX_ITEM_SET ) + if ( eState == SfxItemState::SET ) { const SvxFontItem& rFontItem = static_cast<const SvxFontItem&>(_rSet.Get(CFID_FONT)); @@ -324,7 +324,7 @@ namespace pcr // font height eState = _rSet.GetItemState(CFID_HEIGHT); - if ( eState == SFX_ITEM_SET ) + if ( eState == SfxItemState::SET ) { const SvxFontHeightItem& rSvxFontHeightItem = static_cast<const SvxFontHeightItem&>(_rSet.Get(CFID_HEIGHT)); @@ -338,7 +338,7 @@ namespace pcr // font weight eState = _rSet.GetItemState(CFID_WEIGHT); - if ( eState == SFX_ITEM_SET ) + if ( eState == SfxItemState::SET ) { const SvxWeightItem& rWeightItem = static_cast<const SvxWeightItem&>(_rSet.Get(CFID_WEIGHT)); @@ -351,7 +351,7 @@ namespace pcr // font slant eState = _rSet.GetItemState(CFID_POSTURE); - if ( eState == SFX_ITEM_SET ) + if ( eState == SfxItemState::SET ) { const SvxPostureItem& rPostureItem = static_cast<const SvxPostureItem&>(_rSet.Get(CFID_POSTURE)); @@ -364,7 +364,7 @@ namespace pcr // font underline eState = _rSet.GetItemState(CFID_UNDERLINE); - if ( eState == SFX_ITEM_SET ) + if ( eState == SfxItemState::SET ) { const SvxUnderlineItem& rUnderlineItem = static_cast<const SvxUnderlineItem&>(_rSet.Get(CFID_UNDERLINE)); @@ -386,7 +386,7 @@ namespace pcr // font strikeout eState = _rSet.GetItemState(CFID_STRIKEOUT); - if ( eState == SFX_ITEM_SET ) + if ( eState == SfxItemState::SET ) { const SvxCrossedOutItem& rCrossedOutItem = static_cast<const SvxCrossedOutItem&>(_rSet.Get(CFID_STRIKEOUT)); @@ -400,7 +400,7 @@ namespace pcr // font wordline mode eState = _rSet.GetItemState(CFID_WORDLINEMODE); - if ( eState == SFX_ITEM_SET ) + if ( eState == SfxItemState::SET ) { const SvxWordLineModeItem& rWordLineModeItem = static_cast<const SvxWordLineModeItem&>(_rSet.Get(CFID_WORDLINEMODE)); @@ -413,7 +413,7 @@ namespace pcr // text color eState = _rSet.GetItemState(CFID_CHARCOLOR); - if ( eState == SFX_ITEM_SET ) + if ( eState == SfxItemState::SET ) { const SvxColorItem& rColorItem = static_cast<const SvxColorItem&>(_rSet.Get(CFID_CHARCOLOR)); @@ -431,7 +431,7 @@ namespace pcr // font relief eState = _rSet.GetItemState(CFID_RELIEF); - if ( eState == SFX_ITEM_SET ) + if ( eState == SfxItemState::SET ) { const SvxCharReliefItem& rReliefItem = static_cast<const SvxCharReliefItem&>(_rSet.Get(CFID_RELIEF)); @@ -443,7 +443,7 @@ namespace pcr // font emphasis mark eState = _rSet.GetItemState(CFID_EMPHASIS); - if ( eState == SFX_ITEM_SET ) + if ( eState == SfxItemState::SET ) { const SvxEmphasisMarkItem& rEmphMarkItem = static_cast<const SvxEmphasisMarkItem&>(_rSet.Get(CFID_EMPHASIS)); diff --git a/extensions/source/propctrlr/formcomponenthandler.cxx b/extensions/source/propctrlr/formcomponenthandler.cxx index 6c44f12ec9fd..796686f30eb6 100644 --- a/extensions/source/propctrlr/formcomponenthandler.cxx +++ b/extensions/source/propctrlr/formcomponenthandler.cxx @@ -2747,7 +2747,7 @@ namespace pcr } pItem = NULL; - if ( SFX_ITEM_SET == pResult->GetItemState( SID_ATTR_NUMBERFORMAT_VALUE, false, &pItem ) ) + if ( SfxItemState::SET == pResult->GetItemState( SID_ATTR_NUMBERFORMAT_VALUE, false, &pItem ) ) { _out_rNewValue <<= (sal_Int32)( static_cast< const SfxUInt32Item* >( pItem )->GetValue() ); bChanged = true; |