1
<?xml version="1.0" encoding="iso-8859-1"?>
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 -->
7
<title>Qt 4.0: QTextBlockGroup 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>
16
<table border="0" cellpadding="0" cellspacing="0" width="100%">
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"> </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="mainclasses.html"><font color="#004faf">Main Classes</font></a> · <a href="annotated.html"><font color="#004faf">Annotated</font></a> · <a href="groups.html"><font color="#004faf">Grouped Classes</font></a> · <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">QTextBlockGroup Class Reference</h1>
21
<p>The QTextBlockGroup class provides a container for text blocks within a <a href="qtextdocument.html">QTextDocument</a>. <a href="#details">More...</a></p>
22
<pre>#include <QTextBlockGroup></pre><p>Part of the <a href="qtgui.html">QtGui</a> module.</p>
23
<p>Inherits <a href="qtextobject.html">QTextObject</a>.</p>
24
<p>Inherited by <a href="qtextlist.html">QTextList</a>.</p>
26
<li><a href="qtextblockgroup-members.html">List of all members, including inherited members</a></li>
28
<a name="protected-functions"></a>
29
<h3>Protected Functions</h3>
31
<li><div class="fn"/><b><a href="qtextblockgroup.html#QTextBlockGroup">QTextBlockGroup</a></b> ( QTextDocument * <i>document</i> )</li>
32
<li><div class="fn"/><b><a href="qtextblockgroup.html#dtor.QTextBlockGroup">~QTextBlockGroup</a></b> ()</li>
33
<li><div class="fn"/>virtual void <b><a href="qtextblockgroup.html#blockFormatChanged">blockFormatChanged</a></b> ( const QTextBlock & <i>block</i> )</li>
34
<li><div class="fn"/>virtual void <b><a href="qtextblockgroup.html#blockInserted">blockInserted</a></b> ( const QTextBlock & <i>block</i> )</li>
35
<li><div class="fn"/>QList<QTextBlock> <b><a href="qtextblockgroup.html#blockList">blockList</a></b> () const</li>
36
<li><div class="fn"/>virtual void <b><a href="qtextblockgroup.html#blockRemoved">blockRemoved</a></b> ( const QTextBlock & <i>block</i> )</li>
39
<li><div class="fn"/>1 protected function inherited from <a href="qtextobject.html#protected-functions">QTextObject</a></li>
40
<li><div class="fn"/>7 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li>
42
<h3>Additional Inherited Members</h3>
44
<li><div class="fn"/>1 property inherited from <a href="qobject.html#properties">QObject</a></li>
45
<li><div class="fn"/>4 public functions inherited from <a href="qtextobject.html#public-functions">QTextObject</a></li>
46
<li><div class="fn"/>28 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
47
<li><div class="fn"/>1 public slot inherited from <a href="qobject.html#public-slots">QObject</a></li>
48
<li><div class="fn"/>1 signal inherited from <a href="qobject.html#signals">QObject</a></li>
49
<li><div class="fn"/>4 static public members inherited from <a href="qobject.html#static-public-members">QObject</a></li>
51
<a name="details"></a>
53
<h2>Detailed Description</h2>
54
<p>The QTextBlockGroup class provides a container for text blocks within a <a href="qtextdocument.html">QTextDocument</a>.</p>
55
<p>Block groups can be used to organize blocks of text within a document. They maintain an up-to-date list of the text blocks that belong to them, even when text blocks are being edited.</p>
56
<p>Each group has a parent document which is specified when the group is constructed.</p>
57
<p>Text blocks can be inserted into a group with <a href="qtextblockgroup.html#blockInserted">blockInserted</a>(), and removed with <a href="qtextblockgroup.html#blockRemoved">blockRemoved</a>(). If a block's format is changed, <a href="qtextblockgroup.html#blockFormatChanged">blockFormatChanged</a>() is called.</p>
58
<p>The list of blocks in the group is returned by <a href="qtextblockgroup.html#blockList">blockList</a>(). Note that the blocks in the list are not necessarily adjacent elements in the document; for example, the top-level items in a multi-level list will be separated by the items in lower levels of the list.</p>
59
<p>See also <a href="qtextblock.html">QTextBlock</a> and <a href="qtextdocument.html">QTextDocument</a>.</p>
61
<h2>Member Function Documentation</h2>
62
<h3 class="fn"><a name="QTextBlockGroup"></a>QTextBlockGroup::QTextBlockGroup ( <a href="qtextdocument.html">QTextDocument</a> * <i>document</i> ) <tt> [protected]</tt></h3>
63
<p>Creates a new new block group for the given <i>document</i>.</p>
64
<p><b>Warning:</b> This function should only be called from <a href="qtextdocument.html#createObject">QTextDocument::createObject</a>().</p>
65
<h3 class="fn"><a name="dtor.QTextBlockGroup"></a>QTextBlockGroup::~QTextBlockGroup () <tt> [protected]</tt></h3>
66
<p>Destroys this block group; the blocks are not deleted, they simply don't belong to this block anymore.</p>
67
<h3 class="fn"><a name="blockFormatChanged"></a>void QTextBlockGroup::blockFormatChanged ( const <a href="qtextblock.html">QTextBlock</a> & <i>block</i> ) <tt> [virtual protected]</tt></h3>
68
<p>This function is called whenever the specified <i>block</i> of text is changed. The text block is a member of this group.</p>
69
<p>The base class implementation does nothing.</p>
70
<h3 class="fn"><a name="blockInserted"></a>void QTextBlockGroup::blockInserted ( const <a href="qtextblock.html">QTextBlock</a> & <i>block</i> ) <tt> [virtual protected]</tt></h3>
71
<p>Appends the given <i>block</i> to the end of the group.</p>
72
<p><b>Warning:</b> If you reimplement this function you must call the base class implementation.</p>
73
<h3 class="fn"><a name="blockList"></a><a href="qlist.html">QList</a><<a href="qtextblock.html">QTextBlock</a>> QTextBlockGroup::blockList () const <tt> [protected]</tt></h3>
74
<p>Returns a (possibly empty) list of all the blocks that are part of the block group.</p>
75
<h3 class="fn"><a name="blockRemoved"></a>void QTextBlockGroup::blockRemoved ( const <a href="qtextblock.html">QTextBlock</a> & <i>block</i> ) <tt> [virtual protected]</tt></h3>
76
<p>Removes the given <i>block</i> from the group; the block itself is not deleted, it simply isn't a member of this group anymore.</p>
77
<p /><address><hr /><div align="center">
78
<table width="100%" cellspacing="0" border="0"><tr class="address">
79
<td width="30%">Copyright © 2005 <a href="trolltech.html">Trolltech</a></td>
80
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
81
<td width="30%" align="right"><div align="right">Qt 4.0.0</div></td>
82
</tr></table></div></address></body>