#include <llviewertexteditor.h>


Definition at line 41 of file llviewertexteditor.h.
| LLViewerTextEditor::LLViewerTextEditor | ( | const LLString & | name, | |
| const LLRect & | rect, | |||
| S32 | max_length, | |||
| const LLString & | default_text = LLString(), |
|||
| const LLFontGL * | glfont = NULL, |
|||
| BOOL | allow_embedded_items = FALSE | |||
| ) |
Definition at line 564 of file llviewertexteditor.cpp.
References mEmbeddedItemList, and mInventoryCallback.
Referenced by fromXML().

| LLViewerTextEditor::~LLViewerTextEditor | ( | ) | [virtual] |
Definition at line 591 of file llviewertexteditor.cpp.
References mEmbeddedItemList, mInventoryCallback, and NULL.
| void LLViewerTextEditor::makePristine | ( | ) | [virtual] |
Reimplemented from LLTextEditor.
Definition at line 603 of file llviewertexteditor.cpp.
References LLTextEditor::makePristine(), LLEmbeddedItems::markSaved(), and mEmbeddedItemList.
Referenced by LLPreviewNotecard::loadAsset(), LLPreviewNotecard::onLoadComplete(), LLPreviewNotecard::postBuild(), and LLPreviewNotecard::saveIfNeeded().


| LLView * LLViewerTextEditor::fromXML | ( | LLXMLNodePtr | node, | |
| LLView * | parent, | |||
| LLUICtrlFactory * | factory | |||
| ) | [static] |
Reimplemented from LLTextEditor.
Definition at line 1548 of file llviewertexteditor.cpp.
References LLTextEditor::appendStyledText(), LLView::createRect(), FALSE, LLUICtrl::initFromXML(), LLTextEditor::isBorderVisible(), LLViewerTextEditor(), LLTextEditor::mParseHTML, LLView::selectFont(), LLTextEditor::setBorderVisible(), LLTextEditor::setHideScrollbarForShortDocs(), LLTextEditor::setParseHTML(), LLTextEditor::setTabsToNextField(), LLTextEditor::setTextEditorParameters(), and LLTextEditor::tabsToNextField().

Reimplemented from LLTextEditor.
Definition at line 659 of file llviewertexteditor.cpp.
References LLTextEditor::allowsEmbeddedItems(), LLView::childrenHandleMouseDown(), LLTextEditor::deselect(), FALSE, LLScrollbar::getDocPos(), LLScrollbar::getDocPosMax(), LLEmbeddedItems::getEmbeddedItem(), LLEmbeddedItems::getEmbeddedItemSaved(), LLSingleton< LLToolDragAndDrop >::getInstance(), LLTextEditor::getLength(), LLTextEditor::getWChar(), gFocusMgr, LLTextEditor::hasSelection(), LLUICtrl::hasTabStop(), LLView::localPointToScreen(), MASK_SHIFT, LLTextEditor::mCursorPos, mDragItem, mDragItemSaved, LLTextEditor::mIsSelecting, LLTextEditor::mMouseDownX, LLTextEditor::mMouseDownY, LLTextEditor::mOnScrollEndCallback, LLTextEditor::mOnScrollEndData, LLTextEditor::mScrollbar, LLTextEditor::mSelectionEnd, LLTextEditor::mSelectionStart, LLTextEditor::mTakesNonScrollClicks, NULL, LLTextEditor::resetKeystrokeTimer(), S32, LLTextEditor::setCursorAtLocalPos(), LLToolDragAndDrop::setDragStart(), LLTextEditor::setFocus(), LLFocusMgr::setMouseCapture(), LLTextEditor::startSelection(), and TRUE.

Reimplemented from LLTextEditor.
Definition at line 891 of file llviewertexteditor.cpp.
References LLView::childrenHandleMouseUp(), LLTextEditor::endSelection(), FALSE, LLScrollbar::getDocPos(), LLScrollbar::getDocPosMax(), LLTextEditor::getTextRect(), gFocusMgr, LLTextEditor::handleMouseUpOverSegment(), LLView::hasMouseCapture(), LLTextEditor::hasSelection(), LLRectBase< Type >::mBottom, mDragItem, mDragItemSaved, LLTextEditor::mIsSelecting, LLTextEditor::mMouseDownX, LLTextEditor::mMouseDownY, LLTextEditor::mOnScrollEndCallback, LLTextEditor::mOnScrollEndData, LLTextEditor::mScrollbar, LLTextEditor::mTakesNonScrollClicks, NULL, openEmbeddedItem(), LLTextEditor::resetKeystrokeTimer(), S32, LLTextEditor::setCursorAtLocalPos(), LLScrollbar::setDocPos(), LLFocusMgr::setMouseCapture(), showUnsavedAlertDialog(), TRUE, and LLTextEditor::updateScrollFromCursor().

Reimplemented from LLView.
Definition at line 963 of file llviewertexteditor.cpp.
References LLView::childrenHandleRightMouseDown(), and NULL.

Reimplemented from LLTextEditor.
Definition at line 776 of file llviewertexteditor.cpp.
References LLToolDragAndDrop::beginDrag(), LLView::childrenHandleHover(), FALSE, LLScrollbar::getDocPos(), LLSingleton< LLToolDragAndDrop >::getInstance(), LLView::getName(), LLView::getRect(), LLTextEditor::getSegmentAtLocalPos(), LLTextEditor::getSourceID(), LLTextSegment::getStyle(), LLTextEditor::getTextRect(), LLView::getVisible(), LLRectBase< Type >::getWidth(), LLView::getWindow(), LLToolDragAndDrop::handleHover(), LLView::hasMouseCapture(), lldebugst, llendl, LLView::localPointToScreen(), LLAssetType::lookupDragAndDropType(), LLRectBase< Type >::mBottom, LLTextEditor::mCursorPos, mDragItem, LLTextEditor::mHoverSegment, LLTextEditor::mIsSelecting, LLTextEditor::mLastSelectionX, LLTextEditor::mLastSelectionY, mObjectID, LLTextEditor::mScrollbar, LLTextEditor::mSegments, LLTextEditor::mSelectionEnd, LLTextEditor::mTakesNonScrollClicks, NULL, LLTextEditor::resetKeystrokeTimer(), S32, SCROLLBAR_SIZE, LLWindow::setCursor(), LLTextEditor::setCursorAtLocalPos(), LLScrollbar::setDocPos(), LLToolDragAndDrop::SOURCE_NOTECARD, TRUE, UI_CURSOR_ARROW, UI_CURSOR_HAND, UI_CURSOR_IBEAM, and LLTextEditor::updateScrollFromCursor().

Reimplemented from LLTextEditor.
Definition at line 999 of file llviewertexteditor.cpp.
References LLTextEditor::allowsEmbeddedItems(), LLView::childrenHandleDoubleClick(), LLTextEditor::deselect(), FALSE, LLTextEditor::getSegmentAtLocalPos(), LLTextSegment::getStart(), LLTextSegment::getStyle(), LLTextEditor::getWText(), LLTextEditor::isPartOfWord(), LLTextEditor::mCursorPos, LLTextEditor::mIsSelecting, LLTextEditor::mSelectionEnd, LLTextEditor::mTakesNonScrollClicks, NULL, openEmbeddedItemAtPos(), LLTextEditor::resetKeystrokeTimer(), S32, LLTextEditor::setCursorAtLocalPos(), LLTextEditor::setFocus(), LLTextEditor::startSelection(), and TRUE.

| BOOL LLViewerTextEditor::handleToolTip | ( | S32 | x, | |
| S32 | y, | |||
| LLString & | msg, | |||
| LLRect * | sticky_rect | |||
| ) | [virtual] |
Reimplemented from LLTextEditor.
Definition at line 611 of file llviewertexteditor.cpp.
References FALSE, LLView::getChildList(), getEmbeddedItemToolTipAtPos(), LLView::getRect(), LLTextEditor::getSegmentAtLocalPos(), LLTextSegment::getStart(), LLTextSegment::getStyle(), LLTextSegment::getToolTip(), LLView::handleToolTip(), LLView::localPointToScreen(), LLRectBase< Type >::mBottom, LLRectBase< Type >::mLeft, LLRectBase< Type >::mRight, LLTextEditor::mSegments, LLRectBase< Type >::mTop, S32, TRUE, and wstring_to_utf8str().

| BOOL LLViewerTextEditor::handleDragAndDrop | ( | S32 | x, | |
| S32 | y, | |||
| MASK | mask, | |||
| BOOL | drop, | |||
| EDragAndDropType | cargo_type, | |||
| void * | cargo_data, | |||
| EAcceptance * | accept, | |||
| LLString & | tooltip_msg | |||
| ) | [virtual] |
Reimplemented from LLTextEditor.
Definition at line 1068 of file llviewertexteditor.cpp.
References ACCEPT_NO, ACCEPT_YES_COPY_MULTI, ACCEPT_YES_COPY_SINGLE, LLTextEditor::acceptsCallingCardNames(), LLTextEditor::acceptsTextInput(), LLTextEditor::allowsEmbeddedItems(), LLTextEditor::appendText(), DAD_ANIMATION, DAD_BODYPART, DAD_CALLINGCARD, DAD_CLOTHING, DAD_GESTURE, DAD_LANDMARK, DAD_NOTECARD, DAD_OBJECT, DAD_SCRIPT, DAD_SOUND, DAD_TEXTURE, LLTextEditor::deselect(), FALSE, LLView::getEnabled(), LLPermissions::getMaskNextOwner(), LLView::getName(), LLInventoryObject::getName(), LLInventoryItem::getPermissions(), insertEmbeddedItem(), lldebugst, llendl, LLTextEditor::mCursorPos, LLTextEditor::mTakesNonScrollClicks, PERM_ITEM_UNRESTRICTED, S32, LLTextEditor::setCursorAtLocalPos(), LLTextEditor::setCursorPos(), TRUE, and LLTextEditor::updateLineStartList().

| class LLInventoryItem* LLViewerTextEditor::getDragItem | ( | ) | const [inline] |
Definition at line 70 of file llviewertexteditor.h.
References mDragItem.
Referenced by LLPreviewNotecard::getDragItem().

Reimplemented from LLTextEditor.
Definition at line 1522 of file llviewertexteditor.cpp.
References importStream().
Referenced by onCovenantLoadComplete(), LLPreviewNotecard::onLoadComplete(), and LLPanelEstateCovenant::onLoadComplete().


| bool LLViewerTextEditor::importStream | ( | std::istream & | str | ) | [virtual] |
Definition at line 1483 of file llviewertexteditor.cpp.
References LLEmbeddedItems::addItems(), LLTextEditor::allowsEmbeddedItems(), LLEmbeddedItems::clear(), LLNotecard::getItems(), LLNotecard::getText(), LLNotecard::getVersion(), LLNotecard::importStream(), LLNotecard::MAX_SIZE, mEmbeddedItemList, setASCIIEmbeddedText(), setEmbeddedText(), and LLTextEditor::setText().
Referenced by importBuffer().


Reimplemented from LLTextEditor.
Definition at line 1528 of file llviewertexteditor.cpp.
References LLNotecard::exportStream(), LLEmbeddedItems::getEmbeddedItemList(), getEmbeddedText(), LLNotecard::MAX_SIZE, mEmbeddedItemList, LLNotecard::setItems(), LLNotecard::setText(), and TRUE.
Referenced by LLPreviewNotecard::saveIfNeeded().


| void LLViewerTextEditor::setNotecardInfo | ( | const LLUUID & | notecard_item_id, | |
| const LLUUID & | object_id | |||
| ) | [inline] |
Definition at line 74 of file llviewertexteditor.h.
References mNotecardInventoryID, and mObjectID.
Referenced by LLPreviewNotecard::postBuild().

| void LLViewerTextEditor::setASCIIEmbeddedText | ( | const LLString & | instr | ) |
Definition at line 1168 of file llviewertexteditor.cpp.
References LLEmbeddedItems::getEmbeddedCharFromIndex(), mEmbeddedItemList, S32, and LLTextEditor::setWText().
Referenced by importStream().


| void LLViewerTextEditor::setEmbeddedText | ( | const LLString & | instr | ) |
Definition at line 1190 of file llviewertexteditor.cpp.
References LLTextEditor::FIRST_EMBEDDED_CHAR, LLEmbeddedItems::getEmbeddedCharFromIndex(), i, LLTextEditor::LAST_EMBEDDED_CHAR, mEmbeddedItemList, S32, LLTextEditor::setWText(), and utf8str_to_wstring().
Referenced by importStream().


| LLString LLViewerTextEditor::getEmbeddedText | ( | ) |
Definition at line 1205 of file llviewertexteditor.cpp.
References LLEmbeddedItems::copyUsedCharsToIndexed(), LLTextEditor::FIRST_EMBEDDED_CHAR, LLEmbeddedItems::getIndexFromEmbeddedChar(), LLTextEditor::getWChar(), LLTextEditor::getWText(), i, LLTextEditor::LAST_EMBEDDED_CHAR, LL_UNKNOWN_CHAR, mEmbeddedItemList, LLTextEditor::mWText, S32, and wstring_to_utf8str().
Referenced by exportBuffer().


