lib Library API Documentation

UnderlineElement Class Reference

A line below the content. More...

#include <bracketelement.h>

Inheritance diagram for UnderlineElement:

SingleContentElement BasicElement List of all members.

Public Member Functions

 UnderlineElement (BasicElement *parent=0)
 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)

Protected Member Functions

virtual QString getTagName () const

Detailed Description

A line below the content.

Definition at line 321 of file bracketelement.h.


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.

References accept(), and ElementVisitor::visit().

Referenced by accept().

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.

References entered(), BasicElement::formula(), and FormulaElement::tell().

Referenced by entered().

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.

References SequenceElement::calcSizes(), calcSizes(), BasicElement::getBaseline(), BasicElement::getHeight(), BasicElement::getWidth(), BasicElement::getY(), BasicElement::setX(), and BasicElement::setY().

Referenced by calcSizes().

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.

References SequenceElement::draw(), draw(), and BasicElement::getWidth().

Referenced by draw().

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.

References SequenceElement::toLatex().

void UnderlineElement::writeMathML QDomDocument  doc,
QDomNode  parent
[virtual]
 

Same as above, just MathML.

Reimplemented from SingleContentElement.

Definition at line 658 of file bracketelement.cc.

References writeMathML().

Referenced by writeMathML().

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.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for lib Library Version 1.3.3.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Sep 28 04:04:06 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003