diff options
author | Noel Grandin <noel@peralex.com> | 2016-08-22 08:24:14 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-08-22 08:24:48 +0200 |
commit | 0552ec9828ad65b1cf90f4e5253f0108facd5bf3 (patch) | |
tree | b7b889ef11c53126304f77dd31d509fb633859ef /chart2 | |
parent | 2309217a55c8d5e6bdde2a6d4775f10415505fcd (diff) |
convert SdrHintKind to scoped enum
Change-Id: I77ad33425d440263a71bc94f41d8e141f16dfb78
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/controller/drawinglayer/DrawViewWrapper.cxx | 4 | ||||
-rw-r--r-- | chart2/source/view/main/ChartView.cxx | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/chart2/source/controller/drawinglayer/DrawViewWrapper.cxx b/chart2/source/controller/drawinglayer/DrawViewWrapper.cxx index b96c3f3ee987..f885911f8154 100644 --- a/chart2/source/controller/drawinglayer/DrawViewWrapper.cxx +++ b/chart2/source/controller/drawinglayer/DrawViewWrapper.cxx @@ -334,7 +334,7 @@ void DrawViewWrapper::Notify(SfxBroadcaster& rBC, const SfxHint& rHint) if( pSdrHint != nullptr ) { SdrHintKind eKind = pSdrHint->GetKind(); - if( eKind == HINT_BEGEDIT ) + if( eKind == SdrHintKind::BeginEdit ) { // #i79965# remember map mode OSL_ASSERT( ! m_bRestoreMapMode ); @@ -345,7 +345,7 @@ void DrawViewWrapper::Notify(SfxBroadcaster& rBC, const SfxHint& rHint) m_bRestoreMapMode = true; } } - else if( eKind == HINT_ENDEDIT ) + else if( eKind == SdrHintKind::EndEdit ) { // #i79965# scroll back view when ending text edit OSL_ASSERT( m_bRestoreMapMode ); diff --git a/chart2/source/view/main/ChartView.cxx b/chart2/source/view/main/ChartView.cxx index b52ca2470d1a..f04bcf75c842 100644 --- a/chart2/source/view/main/ChartView.cxx +++ b/chart2/source/view/main/ChartView.cxx @@ -2812,19 +2812,19 @@ void ChartView::Notify( SfxBroadcaster& /*rBC*/, const SfxHint& rHint ) bool bShapeChanged = false; switch( pSdrHint->GetKind() ) { - case HINT_OBJCHG: + case SdrHintKind::ObjectChange: bShapeChanged = true; break; - case HINT_OBJINSERTED: + case SdrHintKind::ObjectInserted: bShapeChanged = true; break; - case HINT_OBJREMOVED: + case SdrHintKind::ObjectRemoved: bShapeChanged = true; break; - case HINT_MODELCLEARED: + case SdrHintKind::ModelCleared: bShapeChanged = true; break; - case HINT_ENDEDIT: + case SdrHintKind::EndEdit: bShapeChanged = true; break; default: |