LLTextEditor Class Reference

#include <lltexteditor.h>

Inheritance diagram for LLTextEditor:

Inheritance graph
[legend]
Collaboration diagram for LLTextEditor:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLTextEditor (const LLString &name, const LLRect &rect, S32 max_length, const LLString &default_text, const LLFontGL *glfont=NULL, BOOL allow_embedded_items=FALSE)
virtual ~LLTextEditor ()
virtual LLXMLNodePtr getXML (bool save_children=true) const
void setTextEditorParameters (LLXMLNodePtr node)
void setParseHTML (BOOL parsing)
virtual BOOL handleMouseDown (S32 x, S32 y, MASK mask)
virtual BOOL handleMouseUp (S32 x, S32 y, MASK mask)
virtual BOOL handleHover (S32 x, S32 y, MASK mask)
virtual BOOL handleScrollWheel (S32 x, S32 y, S32 clicks)
virtual BOOL handleDoubleClick (S32 x, S32 y, MASK mask)
virtual BOOL handleKeyHere (KEY key, MASK mask)
virtual BOOL handleUnicodeCharHere (llwchar uni_char)
virtual BOOL handleToolTip (S32 x, S32 y, LLString &msg, LLRect *sticky_rect)
virtual BOOL handleDragAndDrop (S32 x, S32 y, MASK mask, BOOL drop, EDragAndDropType cargo_type, void *cargo_data, EAcceptance *accept, LLString &tooltip_msg)
virtual void onMouseCaptureLost ()
virtual void reshape (S32 width, S32 height, BOOL called_from_parent=TRUE)
virtual void draw ()
virtual void onFocusReceived ()
virtual void onFocusLost ()
virtual void setEnabled (BOOL enabled)
virtual void onTabInto ()
virtual void clear ()
virtual void setFocus (BOOL b)
virtual BOOL acceptsTextInput () const
virtual BOOL isDirty () const
virtual void undo ()
virtual BOOL canUndo () const
virtual void redo ()
virtual BOOL canRedo () const
virtual void cut ()
virtual BOOL canCut () const
virtual void copy ()
virtual BOOL canCopy () const
virtual void paste ()
virtual BOOL canPaste () const
virtual void doDelete ()
virtual BOOL canDoDelete () const
virtual void selectAll ()
virtual BOOL canSelectAll () const
virtual void deselect ()
virtual BOOL canDeselect () const
void selectNext (const LLString &search_text_in, BOOL case_insensitive, BOOL wrap=TRUE)
BOOL replaceText (const LLString &search_text, const LLString &replace_text, BOOL case_insensitive, BOOL wrap=TRUE)
void replaceTextAll (const LLString &search_text, const LLString &replace_text, BOOL case_insensitive)
void blockUndo ()
virtual void makePristine ()
BOOL isPristine () const
BOOL allowsEmbeddedItems () const
void insertText (const LLString &text)
void appendText (const LLString &wtext, bool allow_undo, bool prepend_newline, const LLStyleSP *stylep=NULL)
void appendColoredText (const LLString &wtext, bool allow_undo, bool prepend_newline, const LLColor4 &color, const LLString &font_name=LLString::null)
void appendStyledText (const LLString &new_text, bool allow_undo, bool prepend_newline, const LLStyleSP *stylep=NULL)
void removeTextFromEnd (S32 num_chars)
BOOL tryToRevertToPristineState ()
void setCursor (S32 row, S32 column)
void setCursorPos (S32 offset)
void setCursorAndScrollToEnd ()
void getCurrentLineAndColumn (S32 *line, S32 *col, BOOL include_wordwrap)
void loadKeywords (const LLString &filename, const LLDynamicArray< const char * > &funcs, const LLDynamicArray< const char * > &tooltips, const LLColor3 &func_color)
LLKeywords::keyword_iterator_t keywordsBegin ()
LLKeywords::keyword_iterator_t keywordsEnd ()
void setCursorColor (const LLColor4 &c)
void setFgColor (const LLColor4 &c)
void setTextDefaultColor (const LLColor4 &c)
void setReadOnlyFgColor (const LLColor4 &c)
void setWriteableBgColor (const LLColor4 &c)
void setReadOnlyBgColor (const LLColor4 &c)
void setTrackColor (const LLColor4 &color)
void setThumbColor (const LLColor4 &color)
void setHighlightColor (const LLColor4 &color)
void setShadowColor (const LLColor4 &color)
void setBorderVisible (BOOL b)
BOOL isBorderVisible () const
void setTakesNonScrollClicks (BOOL b)
void setHideScrollbarForShortDocs (BOOL b)
void setWordWrap (BOOL b)
void setTabsToNextField (BOOL b)
BOOL tabsToNextField () const
void setCommitOnFocusLost (BOOL b)
virtual BOOL importBuffer (const LLString &buffer)
virtual BOOL exportBuffer (LLString &buffer)
void setTakesFocus (BOOL b)
void setSourceID (const LLUUID &id)
const LLUUIDgetSourceID () const
void setAcceptCallingCardNames (BOOL enable)
BOOL acceptsCallingCardNames () const
void setHandleEditKeysDirectly (BOOL b)
void setOnScrollEndCallback (void(*callback)(void *), void *userdata)
void setValue (const LLSD &value)
LLSD getValue () const
const LLStringgetText () const
void setText (const LLStringExplicit &utf8str)
void setWText (const LLWString &wtext)
S32 getMaxLength () const
void startOfLine ()
void endOfLine ()
void endOfDoc ()
BOOL isScrolledToTop ()
BOOL isScrolledToBottom ()
const LLWStringgetWText () const
llwchar getWChar (S32 pos) const
LLWString getWSubString (S32 pos, S32 len) const
const LLTextSegmentgetCurrentSegment ()
const LLTextSegmentgetPreviousSegment ()
void getSelectedSegments (std::vector< const LLTextSegment * > &segments)

Static Public Member Functions

static LLViewfromXML (LLXMLNodePtr node, LLView *parent, class LLUICtrlFactory *factory)
static void setLinkColor (LLColor4 color)
static void setURLCallbacks (void(*callback1)(const char *url), bool(*callback2)(const std::string &url), bool(*callback3)(const std::string &url))

Static Public Attributes

static const llwchar FIRST_EMBEDDED_CHAR = 0x100000
static const llwchar LAST_EMBEDDED_CHAR = 0x10ffff
static const S32 MAX_EMBEDDED_ITEMS = LAST_EMBEDDED_CHAR - FIRST_EMBEDDED_CHAR + 1

Protected Types

typedef std::vector
< LLTextSegment * > 
segment_list_t

Protected Member Functions

