diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llui/lltexteditor.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/linden/indra/llui/lltexteditor.h b/linden/indra/llui/lltexteditor.h index 57a6bbd..f2a831b 100644 --- a/linden/indra/llui/lltexteditor.h +++ b/linden/indra/llui/lltexteditor.h | |||
@@ -136,6 +136,8 @@ public: | |||
136 | virtual BOOL canPaste() const; | 136 | virtual BOOL canPaste() const; |
137 | 137 | ||
138 | virtual void spellReplace(SpellMenuBind* spellData); | 138 | virtual void spellReplace(SpellMenuBind* spellData); |
139 | virtual void translationReplace(const std::string &translation, const S32 orig_start, const S32 orig_length); | ||
140 | virtual BOOL canTranslate() const; | ||
139 | 141 | ||
140 | virtual void updatePrimary(); | 142 | virtual void updatePrimary(); |
141 | virtual void copyPrimary(); | 143 | virtual void copyPrimary(); |
@@ -148,13 +150,19 @@ public: | |||
148 | virtual BOOL canSelectAll() const; | 150 | virtual BOOL canSelectAll() const; |
149 | virtual void deselect(); | 151 | virtual void deselect(); |
150 | virtual BOOL canDeselect() const; | 152 | virtual BOOL canDeselect() const; |
151 | static void context_cut(void* data); | ||
152 | 153 | ||
154 | static BOOL context_enable_cut(void* data); | ||
155 | static void context_cut(void* data); | ||
156 | static BOOL context_enable_copy(void* data); | ||
153 | static void context_copy(void* data); | 157 | static void context_copy(void* data); |
158 | static BOOL context_enable_paste(void* data); | ||
154 | static void context_paste(void* data); | 159 | static void context_paste(void* data); |
160 | static BOOL context_enable_delete(void* data); | ||
155 | static void context_delete(void* data); | 161 | static void context_delete(void* data); |
162 | static BOOL context_enable_selectall(void* data); | ||
156 | static void context_selectall(void* data); | 163 | static void context_selectall(void* data); |
157 | static void translateText(void * data); | 164 | static BOOL context_enable_translate(void * data); |
165 | static void context_translate(void * data); | ||
158 | static void spell_correct(void* data); | 166 | static void spell_correct(void* data); |
159 | static void spell_add(void* data); | 167 | static void spell_add(void* data); |
160 | static void spell_show(void* data); | 168 | static void spell_show(void* data); |
@@ -352,6 +360,7 @@ public: | |||
352 | 360 | ||
353 | S32 prevWordPos(S32 cursorPos) const; | 361 | S32 prevWordPos(S32 cursorPos) const; |
354 | S32 nextWordPos(S32 cursorPos) const; | 362 | S32 nextWordPos(S32 cursorPos) const; |
363 | BOOL getWordBoundriesAt(const S32 at, S32* word_begin, S32* word_length) const; | ||
355 | 364 | ||
356 | S32 getLineCount() const { return mLineStartList.size(); } | 365 | S32 getLineCount() const { return mLineStartList.size(); } |
357 | S32 getLineStart( S32 line ) const; | 366 | S32 getLineStart( S32 line ) const; |
@@ -527,7 +536,7 @@ private: | |||
527 | S32 spellEnd; | 536 | S32 spellEnd; |
528 | std::vector<S32> misspellLocations; // where all the mispelled words are | 537 | std::vector<S32> misspellLocations; // where all the mispelled words are |
529 | BOOL mSpellCheckable; // set in xui as "spell_check". Default value for a field | 538 | BOOL mSpellCheckable; // set in xui as "spell_check". Default value for a field |
530 | BOOL mShowMisspellings; // show misspellings as highlighted (initialized in the ctor) | 539 | BOOL mAllowTranslate; // set in xui as "allow_translate". |
531 | 540 | ||
532 | S32 mMaxTextByteLength; // Maximum length mText is allowed to be in bytes | 541 | S32 mMaxTextByteLength; // Maximum length mText is allowed to be in bytes |
533 | 542 | ||
@@ -568,6 +577,8 @@ private: | |||
568 | 577 | ||
569 | //to keep track of what we have to remove before showing menu | 578 | //to keep track of what we have to remove before showing menu |
570 | std::vector<SpellMenuBind* > suggestionMenuItems; | 579 | std::vector<SpellMenuBind* > suggestionMenuItems; |
580 | S32 mLastContextMenuX; | ||
581 | S32 mLastContextMenuY; | ||
571 | 582 | ||
572 | line_list_t mLineStartList; | 583 | line_list_t mLineStartList; |
573 | BOOL mReflowNeeded; | 584 | BOOL mReflowNeeded; |