summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-05-21 12:48:36 +0200
committerNoel Grandin <noel@peralex.com>2015-05-21 12:50:52 +0200
commit5b248f1348260f953686b20621255aece57358fe (patch)
treebb33643818bb214ebf699a021c1e9913fe19e06f /sfx2
parentd9ba19147d6261469407a50bad4c9a04927fb166 (diff)
convert MENUBAR_MODE constants to scoped enum
Change-Id: Ie4cda46d02e82cca1710603cfb3af379c702d9d7
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/dialog/backingcomp.cxx2
-rw-r--r--sfx2/source/view/viewfrm.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/dialog/backingcomp.cxx b/sfx2/source/dialog/backingcomp.cxx
index f11d9ffac79d..b69ee9633e88 100644
--- a/sfx2/source/dialog/backingcomp.cxx
+++ b/sfx2/source/dialog/backingcomp.cxx
@@ -410,7 +410,7 @@ void SAL_CALL BackingComp::attachFrame( /*IN*/ const css::uno::Reference< css::f
if (pParent && pParent->IsFullScreenMode())
{
pParent->ShowFullScreenMode(false);
- pParent->SetMenuBarMode(MENUBAR_MODE_NORMAL);
+ pParent->SetMenuBarMode(MenuBarMode::Normal);
}
// create the menu bar for the backing component
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx
index fc8dbae2d294..8119842b38a6 100644
--- a/sfx2/source/view/viewfrm.cxx
+++ b/sfx2/source/view/viewfrm.cxx
@@ -2913,7 +2913,7 @@ void SfxViewFrame::MiscExec_Impl( SfxRequest& rReq )
}
}
pWork->ShowFullScreenMode( bNewFullScreenMode );
- pWork->SetMenuBarMode( bNewFullScreenMode ? MENUBAR_MODE_HIDE : MENUBAR_MODE_NORMAL );
+ pWork->SetMenuBarMode( bNewFullScreenMode ? MenuBarMode::Hide : MenuBarMode::Normal );
GetFrame().GetWorkWindow_Impl()->SetFullScreen_Impl( bNewFullScreenMode );
if ( !pItem )
rReq.AppendItem( SfxBoolItem( SID_WIN_FULLSCREEN, bNewFullScreenMode ) );