lib

#include <sequenceelement.h>

Inheritance diagram for SequenceElement:
BasicElement ActionElement FormulaElement NameSequence TokenStyleElement

Public Types

typedef ChildIterator iterator
 

Public Member Functions

 SequenceElement (BasicElement *parent=0)
 
 SequenceElement (const SequenceElement &)
 
virtual SequenceElement * clone ()
 
virtual bool accept (ElementVisitor *visitor)
 
virtual bool readOnly (const FormulaCursor *) const
 
virtual bool isTextOnly () const
 
virtual BasicElement * goToPos (FormulaCursor *, bool &handled, const LuPixelPoint &point, const LuPixelPoint &parentOrigin)
 
void setSizeReduction (const ContextStyle &context)
 
bool isEmpty ()
 
virtual void calcSizes (const ContextStyle &cstyle, ContextStyle::TextStyle tstyle, ContextStyle::IndexStyle istyle, StyleAttributes &style)
 
virtual void draw (TQPainter &painter, const LuPixelRect &r, const ContextStyle &context, ContextStyle::TextStyle tstyle, ContextStyle::IndexStyle istyle, StyleAttributes &style, const LuPixelPoint &parentOrigin)
 
virtual void dispatchFontCommand (FontCommand *cmd)
 
virtual void drawEmptyRect (TQPainter &painter, const ContextStyle &context, double factor, const LuPixelPoint &upperLeft)
 
virtual void calcCursorSize (const ContextStyle &context, FormulaCursor *cursor, bool smallCursor)
 
virtual void drawCursor (TQPainter &painter, const ContextStyle &context, StyleAttributes &style, FormulaCursor *cursor, bool smallCursor, bool activeCursor)
 
virtual void moveLeft (FormulaCursor *cursor, BasicElement *from)
 
virtual void moveRight (FormulaCursor *cursor, BasicElement *from)
 
virtual void moveWordLeft (FormulaCursor *cursor)
 
virtual void moveWordRight (FormulaCursor *cursor)
 
virtual void moveUp (FormulaCursor *cursor, BasicElement *from)
 
virtual void moveDown (FormulaCursor *cursor, BasicElement *from)
 
virtual void moveHome (FormulaCursor *cursor)
 
virtual void moveEnd (FormulaCursor *cursor)
 
virtual void goInside (FormulaCursor *cursor)
 
virtual void goInsideLast (FormulaCursor *cursor)
 
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 void childWillVanish (FormulaCursor *cursor, BasicElement *child)
 
uint countChildren () const
 
bool isChildNumber (uint pos, BasicElement *child)
 
void selectAllChildren (FormulaCursor *cursor)
 
bool onlyTextSelected (FormulaCursor *cursor)
 
virtual KCommand * buildCommand (Container *, Request *)
 
virtual KCommand * input (Container *container, TQChar ch)
 
virtual KCommand * input (Container *container, TQKeyEvent *event)
 
virtual void parse ()
 
void getChildrenDom (TQDomDocument &doc, TQDomElement elem, uint from, uint to)
 
void getChildrenMathMLDom (TQDomDocument &doc, TQDomNode &elem, uint from, uint to)
 
bool buildChildrenFromDom (TQPtrList< BasicElement > &list, TQDomNode n)
 
virtual TQString toLatex ()
 
virtual TQString formulaString ()
 
BasicElement * getChild (uint i)
 
const BasicElement * getChild (uint i) const
 
int childPos (BasicElement *child)
 
int childPos (const BasicElement *child) const
 
iterator begin ()
 
iterator end ()
 
virtual void setStyle (StyleElement *style)
 
virtual int buildChildrenFromMathMLDom (TQPtrList< BasicElement > &list, TQDomNode n)
 
virtual int readContentFromMathMLDom (TQDomNode &node)
 
int buildMathMLChild (TQDomNode node)
 
- 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 TQChar getCharacter () const
 
virtual TokenType getTokenType () const
 
virtual bool isInvisible () const
 
LuPixelPoint widgetPos ()
 
virtual void entered (SequenceElement *)
 
virtual SequenceElement * getMainChild ()
 
virtual bool isSenseless ()
 
virtual void registerTab (BasicElement *)
 
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)
 

Static Public Member Functions

static void setCreationStrategy (ElementCreationStrategy *strategy)
 
- Static Public Member Functions inherited from BasicElement
static int getEvilDestructionCount ()
 

Protected Member Functions

virtual TQString getTagName () const
 
virtual void writeDom (TQDomElement element)
 
virtual TQString getElementName () const
 
