kformula/flake

UnderOverElement Class Reference

Implementation of the MathML mover, munder and moverunder elements. More...

#include <UnderOverElement.h>

Inheritance diagram for UnderOverElement:

List of all members.

Public Member Functions

 UnderOverElement (BasicElement *parent=0, ElementType elementType=UnderOver)
 ~UnderOverElement ()
QString attributesDefaultValue (const QString &attribute) const
const QList< BasicElement * > childElements () const
ElementType elementType () const
virtual int endPosition () const
void layout (const AttributeManager *am)
virtual bool moveCursor (FormulaCursor &newcursor, FormulaCursor &oldcursor)
void paint (QPainter &painter, AttributeManager *am)
virtual bool setCursorTo (FormulaCursor &cursor, QPointF point)

Protected Member Functions

bool readMathMLContent (const KoXmlElement &element)
void writeMathMLContent (KoXmlWriter *writer) const

Detailed Description

Implementation of the MathML mover, munder and moverunder elements.

Definition at line 32 of file UnderOverElement.h.


Constructor & Destructor Documentation

UnderOverElement::UnderOverElement ( BasicElement parent = 0,
ElementType  elementType = UnderOver 
)

The standard constructor.

Definition at line 28 of file UnderOverElement.cpp.

UnderOverElement::~UnderOverElement (  ) 

The standard destructor.

Definition at line 44 of file UnderOverElement.cpp.


Member Function Documentation

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

Reimplemented from BasicElement.

Definition at line 122 of file UnderOverElement.cpp.

const QList< BasicElement * > UnderOverElement::childElements (  )  const [virtual]

Obtain a list of all child elements of this element.

Returns:
a QList with pointers to all child elements

Reimplemented from BasicElement.

Definition at line 55 of file UnderOverElement.cpp.

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

Reimplemented from BasicElement.

Definition at line 165 of file UnderOverElement.cpp.

int UnderOverElement::endPosition (  )  const [virtual]
Returns:
The last cusor position (number of available cursor positions - 1)

Reimplemented from FixedElement.

Definition at line 199 of file UnderOverElement.cpp.

void UnderOverElement::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 75 of file UnderOverElement.cpp.

bool UnderOverElement::moveCursor ( FormulaCursor newcursor,
FormulaCursor oldcursor 
) [virtual]

Move the cursor in the direction specified in cursor.

Parameters:
newcursor the cursor we move around
oldcursor the former cursor position
Returns:
true, if we moved the cursor

Reimplemented from BasicElement.

Definition at line 170 of file UnderOverElement.cpp.

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

Render the element to the given QPainter.

Parameters:
painter The QPainter to paint the element to
am AttributeManager containing style info

Reimplemented from BasicElement.

Definition at line 68 of file UnderOverElement.cpp.

bool UnderOverElement::readMathMLContent ( const KoXmlElement &  element  )  [protected, virtual]

Read all content from the node - reimplemented by child elements.

Reimplemented from BasicElement.

Definition at line 130 of file UnderOverElement.cpp.

bool UnderOverElement::setCursorTo ( FormulaCursor cursor,
QPointF  point 
) [virtual]

place the cursor at the the given point the point should be placed a the position in the element (or it's child) that is closest to the point in particular the point doesn't have to be within boundingBox()

Parameters:
cursor The FormulaCursor to modify
point The point in coordinates relative to the elements local coordinate system
Returns:
true, iff the cursor could be placed

Reimplemented from BasicElement.

Definition at line 204 of file UnderOverElement.cpp.

void UnderOverElement::writeMathMLContent ( KoXmlWriter *  writer  )  const [protected, virtual]

Write all content to the KoXmlWriter - reimplemented by the child elements.

Reimplemented from BasicElement.

Definition at line 154 of file UnderOverElement.cpp.


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