summaryrefslogtreecommitdiff
path: root/sd/source/ui/unoidl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-10-11 12:45:47 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-10-11 14:32:40 +0200
commit4caacff9f25498c07d9b99fe0b5db82baa58a22c (patch)
treef828aba3333c82e5becb56706cdfeb7ce7d0461a /sd/source/ui/unoidl
parentd58c604eb35a84b849079d3a690d0a4f428d3121 (diff)
convert EditMode to scoped enum
Change-Id: I7c48978f3e2c173a2ec53eb6559745deeee9b93b
Diffstat (limited to 'sd/source/ui/unoidl')
-rw-r--r--sd/source/ui/unoidl/SdUnoDrawView.cxx6
-rw-r--r--sd/source/ui/unoidl/unopage.cxx4
2 files changed, 5 insertions, 5 deletions
diff --git a/sd/source/ui/unoidl/SdUnoDrawView.cxx b/sd/source/ui/unoidl/SdUnoDrawView.cxx
index 820e77cb6b84..9ec3bbe7f0e3 100644
--- a/sd/source/ui/unoidl/SdUnoDrawView.cxx
+++ b/sd/source/ui/unoidl/SdUnoDrawView.cxx
@@ -64,15 +64,15 @@ SdUnoDrawView::~SdUnoDrawView() throw()
bool SdUnoDrawView::getMasterPageMode() const throw()
{
- return (mrDrawViewShell.GetEditMode() == EM_MASTERPAGE);
+ return (mrDrawViewShell.GetEditMode() == EditMode::MasterPage);
}
void SdUnoDrawView::setMasterPageMode (bool bMasterPageMode) throw()
{
- if ((mrDrawViewShell.GetEditMode() == EM_MASTERPAGE) != bMasterPageMode)
+ if ((mrDrawViewShell.GetEditMode() == EditMode::MasterPage) != bMasterPageMode)
{
mrDrawViewShell.ChangeEditMode (
- bMasterPageMode ? EM_MASTERPAGE : EM_PAGE,
+ bMasterPageMode ? EditMode::MasterPage : EditMode::Page,
mrDrawViewShell.IsLayerModeActive());
}
}
diff --git a/sd/source/ui/unoidl/unopage.cxx b/sd/source/ui/unoidl/unopage.cxx
index 3033a115369e..96e5f6e93b0c 100644
--- a/sd/source/ui/unoidl/unopage.cxx
+++ b/sd/source/ui/unoidl/unopage.cxx
@@ -2346,7 +2346,7 @@ void SAL_CALL SdDrawPage::setName( const OUString& rName )
::sd::DrawViewShell*>(pViewSh);
EditMode eMode = pDrawViewSh->GetEditMode();
- if( eMode == EM_PAGE )
+ if( eMode == EditMode::Page )
{
bool bLayer = pDrawViewSh->IsLayerModeActive();
@@ -3063,7 +3063,7 @@ void SAL_CALL SdMasterPage::setName( const OUString& rName )
static_cast< ::sd::DrawViewShell*>(pViewSh);
EditMode eMode = pDrawViewSh->GetEditMode();
- if( eMode == EM_MASTERPAGE )
+ if( eMode == EditMode::MasterPage )
{
bool bLayer = pDrawViewSh->IsLayerModeActive();