diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-12 15:25:11 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-13 12:14:03 +0200 |
commit | 777ed3ffd8ee46997fa74442b46205fc8eca2cde (patch) | |
tree | 71d413a5581e6835a40ce6fd35db6ef9e3e91860 /reportdesign/inc | |
parent | a8b366af313a4ffd0ae5766cf4fc281c7efc83f3 (diff) |
convert ControlModification to scoped enum
Change-Id: Ia81f1d9f27fb91b831c2ffc3572e119946b085d1
Reviewed-on: https://gerrit.libreoffice.org/36505
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'reportdesign/inc')
-rw-r--r-- | reportdesign/inc/RptDef.hxx | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/reportdesign/inc/RptDef.hxx b/reportdesign/inc/RptDef.hxx index 329012368c10..0007bedd9c1a 100644 --- a/reportdesign/inc/RptDef.hxx +++ b/reportdesign/inc/RptDef.hxx @@ -58,20 +58,20 @@ namespace rptui #define OBJ_DLG_SUBREPORT ((sal_uInt16) OBJ_MAXI + 6) // allows the alignment and resizing of controls -namespace ControlModification +enum class ControlModification { - static const ::sal_Int32 NONE = (sal_Int32)0; - static const ::sal_Int32 LEFT = (sal_Int32)1; - static const ::sal_Int32 RIGHT = (sal_Int32)2; - static const ::sal_Int32 TOP = (sal_Int32)3; - static const ::sal_Int32 BOTTOM = (sal_Int32)4; - static const ::sal_Int32 CENTER_HORIZONTAL = (sal_Int32)5; - static const ::sal_Int32 CENTER_VERTICAL = (sal_Int32)6; - static const ::sal_Int32 WIDTH_SMALLEST = (sal_Int32)7; - static const ::sal_Int32 HEIGHT_SMALLEST = (sal_Int32)8; - static const ::sal_Int32 WIDTH_GREATEST = (sal_Int32)9; - static const ::sal_Int32 HEIGHT_GREATEST = (sal_Int32)10; -} + NONE = 0, + LEFT = 1, + RIGHT = 2, + TOP = 3, + BOTTOM = 4, + CENTER_HORIZONTAL = 5, + CENTER_VERTICAL = 6, + WIDTH_SMALLEST = 7, + HEIGHT_SMALLEST = 8, + WIDTH_GREATEST = 9, + HEIGHT_GREATEST = 10, +}; class AnyConverter : public ::std::binary_function< OUString,css::uno::Any,css::uno::Any > { |