virtual void writeMathMLContent (TQDomDocument &doc, TQDomElement &element, bool oasisFormat) const
 
virtual bool readAttributesFromDom (TQDomElement element)
 
virtual bool readContentFromDom (TQDomNode &node)
 
virtual void setChildrenPositions ()
 
virtual BasicElement * createElement (TQString type, const TQDomElement &element)
 
luPixel getChildPosition (const ContextStyle &context, uint child)
 
virtual bool isFirstOfToken (BasicElement *child)
 
bool insert (uint index, BasicElement *child)
 
virtual luPt getSpaceBefore (const ContextStyle &, ContextStyle::TextStyle, double)
 
virtual luPt getSpaceAfter (const ContextStyle &, ContextStyle::TextStyle, double)
 
- Protected Member Functions inherited from BasicElement
virtual void writeMathMLAttributes (TQDomElement &) const
 
bool buildChild (SequenceElement *child, TQDomNode node, TQString name)
 
virtual bool readAttributesFromMathMLDom (const TQDomElement &element)
 
double getSize (const TQString &str, SizeType *st)
 
SizeType getSpace (const TQString &str)
 

Static Protected Member Functions

static ElementCreationStrategy * getCreationStrategy ()
 

Static Protected Attributes

static ElementCreationStrategy * creationStrategy = 0
 

Detailed Description

The element that contains a number of children.

The children are aligned in one line.

Definition at line 40 of file sequenceelement.h.

Member Typedef Documentation

◆ iterator

typedef ChildIterator SequenceElement::iterator

Definition at line 366 of file sequenceelement.h.

Constructor & Destructor Documentation

◆ SequenceElement() [1/2]

SequenceElement::SequenceElement ( BasicElement *  parent = 0)

Definition at line 75 of file sequenceelement.cpp.

◆ ~SequenceElement()

SequenceElement::~SequenceElement ( )

Definition at line 83 of file sequenceelement.cpp.

◆ SequenceElement() [2/2]

SequenceElement::SequenceElement ( const SequenceElement &  other)

Definition at line 88 of file sequenceelement.cpp.

Member Function Documentation

◆ accept()

bool SequenceElement::accept ( ElementVisitor *  )
virtual

Visit this element.

An implementation of the visitor pattern.

Implements BasicElement.

Reimplemented in NameSequence.

Definition at line 101 of file sequenceelement.cpp.

◆ begin()

iterator SequenceElement::begin ( )
inline

Definition at line 368 of file sequenceelement.h.

◆ buildChildrenFromDom()

bool SequenceElement::buildChildrenFromDom ( TQPtrList< BasicElement > &  list,
TQDomNode  n 
)

Builds elements from the given node and its siblings and puts them into the list.

Returns false if an error occures.

Definition at line 1428 of file sequenceelement.cpp.

◆ buildChildrenFromMathMLDom()

int SequenceElement::buildChildrenFromMathMLDom ( TQPtrList< BasicElement > &  list,
TQDomNode  n 
)
virtual

Definition at line 1810 of file sequenceelement.cpp.

◆ buildCommand()

KCommand * SequenceElement::buildCommand ( Container *  container,
Request *  request 
)
virtual

This is called by the container to get a command depending on the current cursor position (this is how the element gets chosen) and the request.

Returns
the command that performs the requested action with the containers active cursor.

Reimplemented from BasicElement.

Reimplemented in FormulaElement, and NameSequence.

Definition at line 940 of file sequenceelement.cpp.

◆ buildMathMLChild()

int SequenceElement::buildMathMLChild ( TQDomNode  node)

Definition at line 1897 of file sequenceelement.cpp.

◆ calcCursorSize()

void SequenceElement::calcCursorSize ( const ContextStyle &  context,
FormulaCursor *  cursor,
bool  smallCursor 
)
virtual

Definition at line 333 of file sequenceelement.cpp.

◆ calcSizes()

void SequenceElement::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.

Reimplemented in FormulaElement, and TokenStyleElement.

Definition at line 179 of file sequenceelement.cpp.

◆ childPos() [1/2]

int SequenceElement::childPos ( BasicElement *  child)
inline

Definition at line 321 of file sequenceelement.h.

◆ childPos() [2/2]

int SequenceElement::childPos ( const BasicElement *  child) const

Definition at line 1590 of file sequenceelement.cpp.

◆ childWillVanish()

void SequenceElement::childWillVanish ( FormulaCursor *  cursor,
BasicElement *  child 
)
virtual

Moves the cursor away from the given child.

The cursor is guaranteed to be inside this element.

Reimplemented from BasicElement.

