23#include "kformuladefs.h"
24#include "tokenstyleelement.h"
26KFORMULA_NAMESPACE_BEGIN
29 typedef TokenStyleElement inherited;
32 StyleElement( BasicElement* parent = 0 );
36 virtual bool readAttributesFromMathMLDom(
const TQDomElement &element );
38 virtual void setStyleSize(
const ContextStyle& context, StyleAttributes& style );
39 virtual void setStyleVariant( StyleAttributes& style );
40 virtual void setStyleBackground( StyleAttributes& style );
41 virtual void resetStyle( StyleAttributes& style );
44 virtual TQString getElementName()
const {
return "mstyle"; }
45 virtual void writeMathMLAttributes( TQDomElement& element )
const ;
47 void readSizeAttribute(
const TQString& str, SizeType* st,
double* s );
48 void writeSizeAttribute( TQDomElement element,
const TQString& str, SizeType st,
double s )
const ;
50 double sizeFactor(
const ContextStyle& context, SizeType st,
double length,
double defvalue );
53 SizeType m_scriptMinSizeType;
54 double m_scriptSizeMultiplier;
55 double m_scriptMinSize;
57 SizeType m_veryVeryThinMathSpaceType;
58 double m_veryVeryThinMathSpace;
59 SizeType m_veryThinMathSpaceType;
60 double m_veryThinMathSpace;
61 SizeType m_thinMathSpaceType;
62 double m_thinMathSpace;
63 SizeType m_mediumMathSpaceType;
64 double m_mediumMathSpace;
65 SizeType m_thickMathSpaceType;
66 double m_thickMathSpace;
67 SizeType m_veryThickMathSpaceType;
68 double m_veryThickMathSpace;
69 SizeType m_veryVeryThickMathSpaceType;
70 double m_veryVeryThickMathSpace;
72 bool m_customScriptLevel;
73 bool m_relativeScriptLevel;
74 bool m_customDisplayStyle;
75 bool m_customScriptSizeMultiplier;
76 bool m_customBackground;
This class handles mathematical style attributes common to token elements, as explained in MathML Spe...