kformula/flake
RootElement Class Reference
Implementation of the MathML mroot and msqrt elements. More...
#include <RootElement.h>

Public Member Functions | |
| RootElement (BasicElement *parent=0) | |
| ~RootElement () | |
| 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 | replaceChild (BasicElement *oldelement, BasicElement *newelement) |
| 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 mroot and msqrt elements.
Definition at line 36 of file RootElement.h.
Constructor & Destructor Documentation
| RootElement::RootElement | ( | BasicElement * | parent = 0 |
) |
The standard constructor.
Definition at line 33 of file RootElement.cpp.
| RootElement::~RootElement | ( | ) |
The standard destructor.
Definition at line 39 of file RootElement.cpp.
Member Function Documentation
| const QList< BasicElement * > RootElement::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 88 of file RootElement.cpp.
| ElementType RootElement::elementType | ( | ) | const [virtual] |
inherited from BasicElement
- Returns:
- The element's ElementType
Reimplemented from BasicElement.
Definition at line 158 of file RootElement.cpp.
| int RootElement::endPosition | ( | ) | const [virtual] |
- Returns:
- The element's length
Reimplemented from FixedElement.
Definition at line 140 of file RootElement.cpp.
| void RootElement::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 54 of file RootElement.cpp.
| bool RootElement::moveCursor | ( | FormulaCursor & | newcursor, | |
| FormulaCursor & | oldcursor | |||
| ) | [virtual] |
inherited from BasicElement
Reimplemented from BasicElement.
Definition at line 130 of file RootElement.cpp.
| void RootElement::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 45 of file RootElement.cpp.
| bool RootElement::readMathMLContent | ( | const KoXmlElement & | element | ) | [protected, virtual] |
update the selection in cursor so that a proper range is selected
Read root contents - reimplemented from BasicElement
Reimplemented from BasicElement.
Definition at line 163 of file RootElement.cpp.
| bool RootElement::replaceChild | ( | BasicElement * | oldelement, | |
| BasicElement * | newelement | |||
| ) | [virtual] |
inherited from BasicElement
Definition at line 146 of file RootElement.cpp.
| bool RootElement::setCursorTo | ( | FormulaCursor & | cursor, | |
| QPointF | point | |||
| ) | [virtual] |
inherited from BasicElement
Reimplemented from BasicElement.
Definition at line 118 of file RootElement.cpp.
| void RootElement::writeMathMLContent | ( | KoXmlWriter * | writer | ) | const [protected, virtual] |
Write root contents - reimplemented from BasicElement.
Reimplemented from BasicElement.
Definition at line 191 of file RootElement.cpp.
The documentation for this class was generated from the following files:
