#include <bracketelement.h>
Public Member Functions | |
| SingleContentElement (BasicElement *parent=0) | |
| SingleContentElement (const SingleContentElement &) | |
| virtual TQChar | getCharacter () const |
| virtual BasicElement * | goToPos (FormulaCursor *, bool &handled, const LuPixelPoint &point, const LuPixelPoint &parentOrigin) |
| virtual void | dispatchFontCommand (FontCommand *cmd) |
| virtual void | remove (FormulaCursor *, TQPtrList< BasicElement > &, Direction) |
| virtual void | normalize (FormulaCursor *, Direction) |
| virtual SequenceElement * | getMainChild () |
| virtual void | selectChild (FormulaCursor *cursor, BasicElement *child) |
| Public Member Functions inherited from BasicElement | |
| BasicElement (BasicElement *parent=0) | |
| BasicElement (const BasicElement &) | |
| virtual BasicElement * | clone ()=0 |
| virtual bool | accept (ElementVisitor *)=0 |
| 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 | calcSizes (const ContextStyle &context, ContextStyle::TextStyle tstyle, ContextStyle::IndexStyle istyle, StyleAttributes &style)=0 |
| virtual void | moveHome (FormulaCursor *) |
| virtual void | moveEnd (FormulaCursor *) |
| virtual void | goInside (FormulaCursor *cursor) |
| virtual void | entered (SequenceElement *) |
| virtual void | insert (FormulaCursor *, TQPtrList< BasicElement > &, Direction) |
| virtual bool | isSenseless () |
| virtual BasicElement * | getChild (FormulaCursor *, Direction=beforeCursor) |
| 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 *) |
| virtual TQString | getElementName () const |
Protected Member Functions | |
| virtual void | writeDom (TQDomElement element) |
| virtual void | writeMathMLContent (TQDomDocument &doc, TQDomElement &element, bool oasisFormat) const |
| virtual bool | readContentFromDom (TQDomNode &node) |
| virtual int | readContentFromMathMLDom (TQDomNode &node) |
| SequenceElement * | getContent () |
| Protected Member Functions inherited from BasicElement | |
| virtual TQString | getTagName () const |
| virtual void | writeMathMLAttributes (TQDomElement &) const |
| virtual bool | readAttributesFromDom (TQDomElement element) |
| bool | buildChild (SequenceElement *child, TQDomNode node, TQString name) |
| virtual bool | readAttributesFromMathMLDom (const TQDomElement &element) |
| virtual TQString | toLatex () |
| virtual TQString | formulaString () |
| 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 base of (all) elements that contain just one content element.
(No indexes.)
Definition at line 39 of file bracketelement.h.
Constructor & Destructor Documentation
◆ SingleContentElement() [1/2]
| KFORMULA_NAMESPACE_BEGIN SingleContentElement::SingleContentElement | ( | BasicElement * | parent = 0 | ) |
Definition at line 38 of file bracketelement.cpp.
◆ ~SingleContentElement()
| SingleContentElement::~SingleContentElement | ( | ) |
Definition at line 53 of file bracketelement.cpp.
◆ SingleContentElement() [2/2]
| SingleContentElement::SingleContentElement | ( | const SingleContentElement & | other | ) |
Definition at line 45 of file bracketelement.cpp.
Member Function Documentation
◆ dispatchFontCommand()
|
virtual |
Dispatch this FontCommand to all our TextElement children.
Reimplemented from BasicElement.
Definition at line 87 of file bracketelement.cpp.
◆ getCharacter()
|
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 59 of file bracketelement.cpp.
◆ getContent()
|
inlineprotected |
Definition at line 147 of file bracketelement.h.
◆ getMainChild()
|
virtual |
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 bracketelement.cpp.
◆ goToPos()
|
virtual |
Sets the cursor and 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.
Reimplemented in BracketElement.
Definition at line 70 of file bracketelement.cpp.
◆ normalize()
|
virtual |
Moves the cursor to a normal place where new elements might be inserted.
Reimplemented from BasicElement.
Definition at line 146 of file bracketelement.cpp.
◆ readContentFromDom()
|
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 179 of file bracketelement.cpp.
◆ readContentFromMathMLDom()
|
protectedvirtual |
Reads our content from the MathML node.
Sets the node to the next node that needs to be read. Returns false if it failed.
Reimplemented from BasicElement.
Reimplemented in BracketElement.
Definition at line 194 of file bracketelement.cpp.
◆ remove()
|
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. */ 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);
/** Removes all selected children and returns them. Places the cursor to where the children have been.
We remove ourselve if we are requested to remove our content.
Reimplemented from BasicElement.
Definition at line 134 of file bracketelement.cpp.
◆ selectChild()
|
virtual |
Sets the cursor to select the child.
The mark is placed before, the position behind it.
Reimplemented from BasicElement.
Definition at line 161 of file bracketelement.cpp.
◆ writeDom()
|
protectedvirtual |
Appends our attributes to the dom element.
Reimplemented from BasicElement.
Reimplemented in BracketElement.
Definition at line 168 of file bracketelement.cpp.
◆ writeMathMLContent()
|
protectedvirtual |
Reimplemented from BasicElement.
Definition at line 209 of file bracketelement.cpp.
The documentation for this class was generated from the following files:
