diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-12-21 09:28:30 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-12-21 10:34:13 +0000 |
commit | 735a002507e914bc0c35504a85dc0585b25b76ce (patch) | |
tree | acd91105fa2d9128cc10b7f2118cef23b8015921 /sw | |
parent | c95293de347597bb32d3c4aa5429b21385cae97a (diff) |
convert EnumContext::Context to scoped enum
Change-Id: I16ec63beb801073e5d604d852892c2fd6e8d8fc3
Reviewed-on: https://gerrit.libreoffice.org/32272
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/shells/annotsh.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/shells/beziersh.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/shells/drawsh.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/shells/drformsh.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/shells/drwtxtsh.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/shells/frmsh.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/shells/grfsh.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/shells/mediash.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/shells/olesh.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/shells/tabsh.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/shells/textsh.cxx | 2 |
11 files changed, 11 insertions, 11 deletions
diff --git a/sw/source/uibase/shells/annotsh.cxx b/sw/source/uibase/shells/annotsh.cxx index ae7f5c63fa89..4489deb9aab8 100644 --- a/sw/source/uibase/shells/annotsh.cxx +++ b/sw/source/uibase/shells/annotsh.cxx @@ -156,7 +156,7 @@ SwAnnotationShell::SwAnnotationShell( SwView& r ) : rView(r) { SetPool(SwAnnotationShell::GetAnnotationPool(rView)); - SfxShell::SetContextName(vcl::EnumContext::GetContextName(vcl::EnumContext::Context_Annotation)); + SfxShell::SetContextName(vcl::EnumContext::GetContextName(vcl::EnumContext::Context::Annotation)); } SwAnnotationShell::~SwAnnotationShell() diff --git a/sw/source/uibase/shells/beziersh.cxx b/sw/source/uibase/shells/beziersh.cxx index 088197253f0b..80a451929924 100644 --- a/sw/source/uibase/shells/beziersh.cxx +++ b/sw/source/uibase/shells/beziersh.cxx @@ -63,7 +63,7 @@ SwBezierShell::SwBezierShell(SwView &_rView): SdrView* pSdrView = pSh->GetDrawView(); pSdrView->SetEliminatePolyPointLimitAngle(1500L); - SfxShell::SetContextName(vcl::EnumContext::GetContextName(vcl::EnumContext::Context_Draw)); + SfxShell::SetContextName(vcl::EnumContext::GetContextName(vcl::EnumContext::Context::Draw)); } void SwBezierShell::Execute(SfxRequest &rReq) diff --git a/sw/source/uibase/shells/drawsh.cxx b/sw/source/uibase/shells/drawsh.cxx index fc424d73bbbc..95af0166fc97 100644 --- a/sw/source/uibase/shells/drawsh.cxx +++ b/sw/source/uibase/shells/drawsh.cxx @@ -538,7 +538,7 @@ SwDrawShell::SwDrawShell(SwView &_rView) : SetHelpId(SW_DRAWSHELL); SetName("Draw"); - SfxShell::SetContextName(vcl::EnumContext::GetContextName(vcl::EnumContext::Context_Draw)); + SfxShell::SetContextName(vcl::EnumContext::GetContextName(vcl::EnumContext::Context::Draw)); } // Edit SfxRequests for FontWork diff --git a/sw/source/uibase/shells/drformsh.cxx b/sw/source/uibase/shells/drformsh.cxx index 8d4c678ca8c3..8b21b6338a83 100644 --- a/sw/source/uibase/shells/drformsh.cxx +++ b/sw/source/uibase/shells/drformsh.cxx @@ -250,7 +250,7 @@ SwDrawFormShell::SwDrawFormShell(SwView &_rView) : SetHelpId(SW_DRAWFORMSHELL); GetShell().NoEdit(); SetName("DrawForm"); - SfxShell::SetContextName(vcl::EnumContext::GetContextName(vcl::EnumContext::Context_Form)); + SfxShell::SetContextName(vcl::EnumContext::GetContextName(vcl::EnumContext::Context::Form)); } SwDrawFormShell::~SwDrawFormShell() diff --git a/sw/source/uibase/shells/drwtxtsh.cxx b/sw/source/uibase/shells/drwtxtsh.cxx index b2520f5980f1..4cadee411d4e 100644 --- a/sw/source/uibase/shells/drwtxtsh.cxx +++ b/sw/source/uibase/shells/drwtxtsh.cxx @@ -134,7 +134,7 @@ SwDrawTextShell::SwDrawTextShell(SwView &rV) : rSh.NoEdit(); SetName("ObjectText"); SetHelpId(SW_DRWTXTSHELL); - SfxShell::SetContextName(vcl::EnumContext::GetContextName(vcl::EnumContext::Context_DrawText)); + SfxShell::SetContextName(vcl::EnumContext::GetContextName(vcl::EnumContext::Context::DrawText)); } SwDrawTextShell::~SwDrawTextShell() diff --git a/sw/source/uibase/shells/frmsh.cxx b/sw/source/uibase/shells/frmsh.cxx index 66fd5a567e31..4631e6cd6b6b 100644 --- a/sw/source/uibase/shells/frmsh.cxx +++ b/sw/source/uibase/shells/frmsh.cxx @@ -966,7 +966,7 @@ SwFrameShell::SwFrameShell(SwView &_rView) : // #96392# Use this to announce it is the frame shell who creates the selection. SwTransferable::CreateSelection( _rView.GetWrtShell(), this ); - SfxShell::SetContextName(vcl::EnumContext::GetContextName(vcl::EnumContext::Context_Frame)); + SfxShell::SetContextName(vcl::EnumContext::GetContextName(vcl::EnumContext::Context::Frame)); } SwFrameShell::~SwFrameShell() diff --git a/sw/source/uibase/shells/grfsh.cxx b/sw/source/uibase/shells/grfsh.cxx index 7f2eea848106..73064dff0787 100644 --- a/sw/source/uibase/shells/grfsh.cxx +++ b/sw/source/uibase/shells/grfsh.cxx @@ -945,7 +945,7 @@ SwGrfShell::SwGrfShell(SwView &_rView) : { SetName("Graphic"); SetHelpId(SW_GRFSHELL); - SfxShell::SetContextName(vcl::EnumContext::GetContextName(vcl::EnumContext::Context_Graphic)); + SfxShell::SetContextName(vcl::EnumContext::GetContextName(vcl::EnumContext::Context::Graphic)); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/uibase/shells/mediash.cxx b/sw/source/uibase/shells/mediash.cxx index 51f18658990e..b389c0cb972a 100644 --- a/sw/source/uibase/shells/mediash.cxx +++ b/sw/source/uibase/shells/mediash.cxx @@ -192,7 +192,7 @@ SwMediaShell::SwMediaShell(SwView &_rView) : { SetName("Media Playback"); SetHelpId(SW_MEDIASHELL); - SfxShell::SetContextName(vcl::EnumContext::GetContextName(vcl::EnumContext::Context_Media)); + SfxShell::SetContextName(vcl::EnumContext::GetContextName(vcl::EnumContext::Context::Media)); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/uibase/shells/olesh.cxx b/sw/source/uibase/shells/olesh.cxx index ae67572a2775..328df3c62feb 100644 --- a/sw/source/uibase/shells/olesh.cxx +++ b/sw/source/uibase/shells/olesh.cxx @@ -52,7 +52,7 @@ SwOleShell::SwOleShell(SwView &_rView) : { SetName("Object"); SetHelpId(SW_OLESHELL); - SfxShell::SetContextName(vcl::EnumContext::GetContextName(vcl::EnumContext::Context_OLE)); + SfxShell::SetContextName(vcl::EnumContext::GetContextName(vcl::EnumContext::Context::OLE)); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/uibase/shells/tabsh.cxx b/sw/source/uibase/shells/tabsh.cxx index b2286fa09538..8c63736cf151 100644 --- a/sw/source/uibase/shells/tabsh.cxx +++ b/sw/source/uibase/shells/tabsh.cxx @@ -1406,7 +1406,7 @@ SwTableShell::SwTableShell(SwView &_rView) : { SetName("Table"); SetHelpId(SW_TABSHELL); - SfxShell::SetContextName(vcl::EnumContext::GetContextName(vcl::EnumContext::Context_Table)); + SfxShell::SetContextName(vcl::EnumContext::GetContextName(vcl::EnumContext::Context::Table)); } void SwTableShell::GetFrameBorderState(SfxItemSet &rSet) diff --git a/sw/source/uibase/shells/textsh.cxx b/sw/source/uibase/shells/textsh.cxx index ca6dc13eaf39..d12e0c68fcec 100644 --- a/sw/source/uibase/shells/textsh.cxx +++ b/sw/source/uibase/shells/textsh.cxx @@ -834,7 +834,7 @@ SwTextShell::SwTextShell(SwView &_rView) : { SetName("Text"); SetHelpId(SW_TEXTSHELL); - SfxShell::SetContextName(vcl::EnumContext::GetContextName(vcl::EnumContext::Context_Text)); + SfxShell::SetContextName(vcl::EnumContext::GetContextName(vcl::EnumContext::Context::Text)); } SwTextShell::~SwTextShell() |