⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qdom-h.html

📁 qtopiaphone英文帮助,用于初学者和开发人员,初学者可以用来学习,开发人员可以用来资料查询.
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Qt Toolkit - qdom.h include file</title><style type="text/css"><!--h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }a:link { color: #004faf; text-decoration: none }a:visited { color: #672967; text-decoration: none }body { background: white; color: black; }--></style></head><body bgcolor="#ffffff"><table width="100%"><tr><td><a href="index.html"><img width="100" height="100" src="qtlogo.png"alt="Home" border="0"><img width="100"height="100" src="face.png" alt="Home" border="0"></a><td valign="top"><div align="right"><img src="dochead.png" width="472" height="27"><br><a href="classes.html"><b>Classes</b></a>- <a href="annotated.html">Annotated</a>- <a href="hierarchy.html">Tree</a>- <a href="functions.html">Functions</a>- <a href="index.html">Home</a>- <a href="topicals.html"><b>Structure</b>  <font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" align="center" size=32>Qte</font></a></div></table><h1 align=center>qdom.h</h1><br clear="all">This is the verbatim text of the qdom.h include file.  It isprovided only for illustration; the copyrightremains with Trolltech.<hr><pre>/****************************************************************************** &#36;Id&#58; qt/src/xml/qdom.h   2.3.8   edited 2004-05-12 $**** Definition of QDomDocument and related classes.**** Created : 000518**** Copyright (C) 1992-2000 Trolltech AS.  All rights reserved.**** This file is part of the XML module of the Qt GUI Toolkit.**** This file may be distributed under the terms of the Q Public License** as defined by Trolltech AS of Norway and appearing in the file** LICENSE.QPL included in the packaging of this file.**** This file may be distributed and/or modified under the terms of the** GNU General Public License version 2 as published by the Free Software** Foundation and appearing in the file LICENSE.GPL included in the** packaging of this file.**** Licensees holding valid Qt Enterprise Edition licenses may use this** file in accordance with the Qt Commercial License Agreement provided** with the Software.**** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.**** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for**   information about Qt Commercial License Agreements.** See http://www.trolltech.com/qpl/ for QPL licensing information.** See http://www.trolltech.com/gpl/ for GPL licensing information.**** Contact info@trolltech.com if any conditions of this licensing are** not clear to you.************************************************************************/#ifndef QDOM_H#define QDOM_H#ifndef QT_H#include &lt;qstring.h&gt;#include &lt;qdict.h&gt;#include &lt;qrect.h&gt;#include &lt;qfont.h&gt;#include &lt;qpen.h&gt;#include &lt;qpoint.h&gt;#include &lt;qsize.h&gt;#include &lt;qvariant.h&gt;#include &lt;qmime.h&gt;#endif // QT_H#include &lt;qmodules.h&gt;#if !defined(QT_MODULE_XML)#define QM_EXPORT#else#define QM_EXPORT Q_EXPORT#endif#ifndef QT_NO_DOMclass <a href="qwidget.html">QWidget</a>;class <a href="qlayout.html">QLayout</a>;class <a href="qiodevice.html">QIODevice</a>;class <a href="qtextstream.html">QTextStream</a>;class QDOM_DocumentPrivate;class QDOM_DocumentTypePrivate;class QDOM_DocumentFragmentPrivate;class QDOM_NodePrivate;class QDOM_NodeListPrivate;class QDOM_ImplementationPrivate;class QDOM_ElementPrivate;class QDOM_NotationPrivate;class QDOM_EntityPrivate;class QDOM_EntityReferencePrivate;class QDOM_ProcessingInstructionPrivate;class QDOM_AttrPrivate;class QDOM_CharacterDataPrivate;class QDOM_TextPrivate;class QDOM_CommentPrivate;class QDOM_CDATASectionPrivate;class QDOM_NamedNodeMapPrivate;class QDOM_ImplementationPrivate;class <a href="qdomnodelist.html">QDomNodeList</a>;class <a href="qdomelement.html">QDomElement</a>;class <a href="qdomtext.html">QDomText</a>;class <a href="qdomcomment.html">QDomComment</a>;class <a href="qdomcdatasection.html">QDomCDATASection</a>;class <a href="qdomprocessinginstruction.html">QDomProcessingInstruction</a>;class <a href="qdomattr.html">QDomAttr</a>;class <a href="qdomentityreference.html">QDomEntityReference</a>;class <a href="qdomdocument.html">QDomDocument</a>;class <a href="qdomnamednodemap.html">QDomNamedNodeMap</a>;class <a href="qdomdocument.html">QDomDocument</a>;class <a href="qdomdocumentfragment.html">QDomDocumentFragment</a>;class <a href="qdomdocumenttype.html">QDomDocumentType</a>;class <a href="qdomimplementation.html">QDomImplementation</a>;class <a href="qdomnode.html">QDomNode</a>;class <a href="qdomentity.html">QDomEntity</a>;class <a href="qdomnotation.html">QDomNotation</a>;class <a href="qdomcharacterdata.html">QDomCharacterData</a>;class QM_EXPORT <a href="qdomimplementation.html">QDomImplementation</a>{public:    QDomImplementation();    QDomImplementation( const QDomImplementation&amp; );    virtual ~QDomImplementation();    QDomImplementation&amp; operator= ( const QDomImplementation&amp; );    bool operator== ( const QDomImplementation&amp; ) const;    bool operator!= ( const QDomImplementation&amp; ) const;    virtual bool hasFeature( const QString&amp; feature, const QString&amp; version );    bool isNull();private:    QDomImplementation( QDOM_ImplementationPrivate* );    QDOM_ImplementationPrivate* impl;    friend class QDomDocument;};class QM_EXPORT <a href="qdomnode.html">QDomNode</a> // Ok{public:    enum NodeType {        BaseNode                  = 0,        ElementNode               = 1,        AttributeNode             = 2,        TextNode                  = 3,        CDATASectionNode          = 4,        EntityReferenceNode       = 5,        EntityNode                = 6,        ProcessingInstructionNode = 7,        CommentNode               = 8,        DocumentNode              = 9,        DocumentTypeNode          = 10,        DocumentFragmentNode      = 11,        NotationNode              = 12,        CharacterDataNode         = 13    };    QDomNode();    QDomNode( const QDomNode&amp; );    QDomNode&amp; operator= ( const QDomNode&amp; );    bool operator== ( const QDomNode&amp; ) const;    bool operator!= ( const QDomNode&amp; ) const;    virtual ~QDomNode();    virtual QString nodeName() const;    virtual QString nodeValue() const;    virtual void setNodeValue( const QString&amp; );    virtual QDomNode::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;    virtual QDomNode insertBefore( const QDomNode&amp; newChild, const QDomNode&amp; refChild );    virtual QDomNode insertAfter( const QDomNode&amp; newChild, const QDomNode&amp; refChild );    virtual QDomNode replaceChild( const QDomNode&amp; newChild, const QDomNode&amp; oldChild );    virtual QDomNode removeChild( const QDomNode&amp; oldChild );    virtual QDomNode appendChild( const QDomNode&amp; newChild );    virtual QDomNode cloneNode( bool deep = TRUE ) const;    // Qt extension    virtual bool isAttr() const;    virtual bool isCDATASection() const;    virtual bool isDocumentFragment() const;    virtual bool isDocument() const;    virtual bool isDocumentType() const;    virtual bool isElement() const;    virtual bool isEntityReference() const;    virtual bool isText() const;    virtual bool isEntity() const;    virtual bool isNotation() const;    virtual bool isProcessingInstruction() const;    virtual bool isCharacterData() const;    virtual bool isComment() const;    /**     * Shortcut to avoid dealing with QDomNodeList     * all the time.     */    QDomNode namedItem( const QString&amp; name ) 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&amp;, int ) const;protected:    QDOM_NodePrivate* impl;    QDomNode( QDOM_NodePrivate* );private:    friend class QDomDocument;    friend class QDomDocumentType;    friend class QDomNodeList;    friend class QDomNamedNodeMap;};class QM_EXPORT <a href="qdomnodelist.html">QDomNodeList</a> // Ok{public:    QDomNodeList();    QDomNodeList( const QDomNodeList&amp; );    QDomNodeList&amp; operator= ( const QDomNodeList&amp; );    bool operator== ( const QDomNodeList&amp; ) const;    bool operator!= ( const QDomNodeList&amp; ) const;    virtual ~QDomNodeList();    virtual QDomNode item( int index ) const;    virtual uint length() const;    uint count() const { return length(); } // Qt API consitancy    QDomNodeList( QDOM_NodeListPrivate* );private:    QDOM_NodeListPrivate* impl;};class QM_EXPORT <a href="qdomdocumenttype.html">QDomDocumentType</a> : public <a href="qdomnode.html">QDomNode</a>{public:    QDomDocumentType();    QDomDocumentType( const QDomDocumentType&amp; x );    QDomDocumentType&amp; operator= ( const QDomDocumentType&amp; );    ~QDomDocumentType();    virtual QString name() const;    virtual QDomNamedNodeMap entities() const;    virtual QDomNamedNodeMap notations() const;    // Reimplemented from QDomNode    QDomNode::NodeType nodeType() const;    bool isDocumentType() const;private:    QDomDocumentType( QDOM_DocumentTypePrivate* );    friend class QDomDocument;    friend class QDomNode;};class QM_EXPORT <a href="qdomdocument.html">QDomDocument</a> : public <a href="qdomnode.html">QDomNode</a>{public:    QDomDocument();    QDomDocument( const QString&amp; name );    QDomDocument( const QDomDocument&amp; x );    QDomDocument&amp; operator= ( const QDomDocument&amp; );    ~QDomDocument();    // Qt extensions    bool setContent( const QCString&amp; text );    bool setContent( const QByteArray&amp; text );    bool setContent( const QString&amp; text );    bool setContent( QIODevice* dev );    // QDomAttributes    QDomDocumentType doctype() const;    QDomImplementation implementation() const;    QDomElement documentElement() const;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -