summaryrefslogtreecommitdiff
path: root/include/editeng/editstat.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-03-25 12:13:52 +0200
committerNoel Grandin <noel@peralex.com>2015-03-25 12:14:12 +0200
commiteb9c04ed215f9b12584c6e254c36303c6b3865ed (patch)
treee0bed2cc0a5591321c49fd7f54a31e02a2aea75b /include/editeng/editstat.hxx
parent7dd09f07a12affb8da0afd731ec2a99575a51e2e (diff)
convert SPELLCMD_ constants to enum class
Change-Id: I0f57a60a44ddac63a73e0bb35df59b3b25857d43
Diffstat (limited to 'include/editeng/editstat.hxx')
-rw-r--r--include/editeng/editstat.hxx21
1 files changed, 12 insertions, 9 deletions
diff --git a/include/editeng/editstat.hxx b/include/editeng/editstat.hxx
index 2c2f5f8570df..b53c744c3092 100644
--- a/include/editeng/editstat.hxx
+++ b/include/editeng/editstat.hxx
@@ -138,26 +138,29 @@ public:
sal_Int32& GetPrevParagraph() { return nPrevPara; }
};
-#define SPELLCMD_IGNOREWORD 0x0001
-#define SPELLCMD_STARTSPELLDLG 0x0002
-#define SPELLCMD_ADDTODICTIONARY 0x0003
-#define SPELLCMD_WORDLANGUAGE 0x0004
-#define SPELLCMD_PARALANGUAGE 0x0005
+enum class SpellCallbackCommand
+{
+ IGNOREWORD = 0x0001,
+ STARTSPELLDLG = 0x0002,
+ ADDTODICTIONARY = 0x0003,
+ WORDLANGUAGE = 0x0004,
+ PARALANGUAGE = 0x0005,
+};
struct SpellCallbackInfo
{
- sal_uInt16 nCommand;
+ SpellCallbackCommand nCommand;
OUString aWord;
LanguageType eLanguage;
- SpellCallbackInfo( sal_uInt16 nCMD, const OUString& rWord )
- : aWord( rWord )
+ SpellCallbackInfo( SpellCallbackCommand nCMD, const OUString& rWord )
+ : aWord( rWord )
{
nCommand = nCMD;
eLanguage = LANGUAGE_DONTKNOW;
}
- SpellCallbackInfo( sal_uInt16 nCMD, LanguageType eLang )
+ SpellCallbackInfo( SpellCallbackCommand nCMD, LanguageType eLang )
{
nCommand = nCMD;
eLanguage = eLang;