20#ifndef PADDEDELEMENT_H
21#define PADDEDELEMENT_H
23#include "sequenceelement.h"
25KFORMULA_NAMESPACE_BEGIN
29 enum SizeType { NoSize, RelativeSize, AbsoluteSize, PixelSize, WidthRelativeSize, HeightRelativeSize };
39 ContextStyle::IndexStyle istyle,
40 StyleAttributes& style );
46 virtual TQString getElementName() const { return "mpadded"; }
47 virtual void writeMathMLAttributes( TQDomElement& element ) const ;
49 double readSizeAttribute( const TQString& str, SizeType* st, bool* relative );
50 double getSize( const TQString& str, SizeType* st );
51 double str2size( const TQString& str, SizeType* st, SizeType type );
52 void writeSizeAttribute( TQDomElement element, const TQString& str,
53 SizeType st, bool relative, double s ) const ;
54 luPixel calcSize( const ContextStyle& context, SizeType type,
55 bool relative, double length, luPixel width,
56 luPixel height, luPixel defvalue );
60 SizeType m_lspaceType;
62 SizeType m_heightType;
68 bool m_lspaceRelative;
69 bool m_heightRelative;
Basis of every formula element.
virtual bool readAttributesFromMathMLDom(const TQDomElement &element) Reads our attributes from the MathML element.
double getSize(const TQString &str, SizeType *st) Utility function that sets the size type and returns the size value from a MathML attribute string wi...
Contains all the style information for the formela.
TextStyle Textstyles like in TeX.
The element that contains a number of children.
virtual void calcSizes(const ContextStyle &cstyle, ContextStyle::TextStyle tstyle, ContextStyle::IndexStyle istyle, StyleAttributes &style) Calculates our width and height and our children's parentPosition.
|