sequenceelement.h
453 virtual luPt getSpaceBefore( const ContextStyle&, ContextStyle::TextStyle, double ) { return 0; }
454 virtual luPt getSpaceAfter( const ContextStyle&, ContextStyle::TextStyle, double ) { return 0; }
An object of this type needs to be known by the SequenceElement.
Definition creationstrategy.h:54
Base for all font commands that act on the current selection.
Definition kformulacommand.h:490
BasicElement * replaceElement(const SymbolTable &table)
Definition sequenceelement.cpp:1746
virtual void drawCursor(TQPainter &painter, const ContextStyle &context, StyleAttributes &style, FormulaCursor *cursor, bool smallCursor, bool activeCursor)
If the cursor is inside a sequence it needs to be drawn.
Definition sequenceelement.cpp:1626
static bool isValidSelection(FormulaCursor *cursor)
Tests whether the selected elements can be inserted in a name sequence.
Definition sequenceelement.cpp:1801
virtual void moveWordRight(FormulaCursor *cursor)
Moves to the end of this word or if we are there already to the end of the next.
Definition sequenceelement.cpp:1654
virtual bool isFirstOfToken(BasicElement *)
Parses the sequence and generates a new syntax tree.
Definition sequenceelement.h:609
virtual KCommand * buildCommand(Container *, Request *)
This is called by the container to get a command depending on the current cursor position (this is ho...
Definition sequenceelement.cpp:1679
virtual BasicElement * createElement(TQString type)
Creates a new element with the given type.
Definition sequenceelement.cpp:1777
virtual void moveWordLeft(FormulaCursor *cursor)
Moves to the beginning of this word or if we are there already to the beginning of the previous.
Definition sequenceelement.cpp:1643
virtual KCommand * input(Container *container, TQChar ch)
Parses the input.
Definition sequenceelement.cpp:1701
virtual TQString getTagName() const
Returns the tag name of this element type.
Definition sequenceelement.h:588
virtual void goInsideLast(FormulaCursor *cursor)
Sets the cursor inside this element to its last position.
Definition sequenceelement.cpp:705
virtual KCommand * input(Container *container, TQChar ch)
Parses the input.
Definition sequenceelement.cpp:1312
void selectAllChildren(FormulaCursor *cursor)
Selects all children.
Definition sequenceelement.cpp:919
void getChildrenMathMLDom(TQDomDocument &doc, TQDomNode &elem, uint from, uint to)
Stores the given childrens MathML dom in the element.
Definition sequenceelement.cpp:1414
virtual void moveWordLeft(FormulaCursor *cursor)
Enters this element while moving to the left starting inside the element `from'.
virtual void moveEnd(FormulaCursor *cursor)
Moves the cursor to the last position in this sequence.
Definition sequenceelement.cpp:671
virtual KCommand * buildCommand(Container *, Request *)
This is called by the container to get a command depending on the current cursor position (this is ho...
Definition sequenceelement.cpp:940
virtual void remove(FormulaCursor *, TQPtrList< BasicElement > &, Direction)
Removes all selected children and returns them.
Definition sequenceelement.cpp:788
virtual bool readAttributesFromDom(TQDomElement element)
Reads our attributes from the element.
Definition sequenceelement.cpp:1479
void getChildrenDom(TQDomDocument &doc, TQDomElement elem, uint from, uint to)
Stores the given childrens dom in the element.
Definition sequenceelement.cpp:1402
virtual BasicElement * getChild(FormulaCursor *, Direction=beforeCursor)
Returns the child at the cursor.
Definition sequenceelement.cpp:871
virtual bool isFirstOfToken(BasicElement *child)
Definition sequenceelement.cpp:1538
virtual void drawCursor(TQPainter &painter, const ContextStyle &context, StyleAttributes &style, FormulaCursor *cursor, bool smallCursor, bool activeCursor)
If the cursor is inside a sequence it needs to be drawn.
Definition sequenceelement.cpp:380
virtual void parse()
Parses the sequence and generates a new syntax tree.
Definition sequenceelement.cpp:1502
virtual void moveWordRight(FormulaCursor *cursor)
Moves to the end of this word or if we are there already to the end of the next.
luPixel getChildPosition(const ContextStyle &context, uint child)
Definition sequenceelement.cpp:421
virtual void goInside(FormulaCursor *cursor)
Sets the cursor inside this element to its start position.
Definition sequenceelement.cpp:695
virtual void dispatchFontCommand(FontCommand *cmd)
Draws the whole element including its children.
Definition sequenceelement.cpp:309
virtual luPt getSpaceBefore(const ContextStyle &, ContextStyle::TextStyle, double)
Space around sequence.
Definition sequenceelement.h:453
virtual void childWillVanish(FormulaCursor *cursor, BasicElement *child)
Moves the cursor away from the given child.
Definition sequenceelement.cpp:899
virtual void calcSizes(const ContextStyle &cstyle, ContextStyle::TextStyle tstyle, ContextStyle::IndexStyle istyle, StyleAttributes &style)
Calculates our width and height and our children's parentPosition.
Definition sequenceelement.cpp:179
virtual void writeDom(TQDomElement element)
Appends our attributes to the dom element.
Definition sequenceelement.cpp:1466
virtual void selectChild(FormulaCursor *cursor, BasicElement *child)
Sets the cursor to select the child.
Definition sequenceelement.cpp:891
bool isChildNumber(uint pos, BasicElement *child)
Definition sequenceelement.h:254
virtual bool readContentFromDom(TQDomNode &node)
Reads our content from the node.
Definition sequenceelement.cpp:1492
virtual void setChildrenPositions()
Sets the childrens' positions after their size has been calculated.
Definition sequenceelement.cpp:238
virtual bool readOnly(const FormulaCursor *) const
Definition sequenceelement.cpp:107
bool buildChildrenFromDom(TQPtrList< BasicElement > &list, TQDomNode n)
Builds elements from the given node and its siblings and puts them into the list.
Definition sequenceelement.cpp:1428
virtual BasicElement * goToPos(FormulaCursor *, bool &handled, const LuPixelPoint &point, const LuPixelPoint &parentOrigin)
Sets the cursor and returns the element the point is in.
Definition sequenceelement.cpp:116
virtual void insert(FormulaCursor *, TQPtrList< BasicElement > &, Direction)
Inserts all new children at the cursor position.
Definition sequenceelement.cpp:759
virtual int readContentFromMathMLDom(TQDomNode &node)
Reads our content from the MathML node.
Definition sequenceelement.cpp:1888
virtual TQString getTagName() const
Returns the tag name of this element type.
Definition sequenceelement.h:385
virtual BasicElement * createElement(TQString type, const TQDomElement &element)
Creates a new element with the given type.
Definition sequenceelement.cpp:1458
virtual void normalize(FormulaCursor *, Direction)
Moves the cursor to a normal place where new elements might be inserted.
Definition sequenceelement.cpp:861
void setSizeReduction(const ContextStyle &context)
Tells the sequence to have a smaller size than its parant.
virtual void moveHome(FormulaCursor *cursor)
Enters this element while moving up starting inside the element `from'.
Definition sequenceelement.cpp:653
