<class name="QTextBlockGroup" doc="/** <p>The <a href="QTextBlockGroup.html#QTextBlockGroup(com.trolltech.qt.gui.QTextDocument)"><tt>QTextBlockGroup</tt></a> class provides a container for text blocks within a <a href="QTextDocument.html"><tt>QTextDocument</tt></a>.</p> <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> <p>Each group has a parent document which is specified when the group is constructed.</p> <p>Text blocks can be inserted into a group with <a href="QTextBlockGroup.html#blockInserted(com.trolltech.qt.gui.QTextBlock)"><tt>blockInserted</tt></a>, and removed with <a href="QTextBlockGroup.html#blockRemoved(com.trolltech.qt.gui.QTextBlock)"><tt>blockRemoved</tt></a>. If a block's format is changed, <a href="QTextBlockGroup.html#blockFormatChanged(com.trolltech.qt.gui.QTextBlock)"><tt>blockFormatChanged</tt></a> is called.</p> <p>The list of blocks in the group is returned by <a href="QTextBlockGroup.html#blockList()"><tt>blockList</tt></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> @see <a href="QTextBlock.html"><tt>QTextBlock</tt></a> @see <a href="QTextDocument.html"><tt>QTextDocument</tt></a> */"> <method name="protected QTextBlockGroup(com.trolltech.qt.gui.QTextDocument doc)" doc="/** <p>Creates a new new block group for the given <tt>doc</tt>.</p> <p><b>Warning:</b> This function should only be called from QTextDocument::createObject().</p> */"/> <method name="protected final java.util.List<com.trolltech.qt.gui.QTextBlock> blockList()" doc="/** <p>Returns a (possibly empty) list of all the blocks that are part of the block group.</p> */"/> <method name="protected void blockFormatChanged(com.trolltech.qt.gui.QTextBlock block)" doc="/** <p>This function is called whenever the specified <tt>block</tt> of text is changed. The text block is a member of this group.</p> <p>The base class implementation does nothing.</p> */"/> <method name="protected void blockInserted(com.trolltech.qt.gui.QTextBlock block)" doc="/** <p>Appends the given <tt>block</tt> to the end of the group.</p> <p><b>Warning:</b> If you reimplement this function you must call the base class implementation.</p> */"/> <method name="protected void blockRemoved(com.trolltech.qt.gui.QTextBlock block)" doc="/** <p>Removes the given <tt>block</tt> from the group; the block itself is not deleted, it simply isn't a member of this group anymore.</p> */"/> </class>