kformula/flake

UnknownElement Class Reference

Implementation of an unknown element. More...

#include <UnknownElement.h>

Inheritance diagram for UnknownElement:

List of all members.

Public Member Functions

 UnknownElement (BasicElement *parent=0)
 ~UnknownElement ()
virtual bool acceptCursor (const FormulaCursor &cursor)
virtual const QList
< BasicElement * > 
childElements () const
ElementType elementType () const
void layout (const AttributeManager *am)
void paint (QPainter &painter, AttributeManager *am)

Protected Member Functions

bool readMathMLContent (const KoXmlElement &element)
void writeMathMLContent (KoXmlWriter *writer) const

Detailed Description

Implementation of an unknown element.

Used when we see a tag that we do not recognise. This element draws nothing, takes up no space, and ignores any calls to insert children etc.

Definition at line 39 of file UnknownElement.h.


Constructor & Destructor Documentation

UnknownElement::UnknownElement ( BasicElement parent = 0  ) 

The standard constructor.

Definition at line 31 of file UnknownElement.cpp.

UnknownElement::~UnknownElement (  ) 

The standard destructor.

Definition at line 35 of file UnknownElement.cpp.


Member Function Documentation

bool UnknownElement::acceptCursor ( const FormulaCursor cursor  )  [virtual]

inherited from BasicElement

Reimplemented from BasicElement.

Definition at line 56 of file UnknownElement.cpp.

const QList< BasicElement * > UnknownElement::childElements (  )  const [virtual]

Obtain a list of all child elements of this element.

Returns:
a QList with pointers to all child elements

Reimplemented from BasicElement.

Definition at line 50 of file UnknownElement.cpp.

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

Reimplemented from BasicElement.

Definition at line 62 of file UnknownElement.cpp.

void UnknownElement::layout ( const AttributeManager am  )  [virtual]

Calculate the size of the element and the positions of its children.

Parameters:
am The AttributeManager providing information about attributes values

Reimplemented from BasicElement.

Definition at line 45 of file UnknownElement.cpp.

void UnknownElement::paint ( QPainter painter,
AttributeManager am 
) [virtual]

Remove a child element.

Parameters:
element The BasicElement to remove Render the element to the given QPainter
painter The QPainter to paint the element to

Reimplemented from BasicElement.

Definition at line 39 of file UnknownElement.cpp.

bool UnknownElement::readMathMLContent ( const KoXmlElement &  element  )  [protected, virtual]

Read root contents - reimplemented from BasicElement.

Reimplemented from BasicElement.

Definition at line 67 of file UnknownElement.cpp.

void UnknownElement::writeMathMLContent ( KoXmlWriter *  writer  )  const [protected, virtual]

Write root contents - reimplemented from BasicElement.

Reimplemented from BasicElement.

Definition at line 74 of file UnknownElement.cpp.


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