EmptyElement Class Reference
An element that represents an empty box. More...
#include <textelement.h>
Inheritance diagram for EmptyElement:

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 |
Detailed Description
An element that represents an empty box.
Definition at line 209 of file textelement.h.
Member Function Documentation
|
Visit this element. An implementation of the visitor pattern. Implements BasicElement. Definition at line 481 of file textelement.cc. References ElementVisitor::visit(). |
|
Reimplemented from BasicElement. Definition at line 227 of file textelement.h. |
|
Calculates our width and height and our children's parentPosition.
Implements BasicElement. Definition at line 487 of file textelement.cc. References ContextStyle::getAdjustedSize(), ContextStyle::getDefaultFont(), KoTextZoomHandler::layoutUnitPtToPt(), and KoTextZoomHandler::ptToLayoutUnitPt(). |
|
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. References ContextStyle::edit(), ContextStyle::getHelpColor(), KoZoomHandler::layoutUnitToPixelX(), and KoZoomHandler::layoutUnitToPixelY(). |
|
Reimplemented from BasicElement. Definition at line 526 of file textelement.cc. |
|
Reimplemented from BasicElement. Definition at line 260 of file textelement.h. |
The documentation for this class was generated from the following files: