kformula/flake

FixedElement Class Reference

Abstract Base Class for MathML elements with fixed number of children. More...

#include <FixedElement.h>

Inheritance diagram for FixedElement:

List of all members.

Public Member Functions

 FixedElement (BasicElement *parent=0)
virtual ~FixedElement ()
virtual bool acceptCursor (const FormulaCursor &cursor)
virtual QLineF cursorLine (int position) const
BasicElementelementAfter (int position) const
BasicElementelementBefore (int position) const
virtual BasicElementelementNext (int position) const
virtual int endPosition () const
bool loadElement (KoXmlElement &tmp, RowElement **child)
virtual int positionOfChild (BasicElement *child) const
virtual QPainterPath selectionRegion (const int pos1, const int pos2) const

Protected Member Functions

bool moveHorSituation (FormulaCursor &newcursor, FormulaCursor &oldcursor, int pos1, int pos2)
bool moveSingleSituation (FormulaCursor &newcursor, FormulaCursor &oldcursor, int pos)
bool moveVertSituation (FormulaCursor &newcursor, FormulaCursor &oldcursor, int pos1, int pos2)

Detailed Description

Abstract Base Class for MathML elements with fixed number of children.

Definition at line 36 of file FixedElement.h.


Constructor & Destructor Documentation

FixedElement::FixedElement ( BasicElement parent = 0  ) 

The standard constructor.

Definition at line 28 of file FixedElement.cpp.

FixedElement::~FixedElement (  )  [virtual]

The standard destructor.

Definition at line 32 of file FixedElement.cpp.


Member Function Documentation

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

Implement the cursor behaviour for the element.

Parameters:
cursor the cursor we test
Returns:
true, if the element accepts the cursor

Reimplemented from BasicElement.

Reimplemented in MultiscriptElement.

Definition at line 150 of file FixedElement.cpp.

QLineF FixedElement::cursorLine ( int  position  )  const [virtual]

Return the coordinates of the line, where the cursor should be drawn in coordinates relative to the formula element (or the flake shape).

Parameters:
cursor The FormulaCursor specifying the position
Returns:
the cursor line

Reimplemented from BasicElement.

Definition at line 156 of file FixedElement.cpp.

BasicElement * FixedElement::elementAfter ( int  position  )  const [virtual]
Returns:
the element right after the cursor position position and 0 if there is none

Reimplemented from BasicElement.

Definition at line 37 of file FixedElement.cpp.

BasicElement * FixedElement::elementBefore ( int  position  )  const [virtual]
Returns:
the element right before the cursor position position and 0 if there is none

Reimplemented from BasicElement.

Definition at line 46 of file FixedElement.cpp.

BasicElement * FixedElement::elementNext ( int  position  )  const [virtual]

Definition at line 55 of file FixedElement.cpp.

int FixedElement::endPosition (  )  const [virtual]
Returns:
The last cusor position (number of available cursor positions - 1)

Reimplemented from BasicElement.

Reimplemented in FractionElement, RootElement, SubSupElement, and UnderOverElement.

Definition at line 195 of file FixedElement.cpp.

bool FixedElement::loadElement ( KoXmlElement &  tmp,
RowElement **  child 
)

Definition at line 178 of file FixedElement.cpp.

bool FixedElement::moveHorSituation ( FormulaCursor newcursor,
FormulaCursor oldcursor,
int  pos1,
int  pos2 
) [protected]

Definition at line 69 of file FixedElement.cpp.

bool FixedElement::moveSingleSituation ( FormulaCursor newcursor,
FormulaCursor oldcursor,
int  pos 
) [protected]

Definition at line 125 of file FixedElement.cpp.

bool FixedElement::moveVertSituation ( FormulaCursor newcursor,
FormulaCursor oldcursor,
int  pos1,
int  pos2 
) [protected]

Definition at line 100 of file FixedElement.cpp.

int FixedElement::positionOfChild ( BasicElement child  )  const [virtual]

inherited from BasicElement

Reimplemented in FractionElement.

Definition at line 168 of file FixedElement.cpp.

QPainterPath FixedElement::selectionRegion ( const int  pos1,
const int  pos2 
) const [virtual]

Reimplemented from BasicElement.

Definition at line 61 of file FixedElement.cpp.


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