| LLString LLViewerTextEditor::appendTime | ( | bool | prepend_newline | ) |
Definition at line 1245 of file llviewertexteditor.cpp.
References LLTextEditor::appendColoredText(), gPacificDaylightTime, LLColor4::grey, llformat(), time_corrected(), tut::tm(), and utc_to_pacific_time().
Referenced by add_timestamped_line(), and LLFloaterIMPanel::addHistoryLine().


| void LLViewerTextEditor::copyInventory | ( | const LLInventoryItem * | item, | |
| U32 | callback_id = 0 | |||
| ) |
Definition at line 1508 of file llviewertexteditor.cpp.
References copy_inventory_from_notecard(), mNotecardInventoryID, and mObjectID.
Referenced by onCopyToInvDialog(), LLPreviewNotecard::onSaveComplete(), and openEmbeddedNotecard().


| bool LLViewerTextEditor::hasEmbeddedInventory | ( | ) |
Definition at line 1515 of file llviewertexteditor.cpp.
References LLEmbeddedItems::empty(), and mEmbeddedItemList.
Referenced by LLPreviewNotecard::hasEmbeddedInventory().


Reimplemented from LLTextEditor.
Definition at line 1266 of file llviewertexteditor.cpp.
References LLEmbeddedItems::getEmbeddedItem(), LLEmbeddedItems::hasEmbeddedItem(), LLEmbeddedItems::insertEmbeddedItem(), LL_UNKNOWN_CHAR, and mEmbeddedItemList.

| void LLViewerTextEditor::bindEmbeddedChars | ( | LLFontGL * | font | ) | const [private, virtual] |
Reimplemented from LLTextEditor.
Definition at line 1285 of file llviewertexteditor.cpp.
References LLEmbeddedItems::bindEmbeddedChars(), and mEmbeddedItemList.

| void LLViewerTextEditor::unbindEmbeddedChars | ( | LLFontGL * | font | ) | const [private, virtual] |
Reimplemented from LLTextEditor.
Definition at line 1290 of file llviewertexteditor.cpp.
References mEmbeddedItemList, and LLEmbeddedItems::unbindEmbeddedChars().

Definition at line 1295 of file llviewertexteditor.cpp.
References FALSE, LLInventoryItem::getDescription(), LLEmbeddedItems::getEmbeddedItem(), LLTextEditor::getLength(), LLInventoryObject::getName(), LLTextEditor::getWChar(), TRUE, and utf8str_to_wstring().
Referenced by handleToolTip().


Definition at line 1312 of file llviewertexteditor.cpp.
References FALSE, LLEmbeddedItems::getEmbeddedItem(), LLEmbeddedItems::getEmbeddedItemSaved(), LLTextEditor::getLength(), LLTextEditor::getWChar(), openEmbeddedItem(), and showUnsavedAlertDialog().
Referenced by handleDoubleClick().


| BOOL LLViewerTextEditor::openEmbeddedItem | ( | LLInventoryItem * | item | ) | [private] |
Definition at line 1334 of file llviewertexteditor.cpp.
References LLAssetType::AT_ANIMATION, LLAssetType::AT_BODYPART, LLAssetType::AT_CLOTHING, LLAssetType::AT_GESTURE, LLAssetType::AT_LANDMARK, LLAssetType::AT_LSL_TEXT, LLAssetType::AT_NOTECARD, LLAssetType::AT_OBJECT, LLAssetType::AT_SOUND, LLAssetType::AT_TEXTURE, FALSE, LLInventoryObject::getType(), openEmbeddedLandmark(), openEmbeddedNotecard(), openEmbeddedSound(), openEmbeddedTexture(), showCopyToInvDialog(), and TRUE.
Referenced by handleMouseUp(), and openEmbeddedItemAtPos().


| S32 LLViewerTextEditor::insertEmbeddedItem | ( | S32 | pos, | |
| LLInventoryItem * | item | |||
| ) | [private] |
Definition at line 1478 of file llviewertexteditor.cpp.
References LLTextEditor::execute().
Referenced by handleDragAndDrop().


| void LLViewerTextEditor::openEmbeddedTexture | ( | LLInventoryItem * | item | ) | [private] |
Definition at line 1370 of file llviewertexteditor.cpp.
References LLInventoryItem::getAssetUUID(), LLInventoryObject::getName(), LLFloaterView::getNewFloaterPosition(), LLControlGroup::getRect(), gFloaterView, gSavedSettings, LLRectBase< Type >::mLeft, mNotecardInventoryID, mObjectID, LLRectBase< Type >::mTop, S32, LLPreview::setAuxItem(), LLPreview::setNotecardInfo(), LLPreview::show(), LLRectBase< Type >::translate(), and TRUE.
Referenced by openEmbeddedItem().


