lib Library API Documentation

OverlineElement Class Reference

A line above the content. More...

#include <bracketelement.h>

Inheritance diagram for OverlineElement:

Inheritance graph
[legend]
Collaboration diagram for OverlineElement:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 OverlineElement (BasicElement *parent=0)
 OverlineElement (const OverlineElement &)
virtual OverlineElementclone ()
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 above the content.

Definition at line 257 of file bracketelement.h.


Member Function Documentation

bool OverlineElement::accept ElementVisitor visitor  )  [virtual]
 

Visit this element.

An implementation of the visitor pattern.

Implements BasicElement.

Definition at line 488 of file bracketelement.cc.

References ElementVisitor::visit().

void OverlineElement::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 494 of file bracketelement.cc.

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

void OverlineElement::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 500 of file bracketelement.cc.

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

void OverlineElement::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 518 of file bracketelement.cc.

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

QString OverlineElement::toLatex  )  [virtual]
 

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

Reimplemented from BasicElement.

Definition at line 548 of file bracketelement.cc.

References SequenceElement::toLatex().

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

Same as above, just MathML.

Reimplemented from SingleContentElement.

Definition at line 558 of file bracketelement.cc.

References SingleContentElement::writeMathML().

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

Returns the tag name of this element type.

Reimplemented from BasicElement.

Definition at line 312 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.5.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Mar 11 11:50:34 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003