QDocumentEraseCommand Class Reference

A specialized command to erase text. More...

Inheritance diagram for QDocumentEraseCommand:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 QDocumentEraseCommand (int bl, int bo, int el, int eo, QDocument *doc, QDocumentCommand *p=0)
 ctor
virtual ~QDocumentEraseCommand ()
 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 erase text.

Constructor & Destructor Documentation

QDocumentEraseCommand::QDocumentEraseCommand ( int  bl,
int  bo,
int  el,
int  eo,
QDocument doc,
QDocumentCommand p = 0 
)

ctor

Parameters:
bl begin line of the target area
bo begin text position of the target area
el end line of the target area
eo end text position of the target area
doc host document
p parent command

References QDocument::impl(), and QDocumentLineHandle::text().


Member Function Documentation

bool QDocumentEraseCommand::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