aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/lltexteditor.h
diff options
context:
space:
mode:
authorJacek Antonelli2009-04-30 13:04:20 -0500
committerJacek Antonelli2009-04-30 13:07:16 -0500
commitca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e (patch)
tree8348301d0ac44a524f1819b777686bf086907d76 /linden/indra/llui/lltexteditor.h
parentSecond Life viewer sources 1.22.11 (diff)
downloadmeta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.zip
meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.gz
meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.bz2
meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.xz
Second Life viewer sources 1.23.0-RC
Diffstat (limited to '')
-rw-r--r--linden/indra/llui/lltexteditor.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/linden/indra/llui/lltexteditor.h b/linden/indra/llui/lltexteditor.h
index 61341e2..56825e7 100644
--- a/linden/indra/llui/lltexteditor.h
+++ b/linden/indra/llui/lltexteditor.h
@@ -17,7 +17,8 @@
17 * There are special exceptions to the terms and conditions of the GPL as 17 * There are special exceptions to the terms and conditions of the GPL as
18 * it is applied to this Source Code. View the full text of the exception 18 * it is applied to this Source Code. View the full text of the exception
19 * in the file doc/FLOSS-exception.txt in this software distribution, or 19 * in the file doc/FLOSS-exception.txt in this software distribution, or
20 * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception 20 * online at
21 * http://secondlifegrid.net/programs/open_source/licensing/flossexception
21 * 22 *
22 * By copying, modifying or distributing this software, you acknowledge 23 * By copying, modifying or distributing this software, you acknowledge
23 * that you have read and understood your obligations described above, 24 * that you have read and understood your obligations described above,
@@ -75,6 +76,7 @@ public:
75 static LLView* fromXML(LLXMLNodePtr node, LLView *parent, class LLUICtrlFactory *factory); 76 static LLView* fromXML(LLXMLNodePtr node, LLView *parent, class LLUICtrlFactory *factory);
76 void setTextEditorParameters(LLXMLNodePtr node); 77 void setTextEditorParameters(LLXMLNodePtr node);
77 void setParseHTML(BOOL parsing) {mParseHTML=parsing;} 78 void setParseHTML(BOOL parsing) {mParseHTML=parsing;}
79 void setParseHighlights(BOOL parsing) {mParseHighlights=parsing;}
78 80
79 // mousehandler overrides 81 // mousehandler overrides
80 virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask); 82 virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask);
@@ -139,7 +141,7 @@ public:
139 void insertText(const std::string &text); 141 void insertText(const std::string &text);
140 // appends text at end 142 // appends text at end
141 void appendText(const std::string &wtext, bool allow_undo, bool prepend_newline, 143 void appendText(const std::string &wtext, bool allow_undo, bool prepend_newline,
142 const LLStyleSP *stylep = NULL); 144 const LLStyleSP stylep = NULL);
143 145
144 void appendColoredText(const std::string &wtext, bool allow_undo, 146 void appendColoredText(const std::string &wtext, bool allow_undo,
145 bool prepend_newline, 147 bool prepend_newline,
@@ -148,8 +150,11 @@ public:
148 // if styled text starts a line, you need to prepend a newline. 150 // if styled text starts a line, you need to prepend a newline.
149 void appendStyledText(const std::string &new_text, bool allow_undo, 151 void appendStyledText(const std::string &new_text, bool allow_undo,
150 bool prepend_newline, 152 bool prepend_newline,
151 const LLStyleSP *stylep = NULL); 153 LLStyleSP stylep = NULL);
152 154 void appendHighlightedText(const std::string &new_text, bool allow_undo,
155 bool prepend_newline, S32 highlight_part,
156 LLStyleSP stylep);
157
153 // Removes text from the end of document 158 // Removes text from the end of document
154 // Does not change highlight or cursor position. 159 // Does not change highlight or cursor position.
155 void removeTextFromEnd(S32 num_chars); 160 void removeTextFromEnd(S32 num_chars);
@@ -312,8 +317,8 @@ protected:
312 virtual BOOL handleMouseUpOverSegment(S32 x, S32 y, MASK mask); 317 virtual BOOL handleMouseUpOverSegment(S32 x, S32 y, MASK mask);
313 318
314 virtual llwchar pasteEmbeddedItem(llwchar ext_char) { return ext_char; } 319 virtual llwchar pasteEmbeddedItem(llwchar ext_char) { return ext_char; }
315 virtual void bindEmbeddedChars(LLFontGL* font) const {} 320 virtual void bindEmbeddedChars(const LLFontGL* font) const {}
316 virtual void unbindEmbeddedChars(LLFontGL* font) const {} 321 virtual void unbindEmbeddedChars(const LLFontGL* font) const {}
317 322
318 S32 findHTMLToken(const std::string &line, S32 pos, BOOL reverse) const; 323 S32 findHTMLToken(const std::string &line, S32 pos, BOOL reverse) const;
319 BOOL findHTML(const std::string &line, S32 *begin, S32 *end) const; 324 BOOL findHTML(const std::string &line, S32 *begin, S32 *end) const;
@@ -401,6 +406,7 @@ protected:
401 S32 mLastSelectionY; 406 S32 mLastSelectionY;
402 407
403 BOOL mParseHTML; 408 BOOL mParseHTML;
409 BOOL mParseHighlights;
404 std::string mHTML; 410 std::string mHTML;
405 411
406 typedef std::vector<LLTextSegment *> segment_list_t; 412 typedef std::vector<LLTextSegment *> segment_list_t;