diff options
Diffstat (limited to 'lib/kformula/kformuladocument.h')
-rw-r--r-- | lib/kformula/kformuladocument.h | 48 |
1 files changed, 25 insertions, 23 deletions
diff --git a/lib/kformula/kformuladocument.h b/lib/kformula/kformuladocument.h index 26d6bdd78..62b2dab3c 100644 --- a/lib/kformula/kformuladocument.h +++ b/lib/kformula/kformuladocument.h @@ -21,11 +21,11 @@ #ifndef KFORMULADOCUMENT_H #define KFORMULADOCUMENT_H -#include <qdom.h> -#include <qobject.h> -#include <qptrlist.h> -#include <qstring.h> -#include <qstringlist.h> +#include <tqdom.h> +#include <tqobject.h> +#include <tqptrlist.h> +#include <tqstring.h> +#include <tqstringlist.h> #include <kaction.h> #include <kcommand.h> @@ -48,10 +48,10 @@ class ElementCreationStrategy; * small utility class representing a sortable (by x,y position) list * of formulas you can use sort() and inSort(item) **/ -class FormulaList: public QPtrList<Container> +class FormulaList: public TQPtrList<Container> { protected: - virtual int compareItems( QPtrCollection::Item a, QPtrCollection::Item b ); + virtual int compareItems( TQPtrCollection::Item a, TQPtrCollection::Item b ); }; @@ -65,8 +65,9 @@ protected: * bother to ask the document. It's legal to directly create * or destroy a Container object. */ -class KOFORMULA_EXPORT Document : public QObject { +class KOFORMULA_EXPORT Document : public TQObject { Q_OBJECT + TQ_OBJECT friend class DocumentWrapper; friend class Container; @@ -76,8 +77,8 @@ public: /** * Creates a formula document. */ - Document( QObject *parent=0, const char *name=0, - const QStringList &args=QStringList() ); + Document( TQObject *tqparent=0, const char *name=0, + const TQStringList &args=TQStringList() ); ~Document(); /** @@ -108,28 +109,28 @@ public: * Load a kformula DomDocument with all its formulas. * This must only be called on a virgin document. */ - bool loadXML( const QDomDocument& doc ); + bool loadXML( const TQDomDocument& doc ); /** * Load a OASIS content.xml DomDocument * @since 1.4 */ - bool loadOasis( const QDomDocument& doc ); + bool loadOasis( const TQDomDocument& doc ); /** * Load the document settings. */ - bool loadDocumentPart( QDomElement node ); + bool loadDocumentPart( TQDomElement node ); /** * Save the document with all its formulae. */ - QDomDocument saveXML(); + TQDomDocument saveXML(); /** * Save the document settings. */ - QDomElement saveDocumentPart( QDomDocument& doc ); + TQDomElement saveDocumentPart( TQDomDocument& doc ); /** @@ -184,13 +185,13 @@ public: /** * Return a kformula DomDocument. */ - static QDomDocument createDomDocument(); + static TQDomDocument createDomDocument(); /** - * Create a MathML Dom Document, deprecates KFO Dom Document for internal layout + * Create a MathML Dom Document, deprecates KFO Dom Document for internal tqlayout * TODO: Shouldn't this go to KoDocument ? */ - QDomDocument createMathMLDomDocument(); + TQDomDocument createMathMLDomDocument(); /** * Set formula creation strategy: old KFormula or MathML/ODF. @@ -198,14 +199,14 @@ public: * * @param strategy -- "Ordinary" for old Kformula, "Oasis" for MathML/ODF */ - void setCreationStrategy( QString strategy ); + void setCreationStrategy( TQString strategy ); public: /** * @returns an iterator for the collection of formulas. */ - QPtrListIterator<Container> formulas(); + TQPtrListIterator<Container> formulas(); SymbolType leftBracketChar(); SymbolType rightBracketChar(); @@ -288,8 +289,9 @@ private: * A Wrapper that constracts the actions and must be given a real * document to work with. */ -class KOFORMULA_EXPORT DocumentWrapper : public QObject { +class KOFORMULA_EXPORT DocumentWrapper : public TQObject { Q_OBJECT + TQ_OBJECT public: @@ -412,7 +414,7 @@ public slots: void removeEnclosing(); void makeGreek(); void insertSymbol(); - void insertSymbol( QString name ); + void insertSymbol( TQString name ); void appendColumn(); void insertColumn(); @@ -491,7 +493,7 @@ private: SymbolType m_leftBracketChar; SymbolType m_rightBracketChar; - QString m_selectedName; + TQString m_selectedName; KConfig* m_config; KoCommandHistory* m_history; |