Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > 8e6051afcdb111a0317a58fb64c2abf5 > files > 3975

qt4-doc-4.6.3-0.2mdv2010.2.i586.rpm

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- qdom.cpp -->
<head>
  <title>Qt 4.6: QDomDocumentFragment Class Reference</title>
  <link href="classic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<a name="//apple_ref/cpp/cl//QDomDocumentFragment"></a>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="top" width="32"><a href="http://qt.nokia.com/"><img src="images/qt-logo.png" align="left" border="0" /></a></td>
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">All&nbsp;Functions</font></a>&nbsp;&middot; <a href="overviews.html"><font color="#004faf">Overviews</font></a></td></tr></table><h1 class="title">QDomDocumentFragment Class Reference<br /><span class="small-subtitle">[<a href="qtxml.html">QtXml</a> module]</span>
</h1>
<p>The QDomDocumentFragment class is a tree of QDomNodes which is not usually a complete <a href="qdomdocument.html">QDomDocument</a>. <a href="#details">More...</a></p>
<pre> #include &lt;QDomDocumentFragment&gt;</pre><p><b>This class is not part of the Qt GUI Framework Edition.</b></p>
<p>Inherits <a href="qdomnode.html">QDomNode</a>.</p>
<p><b>Note:</b> All functions in this class are <a href="threads-reentrancy.html#reentrant">reentrant</a>.</p>
<ul>
<li><a href="qdomdocumentfragment-members.html">List of all members, including inherited members</a></li>
</ul>
<hr />
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qdomdocumentfragment.html#QDomDocumentFragment">QDomDocumentFragment</a></b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qdomdocumentfragment.html#QDomDocumentFragment-2">QDomDocumentFragment</a></b> ( const QDomDocumentFragment &amp; <i>x</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QDomNode::NodeType </td><td class="memItemRight" valign="bottom"><b><a href="qdomdocumentfragment.html#nodeType">nodeType</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QDomDocumentFragment &amp; </td><td class="memItemRight" valign="bottom"><b><a href="qdomdocumentfragment.html#operator-eq">operator=</a></b> ( const QDomDocumentFragment &amp; <i>x</i> )</td></tr>
</table>
<ul>
<li><div bar="2" class="fn"></div>66 public functions inherited from <a href="qdomnode.html#public-functions">QDomNode</a></li>
</ul>
<a name="details"></a>
<hr />
<h2>Detailed Description</h2>
<p>The QDomDocumentFragment class is a tree of QDomNodes which is not usually a complete <a href="qdomdocument.html">QDomDocument</a>.</p>
<p>If you want to do complex tree operations it is useful to have a lightweight class to store nodes and their relations. QDomDocumentFragment stores a subtree of a document which does not necessarily represent a well-formed XML document.</p>
<p>QDomDocumentFragment is also useful if you want to group several nodes in a list and insert them all together as children of some node. In these cases QDomDocumentFragment can be used as a temporary container for this list of children.</p>
<p>The most important feature of QDomDocumentFragment is that it is treated in a special way by <a href="qdomnode.html#insertAfter">QDomNode::insertAfter</a>(), <a href="qdomnode.html#insertBefore">QDomNode::insertBefore</a>(), <a href="qdomnode.html#replaceChild">QDomNode::replaceChild</a>() and <a href="qdomnode.html#appendChild">QDomNode::appendChild</a>(): instead of inserting the fragment itself, all the fragment's children are inserted.</p>
<hr />
<h2>Member Function Documentation</h2>
<a name="//apple_ref/cpp/instm/QDomDocumentFragment/QDomDocumentFragment"></a>
<h3 class="fn"><a name="QDomDocumentFragment"></a>QDomDocumentFragment::QDomDocumentFragment ()</h3>
<p>Constructs an empty document fragment.</p>
<h3 class="fn"><a name="QDomDocumentFragment-2"></a>QDomDocumentFragment::QDomDocumentFragment ( const QDomDocumentFragment &amp; <i>x</i> )</h3>
<p>Constructs a copy of <i>x</i>.</p>
<p>The data of the copy is shared (shallow copy): modifying one node will also change the other. If you want to make a deep copy, use <a href="qdomnode.html#cloneNode">cloneNode</a>().</p>
<a name="//apple_ref/cpp/instm/QDomDocumentFragment/nodeType"></a>
<h3 class="fn"><a name="nodeType"></a><a href="qdomnode.html#NodeType-enum">QDomNode::NodeType</a> QDomDocumentFragment::nodeType () const</h3>
<p>Returns <tt>DocumentFragment</tt>.</p>
<p>See also <a href="qdomnode.html#isDocumentFragment">isDocumentFragment</a>() and <a href="qdomnode.html#toDocumentFragment">QDomNode::toDocumentFragment</a>().</p>
<a name="//apple_ref/cpp/instm/QDomDocumentFragment/operator="></a>
<h3 class="fn"><a name="operator-eq"></a>QDomDocumentFragment &amp; QDomDocumentFragment::operator= ( const QDomDocumentFragment &amp; <i>x</i> )</h3>
<p>Assigns <i>x</i> to this DOM document fragment.</p>
<p>The data of the copy is shared (shallow copy): modifying one node will also change the other. If you want to make a deep copy, use <a href="qdomnode.html#cloneNode">cloneNode</a>().</p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="40%" align="left">Copyright &copy; 2010 Nokia Corporation and/or its subsidiary(-ies)</td>
<td width="20%" align="center"><a href="trademarks.html">Trademarks</a></td>
<td width="40%" align="right"><div align="right">Qt 4.6.3</div></td>
</tr></table></div></address></body>
</html>