summaryrefslogtreecommitdiff
path: root/l10ntools/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-11-24 13:22:18 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-11-25 09:05:10 +0200
commitc2775560ab2fa6166b2ce6fa2811ab10a0ffebe8 (patch)
treee46b2fd5354b57a5781270ea53ecb683ba61a8e2 /l10ntools/inc
parent63a6de2cab00e949751fcb35f4814844fc4ec71e (diff)
convert STRING_TYP to scoped enum
Change-Id: If0bcc6e13864fd534eb65eda06b1bc2b5498cee9
Diffstat (limited to 'l10ntools/inc')
-rw-r--r--l10ntools/inc/export.hxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/l10ntools/inc/export.hxx b/l10ntools/inc/export.hxx
index 8e8f57439bbe..220259c02528 100644
--- a/l10ntools/inc/export.hxx
+++ b/l10ntools/inc/export.hxx
@@ -103,9 +103,9 @@ enum class ExportListType {
NONE, String, Filter, Item, Paired
};
-#define STRING_TYP_TEXT 0x0010
-#define STRING_TYP_QUICKHELPTEXT 0x0040
-#define STRING_TYP_TITLE 0x0080
+enum class StringType {
+ Text, QuickHelpText, Title
+};
typedef ::std::vector< ResData* > ResStack;
@@ -152,7 +152,7 @@ private:
static void CleanValue( OString &rValue );
static OString GetText(const OString &rSource, int nToken);
- void ResData2Output( MergeEntrys *pEntry, sal_uInt16 nType, const OString& rTextType );
+ void ResData2Output( MergeEntrys *pEntry, StringType nType, const OString& rTextType );
void MergeRest( ResData *pResData );
static void ConvertMergeContent( OString &rText );
static void ConvertExportContent( OString &rText );
@@ -204,7 +204,7 @@ public:
sTitle[ rId ] = rTitle;
bTitleFirst[ rId ] = true;
}
- bool GetText( OString &rReturn, sal_uInt16 nTyp, const OString &nLangIndex, bool bDel = false );
+ bool GetText( OString &rReturn, StringType nTyp, const OString &nLangIndex, bool bDel = false );
/**
Generate QTZ string with ResData