kspread

KSpread::CSVDataCommand Class Reference

#include <CSVDataCommand.h>

Inheritance diagram for KSpread::CSVDataCommand:

List of all members.

Public Member Functions

 CSVDataCommand ()
virtual ~CSVDataCommand ()
void setColumnDataTypes (const QList< KoCsvImportDialog::DataType > &dataTypes)
void setDecimalSymbol (const QString &symbol)
void setThousandsSeparator (const QString &separator)
void setValue (const Value &value)

Protected Member Functions

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

Detailed Description

Definition at line 30 of file CSVDataCommand.h.


Constructor & Destructor Documentation

CSVDataCommand::CSVDataCommand (  ) 

Constructor.

Definition at line 32 of file CSVDataCommand.cpp.

CSVDataCommand::~CSVDataCommand (  )  [virtual]

Destructor.

Definition at line 37 of file CSVDataCommand.cpp.


Member Function Documentation

Value CSVDataCommand::newValue ( Element element,
int  col,
int  row,
bool *  parse,
Format::Type fmtType 
) [protected, 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.

Implements KSpread::AbstractDataManipulator.

Definition at line 61 of file CSVDataCommand.cpp.

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

Stops the undo recording and stores the old data.

Reimplemented from KSpread::AbstractDataManipulator.

Definition at line 106 of file CSVDataCommand.cpp.

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

Starts the undo recording.

Reimplemented from KSpread::AbstractDataManipulator.

Definition at line 94 of file CSVDataCommand.cpp.

void CSVDataCommand::setColumnDataTypes ( const QList< KoCsvImportDialog::DataType > &  dataTypes  ) 

Definition at line 46 of file CSVDataCommand.cpp.

void CSVDataCommand::setDecimalSymbol ( const QString symbol  ) 

Definition at line 51 of file CSVDataCommand.cpp.

void CSVDataCommand::setThousandsSeparator ( const QString separator  ) 

Definition at line 56 of file CSVDataCommand.cpp.

void CSVDataCommand::setValue ( const Value value  ) 

Definition at line 41 of file CSVDataCommand.cpp.

bool CSVDataCommand::wantChange ( Element element,
int  col,
int  row 
) [protected, virtual]

do we want to change this cell ?

Reimplemented from KSpread::AbstractDataManipulator.

Definition at line 88 of file CSVDataCommand.cpp.


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