kformula/flake
TableRowElement Class Reference
Representing the MathML mtr element. More...
#include <TableRowElement.h>

Public Member Functions | |
| TableRowElement (BasicElement *parent=0) | |
| ~TableRowElement () | |
| bool | acceptCursor (const FormulaCursor &cursor) |
| const QList< BasicElement * > | childElements () const |
| virtual QLineF | cursorLine (int position) const |
| ElementType | elementType () const |
| virtual int | endPosition () const |
| bool | insertChild (int position, BasicElement *child) |
| void | layout (const AttributeManager *am) |
| virtual bool | moveCursor (FormulaCursor &newcursor, FormulaCursor &oldcursor) |
| void | paint (QPainter &painter, AttributeManager *am) |
| virtual int | positionOfChild (BasicElement *child) const |
| bool | removeChild (BasicElement *child) |
| virtual bool | setCursorTo (FormulaCursor &cursor, QPointF point) |
Protected Member Functions | |
| bool | readMathMLContent (const KoXmlElement &element) |
| void | writeMathMLContent (KoXmlWriter *writer) const |
Detailed Description
Representing the MathML mtr element.
Each row is responsible for painting the rowline which is placed over its content. For layouting each row in a table will query a list of height and width values from the parental TableElement which can determine these without hussel.
Definition at line 40 of file TableRowElement.h.
Constructor & Destructor Documentation
| TableRowElement::TableRowElement | ( | BasicElement * | parent = 0 |
) |
The standard constructor.
Definition at line 34 of file TableRowElement.cpp.
| TableRowElement::~TableRowElement | ( | ) |
The standard destructor.
Definition at line 37 of file TableRowElement.cpp.
Member Function Documentation
| bool TableRowElement::acceptCursor | ( | const FormulaCursor & | cursor | ) | [virtual] |
Implement the cursor behaviour for the element.
- Parameters:
-
direction Indicates whether the cursor moves up, down, right or left
- Returns:
- A this pointer if the element accepts if not the element to asked instead
Reimplemented from BasicElement.
Definition at line 89 of file TableRowElement.cpp.
| const QList< BasicElement * > TableRowElement::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 221 of file TableRowElement.cpp.
| QLineF TableRowElement::cursorLine | ( | int | position | ) | const [virtual] |
inherited from BasicElement
Reimplemented from BasicElement.
Definition at line 108 of file TableRowElement.cpp.
| ElementType TableRowElement::elementType | ( | ) | const [virtual] |
- Returns:
- The element's ElementType
Reimplemented from BasicElement.
Definition at line 275 of file TableRowElement.cpp.
| int TableRowElement::endPosition | ( | ) | const [virtual] |
inherited from BasicElement
Reimplemented from BasicElement.
Definition at line 104 of file TableRowElement.cpp.
| bool TableRowElement::insertChild | ( | int | position, | |
| BasicElement * | child | |||
| ) |
Insert a new child at the cursor position.
- Parameters:
-
cursor The cursor holding the position where to inser child A BasicElement to insert
Definition at line 280 of file TableRowElement.cpp.
| void TableRowElement::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 47 of file TableRowElement.cpp.
| bool TableRowElement::moveCursor | ( | FormulaCursor & | newcursor, | |
| FormulaCursor & | oldcursor | |||
| ) | [virtual] |
inherited from BasicElement
Reimplemented from BasicElement.
Definition at line 166 of file TableRowElement.cpp.
| void TableRowElement::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 40 of file TableRowElement.cpp.
| int TableRowElement::positionOfChild | ( | BasicElement * | child | ) | const [virtual] |
inherited from BasicElement
Definition at line 94 of file TableRowElement.cpp.
| bool TableRowElement::readMathMLContent | ( | const KoXmlElement & | element | ) | [protected, virtual] |
Read all content from the node - reimplemented by child elements.
Reimplemented from BasicElement.
Definition at line 252 of file TableRowElement.cpp.
| bool TableRowElement::removeChild | ( | BasicElement * | child | ) |
Remove a child element.
- Parameters:
-
element The BasicElement to remove
Definition at line 292 of file TableRowElement.cpp.
| bool TableRowElement::setCursorTo | ( | FormulaCursor & | cursor, | |
| QPointF | point | |||
| ) | [virtual] |
inherited from BasicElement
Reimplemented from BasicElement.
Definition at line 126 of file TableRowElement.cpp.
| void TableRowElement::writeMathMLContent | ( | KoXmlWriter * | writer | ) | const [protected, virtual] |
Write all content to the KoXmlWriter - reimplemented by the child elements.
Reimplemented from BasicElement.
Definition at line 269 of file TableRowElement.cpp.
The documentation for this class was generated from the following files:
