diff options
author | Oz Linden <oz@lindenlab.com> | 2012-06-11 16:15:31 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2012-06-11 16:15:31 -0400 |
commit | eb227e4dbc45fb10e32bb391ce0553d34ad93284 (patch) | |
tree | e858cd4236ecffc7a31c1c9d6cd08bf2094093da /indra/llui/llspellcheck.h | |
parent | 1acae5b2915aacff7a2c7892ea2ab094b60b67c9 (diff) | |
parent | 7c77c76fc7ff50b179e6d736bf3539133982a24e (diff) |
merge spelling changes for UI review
Diffstat (limited to 'indra/llui/llspellcheck.h')
-rw-r--r-- | indra/llui/llspellcheck.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/indra/llui/llspellcheck.h b/indra/llui/llspellcheck.h index acb121dd19..4ab80195ea 100644 --- a/indra/llui/llspellcheck.h +++ b/indra/llui/llspellcheck.h @@ -48,24 +48,30 @@ public: S32 getSuggestions(const std::string& word, std::vector<std::string>& suggestions) const; protected: void addToDictFile(const std::string& dict_path, const std::string& word); - void initHunspell(const std::string& dict_name); + void initHunspell(const std::string& dict_language); public: typedef std::list<std::string> dict_list_t; - const std::string& getActiveDictionary() const { return mDictName; } + const std::string& getPrimaryDictionary() const { return mDictLanguage; } const dict_list_t& getSecondaryDictionaries() const { return mDictSecondary; } + bool isActiveDictionary(const std::string& dict_language) const; void setSecondaryDictionaries(dict_list_t dict_list); + static bool canRemoveDictionary(const std::string& dict_language); static const std::string getDictionaryAppPath(); static const std::string getDictionaryUserPath(); static const LLSD getDictionaryData(const std::string& dict_language); static const LLSD& getDictionaryMap() { return sDictMap; } static bool getUseSpellCheck(); + static bool hasDictionary(const std::string& dict_language, bool check_installed = false); static void refreshDictionaryMap(); - static void setUseSpellCheck(const std::string& dict_name); + static void removeDictionary(const std::string& dict_language); + static void setUseSpellCheck(const std::string& dict_language); protected: + static LLSD loadUserDictionaryMap(); static void setDictionaryData(const LLSD& dict_info); + static void saveUserDictionaryMap(const LLSD& dict_map); public: typedef boost::signals2::signal<void()> settings_change_signal_t; @@ -75,7 +81,7 @@ protected: protected: Hunspell* mHunspell; - std::string mDictName; + std::string mDictLanguage; std::string mDictFile; dict_list_t mDictSecondary; std::vector<std::string> mIgnoreList; |