diff options
author | Noel Grandin <noel@peralex.com> | 2016-08-19 14:11:18 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-08-22 08:24:48 +0200 |
commit | e382aa144561dab9295b17c4d5b29d4bd33ad687 (patch) | |
tree | 7d2d40c6f6cecf57f46e27adeeaa0a8df9279188 /include/svx/svdmrkv.hxx | |
parent | b6d5719d06190f01e43ed11b190c61fa9612de05 (diff) |
convert SdrHitKind to scoped enum
Change-Id: Ia7a18814fed7787e47ac2d3c02654a3648c5491e
Diffstat (limited to 'include/svx/svdmrkv.hxx')
-rw-r--r-- | include/svx/svdmrkv.hxx | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/include/svx/svdmrkv.hxx b/include/svx/svdmrkv.hxx index 3bfc6eb217b8..db67b26a9610 100644 --- a/include/svx/svdmrkv.hxx +++ b/include/svx/svdmrkv.hxx @@ -56,19 +56,21 @@ namespace o3tl template<> struct typed_flags<SdrSearchOptions> : is_typed_flags<SdrSearchOptions, 0xbfff> {}; } -enum SdrHitKind {SDRHIT_NONE, // No hit - SDRHIT_OBJECT, // Hit - /*SDRHIT_REFPOINT*/ // Reference point (Rotation axis, axis of reflextion) hit - SDRHIT_HANDLE, // Marking handle - SDRHIT_HELPLINE, // Reference line - SDRHIT_GLUEPOINT, // Glue point - SDRHIT_TEXTEDIT, // Open OutlinerView was hit - SDRHIT_TEXTEDITOBJ, // Object for SdrBeginTextEdit (Textbereich) - SDRHIT_URLFIELD, // Field in TextObj was hit (while it is currently not edited) - SDRHIT_MACRO, // Object for BegMacroObj - SDRHIT_MARKEDOBJECT, // Marked object (e.g. for dragging) - SDRHIT_UNMARKEDOBJECT, // non-marked Object (e.g. for marking) - SDRHIT_CELL}; // hit on a cell inside a table shape (outside of the cells text area) +enum class SdrHitKind +{ + NONE, // No hit + Object, // Hit + Handle, // Marking handle + HelpLine, // Reference line + Gluepoint, // Glue point + TextEdit, // Open OutlinerView was hit + TextEditObj, // Object for SdrBeginTextEdit (Textbereich) + UrlField, // Field in TextObj was hit (while it is currently not edited) + Macro, // Object for BegMacroObj + MarkedObject, // Marked object (e.g. for dragging) + UnmarkedObject, // non-marked Object (e.g. for marking) + 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 |