diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-15 09:11:32 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-15 09:11:32 +0200 |
commit | 96285ce13fc6ea5889b53530a522ec28089d9f0b (patch) | |
tree | 645d7275f4aac5a405644190dff88d847086bfcb /sd/source/ui/sidebar/MasterPageContainer.cxx | |
parent | fdc970ef3aeae9e0b86d32c8a131e14995ca188c (diff) |
convert EventType to scoped enum
and drop unused INDEXES_CHANGED enumerator
Change-Id: I25790a012c53509b8af082dac4a250193ca19bde
Diffstat (limited to 'sd/source/ui/sidebar/MasterPageContainer.cxx')
-rw-r--r-- | sd/source/ui/sidebar/MasterPageContainer.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sd/source/ui/sidebar/MasterPageContainer.cxx b/sd/source/ui/sidebar/MasterPageContainer.cxx index d276a720ee4c..02044642581c 100644 --- a/sd/source/ui/sidebar/MasterPageContainer.cxx +++ b/sd/source/ui/sidebar/MasterPageContainer.cxx @@ -236,7 +236,7 @@ void MasterPageContainer::SetPreviewSize (PreviewSize eSize) { mePreviewSize = eSize; mpImpl->FireContainerChange( - MasterPageContainerChangeEvent::SIZE_CHANGED, + MasterPageContainerChangeEvent::EventType::SIZE_CHANGED, NIL_TOKEN); } @@ -597,7 +597,7 @@ void MasterPageContainer::Implementation::UpdatePreviewSizePixel() maSmallPreviewSizePixel.Height() = nNewSmallHeight; maLargePreviewSizePixel.Height() = nNewLargeHeight; FireContainerChange( - MasterPageContainerChangeEvent::SIZE_CHANGED, + MasterPageContainerChangeEvent::EventType::SIZE_CHANGED, NIL_TOKEN); } } @@ -657,7 +657,7 @@ MasterPageContainer::Token MasterPageContainer::Implementation::PutMasterPage ( maContainer.push_back(rpDescriptor); aEntry = maContainer.end()-1; - FireContainerChange(MasterPageContainerChangeEvent::CHILD_ADDED,aResult); + FireContainerChange(MasterPageContainerChangeEvent::EventType::CHILD_ADDED,aResult); } } else @@ -963,11 +963,11 @@ bool MasterPageContainer::Implementation::UpdateDescriptor ( mpDocument)); if (nPageObjectModified == 1 && bSendEvents) FireContainerChange( - MasterPageContainerChangeEvent::DATA_CHANGED, + MasterPageContainerChangeEvent::EventType::DATA_CHANGED, rpDescriptor->maToken); if (nPageObjectModified == -1 && bSendEvents) FireContainerChange( - MasterPageContainerChangeEvent::CHILD_REMOVED, + MasterPageContainerChangeEvent::EventType::CHILD_REMOVED, rpDescriptor->maToken); if (nPageObjectModified && ! mbFirstPageObjectSeen) UpdatePreviewSizePixel(); @@ -981,7 +981,7 @@ bool MasterPageContainer::Implementation::UpdateDescriptor ( if (bPreviewModified && bSendEvents) FireContainerChange( - MasterPageContainerChangeEvent::PREVIEW_CHANGED, + MasterPageContainerChangeEvent::EventType::PREVIEW_CHANGED, rpDescriptor->maToken); return nPageObjectModified || bPreviewModified; |