summaryrefslogtreecommitdiff
path: root/include/svl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-02-27 11:05:01 +0200
committerNoel Grandin <noel@peralex.com>2015-03-02 08:59:18 +0200
commitc9c1caa4f9ad955ae864aa2681f890c7706daad1 (patch)
tree2813ecae7c8a4ecd1362fa1d258c76443694f909 /include/svl
parent10bc10dd20520a72d030be429798d0cc19466fb5 (diff)
convert SVX_SEARCHAPP_ constants to enum class
Change-Id: I2b9d379e56e0af655aa06afb5391140de952b9d6
Diffstat (limited to 'include/svl')
-rw-r--r--include/svl/srchitem.hxx18
1 files changed, 11 insertions, 7 deletions
diff --git a/include/svl/srchitem.hxx b/include/svl/srchitem.hxx
index 33d101a0596d..531d95e679d3 100644
--- a/include/svl/srchitem.hxx
+++ b/include/svl/srchitem.hxx
@@ -45,10 +45,14 @@ enum class SvxSearchCmd
#define SVX_SEARCHIN_FORMULA ((sal_uInt16)0)
#define SVX_SEARCHIN_VALUE ((sal_uInt16)1)
#define SVX_SEARCHIN_NOTE ((sal_uInt16)2)
-#define SVX_SEARCHAPP_WRITER ((sal_uInt16)0)
-#define SVX_SEARCHAPP_CALC ((sal_uInt16)1)
-#define SVX_SEARCHAPP_DRAW ((sal_uInt16)2)
-#define SVX_SEARCHAPP_BASE ((sal_uInt16)3)
+
+enum class SvxSearchApp
+{
+ WRITER = 0,
+ CALC = 1,
+ DRAW = 2,
+ BASE = 3,
+};
// class SvxSearchItem ---------------------------------------------------
@@ -64,7 +68,7 @@ class SVL_DLLPUBLIC SvxSearchItem :
// Calc-specific
sal_uInt16 nCellType; // Search in Formulas/Values/Notes
- sal_uInt16 nAppFlag; // application which the dialog is for
+ SvxSearchApp nAppFlag; // application which the dialog is for
bool bRowDirection; // search direction: row-wise/column-wise
bool bAllTables; // search in all sheets
bool bSearchFiltered; // search filtered cells.
@@ -146,8 +150,8 @@ public:
bool GetNotes() const { return bNotes; }
void SetNotes(bool bNew) { bNotes = bNew; }
- sal_uInt16 GetAppFlag() const { return nAppFlag; }
- void SetAppFlag(sal_uInt16 nNewAppFlag) { nAppFlag = nNewAppFlag; }
+ SvxSearchApp GetAppFlag() const { return nAppFlag; }
+ void SetAppFlag(SvxSearchApp nNewAppFlag) { nAppFlag = nNewAppFlag; }
inline bool IsLevenshtein() const;
void SetLevenshtein( bool bVal );