kformula/flake

KoFormulaShape Class Reference

The flake shape for a formula. More...

#include <KoFormulaShape.h>

Inheritance diagram for KoFormulaShape:

List of all members.

Public Member Functions

 KoFormulaShape ()
 ~KoFormulaShape ()
BasicElementelementAt (const QPointF &p)
FormulaDataformulaData () const
FormulaRendererformulaRenderer () const
bool loadOdf (const KoXmlElement &element, KoShapeLoadingContext &context)
virtual bool loadOdfFrameElement (const KoXmlElement &element, KoShapeLoadingContext &context)
void paint (QPainter &painter, const KoViewConverter &converter)
void resize (const QSizeF &size)
void saveOdf (KoShapeSavingContext &context) const
void updateLayout ()

Detailed Description

The flake shape for a formula.

This class is basically the container for the formula and has also methods to paint, load and save the formula. The formulaRenderer instance that is part of this class serves to paint and layout the formula. The acutal formula data means the tree of elements is accessible through the root element which is constructed and destroyed by this class that holds a pointer to it. Everything that goes into the area of editing the formula data is implemented in KoFormulaTool respectivly FormulaCursor.

Author:
Martin Pfeiffer <hubipete@gmx.net>

Definition at line 43 of file KoFormulaShape.h.


Constructor & Destructor Documentation

KoFormulaShape::KoFormulaShape (  ) 

The basic constructor.

Definition at line 33 of file KoFormulaShape.cpp.

KoFormulaShape::~KoFormulaShape (  ) 

The basic destructor.

Definition at line 41 of file KoFormulaShape.cpp.


Member Function Documentation

BasicElement * KoFormulaShape::elementAt ( const QPointF p  ) 
Returns:
The element at the point p

Definition at line 63 of file KoFormulaShape.cpp.

FormulaData * KoFormulaShape::formulaData (  )  const
Returns:
Get the bounding box of the shape.
the data shown by the shape

Definition at line 71 of file KoFormulaShape.cpp.

FormulaRenderer * KoFormulaShape::formulaRenderer (  )  const
Returns:
the formularenderer used to paint this shape

Definition at line 76 of file KoFormulaShape.cpp.

bool KoFormulaShape::loadOdf ( const KoXmlElement &  element,
KoShapeLoadingContext &  context 
)

Load a shape from odf - reimplemented from KoShape.

Parameters:
context the KoShapeLoadingContext used for loading
element element which represents the shape in odf
Returns:
false if loading failed

Definition at line 81 of file KoFormulaShape.cpp.

bool KoFormulaShape::loadOdfFrameElement ( const KoXmlElement &  element,
KoShapeLoadingContext &  context 
) [virtual]

Definition at line 88 of file KoFormulaShape.cpp.

void KoFormulaShape::paint ( QPainter painter,
const KoViewConverter &  converter 
)

inherited from KoShape

Definition at line 47 of file KoFormulaShape.cpp.

void KoFormulaShape::resize ( const QSizeF size  ) 

Resize the shape.

Definition at line 68 of file KoFormulaShape.cpp.

void KoFormulaShape::saveOdf ( KoShapeSavingContext &  context  )  const

store the shape data as ODF XML.

  • reimplemented from KoShape This is the method that will be called when saving a shape as a described in OpenDocument 9.2 Drawing Shapes.
    See also:
    saveOdfAttributes

Definition at line 104 of file KoFormulaShape.cpp.

void KoFormulaShape::updateLayout (  ) 

Definition at line 56 of file KoFormulaShape.cpp.


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