kspread

KSpread::DataManipulator Class Reference

#include <manipulator_data.h>

Inheritance diagram for KSpread::DataManipulator:

KSpread::AbstractDataManipulator KSpread::Manipulator KSpread::Region List of all members.

Detailed Description

DataManipulator - allows setting values on one range.

If multiple ranges are selected, they all get set to the same values

Definition at line 66 of file manipulator_data.h.


Public Member Functions

 DataManipulator ()
virtual ~DataManipulator ()
void setParsing (bool val)
void setValue (Value val)
void setFormat (FormatType fmtType)

Protected Member Functions

virtual Value newValue (Element *element, int col, int row, bool *, FormatType *)

Protected Attributes

Value data
FormatType m_format
bool m_parsing: 1

Member Function Documentation

Value DataManipulator::newValue ( Element *  element,
int  col,
int  row,
bool *  ,
FormatType  
) [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 120 of file manipulator_data.cc.

void KSpread::DataManipulator::setFormat ( FormatType  fmtType  )  [inline]

If set, all cells shall be switched to this format.

Will do nothing if parsing is true.

Definition at line 76 of file manipulator_data.h.

void KSpread::DataManipulator::setValue ( Value  val  )  [inline]

set the values for the range.

Can be either a single value, or a value array

Definition at line 73 of file manipulator_data.h.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys