diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-22 16:29:47 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-04-29 10:41:38 +0200 |
commit | 88254f057c7d543512e35213d2c19a77846a74e6 (patch) | |
tree | bcc6ed55501ea785164c80616be31c7a157ff220 /include | |
parent | 07f6b08bdc7ac78905e8a6745bb58e026f31c9c7 (diff) |
convert _EDIT constants to scoped enum
Change-Id: I1502692f9491bc55856b7477040bd5918faf4df8
Diffstat (limited to 'include')
-rw-r--r-- | include/svx/optgenrl.hxx | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/include/svx/optgenrl.hxx b/include/svx/optgenrl.hxx index 137ba0f67eb8..102cd18ef334 100644 --- a/include/svx/optgenrl.hxx +++ b/include/svx/optgenrl.hxx @@ -20,22 +20,25 @@ #define INCLUDED_SVX_OPTGENRL_HXX // Defines for setting the focus of a Edit via a slot from external. -#define UNKNOWN_EDIT ((sal_uInt16)0) -#define COMPANY_EDIT ((sal_uInt16)1) -#define FIRSTNAME_EDIT ((sal_uInt16)2) -#define LASTNAME_EDIT ((sal_uInt16)3) -#define STREET_EDIT ((sal_uInt16)4) -#define COUNTRY_EDIT ((sal_uInt16)5) -#define PLZ_EDIT ((sal_uInt16)6) -#define CITY_EDIT ((sal_uInt16)7) -#define STATE_EDIT ((sal_uInt16)8) -#define TITLE_EDIT ((sal_uInt16)9) -#define POSITION_EDIT ((sal_uInt16)10) -#define SHORTNAME_EDIT ((sal_uInt16)11) -#define TELPRIV_EDIT ((sal_uInt16)12) -#define TELCOMPANY_EDIT ((sal_uInt16)13) -#define FAX_EDIT ((sal_uInt16)14) -#define EMAIL_EDIT ((sal_uInt16)15) +enum class EditPosition +{ + UNKNOWN = 0, + COMPANY = 1, + FIRSTNAME = 2, + LASTNAME = 3, + STREET = 4, + COUNTRY = 5, + PLZ = 6, + CITY = 7, + STATE = 8, + TITLE = 9, + POSITION = 10, + SHORTNAME = 11, + TELPRIV = 12, + TELCOMPANY = 13, + FAX = 14, + EMAIL = 15, +}; #endif // INCLUDED_SVX_OPTGENRL_HXX |