diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-15 10:21:51 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-15 12:05:07 +0200 |
commit | 2b825fe7f525ac017966044a1400d9095c8b7986 (patch) | |
tree | 2756958cd4839a4b274279c98b96e53b42938d9b /include/editeng | |
parent | 5d060fd07a16c80bd94d27b08fefe1d0aaf418f7 (diff) |
convert SvxFileFormat to scoped enum
Change-Id: Ia75c86a89c89bb22759e1d588ce603701cb7fad5
Reviewed-on: https://gerrit.libreoffice.org/42313
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.hxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/include/editeng/flditem.hxx b/include/editeng/flditem.hxx index 50956528dcef..7d2d9cb689c3 100644 --- a/include/editeng/flditem.hxx +++ b/include/editeng/flditem.hxx @@ -290,11 +290,12 @@ public: enum SvxFileType { SVXFILETYPE_FIX, SVXFILETYPE_VAR }; -enum SvxFileFormat { SVXFILEFORMAT_NAME_EXT = 0, // File name with Extension - SVXFILEFORMAT_FULLPATH, // full path - SVXFILEFORMAT_PATH, // only path - SVXFILEFORMAT_NAME // only file name - }; +enum class SvxFileFormat { + NameAndExt = 0, // File name with Extension + PathFull, // full path + PathOnly, // only path + NameOnly // only file name +}; class EDITENG_DLLPUBLIC SvxExtFileField : public SvxFieldData @@ -309,7 +310,7 @@ public: SvxExtFileField(); explicit SvxExtFileField( const OUString& rString, SvxFileType eType = SVXFILETYPE_VAR, - SvxFileFormat eFormat = SVXFILEFORMAT_FULLPATH ); + SvxFileFormat eFormat = SvxFileFormat::PathFull ); const OUString& GetFile() const { return aFile; } void SetFile( const OUString& rString ) { aFile = rString; } |