diff options
Diffstat (limited to 'sip/qtxml/qdom.sip')
-rw-r--r-- | sip/qtxml/qdom.sip | 642 |
1 files changed, 321 insertions, 321 deletions
diff --git a/sip/qtxml/qdom.sip b/sip/qtxml/qdom.sip index 7a156d9..e0c2e09 100644 --- a/sip/qtxml/qdom.sip +++ b/sip/qtxml/qdom.sip @@ -1,51 +1,51 @@ -// This is the SIP interface definition for the QDom classes. +// This is the SIP interface definition for the TQDom classes. // // Copyright (c) 2007 // Riverbank Computing Limited <info@riverbankcomputing.co.uk> // -// This file is part of PyQt. +// This file is part of PyTQt. // -// This copy of PyQt is free software; you can redistribute it and/or modify it +// This copy of PyTQt is free software; you can redistribute it and/or modify it // under the terms of the GNU General Public License as published by the Free // Software Foundation; either version 2, or (at your option) any later // version. // -// PyQt is supplied in the hope that it will be useful, but WITHOUT ANY +// PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS // FOR A PARTICULAR PURPOSE. See the GNU General Public License for more // details. // // You should have received a copy of the GNU General Public License along with -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, +// PyTQt; see the file LICENSE. If not, write to the Free Software Foundation, // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. %ExportedDoc -<Sect2><Title>QDomImplementation (Qt v2.2+)</Title> +<Sect2><Title>TQDomImplementation (TQt v2.2+)</Title> <Para> -<Literal>QDomImplementation</Literal> is fully implemented. +<Literal>TQDomImplementation</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QDomNode (Qt v2.2+)</Title> +<Sect2><Title>TQDomNode (TQt v2.2+)</Title> <Para> -<Literal>QDomNode</Literal> is fully implemented, including the Python +<Literal>TQDomNode</Literal> is fully implemented, including the Python <Literal>==</Literal> and <Literal>!=</Literal> operators. </Para> </Sect2> -<Sect2><Title>QDomNodeList (Qt v2.2+)</Title> +<Sect2><Title>TQDomNodeList (TQt v2.2+)</Title> <Para> -<Literal>QDomNodeList</Literal> is fully implemented. +<Literal>TQDomNodeList</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QDomDocument (Qt v2.2+)</Title> +<Sect2><Title>TQDomDocument (TQt v2.2+)</Title> <FuncSynopsis> <FuncDef>bool <Function>setContent</Function></FuncDef> - <ParamDef>const QCString &<Parameter>buffer</Parameter></ParamDef> + <ParamDef>const TQCString &<Parameter>buffer</Parameter></ParamDef> <ParamDef>bool <Parameter>namespaceProcessing</Parameter></ParamDef> - <ParamDef>QString *<Parameter>errorMsg</Parameter> = 0</ParamDef> + <ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef> <ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef> <ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef> </FuncSynopsis> @@ -54,14 +54,14 @@ This takes the <Literal>buffer</Literal> and <Literal>namespaceProcessing</Literal> parameters and returns a tuple containing the <Literal>bool</Literal> result and the <Literal>errorMsg</Literal>, <Literal>errorLine</Literal> and -<Literal>errorColumn</Literal> values. (Qt v3+) +<Literal>errorColumn</Literal> values. (TQt v3+) </Para> <FuncSynopsis> <FuncDef>bool <Function>setContent</Function></FuncDef> - <ParamDef>const QByteArray &<Parameter>buffer</Parameter></ParamDef> + <ParamDef>const TQByteArray &<Parameter>buffer</Parameter></ParamDef> <ParamDef>bool <Parameter>namespaceProcessing</Parameter></ParamDef> - <ParamDef>QString *<Parameter>errorMsg</Parameter> = 0</ParamDef> + <ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef> <ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef> <ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef> </FuncSynopsis> @@ -70,14 +70,14 @@ This takes the <Literal>buffer</Literal> and <Literal>namespaceProcessing</Literal> parameters and returns a tuple containing the <Literal>bool</Literal> result and the <Literal>errorMsg</Literal>, <Literal>errorLine</Literal> and -<Literal>errorColumn</Literal> values. (Qt v3+) +<Literal>errorColumn</Literal> values. (TQt v3+) </Para> <FuncSynopsis> <FuncDef>bool <Function>setContent</Function></FuncDef> - <ParamDef>const QString &<Parameter>text</Parameter></ParamDef> + <ParamDef>const TQString &<Parameter>text</Parameter></ParamDef> <ParamDef>bool <Parameter>namespaceProcessing</Parameter></ParamDef> - <ParamDef>QString *<Parameter>errorMsg</Parameter> = 0</ParamDef> + <ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef> <ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef> <ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef> </FuncSynopsis> @@ -86,14 +86,14 @@ This takes the <Literal>text</Literal> and <Literal>namespaceProcessing</Literal> parameters and returns a tuple containing the <Literal>bool</Literal> result and the <Literal>errorMsg</Literal>, <Literal>errorLine</Literal> and -<Literal>errorColumn</Literal> values. (Qt v3+) +<Literal>errorColumn</Literal> values. (TQt v3+) </Para> <FuncSynopsis> <FuncDef>bool <Function>setContent</Function></FuncDef> - <ParamDef>const QIODevice *<Parameter>dev</Parameter></ParamDef> + <ParamDef>const TQIODevice *<Parameter>dev</Parameter></ParamDef> <ParamDef>bool <Parameter>namespaceProcessing</Parameter></ParamDef> - <ParamDef>QString *<Parameter>errorMsg</Parameter> = 0</ParamDef> + <ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef> <ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef> <ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef> </FuncSynopsis> @@ -102,13 +102,13 @@ This takes the <Literal>dev</Literal> and <Literal>namespaceProcessing</Literal> parameters and returns a tuple containing the <Literal>bool</Literal> result and the <Literal>errorMsg</Literal>, <Literal>errorLine</Literal> and -<Literal>errorColumn</Literal> values. (Qt v3+) +<Literal>errorColumn</Literal> values. (TQt v3+) </Para> <FuncSynopsis> <FuncDef>bool <Function>setContent</Function></FuncDef> - <ParamDef>const QCString &<Parameter>buffer</Parameter></ParamDef> - <ParamDef>QString *<Parameter>errorMsg</Parameter> = 0</ParamDef> + <ParamDef>const TQCString &<Parameter>buffer</Parameter></ParamDef> + <ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef> <ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef> <ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef> </FuncSynopsis> @@ -116,13 +116,13 @@ containing the <Literal>bool</Literal> result and the This takes the <Literal>buffer</Literal> parameter only and returns a tuple containing the <Literal>bool</Literal> result and the <Literal>errorMsg</Literal>, <Literal>errorLine</Literal> and -<Literal>errorColumn</Literal> values. (Qt v3+) +<Literal>errorColumn</Literal> values. (TQt v3+) </Para> <FuncSynopsis> <FuncDef>bool <Function>setContent</Function></FuncDef> - <ParamDef>const QByteArray &<Parameter>buffer</Parameter></ParamDef> - <ParamDef>QString *<Parameter>errorMsg</Parameter> = 0</ParamDef> + <ParamDef>const TQByteArray &<Parameter>buffer</Parameter></ParamDef> + <ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef> <ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef> <ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef> </FuncSynopsis> @@ -130,13 +130,13 @@ containing the <Literal>bool</Literal> result and the This takes the <Literal>buffer</Literal> parameter only and returns a tuple containing the <Literal>bool</Literal> result and the <Literal>errorMsg</Literal>, <Literal>errorLine</Literal> and -<Literal>errorColumn</Literal> values. (Qt v3+) +<Literal>errorColumn</Literal> values. (TQt v3+) </Para> <FuncSynopsis> <FuncDef>bool <Function>setContent</Function></FuncDef> - <ParamDef>const QString &<Parameter>text</Parameter></ParamDef> - <ParamDef>QString *<Parameter>errorMsg</Parameter> = 0</ParamDef> + <ParamDef>const TQString &<Parameter>text</Parameter></ParamDef> + <ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef> <ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef> <ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef> </FuncSynopsis> @@ -144,13 +144,13 @@ containing the <Literal>bool</Literal> result and the This takes the <Literal>text</Literal> parameter only and returns a tuple containing the <Literal>bool</Literal> result and the <Literal>errorMsg</Literal>, <Literal>errorLine</Literal> and -<Literal>errorColumn</Literal> values. (Qt v3+) +<Literal>errorColumn</Literal> values. (TQt v3+) </Para> <FuncSynopsis> <FuncDef>bool <Function>setContent</Function></FuncDef> - <ParamDef>const QIODevice *<Parameter>dev</Parameter></ParamDef> - <ParamDef>QString *<Parameter>errorMsg</Parameter> = 0</ParamDef> + <ParamDef>const TQIODevice *<Parameter>dev</Parameter></ParamDef> + <ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef> <ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef> <ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef> </FuncSynopsis> @@ -158,128 +158,128 @@ containing the <Literal>bool</Literal> result and the This takes the <Literal>dev</Literal> parameter only and returns a tuple containing the <Literal>bool</Literal> result and the <Literal>errorMsg</Literal>, <Literal>errorLine</Literal> and -<Literal>errorColumn</Literal> values. (Qt v3+) +<Literal>errorColumn</Literal> values. (TQt v3+) </Para> <FuncSynopsis> <FuncDef>bool <Function>setContent</Function></FuncDef> - <ParamDef>QXmlInputSource *<Parameter>source</Parameter></ParamDef> - <ParamDef>QXmlReader *<Parameter>reader</Parameter></ParamDef> - <ParamDef>QString *<Parameter>errorMsg</Parameter> = 0</ParamDef> + <ParamDef>TQXmlInputSource *<Parameter>source</Parameter></ParamDef> + <ParamDef>TQXmlReader *<Parameter>reader</Parameter></ParamDef> + <ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef> <ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef> <ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef> </FuncSynopsis> <Para> -Not yet implemented. (Qt v3.2.0+) +Not yet implemented. (TQt v3.2.0+) </Para> </Sect2> -<Sect2><Title>QDomDocumentFragment (Qt v2.2+)</Title> +<Sect2><Title>TQDomDocumentFragment (TQt v2.2+)</Title> <Para> -<Literal>QDomDocumentFragment</Literal> is fully implemented. +<Literal>TQDomDocumentFragment</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QDomDocumentType (Qt v2.2+)</Title> +<Sect2><Title>TQDomDocumentType (TQt v2.2+)</Title> <Para> -<Literal>QDomDocumentType</Literal> is fully implemented. +<Literal>TQDomDocumentType</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QDomNamedNodeMap (Qt v2.2+)</Title> +<Sect2><Title>TQDomNamedNodeMap (TQt v2.2+)</Title> <Para> -<Literal>QDomNamedNodeMap</Literal> is fully implemented. +<Literal>TQDomNamedNodeMap</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QDomCharacterData (Qt v2.2+)</Title> +<Sect2><Title>TQDomCharacterData (TQt v2.2+)</Title> <Para> -<Literal>QDomCharacterData</Literal> is fully implemented. +<Literal>TQDomCharacterData</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QDomAttr (Qt v2.2+)</Title> +<Sect2><Title>TQDomAttr (TQt v2.2+)</Title> <Para> -<Literal>QDomAttr</Literal> is fully implemented. +<Literal>TQDomAttr</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QDomElement (Qt v2.2+)</Title> +<Sect2><Title>TQDomElement (TQt v2.2+)</Title> <Para> -<Literal>QDomElement</Literal> is fully implemented. +<Literal>TQDomElement</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QDomText (Qt v2.2+)</Title> +<Sect2><Title>TQDomText (TQt v2.2+)</Title> <Para> -<Literal>QDomText</Literal> is fully implemented. +<Literal>TQDomText</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QDomComment (Qt v2.2+)</Title> +<Sect2><Title>TQDomComment (TQt v2.2+)</Title> <Para> -<Literal>QDomComment</Literal> is fully implemented. +<Literal>TQDomComment</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QDomCDATASection (Qt v2.2+)</Title> +<Sect2><Title>TQDomCDATASection (TQt v2.2+)</Title> <Para> -<Literal>QDomCDATASection</Literal> is fully implemented. +<Literal>TQDomCDATASection</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QDomNotation (Qt v2.2+)</Title> +<Sect2><Title>TQDomNotation (TQt v2.2+)</Title> <Para> -<Literal>QDomNotation</Literal> is fully implemented. +<Literal>TQDomNotation</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QDomEntity (Qt v2.2+)</Title> +<Sect2><Title>TQDomEntity (TQt v2.2+)</Title> <Para> -<Literal>QDomEntity</Literal> is fully implemented. +<Literal>TQDomEntity</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QDomEntityReference (Qt v2.2+)</Title> +<Sect2><Title>TQDomEntityReference (TQt v2.2+)</Title> <Para> -<Literal>QDomEntityReference</Literal> is fully implemented. +<Literal>TQDomEntityReference</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QDomProcessingInstruction (Qt v2.2+)</Title> +<Sect2><Title>TQDomProcessingInstruction (TQt v2.2+)</Title> <Para> -<Literal>QDomProcessingInstruction</Literal> is fully implemented. +<Literal>TQDomProcessingInstruction</Literal> is fully implemented. </Para> </Sect2> %End -%If (Qt_DOM) -%If (Qt_2_2_0 -) +%If (TQt_DOM) +%If (TQt_2_2_0 -) -class QDomImplementation +class TQDomImplementation { %TypeHeaderCode #include <qdom.h> %End public: - QDomImplementation(); - QDomImplementation(const QDomImplementation &); + TQDomImplementation(); + TQDomImplementation(const TQDomImplementation &); - virtual bool hasFeature(const QString &,const QString &); -%If (Qt_3_0_0 -) - virtual QDomDocumentType createDocumentType(const QString &, - const QString &, - const QString &); - virtual QDomDocument createDocument(const QString &,const QString &, - const QDomDocumentType &); + virtual bool hasFeature(const TQString &,const TQString &); +%If (TQt_3_0_0 -) + virtual TQDomDocumentType createDocumentType(const TQString &, + const TQString &, + const TQString &); + virtual TQDomDocument createDocument(const TQString &,const TQString &, + const TQDomDocumentType &); %End bool isNull(); }; -class QDomNode +class TQDomNode { %TypeHeaderCode #include <qdom.h> @@ -303,47 +303,47 @@ public: CharacterDataNode }; - QDomNode(); - QDomNode(const QDomNode &); + TQDomNode(); + TQDomNode(const TQDomNode &); - bool operator==(const QDomNode &) const; - bool operator!=(const QDomNode &) const; + bool operator==(const TQDomNode &) const; + bool operator!=(const TQDomNode &) const; - virtual QDomNode insertBefore(const QDomNode &,const QDomNode &); - virtual QDomNode insertAfter(const QDomNode &,const QDomNode &); - virtual QDomNode replaceChild(const QDomNode &,const QDomNode &); - virtual QDomNode removeChild(const QDomNode &); - virtual QDomNode appendChild(const QDomNode &); -%If (Qt_3_0_0 -) + virtual TQDomNode insertBefore(const TQDomNode &,const TQDomNode &); + virtual TQDomNode insertAfter(const TQDomNode &,const TQDomNode &); + virtual TQDomNode replaceChild(const TQDomNode &,const TQDomNode &); + virtual TQDomNode removeChild(const TQDomNode &); + virtual TQDomNode appendChild(const TQDomNode &); +%If (TQt_3_0_0 -) virtual bool hasChildNodes() const; %End - virtual QDomNode cloneNode(bool = 1) const; -%If (Qt_3_0_0 -) + virtual TQDomNode cloneNode(bool = 1) const; +%If (TQt_3_0_0 -) virtual void normalize(); - virtual bool isSupported(const QString &,const QString &) const; + virtual bool isSupported(const TQString &,const TQString &) const; %End - virtual QString nodeName() const; + virtual TQString nodeName() const; virtual NodeType nodeType() const; - virtual QDomNode parentNode() const; - virtual QDomNodeList childNodes() const; - virtual QDomNode firstChild() const; - virtual QDomNode lastChild() const; - virtual QDomNode previousSibling() const; - virtual QDomNode nextSibling() const; - virtual QDomNamedNodeMap attributes() const; - virtual QDomDocument ownerDocument() const; -%If (Qt_3_0_0 -) - virtual QString namespaceURI() const; - virtual QString localName() const; + virtual TQDomNode parentNode() const; + virtual TQDomNodeList childNodes() const; + virtual TQDomNode firstChild() const; + virtual TQDomNode lastChild() const; + virtual TQDomNode previousSibling() const; + virtual TQDomNode nextSibling() const; + virtual TQDomNamedNodeMap attributes() const; + virtual TQDomDocument ownerDocument() const; +%If (TQt_3_0_0 -) + virtual TQString namespaceURI() const; + virtual TQString localName() const; virtual bool hasAttributes() const; %End - virtual QString nodeValue() const; - virtual void setNodeValue(const QString &); -%If (Qt_3_0_0 -) - virtual QString prefix() const; - virtual void setPrefix(const QString &); + virtual TQString nodeValue() const; + virtual void setNodeValue(const TQString &); +%If (TQt_3_0_0 -) + virtual TQString prefix() const; + virtual void setPrefix(const TQString &); %End virtual bool isAttr() const; @@ -360,217 +360,217 @@ public: virtual bool isCharacterData() const; virtual bool isComment() const; - QDomNode namedItem(const QString &) const; + TQDomNode namedItem(const TQString &) const; bool isNull() const; void clear(); - QDomAttr toAttr(); - QDomCDATASection toCDATASection(); - QDomDocumentFragment toDocumentFragment(); - QDomDocument toDocument(); - QDomDocumentType toDocumentType(); - QDomElement toElement(); - QDomEntityReference toEntityReference(); - QDomText toText(); - QDomEntity toEntity(); - QDomNotation toNotation(); - QDomProcessingInstruction toProcessingInstruction(); - QDomCharacterData toCharacterData(); - QDomComment toComment(); - - void save(QTextStream &,int) const; + TQDomAttr toAttr(); + TQDomCDATASection toCDATASection(); + TQDomDocumentFragment toDocumentFragment(); + TQDomDocument toDocument(); + TQDomDocumentType toDocumentType(); + TQDomElement toElement(); + TQDomEntityReference toEntityReference(); + TQDomText toText(); + TQDomEntity toEntity(); + TQDomNotation toNotation(); + TQDomProcessingInstruction toProcessingInstruction(); + TQDomCharacterData toCharacterData(); + TQDomComment toComment(); + + void save(TQTextStream &,int) const; }; -class QDomNodeList +class TQDomNodeList { %TypeHeaderCode #include <qdom.h> %End public: - QDomNodeList(); - QDomNodeList(const QDomNodeList &); + TQDomNodeList(); + TQDomNodeList(const TQDomNodeList &); - virtual QDomNode item(int) const; + virtual TQDomNode item(int) const; virtual uint length() const; uint count() const; }; -class QDomDocumentType : QDomNode +class TQDomDocumentType : TQDomNode { %TypeHeaderCode #include <qdom.h> %End public: - QDomDocumentType(); - QDomDocumentType(const QDomDocumentType &); + TQDomDocumentType(); + TQDomDocumentType(const TQDomDocumentType &); - virtual QString name() const; - virtual QDomNamedNodeMap entities() const; - virtual QDomNamedNodeMap notations() const; -%If (Qt_3_0_0 -) - virtual QString publicId() const; - virtual QString systemId() const; - virtual QString internalSubset() const; + virtual TQString name() const; + virtual TQDomNamedNodeMap entities() const; + virtual TQDomNamedNodeMap notations() const; +%If (TQt_3_0_0 -) + virtual TQString publicId() const; + virtual TQString systemId() const; + virtual TQString internalSubset() const; %End - QDomNode::NodeType nodeType() const; + TQDomNode::NodeType nodeType() const; bool isDocumentType() const; }; -class QDomDocument : QDomNode +class TQDomDocument : TQDomNode { %TypeHeaderCode #include <qdom.h> %End public: - QDomDocument(); - QDomDocument(const QString &); -%If (Qt_3_0_0 -) - QDomDocument(const QDomDocumentType &); -%End - QDomDocument(const QDomDocument &); - - QDomElement createElement(const QString &); - QDomDocumentFragment createDocumentFragment(); - QDomText createTextNode(const QString &); - QDomComment createComment(const QString &); - QDomCDATASection createCDATASection(const QString &); - QDomProcessingInstruction createProcessingInstruction(const QString &, - const QString &); - QDomAttr createAttribute(const QString &); - QDomEntityReference createEntityReference(const QString &); - QDomNodeList elementsByTagName(const QString &) const; -%If (Qt_3_0_0 -) - QDomElement elementById(const QString &); -%End - - QDomDocumentType doctype() const; - QDomImplementation implementation() const; - QDomElement documentElement() const; - -%If (- Qt_3_0_0) - bool setContent(const QCString &); - bool setContent(const QByteArray &); - bool setContent(const QString &); - bool setContent(QIODevice *); -%End -%If (Qt_3_0_0 -) + TQDomDocument(); + TQDomDocument(const TQString &); +%If (TQt_3_0_0 -) + TQDomDocument(const TQDomDocumentType &); +%End + TQDomDocument(const TQDomDocument &); + + TQDomElement createElement(const TQString &); + TQDomDocumentFragment createDocumentFragment(); + TQDomText createTextNode(const TQString &); + TQDomComment createComment(const TQString &); + TQDomCDATASection createCDATASection(const TQString &); + TQDomProcessingInstruction createProcessingInstruction(const TQString &, + const TQString &); + TQDomAttr createAttribute(const TQString &); + TQDomEntityReference createEntityReference(const TQString &); + TQDomNodeList elementsByTagName(const TQString &) const; +%If (TQt_3_0_0 -) + TQDomElement elementById(const TQString &); +%End + + TQDomDocumentType doctype() const; + TQDomImplementation implementation() const; + TQDomElement documentElement() const; + +%If (- TQt_3_0_0) + bool setContent(const TQCString &); + bool setContent(const TQByteArray &); + bool setContent(const TQString &); + bool setContent(TQIODevice *); +%End +%If (TQt_3_0_0 -) // Note that we need handwritten code for these because of the need to // allocate storage for the error string. - SIP_PYTUPLE setContent(const QCString &,bool); + SIP_PYTUPLE setContent(const TQCString &,bool); %MethodCode bool res; - QString *emsg = new QString(); + TQString *emsg = new TQString(); int eline, ecol; Py_BEGIN_ALLOW_THREADS - res = sipCpp -> QDomDocument::setContent(*a0,a1,emsg,&eline,&ecol); + res = sipCpp -> TQDomDocument::setContent(*a0,a1,emsg,&eline,&ecol); Py_END_ALLOW_THREADS sipRes = sipBuildResult(&sipIsErr, "(bNii)", res, emsg, sipType_QString, (PyObject *)0, eline, ecol); %End - SIP_PYTUPLE setContent(const QByteArray &,bool); + SIP_PYTUPLE setContent(const TQByteArray &,bool); %MethodCode bool res; - QString *emsg = new QString(); + TQString *emsg = new TQString(); int eline, ecol; Py_BEGIN_ALLOW_THREADS - res = sipCpp -> QDomDocument::setContent(*a0,a1,emsg,&eline,&ecol); + res = sipCpp -> TQDomDocument::setContent(*a0,a1,emsg,&eline,&ecol); Py_END_ALLOW_THREADS sipRes = sipBuildResult(&sipIsErr, "(bNii)", res, emsg, sipType_QString, (PyObject *)0, eline, ecol); %End - SIP_PYTUPLE setContent(const QString &,bool); + SIP_PYTUPLE setContent(const TQString &,bool); %MethodCode bool res; - QString *emsg = new QString(); + TQString *emsg = new TQString(); int eline, ecol; Py_BEGIN_ALLOW_THREADS - res = sipCpp -> QDomDocument::setContent(*a0,a1,emsg,&eline,&ecol); + res = sipCpp -> TQDomDocument::setContent(*a0,a1,emsg,&eline,&ecol); Py_END_ALLOW_THREADS sipRes = sipBuildResult(&sipIsErr, "(bNii)", res, emsg, sipType_QString, (PyObject *)0, eline, ecol); %End - SIP_PYTUPLE setContent(QIODevice *,bool); + SIP_PYTUPLE setContent(TQIODevice *,bool); %MethodCode bool res; - QString *emsg = new QString(); + TQString *emsg = new TQString(); int eline, ecol; Py_BEGIN_ALLOW_THREADS - res = sipCpp -> QDomDocument::setContent(a0,a1,emsg,&eline,&ecol); + res = sipCpp -> TQDomDocument::setContent(a0,a1,emsg,&eline,&ecol); Py_END_ALLOW_THREADS sipRes = sipBuildResult(&sipIsErr, "(bNii)", res, emsg, sipType_QString, (PyObject *)0, eline, ecol); %End - SIP_PYTUPLE setContent(const QCString &); + SIP_PYTUPLE setContent(const TQCString &); %MethodCode bool res; - QString *emsg = new QString(); + TQString *emsg = new TQString(); int eline, ecol; Py_BEGIN_ALLOW_THREADS - res = sipCpp -> QDomDocument::setContent(*a0,emsg,&eline,&ecol); + res = sipCpp -> TQDomDocument::setContent(*a0,emsg,&eline,&ecol); Py_END_ALLOW_THREADS sipRes = sipBuildResult(&sipIsErr, "(bNii)", res, emsg, sipType_QString, (PyObject *)0, eline, ecol); %End - SIP_PYTUPLE setContent(const QByteArray &); + SIP_PYTUPLE setContent(const TQByteArray &); %MethodCode bool res; - QString *emsg = new QString(); + TQString *emsg = new TQString(); int eline, ecol; Py_BEGIN_ALLOW_THREADS - res = sipCpp -> QDomDocument::setContent(*a0,emsg,&eline,&ecol); + res = sipCpp -> TQDomDocument::setContent(*a0,emsg,&eline,&ecol); Py_END_ALLOW_THREADS sipRes = sipBuildResult(&sipIsErr, "(bNii)", res, emsg, sipType_QString, (PyObject *)0, eline, ecol); %End - SIP_PYTUPLE setContent(const QString &); + SIP_PYTUPLE setContent(const TQString &); %MethodCode bool res; - QString *emsg = new QString(); + TQString *emsg = new TQString(); int eline, ecol; Py_BEGIN_ALLOW_THREADS - res = sipCpp -> QDomDocument::setContent(*a0,emsg,&eline,&ecol); + res = sipCpp -> TQDomDocument::setContent(*a0,emsg,&eline,&ecol); Py_END_ALLOW_THREADS sipRes = sipBuildResult(&sipIsErr, "(bNii)", res, emsg, sipType_QString, (PyObject *)0, eline, ecol); %End - SIP_PYTUPLE setContent(QIODevice *); + SIP_PYTUPLE setContent(TQIODevice *); %MethodCode bool res; - QString *emsg = new QString(); + TQString *emsg = new TQString(); int eline, ecol; Py_BEGIN_ALLOW_THREADS - res = sipCpp -> QDomDocument::setContent(a0,emsg,&eline,&ecol); + res = sipCpp -> TQDomDocument::setContent(a0,emsg,&eline,&ecol); Py_END_ALLOW_THREADS sipRes = sipBuildResult(&sipIsErr, "(bNii)", res, emsg, @@ -579,294 +579,294 @@ public: %End -%If (Qt_3_2_0 -) -// bool setContent(QXmlInputSource *,QXmlReader *,QString * = 0,int * = 0, +%If (TQt_3_2_0 -) +// bool setContent(TQXmlInputSource *,TQXmlReader *,TQString * = 0,int * = 0, // int * = 0); %End - QDomNode::NodeType nodeType() const; + TQDomNode::NodeType nodeType() const; bool isDocument() const; - QString toString() const; -%If (Qt_3_1_0 -) - QString toString(int) const; + TQString toString() const; +%If (TQt_3_1_0 -) + TQString toString(int) const; %End - QCString toCString() const; -%If (Qt_3_1_0 -) - QCString toCString(int) const; + TQCString toCString() const; +%If (TQt_3_1_0 -) + TQCString toCString(int) const; %End }; -class QDomNamedNodeMap +class TQDomNamedNodeMap { %TypeHeaderCode #include <qdom.h> %End public: - QDomNamedNodeMap(); - QDomNamedNodeMap(const QDomNamedNodeMap &); + TQDomNamedNodeMap(); + TQDomNamedNodeMap(const TQDomNamedNodeMap &); - QDomNode namedItem(const QString &) const; - QDomNode setNamedItem(const QDomNode &); - QDomNode removeNamedItem(const QString &); - QDomNode item(int) const; -%If (Qt_3_0_0 -) - QDomNode namedItemNS(const QString &,const QString &) const; - QDomNode setNamedItemNS(const QDomNode &); - QDomNode removeNamedItemNS(const QString &,const QString &); + TQDomNode namedItem(const TQString &) const; + TQDomNode setNamedItem(const TQDomNode &); + TQDomNode removeNamedItem(const TQString &); + TQDomNode item(int) const; +%If (TQt_3_0_0 -) + TQDomNode namedItemNS(const TQString &,const TQString &) const; + TQDomNode setNamedItemNS(const TQDomNode &); + TQDomNode removeNamedItemNS(const TQString &,const TQString &); %End uint length() const; -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) uint count() const; %End - bool contains(const QString &) const; + bool contains(const TQString &) const; }; -class QDomDocumentFragment : QDomNode +class TQDomDocumentFragment : TQDomNode { %TypeHeaderCode #include <qdom.h> %End public: - QDomDocumentFragment(); - QDomDocumentFragment(const QDomDocumentFragment &); + TQDomDocumentFragment(); + TQDomDocumentFragment(const TQDomDocumentFragment &); - QDomNode::NodeType nodeType() const; + TQDomNode::NodeType nodeType() const; bool isDocumentFragment() const; }; -class QDomCharacterData : QDomNode +class TQDomCharacterData : TQDomNode { %TypeHeaderCode #include <qdom.h> %End public: - QDomCharacterData(); - QDomCharacterData(const QDomCharacterData &); + TQDomCharacterData(); + TQDomCharacterData(const TQDomCharacterData &); - virtual QString substringData(unsigned long,unsigned long); - virtual void appendData(const QString &); - virtual void insertData(unsigned long,const QString &); + virtual TQString substringData(unsigned long,unsigned long); + virtual void appendData(const TQString &); + virtual void insertData(unsigned long,const TQString &); virtual void deleteData(unsigned long,unsigned long); - virtual void replaceData(unsigned long,unsigned long,const QString &); + virtual void replaceData(unsigned long,unsigned long,const TQString &); virtual uint length() const; - virtual QString data() const; - virtual void setData(const QString &); + virtual TQString data() const; + virtual void setData(const TQString &); - QDomNode::NodeType nodeType() const; + TQDomNode::NodeType nodeType() const; bool isCharacterData() const; }; -class QDomAttr : QDomNode +class TQDomAttr : TQDomNode { %TypeHeaderCode #include <qdom.h> %End public: - QDomAttr(); - QDomAttr(const QDomAttr&); + TQDomAttr(); + TQDomAttr(const TQDomAttr&); - virtual QString name() const; + virtual TQString name() const; virtual bool specified() const; -%If (Qt_3_0_0 -) - virtual QDomElement ownerElement() const; +%If (TQt_3_0_0 -) + virtual TQDomElement ownerElement() const; %End - virtual QString value() const; - virtual void setValue(const QString &); + virtual TQString value() const; + virtual void setValue(const TQString &); - QDomNode::NodeType nodeType() const; + TQDomNode::NodeType nodeType() const; bool isAttr() const; }; -class QDomElement : QDomNode +class TQDomElement : TQDomNode { %TypeHeaderCode #include <qdom.h> %End public: - QDomElement(); - QDomElement(const QDomElement &); - - QString attribute(const QString &, - const QString & = QString::null) const; - void setAttribute(const QString &,const QString &); - void setAttribute(const QString &,int /Constrained/); -// void setAttribute(const QString &,uint); -%If (Qt_3_2_0 -) -// void setAttribute(const QString &,long); -// void setAttribute(const QString &,ulong); -%End - void setAttribute(const QString &,double); - void removeAttribute(const QString &); - QDomAttr attributeNode(const QString &); - QDomAttr setAttributeNode(const QDomAttr &); - QDomAttr removeAttributeNode(const QDomAttr &); - virtual QDomNodeList elementsByTagName(const QString &) const; - bool hasAttribute(const QString &) const; -%If (- Qt_3_0_0) + TQDomElement(); + TQDomElement(const TQDomElement &); + + TQString attribute(const TQString &, + const TQString & = TQString::null) const; + void setAttribute(const TQString &,const TQString &); + void setAttribute(const TQString &,int /Constrained/); +// void setAttribute(const TQString &,uint); +%If (TQt_3_2_0 -) +// void setAttribute(const TQString &,long); +// void setAttribute(const TQString &,ulong); +%End + void setAttribute(const TQString &,double); + void removeAttribute(const TQString &); + TQDomAttr attributeNode(const TQString &); + TQDomAttr setAttributeNode(const TQDomAttr &); + TQDomAttr removeAttributeNode(const TQDomAttr &); + virtual TQDomNodeList elementsByTagName(const TQString &) const; + bool hasAttribute(const TQString &) const; +%If (- TQt_3_0_0) void normalize(); %End -%If (Qt_3_0_0 -) - QString attributeNS(const QString,const QString &, - const QString &) const; - void setAttributeNS(const QString,const QString &,const QString &); - void setAttributeNS(const QString,const QString &,int /Constrained/); -// void setAttributeNS(const QString,const QString &,uint); -%If (Qt_3_2_0 -) -// void setAttributeNS(const QString &,const QString &,long); -// void setAttributeNS(const QString &,const QString &,ulong); +%If (TQt_3_0_0 -) + TQString attributeNS(const TQString,const TQString &, + const TQString &) const; + void setAttributeNS(const TQString,const TQString &,const TQString &); + void setAttributeNS(const TQString,const TQString &,int /Constrained/); +// void setAttributeNS(const TQString,const TQString &,uint); +%If (TQt_3_2_0 -) +// void setAttributeNS(const TQString &,const TQString &,long); +// void setAttributeNS(const TQString &,const TQString &,ulong); %End - void setAttributeNS(const QString,const QString &,double); - void removeAttributeNS(const QString &,const QString &); - QDomAttr attributeNodeNS(const QString &,const QString &); - QDomAttr setAttributeNodeNS(const QDomAttr &); - virtual QDomNodeList elementsByTagNameNS(const QString &, - const QString &) const; - bool hasAttributeNS(const QString &,const QString &) const; + void setAttributeNS(const TQString,const TQString &,double); + void removeAttributeNS(const TQString &,const TQString &); + TQDomAttr attributeNodeNS(const TQString &,const TQString &); + TQDomAttr setAttributeNodeNS(const TQDomAttr &); + virtual TQDomNodeList elementsByTagNameNS(const TQString &, + const TQString &) const; + bool hasAttributeNS(const TQString &,const TQString &) const; %End - QString tagName() const; - void setTagName(const QString &); + TQString tagName() const; + void setTagName(const TQString &); - QDomNamedNodeMap attributes() const; - QDomNode::NodeType nodeType() const; + TQDomNamedNodeMap attributes() const; + TQDomNode::NodeType nodeType() const; bool isElement() const; - QString text() const; + TQString text() const; }; -class QDomText : QDomCharacterData +class TQDomText : TQDomCharacterData { %TypeHeaderCode #include <qdom.h> %End public: - QDomText(); - QDomText(const QDomText &); + TQDomText(); + TQDomText(const TQDomText &); - QDomText splitText(int); + TQDomText splitText(int); - QDomNode::NodeType nodeType() const; + TQDomNode::NodeType nodeType() const; bool isText() const; }; -class QDomComment : QDomCharacterData +class TQDomComment : TQDomCharacterData { %TypeHeaderCode #include <qdom.h> %End public: - QDomComment(); - QDomComment(const QDomComment &); + TQDomComment(); + TQDomComment(const TQDomComment &); - QDomNode::NodeType nodeType() const; + TQDomNode::NodeType nodeType() const; bool isComment() const; }; -class QDomCDATASection : QDomText +class TQDomCDATASection : TQDomText { %TypeHeaderCode #include <qdom.h> %End public: - QDomCDATASection(); - QDomCDATASection(const QDomCDATASection&); + TQDomCDATASection(); + TQDomCDATASection(const TQDomCDATASection&); - QDomNode::NodeType nodeType() const; + TQDomNode::NodeType nodeType() const; bool isCDATASection() const; }; -class QDomNotation : QDomNode +class TQDomNotation : TQDomNode { %TypeHeaderCode #include <qdom.h> %End public: - QDomNotation(); - QDomNotation(const QDomNotation &); + TQDomNotation(); + TQDomNotation(const TQDomNotation &); - QString publicId() const; - QString systemId() const; + TQString publicId() const; + TQString systemId() const; - QDomNode::NodeType nodeType() const; + TQDomNode::NodeType nodeType() const; bool isNotation() const; }; -class QDomEntity : QDomNode +class TQDomEntity : TQDomNode { %TypeHeaderCode #include <qdom.h> %End public: - QDomEntity(); - QDomEntity(const QDomEntity &); + TQDomEntity(); + TQDomEntity(const TQDomEntity &); - virtual QString publicId() const; - virtual QString systemId() const; - virtual QString notationName() const; + virtual TQString publicId() const; + virtual TQString systemId() const; + virtual TQString notationName() const; - QDomNode::NodeType nodeType() const; + TQDomNode::NodeType nodeType() const; bool isEntity() const; }; -class QDomEntityReference : QDomNode +class TQDomEntityReference : TQDomNode { %TypeHeaderCode #include <qdom.h> %End public: - QDomEntityReference(); - QDomEntityReference(const QDomEntityReference &); + TQDomEntityReference(); + TQDomEntityReference(const TQDomEntityReference &); - QDomNode::NodeType nodeType() const; + TQDomNode::NodeType nodeType() const; bool isEntityReference() const; }; -class QDomProcessingInstruction : QDomNode +class TQDomProcessingInstruction : TQDomNode { %TypeHeaderCode #include <qdom.h> %End public: - QDomProcessingInstruction(); - QDomProcessingInstruction(const QDomProcessingInstruction &); + TQDomProcessingInstruction(); + TQDomProcessingInstruction(const TQDomProcessingInstruction &); - virtual QString target() const; + virtual TQString target() const; - virtual QString data() const; - virtual void setData(const QString &); + virtual TQString data() const; + virtual void setData(const TQString &); - QDomNode::NodeType nodeType() const; + TQDomNode::NodeType nodeType() const; bool isProcessingInstruction() const; }; |