S32 getLength () const
void getSegmentAndOffset (S32 startpos, S32 *segidxp, S32 *offsetp) const
void drawPreeditMarker ()
void updateLineStartList (S32 startpos=0)
void updateScrollFromCursor ()
void updateTextRect ()
const LLRectgetTextRect () const
void assignEmbedded (const LLString &s)
BOOL truncate ()
void removeCharOrTab ()
void setCursorAtLocalPos (S32 x, S32 y, BOOL round)
S32 getCursorPosFromLocalCoord (S32 local_x, S32 local_y, BOOL round) const
void indentSelectedLines (S32 spaces)
S32 indentLine (S32 pos, S32 spaces)
void unindentLineBeforeCloseBrace ()
S32 getSegmentIdxAtOffset (S32 offset) const
const LLTextSegmentgetSegmentAtLocalPos (S32 x, S32 y) const
const LLTextSegmentgetSegmentAtOffset (S32 offset) const
void reportBadKeystroke ()
BOOL handleNavigationKey (const KEY key, const MASK mask)
BOOL handleSpecialKey (const KEY key, const MASK mask, BOOL *return_key_hit)
BOOL handleSelectionKey (const KEY key, const MASK mask)
BOOL handleControlKey (const KEY key, const MASK mask)
BOOL handleEditKey (const KEY key, const MASK mask)
BOOL hasSelection () const
BOOL selectionContainsLineBreaks ()
void startSelection ()
void endSelection ()
void deleteSelection (BOOL transient_operation)
S32 prevWordPos (S32 cursorPos) const
S32 nextWordPos (S32 cursorPos) const
S32 getLineCount () const
S32 getLineStart (S32 line) const
void getLineAndOffset (S32 pos, S32 *linep, S32 *offsetp) const
S32 getPos (S32 line, S32 offset)
void changePage (S32 delta)
void changeLine (S32 delta)
void autoIndent ()
void findEmbeddedItemSegments ()
virtual BOOL handleMouseUpOverSegment (S32 x, S32 y, MASK mask)
virtual llwchar pasteEmbeddedItem (llwchar ext_char)
virtual void bindEmbeddedChars (LLFontGL *font) const
virtual void unbindEmbeddedChars (LLFontGL *font) const
S32 findHTMLToken (const LLString &line, S32 pos, BOOL reverse) const
BOOL findHTML (const LLString &line, S32 *begin, S32 *end) const
S32 execute (LLTextCmd *cmd)
void addChar (llwchar c)
S32 addChar (S32 pos, llwchar wc)
S32 overwriteChar (S32 pos, llwchar wc)
void removeChar ()
S32 removeChar (S32 pos)
S32 insert (const S32 pos, const LLWString &wstr, const BOOL group_with_next_op)
S32 remove (const S32 pos, const S32 length, const BOOL group_with_next_op)
S32 append (const LLWString &wstr, const BOOL group_with_next_op)
S32 insertStringNoUndo (S32 pos, const LLWString &wstr)
S32 removeStringNoUndo (S32 pos, S32 length)
S32 overwriteCharNoUndo (S32 pos, llwchar wc)
void resetKeystrokeTimer ()
void updateAllowingLanguageInput ()
BOOL hasPreeditString () const
virtual void resetPreedit ()
virtual void updatePreedit (const LLWString &preedit_string, const segment_lengths_t &preedit_segment_lengths, const standouts_t &preedit_standouts, S32 caret_position)
virtual void markAsPreedit (S32 position, S32 length)
virtual void getPreeditRange (S32 *position, S32 *length) const
virtual void getSelectionRange (S32 *position, S32 *length) const
virtual BOOL getPreeditLocation (S32 query_offset, LLCoordGL *coord, LLRect *bounds, LLRect *control) const
virtual S32 getPreeditFontSize () const

Static Protected Member Functions

static BOOL isPartOfWord (llwchar c)

Protected Attributes

S32 mCursorPos
S32 mMouseDownX
S32 mMouseDownY
BOOL mIsSelecting
S32 mSelectionStart
S32 mSelectionEnd
S32 mLastSelectionX
S32 mLastSelectionY
BOOL mParseHTML
LLString mHTML
segment_list_t mSegments
const LLTextSegmentmHoverSegment
class LLScrollbarmScrollbar
BOOL mHideScrollbarForShortDocs
BOOL mTakesNonScrollClicks
void(* mOnScrollEndCallback )(void *)
void * mOnScrollEndData
LLWString mPreeditWString
LLWString mPreeditOverwrittenWString
std::vector< S32mPreeditPositions
std::vector< BOOLmPreeditStandouts

Private Types

typedef std::deque< LLTextCmd * > undo_stack_t
typedef std::vector< line_infoline_list_t

Private Member Functions

void updateSegments ()
void pruneSegments ()
void drawBackground ()
void drawSelectionBackground ()
void drawCursor ()
void drawText ()
void drawClippedSegment (const LLWString &wtext, S32 seg_start, S32 seg_end, F32 x, F32 y, S32 selection_left, S32 selection_right, const LLStyleSP &color, F32 *right_x)

Private Attributes

LLKeywords mKeywords
LLWString mWText
LLString mUTF8Text
BOOL mTextIsUpToDate
S32 mMaxTextByteLength
const LLFontGLmGLFont
class LLViewBordermBorder
BOOL mBaseDocIsPristine
LLTextCmdmPristineCmd
LLTextCmdmLastCmd
undo_stack_t mUndoStack
S32 mDesiredXPixel
LLRect mTextRect
line_list_t mLineStartList
LLFrameTimer mKeystrokeTimer
LLColor4 mCursorColor
LLColor4 mFgColor
LLColor4 mDefaultColor
LLColor4 mReadOnlyFgColor
LLColor4 mWriteableBgColor
LLColor4 mReadOnlyBgColor
LLColor4 mFocusBgColor
BOOL mReadOnly
BOOL mWordWrap
BOOL mTabsToNextField
BOOL mCommitOnFocusLost
BOOL mTakesFocus
BOOL mTrackBottom
BOOL mScrolledToBottom
BOOL mAllowEmbeddedItems
BOOL mAcceptCallingCardNames
LLUUID mSourceID
BOOL mHandleEditKeysDirectly
LLCoordGL mLastIMEPosition

Static Private Attributes

static LLColor4 mLinkColor = LLColor4::blue
static void(* mURLcallback )(const char *url) = NULL
static bool(* mSecondlifeURLcallback )(const std::string &url) = NULL
static bool(* mSecondlifeURLcallbackRightClick )(const std::string &url) = NULL

Classes

struct  line_info
struct  line_info_compare
class  LLTextCmd
class  LLTextCmdAddChar
class  LLTextCmdInsert
class  LLTextCmdOverwriteChar
class  LLTextCmdRemove


Detailed Description

Definition at line 55 of file lltexteditor.h.


Member Typedef Documentation

typedef std::vector<LLTextSegment *> LLTextEditor::segment_list_t [protected]

Definition at line 404 of file lltexteditor.h.

typedef std::deque<LLTextCmd*> LLTextEditor::undo_stack_t [private]

Definition at line 464 of file lltexteditor.h.

typedef std::vector<line_info> LLTextEditor::line_list_t [private]

Definition at line 488 of file lltexteditor.h.


Constructor & Destructor Documentation

LLTextEditor::LLTextEditor ( const LLString name,
const LLRect rect,
S32  max_length,
const LLString default_text,
const LLFontGL glfont = NULL,
BOOL  allow_embedded_items = FALSE 
)

LLTextEditor::~LLTextEditor (  )  [virtual]

Definition at line 340 of file lltexteditor.cpp.

References LLEditMenuHandler::gEditMenuHandler, gFocusMgr, mHoverSegment, mSegments, mUndoStack, NULL, and LLFocusMgr::releaseFocusIfNeeded().

Here is the call graph for this function:


Member Function Documentation

LLXMLNodePtr LLTextEditor::getXML ( bool  save_children = true  )  const [virtual]

LLView * LLTextEditor::fromXML ( LLXMLNodePtr  node,
LLView parent,
class LLUICtrlFactory factory 
) [static]

Reimplemented from LLUICtrl.

Reimplemented in LLViewerTextEditor.

Definition at line 4095 of file lltexteditor.cpp.

References LLView::createRect(), FALSE, LLUICtrl::initFromXML(), LLTextEditor(), LLView::selectFont(), setHideScrollbarForShortDocs(), and setTextEditorParameters().

Here is the call graph for this function:

void LLTextEditor::setTextEditorParameters ( LLXMLNodePtr  node  ) 

Definition at line 4131 of file lltexteditor.cpp.

References FALSE, LLUICtrlFactory::getAttributeColor(), mTrackBottom, setCursorColor(), setFgColor(), setReadOnlyBgColor(), setReadOnlyFgColor(), setWordWrap(), and setWriteableBgColor().

Referenced by LLViewerTextEditor::fromXML(), and fromXML().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLTextEditor::setParseHTML ( BOOL  parsing  )  [inline]

Definition at line 77 of file lltexteditor.h.

References mParseHTML.

Referenced by LLFloaterChat::addChatHistory(), LLViewerTextEditor::fromXML(), and LLFloaterIMPanel::postBuild().

Here is the caller graph for this function:

BOOL LLTextEditor::handleMouseDown ( S32  x,
S32  y,
MASK  mask 
) [virtual]

BOOL LLTextEditor::handleMouseUp ( S32  x,
S32  y,
MASK  mask 
) [virtual]

BOOL LLTextEditor::handleHover ( S32  x,
S32  y,
MASK  mask 
) [virtual]

BOOL LLTextEditor::handleScrollWheel ( S32  x,
S32  y,
S32  clicks 
) [virtual]

Reimplemented from LLView.

Definition at line 1104 of file lltexteditor.cpp.

References LLScrollbar::handleScrollWheel(), and mScrollbar.

Here is the call graph for this function:

BOOL LLTextEditor::handleDoubleClick ( S32  x,
S32  y,
MASK  mask 
) [virtual]

BOOL LLTextEditor::handleKeyHere ( KEY  key,
MASK  mask 
) [virtual]

