📄 qdom-h.html
字号:
<!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>/****************************************************************************** $Id: 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 <qstring.h>#include <qdict.h>#include <qrect.h>#include <qfont.h>#include <qpen.h>#include <qpoint.h>#include <qsize.h>#include <qvariant.h>#include <qmime.h>#endif // QT_H#include <qmodules.h>#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& ); virtual ~QDomImplementation(); QDomImplementation& operator= ( const QDomImplementation& ); bool operator== ( const QDomImplementation& ) const; bool operator!= ( const QDomImplementation& ) const; virtual bool hasFeature( const QString& feature, const QString& 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& ); QDomNode& operator= ( const QDomNode& ); bool operator== ( const QDomNode& ) const; bool operator!= ( const QDomNode& ) const; virtual ~QDomNode(); virtual QString nodeName() const; virtual QString nodeValue() const; virtual void setNodeValue( const QString& ); 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& newChild, const QDomNode& refChild ); virtual QDomNode insertAfter( const QDomNode& newChild, const QDomNode& refChild ); virtual QDomNode replaceChild( const QDomNode& newChild, const QDomNode& oldChild ); virtual QDomNode removeChild( const QDomNode& oldChild ); virtual QDomNode appendChild( const QDomNode& 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& 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&, 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& ); QDomNodeList& operator= ( const QDomNodeList& ); bool operator== ( const QDomNodeList& ) const; bool operator!= ( const QDomNodeList& ) 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& x ); QDomDocumentType& operator= ( const QDomDocumentType& ); ~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& name ); QDomDocument( const QDomDocument& x ); QDomDocument& operator= ( const QDomDocument& ); ~QDomDocument(); // Qt extensions bool setContent( const QCString& text ); bool setContent( const QByteArray& text ); bool setContent( const QString& 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 + -