summaryrefslogtreecommitdiff
path: root/include/editeng
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-09-15 09:50:54 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-09-15 10:38:11 +0200
commit4da85bf822dcce7da6c2243b408652af8eb55b71 (patch)
treeaeaed312f544704447e3255b55c2be6e42f92ca2 /include/editeng
parent7151bbfca25d92dff1f0968c4baaae60d724c060 (diff)
convert SvxAuthorFormat to scoped enum
Change-Id: I5553ea640a4483c98ec5f5240594e30a72c968f8 Reviewed-on: https://gerrit.libreoffice.org/42311 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/editeng')
-rw-r--r--include/editeng/flditem.hxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/include/editeng/flditem.hxx b/include/editeng/flditem.hxx
index d4962fb2ff9c..b86916aa59f2 100644
--- a/include/editeng/flditem.hxx
+++ b/include/editeng/flditem.hxx
@@ -328,11 +328,12 @@ public:
enum SvxAuthorType { SVXAUTHORTYPE_FIX, SVXAUTHORTYPE_VAR };
-enum SvxAuthorFormat { SVXAUTHORFORMAT_FULLNAME = 0, // full name
- SVXAUTHORFORMAT_NAME, // Only Last name
- SVXAUTHORFORMAT_FIRSTNAME, // Only first name
- SVXAUTHORFORMAT_SHORTNAME // Initials
- };
+enum class SvxAuthorFormat {
+ FullName, // full name
+ LastName, // Only Last name
+ FirstName, // Only first name
+ ShortName // Initials
+};
class EDITENG_DLLPUBLIC SvxAuthorField : public SvxFieldData
{
@@ -350,7 +351,7 @@ public:
const OUString& rLastName,
const OUString& rShortName,
SvxAuthorType eType = SVXAUTHORTYPE_VAR,
- SvxAuthorFormat eFormat = SVXAUTHORFORMAT_FULLNAME );
+ SvxAuthorFormat eFormat = SvxAuthorFormat::FullName );
SvxAuthorType GetType() const { return eType; }
void SetType( SvxAuthorType eTp ) { eType = eTp; }