lib

UnderlineElement Class Reference

#include <bracketelement.h>

Inheritance diagram for UnderlineElement:

SingleContentElement BasicElement List of all members.

Detailed Description

A line below the content.

Definition at line 321 of file bracketelement.h.


Public Member Functions

 UnderlineElement (BasicElement *parent=0)
 ~UnderlineElement ()
 UnderlineElement (const UnderlineElement &)
virtual UnderlineElementclone ()
virtual bool accept (ElementVisitor *visitor)
virtual void entered (SequenceElement *child)
virtual void calcSizes (const ContextStyle &style, ContextStyle::TextStyle tstyle, ContextStyle::IndexStyle istyle)
virtual void draw (QPainter &painter, const LuPixelRect &r, const ContextStyle &style, ContextStyle::TextStyle tstyle, ContextStyle::IndexStyle istyle, const LuPixelPoint &parentOrigin)
virtual QString toLatex ()
virtual QString formulaString ()
virtual void writeMathML (QDomDocument &doc, QDomNode parent, bool oasisFormat=false)

Protected Member Functions

virtual QString getTagName () const

Member Function Documentation

bool UnderlineElement::accept ElementVisitor visitor  )  [virtual]
 

Visit this element.

An implementation of the visitor pattern.

Implements BasicElement.

Definition at line 586 of file bracketelement.cc.

void UnderlineElement::calcSizes const ContextStyle style,
ContextStyle::TextStyle  tstyle,
ContextStyle::IndexStyle  istyle
[virtual]
 

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

Implements BasicElement.

Definition at line 598 of file bracketelement.cc.

void UnderlineElement::draw QPainter &  painter,
const LuPixelRect &  r,
const ContextStyle style,
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 618 of file bracketelement.cc.

void UnderlineElement::entered SequenceElement child  )  [virtual]
 

The cursor has entered one of our child sequences.

This is a good point to tell the user where he is.

Reimplemented from BasicElement.

Definition at line 592 of file bracketelement.cc.

virtual QString UnderlineElement::getTagName  )  const [inline, protected, virtual]
 

Returns the tag name of this element type.

Reimplemented from BasicElement.

Definition at line 375 of file bracketelement.h.

QString UnderlineElement::toLatex  )  [virtual]
 

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

Reimplemented from BasicElement.

Definition at line 648 of file bracketelement.cc.

void UnderlineElement::writeMathML QDomDocument &  doc,
QDomNode  parent,
bool  oasisFormat = false
[virtual]
 

Same as above, just MathML.

Reimplemented from SingleContentElement.

Definition at line 658 of file bracketelement.cc.


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