lib

EmptyElement Class Reference

#include <textelement.h>

Inheritance diagram for EmptyElement:

BasicElement

List of all members.


Detailed Description

An element that represents an empty box.

Definition at line 225 of file textelement.h.


Public Member Functions

 EmptyElement (BasicElement *parent=0)
 EmptyElement (const EmptyElement &)
virtual EmptyElementclone ()
virtual bool accept (ElementVisitor *visitor)
virtual QChar getCharacter () const
virtual void calcSizes (const ContextStyle &cstyle, ContextStyle::TextStyle tstyle, ContextStyle::IndexStyle istyle, StyleAttributes &style)
virtual void draw (QPainter &painter, const LuPixelRect &r, const ContextStyle &context, ContextStyle::TextStyle tstyle, ContextStyle::IndexStyle istyle, StyleAttributes &style, const LuPixelPoint &parentOrigin)
virtual QString toLatex ()

Protected Member Functions

virtual QString getTagName () const

Member Function Documentation

bool EmptyElement::accept ( ElementVisitor  )  [virtual]

Visit this element.

An implementation of the visitor pattern.

Implements BasicElement.

Definition at line 515 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 243 of file textelement.h.

void EmptyElement::calcSizes ( const ContextStyle cstyle,
ContextStyle::TextStyle  tstyle,
ContextStyle::IndexStyle  istyle,
StyleAttributes &  style 
) [virtual]

Calculates our width and height and our children's parentPosition.

Implements BasicElement.

Definition at line 521 of file textelement.cc.

void EmptyElement::draw ( QPainter &  painter,
const LuPixelRect &  r,
const ContextStyle context,
ContextStyle::TextStyle  tstyle,
ContextStyle::IndexStyle  istyle,
StyleAttributes &  style,
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 540 of file textelement.cc.

QString EmptyElement::toLatex (  )  [virtual]

Returns:
the latex representation of the element and of the element's children

Reimplemented from BasicElement.

Definition at line 562 of file textelement.cc.

virtual QString EmptyElement::getTagName (  )  const [inline, protected, virtual]

Returns:
the tag name of this element type.

Reimplemented from BasicElement.

Definition at line 280 of file textelement.h.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys