21#ifndef CREATIONSTRATEGY_H
22#define CREATIONSTRATEGY_H
28#include "kformuladefs.h"
30KFORMULA_NAMESPACE_BEGIN
36class IdentifierElement;
58 virtual BasicElement* createElement( TQString type, const TQDomElement& element ) = 0;
68 virtual BracketElement* createBracketElement( SymbolType lhs, SymbolType rhs ) = 0;
72 virtual SpaceElement* createSpaceElement( SpaceWidth width ) = 0;
75 virtual SymbolElement* createSymbolElement( SymbolType type ) = 0;
77 virtual IdentifierElement* createIdentifierElement() = 0;
78 virtual OperatorElement* createOperatorElement() = 0;
79 virtual NumberElement* createNumberElement() = 0;
80 virtual TQString type() const = 0;
89 virtual BasicElement* createElement( TQString type, const TQDomElement& element );
94 virtual BracketElement* createBracketElement( SymbolType lhs, SymbolType rhs );
98 virtual SpaceElement* createSpaceElement( SpaceWidth width );
101 virtual SymbolElement* createSymbolElement( SymbolType type );
104 virtual IdentifierElement* createIdentifierElement();
105 virtual OperatorElement* createOperatorElement();
106 virtual NumberElement* createNumberElement();
107 virtual TQString type() const { return "Ordinary"; }
111KFORMULA_NAMESPACE_END
Basis of every formula element.
A left and/or right bracket around one child.
An object of this type needs to be known by the SequenceElement.
virtual TextElement * createTextElement(const TQChar &ch, bool symbol=false)=0 there must always be a TextElement, so this can never return 0
virtual MatrixElement * createMatrixElement(uint rows, uint columns)=0 when this gets called the user has seen the matrix dialog and expects a matrix!
An element that represents an empty box.
The element with up to four indexes in the four corners.
The sequence thats a name.
The ordinary strategy to be used for plain kformula.
virtual MatrixElement * createMatrixElement(uint rows, uint columns) when this gets called the user has seen the matrix dialog and expects a matrix!
virtual TextElement * createTextElement(const TQChar &ch, bool symbol=false) there must always be a TextElement, so this can never return 0
A line above the content.
A element that represents a space.
A symbol is simply a piece of art.
An element that represents one char.
A line below the content.
|