summaryrefslogtreecommitdiff
path: root/sw/source/uibase/app/swmodul1.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2016-03-31 09:06:20 +0200
committerNoel Grandin <noel@peralex.com>2016-03-31 13:23:04 +0200
commit81fbf1386a36972be7d3eff3f7a0c6bab80be764 (patch)
treec0d3a8c6f55d00ebf2024fe69bba403528008f8b /sw/source/uibase/app/swmodul1.cxx
parent77c494de9bf9191a66fb6f90cc2148f60c25c088 (diff)
tdf#84938 convert VIEWOPT_ constants to scoped enum
Change-Id: I7d72ed66ea2cf920a0a03a2aa71b5de079f0cf6e
Diffstat (limited to 'sw/source/uibase/app/swmodul1.cxx')
-rw-r--r--sw/source/uibase/app/swmodul1.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/uibase/app/swmodul1.cxx b/sw/source/uibase/app/swmodul1.cxx
index ad02fe812c8b..c30b361db2a6 100644
--- a/sw/source/uibase/app/swmodul1.cxx
+++ b/sw/source/uibase/app/swmodul1.cxx
@@ -136,18 +136,18 @@ SwView* SwModule::GetNextView(SwView* pView)
// New Master for the settings is set; this affects the current view and all following.
void SwModule::ApplyUsrPref(const SwViewOption &rUsrPref, SwView* pActView,
- sal_uInt16 nDest )
+ SvViewOpt nDest )
{
SwView* pCurrView = pActView;
SwViewShell* pSh = pCurrView ? &pCurrView->GetWrtShell() : nullptr;
SwMasterUsrPref* pPref = const_cast<SwMasterUsrPref*>(GetUsrPref(
- nDest == VIEWOPT_DEST_WEB
- || (nDest != VIEWOPT_DEST_TEXT
+ nDest == SvViewOpt::DestWeb
+ || (nDest != SvViewOpt::DestText
&& pCurrView && dynamic_cast< const SwWebView *>( pCurrView ) != nullptr) ));
// with Uno, only sdbcx::View, but not the Module should be changed
- bool bViewOnly = VIEWOPT_DEST_VIEW_ONLY == nDest;
+ bool bViewOnly = SvViewOpt::DestViewOnly == nDest;
// fob Preview off
SwPagePreview* pPPView;
if( !pCurrView && nullptr != (pPPView = dynamic_cast<SwPagePreview*>( SfxViewShell::Current())) )