lib

#include <indexelement.h>

Inheritance diagram for IndexElement:
BasicElement

Public Member Functions

 IndexElement (BasicElement *parent=0)
 IndexElement (const IndexElement &)
virtual IndexElement * clone ()
virtual bool accept (ElementVisitor *visitor)
virtual TQChar getCharacter () const
virtual void entered (SequenceElement *child)
virtual BasicElement * goToPos (FormulaCursor *, bool &handled, const LuPixelPoint &point, const LuPixelPoint &parentOrigin)
virtual void calcSizes (const ContextStyle &cstyle, ContextStyle::TextStyle tstyle, ContextStyle::IndexStyle istyle, StyleAttributes &style)
virtual void dispatchFontCommand (FontCommand *cmd)
virtual SequenceElement * getMainChild ()
SequenceElement * getExponent ()
virtual void insert (FormulaCursor *, TQPtrList< BasicElement > &, Direction)
virtual void remove (FormulaCursor *, TQPtrList< BasicElement > &, Direction)
virtual void normalize (FormulaCursor *, Direction)
virtual BasicElement * getChild (FormulaCursor *, Direction=beforeCursor)
virtual void selectChild (FormulaCursor *cursor, BasicElement *child)
virtual bool isSenseless ()
bool hasUpperLeft () const
bool hasUpperMiddle () const
bool hasUpperRight () const
bool hasLowerLeft () const
bool hasLowerMiddle () const
bool hasLowerRight () const
void setToUpperLeft (FormulaCursor *cursor)
void setToUpperMiddle (FormulaCursor *cursor)
void setToUpperRight (FormulaCursor *cursor)
void setToLowerLeft (FormulaCursor *cursor)
void setToLowerMiddle (FormulaCursor *cursor)
void setToLowerRight (FormulaCursor *cursor)
void moveToUpperLeft (FormulaCursor *cursor, Direction direction)
void moveToUpperMiddle (FormulaCursor *cursor, Direction direction)
void moveToUpperRight (FormulaCursor *cursor, Direction direction)
void moveToLowerLeft (FormulaCursor *cursor, Direction direction)
void moveToLowerMiddle (FormulaCursor *cursor, Direction direction)
void moveToLowerRight (FormulaCursor *cursor, Direction direction)
ElementIndexPtr getUpperLeft ()
ElementIndexPtr getLowerLeft ()
ElementIndexPtr getUpperMiddle ()
ElementIndexPtr getLowerMiddle ()
ElementIndexPtr getUpperRight ()
ElementIndexPtr getLowerRight ()
ElementIndexPtr getIndex (int position)
virtual TQString toLatex ()
virtual TQString formulaString ()
Public Member Functions inherited from BasicElement
 BasicElement (BasicElement *parent=0)
 BasicElement (const BasicElement &)
virtual bool readOnly (const BasicElement *child) const
virtual FormulaElement * formula ()
virtual const FormulaElement * formula () const
virtual TokenType getTokenType () const
virtual bool isInvisible () const
LuPixelPoint widgetPos ()
virtual void moveHome (FormulaCursor *)
virtual void moveEnd (FormulaCursor *)
virtual void goInside (FormulaCursor *cursor)
virtual void childWillVanish (FormulaCursor *, BasicElement *)
virtual void registerTab (BasicElement *)
virtual KCommand * buildCommand (Container *, Request *)
virtual KCommand * input (Container *, TQKeyEvent *)
const BasicElement * getParent () const
BasicElement * getParent ()
void setParent (BasicElement *p)
luPixel getX () const
luPixel getY () const
void setX (luPixel x)
void setY (luPixel y)
luPixel getWidth () const
luPixel getHeight () const
void setWidth (luPixel width)
void setHeight (luPixel height)
luPixel getBaseline () const
void setBaseline (luPixel line)
luPixel axis (const ContextStyle &style, ContextStyle::TextStyle tstyle, double factor) const
TQDomElement getElementDom (TQDomDocument &doc)
virtual void writeMathML (TQDomDocument &doc, TQDomNode &parent, bool oasisFormat=false) const
bool buildFromDom (TQDomElement element)
int buildFromMathMLDom (TQDomElement element)
ElementType * getElementType () const
virtual void setElementType (ElementType *t)
virtual void setStyle (StyleElement *)

Protected Member Functions

virtual TQString getTagName () const
virtual void writeDom (TQDomElement element)
virtual TQString getElementName () const
virtual void writeMathMLAttributes (TQDomElement &element) const
virtual void writeMathMLContent (TQDomDocument &doc, TQDomElement &element, bool oasisFormat) const
virtual bool readAttributesFromDom (TQDomElement element)
virtual bool readContentFromDom (TQDomNode &node)
virtual bool readAttributesFromMathMLDom (const TQDomElement &element)
virtual int readContentFromMathMLDom (TQDomNode &node)
Protected Member Functions inherited from BasicElement
bool buildChild (SequenceElement *child, TQDomNode node, TQString name)
double getSize (const TQString &str, SizeType *st)
SizeType getSpace (const TQString &str)

Additional Inherited Members

Static Public Member Functions inherited from BasicElement
static int getEvilDestructionCount ()

Detailed Description

The element with up to four indexes in the four corners.

Definition at line 34 of file indexelement.h.

Constructor & Destructor Documentation

◆ IndexElement() [1/2]

IndexElement::IndexElement ( BasicElement * parent = 0)

Definition at line 93 of file indexelement.cpp.

◆ ~IndexElement()

IndexElement::~IndexElement ( )

Definition at line 110 of file indexelement.cpp.

◆ IndexElement() [2/2]

IndexElement::IndexElement ( const IndexElement & other)

Definition at line 122 of file indexelement.cpp.

Member Function Documentation

◆ accept()

bool IndexElement::accept ( ElementVisitor * )
virtual

Visit this element.

An implementation of the visitor pattern.

Implements BasicElement.

Definition at line 181 of file indexelement.cpp.

◆ calcSizes()

void IndexElement::calcSizes ( const ContextStyle & cstyle,
ContextStyle::TextStyle tstyle,
ContextStyle::IndexStyle istyle,
StyleAttributes & style )
virtual

Calculates our width and height and our children's parentPosition.

Implements BasicElement.

Definition at line 346 of file indexelement.cpp.

◆ clone()

virtual IndexElement * IndexElement::clone ( )
inlinevirtual

Implements BasicElement.

Definition at line 43 of file indexelement.h.

◆ dispatchFontCommand()

virtual void IndexElement::dispatchFontCommand ( FontCommand * cmd)
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. */ virtual void draw( TQPainter& painter, const LuPixelRect& r, const ContextStyle& context, ContextStyle::TextStyle tstyle, ContextStyle::IndexStyle istyle, StyleAttributes& style, const LuPixelPoint& parentOrigin );

/** Dispatch this FontCommand to all our TextElement children.

Reimplemented from BasicElement.

◆ entered()

void IndexElement::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 215 of file indexelement.cpp.

◆ formulaString()

TQString IndexElement::formulaString ( )
virtual

Reimplemented from BasicElement.

Definition at line 1625 of file indexelement.cpp.

◆ getCharacter()

TQChar IndexElement::getCharacter ( ) const
virtual
Returns
the character that represents this element. Used for parsing a sequence. This is guaranteed to be TQChar::null for all non-text elements.

Reimplemented from BasicElement.

Definition at line 187 of file indexelement.cpp.

◆ getChild()

BasicElement * IndexElement::getChild ( FormulaCursor * cursor,
Direction = beforeCursor )
virtual

Returns the child at the cursor.

Reimplemented from BasicElement.

Definition at line 1048 of file indexelement.cpp.

◆ getElementName()

TQString IndexElement::getElementName ( ) const
protectedvirtual

Reimplemented from BasicElement.

Definition at line 1637 of file indexelement.cpp.

◆ getExponent()

SequenceElement * IndexElement::getExponent ( )
inline

Definition at line 159 of file indexelement.h.

◆ getIndex()

ElementIndexPtr IndexElement::getIndex ( int position)

Returns the index at the position.

Defaults to upperRight.

Definition at line 1562 of file indexelement.cpp.

◆ getLowerLeft()

ElementIndexPtr IndexElement::getLowerLeft ( )
inline

Definition at line 249 of file indexelement.h.

◆ getLowerMiddle()

ElementIndexPtr IndexElement::getLowerMiddle ( )
inline

Definition at line 251 of file indexelement.h.

◆ getLowerRight()

ElementIndexPtr IndexElement::getLowerRight ( )
inline

Definition at line 253 of file indexelement.h.

◆ getMainChild()

virtual SequenceElement * IndexElement::getMainChild ( )
inlinevirtual

Enters this element while moving to the left starting inside the element `from'.

Searches for a cursor position inside this element or to the left of it. */ virtual void moveLeft(FormulaCursor* cursor, BasicElement* from);

/** Enters this element while moving to the right starting inside the element `from'. Searches for a cursor position inside this element or to the right of it. */ virtual void moveRight(FormulaCursor* cursor, BasicElement* from);

/** Enters this element while moving up starting inside the element `from'. Searches for a cursor position inside this element or above it. */ virtual void moveUp(FormulaCursor* cursor, BasicElement* from);

/** Enters this element while moving down starting inside the element `from'. Searches for a cursor position inside this element or below it. */ virtual void moveDown(FormulaCursor* cursor, BasicElement* from);

children

