lib
EmptyElement Class Reference
#include <textelement.h>
Inheritance diagram for EmptyElement:

Detailed Description
An element that represents an empty box.
Definition at line 209 of file textelement.h.
Public Member Functions | |
EmptyElement (BasicElement *parent=0) | |
EmptyElement (const EmptyElement &) | |
virtual EmptyElement * | clone () |
virtual bool | accept (ElementVisitor *visitor) |
virtual QChar | getCharacter () const |
virtual void | calcSizes (const ContextStyle &context, ContextStyle::TextStyle tstyle, ContextStyle::IndexStyle istyle) |
virtual void | draw (QPainter &painter, const LuPixelRect &r, const ContextStyle &context, ContextStyle::TextStyle tstyle, ContextStyle::IndexStyle istyle, const LuPixelPoint &parentOrigin) |
virtual QString | toLatex () |
Protected Member Functions | |
virtual QString | getTagName () const |
Member Function Documentation
bool EmptyElement::accept | ( | ElementVisitor * | visitor | ) | [virtual] |
Visit this element.
An implementation of the visitor pattern.
Implements BasicElement.
Definition at line 481 of file textelement.cc.
void EmptyElement::calcSizes | ( | const ContextStyle & | context, | |
ContextStyle::TextStyle | tstyle, | |||
ContextStyle::IndexStyle | istyle | |||
) | [virtual] |
Calculates our width and height and our children's parentPosition.
Implements BasicElement.
Definition at line 487 of file textelement.cc.
void EmptyElement::draw | ( | QPainter & | painter, | |
const LuPixelRect & | r, | |||
const ContextStyle & | context, | |||
ContextStyle::TextStyle | tstyle, | |||
ContextStyle::IndexStyle | istyle, | |||
const LuPixelPoint & | parentOrigin | |||
) | [virtual] |
Draws the whole element including its children.
The `parentOrigin' is the point this element's parent starts. We can use our parentPosition to get our own origin then.
Implements BasicElement.
Definition at line 505 of file textelement.cc.
virtual QChar EmptyElement::getCharacter | ( | ) | const [inline, virtual] |
- Returns:
- the character that represents this element. Used for parsing a sequence. Here we use a dummy so an EmptyElement pretends to be a letter.
Reimplemented from BasicElement.
Definition at line 227 of file textelement.h.
virtual QString EmptyElement::getTagName | ( | ) | const [inline, protected, virtual] |
- Returns:
- the tag name of this element type.
Reimplemented from BasicElement.
Definition at line 260 of file textelement.h.
QString EmptyElement::toLatex | ( | ) | [virtual] |
- Returns:
- the latex representation of the element and of the element's children
Reimplemented from BasicElement.
Definition at line 526 of file textelement.cc.
The documentation for this class was generated from the following files: