diff options
Diffstat (limited to 'lib/kformula/kformulacommand.h')
-rw-r--r-- | lib/kformula/kformulacommand.h | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/lib/kformula/kformulacommand.h b/lib/kformula/kformulacommand.h index 0e13928e..ec014604 100644 --- a/lib/kformula/kformulacommand.h +++ b/lib/kformula/kformulacommand.h @@ -21,10 +21,10 @@ #ifndef KFORMULACOMMAND_H #define KFORMULACOMMAND_H -#include <qmap.h> -#include <qptrlist.h> -#include <qptrdict.h> -#include <qvaluevector.h> +#include <tqmap.h> +#include <tqptrlist.h> +#include <tqptrdict.h> +#include <tqvaluevector.h> #include <kcommand.h> @@ -61,7 +61,7 @@ public: * * @param name a description to be used as menu entry. */ - PlainCommand(const QString& name); + PlainCommand(const TQString& name); virtual ~PlainCommand(); /** @@ -89,7 +89,7 @@ public: * @param name a description to be used as menu entry. * @param document the container we are working for. */ - Command(const QString& name, Container* document); + Command(const TQString& name, Container* document); virtual ~Command(); protected: @@ -164,7 +164,7 @@ class KFCAdd : public Command { public: - KFCAdd(const QString &name, Container* document); + KFCAdd(const TQString &name, Container* document); virtual void execute(); virtual void unexecute(); @@ -180,7 +180,7 @@ private: * the list where all elements are stored that are removed * from the tree. */ - QPtrList<BasicElement> addList; + TQPtrList<BasicElement> addList; }; @@ -207,7 +207,7 @@ private: * the list where all elements are stored that are removed * from the tree. */ - QPtrList<BasicElement> removedList; + TQPtrList<BasicElement> removedList; Direction dir; }; @@ -221,7 +221,7 @@ class KFCReplace : public KFCAdd { public: - KFCReplace(const QString &name, Container* document); + KFCReplace(const TQString &name, Container* document); ~KFCReplace(); virtual void execute(); @@ -241,7 +241,7 @@ private: class KFCAddToken : public Command { public: - KFCAddToken( const QString &name, Container *document); + KFCAddToken( const TQString &name, Container *document); ~KFCAddToken(); virtual void execute(); @@ -256,7 +256,7 @@ public: * Collect content for each token */ void addContent( BasicElement* element, BasicElement* content ) { - contentList.find( element )->append( content ); + contentList.tqfind( element )->append( content ); } @@ -265,12 +265,12 @@ private: /** * List where all token elements are stored. */ - QPtrList< BasicElement > tokenList; + TQPtrList< BasicElement > tokenList; /** * Dictionary where all content elements are stored */ - QPtrDict< QPtrList< BasicElement > > contentList; + TQPtrDict< TQPtrList< BasicElement > > contentList; }; /** @@ -281,7 +281,7 @@ class KFCReplaceToken : public KFCAddToken { public: - KFCReplaceToken(const QString &name, Container* document); + KFCReplaceToken(const TQString &name, Container* document); ~KFCReplaceToken(); virtual void execute(); @@ -306,7 +306,7 @@ class KFCSplitToken : public KFCAddToken { public: - KFCSplitToken(const QString &name, Container* document); + KFCSplitToken(const TQString &name, Container* document); ~KFCSplitToken(); virtual void execute(); @@ -327,7 +327,7 @@ private: /** * The list of elements that are splited into another token */ - QPtrList< BasicElement > splitList; + TQPtrList< BasicElement > splitList; /** * Information about cursor position where the split is made. @@ -366,7 +366,7 @@ private: * the list where all elements are stored that are removed * from the tree. */ - QPtrList<BasicElement> removedList; + TQPtrList<BasicElement> removedList; /** * The element we might have extracted. @@ -385,7 +385,7 @@ private: /** - * Command to remove the parent element. + * Command to remove the tqparent element. */ class KFCRemoveEnclosing : public Command { @@ -410,7 +410,7 @@ private: class KFCAddReplacing : public Command { public: - KFCAddReplacing(const QString &name, Container* document); + KFCAddReplacing(const TQString &name, Container* document); ~KFCAddReplacing(); virtual void execute(); @@ -468,7 +468,7 @@ class FormulaElement; class KFCChangeBaseSize : public PlainCommand { public: - KFCChangeBaseSize( const QString& name, Container* document, FormulaElement* formula, int size ); + KFCChangeBaseSize( const TQString& name, Container* document, FormulaElement* formula, int size ); void execute(); void unexecute(); @@ -487,7 +487,7 @@ private: */ class FontCommand : public Command { public: - FontCommand( const QString& name, Container* document ); + FontCommand( const TQString& name, Container* document ); /** * Collects all elements that are to be modified. @@ -495,17 +495,17 @@ public: void addTextElement( TextElement* element ) { list.append(element); } /** - * Collects all parent elements those children are to be changend. + * Collects all tqparent elements those tqchildren are to be changend. */ void addElement( BasicElement* element ) { elementList.append( element ); } protected: - QPtrList<TextElement>& childrenList() { return list; } + TQPtrList<TextElement>& tqchildrenList() { return list; } void collectChildren(); - void parseSequences( const QMap<SequenceElement*, int>& parents ); + void parseSequences( const TQMap<SequenceElement*, int>& tqparents ); private: @@ -513,25 +513,25 @@ private: * the list where all elements are stored that are removed * from the tree. */ - QPtrList<TextElement> list; + TQPtrList<TextElement> list; - QPtrList<BasicElement> elementList; + TQPtrList<BasicElement> elementList; }; /** - * Changes the char style of a number of elements an their children. + * Changes the char style of a number of elements an their tqchildren. */ class CharStyleCommand : public FontCommand { public: - CharStyleCommand( CharStyle cs, const QString& name, Container* document ); + CharStyleCommand( CharStyle cs, const TQString& name, Container* document ); virtual void execute(); virtual void unexecute(); private: - typedef QValueVector<CharStyle> StyleList; + typedef TQValueVector<CharStyle> StyleList; StyleList styleList; CharStyle charStyle; @@ -539,18 +539,18 @@ private: /** - * Changes the char family of a number of elements an their children. + * Changes the char family of a number of elements an their tqchildren. */ class CharFamilyCommand : public FontCommand { public: - CharFamilyCommand( CharFamily cf, const QString& name, Container* document ); + CharFamilyCommand( CharFamily cf, const TQString& name, Container* document ); virtual void execute(); virtual void unexecute(); private: - typedef QValueVector<CharFamily> FamilyList; + typedef TQValueVector<CharFamily> FamilyList; FamilyList familyList; CharFamily charFamily; |