Definition at line 899 of file sequenceelement.cpp.

◆ clone()

virtual SequenceElement * SequenceElement::clone ( )
inlinevirtual

Implements BasicElement.

Definition at line 49 of file sequenceelement.h.

◆ countChildren()

uint SequenceElement::countChildren ( ) const
inline
Returns
the number of children we have.

Definition at line 249 of file sequenceelement.h.

◆ createElement()

BasicElement * SequenceElement::createElement ( TQString  type,
const TQDomElement &  element 
)
protectedvirtual

Creates a new element with the given type.

Parameters
typethe desired type of the element

Definition at line 1458 of file sequenceelement.cpp.

◆ dispatchFontCommand()

void SequenceElement::dispatchFontCommand ( FontCommand *  cmd)
virtual

Dispatch this FontCommand to all our TextElement children.

Reimplemented from BasicElement.

Definition at line 309 of file sequenceelement.cpp.

◆ draw()

void SequenceElement::draw ( TQPainter &  painter,
const LuPixelRect &  r,
const ContextStyle &  context,
ContextStyle::TextStyle  tstyle,
ContextStyle::IndexStyle  istyle,
StyleAttributes &  style,
const LuPixelPoint &  parentOrigin 
)
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.

Implements BasicElement.

Reimplemented in FormulaElement, and TokenStyleElement.

Definition at line 253 of file sequenceelement.cpp.

◆ drawCursor()

void SequenceElement::drawCursor ( TQPainter &  painter,
const ContextStyle &  context,
StyleAttributes &  style,
FormulaCursor *  cursor,
bool  smallCursor,
bool  activeCursor 
)
virtual

If the cursor is inside a sequence it needs to be drawn.

Reimplemented in NameSequence.

Definition at line 380 of file sequenceelement.cpp.

◆ drawEmptyRect()

void SequenceElement::drawEmptyRect ( TQPainter &  painter,
const ContextStyle &  context,
double  factor,
const LuPixelPoint &  upperLeft 
)
virtual

Definition at line 319 of file sequenceelement.cpp.

◆ end()

iterator SequenceElement::end ( )
inline

Definition at line 369 of file sequenceelement.h.

◆ formulaString()

TQString SequenceElement::formulaString ( )
virtual

Reimplemented from BasicElement.

Definition at line 1559 of file sequenceelement.cpp.

◆ getChild() [1/3]

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

Returns the child at the cursor.

Does not care about the selection.

Reimplemented from BasicElement.

Definition at line 871 of file sequenceelement.cpp.

◆ getChild() [2/3]

BasicElement * SequenceElement::getChild ( uint  i)
inline
Returns
the child at position i.

Definition at line 318 of file sequenceelement.h.

◆ getChild() [3/3]

const BasicElement * SequenceElement::getChild ( uint  i) const

Definition at line 1582 of file sequenceelement.cpp.

◆ getChildPosition()

luPixel SequenceElement::getChildPosition ( const ContextStyle &  context,
uint  child 
)
protected
Returns
the position where the child starts.
Parameters
contextthe context the child is in
childthe child's number

Definition at line 421 of file sequenceelement.cpp.

◆ getChildrenDom()

void SequenceElement::getChildrenDom ( TQDomDocument &  doc,
TQDomElement  elem,
uint  from,
uint  to 
)

Stores the given childrens dom in the element.

Definition at line 1402 of file sequenceelement.cpp.

◆ getChildrenMathMLDom()

void SequenceElement::getChildrenMathMLDom ( TQDomDocument &  doc,
TQDomNode &  elem,
uint  from,
uint  to 
)

Stores the given childrens MathML dom in the element.

Definition at line 1414 of file sequenceelement.cpp.

◆ getCreationStrategy()

static ElementCreationStrategy * SequenceElement::getCreationStrategy ( )
inlinestaticprotected

Definition at line 448 of file sequenceelement.h.

◆ getElementName()

virtual TQString SequenceElement::getElementName ( ) const
inlineprotectedvirtual

Reimplemented from BasicElement.

Definition at line 392 of file sequenceelement.h.

◆ getSpaceAfter()

virtual luPt SequenceElement::getSpaceAfter ( const ContextStyle &  ,
ContextStyle::TextStyle  ,
double   
)
inlineprotectedvirtual

Definition at line 454 of file sequenceelement.h.

◆ getSpaceBefore()

virtual luPt SequenceElement::getSpaceBefore ( const ContextStyle &  ,
ContextStyle::TextStyle  ,
double   
)
inlineprotectedvirtual

Space around sequence.

Definition at line 453 of file sequenceelement.h.

◆ getTagName()

virtual TQString SequenceElement::getTagName ( ) const
inlineprotectedvirtual

Returns the tag name of this element type.

Reimplemented from BasicElement.

Reimplemented in FormulaElement, and NameSequence.

Definition at line 385 of file sequenceelement.h.

◆ goInside()

void SequenceElement::goInside ( FormulaCursor *  cursor)
virtual

Sets the cursor inside this element to its start position.

For most elements that is the main child.

Reimplemented from BasicElement.

Definition at line 695 of file sequenceelement.cpp.

◆ goInsideLast()

void SequenceElement::goInsideLast ( FormulaCursor *  cursor)
virtual

Sets the cursor inside this element to its last position.

Sets the cursor inside this element to its end position.

For most elements that is the main child.

Definition at line 705 of file sequenceelement.cpp.

◆ goToPos()

BasicElement * SequenceElement::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 116 of file sequenceelement.cpp.

◆ input() [1/2]

KCommand * SequenceElement::input ( Container *  container,
TQChar  ch 
)
virtual

Parses the input.

It's the container which does create new elements because it owns the undo stack. But only the sequence knows what chars are allowed.

Reimplemented in NameSequence.

Definition at line 1312 of file sequenceelement.cpp.

◆ input() [2/2]

KCommand * SequenceElement::input ( Container *  ,
TQKeyEvent *   
)
virtual

Parses the input.

It's the container which does create new elements because it owns the undo stack. But only the sequence knows what chars are allowed.

Reimplemented from BasicElement.

Reimplemented in FormulaElement.

Definition at line 1235 of file sequenceelement.cpp.

◆ insert() [1/2]

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

Inserts all new children at the cursor position.

Removes the child.

Places the cursor according to the direction. The inserted elements will be selected.

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

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. Inserts all new children at the cursor position. Places the cursor according to the direction. The inserted elements will be selected.

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

Reimplemented from BasicElement.

Definition at line 759 of file sequenceelement.cpp.

◆ insert() [2/2]

bool SequenceElement::insert ( uint  index,
BasicElement *  child 
)
protected

Insert a new child in the sequence.

Returns
true if succesful, i.e. if index is in range, otherwise returns false. The valid range is 0 to count(). The child is appended if index == count().
Parameters
indexposition in the sequence to insert the child
childthe child to insert in the sequence

Definition at line 724 of file sequenceelement.cpp.

◆ isChildNumber()

bool SequenceElement::isChildNumber ( uint  pos,
BasicElement *  child 
)
inline
Returns
whether the child has the given number.

Definition at line 254 of file sequenceelement.h.

◆ isEmpty()

bool SequenceElement::isEmpty ( )
Returns
true if there is no visible element in the sequence. Please note that there might be phantom elements.

Definition at line 162 of file sequenceelement.cpp.

◆ isFirstOfToken()

bool SequenceElement::isFirstOfToken ( BasicElement *  child)
protectedvirtual
Returns
whether the child is the first element of its token.

Reimplemented in NameSequence.

Definition at line 1538 of file sequenceelement.cpp.

◆ isTextOnly()

virtual bool SequenceElement::isTextOnly ( ) const
inlinevirtual
Returns
true if the sequence contains only text.

Definition at line 63 of file sequenceelement.h.

◆ moveDown()

void SequenceElement::moveDown ( FormulaCursor *  cursor,
BasicElement *  from 
)
virtual

Enters this element while moving down starting inside the element ‘from’.

Searches for a cursor position inside this element or below it.

Reimplemented from BasicElement.

Definition at line 625 of file sequenceelement.cpp.

◆ moveEnd()

void SequenceElement::moveEnd ( FormulaCursor *  cursor)
virtual

Moves the cursor to the last position in this sequence.

(That is behind the last child.)

Reimplemented from BasicElement.

Definition at line 671 of file sequenceelement.cpp.

◆ moveHome()

void SequenceElement::moveHome ( FormulaCursor *  cursor)
virtual

Moves the cursor to the first position in this sequence.

(That is before the first child.)

Reimplemented from BasicElement.

Definition at line 653 of file sequenceelement.cpp.

◆ moveLeft()

void SequenceElement::moveLeft ( FormulaCursor *  cursor,
BasicElement *  from 
)
virtual

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.

Reimplemented from BasicElement.

Definition at line 450 of file sequenceelement.cpp.

◆ moveRight()

void SequenceElement::moveRight ( FormulaCursor *  cursor,
BasicElement *  from 
)
virtual

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.

Reimplemented from BasicElement.

Definition at line 503 of file sequenceelement.cpp.

◆ moveUp()

void SequenceElement::moveUp ( FormulaCursor *  cursor,
BasicElement *  from 
)
virtual

Enters this element while moving up starting inside the element ‘from’.

Searches for a cursor position inside this element or above it.

Reimplemented from BasicElement.

Definition at line 591 of file sequenceelement.cpp.

◆ moveWordLeft()

void SequenceElement::moveWordLeft ( FormulaCursor *  cursor)
virtual

Moves to the beginning of this word or if we are there already to the beginning of the previous.

Reimplemented in NameSequence.

Definition at line 556 of file sequenceelement.cpp.

◆ moveWordRight()

void SequenceElement::moveWordRight ( FormulaCursor *  cursor)
virtual

Moves to the end of this word or if we are there already to the end of the next.

Reimplemented in NameSequence.

Definition at line 571 of file sequenceelement.cpp.

◆ normalize()

void SequenceElement::normalize ( FormulaCursor *  cursor,
Direction   
)
virtual

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

Reimplemented from BasicElement.

Definition at line 861 of file sequenceelement.cpp.

◆ onlyTextSelected()

bool SequenceElement::onlyTextSelected ( FormulaCursor *  cursor)

Definition at line 924 of file sequenceelement.cpp.

◆ parse()

void SequenceElement::parse ( )
virtual

Parses the sequence and generates a new syntax tree.

Has to be called after each modification.

Definition at line 1502 of file sequenceelement.cpp.

◆ readAttributesFromDom()

bool SequenceElement::readAttributesFromDom ( TQDomElement  element)
protectedvirtual

Reads our attributes from the element.

Returns false if it failed.

Reimplemented from BasicElement.

Reimplemented in FormulaElement.

Definition at line 1479 of file sequenceelement.cpp.

◆ readContentFromDom()

bool SequenceElement::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.

Reimplemented in FormulaElement.

Definition at line 1492 of file sequenceelement.cpp.

◆ readContentFromMathMLDom()

int SequenceElement::readContentFromMathMLDom ( TQDomNode &  node)
virtual

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.

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

Reimplemented from BasicElement.

Definition at line 1888 of file sequenceelement.cpp.

◆ readOnly()

bool SequenceElement::readOnly ( const FormulaCursor *  ) const
virtual
Returns
whether its prohibited to change the sequence with this cursor.

Reimplemented in FormulaElement.

Definition at line 107 of file sequenceelement.cpp.

◆ remove()

void SequenceElement::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.

Places the cursor to where the children have been.

The ownership of the list is passed to the caller.

Reimplemented from BasicElement.

Definition at line 788 of file sequenceelement.cpp.

◆ selectAllChildren()

void SequenceElement::selectAllChildren ( FormulaCursor *  cursor)

Selects all children.

The cursor is put behind, the mark before them.

Definition at line 919 of file sequenceelement.cpp.

◆ selectChild()

void SequenceElement::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 891 of file sequenceelement.cpp.

◆ setChildrenPositions()

void SequenceElement::setChildrenPositions ( )
protectedvirtual

Sets the childrens' positions after their size has been calculated.

See also
calcSizes

Definition at line 238 of file sequenceelement.cpp.

◆ setCreationStrategy()

void SequenceElement::setCreationStrategy ( ElementCreationStrategy *  strategy)
static

Definition at line 65 of file sequenceelement.cpp.

◆ setSizeReduction()

void SequenceElement::setSizeReduction ( const ContextStyle &  context)

Tells the sequence to have a smaller size than its parant.

◆ setStyle()

void SequenceElement::setStyle ( StyleElement *  style)
virtual

Reimplemented from BasicElement.

Definition at line 70 of file sequenceelement.cpp.

◆ toLatex()

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

Reimplemented from BasicElement.

Reimplemented in FormulaElement.

Definition at line 1544 of file sequenceelement.cpp.

◆ writeDom()

void SequenceElement::writeDom ( TQDomElement  element)
protectedvirtual

Appends our attributes to the dom element.

Reimplemented from BasicElement.

Reimplemented in FormulaElement.

Definition at line 1466 of file sequenceelement.cpp.

◆ writeMathMLContent()

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

Reimplemented from BasicElement.

Definition at line 1574 of file sequenceelement.cpp.

Member Data Documentation

◆ creationStrategy

KFORMULA_NAMESPACE_BEGIN ElementCreationStrategy * SequenceElement::creationStrategy = 0
staticprotected

Definition at line 456 of file sequenceelement.h.


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