diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-08 11:05:34 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-04-08 11:40:15 +0200 |
commit | 704edbf7dc844e52404bf52f9d5dc768cfd024d0 (patch) | |
tree | a5697b9e255707f911a966d67dd1bbd7586b9176 /include | |
parent | 6bf94344723146d64092b7beba93fe78e7119029 (diff) |
convert DIC_ERR_ constants to scoped enum
Change-Id: I083f1b7f21b18c5067b01c82fa8fec467a3d0c50
Diffstat (limited to 'include')
-rw-r--r-- | include/editeng/unolingu.hxx | 3 | ||||
-rw-r--r-- | include/linguistic/misc.hxx | 11 |
2 files changed, 7 insertions, 7 deletions
diff --git a/include/editeng/unolingu.hxx b/include/editeng/unolingu.hxx index 2b35bed79c3d..06e890081bd4 100644 --- a/include/editeng/unolingu.hxx +++ b/include/editeng/unolingu.hxx @@ -35,6 +35,7 @@ class LinguMgrExitLstnr; namespace vcl { class Window; } +namespace linguistic { enum class DictionaryError; } @@ -181,7 +182,7 @@ EDITENG_DLLPUBLIC ::com::sun::star::uno::Reference< // misc functions -EDITENG_DLLPUBLIC short SvxDicError( vcl::Window *pParent, sal_Int16 nError ); +EDITENG_DLLPUBLIC short SvxDicError( vcl::Window *pParent, linguistic::DictionaryError nError ); #endif 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, |