~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to doc/html/qtextobject.html

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-08-24 04:09:09 UTC
  • Revision ID: james.westby@ubuntu.com-20050824040909-xmxe9jfr4a0w5671
Tags: upstream-4.0.0
ImportĀ upstreamĀ versionĀ 4.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="iso-8859-1"?>
 
2
<!DOCTYPE html
 
3
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
 
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 
5
<!-- /tmp/qt-4.0.0-espenr-1119621036935/qt-x11-opensource-desktop-4.0.0/src/gui/text/qtextobject.cpp -->
 
6
<head>
 
7
    <title>Qt 4.0: QTextObject Class Reference</title>
 
8
    <style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }
 
9
a:link { color: #004faf; text-decoration: none }
 
10
a:visited { color: #672967; text-decoration: none }
 
11
td.postheader { font-family: sans-serif }
 
12
tr.address { font-family: sans-serif }
 
13
body { background: #ffffff; color: black; }</style>
 
14
</head>
 
15
<body>
 
16
<table border="0" cellpadding="0" cellspacing="0" width="100%">
 
17
<tr>
 
18
<td align="left" valign="top" width="32"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></td>
 
19
<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="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a>&nbsp;&middot; <a href="annotated.html"><font color="#004faf">Annotated</font></a>&nbsp;&middot; <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
 
20
<td align="right" valign="top" width="230"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></td></tr></table><h1 align="center">QTextObject Class Reference</h1>
 
21
<p>The QTextObject class is a base class for different kinds of objects that can group parts of a <a href="qtextdocument.html">QTextDocument</a> together. <a href="#details">More...</a></p>
 
22
<pre>#include &lt;QTextObject&gt;</pre><p>Part of the <a href="qtgui.html">QtGui</a> module.</p>
 
23
<p>Inherits <a href="qobject.html">QObject</a>.</p>
 
24
<p>Inherited by <a href="qtextblockgroup.html">QTextBlockGroup</a> and <a href="qtextframe.html">QTextFrame</a>.</p>
 
25
<ul>
 
26
<li><a href="qtextobject-members.html">List of all members, including inherited members</a></li>
 
27
</ul>
 
28
<a name="public-functions"></a>
 
29
<h3>Public Functions</h3>
 
30
<ul>
 
31
<li><div class="fn"/>QTextDocument * <b><a href="qtextobject.html#document">document</a></b> () const</li>
 
32
<li><div class="fn"/>QTextFormat <b><a href="qtextobject.html#format">format</a></b> () const</li>
 
33
<li><div class="fn"/>int <b><a href="qtextobject.html#formatIndex">formatIndex</a></b> () const</li>
 
34
<li><div class="fn"/>int <b><a href="qtextobject.html#objectIndex">objectIndex</a></b> () const</li>
 
35
</ul>
 
36
<ul>
 
37
<li><div class="fn"/>28 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
 
38
</ul>
 
39
<a name="protected-functions"></a>
 
40
<h3>Protected Functions</h3>
 
41
<ul>
 
42
<li><div class="fn"/><b><a href="qtextobject.html#QTextObject">QTextObject</a></b> ( QTextDocument * <i>document</i> )</li>
 
43
<li><div class="fn"/><b><a href="qtextobject.html#dtor.QTextObject">~QTextObject</a></b> ()</li>
 
44
<li><div class="fn"/>void <b><a href="qtextobject.html#setFormat">setFormat</a></b> ( const QTextFormat &amp; <i>format</i> )</li>
 
45
</ul>
 
46
<ul>
 
47
<li><div class="fn"/>7 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li>
 
48
</ul>
 
49
<h3>Additional Inherited Members</h3>
 
50
<ul>
 
51
<li><div class="fn"/>1 property inherited from <a href="qobject.html#properties">QObject</a></li>
 
52
<li><div class="fn"/>1 public slot inherited from <a href="qobject.html#public-slots">QObject</a></li>
 
53
<li><div class="fn"/>1 signal inherited from <a href="qobject.html#signals">QObject</a></li>
 
54
<li><div class="fn"/>4 static public members inherited from <a href="qobject.html#static-public-members">QObject</a></li>
 
55
</ul>
 
56
<a name="details"></a>
 
57
<hr />
 
58
<h2>Detailed Description</h2>
 
59
<p>The QTextObject class is a base class for different kinds of objects that can group parts of a <a href="qtextdocument.html">QTextDocument</a> together.</p>
 
60
<p>The common grouping text objects are lists (<a href="qtextlist.html">QTextList</a>), frames (<a href="qtextframe.html">QTextFrame</a>), and tables (<a href="qtexttable.html">QTextTable</a>). A text object has an associated <a href="qtextobject.html#format">format</a>() and <a href="qtextobject.html#document">document</a>().</p>
 
61
<p>There are essentially two kinds of text objects: those that are used with blocks (block formats), and those that are used with characters (character formats). The first kind are derived from <a href="qtextblockgroup.html">QTextBlockGroup</a>, and the second kind from <a href="qtextframe.html">QTextFrame</a>.</p>
 
62
<p>You rarely need to use this class directly. When creating custom text objects, you will also need to reimplement <a href="qtextdocument.html#createObject">QTextDocument::createObject</a>() which acts as a factory method for creating text objects.</p>
 
63
<p>See also <a href="qtextdocument.html">QTextDocument</a>.</p>
 
64
<hr />
 
65
<h2>Member Function Documentation</h2>
 
66
<h3 class="fn"><a name="QTextObject"></a>QTextObject::QTextObject ( <a href="qtextdocument.html">QTextDocument</a> * <i>document</i> )&nbsp;&nbsp;<tt> [protected]</tt></h3>
 
67
<p>Creates a new <a href="qtextobject.html">QTextObject</a> for the given <i>document</i>.</p>
 
68
<p><b>Warning:</b> This function should never be called directly, but only from <a href="qtextdocument.html#createObject">QTextDocument::createObject</a>().</p>
 
69
<h3 class="fn"><a name="dtor.QTextObject"></a>QTextObject::~QTextObject ()&nbsp;&nbsp;<tt> [protected]</tt></h3>
 
70
<p>Destroys the text object.</p>
 
71
<p><b>Warning:</b> Text objects are owned by the document, so you should never destroy them yourself.</p>
 
72
<h3 class="fn"><a name="document"></a><a href="qtextdocument.html">QTextDocument</a> * QTextObject::document () const</h3>
 
73
<p>Returns the document this object belongs to.</p>
 
74
<p>See also <a href="qtextobject.html#format">format</a>().</p>
 
75
<h3 class="fn"><a name="format"></a><a href="qtextformat.html">QTextFormat</a> QTextObject::format () const</h3>
 
76
<p>Returns the text object's format.</p>
 
77
<p>See also <a href="qtextobject.html#setFormat">setFormat</a>() and <a href="qtextobject.html#document">document</a>().</p>
 
78
<h3 class="fn"><a name="formatIndex"></a>int QTextObject::formatIndex () const</h3>
 
79
<p>Returns the index of the object's format in the document's internal list of formats.</p>
 
80
<p>See also <a href="qtextdocument.html#object">QTextDocument::object</a>().</p>
 
81
<h3 class="fn"><a name="objectIndex"></a>int QTextObject::objectIndex () const</h3>
 
82
<p>Returns the object index of this object. This can be used together with <a href="qtextformat.html#setObjectIndex">QTextFormat::setObjectIndex</a>().</p>
 
83
<h3 class="fn"><a name="setFormat"></a>void QTextObject::setFormat ( const <a href="qtextformat.html">QTextFormat</a> &amp; <i>format</i> )&nbsp;&nbsp;<tt> [protected]</tt></h3>
 
84
<p>Sets the text object's <i>format</i>.</p>
 
85
<p>See also <a href="qtextobject.html#format">format</a>().</p>
 
86
<p /><address><hr /><div align="center">
 
87
<table width="100%" cellspacing="0" border="0"><tr class="address">
 
88
<td width="30%">Copyright &copy; 2005 <a href="trolltech.html">Trolltech</a></td>
 
89
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
 
90
<td width="30%" align="right"><div align="right">Qt 4.0.0</div></td>
 
91
</tr></table></div></address></body>
 
92
</html>