| void LLViewerTextEditor::openEmbeddedSound | ( | LLInventoryItem * | item | ) | [private] |
Definition at line 1398 of file llviewertexteditor.cpp.
References gAgent, gAgentID, gAudiop, LLInventoryItem::getAssetUUID(), LLControlGroup::getBOOL(), LLControlGroup::getF32(), LLAgent::getPositionGlobal(), gSavedSettings, showCopyToInvDialog(), SOUND_GAIN, and LLAudioEngine::triggerSound().
Referenced by openEmbeddedItem().


| void LLViewerTextEditor::openEmbeddedLandmark | ( | LLInventoryItem * | item | ) | [private] |
Definition at line 1412 of file llviewertexteditor.cpp.
References FALSE, LLInventoryObject::getName(), LLInventoryObject::getUUID(), open_landmark(), LLLandmarkBridge::prefix(), and TRUE.
Referenced by openEmbeddedItem().


| void LLViewerTextEditor::openEmbeddedNotecard | ( | LLInventoryItem * | item | ) | [private] |
Definition at line 1419 of file llviewertexteditor.cpp.
References copyInventory(), gInventoryCallbacks, mInventoryCallback, and LLInventoryCallbackManager::registerCB().
Referenced by openEmbeddedItem().


| void LLViewerTextEditor::showCopyToInvDialog | ( | LLInventoryItem * | item | ) | [private] |
Definition at line 1457 of file llviewertexteditor.cpp.
References LLViewerWindow::alertXml(), gViewerWindow, and onCopyToInvDialog().
Referenced by openEmbeddedItem(), and openEmbeddedSound().


| void LLViewerTextEditor::showUnsavedAlertDialog | ( | LLInventoryItem * | item | ) | [private] |
Definition at line 1437 of file llviewertexteditor.cpp.
References LLViewerWindow::alertXml(), gViewerWindow, and onNotecardDialog().
Referenced by handleMouseUp(), and openEmbeddedItemAtPos().


| void LLViewerTextEditor::onCopyToInvDialog | ( | S32 | option, | |
| void * | userdata | |||
| ) | [static, private] |
Definition at line 1465 of file llviewertexteditor.cpp.
References copyInventory(), LLNotecardCopyInfo::mItem, and LLNotecardCopyInfo::mTextEd.
Referenced by showCopyToInvDialog().


| void LLViewerTextEditor::onNotecardDialog | ( | S32 | option, | |
| void * | userdata | |||
| ) | [static, private] |
Definition at line 1444 of file llviewertexteditor.cpp.
References LLNotecardCopyInfo::mItem, mNotecardInventoryID, LLNotecardCopyInfo::mTextEd, and LLPreview::save().
Referenced by showUnsavedAlertDialog().


Definition at line 119 of file llviewertexteditor.h.
Referenced by getDragItem(), handleHover(), handleMouseDown(), and handleMouseUp().
BOOL LLViewerTextEditor::mDragItemSaved [private] |
Definition at line 120 of file llviewertexteditor.h.
Referenced by handleMouseDown(), and handleMouseUp().
class LLEmbeddedItems* LLViewerTextEditor::mEmbeddedItemList [private] |
Definition at line 121 of file llviewertexteditor.h.
Referenced by bindEmbeddedChars(), LLViewerTextEditor::LLTextCmdInsertEmbeddedItem::execute(), exportBuffer(), getEmbeddedText(), hasEmbeddedInventory(), importStream(), LLViewerTextEditor(), makePristine(), pasteEmbeddedItem(), setASCIIEmbeddedText(), setEmbeddedText(), unbindEmbeddedChars(), and ~LLViewerTextEditor().
LLUUID LLViewerTextEditor::mObjectID [private] |
Definition at line 123 of file llviewertexteditor.h.
Referenced by copyInventory(), handleHover(), openEmbeddedTexture(), and setNotecardInfo().
Definition at line 124 of file llviewertexteditor.h.
Referenced by copyInventory(), onNotecardDialog(), openEmbeddedTexture(), and setNotecardInfo().
LLPointer<class LLEmbeddedNotecardOpener> LLViewerTextEditor::mInventoryCallback [private] |
Definition at line 126 of file llviewertexteditor.h.
Referenced by LLViewerTextEditor(), openEmbeddedNotecard(), and ~LLViewerTextEditor().
1.5.5