From 8b98bc855d7436828553948a1d28d686848e139c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 16 Apr 2015 14:25:53 +0200 Subject: convert SFX_STYLESHEET_ constants to scoped enum Change-Id: Iceba35cb058afa55374cf3cac70ed2207b7bc8b4 --- svx/source/sdr/properties/attributeproperties.cxx | 10 +++++----- svx/source/sdr/properties/customshapeproperties.cxx | 4 ++-- svx/source/sdr/properties/textproperties.cxx | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'svx/source') diff --git a/svx/source/sdr/properties/attributeproperties.cxx b/svx/source/sdr/properties/attributeproperties.cxx index 51a71598e842..c4609c4fad79 100644 --- a/svx/source/sdr/properties/attributeproperties.cxx +++ b/svx/source/sdr/properties/attributeproperties.cxx @@ -531,19 +531,19 @@ namespace sdr switch(pStyleHint->GetHint()) { - case SFX_STYLESHEET_CREATED : + case SfxStyleSheetHintId::CREATED : { // cannot happen, nothing to do break; } - case SFX_STYLESHEET_MODIFIED : - case SFX_STYLESHEET_CHANGED : + case SfxStyleSheetHintId::MODIFIED : + case SfxStyleSheetHintId::CHANGED : { // notify change break; } - case SFX_STYLESHEET_ERASED : - case SFX_STYLESHEET_INDESTRUCTION : + case SfxStyleSheetHintId::ERASED : + case SfxStyleSheetHintId::INDESTRUCTION : { // Style needs to be exchanged SfxStyleSheet* pNewStSh = 0L; diff --git a/svx/source/sdr/properties/customshapeproperties.cxx b/svx/source/sdr/properties/customshapeproperties.cxx index 2c8b111136ad..3dd95d1ea784 100644 --- a/svx/source/sdr/properties/customshapeproperties.cxx +++ b/svx/source/sdr/properties/customshapeproperties.cxx @@ -219,8 +219,8 @@ namespace sdr { switch( pStyleHint->GetHint() ) { - case SFX_STYLESHEET_MODIFIED : - case SFX_STYLESHEET_CHANGED : + case SfxStyleSheetHintId::MODIFIED : + case SfxStyleSheetHintId::CHANGED : bRemoveRenderGeometry = true; break; }; diff --git a/svx/source/sdr/properties/textproperties.cxx b/svx/source/sdr/properties/textproperties.cxx index a62fb35fcfc7..7bb4e4af908b 100644 --- a/svx/source/sdr/properties/textproperties.cxx +++ b/svx/source/sdr/properties/textproperties.cxx @@ -600,7 +600,7 @@ namespace sdr const SfxStyleSheetHintExtended* pExtendedHint = dynamic_cast(&rHint); if(pExtendedHint - && SFX_STYLESHEET_MODIFIED == pExtendedHint->GetHint()) + && SfxStyleSheetHintId::MODIFIED == pExtendedHint->GetHint()) { OUString aOldName(pExtendedHint->GetOldName()); OUString aNewName(pExtendedHint->GetStyleSheet()->GetName()); -- cgit