1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
---|
2 | <!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/src/xml/qdom.cpp:3252 -->
|
---|
3 | <html>
|
---|
4 | <head>
|
---|
5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
---|
6 | <title>QDomDocumentFragment Class</title>
|
---|
7 | <style type="text/css"><!--
|
---|
8 | fn { margin-left: 1cm; text-indent: -1cm; }
|
---|
9 | a:link { color: #004faf; text-decoration: none }
|
---|
10 | a:visited { color: #672967; text-decoration: none }
|
---|
11 | body { background: #ffffff; color: black; }
|
---|
12 | --></style>
|
---|
13 | </head>
|
---|
14 | <body>
|
---|
15 |
|
---|
16 | <table border="0" cellpadding="0" cellspacing="0" width="100%">
|
---|
17 | <tr bgcolor="#E5E5E5">
|
---|
18 | <td valign=center>
|
---|
19 | <a href="index.html">
|
---|
20 | <font color="#004faf">Home</font></a>
|
---|
21 | | <a href="classes.html">
|
---|
22 | <font color="#004faf">All Classes</font></a>
|
---|
23 | | <a href="mainclasses.html">
|
---|
24 | <font color="#004faf">Main Classes</font></a>
|
---|
25 | | <a href="annotated.html">
|
---|
26 | <font color="#004faf">Annotated</font></a>
|
---|
27 | | <a href="groups.html">
|
---|
28 | <font color="#004faf">Grouped Classes</font></a>
|
---|
29 | | <a href="functions.html">
|
---|
30 | <font color="#004faf">Functions</font></a>
|
---|
31 | </td>
|
---|
32 | <td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>QDomDocumentFragment Class Reference<br><small>[<a href="xml.html">XML module</a>]</small></h1>
|
---|
33 |
|
---|
34 | <p>The QDomDocumentFragment class is a tree of QDomNodes which is not usually a complete QDomDocument.
|
---|
35 | <a href="#details">More...</a>
|
---|
36 | <p>All the functions in this class are <a href="threads.html#reentrant">reentrant</a> when Qt is built with thread support.</p>
|
---|
37 | <p><tt>#include <<a href="qdom-h.html">qdom.h</a>></tt>
|
---|
38 | <p>Inherits <a href="qdomnode.html">QDomNode</a>.
|
---|
39 | <p><a href="qdomdocumentfragment-members.html">List of all member functions.</a>
|
---|
40 | <h2>Public Members</h2>
|
---|
41 | <ul>
|
---|
42 | <li class=fn><a href="#QDomDocumentFragment"><b>QDomDocumentFragment</b></a> ()</li>
|
---|
43 | <li class=fn><a href="#QDomDocumentFragment-2"><b>QDomDocumentFragment</b></a> ( const QDomDocumentFragment & x )</li>
|
---|
44 | <li class=fn>QDomDocumentFragment & <a href="#operator-eq"><b>operator=</b></a> ( const QDomDocumentFragment & x )</li>
|
---|
45 | <li class=fn><a href="#~QDomDocumentFragment"><b>~QDomDocumentFragment</b></a> ()</li>
|
---|
46 | <li class=fn>virtual QDomNode::NodeType <a href="#nodeType"><b>nodeType</b></a> () const</li>
|
---|
47 | <li class=fn>virtual bool <a href="#isDocumentFragment"><b>isDocumentFragment</b></a> () const</li>
|
---|
48 | </ul>
|
---|
49 | <hr><a name="details"></a><h2>Detailed Description</h2>
|
---|
50 |
|
---|
51 |
|
---|
52 |
|
---|
53 | The QDomDocumentFragment class is a tree of QDomNodes which is not usually a complete <a href="qdomdocument.html">QDomDocument</a>.
|
---|
54 |
|
---|
55 | <p>
|
---|
56 |
|
---|
57 | <p> If you want to do complex tree operations it is useful to have a
|
---|
58 | lightweight class to store nodes and their relations.
|
---|
59 | QDomDocumentFragment stores a subtree of a document which does not
|
---|
60 | necessarily represent a well-formed XML document.
|
---|
61 | <p> QDomDocumentFragment is also useful if you want to group several
|
---|
62 | nodes in a list and insert them all together as children of some
|
---|
63 | node. In these cases QDomDocumentFragment can be used as a
|
---|
64 | temporary container for this list of children.
|
---|
65 | <p> The most important feature of QDomDocumentFragment is that it is
|
---|
66 | treated in a special way by <a href="qdomnode.html#insertAfter">QDomNode::insertAfter</a>(),
|
---|
67 | <a href="qdomnode.html#insertBefore">QDomNode::insertBefore</a>(), <a href="qdomnode.html#replaceChild">QDomNode::replaceChild</a>() and
|
---|
68 | <a href="qdomnode.html#appendChild">QDomNode::appendChild</a>(): instead of inserting the fragment itself, all
|
---|
69 | the fragment's children are inserted.
|
---|
70 | <p>See also <a href="xml-tools.html">XML</a>.
|
---|
71 |
|
---|
72 | <hr><h2>Member Function Documentation</h2>
|
---|
73 | <h3 class=fn><a name="QDomDocumentFragment"></a>QDomDocumentFragment::QDomDocumentFragment ()
|
---|
74 | </h3>
|
---|
75 | Constructs an empty document fragment.
|
---|
76 |
|
---|
77 | <h3 class=fn><a name="QDomDocumentFragment-2"></a>QDomDocumentFragment::QDomDocumentFragment ( const <a href="qdomdocumentfragment.html">QDomDocumentFragment</a> & x )
|
---|
78 | </h3>
|
---|
79 | Constructs a copy of <em>x</em>.
|
---|
80 | <p> The data of the copy is shared (shallow copy): modifying one node
|
---|
81 | will also change the other. If you want to make a <a href="shclass.html#deep-copy">deep copy</a>, use
|
---|
82 | <a href="qdomnode.html#cloneNode">cloneNode</a>().
|
---|
83 |
|
---|
84 | <h3 class=fn><a name="~QDomDocumentFragment"></a>QDomDocumentFragment::~QDomDocumentFragment ()
|
---|
85 | </h3>
|
---|
86 | Destroys the object and frees its resources.
|
---|
87 |
|
---|
88 | <h3 class=fn>bool <a name="isDocumentFragment"></a>QDomDocumentFragment::isDocumentFragment () const<tt> [virtual]</tt>
|
---|
89 | </h3>
|
---|
90 | This function reimplements <a href="qdomnode.html#isDocumentFragment">QDomNode::isDocumentFragment</a>().
|
---|
91 | <p> <p>See also <a href="#nodeType">nodeType</a>() and <a href="qdomnode.html#toDocumentFragment">QDomNode::toDocumentFragment</a>().
|
---|
92 |
|
---|
93 | <p>Reimplemented from <a href="qdomnode.html#isDocumentFragment">QDomNode</a>.
|
---|
94 | <h3 class=fn><a href="qdomnode.html#NodeType-enum">QDomNode::NodeType</a> <a name="nodeType"></a>QDomDocumentFragment::nodeType () const<tt> [virtual]</tt>
|
---|
95 | </h3>
|
---|
96 | Returns <tt>DocumentFragment</tt>.
|
---|
97 | <p> <p>See also <a href="#isDocumentFragment">isDocumentFragment</a>() and <a href="qdomnode.html#toDocumentFragment">QDomNode::toDocumentFragment</a>().
|
---|
98 |
|
---|
99 | <p>Reimplemented from <a href="qdomnode.html#nodeType">QDomNode</a>.
|
---|
100 | <h3 class=fn><a href="qdomdocumentfragment.html">QDomDocumentFragment</a> & <a name="operator-eq"></a>QDomDocumentFragment::operator= ( const <a href="qdomdocumentfragment.html">QDomDocumentFragment</a> & x )
|
---|
101 | </h3>
|
---|
102 | Assigns <em>x</em> to this DOM document fragment.
|
---|
103 | <p> The data of the copy is shared (shallow copy): modifying one node
|
---|
104 | will also change the other. If you want to make a <a href="shclass.html#deep-copy">deep copy</a>, use
|
---|
105 | <a href="qdomnode.html#cloneNode">cloneNode</a>().
|
---|
106 |
|
---|
107 | <!-- eof -->
|
---|
108 | <hr><p>
|
---|
109 | This file is part of the <a href="index.html">Qt toolkit</a>.
|
---|
110 | Copyright © 1995-2007
|
---|
111 | <a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
|
---|
112 | <table width=100% cellspacing=0 border=0><tr>
|
---|
113 | <td>Copyright © 2007
|
---|
114 | <a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
---|
115 | <td align=right><div align=right>Qt 3.3.8</div>
|
---|
116 | </table></div></address></body>
|
---|
117 | </html>
|
---|