summaryrefslogtreecommitdiff
path: root/include/svl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-04-16 14:51:57 +0200
committerNoel Grandin <noel@peralex.com>2015-04-22 10:28:39 +0200
commitf87e0957cdcbf9ee12e0615b55a1bb1de1d70efb (patch)
tree382b29377011cb05cf57f67cdecd607ab17cbbd9 /include/svl
parent8b98bc855d7436828553948a1d28d686848e139c (diff)
convert SVX_SEARCHIN_ flags to scoped enum
Change-Id: Iac7216c66afef6cbd355f7047655baaadc0f74db
Diffstat (limited to 'include/svl')
-rw-r--r--include/svl/srchitem.hxx15
1 files changed, 9 insertions, 6 deletions
diff --git a/include/svl/srchitem.hxx b/include/svl/srchitem.hxx
index 2b1eeb627b06..7ce0f77c8922 100644
--- a/include/svl/srchitem.hxx
+++ b/include/svl/srchitem.hxx
@@ -42,9 +42,12 @@ enum class SvxSearchCmd
};
// search flags
-#define SVX_SEARCHIN_FORMULA ((sal_uInt16)0)
-#define SVX_SEARCHIN_VALUE ((sal_uInt16)1)
-#define SVX_SEARCHIN_NOTE ((sal_uInt16)2)
+enum class SvxSearchCellType
+{
+ FORMULA = 0,
+ VALUE = 1,
+ NOTE = 2,
+};
enum class SvxSearchApp
{
@@ -67,7 +70,7 @@ class SVL_DLLPUBLIC SvxSearchItem :
SvxSearchCmd nCommand; // command (Search, Search all, Replace, Replace all)
// Calc-specific
- sal_uInt16 nCellType; // Search in Formulas/Values/Notes
+ SvxSearchCellType nCellType; // Search in Formulas/Values/Notes
SvxSearchApp nAppFlag; // application which the dialog is for
bool bRowDirection; // search direction: row-wise/column-wise
bool bAllTables; // search in all sheets
@@ -145,8 +148,8 @@ public:
bool IsSearchFiltered() const { return bSearchFiltered; }
void SetSearchFiltered(bool b) { bSearchFiltered = b; }
- sal_uInt16 GetCellType() const { return nCellType; }
- void SetCellType(sal_uInt16 nNewCellType) { nCellType = nNewCellType; }
+ SvxSearchCellType GetCellType() const { return nCellType; }
+ void SetCellType(SvxSearchCellType nNewCellType) { nCellType = nNewCellType; }
bool GetNotes() const { return bNotes; }
void SetNotes(bool bNew) { bNotes = bNew; }