BOOL LLTextEditor::handleUnicodeCharHere ( llwchar  uni_char  )  [virtual]

BOOL LLTextEditor::handleToolTip ( S32  x,
S32  y,
LLString msg,
LLRect sticky_rect 
) [virtual]

BOOL LLTextEditor::handleDragAndDrop ( S32  x,
S32  y,
MASK  mask,
BOOL  drop,
EDragAndDropType  cargo_type,
void *  cargo_data,
EAcceptance accept,
LLString tooltip_msg 
) [virtual]

Reimplemented from LLView.

Reimplemented in LLViewerTextEditor.

Definition at line 1392 of file lltexteditor.cpp.

References ACCEPT_NO, and TRUE.

void LLTextEditor::onMouseCaptureLost (  )  [virtual]

Reimplemented from LLView.

Definition at line 3885 of file lltexteditor.cpp.

References endSelection().

Here is the call graph for this function:

void LLTextEditor::reshape ( S32  width,
S32  height,
BOOL  called_from_parent = TRUE 
) [virtual]

void LLTextEditor::draw ( void   )  [virtual]

void LLTextEditor::onFocusReceived (  )  [virtual]

Reimplemented from LLUICtrl.

Definition at line 2425 of file lltexteditor.cpp.

References LLUICtrl::onFocusReceived(), and updateAllowingLanguageInput().

Here is the call graph for this function:

void LLTextEditor::onFocusLost (  )  [virtual]

void LLTextEditor::setEnabled ( BOOL  enabled  )  [virtual]

void LLTextEditor::onTabInto (  )  [virtual]

Reimplemented from LLUICtrl.

Definition at line 3074 of file lltexteditor.cpp.

void LLTextEditor::clear ( void   )  [virtual]

void LLTextEditor::setFocus ( BOOL  b  )  [virtual]

BOOL LLTextEditor::acceptsTextInput (  )  const [virtual]

Reimplemented from LLUICtrl.

Definition at line 3127 of file lltexteditor.cpp.

References mReadOnly.

Referenced by LLViewerTextEditor::handleDragAndDrop().

Here is the caller graph for this function:

virtual BOOL LLTextEditor::isDirty (  )  const [inline, virtual]

Reimplemented from LLUICtrl.

Definition at line 106 of file lltexteditor.h.

References mLastCmd, mPristineCmd, and NULL.

Referenced by LLPanelClassified::checkDirty().

Here is the caller graph for this function:

