diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-22 13:47:23 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-04-29 10:41:37 +0200 |
commit | a47be3914efb6940c1608763fbe9c7fd7dee9455 (patch) | |
tree | 5b229bd377ca958a4ca4c3c35ca965a4cf501217 /include | |
parent | a38b2720a4be63f1093c66a13ec40aa894af23a2 (diff) |
convert FLT_DATE_ constants to scoped enum
Change-Id: I92229f180ae00064c90ee45a23b688eeb749ae2f
Diffstat (limited to 'include')
-rw-r--r-- | include/svx/ctredlin.hxx | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/include/svx/ctredlin.hxx b/include/svx/ctredlin.hxx index 83c590d57ac0..7b1e6ac9b6e5 100644 --- a/include/svx/ctredlin.hxx +++ b/include/svx/ctredlin.hxx @@ -35,12 +35,10 @@ #include <unotools/textsearch.hxx> #include <svx/svxdllapi.h> -#define FLT_DATE_BEFORE 0 -#define FLT_DATE_SINCE 1 -#define FLT_DATE_EQUAL 2 -#define FLT_DATE_NOTEQUAL 3 -#define FLT_DATE_BETWEEN 4 -#define FLT_DATE_SAVE 5 +enum class SvxRedlinDateMode +{ + BEFORE, SINCE, EQUAL, NOTEQUAL, BETWEEN, SAVE +}; /// Struct for sorting data. class SVX_DLLPUBLIC SAL_WARN_UNUSED RedlinData @@ -95,7 +93,7 @@ private: bool bAuthor; bool bDate; bool bComment; - sal_uInt16 nDaTiMode; + SvxRedlinDateMode nDaTiMode; DateTime aDaTiFirst; DateTime aDaTiLast; DateTime aDaTiFilterFirst; @@ -120,7 +118,7 @@ public: // For FilterPage only { void SetFilterDate(bool bFlag=true); - void SetDateTimeMode(sal_uInt16 nMode); + void SetDateTimeMode(SvxRedlinDateMode nMode); void SetFirstDate(const Date&); void SetLastDate(const Date&); void SetFirstTime(const tools::Time&); @@ -210,7 +208,7 @@ private: protected: - void ShowDateFields(sal_uInt16 nKind); + void ShowDateFields(SvxRedlinDateMode nKind); void EnableDateLine1(bool bFlag); void EnableDateLine2(bool bFlag); @@ -233,7 +231,7 @@ public: void SetLastTime(const tools::Time &aTime); void SetDateMode(sal_uInt16 nMode); - sal_uInt16 GetDateMode(); + SvxRedlinDateMode GetDateMode(); void ClearAuthors(); void InsertAuthor( const OUString& rString, sal_Int32 nPos = LISTBOX_APPEND ); |