kformula/flake

SpaceElement Class Reference

Implementation of the MathML mspace element. More...

#include <SpaceElement.h>

Inheritance diagram for SpaceElement:

List of all members.

Public Member Functions

 SpaceElement (BasicElement *parent=0)
QString attributesDefaultValue (const QString &attribute) const
ElementType elementType () const
void layout (const AttributeManager *am)
void paint (QPainter &painter, AttributeManager *am)

Detailed Description

Implementation of the MathML mspace element.

The mspace element is specified in the MathML spec section 3.2.7. As FormulaShape currently does not implement linebreaking the linebreaking attributes of SpaceElement are ignored.

Definition at line 47 of file SpaceElement.h.


Constructor & Destructor Documentation

SpaceElement::SpaceElement ( BasicElement parent = 0  ) 

The standard constructor.

Definition at line 29 of file SpaceElement.cpp.


Member Function Documentation

QString SpaceElement::attributesDefaultValue ( const QString attribute  )  const [virtual]
Returns:
The default value of the attribute for this element

Reimplemented from BasicElement.

Definition at line 46 of file SpaceElement.cpp.

ElementType SpaceElement::elementType (  )  const [virtual]
Returns:
The element's ElementType

Reimplemented from BasicElement.

Definition at line 54 of file SpaceElement.cpp.

void SpaceElement::layout ( const AttributeManager am  )  [virtual]

Calculate the size of the element and the positions of its children.

Parameters:
am The AttributeManager providing information about attributes values

Reimplemented from BasicElement.

Definition at line 38 of file SpaceElement.cpp.

void SpaceElement::paint ( QPainter painter,
AttributeManager am 
) [virtual]

Render the element to the given QPainter.

Parameters:
painter The QPainter to paint the element to

Reimplemented from BasicElement.

Definition at line 32 of file SpaceElement.cpp.


The documentation for this class was generated from the following files: