aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/lltexteditor.h
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llui/lltexteditor.h')
-rw-r--r--linden/indra/llui/lltexteditor.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/linden/indra/llui/lltexteditor.h b/linden/indra/llui/lltexteditor.h
index e5ba8ca..32375be 100644
--- a/linden/indra/llui/lltexteditor.h
+++ b/linden/indra/llui/lltexteditor.h
@@ -4,6 +4,7 @@
4 * 4 *
5 * Copyright (c) 2001-2007, Linden Research, Inc. 5 * Copyright (c) 2001-2007, Linden Research, Inc.
6 * 6 *
7 * Second Life Viewer Source Code
7 * The source code in this file ("Source Code") is provided by Linden Lab 8 * The source code in this file ("Source Code") is provided by Linden Lab
8 * to you under the terms of the GNU General Public License, version 2.0 9 * to you under the terms of the GNU General Public License, version 2.0
9 * ("GPL"), unless you have obtained a separate licensing agreement 10 * ("GPL"), unless you have obtained a separate licensing agreement
@@ -94,6 +95,8 @@ public:
94 virtual BOOL handleDragAndDrop(S32 x, S32 y, MASK mask, BOOL drop, 95 virtual BOOL handleDragAndDrop(S32 x, S32 y, MASK mask, BOOL drop,
95 EDragAndDropType cargo_type, void *cargo_data, 96 EDragAndDropType cargo_type, void *cargo_data,
96 EAcceptance *accept, LLString& tooltip_msg); 97 EAcceptance *accept, LLString& tooltip_msg);
98 virtual void onMouseCaptureLost();
99
97 100
98 // view overrides 101 // view overrides
99 virtual void reshape(S32 width, S32 height, BOOL called_from_parent); 102 virtual void reshape(S32 width, S32 height, BOOL called_from_parent);
@@ -209,7 +212,6 @@ public:
209 void setHandleEditKeysDirectly( BOOL b ) { mHandleEditKeysDirectly = b; } 212 void setHandleEditKeysDirectly( BOOL b ) { mHandleEditKeysDirectly = b; }
210 213
211 // Callbacks 214 // Callbacks
212 static void onMouseCaptureLost( LLMouseHandler* old_captor );
213 static void setLinkColor(LLColor4 color) { mLinkColor = color; } 215 static void setLinkColor(LLColor4 color) { mLinkColor = color; }
214 static void setURLCallbacks( void (*callback1) (const char* url), 216 static void setURLCallbacks( void (*callback1) (const char* url),
215 BOOL (*callback2) (LLString url) ) 217 BOOL (*callback2) (LLString url) )
@@ -239,6 +241,10 @@ public:
239 llwchar getWChar(S32 pos); 241 llwchar getWChar(S32 pos);
240 LLWString getWSubString(S32 pos, S32 len); 242 LLWString getWSubString(S32 pos, S32 len);
241 243
244 LLTextSegment* getCurrentSegment();
245 LLTextSegment* getPreviousSegment();
246 void getSelectedSegments(std::vector<LLTextSegment*>& segments);
247
242protected: 248protected:
243 S32 getLength() const; 249 S32 getLength() const;
244 void getSegmentAndOffset( S32 startpos, S32* segidxp, S32* offsetp ); 250 void getSegmentAndOffset( S32 startpos, S32* segidxp, S32* offsetp );