/** Removes the child. If this was the main child this element might request its own removal. The cursor is the one that caused the removal. It has to be moved to the place any user expects the cursor after that particular element has been removed.

Reimplemented from BasicElement.

Definition at line 156 of file indexelement.h.

◆ getTagName()

virtual TQString IndexElement::getTagName ( ) const
inlineprotectedvirtual

Returns the tag name of this element type.

Reimplemented from BasicElement.

Definition at line 276 of file indexelement.h.

◆ getUpperLeft()

ElementIndexPtr IndexElement::getUpperLeft ( )
inline

Definition at line 248 of file indexelement.h.

◆ getUpperMiddle()

ElementIndexPtr IndexElement::getUpperMiddle ( )
inline

Definition at line 250 of file indexelement.h.

◆ getUpperRight()

ElementIndexPtr IndexElement::getUpperRight ( )
inline

Definition at line 252 of file indexelement.h.

◆ goToPos()

BasicElement * IndexElement::goToPos ( FormulaCursor * cursor,
bool & handled,
const LuPixelPoint & point,
const LuPixelPoint & parentOrigin )
virtual

Sets the cursor and returns the element the point is in.

Returns the element the point is in.

The handled flag shows whether the cursor has been set. This is needed because only the innermost matching element is allowed to set the cursor.

Reimplemented from BasicElement.

Definition at line 229 of file indexelement.cpp.

◆ hasLowerLeft()

bool IndexElement::hasLowerLeft ( ) const
inline

Definition at line 224 of file indexelement.h.

◆ hasLowerMiddle()

bool IndexElement::hasLowerMiddle ( ) const
inline

Definition at line 225 of file indexelement.h.

◆ hasLowerRight()

bool IndexElement::hasLowerRight ( ) const
inline

Definition at line 226 of file indexelement.h.

◆ hasUpperLeft()

bool IndexElement::hasUpperLeft ( ) const
inline

Definition at line 221 of file indexelement.h.

◆ hasUpperMiddle()

bool IndexElement::hasUpperMiddle ( ) const
inline

Definition at line 222 of file indexelement.h.

◆ hasUpperRight()

bool IndexElement::hasUpperRight ( ) const
inline

Definition at line 223 of file indexelement.h.

◆ insert()

void IndexElement::insert ( FormulaCursor * cursor,
TQPtrList< BasicElement > & newChildren,
Direction direction )
virtual

Inserts all new children at the cursor position.

Draws the whole element including its children.

Places the cursor according to the direction.

You only can insert one index at a time. So the list must contain exactly on SequenceElement. And the index you want to insert must not exist already.

The list will be emptied but stays the property of the caller.

The `parentOrigin' is the point this element's parent starts. We can use our parentPosition to get our own origin then. */ void IndexElement::draw( TQPainter& painter, const LuPixelRect& r, const ContextStyle& context, ContextStyle::TextStyle tstyle, ContextStyle::IndexStyle istyle, StyleAttributes& style, const LuPixelPoint& parentOrigin ) { LuPixelPoint myPos( parentOrigin.x()+getX(), parentOrigin.y()+getY() ); if ( !LuPixelRect( myPos.x(), myPos.y(), getWidth(), getHeight() ).intersects( r ) ) return;

ContextStyle::TextStyle i_tstyle = context.convertTextStyleIndex(tstyle); ContextStyle::IndexStyle u_istyle = context.convertIndexStyleUpper( istyle ); ContextStyle::IndexStyle l_istyle = context.convertIndexStyleLower( istyle );

content->draw(painter, r, context, tstyle, istyle, style, myPos); if (hasUpperLeft()) { upperLeft->draw(painter, r, context, i_tstyle, u_istyle, style, myPos); } if (hasUpperMiddle()) { upperMiddle->draw(painter, r, context, i_tstyle, u_istyle, style, myPos); } if (hasUpperRight()) { upperRight->draw(painter, r, context, i_tstyle, u_istyle, style, myPos); } if (hasLowerLeft()) { lowerLeft->draw(painter, r, context, i_tstyle, l_istyle, style, myPos); } if (hasLowerMiddle()) { lowerMiddle->draw(painter, r, context, i_tstyle, l_istyle, style, myPos); } if (hasLowerRight()) { lowerRight->draw(painter, r, context, i_tstyle, l_istyle, style, myPos); }

Debug painter.setBrush(TQt::NoBrush); painter.setPen(TQt::red); painter.drawRect(myPos.x(), myPos.y(), getWidth(), getHeight()); painter.drawLine(myPos.x(), myPos.y()+getMidline(), myPos.x()+getWidth(), myPos.y()+getMidline()); }

void IndexElement::dispatchFontCommand( FontCommand* cmd ) { content->dispatchFontCommand( cmd ); if (hasUpperLeft()) { upperLeft->dispatchFontCommand( cmd ); } if (hasUpperMiddle()) { upperMiddle->dispatchFontCommand( cmd ); } if (hasUpperRight()) { upperRight->dispatchFontCommand( cmd ); } if (hasLowerLeft()) { lowerLeft->dispatchFontCommand( cmd ); } if (hasLowerMiddle()) { lowerMiddle->dispatchFontCommand( cmd ); } if (hasLowerRight()) { lowerRight->dispatchFontCommand( cmd ); } }

navigation

The elements are responsible to handle cursor movement themselves. To do this they need to know the direction the cursor moves and the element it comes from.

The cursor might be in normal or in selection mode.

int IndexElement::getFromPos(BasicElement* from) { if (from == lowerRight) { return lowerRightPos; } else if (from == upperRight) { return upperRightPos; } else if (from == lowerMiddle) { return lowerMiddlePos; } else if (from == content) { return contentPos; } else if (from == upperMiddle) { return upperMiddlePos; } else if (from == lowerLeft) { return lowerLeftPos; } else if (from == upperLeft) { return upperLeftPos; } return parentPos; }

/** Enters this element while moving to the left starting inside the element `from'. Searches for a cursor position inside this element or to the left of it. */ void IndexElement::moveLeft(FormulaCursor* cursor, BasicElement* from) { if (cursor->isSelectionMode()) { getParent()->moveLeft(cursor, this); } else { bool linear = cursor->getLinearMovement(); int fromPos = getFromPos(from); if (!linear) { if ((fromPos == lowerRightPos) && hasLowerMiddle()) { lowerMiddle->moveLeft(cursor, this); return; } else if ((fromPos == upperRightPos) && hasUpperMiddle()) { upperMiddle->moveLeft(cursor, this); return; } else if ((fromPos == lowerMiddlePos) && hasLowerLeft()) { lowerLeft->moveLeft(cursor, this); return; } else if ((fromPos == upperMiddlePos) && hasUpperLeft()) { upperLeft->moveLeft(cursor, this); return; } } switch (fromPos) { case parentPos: if (hasLowerRight() && linear) { lowerRight->moveLeft(cursor, this); break; } case lowerRightPos: if (hasUpperRight() && linear) { upperRight->moveLeft(cursor, this); break; } case upperRightPos: if (hasLowerMiddle() && linear) { lowerMiddle->moveLeft(cursor, this); break; } case lowerMiddlePos: content->moveLeft(cursor, this); break; case contentPos: if (hasUpperMiddle() && linear) { upperMiddle->moveLeft(cursor, this); break; } case upperMiddlePos: if (hasLowerLeft() && linear) { lowerLeft->moveLeft(cursor, this); break; } case lowerLeftPos: if (hasUpperLeft() && linear) { upperLeft->moveLeft(cursor, this); break; } case upperLeftPos: getParent()->moveLeft(cursor, this); } } }

/** Enters this element while moving to the right starting inside the element `from'. Searches for a cursor position inside this element or to the right of it. */ void IndexElement::moveRight(FormulaCursor* cursor, BasicElement* from) { if (cursor->isSelectionMode()) { getParent()->moveRight(cursor, this); } else { bool linear = cursor->getLinearMovement(); int fromPos = getFromPos(from); if (!linear) { if ((fromPos == lowerLeftPos) && hasLowerMiddle()) { lowerMiddle->moveRight(cursor, this); return; } else if ((fromPos == upperLeftPos) && hasUpperMiddle()) { upperMiddle->moveRight(cursor, this); return; } else if ((fromPos == lowerMiddlePos) && hasLowerRight()) { lowerRight->moveRight(cursor, this); return; } else if ((fromPos == upperMiddlePos) && hasUpperRight()) { upperRight->moveRight(cursor, this); return; } } switch (fromPos) { case parentPos: if (hasUpperLeft() && linear) { upperLeft->moveRight(cursor, this); break; } case upperLeftPos: if (hasLowerLeft() && linear) { lowerLeft->moveRight(cursor, this); break; } case lowerLeftPos: if (hasUpperMiddle() && linear) { upperMiddle->moveRight(cursor, this); break; } case upperMiddlePos: content->moveRight(cursor, this); break; case contentPos: if (hasLowerMiddle() && linear) { lowerMiddle->moveRight(cursor, this); break; } case lowerMiddlePos: if (hasUpperRight() && linear) { upperRight->moveRight(cursor, this); break; } case upperRightPos: if (hasLowerRight() && linear) { lowerRight->moveRight(cursor, this); break; } case lowerRightPos: getParent()->moveRight(cursor, this); } } }

/** Enters this element while moving up starting inside the element `from'. Searches for a cursor position inside this element or above it. */ void IndexElement::moveUp(FormulaCursor* cursor, BasicElement* from) { if (cursor->isSelectionMode()) { getParent()->moveUp(cursor, this); } else { if (from == content) { if ((cursor->getPos() == 0) && (cursor->getElement() == from)) { if (hasUpperLeft()) { upperLeft->moveLeft(cursor, this); return; } else if (hasUpperMiddle()) { upperMiddle->moveRight(cursor, this); return; } } if (hasUpperRight()) { upperRight->moveRight(cursor, this); } else if (hasUpperMiddle()) { upperMiddle->moveLeft(cursor, this); } else if (hasUpperLeft()) { upperLeft->moveLeft(cursor, this); } else { getParent()->moveUp(cursor, this); } } else if ((from == upperLeft) || (from == upperMiddle) || (from == upperRight)) { getParent()->moveUp(cursor, this); } else if ((from == getParent()) || (from == lowerLeft) || (from == lowerMiddle)) { content->moveRight(cursor, this); } else if (from == lowerRight) { content->moveLeft(cursor, this); } } }

/** Enters this element while moving down starting inside the element `from'. Searches for a cursor position inside this element or below it. */ void IndexElement::moveDown(FormulaCursor* cursor, BasicElement* from) { if (cursor->isSelectionMode()) { getParent()->moveDown(cursor, this); } else { if (from == content) { if ((cursor->getPos() == 0) && (cursor->getElement() == from)) { if (hasLowerLeft()) { lowerLeft->moveLeft(cursor, this); return; } else if (hasLowerMiddle()) { lowerMiddle->moveRight(cursor, this); return; } } if (hasLowerRight()) { lowerRight->moveRight(cursor, this); } else if (hasLowerMiddle()) { lowerMiddle->moveLeft(cursor, this); } else if (hasLowerLeft()) { lowerLeft->moveLeft(cursor, this); } else { getParent()->moveDown(cursor, this); } } else if ((from == lowerLeft) || (from == lowerMiddle) || (from == lowerRight)) { getParent()->moveDown(cursor, this); } else if ((from == getParent()) || (from == upperLeft) || (from == upperMiddle)) { content->moveRight(cursor, this); } if (from == upperRight) { content->moveLeft(cursor, this); } } }

children

main child

If an element has children one has to become the main one.

void IndexElement::setMainChild(SequenceElement* child) { formula()->elementRemoval(content); content = child; content->setParent(this); formula()->changed(); }

/** Inserts all new children at the cursor position. Places the cursor according to the direction.

You only can insert one index at a time. So the list must contain exactly on SequenceElement. And the index you want to insert must not exist already.

The list will be emptied but stays the property of the caller.

Reimplemented from BasicElement.

Definition at line 914 of file indexelement.cpp.

◆ isSenseless()

bool IndexElement::isSenseless ( )
virtual

Moves the cursor away from the given child.

Returns wether the element has no more useful children (except its main child) and should therefore be replaced by its main child's content.

The cursor is guaranteed to be inside this element. Returns wether the element has no more useful children (except its main child) and should therefore be replaced by its main child's content.

Reimplemented from BasicElement.

Definition at line 1038 of file indexelement.cpp.

◆ moveToLowerLeft()

void IndexElement::moveToLowerLeft ( FormulaCursor * cursor,
Direction direction )

Definition at line 1190 of file indexelement.cpp.

◆ moveToLowerMiddle()

void IndexElement::moveToLowerMiddle ( FormulaCursor * cursor,
Direction direction )

Definition at line 1202 of file indexelement.cpp.

◆ moveToLowerRight()

void IndexElement::moveToLowerRight ( FormulaCursor * cursor,
Direction direction )

Definition at line 1214 of file indexelement.cpp.

◆ moveToUpperLeft()

void IndexElement::moveToUpperLeft ( FormulaCursor * cursor,
Direction direction )

Definition at line 1154 of file indexelement.cpp.

◆ moveToUpperMiddle()

void IndexElement::moveToUpperMiddle ( FormulaCursor * cursor,
Direction direction )

Definition at line 1166 of file indexelement.cpp.

◆ moveToUpperRight()

void IndexElement::moveToUpperRight ( FormulaCursor * cursor,
Direction direction )

Definition at line 1178 of file indexelement.cpp.

◆ normalize()

void IndexElement::normalize ( FormulaCursor * cursor,
Direction direction )
virtual

Moves the cursor to a normal place where new elements might be inserted.

Reimplemented from BasicElement.

Definition at line 1023 of file indexelement.cpp.

◆ readAttributesFromDom()

bool IndexElement::readAttributesFromDom ( TQDomElement element)
protectedvirtual

Reads our attributes from the element.

Returns false if it failed.

Reimplemented from BasicElement.

Definition at line 1276 of file indexelement.cpp.

◆ readAttributesFromMathMLDom()

bool IndexElement::readAttributesFromMathMLDom ( const TQDomElement & element)
protectedvirtual

Reads our attributes from the MathML element.

Returns false if it failed.

Reimplemented from BasicElement.

Definition at line 1348 of file indexelement.cpp.

◆ readContentFromDom()

bool IndexElement::readContentFromDom ( TQDomNode & node)
protectedvirtual

Reads our content from the node.

Sets the node to the next node that needs to be read. Returns false if it failed.

Reimplemented from BasicElement.

Definition at line 1289 of file indexelement.cpp.

◆ readContentFromMathMLDom()

int IndexElement::readContentFromMathMLDom ( TQDomNode & node)
protectedvirtual

Reads our content from the MathML node.

Sets the node to the next node that needs to be read. It is sometimes needed to read more than one node (e. g. for fence operators). Returns the number of nodes processed or -1 if it failed.

Reimplemented from BasicElement.

Definition at line 1411 of file indexelement.cpp.

◆ remove()

void IndexElement::remove ( FormulaCursor * cursor,
TQPtrList< BasicElement > & removedChildren,
Direction direction )
virtual

Removes all selected children and returns them.

Places the cursor to where the children have been.

The cursor has to be inside one of our indexes which is supposed to be empty. The index will be removed and the cursor will be placed to the removed index so it can be inserted again. This methode is called by SequenceElement::remove only.

The ownership of the list is passed to the caller.

Reimplemented from BasicElement.

Definition at line 967 of file indexelement.cpp.

◆ selectChild()

void IndexElement::selectChild ( FormulaCursor * cursor,
BasicElement * child )
virtual

Sets the cursor to select the child.

The mark is placed before, the position behind it.

Reimplemented from BasicElement.

Definition at line 1081 of file indexelement.cpp.

◆ setToLowerLeft()

void IndexElement::setToLowerLeft ( FormulaCursor * cursor)

Definition at line 1136 of file indexelement.cpp.

◆ setToLowerMiddle()

void IndexElement::setToLowerMiddle ( FormulaCursor * cursor)

Definition at line 1141 of file indexelement.cpp.

◆ setToLowerRight()

void IndexElement::setToLowerRight ( FormulaCursor * cursor)

Definition at line 1146 of file indexelement.cpp.

◆ setToUpperLeft()

void IndexElement::setToUpperLeft ( FormulaCursor * cursor)

Definition at line 1121 of file indexelement.cpp.

◆ setToUpperMiddle()

void IndexElement::setToUpperMiddle ( FormulaCursor * cursor)

Definition at line 1126 of file indexelement.cpp.

◆ setToUpperRight()

void IndexElement::setToUpperRight ( FormulaCursor * cursor)

Definition at line 1131 of file indexelement.cpp.

◆ toLatex()

TQString IndexElement::toLatex ( )
virtual
Returns
the latex representation of the element and of the element's children

Reimplemented from BasicElement.

Definition at line 1583 of file indexelement.cpp.

◆ writeDom()

void IndexElement::writeDom ( TQDomElement element)
protectedvirtual

Appends our attributes to the dom element.

Reimplemented from BasicElement.

Definition at line 1230 of file indexelement.cpp.

◆ writeMathMLAttributes()

void IndexElement::writeMathMLAttributes ( TQDomElement & element) const
protectedvirtual

Reimplemented from BasicElement.

Definition at line 1656 of file indexelement.cpp.

◆ writeMathMLContent()

void IndexElement::writeMathMLContent ( TQDomDocument & doc,
TQDomElement & element,
bool oasisFormat ) const
protectedvirtual

Reimplemented from BasicElement.

Definition at line 1702 of file indexelement.cpp.


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