lib
NameSequence Class Reference
#include <sequenceelement.h>
Inheritance diagram for NameSequence:

Detailed Description
The sequence thats a name.Actually the purpose is to be able to insert any element by keyboard.
Definition at line 448 of file sequenceelement.h.
Public Member Functions | |
NameSequence (BasicElement *parent=0) | |
virtual NameSequence * | clone () |
virtual bool | accept (ElementVisitor *visitor) |
virtual QChar | getCharacter () const |
virtual TokenType | getTokenType () const |
virtual SequenceElement * | getMainChild () |
virtual void | calcCursorSize (const ContextStyle &context, FormulaCursor *cursor, bool smallCursor) |
virtual void | drawCursor (QPainter &painter, const ContextStyle &context, FormulaCursor *cursor, bool smallCursor, bool activeCursor) |
virtual void | moveWordLeft (FormulaCursor *cursor) |
virtual void | moveWordRight (FormulaCursor *cursor) |
virtual KCommand * | buildCommand (Container *, Request *) |
virtual KCommand * | input (Container *container, QChar ch) |
virtual void | setElementType (ElementType *t) |
BasicElement * | replaceElement (const SymbolTable &table) |
virtual void | writeMathML (QDomDocument &doc, QDomNode parent, bool oasisFormat=false) |
Static Public Member Functions | |
static bool | isValidSelection (FormulaCursor *cursor) |
Protected Member Functions | |
virtual QString | getTagName () const |
virtual BasicElement * | createElement (QString type) |
virtual bool | isFirstOfToken (BasicElement *) |
Member Function Documentation
|
Visit this element. An implementation of the visitor pattern. Reimplemented from SequenceElement. Definition at line 1520 of file sequenceelement.cc. |
|
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.
Reimplemented from SequenceElement. Definition at line 1590 of file sequenceelement.cc. |
|
Creates a new element with the given type.
Reimplemented from SequenceElement. Definition at line 1688 of file sequenceelement.cc. |
|
If the cursor is inside a sequence it needs to be drawn.
Reimplemented from SequenceElement. Definition at line 1537 of file sequenceelement.cc. |
|
Reimplemented from BasicElement. Definition at line 470 of file sequenceelement.h. |
|
We are our own main child. This causes interessting effects. Reimplemented from BasicElement. Definition at line 481 of file sequenceelement.h. |
|
Returns the tag name of this element type.
Reimplemented from SequenceElement. Definition at line 546 of file sequenceelement.h. |
|
Reimplemented from BasicElement. Definition at line 476 of file sequenceelement.h. |
|
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 SequenceElement. Definition at line 1612 of file sequenceelement.cc. |
|
Reimplemented from SequenceElement. Definition at line 566 of file sequenceelement.h. |
|
Tests whether the selected elements can be inserted in a name sequence.
Definition at line 1712 of file sequenceelement.cc. |
|
Moves to the beginning of this word or if we are there already to the beginning of the previous.
Reimplemented from SequenceElement. Definition at line 1554 of file sequenceelement.cc. |
|
Moves to the end of this word or if we are there already to the end of the next.
Reimplemented from SequenceElement. Definition at line 1565 of file sequenceelement.cc. |
|
Definition at line 1657 of file sequenceelement.cc. |
|
Sets a new type. This is done during parsing. Reimplemented from BasicElement. Definition at line 1651 of file sequenceelement.cc. |
|
Same as above, just MathML.
Reimplemented from SequenceElement. Definition at line 1721 of file sequenceelement.cc. |
The documentation for this class was generated from the following files: