summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-04-20 14:43:49 +0200
committerNoel Grandin <noel@peralex.com>2015-04-22 10:28:41 +0200
commit909fdd8d01e24c5a7a9fe6083e2a050d7a50a7cf (patch)
tree6b0ab80775d5d7edbb16013219f985274a50c30d /include
parentf3632c2c0a53f61c9ceab39e8861d2029c0b0992 (diff)
convert FCT_ constants to scoped enum
Change-Id: I57381aebad1d8719f2b5165e290e06024472b65f
Diffstat (limited to 'include')
-rw-r--r--include/svtools/fmtfield.hxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/include/svtools/fmtfield.hxx b/include/svtools/fmtfield.hxx
index bda86e2f4447..9e8eaf7fe4cb 100644
--- a/include/svtools/fmtfield.hxx
+++ b/include/svtools/fmtfield.hxx
@@ -26,11 +26,15 @@
namespace validation { class NumberValidator; }
-typedef sal_uInt16 FORMAT_CHANGE_TYPE;
-#define FCT_KEYONLY 0x00 // only a new key was set
-#define FCT_FORMATTER 0x01 // a new formatter was set, usually implies a change of the key, too
-#define FCT_PRECISION 0x02 // a new precision was set
-#define FCT_THOUSANDSSEP 0x03 // the thousands separator setting changed
+enum class FORMAT_CHANGE_TYPE
+{
+ KEYONLY = 0x00, // only a new key was set
+ FORMATTER = 0x01, // a new formatter was set, usually implies a change of the key, too
+ PRECISION = 0x02, // a new precision was set
+ THOUSANDSSEP = 0x03, // the thousands separator setting changed
+ CURRENCY_SYMBOL = 0x10,
+ CURRSYM_POSITION = 0x20,
+};
class SVT_DLLPUBLIC FormattedField : public SpinField
@@ -275,10 +279,6 @@ protected:
};
-#define FCT_CURRENCY_SYMBOL 0x10
-#define FCT_CURRSYM_POSITION 0x20
-
-
class DoubleCurrencyField : public FormattedField
{
OUString m_sCurrencySymbol;