lib
tokenelement.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef TOKENELEMENT_H
00021 #define TOKENELEMENT_H
00022
00023 #include "formulacursor.h"
00024 #include "tokenstyleelement.h"
00025 #include "sequenceelement.h"
00026 #include "contextstyle.h"
00027
00028 KFORMULA_NAMESPACE_BEGIN
00029
00030 class TokenElement : public TokenStyleElement {
00031 typedef TokenStyleElement inherited;
00032 public:
00033 TokenElement( BasicElement* parent = 0 );
00034
00035 virtual int buildChildrenFromMathMLDom(QPtrList<BasicElement>& list, QDomNode n);
00036
00037 virtual QString getElementName() const { return "mtext"; }
00038 protected:
00039 QString getCharFromEntity( const QString& entity );
00040
00044 virtual bool isTextOnly() const { return m_textOnly; }
00045
00049 virtual luPt getSpaceBefore( const ContextStyle& context,
00050 ContextStyle::TextStyle tstyle,
00051 double factor );
00052 virtual luPt getSpaceAfter( const ContextStyle& context,
00053 ContextStyle::TextStyle tstyle,
00054 double factor );
00055 private:
00056 bool m_textOnly;
00057 };
00058
00059 KFORMULA_NAMESPACE_END
00060
00061 #endif // TOKENELEMENT_H
|