QCodeEdit 2.2
QDocumentInsertCommand Class Reference

A specialized command to insert text. More...

Inheritance diagram for QDocumentInsertCommand:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 QDocumentInsertCommand (int l, int offset, const QString &text, QDocument *doc, QDocumentCommand *p=0)
 ctor
virtual ~QDocumentInsertCommand ()
 dtor
virtual bool mergeWith (const QUndoCommand *command)
 Attempts to merge with another command.
virtual void redo ()
 Redo the command.
virtual void undo ()
 Undo the command.

Detailed Description

A specialized command to insert text.


Constructor & Destructor Documentation

QDocumentInsertCommand::QDocumentInsertCommand ( int  l,
int  offset,
const QString &  text,
QDocument doc,
QDocumentCommand p = 0 
)

ctor

Parameters:
ltarget line
offsettarget text position within target line
texttext to insert (can contain line feeds, "\n", which will result in the creation of new lines)
dochost document
pparent command

References QDocumentLine::length(), QDocument::line(), and QDocumentLine::text().


Member Function Documentation

bool QDocumentInsertCommand::mergeWith ( const QUndoCommand command) [virtual]

Attempts to merge with another command.

Command merging is not implemented.

Reimplemented from QDocumentCommand.


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