21#ifndef KSPREAD_MANIPULATOR_DATA
22#define KSPREAD_MANIPULATOR_DATA
24#include "manipulator.h"
25#include "kspread_global.h"
26#include "kspread_value.h"
44 AbstractDataManipulator ();
45 virtual ~AbstractDataManipulator ();
46 virtual bool process (Element* element);
53 virtual Value newValue (Element *element, int col, int row,
54 bool *parse, FormatType *fmtType) = 0;
56 virtual bool preProcessing ();
57 TQMap<int, TQMap<int, ADMStorage> > oldData;
70 void setParsing ( bool val) { m_parsing = val; };
76 void setFormat (FormatType fmtType) { m_format = fmtType; };
78 virtual Value newValue (Element *element, int col, int row, bool *,
86class ArrayFormulaManipulator : public AbstractDataManipulator {
88 ArrayFormulaManipulator ();
89 virtual ~ArrayFormulaManipulator ();
90 void setText ( const TQString text) { m_text = text; };
92 virtual Value newValue (Element *element, int col, int row, bool *,
94 TQString cellRef, m_text;
104 void setSheet (Sheet *sheet) { m_sheet = sheet; };
DataManipulator - allows setting values on one range.
void setFormat(FormatType fmtType) If set, all cells shall be switched to this format.
void setValue(Value val) set the values for the range.
class ProtectedCheck can be used to check, whether a particular range is protected or not
The one for all class for points and ranges.
Provides a wrapper for cell value.
AbstractDataManipulator - provides storage of old cell data (for undo) and has an abstract method for...
|