summaryrefslogtreecommitdiffstats
path: root/lib/kformula/sequenceelement.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kformula/sequenceelement.h')
-rw-r--r--lib/kformula/sequenceelement.h128
1 files changed, 64 insertions, 64 deletions
diff --git a/lib/kformula/sequenceelement.h b/lib/kformula/sequenceelement.h
index 9bc3c500..167c1ae3 100644
--- a/lib/kformula/sequenceelement.h
+++ b/lib/kformula/sequenceelement.h
@@ -21,12 +21,12 @@
#ifndef SEQUENCEELEMENT_H
#define SEQUENCEELEMENT_H
-#include <qptrlist.h>
-#include <qstring.h>
+#include <tqptrlist.h>
+#include <tqstring.h>
#include "basicelement.h"
-class QKeyEvent;
+class TQKeyEvent;
KFORMULA_NAMESPACE_BEGIN
@@ -34,14 +34,14 @@ class SymbolTable;
class ElementCreationStrategy;
/**
- * The element that contains a number of children.
- * The children are aligned in one line.
+ * The element that contains a number of tqchildren.
+ * The tqchildren are aligned in one line.
*/
class SequenceElement : public BasicElement {
SequenceElement& operator=( const SequenceElement& ) { return *this; }
public:
- SequenceElement(BasicElement* parent = 0);
+ SequenceElement(BasicElement* tqparent = 0);
~SequenceElement();
SequenceElement( const SequenceElement& );
@@ -70,7 +70,7 @@ public:
*/
virtual BasicElement* goToPos( FormulaCursor*, bool& handled,
const LuPixelPoint& point,
- const LuPixelPoint& parentOrigin );
+ const LuPixelPoint& tqparentOrigin );
// drawing
//
@@ -92,7 +92,7 @@ public:
/**
* Calculates our width and height and
- * our children's parentPosition.
+ * our tqchildren's tqparentPosition.
*/
virtual void calcSizes( const ContextStyle& cstyle,
ContextStyle::TextStyle tstyle,
@@ -100,23 +100,23 @@ public:
StyleAttributes& style );
/**
- * 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.
+ * Draws the whole element including its tqchildren.
+ * The `tqparentOrigin' is the point this element's tqparent starts.
+ * We can use our tqparentPosition to get our own origin then.
*/
- virtual void draw( QPainter& painter, const LuPixelRect& r,
+ virtual void draw( TQPainter& painter, const LuPixelRect& r,
const ContextStyle& context,
ContextStyle::TextStyle tstyle,
ContextStyle::IndexStyle istyle,
StyleAttributes& style,
- const LuPixelPoint& parentOrigin );
+ const LuPixelPoint& tqparentOrigin );
/**
- * Dispatch this FontCommand to all our TextElement children.
+ * Dispatch this FontCommand to all our TextElement tqchildren.
*/
virtual void dispatchFontCommand( FontCommand* cmd );
- virtual void drawEmptyRect( QPainter& painter, const ContextStyle& context,
+ virtual void drawEmptyRect( TQPainter& painter, const ContextStyle& context,
double factor, const LuPixelPoint& upperLeft );
virtual void calcCursorSize( const ContextStyle& context,
@@ -125,7 +125,7 @@ public:
/**
* If the cursor is inside a sequence it needs to be drawn.
*/
- virtual void drawCursor( QPainter& painter, const ContextStyle& context,
+ virtual void drawCursor( TQPainter& painter, const ContextStyle& context,
StyleAttributes& style, FormulaCursor* cursor,
bool smallCursor, bool activeCursor );
@@ -202,22 +202,22 @@ public:
virtual void goInsideLast(FormulaCursor* cursor);
- // children
+ // tqchildren
/**
- * Inserts all new children at the cursor position. Places the
+ * Inserts all new tqchildren 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.
*/
- virtual void insert(FormulaCursor*, QPtrList<BasicElement>&, Direction);
+ virtual void insert(FormulaCursor*, TQPtrList<BasicElement>&, Direction);
/**
- * Removes all selected children and returns them. Places the
- * cursor to where the children have been.
+ * Removes all selected tqchildren and returns them. Places the
+ * cursor to where the tqchildren have been.
*/
- virtual void remove(FormulaCursor*, QPtrList<BasicElement>&, Direction);
+ virtual void remove(FormulaCursor*, TQPtrList<BasicElement>&, Direction);
/**
* Moves the cursor to a normal place where new elements
@@ -244,18 +244,18 @@ public:
virtual void childWillVanish(FormulaCursor* cursor, BasicElement* child);
/**
- * @returns the number of children we have.
+ * @returns the number of tqchildren we have.
*/
- uint countChildren() const { return children.count(); }
+ uint countChildren() const { return tqchildren.count(); }
/**
* @returns whether the child has the given number.
*/
bool isChildNumber( uint pos, BasicElement* child )
- { return children.at( pos ) == child; }
+ { return tqchildren.at( pos ) == child; }
/**
- * Selects all children. The cursor is put behind, the mark before them.
+ * Selects all tqchildren. The cursor is put behind, the mark before them.
*/
void selectAllChildren(FormulaCursor* cursor);
@@ -278,8 +278,8 @@ public:
* new elements because it owns the undo stack. But only the
* sequence knows what chars are allowed.
*/
- virtual KCommand* input( Container* container, QChar ch );
- virtual KCommand* input( Container* container, QKeyEvent* event );
+ virtual KCommand* input( Container* container, TQChar ch );
+ virtual KCommand* input( Container* container, TQKeyEvent* event );
/**
* Parses the sequence and generates a new syntax tree.
@@ -288,37 +288,37 @@ public:
virtual void parse();
/**
- * Stores the given childrens dom in the element.
+ * Stores the given tqchildrens dom in the element.
*/
- void getChildrenDom( QDomDocument& doc, QDomElement elem, uint from, uint to);
+ void getChildrenDom( TQDomDocument& doc, TQDomElement elem, uint from, uint to);
/**
- * Stores the given childrens MathML dom in the element.
+ * Stores the given tqchildrens MathML dom in the element.
*/
- void getChildrenMathMLDom( QDomDocument& doc, QDomNode& elem, uint from, uint to );
+ void getChildrenMathMLDom( TQDomDocument& doc, TQDomNode& elem, uint from, uint to );
/**
* Builds elements from the given node and its siblings and
* puts them into the list.
* Returns false if an error occures.
*/
- bool buildChildrenFromDom(QPtrList<BasicElement>& list, QDomNode n);
+ bool buildChildrenFromDom(TQPtrList<BasicElement>& list, TQDomNode n);
/**
* @returns the latex representation of the element and
- * of the element's children
+ * of the element's tqchildren
*/
- virtual QString toLatex();
+ virtual TQString toLatex();
- virtual QString formulaString();
+ virtual TQString formulaString();
/**
* @returns the child at position i.
*/
- BasicElement* getChild(uint i) { return children.at(i); }
+ BasicElement* getChild(uint i) { return tqchildren.at(i); }
const BasicElement* getChild(uint i) const;
- int childPos( BasicElement* child ) { return children.find( child ); }
+ int childPos( BasicElement* child ) { return tqchildren.tqfind( child ); }
int childPos( const BasicElement* child ) const;
class ChildIterator {
@@ -371,9 +371,9 @@ public:
static void setCreationStrategy( ElementCreationStrategy* strategy );
virtual void setStyle(StyleElement *style);
- virtual int buildChildrenFromMathMLDom(QPtrList<BasicElement>& list, QDomNode n);
- virtual int readContentFromMathMLDom(QDomNode& node);
- int buildMathMLChild( QDomNode node );
+ virtual int buildChildrenFromMathMLDom(TQPtrList<BasicElement>& list, TQDomNode n);
+ virtual int readContentFromMathMLDom(TQDomNode& node);
+ int buildMathMLChild( TQDomNode node );
protected:
@@ -382,32 +382,32 @@ protected:
/**
* Returns the tag name of this element type.
*/
- virtual QString getTagName() const { return "SEQUENCE"; }
+ virtual TQString getTagName() const { return "SEQUENCE"; }
/**
* Appends our attributes to the dom element.
*/
- virtual void writeDom(QDomElement element);
+ virtual void writeDom(TQDomElement element);
- virtual QString getElementName() const { return "mrow"; }
- virtual void writeMathMLContent( QDomDocument& doc,
- QDomElement& element,
+ virtual TQString getElementName() const { return "mrow"; }
+ virtual void writeMathMLContent( TQDomDocument& doc,
+ TQDomElement& element,
bool oasisFormat ) const;
/**
* Reads our attributes from the element.
* Returns false if it failed.
*/
- virtual bool readAttributesFromDom(QDomElement element);
+ virtual bool readAttributesFromDom(TQDomElement element);
/**
* Reads our content from the node. Sets the node to the next node
* that needs to be read.
* Returns false if it failed.
*/
- virtual bool readContentFromDom(QDomNode& node);
+ virtual bool readContentFromDom(TQDomNode& node);
/**
- * Sets the childrens' positions after their size has been
+ * Sets the tqchildrens' positions after their size has been
* calculated.
*
* @see #calcSizes
@@ -419,7 +419,7 @@ protected:
*
* @param type the desired type of the element
*/
- virtual BasicElement* createElement(QString type, const QDomElement &element);
+ virtual BasicElement* createElement(TQString type, const TQDomElement &element);
/**
* @returns the position where the child starts.
@@ -458,16 +458,16 @@ protected:
private:
/**
- * Removes the children at pos and appends it to the list.
+ * Removes the tqchildren at pos and appends it to the list.
*/
- void removeChild(QPtrList<BasicElement>& removedChildren, int pos);
+ void removeChild(TQPtrList<BasicElement>& removedChildren, int pos);
/**
- * Our children. Be sure to notify the rootElement before
+ * Our tqchildren. Be sure to notify the rootElement before
* you remove any.
*/
- QPtrList<BasicElement> children;
+ TQPtrList<BasicElement> tqchildren;
/**
* the syntax tree of the sequence
@@ -493,7 +493,7 @@ class NameSequence : public SequenceElement {
typedef SequenceElement inherited;
public:
- NameSequence( BasicElement* parent = 0 );
+ NameSequence( BasicElement* tqparent = 0 );
virtual NameSequence* clone() {
return new NameSequence( *this );
@@ -509,9 +509,9 @@ public:
/**
* @returns the character that represents this element. Used for
* parsing a sequence.
- * This is guaranteed to be QChar::null for all non-text elements.
+ * This is guaranteed to be TQChar::null for all non-text elements.
*/
- virtual QChar getCharacter() const { return '\\'; }
+ virtual TQChar getCharacter() const { return '\\'; }
/**
* @returns the type of this element. Used for
@@ -530,7 +530,7 @@ public:
/**
* If the cursor is inside a sequence it needs to be drawn.
*/
- virtual void drawCursor( QPainter& painter, const ContextStyle& context,
+ virtual void drawCursor( TQPainter& painter, const ContextStyle& context,
StyleAttributes& style, FormulaCursor* cursor,
bool smallCursor, bool activeCursor );
@@ -562,7 +562,7 @@ public:
* new elements because it owns the undo stack. But only the
* sequence knows what chars are allowed.
*/
- virtual KCommand* input( Container* container, QChar ch );
+ virtual KCommand* input( Container* container, TQChar ch );
/**
* Sets a new type. This is done during parsing.
@@ -585,15 +585,15 @@ protected:
/**
* Returns the tag name of this element type.
*/
- virtual QString getTagName() const { return "NAMESEQUENCE"; }
+ virtual TQString getTagName() const { return "NAMESEQUENCE"; }
- virtual QString getElementName() const { return "mi"; }
+ virtual TQString getElementName() const { return "mi"; }
/**
* Creates a new element with the given type.
*
* @param type the desired type of the element
*/
- virtual BasicElement* createElement( QString type );
+ virtual BasicElement* createElement( TQString type );
/**
* Parses the sequence and generates a new syntax tree.
@@ -603,7 +603,7 @@ protected:
/**
* @returns whether the child is the first element of its token.
- * This can never happen here. Our children reuse our own
+ * This can never happen here. Our tqchildren reuse our own
* element type.
*/
virtual bool isFirstOfToken( BasicElement* ) { return false; }
@@ -612,7 +612,7 @@ private:
KCommand* compactExpressionCmd( Container* container );
- QString buildName();
+ TQString buildName();
};
KFORMULA_NAMESPACE_END