diff options
author | Noel Grandin <noel@peralex.com> | 2016-08-24 12:21:43 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-08-25 08:40:00 +0200 |
commit | 6cb3884898a39f57bcb30b2663a258e3971083fe (patch) | |
tree | fec175ce91a26724056f6c2f99b861ef1f574850 /include | |
parent | fdaa46f065b52780a5115dbd1e59476bb44e39ab (diff) |
convert E3dDragConstraint to typed_flags_set
Change-Id: Idd6d3e1ed0248b54247b2d86ce771ac5f5bb7c41
Diffstat (limited to 'include')
-rw-r--r-- | include/svx/def3d.hxx | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/include/svx/def3d.hxx b/include/svx/def3d.hxx index cded22939c3c..e7eeec93690c 100644 --- a/include/svx/def3d.hxx +++ b/include/svx/def3d.hxx @@ -20,6 +20,7 @@ #ifndef INCLUDED_SVX_DEF3D_HXX #define INCLUDED_SVX_DEF3D_HXX +#include <o3tl/typed_flags_set.hxx> #include <math.h> const double fPiDiv180 = 0.01745329251994; @@ -29,11 +30,17 @@ const double EPSILON = 1e-06; // 3D helper functions -enum E3dDragConstraint { E3DDRAG_CONSTR_X = 0x0001, - E3DDRAG_CONSTR_Y = 0x0002, - E3DDRAG_CONSTR_Z = 0x0004, - E3DDRAG_CONSTR_XYZ = 0x0007 +enum class E3dDragConstraint +{ + X = 0x0001, + Y = 0x0002, + Z = 0x0004, + XYZ = X | Y | Z }; +namespace o3tl +{ + template<> struct typed_flags<E3dDragConstraint> : is_typed_flags<E3dDragConstraint, 0x7> {}; +} #endif |