diff options
author | Noel Grandin <noel@peralex.com> | 2016-08-19 14:31:46 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-08-22 08:24:48 +0200 |
commit | 2309217a55c8d5e6bdde2a6d4775f10415505fcd (patch) | |
tree | 3d6be2306ba94eca297007152c4f53775929a358 /include/svx/svdmrkv.hxx | |
parent | e382aa144561dab9295b17c4d5b29d4bd33ad687 (diff) |
convert SdrViewEditMode to scoped enum
Change-Id: I1f58efceaee7346187f92c7ebaf901abc305ac33
Diffstat (limited to 'include/svx/svdmrkv.hxx')
-rw-r--r-- | include/svx/svdmrkv.hxx | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/include/svx/svdmrkv.hxx b/include/svx/svdmrkv.hxx index db67b26a9610..a4217bf53e96 100644 --- a/include/svx/svdmrkv.hxx +++ b/include/svx/svdmrkv.hxx @@ -72,9 +72,11 @@ enum class SdrHitKind Cell // hit on a cell inside a table shape (outside of the cells text area) }; -enum SdrViewEditMode {SDREDITMODE_EDIT, // Also known as arrow or pointer mode - SDREDITMODE_CREATE, // Tool for object creation - SDREDITMODE_GLUEPOINTEDIT}; // Glue point editing mode +enum class SdrViewEditMode { + Edit, // Also known as arrow or pointer mode + Create, // Tool for object creation + GluePointEdit // Glue point editing mode +}; /** options for ImpTakeDescriptionStr() */ enum class ImpTakeDescriptionOptions @@ -204,12 +206,12 @@ public: void SetEditMode(SdrViewEditMode eMode); SdrViewEditMode GetEditMode() const { return meEditMode; } - void SetEditMode(bool bOn=true) { SetEditMode(bOn?SDREDITMODE_EDIT:SDREDITMODE_CREATE); } - bool IsEditMode() const { return meEditMode==SDREDITMODE_EDIT; } - void SetCreateMode(bool bOn=true) { SetEditMode(bOn?SDREDITMODE_CREATE:SDREDITMODE_EDIT); } - bool IsCreateMode() const { return meEditMode==SDREDITMODE_CREATE; } - void SetGluePointEditMode(bool bOn=true) { SetEditMode(bOn?SDREDITMODE_GLUEPOINTEDIT:meEditMode0); } - bool IsGluePointEditMode() const { return meEditMode==SDREDITMODE_GLUEPOINTEDIT; } + void SetEditMode(bool bOn=true) { SetEditMode(bOn?SdrViewEditMode::Edit:SdrViewEditMode::Create); } + bool IsEditMode() const { return meEditMode==SdrViewEditMode::Edit; } + void SetCreateMode(bool bOn=true) { SetEditMode(bOn?SdrViewEditMode::Create:SdrViewEditMode::Edit); } + bool IsCreateMode() const { return meEditMode==SdrViewEditMode::Create; } + void SetGluePointEditMode(bool bOn=true) { SetEditMode(bOn?SdrViewEditMode::GluePointEdit:meEditMode0); } + bool IsGluePointEditMode() const { return meEditMode==SdrViewEditMode::GluePointEdit; } void SetDesignMode(bool bOn = true); bool IsDesignMode() const { return mbDesignMode; } |