lib

GlyphElement Class Reference

Inheritance diagram for GlyphElement:

TextElement BasicElement List of all members.

Detailed Description

Definition at line 27 of file glyphelement.h.


Public Member Functions

 GlyphElement (BasicElement *parent=0)
virtual void calcSizes (const ContextStyle &cstyle, ContextStyle::TextStyle tstyle, ContextStyle::IndexStyle istyle, StyleAttributes &style)
virtual void draw (QPainter &painter, const LuPixelRect &r, const ContextStyle &context, ContextStyle::TextStyle tstyle, ContextStyle::IndexStyle istyle, StyleAttributes &style, const LuPixelPoint &parentOrigin)

Protected Member Functions

virtual bool readAttributesFromMathMLDom (const QDomElement &element)

Member Function Documentation

void GlyphElement::calcSizes ( const ContextStyle cstyle,
ContextStyle::TextStyle  tstyle,
ContextStyle::IndexStyle  istyle,
StyleAttributes style 
) [virtual]

Calculates our width and height and our children's parentPosition.

Reimplemented from TextElement.

Definition at line 74 of file glyphelement.cc.

void GlyphElement::draw ( QPainter &  painter,
const LuPixelRect &  r,
const ContextStyle context,
ContextStyle::TextStyle  tstyle,
ContextStyle::IndexStyle  istyle,
StyleAttributes style,
const LuPixelPoint &  parentOrigin 
) [virtual]

Draws the whole element including its children.

The `parentOrigin' is the point this element's parent starts. We can use our parentPosition to get our own origin then.

Reimplemented from TextElement.

Definition at line 112 of file glyphelement.cc.

bool GlyphElement::readAttributesFromMathMLDom ( const QDomElement &  element  )  [protected, virtual]

Reads our attributes from the MathML element.

Returns false if it failed.

Reimplemented from BasicElement.

Definition at line 31 of file glyphelement.cc.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys