#include <lltexteditor.h>
Public Member Functions | |
LLTextCmd (S32 pos, BOOL group_with_next) | |
virtual | ~LLTextCmd () |
virtual BOOL | execute (LLTextEditor *editor, S32 *delta)=0 |
virtual S32 | undo (LLTextEditor *editor)=0 |
virtual S32 | redo (LLTextEditor *editor)=0 |
virtual BOOL | canExtend (S32 pos) const |
virtual void | blockExtensions () |
virtual BOOL | extendAndExecute (LLTextEditor *editor, S32 pos, llwchar c, S32 *delta) |
virtual BOOL | hasExtCharValue (llwchar value) const |
S32 | insert (LLTextEditor *editor, S32 pos, const LLWString &wstr) |
S32 | remove (LLTextEditor *editor, S32 pos, S32 length) |
S32 | overwrite (LLTextEditor *editor, S32 pos, llwchar wc) |
S32 | getPosition () const |
BOOL | groupWithNext () const |
Private Attributes | |
const S32 | mPos |
BOOL | mGroupWithNext |
Definition at line 322 of file lltexteditor.h.
Definition at line 325 of file lltexteditor.h.
virtual LLTextEditor::LLTextCmd::~LLTextCmd | ( | ) | [inline, virtual] |
Definition at line 326 of file lltexteditor.h.
virtual BOOL LLTextEditor::LLTextCmd::execute | ( | LLTextEditor * | editor, | |
S32 * | delta | |||
) | [pure virtual] |
Implemented in LLTextEditor::LLTextCmdInsert, LLTextEditor::LLTextCmdAddChar, LLTextEditor::LLTextCmdOverwriteChar, LLTextEditor::LLTextCmdRemove, and LLViewerTextEditor::LLTextCmdInsertEmbeddedItem.
Referenced by LLTextEditor::execute().
virtual S32 LLTextEditor::LLTextCmd::undo | ( | LLTextEditor * | editor | ) | [pure virtual] |
Implemented in LLTextEditor::LLTextCmdInsert, LLTextEditor::LLTextCmdAddChar, LLTextEditor::LLTextCmdOverwriteChar, LLTextEditor::LLTextCmdRemove, and LLViewerTextEditor::LLTextCmdInsertEmbeddedItem.
Referenced by LLTextEditor::undo().
virtual S32 LLTextEditor::LLTextCmd::redo | ( | LLTextEditor * | editor | ) | [pure virtual] |
Implemented in LLTextEditor::LLTextCmdInsert, LLTextEditor::LLTextCmdAddChar, LLTextEditor::LLTextCmdOverwriteChar, LLTextEditor::LLTextCmdRemove, and LLViewerTextEditor::LLTextCmdInsertEmbeddedItem.
Referenced by LLTextEditor::redo().
Reimplemented in LLTextEditor::LLTextCmdAddChar.
Definition at line 330 of file lltexteditor.h.
References FALSE.
Referenced by LLTextEditor::addChar().
virtual void LLTextEditor::LLTextCmd::blockExtensions | ( | ) | [inline, virtual] |
Reimplemented in LLTextEditor::LLTextCmdAddChar.
Definition at line 331 of file lltexteditor.h.
Referenced by LLTextEditor::makePristine().
virtual BOOL LLTextEditor::LLTextCmd::extendAndExecute | ( | LLTextEditor * | editor, | |
S32 | pos, | |||
llwchar | c, | |||
S32 * | delta | |||
) | [inline, virtual] |
Reimplemented in LLTextEditor::LLTextCmdAddChar.
Definition at line 332 of file lltexteditor.h.
References llassert.
Referenced by LLTextEditor::addChar().
Reimplemented in LLViewerTextEditor::LLTextCmdInsertEmbeddedItem.
Definition at line 333 of file lltexteditor.h.
References FALSE.
S32 LLTextEditor::LLTextCmd::insert | ( | LLTextEditor * | editor, | |
S32 | pos, | |||
const LLWString & | wstr | |||
) | [inline] |
Definition at line 336 of file lltexteditor.h.
References LLTextEditor::insertStringNoUndo().
Referenced by LLTextEditor::LLTextCmdAddChar::execute(), LLTextEditor::LLTextCmdInsert::execute(), LLTextEditor::LLTextCmdAddChar::extendAndExecute(), LLTextEditor::LLTextCmdAddChar::redo(), LLTextEditor::LLTextCmdInsert::redo(), and LLTextEditor::LLTextCmdRemove::undo().
S32 LLTextEditor::LLTextCmd::remove | ( | LLTextEditor * | editor, | |
S32 | pos, | |||
S32 | length | |||
) | [inline] |
Definition at line 337 of file lltexteditor.h.
S32 LLTextEditor::LLTextCmd::overwrite | ( | LLTextEditor * | editor, | |
S32 | pos, | |||
llwchar | wc | |||
) | [inline] |
Definition at line 338 of file lltexteditor.h.
References LLTextEditor::overwriteCharNoUndo().
Referenced by LLTextEditor::LLTextCmdOverwriteChar::execute(), LLTextEditor::LLTextCmdOverwriteChar::redo(), and LLTextEditor::LLTextCmdOverwriteChar::undo().
S32 LLTextEditor::LLTextCmd::getPosition | ( | void | ) | const [inline] |
Definition at line 340 of file lltexteditor.h.
References mPos.
Referenced by LLTextEditor::LLTextCmdAddChar::canExtend(), LLTextEditor::LLTextCmdRemove::execute(), LLTextEditor::LLTextCmdOverwriteChar::execute(), LLTextEditor::LLTextCmdAddChar::execute(), LLTextEditor::LLTextCmdInsert::execute(), LLTextEditor::LLTextCmdRemove::redo(), LLTextEditor::LLTextCmdOverwriteChar::redo(), LLTextEditor::LLTextCmdAddChar::redo(), LLTextEditor::LLTextCmdInsert::redo(), LLTextEditor::LLTextCmdRemove::undo(), LLTextEditor::LLTextCmdOverwriteChar::undo(), LLTextEditor::LLTextCmdAddChar::undo(), and LLTextEditor::LLTextCmdInsert::undo().
BOOL LLTextEditor::LLTextCmd::groupWithNext | ( | ) | const [inline] |
Definition at line 341 of file lltexteditor.h.
References mGroupWithNext.
Referenced by LLTextEditor::redo(), and LLTextEditor::undo().
const S32 LLTextEditor::LLTextCmd::mPos [private] |
BOOL LLTextEditor::LLTextCmd::mGroupWithNext [private] |