kformula/flake
TableElement Class Reference
A matrix or table element in a formula. More...
#include <TableElement.h>

Public Member Functions | |
| TableElement (BasicElement *parent=0) | |
| ~TableElement () | |
| virtual bool | acceptCursor (const FormulaCursor &cursor) |
| QString | attributesDefaultValue (const QString &attribute) const |
| const QList< BasicElement * > | childElements () const |
| double | columnWidth (int column) |
| virtual QLineF | cursorLine (int position) const |
| virtual ElementType | elementType () const |
| virtual int | endPosition () const |
| virtual 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) |
| double | rowHeight (TableRowElement *row) |
| virtual QPainterPath | selectionRegion (const int pos1, const int pos2) const |
| virtual bool | setCursorTo (FormulaCursor &cursor, QPointF point) |
Protected Member Functions | |
| bool | readMathMLContent (const KoXmlElement &element) |
| void | writeMathMLContent (KoXmlWriter *writer) const |
Detailed Description
A matrix or table element in a formula.
A table element contains a list of rows which are of class TableRowElement. These rows contain single entries which are of class TableEntryElement. The TableElement takes care that the different TableRowElements are informed how to lay out their children correctly as they need to be synced.
Definition at line 40 of file TableElement.h.
Constructor & Destructor Documentation
| TableElement::TableElement | ( | BasicElement * | parent = 0 |
) |
The standard constructor.
Definition at line 32 of file TableElement.cpp.
| TableElement::~TableElement | ( | ) |
The standard destructor.
Definition at line 37 of file TableElement.cpp.
Member Function Documentation
| bool TableElement::acceptCursor | ( | const FormulaCursor & | cursor | ) | [virtual] |
inherited from BasicElement
Reimplemented from BasicElement.
Definition at line 261 of file TableElement.cpp.
- Returns:
- The default value of the attribute for this element
Reimplemented from BasicElement.
Definition at line 281 of file TableElement.cpp.
| const QList< BasicElement * > TableElement::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 153 of file TableElement.cpp.
| double TableElement::columnWidth | ( | int | column | ) |
- Returns:
- The width of the column with the index
column
Definition at line 137 of file TableElement.cpp.
| QLineF TableElement::cursorLine | ( | int | position | ) | const [virtual] |
inherited from BasicElement
Reimplemented from BasicElement.
Definition at line 173 of file TableElement.cpp.
| ElementType TableElement::elementType | ( | ) | const [virtual] |
- Returns:
- The element's ElementType
Reimplemented from BasicElement.
Definition at line 96 of file TableElement.cpp.
| int TableElement::endPosition | ( | ) | const [virtual] |
inherited from BasicElement
Reimplemented from BasicElement.
Definition at line 251 of file TableElement.cpp.
| bool TableElement::insertChild | ( | int | position, | |
| BasicElement * | child | |||
| ) | [virtual] |
Definition at line 341 of file TableElement.cpp.
| void TableElement::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 69 of file TableElement.cpp.
| bool TableElement::moveCursor | ( | FormulaCursor & | newcursor, | |
| FormulaCursor & | oldcursor | |||
| ) | [virtual] |
inherited from BasicElement
Reimplemented from BasicElement.
Definition at line 202 of file TableElement.cpp.
| void TableElement::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 TableElement.cpp.
| int TableElement::positionOfChild | ( | BasicElement * | child | ) | const [virtual] |
inherited from BasicElement
Definition at line 161 of file TableElement.cpp.
| bool TableElement::readMathMLContent | ( | const KoXmlElement & | element | ) | [protected, virtual] |
Read all content from the node - reimplemented by child elements.
Reimplemented from BasicElement.
Definition at line 317 of file TableElement.cpp.
| bool TableElement::removeChild | ( | BasicElement * | child | ) |
Definition at line 358 of file TableElement.cpp.
| double TableElement::rowHeight | ( | TableRowElement * | row | ) |
- Returns:
- The height of the
TableRowElement
Definition at line 145 of file TableElement.cpp.
| QPainterPath TableElement::selectionRegion | ( | const int | pos1, | |
| const int | pos2 | |||
| ) | const [virtual] |
inherited from BasicElement
Reimplemented from BasicElement.
Definition at line 268 of file TableElement.cpp.
| bool TableElement::setCursorTo | ( | FormulaCursor & | cursor, | |
| QPointF | point | |||
| ) | [virtual] |
inherited from BasicElement
Reimplemented from BasicElement.
Definition at line 187 of file TableElement.cpp.
| void TableElement::writeMathMLContent | ( | KoXmlWriter * | writer | ) | const [protected, virtual] |
Write all content to the KoXmlWriter - reimplemented by the child elements.
Reimplemented from BasicElement.
Definition at line 334 of file TableElement.cpp.
The documentation for this class was generated from the following files:
