kformula/flake

OperatorElement Class Reference

Implementation of the MathML mo element. More...

#include <OperatorElement.h>

Inheritance diagram for OperatorElement:

List of all members.

Public Member Functions

 OperatorElement (BasicElement *parent=0)
ElementType elementType () const
virtual bool insertText (int position, const QString &text)
virtual bool readMathMLContent (const KoXmlElement &parent)
QPainterPath renderForFence (const QString &raw, Form form)
QRectF renderToPath (const QString &raw, QPainterPath &path) const
virtual void stretch ()

Detailed Description

Implementation of the MathML mo element.

The mo element uses the Dictionary class to look up the attributes of the single operator. Processed in the renderToPath method the operator element renders its contents to the path. It also respects the right and left spaces.

Definition at line 34 of file OperatorElement.h.


Constructor & Destructor Documentation

OperatorElement::OperatorElement ( BasicElement parent = 0  ) 

The standart constructor.

Definition at line 26 of file OperatorElement.cpp.


Member Function Documentation

ElementType OperatorElement::elementType (  )  const [virtual]
Returns:
The element's ElementType

Reimplemented from BasicElement.

Definition at line 130 of file OperatorElement.cpp.

bool OperatorElement::insertText ( int  position,
const QString text 
) [virtual]

Inherited from TokenElement.

Reimplemented from TokenElement.

Definition at line 136 of file OperatorElement.cpp.

bool OperatorElement::readMathMLContent ( const KoXmlElement &  parent  )  [virtual]

Inherited from TokenElement.

Reimplemented from TokenElement.

Definition at line 144 of file OperatorElement.cpp.

QPainterPath OperatorElement::renderForFence ( const QString raw,
Form  form 
)

Used by FenceElement to render its open, close fences as well as the separators.

Parameters:
raw The raw string which is supposed to be rendered - might be entity
form Indicates whether raw is interpreted as fence or separator
Returns:
The painter path with the rendered content

Definition at line 29 of file OperatorElement.cpp.

QRectF OperatorElement::renderToPath ( const QString raw,
QPainterPath path 
) const [virtual]

Process raw and render it to path.

Implements TokenElement.

Definition at line 36 of file OperatorElement.cpp.

void OperatorElement::stretch (  )  [virtual]

Reimplemented from BaseElement Sets the height() and baseLine() of the element based on the parent size.

Reimplemented from BasicElement.

Definition at line 56 of file OperatorElement.cpp.


The documentation for this class was generated from the following files: