#include <lltexteditor.h>
Definition at line 55 of file lltexteditor.h.
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.
LLTextEditor::LLTextEditor | ( | const LLString & | name, | |
const LLRect & | rect, | |||
S32 | max_length, | |||
const LLString & | default_text, | |||
const LLFontGL * | glfont = NULL , |
|||
BOOL | allow_embedded_items = FALSE | |||
) |
Definition at line 245 of file lltexteditor.cpp.
References LLView::addChild(), appendText(), LLViewBorder::BEVEL_IN, FALSE, LLUUID::generate(), LLRectBase< Type >::getHeight(), getLineCount(), LLFontGL::getLineHeight(), LLView::getRect(), llround(), mBorder, mDesiredXPixel, mGLFont, mHTML, mOnScrollEndCallback, mOnScrollEndData, mParseHTML, mScrollbar, mSourceID, mTextRect, NULL, LLUICtrl::resetDirty(), S32, SCROLLBAR_SIZE, LLView::setEnabled(), LLView::setFollowsBottom(), LLView::setFollowsRight(), LLView::setFollowsTop(), LLScrollbar::setOnScrollEndCallback(), LLRectBase< Type >::setOriginAndSize(), LLView::setVisible(), LLFontGL::sSansSerif, LLViewBorder::STYLE_LINE, TRUE, UI_TEXTEDITOR_BORDER, updateTextRect(), and LLScrollbar::VERTICAL.
Referenced by fromXML().
LLTextEditor::~LLTextEditor | ( | ) | [virtual] |
Definition at line 340 of file lltexteditor.cpp.
References LLEditMenuHandler::gEditMenuHandler, gFocusMgr, mHoverSegment, mSegments, mUndoStack, NULL, and LLFocusMgr::releaseFocusIfNeeded().
LLXMLNodePtr LLTextEditor::getXML | ( | bool | save_children = true |
) | const [virtual] |
Reimplemented from LLUICtrl.
Definition at line 4068 of file lltexteditor.cpp.
References LLView::addColorXML(), getMaxLength(), getText(), LLUICtrl::getXML(), mAllowEmbeddedItems, mCursorColor, mDefaultColor, mFgColor, mFocusBgColor, mGLFont, mHideScrollbarForShortDocs, mReadOnlyBgColor, mReadOnlyFgColor, mWordWrap, mWriteableBgColor, LLFontGL::nameFromFont(), and TRUE.
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().
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().
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().
Reimplemented from LLView.
Reimplemented in LLViewerTextEditor.
Definition at line 1110 of file lltexteditor.cpp.
References LLView::childrenHandleMouseDown(), deselect(), FALSE, gFocusMgr, hasSelection(), LLUICtrl::hasTabStop(), MASK_SHIFT, mCursorPos, mIsSelecting, mSelectionEnd, mSelectionStart, mTakesNonScrollClicks, NULL, resetKeystrokeTimer(), S32, setCursorAtLocalPos(), setFocus(), LLFocusMgr::setMouseCapture(), startSelection(), and TRUE.
Reimplemented from LLView.
Reimplemented in LLViewerTextEditor.
Definition at line 1288 of file lltexteditor.cpp.
References LLView::childrenHandleMouseUp(), endSelection(), FALSE, LLScrollbar::getDocPos(), gFocusMgr, handleMouseUpOverSegment(), LLView::hasMouseCapture(), hasSelection(), LLRectBase< Type >::mBottom, mIsSelecting, mScrollbar, mTakesNonScrollClicks, mTextRect, LLRectBase< Type >::mTop, NULL, resetKeystrokeTimer(), setCursorAtLocalPos(), LLScrollbar::setDocPos(), LLFocusMgr::setMouseCapture(), TRUE, and updateScrollFromCursor().
Reimplemented from LLView.
Reimplemented in LLViewerTextEditor.
Definition at line 1190 of file lltexteditor.cpp.
References LLView::childrenHandleHover(), FALSE, LLScrollbar::getDocPos(), LLScrollbar::getDocPosMax(), LLView::getName(), LLView::getRect(), getSegmentAtLocalPos(), LLTextSegment::getStyle(), LLView::getVisible(), LLRectBase< Type >::getWidth(), LLView::getWindow(), LLView::hasMouseCapture(), lldebugst, llendl, LLRectBase< Type >::mBottom, mCursorPos, mHoverSegment, mIsSelecting, mLastSelectionX, mLastSelectionY, mOnScrollEndCallback, mOnScrollEndData, mScrollbar, mSegments, mSelectionEnd, mTakesNonScrollClicks, mTextRect, LLRectBase< Type >::mTop, NULL, resetKeystrokeTimer(), SCROLLBAR_SIZE, LLWindow::setCursor(), setCursorAtLocalPos(), LLScrollbar::setDocPos(), TRUE, UI_CURSOR_ARROW, UI_CURSOR_HAND, UI_CURSOR_IBEAM, and updateScrollFromCursor().
Reimplemented from LLView.
Definition at line 1104 of file lltexteditor.cpp.
References LLScrollbar::handleScrollWheel(), and mScrollbar.
Reimplemented from LLView.
Reimplemented in LLViewerTextEditor.
Definition at line 1338 of file lltexteditor.cpp.
References LLView::childrenHandleDoubleClick(), deselect(), FALSE, isPartOfWord(), mCursorPos, mIsSelecting, mSelectionEnd, mTakesNonScrollClicks, mWText, NULL, resetKeystrokeTimer(), S32, setCursorAtLocalPos(), startSelection(), and TRUE.
Reimplemented from LLView.
Definition at line 2149 of file lltexteditor.cpp.
References deselect(), FALSE, LLFocusMgr::getKeyboardFocus(), gFocusMgr, handleControlKey(), handleEditKey(), handleNavigationKey(), handleSelectionKey(), handleSpecialKey(), KEY_ALT, KEY_CAPSLOCK, KEY_CONTROL, KEY_SHIFT, KEY_TAB, mHandleEditKeysDirectly, mReadOnly, mTabsToNextField, resetKeystrokeTimer(), TRUE, updateLineStartList(), and updateScrollFromCursor().
Implements LLPreeditor.
Definition at line 2240 of file lltexteditor.cpp.
References addChar(), deselect(), FALSE, LLFocusMgr::getKeyboardFocus(), LLView::getWindow(), gFocusMgr, LLWindow::hideCursorUntilMouseMove(), mReadOnly, resetKeystrokeTimer(), TRUE, unindentLineBeforeCloseBrace(), updateLineStartList(), and updateScrollFromCursor().
Reimplemented from LLView.
Reimplemented in LLViewerTextEditor.
Definition at line 1064 of file lltexteditor.cpp.
References FALSE, LLView::getChildList(), LLView::getRect(), getSegmentAtLocalPos(), LLTextSegment::getToolTip(), LLView::handleToolTip(), LLView::localPointToScreen(), LLRectBase< Type >::mBottom, LLRectBase< Type >::mLeft, LLRectBase< Type >::mRight, mSegments, LLRectBase< Type >::mTop, S32, and TRUE.
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.
void LLTextEditor::onMouseCaptureLost | ( | ) | [virtual] |
Reimplemented from LLView.
Definition at line 3885 of file lltexteditor.cpp.
References endSelection().
Reimplemented from LLView.
Definition at line 3363 of file lltexteditor.cpp.
References endOfDoc(), LLRectBase< Type >::getHeight(), LLFontGL::getLineHeight(), LLUICtrl::hasFocus(), llround(), mGLFont, mScrollbar, mScrolledToBottom, mTextRect, mTrackBottom, LLView::reshape(), S32, LLScrollbar::setPageSize(), updateLineStartList(), and updateTextRect().
void LLTextEditor::draw | ( | void | ) | [virtual] |
Reimplemented from LLView.
Definition at line 3047 of file lltexteditor.cpp.
References bindEmbeddedChars(), LLView::draw(), drawBackground(), drawCursor(), drawPreeditMarker(), drawSelectionBackground(), drawText(), LLFocusMgr::getKeyboardFocus(), LLView::getRect(), LLView::getVisible(), gFocusMgr, isScrolledToBottom(), mBorder, mGLFont, mScrollbar, mScrolledToBottom, SCROLLBAR_SIZE, LLViewBorder::setKeyboardFocusHighlight(), and unbindEmbeddedChars().
void LLTextEditor::onFocusReceived | ( | ) | [virtual] |
Reimplemented from LLUICtrl.
Definition at line 2425 of file lltexteditor.cpp.
References LLUICtrl::onFocusReceived(), and updateAllowingLanguageInput().
void LLTextEditor::onFocusLost | ( | ) | [virtual] |
Reimplemented from LLUICtrl.
Definition at line 2432 of file lltexteditor.cpp.
References LLEditMenuHandler::gEditMenuHandler, LLView::getWindow(), mCommitOnFocusLost, NULL, LLUICtrl::onCommit(), LLUICtrl::onFocusLost(), LLWindow::showCursorFromMouseMove(), and updateAllowingLanguageInput().
void LLTextEditor::setEnabled | ( | BOOL | enabled | ) | [virtual] |
Reimplemented from LLView.
Definition at line 2453 of file lltexteditor.cpp.
References mReadOnly, updateAllowingLanguageInput(), and updateSegments().
Referenced by LLPanelGroupRolesSubTab::handleRoleSelect(), LLFloaterScriptDebugOutput::initFloater(), insertText(), LLFloaterAbout::LLFloaterAbout(), LLFloaterScriptDebugOutput::LLFloaterScriptDebugOutput(), LLGroupNotifyBox::LLGroupNotifyBox(), LLNotifyBox::LLNotifyBox(), LLLiveLSLEditor::loadAsset(), LLPreviewLSL::loadAsset(), LLPreviewNotecard::loadAsset(), LLPreviewLSL::onLoadComplete(), LLPanelGroupGeneral::postBuild(), LLFloaterTOS::postBuild(), LLPanelPick::refresh(), LLPanelClassified::refresh(), LLPanelLandGeneral::refresh(), LLPanelGroupVoting::impl::setEnableCreateProposal(), LLPanelGroupVoting::impl::setEnableHistoryItem(), LLPanelGroupVoting::impl::setEnableVoteProposal(), and LLPanelGroupGeneral::update().
void LLTextEditor::onTabInto | ( | ) | [virtual] |
void LLTextEditor::clear | ( | void | ) | [virtual] |
Reimplemented from LLUICtrl.
Definition at line 3084 of file lltexteditor.cpp.
References LLStringBase< char >::null, and setText().
Referenced by LLPanelGroupActionsSubTab::activate(), LLPanelGroupRolesSubTab::activate(), LLPanelGroupActionsSubTab::handleActionSelect(), LLPanelGroupRolesSubTab::handleRoleSelect(), LLPanelGroupActionsSubTab::update(), and LLPanelGroupRolesSubTab::update().
void LLTextEditor::setFocus | ( | BOOL | b | ) | [virtual] |
Reimplemented from LLUICtrl.
Definition at line 3091 of file lltexteditor.cpp.
References LLWindow::allowLanguageTextInput(), endSelection(), FALSE, LLEditMenuHandler::gEditMenuHandler, LLView::getWindow(), LLUICtrl::hasFocus(), NULL, resetKeystrokeTimer(), and LLUICtrl::setFocus().
Referenced by LLViewerTextEditor::handleDoubleClick(), LLViewerTextEditor::handleMouseDown(), handleMouseDown(), LLLiveLSLEditor::LLLiveLSLEditor(), and LLFloaterTOS::postBuild().
BOOL LLTextEditor::acceptsTextInput | ( | ) | const [virtual] |
Reimplemented from LLUICtrl.
Definition at line 3127 of file lltexteditor.cpp.
References mReadOnly.
Referenced by LLViewerTextEditor::handleDragAndDrop().
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().
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().
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().
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().
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().
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().
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().
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().
BOOL LLTextEditor::canCopy | ( | ) | const [virtual] |
Reimplemented from LLEditMenuHandler.
Definition at line 1838 of file lltexteditor.cpp.
References hasSelection().
Referenced by copy(), and handleEditKey().
void LLTextEditor::paste | ( | ) | [virtual] |
Reimplemented from LLEditMenuHandler.
Definition at line 1862 of file lltexteditor.cpp.
References canPaste(), deleteSelection(), deselect(), FALSE, LLFont::FIRST_CHAR, FIRST_EMBEDDED_CHAR, gClipboard, LLClipboard::getPasteWString(), hasSelection(), i, insert(), LAST_EMBEDDED_CHAR, LL_UNKNOWN_CHAR, mAllowEmbeddedItems, mCursorPos, pasteEmbeddedItem(), LLStringBase< T >::replaceTabsWithSpaces(), S32, setCursorPos(), SPACES_PER_TAB, TRUE, updateLineStartList(), and updateScrollFromCursor().
Referenced by handleEditKey().
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().
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().
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().
void LLTextEditor::selectAll | ( | ) | [virtual] |
Reimplemented from LLEditMenuHandler.
Definition at line 1056 of file lltexteditor.cpp.
References getLength(), mCursorPos, mSelectionEnd, and mSelectionStart.
Referenced by handleSelectionKey().
BOOL LLTextEditor::canSelectAll | ( | ) | const [virtual] |
Reimplemented from LLEditMenuHandler.
Definition at line 1050 of file lltexteditor.cpp.
References TRUE.
Referenced by handleSelectionKey().
void LLTextEditor::deselect | ( | ) | [virtual] |
Reimplemented from LLEditMenuHandler.
Definition at line 888 of file lltexteditor.cpp.
References FALSE, mIsSelecting, mSelectionEnd, and mSelectionStart.
Referenced by appendText(), deleteSelection(), handleControlKey(), LLViewerTextEditor::handleDoubleClick(), handleDoubleClick(), LLViewerTextEditor::handleDragAndDrop(), handleKeyHere(), LLViewerTextEditor::handleMouseDown(), handleMouseDown(), handleUnicodeCharHere(), importBuffer(), markAsPreedit(), paste(), redo(), resetPreedit(), setCursorAndScrollToEnd(), setText(), setWordWrap(), setWText(), tryToRevertToPristineState(), and undo().
BOOL LLTextEditor::canDeselect | ( | ) | const [virtual] |
Reimplemented from LLEditMenuHandler.
Definition at line 882 of file lltexteditor.cpp.
References hasSelection().
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().
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().
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().
void LLTextEditor::blockUndo | ( | ) |
Definition at line 2341 of file lltexteditor.cpp.
References FALSE, mBaseDocIsPristine, mLastCmd, mUndoStack, and NULL.
Referenced by appendText(), setText(), and setWText().
void LLTextEditor::makePristine | ( | ) | [virtual] |
Reimplemented in LLViewerTextEditor.
Definition at line 3620 of file lltexteditor.cpp.
References LLTextEditor::LLTextCmd::blockExtensions(), mBaseDocIsPristine, mLastCmd, and mPristineCmd.
Referenced by LLLiveLSLEditor::LLLiveLSLEditor(), LLLiveLSLEditor::loadAsset(), LLPreviewLSL::loadAsset(), LLLiveLSLEditor::loadScriptText(), LLViewerTextEditor::makePristine(), LLPreviewLSL::onLoadComplete(), LLLiveLSLEditor::saveIfNeeded(), and LLPreviewLSL::saveIfNeeded().
BOOL LLTextEditor::isPristine | ( | ) | const |
Definition at line 3633 of file lltexteditor.cpp.
References mBaseDocIsPristine, mLastCmd, and mPristineCmd.
Referenced by LLScriptEdCore::canClose(), LLPreviewNotecard::canClose(), LLScriptEdCore::draw(), LLPreviewNotecard::draw(), LLLiveLSLEditor::saveIfNeeded(), LLPreviewLSL::saveIfNeeded(), LLPreviewNotecard::saveIfNeeded(), LLPreviewNotecard::setEnabled(), and tryToRevertToPristineState().
BOOL LLTextEditor::allowsEmbeddedItems | ( | ) | const [inline] |
Definition at line 136 of file lltexteditor.h.
References mAllowEmbeddedItems.
Referenced by LLViewerTextEditor::handleDoubleClick(), LLViewerTextEditor::handleDragAndDrop(), LLViewerTextEditor::handleMouseDown(), and LLViewerTextEditor::importStream().
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().
void LLTextEditor::appendText | ( | const LLString & | wtext, | |
bool | allow_undo, | |||
bool | prepend_newline, | |||
const LLStyleSP * | stylep = NULL | |||
) |
Definition at line 3490 of file lltexteditor.cpp.
References append(), blockUndo(), deselect(), endOfDoc(), LLScrollbar::getDocPos(), LLScrollbar::getDocPosMax(), getLength(), mCursorPos, mIsSelecting, mScrollbar, mSegments, mSelectionEnd, mSelectionStart, S32, setCursorPos(), TRUE, updateLineStartList(), and utf8str_to_wstring().
Referenced by appendStyledText(), LLViewerTextEditor::handleDragAndDrop(), and LLTextEditor().
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().
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().
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().
BOOL LLTextEditor::tryToRevertToPristineState | ( | ) |
Definition at line 3646 of file lltexteditor.cpp.
References canRedo(), canUndo(), deselect(), i, isPristine(), redo(), S32, undo(), updateLineStartList(), and updateScrollFromCursor().
Definition at line 860 of file lltexteditor.cpp.
References mWText, setCursorPos(), and updateScrollFromCursor().
Referenced by LLGroupNotifyBox::LLGroupNotifyBox().
void LLTextEditor::setCursorPos | ( | S32 | offset | ) |
Definition at line 873 of file lltexteditor.cpp.
References getLength(), llclamp(), mCursorPos, mDesiredXPixel, S32, and updateScrollFromCursor().
Referenced by addChar(), appendText(), changeLine(), changePage(), deleteSelection(), doDelete(), endOfDoc(), endOfLine(), handleControlKey(), LLViewerTextEditor::handleDragAndDrop(), handleNavigationKey(), importBuffer(), insertText(), markAsPreedit(), paste(), redo(), removeChar(), removeCharOrTab(), replaceTextAll(), selectNext(), setCursor(), setCursorAtLocalPos(), setText(), setWordWrap(), setWText(), startOfLine(), undo(), and updatePreedit().
void LLTextEditor::setCursorAndScrollToEnd | ( | ) |
Definition at line 3256 of file lltexteditor.cpp.
References deselect(), endOfDoc(), and updateScrollFromCursor().
Referenced by LLFloaterChat::onClickToggleShowMute(), and LLFloaterChat::setHistoryCursorAndScrollToEnd().
Definition at line 3264 of file lltexteditor.cpp.
References getLineAndOffset(), i, mCursorPos, mWText, and S32.
Referenced by LLScriptEdCore::draw().
void LLTextEditor::loadKeywords | ( | const LLString & | filename, | |
const LLDynamicArray< const char * > & | funcs, | |||
const LLDynamicArray< const char * > & | tooltips, | |||
const LLColor3 & | func_color | |||
) |
Definition at line 3691 of file lltexteditor.cpp.
References LLKeywords::addToken(), LLDynamicArray< Type, BlockSize >::count(), LLKeywords::findSegments(), LLDynamicArray< Type, BlockSize >::get(), getLength(), i, llassert, LLKeywords::loadFromFile(), mDefaultColor, mKeywords, mSegments, mWText, S32, utf8str_trim(), and LLKeywordToken::WORD.
LLKeywords::keyword_iterator_t LLTextEditor::keywordsBegin | ( | ) | [inline] |
Definition at line 170 of file lltexteditor.h.
References LLKeywords::begin(), and mKeywords.
Referenced by LLScriptEdCore::onBtnDynamicHelp().
LLKeywords::keyword_iterator_t LLTextEditor::keywordsEnd | ( | ) | [inline] |
Definition at line 171 of file lltexteditor.h.
References LLKeywords::end(), and mKeywords.
Referenced by LLScriptEdCore::onBtnDynamicHelp().
void LLTextEditor::setCursorColor | ( | const LLColor4 & | c | ) | [inline] |
Definition at line 174 of file lltexteditor.h.
References mCursorColor.
Referenced by setTextEditorParameters().
void LLTextEditor::setFgColor | ( | const LLColor4 & | c | ) | [inline] |
Definition at line 175 of file lltexteditor.h.
References mFgColor.
Referenced by setTextEditorParameters().
void LLTextEditor::setTextDefaultColor | ( | const LLColor4 & | c | ) | [inline] |
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().
void LLTextEditor::setWriteableBgColor | ( | const LLColor4 & | c | ) | [inline] |
Definition at line 178 of file lltexteditor.h.
References mWriteableBgColor.
Referenced by LLGroupNotifyBox::LLGroupNotifyBox(), and setTextEditorParameters().
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().
void LLTextEditor::setTrackColor | ( | const LLColor4 & | color | ) |
Definition at line 357 of file lltexteditor.cpp.
References mScrollbar, and LLScrollbar::setTrackColor().
void LLTextEditor::setThumbColor | ( | const LLColor4 & | color | ) |
Definition at line 362 of file lltexteditor.cpp.
References mScrollbar, and LLScrollbar::setThumbColor().
void LLTextEditor::setHighlightColor | ( | const LLColor4 & | color | ) |
Definition at line 367 of file lltexteditor.cpp.
References mScrollbar, and LLScrollbar::setHighlightColor().
void LLTextEditor::setShadowColor | ( | const LLColor4 & | color | ) |
Definition at line 372 of file lltexteditor.cpp.
References mScrollbar, and LLScrollbar::setShadowColor().
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().
BOOL LLTextEditor::isBorderVisible | ( | ) | const |
Definition at line 578 of file lltexteditor.cpp.
References LLView::getVisible(), and mBorder.
Referenced by LLViewerTextEditor::fromXML().
void LLTextEditor::setTakesNonScrollClicks | ( | BOOL | b | ) | [inline] |
Definition at line 189 of file lltexteditor.h.
References mTakesNonScrollClicks.
Referenced by LLGroupNotifyBox::LLGroupNotifyBox(), and LLNotifyBox::LLNotifyBox().
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().
void LLTextEditor::setWordWrap | ( | BOOL | b | ) |
Definition at line 561 of file lltexteditor.cpp.
References deselect(), mWordWrap, setCursorPos(), updateLineStartList(), and updateScrollFromCursor().
Referenced by LLFloaterScriptDebugOutput::initFloater(), LLFloaterScriptDebugOutput::LLFloaterScriptDebugOutput(), LLGroupNotifyBox::LLGroupNotifyBox(), LLNotifyBox::LLNotifyBox(), LLPreviewNotecard::LLPreviewNotecard(), LLPanelEvent::postBuild(), LLFloaterTOS::postBuild(), LLFloaterPostcard::postBuild(), and setTextEditorParameters().
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().
BOOL LLTextEditor::tabsToNextField | ( | ) | const [inline] |
Definition at line 194 of file lltexteditor.h.
References mTabsToNextField.
Referenced by LLViewerTextEditor::fromXML().
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().
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().
Reimplemented in LLViewerTextEditor.
Definition at line 3989 of file lltexteditor.cpp.
References getText(), llformat(), mWText, and TRUE.
void LLTextEditor::setTakesFocus | ( | BOOL | b | ) | [inline] |
Definition at line 202 of file lltexteditor.h.
References mTakesFocus.
Referenced by LLFloaterAbout::LLFloaterAbout().
void LLTextEditor::setSourceID | ( | const LLUUID & | id | ) | [inline] |
Definition at line 204 of file lltexteditor.h.
References mSourceID.
Referenced by LLPreviewNotecard::LLPreviewNotecard().
const LLUUID& LLTextEditor::getSourceID | ( | ) | const [inline] |
Definition at line 205 of file lltexteditor.h.
References mSourceID.
Referenced by LLViewerTextEditor::handleHover().
void LLTextEditor::setAcceptCallingCardNames | ( | BOOL | enable | ) | [inline] |
BOOL LLTextEditor::acceptsCallingCardNames | ( | ) | const [inline] |
Definition at line 207 of file lltexteditor.h.
References mAcceptCallingCardNames.
Referenced by LLViewerTextEditor::handleDragAndDrop().
void LLTextEditor::setHandleEditKeysDirectly | ( | BOOL | b | ) | [inline] |
Definition at line 209 of file lltexteditor.h.
References mHandleEditKeysDirectly.
Referenced by LLFloaterAbout::LLFloaterAbout(), LLPreviewNotecard::LLPreviewNotecard(), LLFloaterTOS::postBuild(), LLPanelEstateCovenant::postBuild(), LLPanelLandCovenant::updateCovenantText(), and LLFloaterBuyLandUI::updateCovenantText().
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().
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().
void LLTextEditor::setOnScrollEndCallback | ( | void(*)(void *) | callback, | |
void * | userdata | |||
) |
Definition at line 3890 of file lltexteditor.cpp.
References mOnScrollEndCallback, mOnScrollEndData, mScrollbar, and LLScrollbar::setOnScrollEndCallback().
void LLTextEditor::setValue | ( | const LLSD & | value | ) | [virtual] |
Reimplemented from LLView.
Definition at line 536 of file lltexteditor.cpp.
References LLSD::asString(), and setText().
LLSD LLTextEditor::getValue | ( | ) | const [virtual] |
Reimplemented from LLUICtrl.
Definition at line 556 of file lltexteditor.cpp.
References getText().
const LLString & LLTextEditor::getText | ( | ) | const |
Definition at line 541 of file lltexteditor.cpp.
References llendl, llwarns, mAllowEmbeddedItems, mTextIsUpToDate, mUTF8Text, mWText, TRUE, and wstring_to_utf8str().
Referenced by LLPanelGroupGeneral::apply(), exportBuffer(), getValue(), getXML(), LLPanelLandGeneral::onCommitAny(), onCovenantLoadComplete(), LLGroupMoneySalesTabEventHandler::processReply(), LLLiveLSLEditor::saveIfNeeded(), LLPreviewLSL::saveIfNeeded(), LLPanelGroupRolesSubTab::saveRoleChanges(), LLPanelClassified::sendClassifiedInfoUpdate(), LLPanelPick::sendPickInfoUpdate(), LLPanelGroupVoting::impl::sendStartGroupProposal(), and LLScriptEdCore::updateDynamicHelp().
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().
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().
S32 LLTextEditor::getMaxLength | ( | ) | const [inline] |
Definition at line 231 of file lltexteditor.h.
References mMaxTextByteLength.
Referenced by getXML().
void LLTextEditor::startOfLine | ( | ) |
Definition at line 3247 of file lltexteditor.cpp.
References getLineAndOffset(), mCursorPos, S32, and setCursorPos().
Referenced by handleNavigationKey(), and handleSelectionKey().
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().
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().
BOOL LLTextEditor::isScrolledToTop | ( | ) |
Definition at line 3236 of file lltexteditor.cpp.
References LLScrollbar::isAtBeginning(), and mScrollbar.
BOOL LLTextEditor::isScrolledToBottom | ( | ) |
Definition at line 3241 of file lltexteditor.cpp.
References LLScrollbar::isAtEnd(), and mScrollbar.
Referenced by draw().
const LLWString& LLTextEditor::getWText | ( | ) | const [inline, virtual] |
Implements LLPreeditor.
Definition at line 242 of file lltexteditor.h.
References mWText.
Referenced by LLFloaterIMPanel::addTypingIndicator(), LLPrefsIMImpl::apply(), LLViewerTextEditor::getEmbeddedText(), LLViewerTextEditor::handleDoubleClick(), LLFloaterIMPanel::init(), LLFloaterIMPanel::removeTypingIndicator(), LLEmbeddedItems::removeUnusedChars(), replaceText(), selectNext(), and LLFloaterIMPanel::sessionInitReplyReceived().
Definition at line 243 of file lltexteditor.h.
References mWText.
Referenced by LLTextEditor::LLTextCmdOverwriteChar::execute(), LLViewerTextEditor::getEmbeddedItemToolTipAtPos(), LLViewerTextEditor::getEmbeddedText(), LLViewerTextEditor::handleMouseDown(), and LLViewerTextEditor::openEmbeddedItemAtPos().
Definition at line 244 of file lltexteditor.h.
References mWText.
Referenced by LLTextEditor::LLTextCmdRemove::execute(), and updatePreedit().
const LLTextSegment* LLTextEditor::getCurrentSegment | ( | ) | [inline] |
Definition at line 246 of file lltexteditor.h.
References getSegmentAtOffset(), and mCursorPos.
const LLTextSegment * LLTextEditor::getPreviousSegment | ( | ) |
Definition at line 781 of file lltexteditor.cpp.
References getSegmentIdxAtOffset(), llmax(), mCursorPos, mSegments, NULL, and S32.
Referenced by LLScriptEdCore::updateDynamicHelp().
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().
S32 LLTextEditor::getLength | ( | ) | const [inline, protected] |
Definition at line 255 of file lltexteditor.h.
References mWText.
Referenced by appendText(), canDoDelete(), changeLine(), doDelete(), drawCursor(), drawPreeditMarker(), drawSelectionBackground(), drawText(), endOfDoc(), endOfLine(), getCursorPosFromLocalCoord(), LLViewerTextEditor::getEmbeddedItemToolTipAtPos(), getPos(), getSegmentIdxAtOffset(), handleControlKey(), LLViewerTextEditor::handleMouseDown(), handleNavigationKey(), handleSelectionKey(), indentLine(), indentSelectedLines(), loadKeywords(), nextWordPos(), LLViewerTextEditor::openEmbeddedItemAtPos(), removeTextFromEnd(), selectAll(), selectNext(), and setCursorPos().
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().
void LLTextEditor::drawPreeditMarker | ( | ) | [protected] |
Definition at line 2765 of file lltexteditor.cpp.
References LLScrollbar::getDocPos(), getLength(), getLineCount(), LLFontGL::getLineHeight(), getLineStart(), LLFontGL::getWidth(), gl_rect_2d(), hasPreeditString(), i, llround(), mAllowEmbeddedItems, LLRectBase< Type >::mBottom, mCursorColor, mGLFont, LLRectBase< Type >::mLeft, mPreeditPositions, mPreeditStandouts, mScrollbar, mTextRect, LLRectBase< Type >::mTop, mWriteableBgColor, mWText, PREEDIT_MARKER_BRIGHTNESS, PREEDIT_MARKER_GAP, PREEDIT_MARKER_POSITION, PREEDIT_MARKER_THICKNESS, PREEDIT_STANDOUT_BRIGHTNESS, PREEDIT_STANDOUT_GAP, PREEDIT_STANDOUT_POSITION, PREEDIT_STANDOUT_THICKNESS, and S32.
Referenced by draw().
void LLTextEditor::updateLineStartList | ( | S32 | startpos = 0 |
) | [protected] |
Definition at line 377 of file lltexteditor.cpp.
References bindEmbeddedChars(), FALSE, LLScrollbar::getDocSize(), LLTextSegment::getEnd(), getLineCount(), LLScrollbar::getPageSize(), getSegmentAndOffset(), LLTextSegment::getStart(), LLFontGL::getWidth(), LLRectBase< Type >::getWidth(), mAllowEmbeddedItems, LLFontGL::maxDrawableChars(), mGLFont, mHideScrollbarForShortDocs, mLineStartList, mScrollbar, mSegments, mTextRect, mWordWrap, mWText, S32, LLScrollbar::setDocSize(), LLView::setVisible(), TRUE, unbindEmbeddedChars(), and updateSegments().
Referenced by appendText(), cut(), doDelete(), LLViewerTextEditor::handleDragAndDrop(), handleKeyHere(), handleUnicodeCharHere(), importBuffer(), insertText(), paste(), redo(), removeTextFromEnd(), reshape(), setText(), setWordWrap(), setWText(), tryToRevertToPristineState(), undo(), and updatePreedit().
void LLTextEditor::updateScrollFromCursor | ( | ) | [protected] |
Definition at line 3320 of file lltexteditor.cpp.
References LLScrollbar::getDocPos(), LLScrollbar::getDocPosMax(), getLineAndOffset(), getLineCount(), LLScrollbar::getPageSize(), mCursorPos, mOnScrollEndCallback, mOnScrollEndData, mReadOnly, mScrollbar, S32, LLScrollbar::setDocPos(), and LLScrollbar::setDocSize().
Referenced by cut(), doDelete(), LLViewerTextEditor::handleHover(), handleHover(), handleKeyHere(), LLViewerTextEditor::handleMouseUp(), handleMouseUp(), handleUnicodeCharHere(), importBuffer(), insertText(), paste(), redo(), setCursor(), setCursorAndScrollToEnd(), setCursorPos(), setText(), setWordWrap(), setWText(), tryToRevertToPristineState(), and undo().
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().
const LLRect& LLTextEditor::getTextRect | ( | ) | const [inline, protected] |
Definition at line 262 of file lltexteditor.h.
References mTextRect.
Referenced by LLViewerTextEditor::handleHover(), and LLViewerTextEditor::handleMouseUp().
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().
Definition at line 267 of file lltexteditor.h.
Referenced by LLViewerTextEditor::handleDoubleClick(), handleDoubleClick(), nextWordPos(), and prevWordPos().
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().
Definition at line 694 of file lltexteditor.cpp.
References getCursorPosFromLocalCoord(), and setCursorPos().
Referenced by LLViewerTextEditor::handleDoubleClick(), handleDoubleClick(), LLViewerTextEditor::handleDragAndDrop(), LLViewerTextEditor::handleHover(), handleHover(), LLViewerTextEditor::handleMouseDown(), handleMouseDown(), LLViewerTextEditor::handleMouseUp(), and handleMouseUp().
S32 LLTextEditor::getCursorPosFromLocalCoord | ( | S32 | local_x, | |
S32 | local_y, | |||
BOOL | round | |||
) | const [protected] |
Definition at line 801 of file lltexteditor.cpp.
References bindEmbeddedChars(), LLFontGL::charFromPixelOffset(), LLScrollbar::getDocPos(), LLRectBase< Type >::getHeight(), getLength(), getLineCount(), LLFontGL::getLineHeight(), getLineStart(), LLRectBase< Type >::getWidth(), llclamp(), llmin(), llround(), mAllowEmbeddedItems, mGLFont, LLRectBase< Type >::mLeft, mScrollbar, mTextRect, LLRectBase< Type >::mTop, mWText, S32, TRUE, and unbindEmbeddedChars().
Referenced by getSegmentAtLocalPos(), and setCursorAtLocalPos().
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().
Definition at line 935 of file lltexteditor.cpp.
References addChar(), FALSE, getLength(), i, llassert, mWText, and S32.
Referenced by indentSelectedLines().
void LLTextEditor::unindentLineBeforeCloseBrace | ( | ) | [protected] |
Definition at line 2136 of file lltexteditor.cpp.
References mCursorPos, mWText, and removeCharOrTab().
Referenced by handleUnicodeCharHere().
Definition at line 3871 of file lltexteditor.cpp.
References getLength(), getSegmentAndOffset(), mSegments, and S32.
Referenced by getPreviousSegment(), getSegmentAtLocalPos(), getSegmentAtOffset(), and getSelectedSegments().
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().
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().
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().
Definition at line 1683 of file lltexteditor.cpp.
References changeLine(), changePage(), endOfLine(), FALSE, LLScrollbar::getDocPos(), LLScrollbar::getDocPosMax(), getLength(), hasSelection(), KEY_DOWN, KEY_END, KEY_HOME, KEY_LEFT, KEY_PAGE_DOWN, KEY_PAGE_UP, KEY_RIGHT, KEY_UP, llmax(), llmin(), MASK_NONE, mCursorPos, mOnScrollEndCallback, mOnScrollEndData, mReadOnly, mScrollbar, mSelectionEnd, mSelectionStart, reportBadKeystroke(), setCursorPos(), LLScrollbar::setDocPos(), startOfLine(), and TRUE.
Referenced by handleKeyHere().
BOOL LLTextEditor::handleSpecialKey | ( | const KEY | key, | |
const MASK | mask, | |||
BOOL * | return_key_hit | |||
) | [protected] |
Definition at line 2052 of file lltexteditor.cpp.
References addChar(), autoIndent(), deleteSelection(), FALSE, getLineAndOffset(), gKeyboard, hasSelection(), i, indentSelectedLines(), KEY_BACKSPACE, KEY_INSERT, KEY_RETURN, KEY_TAB, MASK_CONTROL, MASK_NONE, MASK_SHIFT, mCursorPos, removeCharOrTab(), reportBadKeystroke(), S32, selectionContainsLineBreaks(), SPACES_PER_TAB, LLKeyboard::toggleInsertMode(), and TRUE.
Referenced by handleKeyHere().
Definition at line 1572 of file lltexteditor.cpp.
References canSelectAll(), changeLine(), changePage(), endOfLine(), FALSE, getLength(), KEY_DOWN, KEY_END, KEY_HOME, KEY_LEFT, KEY_PAGE_DOWN, KEY_PAGE_UP, KEY_RIGHT, KEY_UP, MASK_CONTROL, MASK_SHIFT, mCursorPos, mHandleEditKeysDirectly, mSelectionEnd, nextWordPos(), prevWordPos(), reportBadKeystroke(), selectAll(), startOfLine(), startSelection(), and TRUE.
Referenced by handleKeyHere().
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().
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().
BOOL LLTextEditor::hasSelection | ( | ) | const [inline, protected] |
Definition at line 289 of file lltexteditor.h.
References mSelectionEnd, and mSelectionStart.
Referenced by addChar(), canCopy(), canCut(), canDeselect(), canDoDelete(), deleteSelection(), doDelete(), drawCursor(), drawSelectionBackground(), drawText(), getSelectedSegments(), getSelectionRange(), LLViewerTextEditor::handleMouseDown(), handleMouseDown(), LLViewerTextEditor::handleMouseUp(), handleMouseUp(), handleNavigationKey(), handleSpecialKey(), indentSelectedLines(), insertText(), paste(), resetPreedit(), and selectionContainsLineBreaks().
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().
void LLTextEditor::startSelection | ( | ) | [protected] |
Definition at line 896 of file lltexteditor.cpp.
References mCursorPos, mIsSelecting, mSelectionEnd, mSelectionStart, and TRUE.
Referenced by handleControlKey(), LLViewerTextEditor::handleDoubleClick(), handleDoubleClick(), LLViewerTextEditor::handleMouseDown(), handleMouseDown(), and handleSelectionKey().
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().
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().
Definition at line 699 of file lltexteditor.cpp.
References isPartOfWord(), and mWText.
Referenced by handleControlKey(), and handleSelectionKey().
Definition at line 713 of file lltexteditor.cpp.
References getLength(), isPartOfWord(), and mWText.
Referenced by handleControlKey(), and handleSelectionKey().
S32 LLTextEditor::getLineCount | ( | ) | const [inline, protected] |
Definition at line 298 of file lltexteditor.h.
References mLineStartList.
Referenced by changeLine(), drawCursor(), drawPreeditMarker(), drawSelectionBackground(), drawText(), endOfLine(), getCursorPosFromLocalCoord(), getLineStart(), LLTextEditor(), updateLineStartList(), and updateScrollFromCursor().
Definition at line 727 of file lltexteditor.cpp.
References LLTextSegment::getEnd(), getLineCount(), LLTextSegment::getStart(), llclamp(), llendl, llerrs, mLineStartList, mSegments, and S32.
Referenced by autoIndent(), changeLine(), drawCursor(), drawPreeditMarker(), drawSelectionBackground(), drawText(), endOfLine(), getCursorPosFromLocalCoord(), getPos(), and getPreeditLocation().
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().
Definition at line 3133 of file lltexteditor.cpp.
References getLength(), getLineStart(), llmax(), llmin(), and S32.
Referenced by changeLine(), and changePage().
void LLTextEditor::changePage | ( | S32 | delta | ) | [protected] |
Definition at line 3147 of file lltexteditor.cpp.
References LLScrollbar::getDocPos(), LLScrollbar::getDocPosMax(), getLineAndOffset(), LLScrollbar::getPageSize(), getPos(), llmax(), mCursorPos, mDesiredXPixel, mOnScrollEndCallback, mOnScrollEndData, mScrollbar, S32, setCursorPos(), and LLScrollbar::setDocPos().
Referenced by handleNavigationKey(), and handleSelectionKey().
void LLTextEditor::changeLine | ( | S32 | delta | ) | [protected] |
Definition at line 3179 of file lltexteditor.cpp.
References bindEmbeddedChars(), LLFontGL::charFromPixelOffset(), getLength(), getLineAndOffset(), getLineCount(), getLineStart(), getPos(), LLRectBase< Type >::getWidth(), LLFontGL::getWidth(), mAllowEmbeddedItems, mCursorPos, mDesiredXPixel, mGLFont, mTextRect, mWText, S32, setCursorPos(), and unbindEmbeddedChars().
Referenced by handleNavigationKey(), and handleSelectionKey().
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().
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().
Definition at line 3834 of file lltexteditor.cpp.
References FALSE, LLView::hasMouseCapture(), mHTML, mParseHTML, mSecondlifeURLcallback, mURLcallback, and NULL.
Referenced by LLViewerTextEditor::handleMouseUp(), and handleMouseUp().
Reimplemented in LLViewerTextEditor.
Definition at line 312 of file lltexteditor.h.
Referenced by paste().
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().
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().
Definition at line 4163 of file lltexteditor.cpp.
References S32.
Referenced by findHTML().
Definition at line 4200 of file lltexteditor.cpp.
References FALSE, findHTMLToken(), S32, and TRUE.
Referenced by appendStyledText().
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().
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().
Definition at line 1533 of file lltexteditor.cpp.
References LLTextEditor::LLTextCmd::canExtend(), execute(), LLTextEditor::LLTextCmd::extendAndExecute(), FALSE, make_ui_sound(), mLastCmd, mMaxTextByteLength, mWText, S32, wchar_utf8_length(), and wstring_utf8_length().
void LLTextEditor::removeChar | ( | ) | [protected] |
Definition at line 1515 of file lltexteditor.cpp.
References LLView::getEnabled(), mCursorPos, reportBadKeystroke(), and setCursorPos().
Referenced by addChar(), and doDelete().
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().
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().
Definition at line 1441 of file lltexteditor.cpp.
References insert(), and mWText.
Referenced by appendText().
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().
Definition at line 3600 of file lltexteditor.cpp.
References FALSE, mTextIsUpToDate, and mWText.
Referenced by resetPreedit(), and updatePreedit().
Definition at line 3607 of file lltexteditor.cpp.
References FALSE, mTextIsUpToDate, mWText, and S32.
Referenced by LLTextEditor::LLTextCmd::overwrite().
void LLTextEditor::resetKeystrokeTimer | ( | ) | [inline, protected] |
Definition at line 365 of file lltexteditor.h.
References mKeystrokeTimer, and LLFrameTimer::reset().
Referenced by LLViewerTextEditor::handleDoubleClick(), handleDoubleClick(), LLViewerTextEditor::handleHover(), handleHover(), handleKeyHere(), LLViewerTextEditor::handleMouseDown(), handleMouseDown(), LLViewerTextEditor::handleMouseUp(), handleMouseUp(), handleUnicodeCharHere(), and setFocus().
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().
BOOL LLTextEditor::hasPreeditString | ( | ) | const [protected] |
Definition at line 4319 of file lltexteditor.cpp.
References mPreeditPositions.
Referenced by drawPreeditMarker(), getPreeditLocation(), getPreeditRange(), markAsPreedit(), and resetPreedit().
void LLTextEditor::resetPreedit | ( | ) | [protected, virtual] |
Implements LLPreeditor.
Definition at line 4324 of file lltexteditor.cpp.
References deselect(), hasPreeditString(), hasSelection(), insertStringNoUndo(), llendl, llwarns, mCursorPos, mPreeditOverwrittenWString, mPreeditPositions, mPreeditWString, and removeStringNoUndo().
void LLTextEditor::updatePreedit | ( | const LLWString & | preedit_string, | |
const segment_lengths_t & | preedit_segment_lengths, | |||
const standouts_t & | preedit_standouts, | |||
S32 | caret_position | |||
) | [protected, virtual] |
Definition at line 4349 of file lltexteditor.cpp.
References LLKeyboard::getInsertMode(), LLView::getWindow(), getWSubString(), gKeyboard, LLWindow::hideCursorUntilMouseMove(), i, insertStringNoUndo(), LL_KIM_OVERWRITE, mCursorPos, mKeystrokeTimer, mPreeditOverwrittenWString, mPreeditPositions, mPreeditStandouts, mPreeditWString, mReadOnly, removeStringNoUndo(), LLFrameTimer::reset(), S32, setCursorPos(), and updateLineStartList().
Implements LLPreeditor.
Definition at line 4513 of file lltexteditor.cpp.
References deselect(), FALSE, LLKeyboard::getInsertMode(), gKeyboard, hasPreeditString(), LL_KIM_OVERWRITE, llendl, llwarns, mPreeditOverwrittenWString, mPreeditPositions, mPreeditStandouts, mPreeditWString, mWText, and setCursorPos().
Implements LLPreeditor.
Definition at line 4499 of file lltexteditor.cpp.
References hasPreeditString(), mCursorPos, and mPreeditPositions.
Implements LLPreeditor.
Definition at line 4485 of file lltexteditor.cpp.
References hasSelection(), llabs(), llmin(), mCursorPos, mSelectionEnd, and mSelectionStart.
BOOL LLTextEditor::getPreeditLocation | ( | S32 | query_offset, | |
LLCoordGL * | coord, | |||
LLRect * | bounds, | |||
LLRect * | control | |||
) | const [protected, virtual] |
Implements LLPreeditor.
Definition at line 4393 of file lltexteditor.cpp.
References FALSE, LLScrollbar::getDocPos(), LLFontGL::getLineHeight(), getLineStart(), LLFontGL::getWidth(), hasPreeditString(), llround(), LLView::localPointToScreen(), LLView::localRectToScreen(), mAllowEmbeddedItems, mCursorPos, mGLFont, LLRectBase< Type >::mLeft, mPreeditPositions, mScrollbar, mTextRect, LLRectBase< Type >::mTop, mWText, LLCoord::mX, LLCoord::mY, S32, LLUI::screenPointToGL(), LLUI::screenRectToGL(), and TRUE.
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.
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().
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().
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().
void LLTextEditor::drawSelectionBackground | ( | ) | [private] |
Definition at line 2491 of file lltexteditor.cpp.
References LLGLImmediate::color4f(), CURSOR_THICKNESS, FALSE, LLScrollbar::getDocPos(), getLength(), getLineCount(), LLFontGL::getLineHeight(), getLineStart(), LLFontGL::getWidth(), gGL, gl_rect_2d(), LLUICtrl::hasFocus(), hasSelection(), llmax(), llmin(), llround(), mAllowEmbeddedItems, LLRectBase< Type >::mBottom, mGLFont, LLRectBase< Type >::mLeft, mReadOnly, mReadOnlyBgColor, LLRectBase< Type >::mRight, mScrollbar, mSelectionEnd, mSelectionStart, mTextRect, LLRectBase< Type >::mTop, LLColor4::mV, mWriteableBgColor, mWText, S32, TRUE, and utf8str_to_wstring().
Referenced by draw().
void LLTextEditor::drawCursor | ( | ) | [private] |
Definition at line 2641 of file lltexteditor.cpp.
References LLGLImmediate::color4fv(), CURSOR_FLASH_DELAY, CURSOR_THICKNESS, FALSE, LLTextSegment::getColor(), LLScrollbar::getDocPos(), LLFrameTimer::getElapsedTimeF32(), LLKeyboard::getInsertMode(), LLFocusMgr::getKeyboardFocus(), getLength(), getLineCount(), LLFontGL::getLineHeight(), getLineStart(), LLView::getScreenRect(), getSegmentAtOffset(), LLFontGL::getWidthF32(), LLView::getWindow(), gFocusMgr, gGL, gKeyboard, gl_rect_2d(), gShowTextEditCursor, hasSelection(), LLFontGL::LEFT, LL_KIM_OVERWRITE, llfloor(), llmax(), llround(), mAllowEmbeddedItems, LLRectBase< Type >::mBottom, mCursorColor, mCursorPos, mFgColor, mGLFont, mKeystrokeTimer, LLRectBase< Type >::mLeft, mReadOnly, mReadOnlyFgColor, mScrollbar, mTextRect, LLRectBase< Type >::mTop, LLVector2::mV, LLColor4::mV, mWText, LLCoord::mX, LLCoord::mY, LLFontGL::NORMAL, LLFontGL::render(), S32, LLWindow::setLanguageTextInput(), LLUI::sGLScaleFactor, LLFontGL::TOP, TRUE, utf8str_to_wstring(), VBLUE, VGREEN, VRED, VX, and VY.
Referenced by draw().
void LLTextEditor::drawText | ( | ) | [private] |
Definition at line 2860 of file lltexteditor.cpp.
References drawClippedSegment(), LLScrollbar::getDocPos(), LLTextSegment::getEnd(), getLength(), getLineCount(), LLFontGL::getLineHeight(), getLineStart(), LLTextSegment::getStart(), LLTextSegment::getStyle(), hasSelection(), llendl, llmax(), llmin(), llround(), llwarns, LLRectBase< Type >::mBottom, mGLFont, mHoverSegment, mHTML, mIsSelecting, LLRectBase< Type >::mLeft, mParseHTML, mScrollbar, mSegments, mSelectionEnd, mSelectionStart, mTextRect, LLRectBase< Type >::mTop, mWText, S32, and TRUE.
Referenced by draw().
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] |
Definition at line 2969 of file lltexteditor.cpp.
References LLFontGL::BOLD, LLControlGroup::getColor(), LLSingleton< LLResMgr >::getInstance(), LLFontGL::getLineHeight(), LLResMgr::getRes(), LLFontGL::ITALIC, LLFontGL::LEFT, llmax(), llmin(), llround(), mAllowEmbeddedItems, mGLFont, mReadOnly, LLColor4::mV, LLFontGL::NORMAL, LLFontGL::render(), S32, S32_MAX, LLUI::sColorsGroup, LLFontGL::TOP, and LLFontGL::UNDERLINE.
Referenced by drawText().
const llwchar LLTextEditor::FIRST_EMBEDDED_CHAR = 0x100000 [static] |
Definition at line 61 of file lltexteditor.h.
Referenced by findEmbeddedItemSegments(), LLEmbeddedItems::getEmbeddedItem(), LLEmbeddedItems::getEmbeddedItemSaved(), LLViewerTextEditor::getEmbeddedText(), LLEmbeddedItems::insertEmbeddedItem(), paste(), LLEmbeddedItems::removeUnusedChars(), and LLViewerTextEditor::setEmbeddedText().
const llwchar LLTextEditor::LAST_EMBEDDED_CHAR = 0x10ffff [static] |
Definition at line 62 of file lltexteditor.h.
Referenced by findEmbeddedItemSegments(), LLEmbeddedItems::getEmbeddedItem(), LLEmbeddedItems::getEmbeddedItemSaved(), LLViewerTextEditor::getEmbeddedText(), LLEmbeddedItems::insertEmbeddedItem(), paste(), LLEmbeddedItems::removeUnusedChars(), and LLViewerTextEditor::setEmbeddedText().
const S32 LLTextEditor::MAX_EMBEDDED_ITEMS = LAST_EMBEDDED_CHAR - FIRST_EMBEDDED_CHAR + 1 [static] |
Definition at line 63 of file lltexteditor.h.
S32 LLTextEditor::mCursorPos [protected] |
Definition at line 387 of file lltexteditor.h.
Referenced by addChar(), appendText(), autoIndent(), canDoDelete(), changeLine(), changePage(), doDelete(), drawCursor(), endOfLine(), endSelection(), getCurrentLineAndColumn(), getCurrentSegment(), getPreeditLocation(), getPreeditRange(), getPreviousSegment(), getSelectedSegments(), getSelectionRange(), handleControlKey(), LLViewerTextEditor::handleDoubleClick(), handleDoubleClick(), LLViewerTextEditor::handleDragAndDrop(), LLViewerTextEditor::handleHover(), handleHover(), LLViewerTextEditor::handleMouseDown(), handleMouseDown(), handleNavigationKey(), handleSelectionKey(), handleSpecialKey(), indentSelectedLines(), insertText(), paste(), removeChar(), removeCharOrTab(), removeTextFromEnd(), resetPreedit(), selectAll(), selectNext(), setCursorPos(), startOfLine(), startSelection(), unindentLineBeforeCloseBrace(), updatePreedit(), and updateScrollFromCursor().
S32 LLTextEditor::mMouseDownX [protected] |
Definition at line 390 of file lltexteditor.h.
Referenced by LLViewerTextEditor::handleMouseDown(), and LLViewerTextEditor::handleMouseUp().
S32 LLTextEditor::mMouseDownY [protected] |
Definition at line 391 of file lltexteditor.h.
Referenced by LLViewerTextEditor::handleMouseDown(), and LLViewerTextEditor::handleMouseUp().
BOOL LLTextEditor::mIsSelecting [protected] |
Definition at line 395 of file lltexteditor.h.
Referenced by appendText(), deselect(), drawText(), endSelection(), LLViewerTextEditor::handleDoubleClick(), handleDoubleClick(), LLViewerTextEditor::handleHover(), handleHover(), LLViewerTextEditor::handleMouseDown(), handleMouseDown(), LLViewerTextEditor::handleMouseUp(), handleMouseUp(), replaceText(), selectNext(), and startSelection().
S32 LLTextEditor::mSelectionStart [protected] |
Definition at line 396 of file lltexteditor.h.
Referenced by appendText(), copy(), cut(), deleteSelection(), deselect(), drawSelectionBackground(), drawText(), getSelectedSegments(), getSelectionRange(), LLViewerTextEditor::handleMouseDown(), handleMouseDown(), handleNavigationKey(), hasSelection(), indentSelectedLines(), removeTextFromEnd(), replaceText(), selectAll(), selectionContainsLineBreaks(), selectNext(), and startSelection().
S32 LLTextEditor::mSelectionEnd [protected] |
Definition at line 397 of file lltexteditor.h.
Referenced by appendText(), copy(), cut(), deleteSelection(), deselect(), drawSelectionBackground(), drawText(), endSelection(), getSelectedSegments(), getSelectionRange(), handleControlKey(), LLViewerTextEditor::handleDoubleClick(), handleDoubleClick(), LLViewerTextEditor::handleHover(), handleHover(), LLViewerTextEditor::handleMouseDown(), handleMouseDown(), handleNavigationKey(), handleSelectionKey(), hasSelection(), indentSelectedLines(), removeTextFromEnd(), replaceText(), selectAll(), selectionContainsLineBreaks(), selectNext(), and startSelection().
S32 LLTextEditor::mLastSelectionX [protected] |
Definition at line 398 of file lltexteditor.h.
Referenced by LLViewerTextEditor::handleHover(), and handleHover().
S32 LLTextEditor::mLastSelectionY [protected] |
Definition at line 399 of file lltexteditor.h.
Referenced by LLViewerTextEditor::handleHover(), and handleHover().
BOOL LLTextEditor::mParseHTML [protected] |
Definition at line 401 of file lltexteditor.h.
Referenced by appendStyledText(), drawText(), LLViewerTextEditor::fromXML(), handleMouseUpOverSegment(), LLTextEditor(), and setParseHTML().
LLString LLTextEditor::mHTML [protected] |
Definition at line 402 of file lltexteditor.h.
Referenced by drawText(), handleMouseUpOverSegment(), and LLTextEditor().
segment_list_t LLTextEditor::mSegments [protected] |
Definition at line 405 of file lltexteditor.h.
Referenced by appendText(), drawText(), findEmbeddedItemSegments(), getLineAndOffset(), getLineStart(), getPreviousSegment(), getSegmentAndOffset(), getSegmentAtLocalPos(), getSegmentAtOffset(), getSegmentIdxAtOffset(), getSelectedSegments(), LLViewerTextEditor::handleHover(), handleHover(), LLViewerTextEditor::handleToolTip(), handleToolTip(), loadKeywords(), pruneSegments(), updateLineStartList(), updateSegments(), and ~LLTextEditor().
const LLTextSegment* LLTextEditor::mHoverSegment [protected] |
Definition at line 406 of file lltexteditor.h.
Referenced by drawText(), findEmbeddedItemSegments(), LLViewerTextEditor::handleHover(), handleHover(), and ~LLTextEditor().
class LLScrollbar* LLTextEditor::mScrollbar [protected] |
Definition at line 409 of file lltexteditor.h.
Referenced by appendText(), changePage(), draw(), drawCursor(), drawPreeditMarker(), drawSelectionBackground(), drawText(), endOfDoc(), getCursorPosFromLocalCoord(), getPreeditLocation(), LLViewerTextEditor::handleHover(), handleHover(), LLViewerTextEditor::handleMouseDown(), LLViewerTextEditor::handleMouseUp(), handleMouseUp(), handleNavigationKey(), handleScrollWheel(), isScrolledToBottom(), isScrolledToTop(), LLTextEditor(), replaceTextAll(), reshape(), setHideScrollbarForShortDocs(), setHighlightColor(), setOnScrollEndCallback(), setShadowColor(), setThumbColor(), setTrackColor(), updateLineStartList(), and updateScrollFromCursor().
BOOL LLTextEditor::mHideScrollbarForShortDocs [protected] |
Definition at line 410 of file lltexteditor.h.
Referenced by getXML(), setHideScrollbarForShortDocs(), and updateLineStartList().
BOOL LLTextEditor::mTakesNonScrollClicks [protected] |
Definition at line 411 of file lltexteditor.h.
Referenced by LLViewerTextEditor::handleDoubleClick(), handleDoubleClick(), LLViewerTextEditor::handleDragAndDrop(), LLViewerTextEditor::handleHover(), handleHover(), LLViewerTextEditor::handleMouseDown(), handleMouseDown(), LLViewerTextEditor::handleMouseUp(), handleMouseUp(), and setTakesNonScrollClicks().
void(* LLTextEditor::mOnScrollEndCallback)(void *) [protected] |
void* LLTextEditor::mOnScrollEndData [protected] |
Definition at line 413 of file lltexteditor.h.
Referenced by changePage(), endOfDoc(), handleHover(), LLViewerTextEditor::handleMouseDown(), LLViewerTextEditor::handleMouseUp(), handleNavigationKey(), LLTextEditor(), setOnScrollEndCallback(), and updateScrollFromCursor().
LLWString LLTextEditor::mPreeditWString [protected] |
Definition at line 415 of file lltexteditor.h.
Referenced by markAsPreedit(), resetPreedit(), and updatePreedit().
LLWString LLTextEditor::mPreeditOverwrittenWString [protected] |
Definition at line 416 of file lltexteditor.h.
Referenced by markAsPreedit(), resetPreedit(), and updatePreedit().
std::vector<S32> LLTextEditor::mPreeditPositions [protected] |
Definition at line 417 of file lltexteditor.h.
Referenced by drawPreeditMarker(), getPreeditLocation(), getPreeditRange(), hasPreeditString(), markAsPreedit(), resetPreedit(), and updatePreedit().
std::vector<BOOL> LLTextEditor::mPreeditStandouts [protected] |
Definition at line 418 of file lltexteditor.h.
Referenced by drawPreeditMarker(), markAsPreedit(), and updatePreedit().
LLKeywords LLTextEditor::mKeywords [private] |
Definition at line 437 of file lltexteditor.h.
Referenced by keywordsBegin(), keywordsEnd(), loadKeywords(), and updateSegments().
LLColor4 LLTextEditor::mLinkColor = LLColor4::blue [static, private] |
Definition at line 438 of file lltexteditor.h.
Referenced by appendStyledText(), and setLinkColor().
void(* LLTextEditor::mURLcallback)(const char *) | ( | const char * | url | ) | = NULL [static, private] |
Referenced by handleMouseUpOverSegment(), and setURLCallbacks().
bool(* LLTextEditor::mSecondlifeURLcallback)(const std::string &) | ( | const std::string & | url | ) | = NULL [static, private] |
Referenced by handleMouseUpOverSegment(), and setURLCallbacks().
bool(* LLTextEditor::mSecondlifeURLcallbackRightClick)(const std::string &) | ( | const std::string & | url | ) | = NULL [static, private] |
Referenced by setURLCallbacks().
LLWString LLTextEditor::mWText [private] |
Definition at line 447 of file lltexteditor.h.
Referenced by addChar(), append(), autoIndent(), changeLine(), copy(), cut(), doDelete(), drawCursor(), drawPreeditMarker(), drawSelectionBackground(), drawText(), exportBuffer(), findEmbeddedItemSegments(), getCurrentLineAndColumn(), getCursorPosFromLocalCoord(), LLViewerTextEditor::getEmbeddedText(), getLength(), getPreeditLocation(), getText(), getWChar(), getWSubString(), getWText(), handleDoubleClick(), indentLine(), indentSelectedLines(), insertStringNoUndo(), loadKeywords(), markAsPreedit(), nextWordPos(), overwriteChar(), overwriteCharNoUndo(), prevWordPos(), pruneSegments(), removeCharOrTab(), removeStringNoUndo(), selectionContainsLineBreaks(), setCursor(), setText(), setWText(), truncate(), unindentLineBeforeCloseBrace(), updateLineStartList(), and updateSegments().
LLString LLTextEditor::mUTF8Text [mutable, private] |
BOOL LLTextEditor::mTextIsUpToDate [mutable, private] |
Definition at line 451 of file lltexteditor.h.
Referenced by getText(), insertStringNoUndo(), overwriteCharNoUndo(), removeStringNoUndo(), setText(), setWText(), and truncate().
S32 LLTextEditor::mMaxTextByteLength [private] |
Definition at line 453 of file lltexteditor.h.
Referenced by addChar(), getMaxLength(), importBuffer(), and truncate().
const LLFontGL* LLTextEditor::mGLFont [private] |
Definition at line 455 of file lltexteditor.h.
Referenced by changeLine(), draw(), drawClippedSegment(), drawCursor(), drawPreeditMarker(), drawSelectionBackground(), drawText(), getCursorPosFromLocalCoord(), getPreeditFontSize(), getPreeditLocation(), getXML(), LLTextEditor(), reshape(), and updateLineStartList().
class LLViewBorder* LLTextEditor::mBorder [private] |
Definition at line 457 of file lltexteditor.h.
Referenced by draw(), isBorderVisible(), LLTextEditor(), and setBorderVisible().
BOOL LLTextEditor::mBaseDocIsPristine [private] |
Definition at line 459 of file lltexteditor.h.
Referenced by blockUndo(), isPristine(), and makePristine().
LLTextCmd* LLTextEditor::mPristineCmd [private] |
Definition at line 460 of file lltexteditor.h.
Referenced by isDirty(), isPristine(), and makePristine().
LLTextCmd* LLTextEditor::mLastCmd [private] |
Definition at line 462 of file lltexteditor.h.
Referenced by addChar(), blockUndo(), canRedo(), canUndo(), execute(), isDirty(), isPristine(), makePristine(), redo(), and undo().
undo_stack_t LLTextEditor::mUndoStack [private] |
Definition at line 465 of file lltexteditor.h.
Referenced by blockUndo(), canRedo(), execute(), redo(), undo(), and ~LLTextEditor().
S32 LLTextEditor::mDesiredXPixel [private] |
Definition at line 467 of file lltexteditor.h.
Referenced by changeLine(), changePage(), LLTextEditor(), and setCursorPos().
LLRect LLTextEditor::mTextRect [private] |
Definition at line 468 of file lltexteditor.h.
Referenced by changeLine(), drawCursor(), drawPreeditMarker(), drawSelectionBackground(), drawText(), getCursorPosFromLocalCoord(), getPreeditLocation(), getTextRect(), handleHover(), handleMouseUp(), LLTextEditor(), reshape(), updateLineStartList(), and updateTextRect().
line_list_t LLTextEditor::mLineStartList [private] |
Definition at line 489 of file lltexteditor.h.
Referenced by getLineAndOffset(), getLineCount(), getLineStart(), and updateLineStartList().
LLFrameTimer LLTextEditor::mKeystrokeTimer [private] |
Definition at line 491 of file lltexteditor.h.
Referenced by drawCursor(), resetKeystrokeTimer(), and updatePreedit().
LLColor4 LLTextEditor::mCursorColor [private] |
Definition at line 493 of file lltexteditor.h.
Referenced by drawCursor(), drawPreeditMarker(), getXML(), and setCursorColor().
LLColor4 LLTextEditor::mFgColor [private] |
Definition at line 495 of file lltexteditor.h.
Referenced by drawCursor(), findEmbeddedItemSegments(), getXML(), setFgColor(), and updateSegments().
LLColor4 LLTextEditor::mDefaultColor [private] |
Definition at line 496 of file lltexteditor.h.
Referenced by getXML(), loadKeywords(), setTextDefaultColor(), and updateSegments().
LLColor4 LLTextEditor::mReadOnlyFgColor [private] |
Definition at line 497 of file lltexteditor.h.
Referenced by drawCursor(), findEmbeddedItemSegments(), getXML(), setReadOnlyFgColor(), and updateSegments().
LLColor4 LLTextEditor::mWriteableBgColor [private] |
Definition at line 498 of file lltexteditor.h.
Referenced by drawBackground(), drawPreeditMarker(), drawSelectionBackground(), getXML(), and setWriteableBgColor().
LLColor4 LLTextEditor::mReadOnlyBgColor [private] |
Definition at line 499 of file lltexteditor.h.
Referenced by drawBackground(), drawSelectionBackground(), getXML(), and setReadOnlyBgColor().
LLColor4 LLTextEditor::mFocusBgColor [private] |
BOOL LLTextEditor::mReadOnly [private] |
Definition at line 502 of file lltexteditor.h.
Referenced by acceptsTextInput(), canCut(), canDoDelete(), canPaste(), canRedo(), canUndo(), drawBackground(), drawClippedSegment(), drawCursor(), drawSelectionBackground(), findEmbeddedItemSegments(), handleKeyHere(), handleNavigationKey(), handleUnicodeCharHere(), setEnabled(), updateAllowingLanguageInput(), updatePreedit(), updateScrollFromCursor(), and updateSegments().
BOOL LLTextEditor::mWordWrap [private] |
Definition at line 503 of file lltexteditor.h.
Referenced by getXML(), setWordWrap(), and updateLineStartList().
BOOL LLTextEditor::mTabsToNextField [private] |
Definition at line 505 of file lltexteditor.h.
Referenced by handleKeyHere(), setTabsToNextField(), and tabsToNextField().
BOOL LLTextEditor::mCommitOnFocusLost [private] |
Definition at line 506 of file lltexteditor.h.
Referenced by onFocusLost(), and setCommitOnFocusLost().
BOOL LLTextEditor::mTakesFocus [private] |
BOOL LLTextEditor::mTrackBottom [private] |
Definition at line 508 of file lltexteditor.h.
Referenced by reshape(), and setTextEditorParameters().
BOOL LLTextEditor::mScrolledToBottom [private] |
BOOL LLTextEditor::mAllowEmbeddedItems [private] |
Definition at line 511 of file lltexteditor.h.
Referenced by allowsEmbeddedItems(), changeLine(), drawClippedSegment(), drawCursor(), drawPreeditMarker(), drawSelectionBackground(), getCursorPosFromLocalCoord(), getPreeditLocation(), getText(), getXML(), paste(), updateLineStartList(), and updateSegments().
BOOL LLTextEditor::mAcceptCallingCardNames [private] |
Definition at line 513 of file lltexteditor.h.
Referenced by acceptsCallingCardNames(), and setAcceptCallingCardNames().
LLUUID LLTextEditor::mSourceID [private] |
Definition at line 515 of file lltexteditor.h.
Referenced by copy(), cut(), getSourceID(), LLTextEditor(), and setSourceID().
BOOL LLTextEditor::mHandleEditKeysDirectly [private] |
Definition at line 519 of file lltexteditor.h.
Referenced by handleKeyHere(), handleSelectionKey(), and setHandleEditKeysDirectly().
LLCoordGL LLTextEditor::mLastIMEPosition [private] |
Definition at line 521 of file lltexteditor.h.