lib
ElementCreationStrategy Class Reference
#include <creationstrategy.h>
Inheritance diagram for ElementCreationStrategy:

Detailed Description
An object of this type needs to be known by the SequenceElement.It decides what elements can be constructed.
Definition at line 54 of file creationstrategy.h.
Public Member Functions | |
virtual BasicElement * | createElement (QString type, const QDomElement &element)=0 |
virtual TextElement * | createTextElement (const QChar &ch, bool symbol=false)=0 |
virtual MatrixElement * | createMatrixElement (uint rows, uint columns)=0 |
virtual EmptyElement * | createEmptyElement ()=0 |
virtual NameSequence * | createNameSequence ()=0 |
virtual BracketElement * | createBracketElement (SymbolType lhs, SymbolType rhs)=0 |
virtual OverlineElement * | createOverlineElement ()=0 |
virtual UnderlineElement * | createUnderlineElement ()=0 |
virtual MultilineElement * | createMultilineElement ()=0 |
virtual SpaceElement * | createSpaceElement (SpaceWidth width)=0 |
virtual FractionElement * | createFractionElement ()=0 |
virtual RootElement * | createRootElement ()=0 |
virtual SymbolElement * | createSymbolElement (SymbolType type)=0 |
virtual IndexElement * | createIndexElement ()=0 |
virtual IdentifierElement * | createIdentifierElement ()=0 |
virtual OperatorElement * | createOperatorElement ()=0 |
virtual NumberElement * | createNumberElement ()=0 |
virtual QString | type () const =0 |
Member Function Documentation
virtual TextElement* ElementCreationStrategy::createTextElement | ( | const QChar & | ch, | |
bool | symbol = false | |||
) | [pure virtual] |
there must always be a TextElement, so this can never return 0
Implemented in OrdinaryCreationStrategy, and OasisCreationStrategy.
virtual MatrixElement* ElementCreationStrategy::createMatrixElement | ( | uint | rows, | |
uint | columns | |||
) | [pure virtual] |
when this gets called the user has seen the matrix dialog and expects a matrix!
Implemented in OrdinaryCreationStrategy, and OasisCreationStrategy.
The documentation for this class was generated from the following file: