summaryrefslogtreecommitdiff
path: root/include/linguistic
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-04-08 11:05:34 +0200
committerNoel Grandin <noel@peralex.com>2015-04-08 11:40:15 +0200
commit704edbf7dc844e52404bf52f9d5dc768cfd024d0 (patch)
treea5697b9e255707f911a966d67dd1bbd7586b9176 /include/linguistic
parent6bf94344723146d64092b7beba93fe78e7119029 (diff)
convert DIC_ERR_ constants to scoped enum
Change-Id: I083f1b7f21b18c5067b01c82fa8fec467a3d0c50
Diffstat (limited to 'include/linguistic')
-rw-r--r--include/linguistic/misc.hxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/include/linguistic/misc.hxx b/include/linguistic/misc.hxx
index 4c6df31d61ca..2e0b7ff8e725 100644
--- a/include/linguistic/misc.hxx
+++ b/include/linguistic/misc.hxx
@@ -63,11 +63,10 @@ namespace linguistic
// AddEntryToDic return values
-#define DIC_ERR_NONE 0
-#define DIC_ERR_FULL 1
-#define DIC_ERR_READONLY 2
-#define DIC_ERR_UNKNOWN 3
-#define DIC_ERR_NOT_EXISTS 4
+enum class DictionaryError
+{
+ NONE, FULL, READONLY, UNKNOWN, NOT_EXISTS
+};
// values asigned to capitalization types
enum CapType
@@ -166,7 +165,7 @@ bool IsIgnoreControlChars( const ::com::sun::star::beans::PropertyValues &rPrope
const OUString& rWord, sal_Int16 nLanguage,
bool bSearchPosDics, bool bSearchSpellEntry );
-LNG_DLLPUBLIC sal_uInt8 AddEntryToDic(
+LNG_DLLPUBLIC DictionaryError AddEntryToDic(
::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XDictionary > &rxDic,
const OUString &rWord, bool bIsNeg,
const OUString &rRplcTxt, sal_Int16 nRplcLang,