kspread

KSpread::AbstractDataManipulator Class Reference

Provides an abstract method for the actual setting of new values. More...

#include <DataManipulators.h>

Inheritance diagram for KSpread::AbstractDataManipulator:

List of all members.

Public Member Functions

 AbstractDataManipulator (QUndoCommand *parent=0)
virtual ~AbstractDataManipulator ()
virtual bool process (Element *element)

Protected Member Functions

virtual bool mainProcessing ()
virtual Value newValue (Element *element, int col, int row, bool *parse, Format::Type *fmtType)=0
virtual bool postProcessing ()
virtual bool preProcessing ()
virtual bool wantChange (Element *element, int col, int row)

Detailed Description

Provides an abstract method for the actual setting of new values.

Definition at line 38 of file DataManipulators.h.


Constructor & Destructor Documentation

AbstractDataManipulator::AbstractDataManipulator ( QUndoCommand parent = 0  ) 

Definition at line 39 of file DataManipulators.cpp.

AbstractDataManipulator::~AbstractDataManipulator (  )  [virtual]

Definition at line 45 of file DataManipulators.cpp.


Member Function Documentation

bool AbstractDataManipulator::mainProcessing (  )  [protected, virtual]

Processes the region.

Calls process(Element*).

Reimplemented from KSpread::AbstractRegionCommand.

Reimplemented in KSpread::AutoFillCommand, and KSpread::DeleteCommand.

Definition at line 106 of file DataManipulators.cpp.

virtual Value KSpread::AbstractDataManipulator::newValue ( Element element,
int  col,
int  row,
bool *  parse,
Format::Type fmtType 
) [protected, pure virtual]

Return new value.

row/col are relative to sheet, not element. If the function sets *parse to true, the value will be treated as an user-entered string and parsed by Cell.

Implemented in KSpread::CSVDataCommand, KSpread::DataManipulator, KSpread::SeriesManipulator, KSpread::FillManipulator, KSpread::CaseManipulator, KSpread::DeleteCommand, and KSpread::SortManipulator.

bool AbstractDataManipulator::postProcessing (  )  [protected, virtual]

Stops the undo recording and stores the old data.

Reimplemented from KSpread::AbstractRegionCommand.

Reimplemented in KSpread::CSVDataCommand, and KSpread::SortManipulator.

Definition at line 117 of file DataManipulators.cpp.

bool AbstractDataManipulator::preProcessing (  )  [protected, virtual]

Starts the undo recording.

Reimplemented from KSpread::AbstractRegionCommand.

Reimplemented in KSpread::CSVDataCommand, KSpread::DataManipulator, and KSpread::SortManipulator.

Definition at line 97 of file DataManipulators.cpp.

bool AbstractDataManipulator::process ( Element  )  [virtual]
virtual bool KSpread::AbstractDataManipulator::wantChange ( Element element,
int  col,
int  row 
) [inline, protected, virtual]

do we want to change this cell ?

Reimplemented in KSpread::CSVDataCommand, and KSpread::CaseManipulator.

Definition at line 54 of file DataManipulators.h.


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