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:
l target line
offset target text position within target line
text text to insert (can contain line feeds, "\n", which will result in the creation of new lines)
doc host document
p parent 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:

Generated on Sun Feb 15 22:50:20 2009 for QCodeEdit by  doxygen 1.5.7.1