void LLTextEditor::undo (  )  [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 2355 of file lltexteditor.cpp.

References canUndo(), deselect(), LLTextEditor::LLTextCmd::groupWithNext(), mLastCmd, mUndoStack, NULL, S32, setCursorPos(), LLTextEditor::LLTextCmd::undo(), updateLineStartList(), and updateScrollFromCursor().

Referenced by tryToRevertToPristineState().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLTextEditor::canUndo (  )  const [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 2350 of file lltexteditor.cpp.

References mLastCmd, mReadOnly, and NULL.

Referenced by tryToRevertToPristineState(), and undo().

Here is the caller graph for this function:

void LLTextEditor::redo (  )  [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 2387 of file lltexteditor.cpp.

References canRedo(), deselect(), LLTextEditor::LLTextCmd::groupWithNext(), mLastCmd, mUndoStack, NULL, LLTextEditor::LLTextCmd::redo(), S32, setCursorPos(), updateLineStartList(), and updateScrollFromCursor().

Referenced by tryToRevertToPristineState().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLTextEditor::canRedo (  )  const [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 2382 of file lltexteditor.cpp.

References mLastCmd, mReadOnly, and mUndoStack.

Referenced by redo(), and tryToRevertToPristineState().

Here is the caller graph for this function:

void LLTextEditor::cut (  )  [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 1823 of file lltexteditor.cpp.

References canCut(), LLClipboard::copyFromSubstring(), deleteSelection(), FALSE, gClipboard, llmin(), mSelectionEnd, mSelectionStart, mSourceID, mWText, S32, updateLineStartList(), and updateScrollFromCursor().

Referenced by handleEditKey().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLTextEditor::canCut (  )  const [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 1817 of file lltexteditor.cpp.

References hasSelection(), and mReadOnly.

Referenced by cut(), and handleEditKey().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLTextEditor::copy (  )  [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 1844 of file lltexteditor.cpp.

References canCopy(), LLClipboard::copyFromSubstring(), gClipboard, llmin(), mSelectionEnd, mSelectionStart, mSourceID, mWText, and S32.

Referenced by handleEditKey().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLTextEditor::canCopy (  )  const [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 1838 of file lltexteditor.cpp.

References hasSelection().

Referenced by copy(), and handleEditKey().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLTextEditor::paste (  )  [virtual]

BOOL LLTextEditor::canPaste (  )  const [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 1855 of file lltexteditor.cpp.

References LLClipboard::canPasteString(), gClipboard, and mReadOnly.

Referenced by handleEditKey(), and paste().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLTextEditor::doDelete (  )  [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 2290 of file lltexteditor.cpp.

References canDoDelete(), deleteSelection(), FALSE, getLength(), getLineAndOffset(), hasSelection(), i, mCursorPos, mWText, removeChar(), S32, setCursorPos(), SPACES_PER_TAB, updateLineStartList(), and updateScrollFromCursor().

Referenced by handleEditKey().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLTextEditor::canDoDelete (  )  const [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 2285 of file lltexteditor.cpp.

References getLength(), hasSelection(), mCursorPos, and mReadOnly.

Referenced by doDelete(), and handleEditKey().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLTextEditor::selectAll (  )  [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 1056 of file lltexteditor.cpp.

References getLength(), mCursorPos, mSelectionEnd, and mSelectionStart.

Referenced by handleSelectionKey().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLTextEditor::canSelectAll (  )  const [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 1050 of file lltexteditor.cpp.

References TRUE.

Referenced by handleSelectionKey().

Here is the caller graph for this function:

void LLTextEditor::deselect (  )  [virtual]

BOOL LLTextEditor::canDeselect (  )  const [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 882 of file lltexteditor.cpp.

References hasSelection().

Here is the call graph for this function:

void LLTextEditor::selectNext ( const LLString search_text_in,
BOOL  case_insensitive,
BOOL  wrap = TRUE 
)

Definition at line 594 of file lltexteditor.cpp.

References FALSE, getLength(), getWText(), llmin(), mCursorPos, mIsSelecting, mSelectionEnd, mSelectionStart, S32, setCursorPos(), LLStringBase< T >::toLower(), TRUE, and utf8str_to_wstring().

Referenced by LLFloaterScriptSearch::handleBtnSearch(), replaceText(), and replaceTextAll().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLTextEditor::replaceText ( const LLString search_text,
const LLString replace_text,
BOOL  case_insensitive,
BOOL  wrap = TRUE 
)

Definition at line 644 of file lltexteditor.cpp.

References FALSE, getWText(), insertText(), mIsSelecting, mSelectionEnd, mSelectionStart, selectNext(), LLStringBase< T >::toLower(), TRUE, and utf8str_to_wstring().

Referenced by LLFloaterScriptSearch::handleBtnReplace(), and replaceTextAll().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLTextEditor::replaceTextAll ( const LLString search_text,
const LLString replace_text,
BOOL  case_insensitive 
)

Definition at line 677 of file lltexteditor.cpp.

References FALSE, LLScrollbar::getDocPos(), mScrollbar, replaceText(), S32, selectNext(), setCursorPos(), LLScrollbar::setDocPos(), and TRUE.

Referenced by LLFloaterScriptSearch::handleBtnReplaceAll().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLTextEditor::blockUndo (  ) 

Definition at line 2341 of file lltexteditor.cpp.

References FALSE, mBaseDocIsPristine, mLastCmd, mUndoStack, and NULL.

Referenced by appendText(), setText(), and setWText().

Here is the caller graph for this function:

void LLTextEditor::makePristine (  )  [virtual]

BOOL LLTextEditor::isPristine (  )  const

BOOL LLTextEditor::allowsEmbeddedItems (  )  const [inline]

void LLTextEditor::insertText ( const LLString text  ) 

Definition at line 3414 of file lltexteditor.cpp.

References deleteSelection(), FALSE, LLView::getEnabled(), hasSelection(), insert(), mCursorPos, setCursorPos(), setEnabled(), TRUE, updateLineStartList(), updateScrollFromCursor(), and utf8str_to_wstring().

Referenced by LLFloaterReporter::addDescription(), and replaceText().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLTextEditor::appendText ( const LLString wtext,
bool  allow_undo,
bool  prepend_newline,
const LLStyleSP stylep = NULL 
)

void LLTextEditor::appendColoredText ( const LLString wtext,
bool  allow_undo,
bool  prepend_newline,
const LLColor4 color,
const LLString font_name = LLString::null 
)

Definition at line 3434 of file lltexteditor.cpp.

References appendStyledText().

Referenced by add_timestamped_line(), LLFloaterIMPanel::addHistoryLine(), LLFloaterScriptDebugOutput::addLine(), LLViewerTextEditor::appendTime(), and LLGroupNotifyBox::LLGroupNotifyBox().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLTextEditor::appendStyledText ( const LLString new_text,
bool  allow_undo,
bool  prepend_newline,
const LLStyleSP stylep = NULL 
)

Definition at line 3447 of file lltexteditor.cpp.

References appendText(), findHTML(), mLinkColor, mParseHTML, S32, and TRUE.

Referenced by add_timestamped_line(), LLFloaterIMPanel::addHistoryLine(), appendColoredText(), LLViewerTextEditor::fromXML(), and LLGroupNotifyBox::LLGroupNotifyBox().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLTextEditor::removeTextFromEnd ( S32  num_chars  ) 

Definition at line 3564 of file lltexteditor.cpp.

References FALSE, getLength(), llclamp(), mCursorPos, mSelectionEnd, mSelectionStart, pruneSegments(), S32, and updateLineStartList().

Referenced by LLFloaterIMPanel::removeTypingIndicator(), and LLFloaterIMPanel::sessionInitReplyReceived().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLTextEditor::tryToRevertToPristineState (  ) 

Definition at line 3646 of file lltexteditor.cpp.

References canRedo(), canUndo(), deselect(), i, isPristine(), redo(), S32, undo(), updateLineStartList(), and updateScrollFromCursor().

Here is the call graph for this function:

void LLTextEditor::setCursor ( S32  row,
S32  column 
)

Definition at line 860 of file lltexteditor.cpp.

References mWText, setCursorPos(), and updateScrollFromCursor().

Referenced by LLGroupNotifyBox::LLGroupNotifyBox().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLTextEditor::setCursorPos ( S32  offset  ) 

void LLTextEditor::setCursorAndScrollToEnd (  ) 

Definition at line 3256 of file lltexteditor.cpp.

References deselect(), endOfDoc(), and updateScrollFromCursor().

Referenced by LLFloaterChat::onClickToggleShowMute(), and LLFloaterChat::setHistoryCursorAndScrollToEnd().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLTextEditor::getCurrentLineAndColumn ( S32 line,
S32 col,
BOOL  include_wordwrap 
)

Definition at line 3264 of file lltexteditor.cpp.

References getLineAndOffset(), i, mCursorPos, mWText, and S32.

Referenced by LLScriptEdCore::draw().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLTextEditor::loadKeywords ( const LLString filename,
const LLDynamicArray< const char * > &  funcs,
const LLDynamicArray< const char * > &  tooltips,
const LLColor3 func_color 
)

LLKeywords::keyword_iterator_t LLTextEditor::keywordsBegin (  )  [inline]

Definition at line 170 of file lltexteditor.h.

References LLKeywords::begin(), and mKeywords.

Referenced by LLScriptEdCore::onBtnDynamicHelp().

Here is the call graph for this function:

Here is the caller graph for this function:

LLKeywords::keyword_iterator_t LLTextEditor::keywordsEnd (  )  [inline]

Definition at line 171 of file lltexteditor.h.

References LLKeywords::end(), and mKeywords.

Referenced by LLScriptEdCore::onBtnDynamicHelp().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLTextEditor::setCursorColor ( const LLColor4 c  )  [inline]

Definition at line 174 of file lltexteditor.h.

References mCursorColor.

Referenced by setTextEditorParameters().

Here is the caller graph for this function:

void LLTextEditor::setFgColor ( const LLColor4 c  )  [inline]

Definition at line 175 of file lltexteditor.h.

References mFgColor.

Referenced by setTextEditorParameters().

Here is the caller graph for this function:

void LLTextEditor::setTextDefaultColor ( const LLColor4 c  )  [inline]

Definition at line 176 of file lltexteditor.h.

References mDefaultColor.

void LLTextEditor::setReadOnlyFgColor ( const LLColor4 c  )  [inline]

Definition at line 177 of file lltexteditor.h.

References mReadOnlyFgColor.

Referenced by LLNotifyBox::LLNotifyBox(), LLFloaterTOS::postBuild(), and setTextEditorParameters().

Here is the caller graph for this function:

void LLTextEditor::setWriteableBgColor ( const LLColor4 c  )  [inline]

Definition at line 178 of file lltexteditor.h.

References mWriteableBgColor.

Referenced by LLGroupNotifyBox::LLGroupNotifyBox(), and setTextEditorParameters().

Here is the caller graph for this function:

void LLTextEditor::setReadOnlyBgColor ( const LLColor4 c  )  [inline]

Definition at line 179 of file lltexteditor.h.

References mReadOnlyBgColor.

Referenced by LLGroupNotifyBox::LLGroupNotifyBox(), LLNotifyBox::LLNotifyBox(), and setTextEditorParameters().

Here is the caller graph for this function:

void LLTextEditor::setTrackColor ( const LLColor4 color  ) 

Definition at line 357 of file lltexteditor.cpp.

References mScrollbar, and LLScrollbar::setTrackColor().

Here is the call graph for this function:

void LLTextEditor::setThumbColor ( const LLColor4 color  ) 

Definition at line 362 of file lltexteditor.cpp.

References mScrollbar, and LLScrollbar::setThumbColor().

Here is the call graph for this function:

void LLTextEditor::setHighlightColor ( const LLColor4 color  ) 

Definition at line 367 of file lltexteditor.cpp.

References mScrollbar, and LLScrollbar::setHighlightColor().

Here is the call graph for this function:

void LLTextEditor::setShadowColor ( const LLColor4 color  ) 

Definition at line 372 of file lltexteditor.cpp.

References mScrollbar, and LLScrollbar::setShadowColor().

Here is the call graph for this function:

void LLTextEditor::setBorderVisible ( BOOL  b  ) 

Definition at line 573 of file lltexteditor.cpp.

References mBorder, and LLView::setVisible().

Referenced by LLViewerTextEditor::fromXML(), LLGroupNotifyBox::LLGroupNotifyBox(), and LLNotifyBox::LLNotifyBox().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLTextEditor::isBorderVisible (  )  const

Definition at line 578 of file lltexteditor.cpp.

References LLView::getVisible(), and mBorder.

Referenced by LLViewerTextEditor::fromXML().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLTextEditor::setTakesNonScrollClicks ( BOOL  b  )  [inline]

Definition at line 189 of file lltexteditor.h.

References mTakesNonScrollClicks.

Referenced by LLGroupNotifyBox::LLGroupNotifyBox(), and LLNotifyBox::LLNotifyBox().

Here is the caller graph for this function:

void LLTextEditor::setHideScrollbarForShortDocs ( BOOL  b  ) 

Definition at line 583 of file lltexteditor.cpp.

References LLScrollbar::getDocSize(), LLScrollbar::getPageSize(), mHideScrollbarForShortDocs, mScrollbar, and LLView::setVisible().

Referenced by LLViewerTextEditor::fromXML(), fromXML(), LLGroupNotifyBox::LLGroupNotifyBox(), and LLNotifyBox::LLNotifyBox().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLTextEditor::setWordWrap ( BOOL  b  ) 

void LLTextEditor::setTabsToNextField ( BOOL  b  )  [inline]

Definition at line 193 of file lltexteditor.h.

References mTabsToNextField.

Referenced by LLViewerTextEditor::fromXML(), LLGroupNotifyBox::LLGroupNotifyBox(), LLPanelPick::postBuild(), and LLPanelClassified::postBuild().

Here is the caller graph for this function:

BOOL LLTextEditor::tabsToNextField (  )  const [inline]

Definition at line 194 of file lltexteditor.h.

References mTabsToNextField.

Referenced by LLViewerTextEditor::fromXML().

Here is the caller graph for this function:

void LLTextEditor::setCommitOnFocusLost ( BOOL  b  )  [inline]

Definition at line 195 of file lltexteditor.h.

References mCommitOnFocusLost.

Referenced by LLPanelPick::postBuild(), LLPanelClassified::postBuild(), LLPanelAvatarNotes::postBuild(), and LLPanelLandGeneral::postBuild().

Here is the caller graph for this function:

BOOL LLTextEditor::importBuffer ( const LLString buffer  )  [virtual]

Reimplemented in LLViewerTextEditor.

Definition at line 3900 of file lltexteditor.cpp.

References deselect(), FALSE, llendl, llerrs, llformat(), llwarns, MAX_STRING, mMaxTextByteLength, NULL, S32, setCursorPos(), setText(), TRUE, updateLineStartList(), and updateScrollFromCursor().

Here is the call graph for this function:

BOOL LLTextEditor::exportBuffer ( LLString buffer  )  [virtual]

Reimplemented in LLViewerTextEditor.

Definition at line 3989 of file lltexteditor.cpp.

References getText(), llformat(), mWText, and TRUE.

Here is the call graph for this function:

void LLTextEditor::setTakesFocus ( BOOL  b  )  [inline]

Definition at line 202 of file lltexteditor.h.

References mTakesFocus.

Referenced by LLFloaterAbout::LLFloaterAbout().

Here is the caller graph for this function:

void LLTextEditor::setSourceID ( const LLUUID id  )  [inline]

Definition at line 204 of file lltexteditor.h.

References mSourceID.

Referenced by LLPreviewNotecard::LLPreviewNotecard().

Here is the caller graph for this function:

const LLUUID& LLTextEditor::getSourceID (  )  const [inline]

Definition at line 205 of file lltexteditor.h.

References mSourceID.

Referenced by LLViewerTextEditor::handleHover().

Here is the caller graph for this function:

void LLTextEditor::setAcceptCallingCardNames ( BOOL  enable  )  [inline]

Definition at line 206 of file lltexteditor.h.

References mAcceptCallingCardNames.

BOOL LLTextEditor::acceptsCallingCardNames (  )  const [inline]

Definition at line 207 of file lltexteditor.h.

References mAcceptCallingCardNames.

Referenced by LLViewerTextEditor::handleDragAndDrop().

Here is the caller graph for this function:

void LLTextEditor::setHandleEditKeysDirectly ( BOOL  b  )  [inline]

static void LLTextEditor::setLinkColor ( LLColor4  color  )  [inline, static]

Definition at line 212 of file lltexteditor.h.

References mLinkColor.

Referenced by LLPrefsChat::apply(), and idle_startup().

Here is the caller graph for this function:

static void LLTextEditor::setURLCallbacks ( void(*)(const char *url)  callback1,
bool(*)(const std::string &url)  callback2,
bool(*)(const std::string &url)  callback3 
) [inline, static]

Definition at line 213 of file lltexteditor.h.

References mSecondlifeURLcallback, mSecondlifeURLcallbackRightClick, and mURLcallback.

Referenced by idle_startup().

Here is the caller graph for this function:

void LLTextEditor::setOnScrollEndCallback ( void(*)(void *)  callback,
void *  userdata 
)

Definition at line 3890 of file lltexteditor.cpp.

References mOnScrollEndCallback, mOnScrollEndData, mScrollbar, and LLScrollbar::setOnScrollEndCallback().

Here is the call graph for this function:

void LLTextEditor::setValue ( const LLSD value  )  [virtual]

Reimplemented from LLView.

Definition at line 536 of file lltexteditor.cpp.

References LLSD::asString(), and setText().

Here is the call graph for this function:

LLSD LLTextEditor::getValue (  )  const [virtual]

Reimplemented from LLUICtrl.

Definition at line 556 of file lltexteditor.cpp.

References getText().

Here is the call graph for this function:

const LLString & LLTextEditor::getText (  )  const

void LLTextEditor::setText ( const LLStringExplicit utf8str  ) 

Definition at line 497 of file lltexteditor.cpp.

References blockUndo(), deselect(), mTextIsUpToDate, mUTF8Text, mWText, LLUICtrl::resetDirty(), setCursorPos(), TRUE, truncate(), updateLineStartList(), updateScrollFromCursor(), utf8str_removeCRLF(), and utf8str_to_wstring().

Referenced by clear(), LLPanelPlace::displayItemInfo(), LLPanelPlace::displayParcelInfo(), LLPanelGroupActionsSubTab::handleActionSelect(), LLPanelGroupRolesSubTab::handleRoleSelect(), importBuffer(), LLViewerTextEditor::importStream(), LLPanelPick::initNewPick(), LLFloaterAbout::LLFloaterAbout(), LLLiveLSLEditor::loadAsset(), LLPreviewLSL::loadAsset(), LLPreviewNotecard::loadAsset(), LLLiveLSLEditor::loadScriptText(), LLGroupMoneyTabEventHandler::onClickEarlier(), LLGroupMoneyTabEventHandler::onClickLater(), LLPreviewLSL::onLoadComplete(), LLPreviewNotecard::onLoadComplete(), LLFloaterPostcard::onMsgFormFocusRecieved(), LLGroupMoneyPlanningTabEventHandler::processReply(), LLGroupMoneySalesTabEventHandler::processReply(), LLGroupMoneyDetailsTabEventHandler::processReply(), LLPanelLandGeneral::refresh(), LLGroupMoneyPlanningTabEventHandler::requestData(), LLGroupMoneySalesTabEventHandler::requestData(), LLGroupMoneyDetailsTabEventHandler::requestData(), LLPanelPlace::resetLocation(), LLPanelEstateCovenant::setCovenantTextEditor(), LLPanelGroupVoting::impl::setEnableCreateProposal(), LLPanelGroupVoting::impl::setEnableHistoryItem(), LLPanelGroupVoting::impl::setEnableVoteProposal(), LLPanelPlace::setErrorStatus(), setValue(), LLPanelGroupNotices::showNotice(), LLPanelGroupGeneral::update(), LLFloaterSettingsDebug::updateControl(), LLPanelEstateCovenant::updateCovenantText(), LLPanelLandCovenant::updateCovenantText(), and LLFloaterBuyLandUI::updateCovenantText().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLTextEditor::setWText ( const LLWString wtext  ) 

Definition at line 517 of file lltexteditor.cpp.

References blockUndo(), deselect(), FALSE, mTextIsUpToDate, mUTF8Text, mWText, LLUICtrl::resetDirty(), setCursorPos(), truncate(), updateLineStartList(), and updateScrollFromCursor().

Referenced by LLViewerTextEditor::setASCIIEmbeddedText(), and LLViewerTextEditor::setEmbeddedText().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLTextEditor::getMaxLength (  )  const [inline]

Definition at line 231 of file lltexteditor.h.

References mMaxTextByteLength.

Referenced by getXML().

Here is the caller graph for this function:

void LLTextEditor::startOfLine (  ) 

Definition at line 3247 of file lltexteditor.cpp.

References getLineAndOffset(), mCursorPos, S32, and setCursorPos().

Referenced by handleNavigationKey(), and handleSelectionKey().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLTextEditor::endOfLine (  ) 

Definition at line 3290 of file lltexteditor.cpp.

References getLength(), getLineAndOffset(), getLineCount(), getLineStart(), mCursorPos, S32, and setCursorPos().

Referenced by handleNavigationKey(), and handleSelectionKey().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLTextEditor::endOfDoc (  ) 

Definition at line 3305 of file lltexteditor.cpp.

References LLScrollbar::getDocPos(), LLScrollbar::getDocPosMax(), getLength(), mOnScrollEndCallback, mOnScrollEndData, mScrollbar, S32, setCursorPos(), and LLScrollbar::setDocPos().

Referenced by appendText(), handleControlKey(), reshape(), and setCursorAndScrollToEnd().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLTextEditor::isScrolledToTop (  ) 

Definition at line 3236 of file lltexteditor.cpp.

References LLScrollbar::isAtBeginning(), and mScrollbar.

Here is the call graph for this function:

BOOL LLTextEditor::isScrolledToBottom (  ) 

Definition at line 3241 of file lltexteditor.cpp.

References LLScrollbar::isAtEnd(), and mScrollbar.

Referenced by draw().

Here is the call graph for this function:

Here is the caller graph for this function:

const LLWString& LLTextEditor::getWText (  )  const [inline, virtual]

llwchar LLTextEditor::getWChar ( S32  pos  )  const [inline]

LLWString LLTextEditor::getWSubString ( S32  pos,
S32  len 
) const [inline]

Definition at line 244 of file lltexteditor.h.

References mWText.

Referenced by LLTextEditor::LLTextCmdRemove::execute(), and updatePreedit().

Here is the caller graph for this function:

const LLTextSegment* LLTextEditor::getCurrentSegment (  )  [inline]

Definition at line 246 of file lltexteditor.h.

References getSegmentAtOffset(), and mCursorPos.

Here is the call graph for this function:

const LLTextSegment * LLTextEditor::getPreviousSegment (  ) 

Definition at line 781 of file lltexteditor.cpp.

References getSegmentIdxAtOffset(), llmax(), mCursorPos, mSegments, NULL, and S32.

Referenced by LLScriptEdCore::updateDynamicHelp().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLTextEditor::getSelectedSegments ( std::vector< const LLTextSegment * > &  segments  ) 

Definition at line 788 of file lltexteditor.cpp.

References getSegmentIdxAtOffset(), hasSelection(), llmax(), llmin(), mCursorPos, mSegments, mSelectionEnd, mSelectionStart, and S32.

Referenced by LLScriptEdCore::updateDynamicHelp().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLTextEditor::getLength (  )  const [inline, protected]

void LLTextEditor::getSegmentAndOffset ( S32  startpos,
S32 segidxp,
S32 offsetp 
) const [protected]

Definition at line 765 of file lltexteditor.cpp.

References mSegments.

Referenced by getLineAndOffset(), getSegmentIdxAtOffset(), and updateLineStartList().

Here is the caller graph for this function:

void LLTextEditor::drawPreeditMarker (  )  [protected]

void LLTextEditor::updateLineStartList ( S32  startpos = 0  )  [protected]

void LLTextEditor::updateScrollFromCursor (  )  [protected]

void LLTextEditor::updateTextRect (  )  [protected]

Definition at line 3682 of file lltexteditor.cpp.

References LLView::getRect(), mTextRect, SCROLLBAR_SIZE, LLRectBase< Type >::setOriginAndSize(), UI_TEXTEDITOR_BORDER, UI_TEXTEDITOR_H_PAD, and UI_TEXTEDITOR_V_PAD_TOP.

Referenced by LLTextEditor(), and reshape().

Here is the call graph for this function:

Here is the caller graph for this function:

const LLRect& LLTextEditor::getTextRect (  )  const [inline, protected]

Definition at line 262 of file lltexteditor.h.

References mTextRect.

Referenced by LLViewerTextEditor::handleHover(), and LLViewerTextEditor::handleMouseUp().

Here is the caller graph for this function:

void LLTextEditor::assignEmbedded ( const LLString s  )  [protected]

BOOL LLTextEditor::truncate (  )  [protected]

Definition at line 474 of file lltexteditor.cpp.

References FALSE, mMaxTextByteLength, mTextIsUpToDate, mWText, S32, TRUE, utf8str_to_wstring(), utf8str_truncate(), wstring_to_utf8str(), and wstring_utf8_length().

Referenced by insertStringNoUndo(), setText(), and setWText().

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL LLTextEditor::isPartOfWord ( llwchar  c  )  [inline, static, protected]

Definition at line 267 of file lltexteditor.h.

Referenced by LLViewerTextEditor::handleDoubleClick(), handleDoubleClick(), nextWordPos(), and prevWordPos().

Here is the caller graph for this function:

void LLTextEditor::removeCharOrTab (  )  [protected]

Definition at line 1460 of file lltexteditor.cpp.

References FALSE, LLView::getEnabled(), getLineAndOffset(), i, mCursorPos, mWText, reportBadKeystroke(), S32, setCursorPos(), and SPACES_PER_TAB.

Referenced by handleSpecialKey(), and unindentLineBeforeCloseBrace().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLTextEditor::setCursorAtLocalPos ( S32  x,
S32  y,
BOOL  round 
) [protected]

S32 LLTextEditor::getCursorPosFromLocalCoord ( S32  local_x,
S32  local_y,
BOOL  round 
) const [protected]

void LLTextEditor::indentSelectedLines ( S32  spaces  )  [protected]

Definition at line 970 of file lltexteditor.cpp.

References getLength(), hasSelection(), indentLine(), llmin(), mCursorPos, mSelectionEnd, mSelectionStart, mWText, and S32.

Referenced by handleSpecialKey().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLTextEditor::indentLine ( S32  pos,
S32  spaces 
) [protected]

Definition at line 935 of file lltexteditor.cpp.

References addChar(), FALSE, getLength(), i, llassert, mWText, and S32.

Referenced by indentSelectedLines().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLTextEditor::unindentLineBeforeCloseBrace (  )  [protected]

Definition at line 2136 of file lltexteditor.cpp.

References mCursorPos, mWText, and removeCharOrTab().

Referenced by handleUnicodeCharHere().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLTextEditor::getSegmentIdxAtOffset ( S32  offset  )  const [protected]

Definition at line 3871 of file lltexteditor.cpp.

References getLength(), getSegmentAndOffset(), mSegments, and S32.

Referenced by getPreviousSegment(), getSegmentAtLocalPos(), getSegmentAtOffset(), and getSelectedSegments().

Here is the call graph for this function:

Here is the caller graph for this function:

const LLTextSegment * LLTextEditor::getSegmentAtLocalPos ( S32  x,
S32  y 
) const [protected]

Definition at line 3857 of file lltexteditor.cpp.

References FALSE, getCursorPosFromLocalCoord(), getSegmentIdxAtOffset(), mSegments, NULL, and S32.

Referenced by LLViewerTextEditor::handleDoubleClick(), LLViewerTextEditor::handleHover(), handleHover(), LLViewerTextEditor::handleToolTip(), and handleToolTip().

Here is the call graph for this function:

Here is the caller graph for this function:

const LLTextSegment * LLTextEditor::getSegmentAtOffset ( S32  offset  )  const [protected]

Definition at line 3865 of file lltexteditor.cpp.

References getSegmentIdxAtOffset(), mSegments, NULL, and S32.

Referenced by drawCursor(), and getCurrentSegment().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLTextEditor::reportBadKeystroke (  )  [inline, protected]

Definition at line 281 of file lltexteditor.h.

References make_ui_sound().

Referenced by handleEditKey(), handleNavigationKey(), handleSelectionKey(), handleSpecialKey(), removeChar(), and removeCharOrTab().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLTextEditor::handleNavigationKey ( const KEY  key,
const MASK  mask 
) [protected]

BOOL LLTextEditor::handleSpecialKey ( const KEY  key,
const MASK  mask,
BOOL return_key_hit 
) [protected]

BOOL LLTextEditor::handleSelectionKey ( const KEY  key,
const MASK  mask 
) [protected]

BOOL LLTextEditor::handleControlKey ( const KEY  key,
const MASK  mask 
) [protected]

Definition at line 1910 of file lltexteditor.cpp.

References deselect(), endOfDoc(), FALSE, getLength(), KEY_END, KEY_HOME, KEY_LEFT, KEY_RIGHT, MASK_CONTROL, MASK_SHIFT, mCursorPos, mSelectionEnd, nextWordPos(), prevWordPos(), setCursorPos(), startSelection(), and TRUE.

Referenced by handleKeyHere().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLTextEditor::handleEditKey ( const KEY  key,
const MASK  mask 
) [protected]

Definition at line 1988 of file lltexteditor.cpp.

References canCopy(), canCut(), canDoDelete(), canPaste(), copy(), cut(), doDelete(), FALSE, KEY_DELETE, MASK_CONTROL, paste(), reportBadKeystroke(), and TRUE.

Referenced by handleKeyHere().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLTextEditor::hasSelection (  )  const [inline, protected]

BOOL LLTextEditor::selectionContainsLineBreaks (  )  [protected]

Definition at line 915 of file lltexteditor.cpp.

References FALSE, hasSelection(), i, llmin(), mSelectionEnd, mSelectionStart, mWText, S32, and TRUE.

Referenced by handleSpecialKey().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLTextEditor::startSelection (  )  [protected]

void LLTextEditor::endSelection (  )  [protected]

Definition at line 906 of file lltexteditor.cpp.

References FALSE, mCursorPos, mIsSelecting, and mSelectionEnd.

Referenced by LLViewerTextEditor::handleMouseUp(), handleMouseUp(), onMouseCaptureLost(), and setFocus().

Here is the caller graph for this function:

void LLTextEditor::deleteSelection ( BOOL  transient_operation  )  [protected]

Definition at line 1802 of file lltexteditor.cpp.

References deselect(), LLView::getEnabled(), hasSelection(), llmin(), mSelectionEnd, mSelectionStart, S32, and setCursorPos().

Referenced by addChar(), cut(), doDelete(), handleSpecialKey(), insertText(), and paste().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLTextEditor::prevWordPos ( S32  cursorPos  )  const [protected]

Definition at line 699 of file lltexteditor.cpp.

References isPartOfWord(), and mWText.

Referenced by handleControlKey(), and handleSelectionKey().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLTextEditor::nextWordPos ( S32  cursorPos  )  const [protected]

Definition at line 713 of file lltexteditor.cpp.

References getLength(), isPartOfWord(), and mWText.

Referenced by handleControlKey(), and handleSelectionKey().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLTextEditor::getLineCount (  )  const [inline, protected]

S32 LLTextEditor::getLineStart ( S32  line  )  const [protected]

void LLTextEditor::getLineAndOffset ( S32  pos,
S32 linep,
S32 offsetp 
) const [protected]

Definition at line 744 of file lltexteditor.cpp.

References getSegmentAndOffset(), mLineStartList, mSegments, S32, and tut::tline().

Referenced by autoIndent(), changeLine(), changePage(), doDelete(), endOfLine(), getCurrentLineAndColumn(), handleSpecialKey(), removeCharOrTab(), startOfLine(), and updateScrollFromCursor().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLTextEditor::getPos ( S32  line,
S32  offset 
) [protected]

Definition at line 3133 of file lltexteditor.cpp.

References getLength(), getLineStart(), llmax(), llmin(), and S32.

Referenced by changeLine(), and changePage().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLTextEditor::changePage ( S32  delta  )  [protected]

void LLTextEditor::changeLine ( S32  delta  )  [protected]

void LLTextEditor::autoIndent (  )  [protected]

Definition at line 3383 of file lltexteditor.cpp.

References addChar(), getLineAndOffset(), getLineStart(), i, mCursorPos, mWText, S32, and SPACES_PER_TAB.

Referenced by handleSpecialKey().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLTextEditor::findEmbeddedItemSegments (  )  [protected]

Definition at line 3773 of file lltexteditor.cpp.

References FALSE, FIRST_EMBEDDED_CHAR, LAST_EMBEDDED_CHAR, mFgColor, mHoverSegment, mReadOnly, mReadOnlyFgColor, mSegments, mWText, NULL, S32, and TRUE.

Referenced by updateSegments().

Here is the caller graph for this function:

BOOL LLTextEditor::handleMouseUpOverSegment ( S32  x,
S32  y,
MASK  mask 
) [protected, virtual]

Definition at line 3834 of file lltexteditor.cpp.

References FALSE, LLView::hasMouseCapture(), mHTML, mParseHTML, mSecondlifeURLcallback, mURLcallback, and NULL.

Referenced by LLViewerTextEditor::handleMouseUp(), and handleMouseUp().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual llwchar LLTextEditor::pasteEmbeddedItem ( llwchar  ext_char  )  [inline, protected, virtual]

Reimplemented in LLViewerTextEditor.

Definition at line 312 of file lltexteditor.h.

Referenced by paste().

Here is the caller graph for this function:

virtual void LLTextEditor::bindEmbeddedChars ( LLFontGL font  )  const [inline, protected, virtual]

Reimplemented in LLViewerTextEditor.

Definition at line 313 of file lltexteditor.h.

Referenced by changeLine(), draw(), getCursorPosFromLocalCoord(), and updateLineStartList().

Here is the caller graph for this function:

virtual void LLTextEditor::unbindEmbeddedChars ( LLFontGL font  )  const [inline, protected, virtual]

Reimplemented in LLViewerTextEditor.

Definition at line 314 of file lltexteditor.h.

Referenced by changeLine(), draw(), getCursorPosFromLocalCoord(), and updateLineStartList().

Here is the caller graph for this function:

S32 LLTextEditor::findHTMLToken ( const LLString line,
S32  pos,
BOOL  reverse 
) const [protected]

Definition at line 4163 of file lltexteditor.cpp.

References S32.

Referenced by findHTML().

Here is the caller graph for this function:

BOOL LLTextEditor::findHTML ( const LLString line,
S32 begin,
S32 end 
) const [protected]

Definition at line 4200 of file lltexteditor.cpp.

References FALSE, findHTMLToken(), S32, and TRUE.

Referenced by appendStyledText().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLTextEditor::execute ( LLTextCmd cmd  )  [protected]

Definition at line 1405 of file lltexteditor.cpp.

References LLTextEditor::LLTextCmd::execute(), mLastCmd, mUndoStack, and S32.

Referenced by addChar(), insert(), LLViewerTextEditor::insertEmbeddedItem(), overwriteChar(), and remove().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLTextEditor::addChar ( llwchar  c  )  [protected]

Definition at line 1553 of file lltexteditor.cpp.

References deleteSelection(), LLView::getEnabled(), LLKeyboard::getInsertMode(), gKeyboard, hasSelection(), LL_KIM_OVERWRITE, mCursorPos, removeChar(), setCursorPos(), and TRUE.

Referenced by autoIndent(), handleSpecialKey(), handleUnicodeCharHere(), indentLine(), and overwriteChar().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLTextEditor::addChar ( S32  pos,
llwchar  wc 
) [protected]

S32 LLTextEditor::overwriteChar ( S32  pos,
llwchar  wc 
) [protected]

Definition at line 1446 of file lltexteditor.cpp.

References addChar(), execute(), FALSE, mWText, and S32.

Here is the call graph for this function:

void LLTextEditor::removeChar (  )  [protected]

Definition at line 1515 of file lltexteditor.cpp.

References LLView::getEnabled(), mCursorPos, reportBadKeystroke(), and setCursorPos().

Referenced by addChar(), and doDelete().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLTextEditor::removeChar ( S32  pos  )  [protected]

Definition at line 1510 of file lltexteditor.cpp.

References FALSE.

S32 LLTextEditor::insert ( const S32  pos,
const LLWString wstr,
const BOOL  group_with_next_op 
) [protected]

Definition at line 1431 of file lltexteditor.cpp.

References execute().

Referenced by append(), insertText(), and paste().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLTextEditor::remove ( const S32  pos,
const S32  length,
const BOOL  group_with_next_op 
) [protected]

Definition at line 1436 of file lltexteditor.cpp.

References execute().

Here is the call graph for this function:

S32 LLTextEditor::append ( const LLWString wstr,
const BOOL  group_with_next_op 
) [protected]

Definition at line 1441 of file lltexteditor.cpp.

References insert(), and mWText.

Referenced by appendText().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLTextEditor::insertStringNoUndo ( S32  pos,
const LLWString wstr 
) [protected]

Definition at line 3582 of file lltexteditor.cpp.

References FALSE, make_ui_sound(), mTextIsUpToDate, mWText, S32, and truncate().

Referenced by LLTextEditor::LLTextCmd::insert(), resetPreedit(), and updatePreedit().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLTextEditor::removeStringNoUndo ( S32  pos,
S32  length 
) [protected]

Definition at line 3600 of file lltexteditor.cpp.

References FALSE, mTextIsUpToDate, and mWText.

Referenced by resetPreedit(), and updatePreedit().

Here is the caller graph for this function:

S32 LLTextEditor::overwriteCharNoUndo ( S32  pos,
llwchar  wc 
) [protected]

Definition at line 3607 of file lltexteditor.cpp.

References FALSE, mTextIsUpToDate, mWText, and S32.

Referenced by LLTextEditor::LLTextCmd::overwrite().

Here is the caller graph for this function:

void LLTextEditor::resetKeystrokeTimer (  )  [inline, protected]

void LLTextEditor::updateAllowingLanguageInput (  )  [protected]

Definition at line 4305 of file lltexteditor.cpp.

References LLWindow::allowLanguageTextInput(), FALSE, LLView::getWindow(), LLUICtrl::hasFocus(), mReadOnly, and TRUE.

Referenced by onFocusLost(), onFocusReceived(), and setEnabled().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLTextEditor::hasPreeditString (  )  const [protected]

Definition at line 4319 of file lltexteditor.cpp.

References mPreeditPositions.

Referenced by drawPreeditMarker(), getPreeditLocation(), getPreeditRange(), markAsPreedit(), and resetPreedit().

Here is the caller graph for this function:

void LLTextEditor::resetPreedit (  )  [protected, virtual]

void LLTextEditor::updatePreedit ( const LLWString preedit_string,
const segment_lengths_t preedit_segment_lengths,
const standouts_t preedit_standouts,
S32  caret_position 
) [protected, virtual]

void LLTextEditor::markAsPreedit ( S32  position,
S32  length 
) [protected, virtual]

void LLTextEditor::getPreeditRange ( S32 position,
S32 length 
) const [protected, virtual]

Implements LLPreeditor.

Definition at line 4499 of file lltexteditor.cpp.

References hasPreeditString(), mCursorPos, and mPreeditPositions.

Here is the call graph for this function:

void LLTextEditor::getSelectionRange ( S32 position,
S32 length 
) const [protected, virtual]

Implements LLPreeditor.

Definition at line 4485 of file lltexteditor.cpp.

References hasSelection(), llabs(), llmin(), mCursorPos, mSelectionEnd, and mSelectionStart.

Here is the call graph for this function:

BOOL LLTextEditor::getPreeditLocation ( S32  query_offset,
LLCoordGL coord,
LLRect bounds,
LLRect control 
) const [protected, virtual]

S32 LLTextEditor::getPreeditFontSize (  )  const [protected, virtual]

Implements LLPreeditor.

Definition at line 4545 of file lltexteditor.cpp.

References LLFontGL::getLineHeight(), llround(), mGLFont, LLVector2::mV, LLUI::sGLScaleFactor, and VY.

Here is the call graph for this function:

void LLTextEditor::updateSegments (  )  [private]

Definition at line 3714 of file lltexteditor.cpp.

References findEmbeddedItemSegments(), LLKeywords::findSegments(), LLKeywords::isLoaded(), mAllowEmbeddedItems, mDefaultColor, mFgColor, mKeywords, mReadOnly, mReadOnlyFgColor, mSegments, mWText, LLTextSegment::setIsDefault(), and TRUE.

Referenced by setEnabled(), and updateLineStartList().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLTextEditor::pruneSegments (  )  [private]

Definition at line 3741 of file lltexteditor.cpp.

References LLTextSegment::getEnd(), LLTextSegment::getStart(), llendl, llwarns, mSegments, mWText, S32, and LLTextSegment::setEnd().

Referenced by removeTextFromEnd().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLTextEditor::drawBackground (  )  [private]

Definition at line 2465 of file lltexteditor.cpp.

References LLView::draw(), LLRectBase< Type >::getHeight(), LLFocusMgr::getKeyboardFocus(), LLView::getRect(), LLRectBase< Type >::getWidth(), gFocusMgr, gl_rect_2d(), mFocusBgColor, mReadOnly, mReadOnlyBgColor, mWriteableBgColor, and S32.

Referenced by draw().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLTextEditor::drawSelectionBackground (  )  [private]

void LLTextEditor::drawCursor (  )  [private]

void LLTextEditor::drawText (  )  [private]

void LLTextEditor::drawClippedSegment ( const LLWString wtext,
S32  seg_start,
S32  seg_end,
F32  x,
F32  y,
S32  selection_left,
S32  selection_right,
const LLStyleSP color,
F32 right_x 
) [private]


Member Data Documentation

const llwchar LLTextEditor::FIRST_EMBEDDED_CHAR = 0x100000 [static]

const llwchar LLTextEditor::LAST_EMBEDDED_CHAR = 0x10ffff [static]

Definition at line 63 of file lltexteditor.h.

Definition at line 398 of file lltexteditor.h.

Referenced by LLViewerTextEditor::handleHover(), and handleHover().

Definition at line 399 of file lltexteditor.h.

Referenced by LLViewerTextEditor::handleHover(), and handleHover().

Definition at line 402 of file lltexteditor.h.

Referenced by drawText(), handleMouseUpOverSegment(), and LLTextEditor().

Definition at line 410 of file lltexteditor.h.

Referenced by getXML(), setHideScrollbarForShortDocs(), and updateLineStartList().

void(* LLTextEditor::mOnScrollEndCallback)(void *) [protected]

void* LLTextEditor::mOnScrollEndData [protected]

Definition at line 415 of file lltexteditor.h.

Referenced by markAsPreedit(), resetPreedit(), and updatePreedit().

Definition at line 416 of file lltexteditor.h.

Referenced by markAsPreedit(), resetPreedit(), and updatePreedit().

std::vector<S32> LLTextEditor::mPreeditPositions [protected]

std::vector<BOOL> LLTextEditor::mPreeditStandouts [protected]

Definition at line 418 of file lltexteditor.h.

Referenced by drawPreeditMarker(), markAsPreedit(), and updatePreedit().

Definition at line 437 of file lltexteditor.h.

Referenced by keywordsBegin(), keywordsEnd(), loadKeywords(), and updateSegments().

Definition at line 438 of file lltexteditor.h.

Referenced by appendStyledText(), and setLinkColor().

void(* LLTextEditor::mURLcallback)(const char *) ( const char *  url  )  = NULL [static, private]

bool(* LLTextEditor::mSecondlifeURLcallback)(const std::string &) ( const std::string &  url  )  = NULL [static, private]

bool(* LLTextEditor::mSecondlifeURLcallbackRightClick)(const std::string &) ( const std::string &  url  )  = NULL [static, private]

Referenced by setURLCallbacks().

LLString LLTextEditor::mUTF8Text [mutable, private]

Definition at line 450 of file lltexteditor.h.

Referenced by getText(), setText(), and setWText().

BOOL LLTextEditor::mTextIsUpToDate [mutable, private]

Definition at line 453 of file lltexteditor.h.

Referenced by addChar(), getMaxLength(), importBuffer(), and truncate().

const LLFontGL* LLTextEditor::mGLFont [private]

Definition at line 457 of file lltexteditor.h.

Referenced by draw(), isBorderVisible(), LLTextEditor(), and setBorderVisible().

Definition at line 459 of file lltexteditor.h.

Referenced by blockUndo(), isPristine(), and makePristine().

Definition at line 460 of file lltexteditor.h.

Referenced by isDirty(), isPristine(), and makePristine().

Definition at line 465 of file lltexteditor.h.

Referenced by blockUndo(), canRedo(), execute(), redo(), undo(), and ~LLTextEditor().

Definition at line 467 of file lltexteditor.h.

Referenced by changeLine(), changePage(), LLTextEditor(), and setCursorPos().

Definition at line 489 of file lltexteditor.h.

Referenced by getLineAndOffset(), getLineCount(), getLineStart(), and updateLineStartList().

Definition at line 491 of file lltexteditor.h.

Referenced by drawCursor(), resetKeystrokeTimer(), and updatePreedit().

Definition at line 493 of file lltexteditor.h.

Referenced by drawCursor(), drawPreeditMarker(), getXML(), and setCursorColor().

Definition at line 496 of file lltexteditor.h.

Referenced by getXML(), loadKeywords(), setTextDefaultColor(), and updateSegments().

Definition at line 500 of file lltexteditor.h.

Referenced by drawBackground(), and getXML().

Definition at line 503 of file lltexteditor.h.

Referenced by getXML(), setWordWrap(), and updateLineStartList().

Definition at line 505 of file lltexteditor.h.

Referenced by handleKeyHere(), setTabsToNextField(), and tabsToNextField().

Definition at line 506 of file lltexteditor.h.

Referenced by onFocusLost(), and setCommitOnFocusLost().

Definition at line 507 of file lltexteditor.h.

Referenced by setTakesFocus().

Definition at line 508 of file lltexteditor.h.

Referenced by reshape(), and setTextEditorParameters().

Definition at line 509 of file lltexteditor.h.

Referenced by draw(), and reshape().

Definition at line 513 of file lltexteditor.h.

Referenced by acceptsCallingCardNames(), and setAcceptCallingCardNames().

Definition at line 515 of file lltexteditor.h.

Referenced by copy(), cut(), getSourceID(), LLTextEditor(), and setSourceID().

Definition at line 519 of file lltexteditor.h.

Referenced by handleKeyHere(), handleSelectionKey(), and setHandleEditKeysDirectly().

Definition at line 521 of file lltexteditor.h.


The documentation for this class was generated from the following files:

Generated on Fri May 16 09:13:49 2008 for SecondLife by  doxygen 1.5.5