kspread

KSpread::AbstractRegionCommand Class Reference

Abstract base class for all region related operations. More...

#include <AbstractRegionCommand.h>

Inheritance diagram for KSpread::AbstractRegionCommand:

List of all members.

Public Member Functions

 AbstractRegionCommand (QUndoCommand *parent=0)
virtual ~AbstractRegionCommand ()
virtual bool execute (KoCanvasBase *canvas=0)
virtual void redo ()
void setRegisterUndo (bool registerUndo)
virtual void setReverse (bool reverse)
void setSheet (Sheet *sheet)
Sheetsheet () const
virtual void undo ()

Protected Member Functions

bool isApproved () const
virtual bool mainProcessing ()
virtual bool postProcessing ()
virtual bool preProcessing ()
virtual bool process (Element *)

Protected Attributes

bool m_checkLock: 1
bool m_firstrun: 1
bool m_register: 1
bool m_reverse: 1
Sheetm_sheet
bool m_success: 1

Detailed Description

Abstract base class for all region related operations.

Definition at line 37 of file AbstractRegionCommand.h.


Constructor & Destructor Documentation

AbstractRegionCommand::AbstractRegionCommand ( QUndoCommand parent = 0  ) 

Constructor.

Definition at line 55 of file AbstractRegionCommand.cpp.

AbstractRegionCommand::~AbstractRegionCommand (  )  [virtual]

Destructor.

Definition at line 67 of file AbstractRegionCommand.cpp.


Member Function Documentation

bool AbstractRegionCommand::execute ( KoCanvasBase canvas = 0  )  [virtual]

Executes the actual operation and adds the manipulator to the undo history, if desired.

Returns:
true if the command was executed successfully
false if the command fails, was already executed once or is not approved
See also:
setRegisterUndo, isApproved

Definition at line 71 of file AbstractRegionCommand.cpp.

bool AbstractRegionCommand::isApproved (  )  const [protected]

Checks all cells, that should be processed, for protection and matrix locks.

Returns:
true if execution is approved
false otherwise

Definition at line 127 of file AbstractRegionCommand.cpp.

void AbstractRegionCommand::redo (  )  [virtual]

Executes the actual operation.

Reimplemented from QUndoCommand.

Reimplemented in KSpread::ApplyFilterCommand, KSpread::AutoFilterCommand, and KSpread::DefinePrintRangeCommand.

Definition at line 85 of file AbstractRegionCommand.cpp.

void KSpread::AbstractRegionCommand::setRegisterUndo ( bool  registerUndo  )  [inline]

If registerUndo is true , this manipulator registers an undo operation for the document.

Definition at line 95 of file AbstractRegionCommand.h.

virtual void KSpread::AbstractRegionCommand::setReverse ( bool  reverse  )  [inline, virtual]
void KSpread::AbstractRegionCommand::setSheet ( Sheet sheet  )  [inline]

Sets sheet to be the Sheet to work on.

Definition at line 60 of file AbstractRegionCommand.h.

Sheet* KSpread::AbstractRegionCommand::sheet (  )  const [inline]
Returns:
the Sheet this AbstractRegionCommand works on

Definition at line 53 of file AbstractRegionCommand.h.

void AbstractRegionCommand::undo (  )  [virtual]

Executes the actual operation in reverse order.

Reimplemented from QUndoCommand.

Reimplemented in KSpread::ApplyFilterCommand, KSpread::AutoFilterCommand, and KSpread::DefinePrintRangeCommand.

Definition at line 120 of file AbstractRegionCommand.cpp.


Member Data Documentation

Definition at line 140 of file AbstractRegionCommand.h.

Definition at line 137 of file AbstractRegionCommand.h.

Definition at line 138 of file AbstractRegionCommand.h.

Definition at line 136 of file AbstractRegionCommand.h.

Definition at line 139 of file AbstractRegionCommand.h.


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