summaryrefslogtreecommitdiff
path: root/include/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-04-24 14:39:21 +0200
committerNoel Grandin <noel@peralex.com>2015-04-29 10:41:39 +0200
commit45ba5f2f24791ab659111527a8350df4898b0e0c (patch)
treec8cf1a844659348a7dcce6d2d1e8a102503a6462 /include/svx
parent11bce3212788d03fd53b9f005eaf0e70e6277763 (diff)
convert IMPSDR_ constants to scoped enum
Change-Id: Id267196397e2aa743d75f03932b3301ad462d800
Diffstat (limited to 'include/svx')
-rw-r--r--include/svx/svdmrkv.hxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/svx/svdmrkv.hxx b/include/svx/svdmrkv.hxx
index 18d2a83c71a7..28c37454986e 100644
--- a/include/svx/svdmrkv.hxx
+++ b/include/svx/svdmrkv.hxx
@@ -83,9 +83,13 @@ enum SdrViewEditMode {SDREDITMODE_EDIT, // Also known as arrow or poin
SDREDITMODE_CREATE, // Tool for object creation
SDREDITMODE_GLUEPOINTEDIT}; // Glue point editing mode
-#define IMPSDR_POINTSDESCRIPTION 0x0001
-#define IMPSDR_GLUEPOINTSDESCRIPTION 0x0002
-
+/** options for ImpTakeDescriptionStr() */
+enum class ImpTakeDescriptionOptions
+{
+ NONE = 0,
+ POINTS = 1,
+ GLUEPOINTS = 2,
+};
class ImplMarkingOverlay;
@@ -161,7 +165,7 @@ protected:
SdrObject* CheckSingleSdrObjectHit(const Point& rPnt, sal_uInt16 nTol, SdrObjList* pOL, SdrPageView* pPV, SdrSearchOptions nOptions, const SetOfByte* pMVisLay, SdrObject*& rpRootObj) const;
SdrObject* CheckSingleSdrObjectHit(const Point& rPnt, sal_uInt16 nTol, SdrObjList* pOL, SdrPageView* pPV, SdrSearchOptions nOptions, const SetOfByte* pMVisLay, SdrObject*& rpRootObj,const SdrMarkList * pMarkList) const;
bool ImpIsFrameHandles() const;
- void ImpTakeDescriptionStr(sal_uInt16 nStrCacheID, OUString& rStr, sal_uInt16 nVal=0, sal_uInt16 nOpt=0) const;
+ void ImpTakeDescriptionStr(sal_uInt16 nStrCacheID, OUString& rStr, sal_uInt16 nVal=0, ImpTakeDescriptionOptions nOpt=ImpTakeDescriptionOptions::NONE) const;
// Generates a string including degrees symbol, from an angel specification in 1/100deg
bool ImpMarkPoint(SdrHdl* pHdl, SdrMark* pMark, bool bUnmark);