aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lgghunspell_wrapper.h
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-09-15 11:20:50 -0700
committerMcCabe Maxsted2010-09-15 11:20:50 -0700
commit465e1f011fa5b44b2873030e09fbf1631b069046 (patch)
treedb150b49510beba7b78b1db279473c58c18aa4ab /linden/indra/newview/lgghunspell_wrapper.h
parentFixed up the spellcheck preferences labels to something more easily understan... (diff)
downloadmeta-impy-465e1f011fa5b44b2873030e09fbf1631b069046.zip
meta-impy-465e1f011fa5b44b2873030e09fbf1631b069046.tar.gz
meta-impy-465e1f011fa5b44b2873030e09fbf1631b069046.tar.bz2
meta-impy-465e1f011fa5b44b2873030e09fbf1631b069046.tar.xz
More spell checking cleanup
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/lgghunspell_wrapper.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/linden/indra/newview/lgghunspell_wrapper.h b/linden/indra/newview/lgghunspell_wrapper.h
index 4d07ff8..b5f3ddb 100644
--- a/linden/indra/newview/lgghunspell_wrapper.h
+++ b/linden/indra/newview/lgghunspell_wrapper.h
@@ -30,8 +30,6 @@ class lggHunSpell_Wrapper
30public: 30public:
31 static Hunspell* myHunspell; 31 static Hunspell* myHunspell;
32 32
33 BOOL mSpellCheckHighlight;
34
35 static void initSettings(); 33 static void initSettings();
36 void processSettings(); 34 void processSettings();
37 35
@@ -49,7 +47,6 @@ public:
49 static std::string dictName2FullName(std::string dictName); 47 static std::string dictName2FullName(std::string dictName);
50 static std::string fullName2DictName(std::string fullName); 48 static std::string fullName2DictName(std::string fullName);
51 void setNewDictionary(std::string newDict); 49 void setNewDictionary(std::string newDict);
52 void setNewHighlightSetting(BOOL highlight);
53 BOOL isSpelledRight(std::string wordToCheck); 50 BOOL isSpelledRight(std::string wordToCheck);
54 std::vector<std::string> getSuggestionList(std::string badWord); 51 std::vector<std::string> getSuggestionList(std::string badWord);
55 S32 findNextError(std::string haystack, int startAt); 52 S32 findNextError(std::string haystack, int startAt);
@@ -57,6 +54,9 @@ public:
57 std::vector<std::string> CSV2VEC(std::string csv); 54 std::vector<std::string> CSV2VEC(std::string csv);
58 std::string VEC2CSV(std::vector<std::string> vec); 55 std::string VEC2CSV(std::vector<std::string> vec);
59 56
57 void setSpellCheckHighlight(BOOL highlight);
58 BOOL getSpellCheckHighlight() { return mSpellCheckHighlight; }
59
60private: 60private:
61 void createCustomDic(); 61 void createCustomDic();
62 std::string getCorrectPath(std::string file); 62 std::string getCorrectPath(std::string file);
@@ -67,6 +67,7 @@ private:
67 std::string currentBaseDic; 67 std::string currentBaseDic;
68 //std::vector<std::string> languageCodes; 68 //std::vector<std::string> languageCodes;
69 //std::vector<std::string> countryCodes; 69 //std::vector<std::string> countryCodes;
70 BOOL mSpellCheckHighlight;
70}; 71};
71 72
72extern lggHunSpell_Wrapper* glggHunSpell; // the singleton hunspell wrapper 73extern lggHunSpell_Wrapper* glggHunSpell; // the singleton hunspell wrapper