source: trunk/doc/html/qdomtext.html@ 203

Last change on this file since 203 was 190, checked in by rudi, 14 years ago

reference documentation added

File size: 5.8 KB
Line 
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:4676 -->
3<html>
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
6<title>QDomText Class</title>
7<style type="text/css"><!--
8fn { margin-left: 1cm; text-indent: -1cm; }
9a:link { color: #004faf; text-decoration: none }
10a:visited { color: #672967; text-decoration: none }
11body { 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&nbsp;Classes</font></a>
23 | <a href="mainclasses.html">
24<font color="#004faf">Main&nbsp;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&nbsp;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>QDomText Class Reference<br><small>[<a href="xml.html">XML module</a>]</small></h1>
33
34<p>The QDomText class represents text data in the parsed XML document.
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 &lt;<a href="qdom-h.html">qdom.h</a>&gt;</tt>
38<p>Inherits <a href="qdomcharacterdata.html">QDomCharacterData</a>.
39<p>Inherited by <a href="qdomcdatasection.html">QDomCDATASection</a>.
40<p><a href="qdomtext-members.html">List of all member functions.</a>
41<h2>Public Members</h2>
42<ul>
43<li class=fn><a href="#QDomText"><b>QDomText</b></a> ()</li>
44<li class=fn><a href="#QDomText-2"><b>QDomText</b></a> ( const&nbsp;QDomText&nbsp;&amp;&nbsp;x )</li>
45<li class=fn>QDomText &amp; <a href="#operator-eq"><b>operator=</b></a> ( const&nbsp;QDomText&nbsp;&amp;&nbsp;x )</li>
46<li class=fn><a href="#~QDomText"><b>~QDomText</b></a> ()</li>
47<li class=fn>QDomText <a href="#splitText"><b>splitText</b></a> ( int&nbsp;offset )</li>
48<li class=fn>virtual QDomNode::NodeType <a href="#nodeType"><b>nodeType</b></a> () const</li>
49<li class=fn>virtual bool <a href="#isText"><b>isText</b></a> () const</li>
50</ul>
51<hr><a name="details"></a><h2>Detailed Description</h2>
52
53
54
55The QDomText class represents text data in the parsed XML document.
56
57<p>
58
59<p> You can split the text in a QDomText object over two QDomText
60objecs with <a href="#splitText">splitText</a>().
61<p> For further information about the Document Object Model see
62<a href="http://www.w3.org/TR/REC-DOM-Level-1/">http://www.w3.org/TR/REC-DOM-Level-1/</a> and
63<a href="http://www.w3.org/TR/DOM-Level-2-Core/">http://www.w3.org/TR/DOM-Level-2-Core/</a>.
64For a more general introduction of the DOM implementation see the
65<a href="qdomdocument.html">QDomDocument</a> documentation.
66<p>See also <a href="xml-tools.html">XML</a>.
67
68<hr><h2>Member Function Documentation</h2>
69<h3 class=fn><a name="QDomText"></a>QDomText::QDomText ()
70</h3>
71Constructs an empty QDomText object.
72<p> To construct a QDomText with content, use <a href="qdomdocument.html#createTextNode">QDomDocument::createTextNode</a>().
73
74<h3 class=fn><a name="QDomText-2"></a>QDomText::QDomText ( const&nbsp;<a href="qdomtext.html">QDomText</a>&nbsp;&amp;&nbsp;x )
75</h3>
76Constructs a copy of <em>x</em>.
77<p> The data of the copy is shared (shallow copy): modifying one node
78will also change the other. If you want to make a <a href="shclass.html#deep-copy">deep copy</a>, use
79<a href="qdomnode.html#cloneNode">cloneNode</a>().
80
81<h3 class=fn><a name="~QDomText"></a>QDomText::~QDomText ()
82</h3>
83Destroys the object and frees its resources.
84
85<h3 class=fn>bool <a name="isText"></a>QDomText::isText () const<tt> [virtual]</tt>
86</h3>
87Returns TRUE.
88
89<p>Reimplemented from <a href="qdomnode.html#isText">QDomNode</a>.
90<h3 class=fn><a href="qdomnode.html#NodeType-enum">QDomNode::NodeType</a> <a name="nodeType"></a>QDomText::nodeType () const<tt> [virtual]</tt>
91</h3>
92Returns <a href="qdomnode.html#NodeType-enum">TextNode</a>.
93
94<p>Reimplemented from <a href="qdomcharacterdata.html#nodeType">QDomCharacterData</a>.
95<p>Reimplemented in <a href="qdomcdatasection.html#nodeType">QDomCDATASection</a>.
96<h3 class=fn><a href="qdomtext.html">QDomText</a>&nbsp;&amp; <a name="operator-eq"></a>QDomText::operator= ( const&nbsp;<a href="qdomtext.html">QDomText</a>&nbsp;&amp;&nbsp;x )
97</h3>
98Assigns <em>x</em> to this DOM text.
99<p> The data of the copy is shared (shallow copy): modifying one node
100will also change the other. If you want to make a <a href="shclass.html#deep-copy">deep copy</a>, use
101<a href="qdomnode.html#cloneNode">cloneNode</a>().
102
103<h3 class=fn><a href="qdomtext.html">QDomText</a> <a name="splitText"></a>QDomText::splitText ( int&nbsp;offset )
104</h3>
105Splits this DOM text object into two QDomText objects. This object
106keeps its first <em>offset</em> characters and the second (newly
107created) object is inserted into the document tree after this
108object with the remaining characters.
109<p> The function returns the newly created object.
110<p> <p>See also <a href="qdomnode.html#normalize">QDomNode::normalize</a>().
111
112<!-- eof -->
113<hr><p>
114This file is part of the <a href="index.html">Qt toolkit</a>.
115Copyright &copy; 1995-2007
116<a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
117<table width=100% cellspacing=0 border=0><tr>
118<td>Copyright &copy; 2007
119<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
120<td align=right><div align=right>Qt 3.3.8</div>
121</table></div></address></body>
122</html>
Note: See TracBrowser for help on using the repository browser.