summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-12-21 09:28:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-12-21 10:34:13 +0000
commit735a002507e914bc0c35504a85dc0585b25b76ce (patch)
treeacd91105fa2d9128cc10b7f2118cef23b8015921 /sd
parentc95293de347597bb32d3c4aa5429b21385cae97a (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 'sd')
-rw-r--r--sd/source/ui/sidebar/SlideBackground.cxx8
-rw-r--r--sd/source/ui/slidesorter/shell/SlideSorterViewShell.cxx4
-rw-r--r--sd/source/ui/table/tableobjectbar.cxx2
-rw-r--r--sd/source/ui/unoidl/DrawController.cxx16
-rw-r--r--sd/source/ui/view/drviewsa.cxx2
-rw-r--r--sd/source/ui/view/outlnvsh.cxx2
6 files changed, 17 insertions, 17 deletions
diff --git a/sd/source/ui/sidebar/SlideBackground.cxx b/sd/source/ui/sidebar/SlideBackground.cxx
index 6673ee838ec3..78c204f9ee35 100644
--- a/sd/source/ui/sidebar/SlideBackground.cxx
+++ b/sd/source/ui/sidebar/SlideBackground.cxx
@@ -392,13 +392,13 @@ IMPL_LINK(SlideBackground, EventMultiplexerListener,
if(!mbTitle)
{
vcl::EnumContext aDrawOtherContext(vcl::EnumContext::Application::Draw,
- vcl::EnumContext::Context_DrawPage);
+ vcl::EnumContext::Context::DrawPage);
vcl::EnumContext aDrawMasterContext(vcl::EnumContext::Application::Draw,
- vcl::EnumContext::Context_MasterPage);
+ vcl::EnumContext::Context::MasterPage);
vcl::EnumContext aImpressOtherContext(vcl::EnumContext::Application::Impress,
- vcl::EnumContext::Context_DrawPage);
+ vcl::EnumContext::Context::DrawPage);
vcl::EnumContext aImpressMasterContext(vcl::EnumContext::Application::Impress,
- vcl::EnumContext::Context_MasterPage);
+ vcl::EnumContext::Context::MasterPage);
if(maContext == aDrawOtherContext || maContext == aDrawMasterContext)
{
mpMasterLabel->SetText(SD_RESSTR(STR_MASTERPAGE_NAME));
diff --git a/sd/source/ui/slidesorter/shell/SlideSorterViewShell.cxx b/sd/source/ui/slidesorter/shell/SlideSorterViewShell.cxx
index 681385ac93fe..6190a6007168 100644
--- a/sd/source/ui/slidesorter/shell/SlideSorterViewShell.cxx
+++ b/sd/source/ui/slidesorter/shell/SlideSorterViewShell.cxx
@@ -464,7 +464,7 @@ void SlideSorterViewShell::Activate (bool bIsMDIActivate)
ArrangeGUIElements();
// Determine and broadcast the context that belongs to the main view shell.
- EnumContext::Context eContext = EnumContext::Context_Unknown;
+ EnumContext::Context eContext = EnumContext::Context::Unknown;
std::shared_ptr<ViewShell> pMainViewShell (GetViewShellBase().GetMainViewShell());
ViewShell::ShellType eMainViewShellType (
pMainViewShell
@@ -476,7 +476,7 @@ void SlideSorterViewShell::Activate (bool bIsMDIActivate)
case ViewShell::ST_SLIDE_SORTER:
case ViewShell::ST_NOTES:
case ViewShell::ST_DRAW:
- eContext = EnumContext::Context_DrawPage;
+ eContext = EnumContext::Context::DrawPage;
if( nullptr != dynamic_cast< const DrawViewShell *>( pMainViewShell.get() ))
{
DrawViewShell* pDrawViewShell = dynamic_cast<DrawViewShell*>(pMainViewShell.get());
diff --git a/sd/source/ui/table/tableobjectbar.cxx b/sd/source/ui/table/tableobjectbar.cxx
index 1ded42c755c9..e6c516512086 100644
--- a/sd/source/ui/table/tableobjectbar.cxx
+++ b/sd/source/ui/table/tableobjectbar.cxx
@@ -93,7 +93,7 @@ TableObjectBar::TableObjectBar( ViewShell* pSdViewShell, ::sd::View* pSdView )
SetRepeatTarget( mpView );
SetHelpId( SD_IF_SDDRAWTABLEOBJECTBAR );
SetName( SD_RESSTR( RID_DRAW_TABLE_TOOLBOX ) );
- SetContextName(vcl::EnumContext::GetContextName(vcl::EnumContext::Context_Table));
+ SetContextName(vcl::EnumContext::GetContextName(vcl::EnumContext::Context::Table));
}
TableObjectBar::~TableObjectBar()
diff --git a/sd/source/ui/unoidl/DrawController.cxx b/sd/source/ui/unoidl/DrawController.cxx
index a34d55b15092..446cad75ba2f 100644
--- a/sd/source/ui/unoidl/DrawController.cxx
+++ b/sd/source/ui/unoidl/DrawController.cxx
@@ -510,37 +510,37 @@ void DrawController::BroadcastContextChange() const
if ( ! pViewShell)
return;
- EnumContext::Context eContext (EnumContext::Context_Unknown);
+ EnumContext::Context eContext (EnumContext::Context::Unknown);
switch (pViewShell->GetShellType())
{
case ViewShell::ST_IMPRESS:
case ViewShell::ST_DRAW:
if (mbMasterPageMode)
- eContext = EnumContext::Context_MasterPage;
+ eContext = EnumContext::Context::MasterPage;
else
- eContext = EnumContext::Context_DrawPage;
+ eContext = EnumContext::Context::DrawPage;
break;
case ViewShell::ST_NOTES:
- eContext = EnumContext::Context_NotesPage;
+ eContext = EnumContext::Context::NotesPage;
break;
case ViewShell::ST_HANDOUT:
- eContext = EnumContext::Context_HandoutPage;
+ eContext = EnumContext::Context::HandoutPage;
break;
case ViewShell::ST_OUTLINE:
- eContext = EnumContext::Context_OutlineText;
+ eContext = EnumContext::Context::OutlineText;
break;
case ViewShell::ST_SLIDE_SORTER:
- eContext = EnumContext::Context_SlidesorterPage;
+ eContext = EnumContext::Context::SlidesorterPage;
break;
case ViewShell::ST_PRESENTATION:
case ViewShell::ST_NONE:
default:
- eContext = EnumContext::Context_Empty;
+ eContext = EnumContext::Context::Empty;
break;
}
diff --git a/sd/source/ui/view/drviewsa.cxx b/sd/source/ui/view/drviewsa.cxx
index 17b136025af7..5257e60796b3 100644
--- a/sd/source/ui/view/drviewsa.cxx
+++ b/sd/source/ui/view/drviewsa.cxx
@@ -109,7 +109,7 @@ DrawViewShell::DrawViewShell( SfxViewFrame* pFrame, ViewShellBase& rViewShellBas
, mpSelectionChangeHandler(new svx::sidebar::SelectionChangeHandler(
[this] () { return this->GetSidebarContextName(); },
uno::Reference<frame::XController>(&rViewShellBase.GetDrawController()),
- vcl::EnumContext::Context_Default))
+ vcl::EnumContext::Context::Default))
{
if (pFrameViewArgument != nullptr)
mpFrameView = pFrameViewArgument;
diff --git a/sd/source/ui/view/outlnvsh.cxx b/sd/source/ui/view/outlnvsh.cxx
index b6200179769e..6ffd4d6384df 100644
--- a/sd/source/ui/view/outlnvsh.cxx
+++ b/sd/source/ui/view/outlnvsh.cxx
@@ -203,7 +203,7 @@ OutlineViewShell::OutlineViewShell (
Construct(GetDocSh());
- SetContextName(vcl::EnumContext::GetContextName(vcl::EnumContext::Context_OutlineText));
+ SetContextName(vcl::EnumContext::GetContextName(vcl::EnumContext::Context::OutlineText));
m_StrOldPageName.clear();