kformula/flake
ElementFactory.hGo to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef ELEMENTFACTORY_H
00023 #define ELEMENTFACTORY_H
00024
00025 #include <QString>
00026 #include "kformula_export.h"
00027
00028 class BasicElement;
00029
00030 enum ElementType {
00031 Basic,
00032 Formula,
00033 Row,
00034 Identifier,
00035 Number,
00036 Operator,
00037 Space,
00038 Fraction,
00039 Table,
00040 TableRow,
00041 TableEntry,
00042 Under,
00043 Over,
00044 UnderOver,
00045 MultiScript,
00046 SupScript,
00047 SubScript,
00048 SubSupScript,
00049 Root,
00050 SquareRoot,
00051 Text,
00052 Style,
00053 Padded,
00054 Error,
00055 Fenced,
00056 Glyph,
00057 String,
00058 Enclose,
00059 Phantom,
00060 Action,
00061 Unknown,
00062 Empty
00063 };
00064
00065
00077 class KOFORMULA_EXPORT ElementFactory {
00078 public:
00080 ElementFactory();
00081
00088 static BasicElement* createElement( const QString& tagName, BasicElement* parent );
00089
00095 static QString elementName( ElementType type );
00096 };
00097
00098 #endif // ELEMENTFACTORY_H
|