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 /include | |
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 'include')
-rw-r--r-- | include/vcl/EnumContext.hxx | 74 | ||||
-rw-r--r-- | include/vcl/IContext.hxx | 2 |
2 files changed, 38 insertions, 38 deletions
diff --git a/include/vcl/EnumContext.hxx b/include/vcl/EnumContext.hxx index e0f19b002368..f96265c27278 100644 --- a/include/vcl/EnumContext.hxx +++ b/include/vcl/EnumContext.hxx @@ -61,53 +61,53 @@ public: LAST = Application::NONE }; - enum Context + enum class Context { - Context_3DObject, - Context_Annotation, - Context_Auditing, - Context_Axis, - Context_Cell, - Context_Chart, - Context_ChartElements, - Context_Draw, - Context_DrawLine, - Context_DrawPage, - Context_DrawText, - Context_EditCell, - Context_ErrorBar, - Context_Form, - Context_Frame, - Context_Graphic, - Context_Grid, - Context_HandoutPage, - Context_MasterPage, - Context_Media, - Context_MultiObject, - Context_NotesPage, - Context_OLE, - Context_OutlineText, - Context_Pivot, - Context_Series, - Context_SlidesorterPage, - Context_Table, - Context_Text, - Context_TextObject, - Context_Trendline, + ThreeDObject, + Annotation, + Auditing, + Axis, + Cell, + Chart, + ChartElements, + Draw, + DrawLine, + DrawPage, + DrawText, + EditCell, + ErrorBar, + Form, + Frame, + Graphic, + Grid, + HandoutPage, + MasterPage, + Media, + MultiObject, + NotesPage, + OLE, + OutlineText, + Pivot, + Series, + SlidesorterPage, + Table, + Text, + TextObject, + Trendline, // Default context of an application. Do we need this? - Context_Default, + Default, // Used only by deck or panel descriptors. Matches any context. - Context_Any, + Any, // Special context name that is only used when a deck would // otherwise be empty. - Context_Empty, + Empty, - Context_Unknown, + Unknown, - LastContextEnum = Context_Unknown + LAST = Unknown }; EnumContext(); diff --git a/include/vcl/IContext.hxx b/include/vcl/IContext.hxx index 446a845bbbfa..841c9d69e828 100644 --- a/include/vcl/IContext.hxx +++ b/include/vcl/IContext.hxx @@ -21,7 +21,7 @@ class VCL_DLLPUBLIC IContext protected: IContext() { - maContext.push_back( vcl::EnumContext::Context::Context_Any ); + maContext.push_back( vcl::EnumContext::Context::Any ); } public: |