20#ifndef KFORMULACOMPATIBILITY_H
21#define KFORMULACOMPATIBILITY_H
26KFORMULA_NAMESPACE_BEGIN
40 TQDomDocument buildDOM(TQString text);
44 TQDomElement readSequence( const TQDomDocument& doc);
45 TQDomElement readMatrix( const TQDomDocument& doc);
47 void appendToSequence(TQDomElement sequence, TQDomElement element, int leftIndexSeen);
49 void appendNextSequence( const TQDomDocument& doc, TQDomElement element);
50 TQDomElement getLastSequence( const TQDomDocument& doc, TQDomElement sequence);
52 TQDomElement findIndexNode( const TQDomDocument& doc, TQDomElement sequence);
54 ushort nextToken() { return formulaString[pos++].unicode(); }
55 ushort lookAhead(uint i) const { return formulaString[pos+i].unicode(); }
56 void pushback() { pos--; }
58 bool hasNext() const { return pos < formulaString.length(); }
59 uint tokenLeft() const { return formulaString.length()-pos; }
64 TQString formulaString;
TQDomDocument buildDOM(TQString text) Builds a kformula DOM from a old formula string.
|