summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-04-22 14:17:00 +0200
committerNoel Grandin <noel@peralex.com>2015-04-29 10:41:37 +0200
commit9fb3b992df26283e21e89bb2121b3cadd4b22c4d (patch)
tree46d9b3a33c181376d6cc75c673110529d1134715 /include
parentc97b81ea139a2299d9528f4ef04d0f88acc60c09 (diff)
convert PREVIEW_OBJECTTYPE constants to scoped enum
Change-Id: I5c370627bc8ccf1de2ae7f3764cf2236215d5379
Diffstat (limited to 'include')
-rw-r--r--include/svx/dlgctl3d.hxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/include/svx/dlgctl3d.hxx b/include/svx/dlgctl3d.hxx
index 762fa1c9bd22..4d704d63814a 100644
--- a/include/svx/dlgctl3d.hxx
+++ b/include/svx/dlgctl3d.hxx
@@ -33,8 +33,7 @@ class E3dView;
class E3dPolyScene;
class E3dObject;
-#define PREVIEW_OBJECTTYPE_SPHERE 0x0000
-#define PREVIEW_OBJECTTYPE_CUBE 0x0001
+enum class SvxPreviewObjectType { SPHERE, CUBE };
class SVX_DLLPUBLIC SAL_WARN_UNUSED Svx3DPreviewControl : public Control
{
@@ -44,7 +43,7 @@ protected:
E3dView* mp3DView;
E3dPolyScene* mpScene;
E3dObject* mp3DObj;
- sal_uInt16 mnObjectType;
+ SvxPreviewObjectType mnObjectType;
void Construct();
@@ -59,8 +58,8 @@ public:
virtual Size GetOptimalSize() const SAL_OVERRIDE;
void Reset();
- virtual void SetObjectType(sal_uInt16 nType);
- sal_uInt16 GetObjectType() const { return mnObjectType; }
+ virtual void SetObjectType(SvxPreviewObjectType nType);
+ SvxPreviewObjectType GetObjectType() const { return mnObjectType; }
SfxItemSet Get3DAttributes() const;
virtual void Set3DAttributes(const SfxItemSet& rAttr);
};
@@ -111,7 +110,7 @@ public:
virtual void Tracking( const TrackingEvent& rTEvt ) SAL_OVERRIDE;
virtual void Resize() SAL_OVERRIDE;
- virtual void SetObjectType(sal_uInt16 nType) SAL_OVERRIDE;
+ virtual void SetObjectType(SvxPreviewObjectType nType) SAL_OVERRIDE;
// register user callback
void SetUserInteractiveChangeCallback(Link aNew) { maUserInteractiveChangeCallback = aNew; }