diff options
author | Eike Rathke <erack@redhat.com> | 2013-09-21 15:20:49 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-09-21 15:30:00 +0200 |
commit | a641bbff59cdd55cfc9757e6a43e732a3c8867be (patch) | |
tree | a0e1c567b9205e50df28879e1fb963fe219b5103 /include | |
parent | dafd27829359201cab45462bae43baf19b369a14 (diff) |
map autocorrection files with LanguageTag key
... as several tags (i.e. renamed) may map to the same LangID.
Change-Id: I8202b18ea0dc8034522017be59bb104b3d06c0f4
Diffstat (limited to 'include')
-rw-r--r-- | include/editeng/svxacorr.hxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/editeng/svxacorr.hxx b/include/editeng/svxacorr.hxx index cc08b5f31e9f..a3378f1f0b14 100644 --- a/include/editeng/svxacorr.hxx +++ b/include/editeng/svxacorr.hxx @@ -24,7 +24,7 @@ #include <o3tl/sorted_vector.hxx> #include <tools/rtti.hxx> -#include <i18nlangtag/lang.h> +#include <i18nlangtag/languagetag.hxx> #include <tools/time.hxx> #include <tools/date.hxx> #include <tools/string.hxx> @@ -244,8 +244,8 @@ class EDITENG_DLLPUBLIC SvxAutoCorrect SvxSwAutoFmtFlags aSwFlags; // StarWriter AutoFormat Flags // all languages in a table - boost::ptr_map<LanguageType, SvxAutoCorrectLanguageLists>* pLangTable; - std::map<LanguageType, long> aLastFileTable; + boost::ptr_map<LanguageTag, SvxAutoCorrectLanguageLists>* pLangTable; + std::map<LanguageTag, long> aLastFileTable; CharClass* pCharClass; bool bRunNext; @@ -269,7 +269,7 @@ protected: const OUString& rFileName, const OUString& rShort, SfxObjectShell&, OUString& ); // required language in the table add if possible only when the file exists - sal_Bool CreateLanguageFile(LanguageType eLang, sal_Bool bNewFile = sal_True); + sal_Bool CreateLanguageFile(const LanguageTag& rLanguageTag, sal_Bool bNewFile = sal_True); // - Return the replacement text (only for SWG format, all others can be // taken from the word list!) // rShort is the stream name - encrypted! @@ -309,7 +309,7 @@ public: const SvxAutocorrWord* SearchWordsInList( const OUString& rTxt, sal_Int32& rStt, sal_Int32 nEndPos, SvxAutoCorrDoc& rDoc, - LanguageType& rLang ); + LanguageTag& rLang ); // Query/Set the Character for the Quote substitution sal_Unicode GetStartSingleQuote() const { return cStartSQuote; } @@ -329,7 +329,7 @@ public: // Query/Set the name of the AutoCorrect file // the default is "autocorr.dat" - OUString GetAutoCorrFileName( LanguageType eLang = LANGUAGE_SYSTEM, + OUString GetAutoCorrFileName( const LanguageTag& rLanguageTag /* = LANGUAGE_SYSTEM */ , sal_Bool bNewFile = sal_False, sal_Bool bTstUserExist = sal_False ) const; |