diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-13 11:28:49 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-04-15 11:34:21 +0000 |
commit | 9782438a5887c40246016c1f2b5fe12401d2c68d (patch) | |
tree | 9ccf853b12d1bc16bb6b9b48e54317bcdf10856f /sfx2/source/view/viewsh.cxx | |
parent | c2c22d26db03949771d5a0bb4f8abf6d2dc850ea (diff) |
convert SFX_VIEW constants to scoped enum
Change-Id: I327dc1ec722fa9445f13fc5168ad646e272ba9d4
Reviewed-on: https://gerrit.libreoffice.org/15300
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sfx2/source/view/viewsh.cxx')
-rw-r--r-- | sfx2/source/view/viewsh.cxx | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx index af454dd5ab66..111b09c60619 100644 --- a/sfx2/source/view/viewsh.cxx +++ b/sfx2/source/view/viewsh.cxx @@ -297,15 +297,14 @@ public: size_t size() const { return maData.size(); } }; -SfxViewShell_Impl::SfxViewShell_Impl(sal_uInt16 const nFlags) +SfxViewShell_Impl::SfxViewShell_Impl(SfxViewShellFlags const nFlags) : aInterceptorContainer( aMutex ) , m_bControllerSet(false) , m_nPrinterLocks(0) -, m_bCanPrint(SFX_VIEW_CAN_PRINT == (nFlags & SFX_VIEW_CAN_PRINT)) -, m_bHasPrintOptions( - SFX_VIEW_HAS_PRINTOPTIONS == (nFlags & SFX_VIEW_HAS_PRINTOPTIONS)) +, m_bCanPrint(nFlags & SfxViewShellFlags::CAN_PRINT) +, m_bHasPrintOptions(nFlags & SfxViewShellFlags::HAS_PRINTOPTIONS) , m_bPlugInsActive(true) -, m_bIsShowView(SFX_VIEW_NO_SHOW != (nFlags & SFX_VIEW_NO_SHOW)) +, m_bIsShowView(!(nFlags & SfxViewShellFlags::NO_SHOW)) , m_bGotOwnership(false) , m_bGotFrameOwnership(false) , m_nFamily(0xFFFF) // undefined, default set by TemplateDialog @@ -1247,9 +1246,9 @@ void SfxViewShell::SetWindow SfxViewShell::SfxViewShell ( - SfxViewFrame* pViewFrame, /* <SfxViewFrame>, which will be - displayed in this View */ - sal_uInt16 nFlags /* See <SfxViewShell-Flags> */ + SfxViewFrame* pViewFrame, /* <SfxViewFrame>, which will be + displayed in this View */ + SfxViewShellFlags nFlags /* See <SfxViewShell-Flags> */ ) : SfxShell(this) @@ -1257,7 +1256,7 @@ SfxViewShell::SfxViewShell , pFrame(pViewFrame) , pSubShell(0) , pWindow(0) -, bNoNewWindow( 0 != (nFlags & SFX_VIEW_NO_NEWWINDOW) ) +, bNoNewWindow( nFlags & SfxViewShellFlags::NO_NEWWINDOW ) { if ( pViewFrame->GetParentViewFrame() ) |