summaryrefslogtreecommitdiff
path: root/sw/source/uibase/docvw/romenu.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-11-24 16:05:22 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-11-25 09:07:48 +0200
commit025604bbfa093ec4c29280793d2230e3cc3534d7 (patch)
tree46769f77a5398f5b3c35fd1983e8209a094ab7b4 /sw/source/uibase/docvw/romenu.cxx
parent11980815c782ebfa4003225fc5208e9f05225ba8 (diff)
replace URLLOAD constants with o3tl::typed_flags
Change-Id: Ief6cb3dfc53da8cbae0feded9e215905c7a8459c
Diffstat (limited to 'sw/source/uibase/docvw/romenu.cxx')
-rw-r--r--sw/source/uibase/docvw/romenu.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/sw/source/uibase/docvw/romenu.cxx b/sw/source/uibase/docvw/romenu.cxx
index 11a4e301e8ae..482d7949a08e 100644
--- a/sw/source/uibase/docvw/romenu.cxx
+++ b/sw/source/uibase/docvw/romenu.cxx
@@ -265,12 +265,13 @@ void SwReadOnlyPopup::Execute( vcl::Window* pWin, sal_uInt16 nId )
TransferDataContainer* pClipCntnr = nullptr;
sal_uInt16 nExecId = USHRT_MAX;
- sal_uInt16 nFilter = USHRT_MAX;
+ bool bFilterSet = false;
+ LoadUrlFlags nFilter;
switch( nId )
{
case SID_WIN_FULLSCREEN : nExecId = SID_WIN_FULLSCREEN; break;
- case MN_READONLY_OPENURL: nFilter = URLLOAD_NOFILTER; break;
- case MN_READONLY_OPENURLNEW: nFilter = URLLOAD_NEWVIEW; break;
+ case MN_READONLY_OPENURL: nFilter = LoadUrlFlags::NONE; bFilterSet = true; break;
+ case MN_READONLY_OPENURLNEW: nFilter = LoadUrlFlags::NewView; bFilterSet = true; break;
case MN_READONLY_COPY: nExecId = SID_COPY; break;
case MN_READONLY_EDITDOC: nExecId = SID_EDITDOC; break;
@@ -327,7 +328,7 @@ void SwReadOnlyPopup::Execute( vcl::Window* pWin, sal_uInt16 nId )
}
if( USHRT_MAX != nExecId )
rDis.GetBindings()->Execute( nExecId );
- if( USHRT_MAX != nFilter )
+ if( bFilterSet )
::LoadURL(rSh, sURL, nFilter, sTargetFrameName);
if( pClipCntnr )