LLTextCmd Class Reference

#include <lltexteditor.h>

Inheritance diagram for LLTextCmd:

Inheritance graph
[legend]
List of all members.

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)
virtual void blockExtensions ()
virtual BOOL extendAndExecute (LLTextEditor *editor, S32 pos, llwchar c, S32 *delta)
virtual BOOL hasExtCharValue (llwchar value)
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)
BOOL groupWithNext ()

Protected Attributes

S32 mPos
BOOL mGroupWithNext

Detailed Description

Definition at line 488 of file lltexteditor.h.


Constructor & Destructor Documentation

LLTextCmd::LLTextCmd ( S32  pos,
BOOL  group_with_next 
) [inline]

Definition at line 491 of file lltexteditor.h.

virtual LLTextCmd::~LLTextCmd (  )  [inline, virtual]

Definition at line 496 of file lltexteditor.h.


Member Function Documentation

void LLTextCmd::blockExtensions (  )  [virtual]

Reimplemented in LLTextCmdAddChar.

Definition at line 94 of file lltexteditor.cpp.

Referenced by LLTextEditor::makePristine().

BOOL LLTextCmd::canExtend ( S32  pos  )  [virtual]

Reimplemented in LLTextCmdAddChar.

Definition at line 89 of file lltexteditor.cpp.

References FALSE.

Referenced by LLTextEditor::addChar().

virtual BOOL LLTextCmd::execute ( LLTextEditor editor,
S32 delta 
) [pure virtual]

Implemented in LLTextCmdInsert, LLTextCmdAddChar, LLTextCmdOverwriteChar, LLTextCmdRemove, and LLTextCmdInsertEmbeddedItem.

Referenced by LLTextEditor::execute().

BOOL LLTextCmd::extendAndExecute ( LLTextEditor editor,
S32  pos,
llwchar  c,
S32 delta 
) [virtual]

Reimplemented in LLTextCmdAddChar.

Definition at line 98 of file lltexteditor.cpp.

References llassert.

Referenced by LLTextEditor::addChar().

BOOL LLTextCmd::groupWithNext (  )  [inline]

Definition at line 510 of file lltexteditor.h.

References mGroupWithNext.

Referenced by LLTextEditor::redo(), and LLTextEditor::undo().

BOOL LLTextCmd::hasExtCharValue ( llwchar  value  )  [virtual]

Reimplemented in LLTextCmdInsertEmbeddedItem.

Definition at line 104 of file lltexteditor.cpp.

References FALSE.

S32 LLTextCmd::insert ( LLTextEditor editor,
S32  pos,
const LLWString wstr 
)

Definition at line 110 of file lltexteditor.cpp.

References LLTextEditor::insertStringNoUndo().

Referenced by LLTextCmdInsertEmbeddedItem::execute(), LLTextCmdAddChar::execute(), LLTextCmdInsert::execute(), LLTextCmdAddChar::extendAndExecute(), LLTextCmdInsertEmbeddedItem::redo(), LLTextCmdAddChar::redo(), LLTextCmdInsert::redo(), and LLTextCmdRemove::undo().

S32 LLTextCmd::overwrite ( LLTextEditor editor,
S32  pos,
llwchar  wc 
)

Definition at line 118 of file lltexteditor.cpp.

References LLTextEditor::overwriteCharNoUndo().

Referenced by LLTextCmdOverwriteChar::execute(), LLTextCmdOverwriteChar::redo(), and LLTextCmdOverwriteChar::undo().

virtual S32 LLTextCmd::redo ( LLTextEditor editor  )  [pure virtual]

Implemented in LLTextCmdInsert, LLTextCmdAddChar, LLTextCmdOverwriteChar, LLTextCmdRemove, and LLTextCmdInsertEmbeddedItem.

Referenced by LLTextEditor::redo().

S32 LLTextCmd::remove ( LLTextEditor editor,
S32  pos,
S32  length 
)

Definition at line 114 of file lltexteditor.cpp.

References LLTextEditor::removeStringNoUndo().

Referenced by LLTextCmdRemove::execute(), LLTextCmdRemove::redo(), LLTextCmdInsertEmbeddedItem::undo(), LLTextCmdAddChar::undo(), and LLTextCmdInsert::undo().

virtual S32 LLTextCmd::undo ( LLTextEditor editor  )  [pure virtual]

Implemented in LLTextCmdInsert, LLTextCmdAddChar, LLTextCmdOverwriteChar, LLTextCmdRemove, and LLTextCmdInsertEmbeddedItem.

Referenced by LLTextEditor::undo().


Member Data Documentation

BOOL LLTextCmd::mGroupWithNext [protected]

Definition at line 514 of file lltexteditor.h.

Referenced by groupWithNext().

S32 LLTextCmd::mPos [protected]

Definition at line 513 of file lltexteditor.h.

Referenced by LLTextCmdAddChar::canExtend(), LLTextCmdInsertEmbeddedItem::execute(), LLTextCmdRemove::execute(), LLTextCmdOverwriteChar::execute(), LLTextCmdAddChar::execute(), LLTextCmdInsert::execute(), LLTextCmdInsertEmbeddedItem::redo(), LLTextCmdRemove::redo(), LLTextCmdOverwriteChar::redo(), LLTextCmdAddChar::redo(), LLTextCmdInsert::redo(), LLTextCmdInsertEmbeddedItem::undo(), LLTextCmdRemove::undo(), LLTextCmdOverwriteChar::undo(), LLTextCmdAddChar::undo(), and LLTextCmdInsert::undo().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:50 2010 for Second Life Viewer by  doxygen 1.4.7