formula.h
For every cell in the spread sheet there is a Cell object.
Definition kspread_cell.h:138
void setExpression(const TQString &expr)
Sets the expression for this formula.
Definition formula.cpp:407
bool isValid() const
Returns true if the specified expression is valid, i.e.
Definition formula.cpp:424
Tokens scan(const TQString &expr, TDELocale *locale=0) const
Given an expression, this function separates it into tokens.
Definition formula.cpp:464
bool isNamedArea(const TQString &expr) const
helper function: return true for valid named area
Definition formula.cpp:1146
double asFloat() const
Returns floating-point value for a floating-point token.
Definition formula.cpp:249
bool isNumber() const
Returns true if token is either integer or floating-point token.
Definition formula.h:125
Token(Type type=Unknown, const TQString &text=TQString(), int pos=-1)
Creates a token.
Definition formula.cpp:212
bool isIdentifier(TQChar ch)
helper function: return true for valid identifier character
Definition formula.cpp:356
Token::Op matchOperator(const TQString &text)
helper function: return operator of given token text e.g.
Definition formula.cpp:130
TQTextStream & operator<<(TQTextStream &ts, Formula formula)
Dumps the formula, should be used only to assist debugging.
