summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-08-17 14:02:09 +0200
committerNoel Grandin <noel@peralex.com>2016-08-18 08:49:02 +0200
commit65a4c406e9c0f2953547fbe006ff38644f489fc8 (patch)
tree7ed2f3cf8f11ea68a63afe8dd20761fff556a393 /include
parent4a4c1bf4423a8b426c56c8d2b7013d6b5109309e (diff)
convert ProjectionType to scoped enum
Change-Id: Iaab8f2ac68964272e3ea00195b3b05c520a1388d
Diffstat (limited to 'include')
-rw-r--r--include/svx/scene3d.hxx2
-rw-r--r--include/svx/svx3ditems.hxx2
-rw-r--r--include/svx/viewpt3d.hxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/include/svx/scene3d.hxx b/include/svx/scene3d.hxx
index f8642e02b540..be92d7ae5982 100644
--- a/include/svx/scene3d.hxx
+++ b/include/svx/scene3d.hxx
@@ -101,7 +101,7 @@ public:
sal_uInt32 RemapOrdNum(sal_uInt32 nOrdNum) const;
- // Perspective: enum ProjectionType { PR_PARALLEL, PR_PERSPECTIVE }
+ // Perspective: enum ProjectionType { ProjectionType::Parallel, ProjectionType::Perspective }
ProjectionType GetPerspective() const
{ return (ProjectionType) static_cast<const Svx3DPerspectiveItem&>(GetObjectItemSet().Get(SDRATTR_3DSCENE_PERSPECTIVE)).GetValue(); }
diff --git a/include/svx/svx3ditems.hxx b/include/svx/svx3ditems.hxx
index 5a784bcb5023..c2472c976749 100644
--- a/include/svx/svx3ditems.hxx
+++ b/include/svx/svx3ditems.hxx
@@ -145,7 +145,7 @@ inline SfxBoolItem makeSvx3DTextureFilterItem(bool bVal) {
// Svx3D _3DSCENE_ Items
class SVX_DLLPUBLIC Svx3DPerspectiveItem : public SfxUInt16Item {
public:
- Svx3DPerspectiveItem(sal_uInt16 nVal = (sal_uInt16)PR_PERSPECTIVE);
+ Svx3DPerspectiveItem(ProjectionType nVal = ProjectionType::Perspective);
// use drawing::ProjectionMode
SVX_DLLPRIVATE virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
diff --git a/include/svx/viewpt3d.hxx b/include/svx/viewpt3d.hxx
index 9595a4b4d319..f085dd45f76a 100644
--- a/include/svx/viewpt3d.hxx
+++ b/include/svx/viewpt3d.hxx
@@ -35,7 +35,7 @@ namespace basegfx { class B3DRange; } // end of namespace basegfx
|*
\************************************************************************/
-enum ProjectionType { PR_PARALLEL, PR_PERSPECTIVE };
+enum class ProjectionType { Parallel, Perspective };
/*************************************************************************