3
3
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
4
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
<!-- /fasttmp/mkdist-qt-4.5.2-1245473805/qt-x11-opensource-src-4.5.2/src/xml/dom/qdom.cpp -->
7
<title>Qt 4.5: QDomText Class Reference</title>
7
<title>Qt 4.6: QDomText Class Reference</title>
8
8
<link href="classic.css" rel="stylesheet" type="text/css" />
11
<a name="//apple_ref/cpp/cl//QDomText" />
11
12
<table border="0" cellpadding="0" cellspacing="0" width="100%">
13
<td align="left" valign="top" width="32"><a href="http://qtsoftware.com/products/qt"><img src="images/qt-logo.png" align="left" border="0" /></a></td>
14
<td width="1"> </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a> · <a href="namespaces.html"><font color="#004faf">All Namespaces</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="mainclasses.html"><font color="#004faf">Main Classes</font></a> · <a href="groups.html"><font color="#004faf">Grouped Classes</font></a> · <a href="modules.html"><font color="#004faf">Modules</font></a> · <a href="functions.html"><font color="#004faf">Functions</font></a></td>
15
<td align="right" valign="top" width="230"></td></tr></table><h1 class="title">QDomText Class Reference<br /><span class="small-subtitle">[<a href="qtxml.html">QtXml</a> module]</span>
14
<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>
15
<td width="1"> </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="functions.html"><font color="#004faf">All Functions</font></a> · <a href="overviews.html"><font color="#004faf">Overviews</font></a></td><td class="searchBar" align="right" valign="center"><form action="http://www.google.com/cse" id="cse-search-box"><div><input type="hidden" name="cx" value="000136343326384750312:dhbxnqlakyu" /><input type="hidden" name="ie" value="UTF-8" /><input type="text" name="q" size="31" /><input type="submit" name="sa" value="Search" /></div></form></td>
16
</tr></table><h1 class="title">QDomText Class Reference<br /><span class="small-subtitle">[<a href="qtxml.html">QtXml</a> module]</span>
17
18
<p>The QDomText class represents text data in the parsed XML document. <a href="#details">More...</a></p>
18
<pre> #include <QDomText></pre><p>Inherits <a href="qdomcharacterdata.html">QDomCharacterData</a>.</p>
19
<pre> #include <QDomText></pre><p><b>This class is not part of the Qt GUI Framework Edition.</b></p>
20
<p>Inherits <a href="qdomcharacterdata.html">QDomCharacterData</a>.</p>
19
21
<p>Inherited by <a href="qdomcdatasection.html">QDomCDATASection</a>.</p>
20
<p><b>Note:</b> All the functions in this class are <a href="threads.html#reentrant">reentrant</a>.</p>
22
<p><b>Note:</b> All functions in this class are <a href="threads-reentrancy.html#reentrant">reentrant</a>.</p>
22
24
<li><a href="qdomtext-members.html">List of all members, including inherited members</a></li>
24
27
<a name="public-functions"></a>
25
<h3>Public Functions</h3>
27
<li><div class="fn"></div><b><a href="qdomtext.html#QDomText">QDomText</a></b> ()</li>
28
<li><div class="fn"></div><b><a href="qdomtext.html#QDomText-2">QDomText</a></b> ( const QDomText & <i>x</i> )</li>
29
<li><div class="fn"></div>QDomNode::NodeType <b><a href="qdomtext.html#nodeType">nodeType</a></b> () const</li>
30
<li><div class="fn"></div>QDomText <b><a href="qdomtext.html#splitText">splitText</a></b> ( int <i>offset</i> )</li>
31
<li><div class="fn"></div>QDomText & <b><a href="qdomtext.html#operator-eq">operator=</a></b> ( const QDomText & <i>x</i> )</li>
34
<li><div class="fn"></div>10 public functions inherited from <a href="qdomcharacterdata.html#public-functions">QDomCharacterData</a></li>
35
<li><div class="fn"></div>66 public functions inherited from <a href="qdomnode.html#public-functions">QDomNode</a></li>
28
<h2>Public Functions</h2>
29
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
30
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qdomtext.html#QDomText">QDomText</a></b> ()</td></tr>
31
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qdomtext.html#QDomText-2">QDomText</a></b> ( const QDomText & <i>x</i> )</td></tr>
32
<tr><td class="memItemLeft" align="right" valign="top">QDomNode::NodeType </td><td class="memItemRight" valign="bottom"><b><a href="qdomtext.html#nodeType">nodeType</a></b> () const</td></tr>
33
<tr><td class="memItemLeft" align="right" valign="top">QDomText </td><td class="memItemRight" valign="bottom"><b><a href="qdomtext.html#splitText">splitText</a></b> ( int <i>offset</i> )</td></tr>
34
<tr><td class="memItemLeft" align="right" valign="top">QDomText & </td><td class="memItemRight" valign="bottom"><b><a href="qdomtext.html#operator-eq">operator=</a></b> ( const QDomText & <i>x</i> )</td></tr>
37
<li><div bar="2" class="fn"></div>10 public functions inherited from <a href="qdomcharacterdata.html#public-functions">QDomCharacterData</a></li>
38
<li><div bar="2" class="fn"></div>66 public functions inherited from <a href="qdomnode.html#public-functions">QDomNode</a></li>
37
40
<a name="details"></a>
42
45
<p>For further information about the Document Object Model see <a href="http://www.w3.org/TR/REC-DOM-Level-1/">Level 1</a> and <a href="http://www.w3.org/TR/DOM-Level-2-Core/">Level 2 Core</a>. For a more general introduction of the DOM implementation see the <a href="qdomdocument.html">QDomDocument</a> documentation.</p>
44
47
<h2>Member Function Documentation</h2>
48
<a name="//apple_ref/cpp/instm/QDomText/QDomText" />
45
49
<h3 class="fn"><a name="QDomText"></a>QDomText::QDomText ()</h3>
46
50
<p>Constructs an empty <a href="qdomtext.html">QDomText</a> object.</p>
47
51
<p>To construct a <a href="qdomtext.html">QDomText</a> with content, use <a href="qdomdocument.html#createTextNode">QDomDocument::createTextNode</a>().</p>
48
52
<h3 class="fn"><a name="QDomText-2"></a>QDomText::QDomText ( const QDomText & <i>x</i> )</h3>
49
53
<p>Constructs a copy of <i>x</i>.</p>
50
54
<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>
55
<a name="//apple_ref/cpp/instm/QDomText/nodeType" />
51
56
<h3 class="fn"><a name="nodeType"></a><a href="qdomnode.html#NodeType-enum">QDomNode::NodeType</a> QDomText::nodeType () const</h3>
52
57
<p>Returns <tt>TextNode</tt>.</p>
58
<a name="//apple_ref/cpp/instm/QDomText/splitText" />
53
59
<h3 class="fn"><a name="splitText"></a>QDomText QDomText::splitText ( int <i>offset</i> )</h3>
54
60
<p>Splits this DOM text object into two <a href="qdomtext.html">QDomText</a> objects. This object keeps its first <i>offset</i> characters and the second (newly created) object is inserted into the document tree after this object with the remaining characters.</p>
55
61
<p>The function returns the newly created object.</p>
56
62
<p>See also <a href="qdomnode.html#normalize">QDomNode::normalize</a>().</p>
63
<a name="//apple_ref/cpp/instm/QDomText/operator=" />
57
64
<h3 class="fn"><a name="operator-eq"></a>QDomText & QDomText::operator= ( const QDomText & <i>x</i> )</h3>
58
65
<p>Assigns <i>x</i> to this DOM text.</p>
59
66
<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>
60
67
<p /><address><hr /><div align="center">
61
68
<table width="100%" cellspacing="0" border="0"><tr class="address">
62
<td width="30%" align="left">Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies)</td>
63
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
64
<td width="30%" align="right"><div align="right">Qt 4.5.2</div></td>
65
</tr></table></div></address></body>
69
<td width="40%" align="left">Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies)</td>
70
<td width="20%" align="center"><a href="trademarks.html">Trademarks</a></td>
71
<td width="40%" align="right"><div align="right">Qt 4.6.0</div></td>
72
<script type="text/javascript" src="http://www.google.com/jsapi"></script><script type="text/javascript">google.load("elements", "1", {packages: "transliteration"});</script><script type="text/javascript" src="http://www.google.com/coop/cse/t13n?form=cse-search-box&t13n_langs=en"></script><script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&lang=en"></script></tr></table></div></address></body>