<class name="QTextObject" doc="/**
&lt;p&gt;The &lt;a href=&quot;QTextObject.html#QTextObject(com.trolltech.qt.gui.QTextDocument)&quot;&gt;&lt;tt&gt;QTextObject&lt;/tt&gt;&lt;/a&gt; class is a base class for different kinds of objects that can group parts of a &lt;a href=&quot;QTextDocument.html&quot;&gt;&lt;tt&gt;QTextDocument&lt;/tt&gt;&lt;/a&gt; together.&lt;/p&gt;
&lt;p&gt;The common grouping text objects are lists (&lt;a href=&quot;QTextList.html&quot;&gt;&lt;tt&gt;QTextList&lt;/tt&gt;&lt;/a&gt;), frames (&lt;a href=&quot;QTextFrame.html&quot;&gt;&lt;tt&gt;QTextFrame&lt;/tt&gt;&lt;/a&gt;), and tables (&lt;a href=&quot;QTextTable.html&quot;&gt;&lt;tt&gt;QTextTable&lt;/tt&gt;&lt;/a&gt;). A text object has an associated &lt;a href=&quot;QTextObject.html#format()&quot;&gt;&lt;tt&gt;format&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QTextObject.html#document()&quot;&gt;&lt;tt&gt;document&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;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 &lt;a href=&quot;QTextBlockGroup.html&quot;&gt;&lt;tt&gt;QTextBlockGroup&lt;/tt&gt;&lt;/a&gt;, and the second kind from &lt;a href=&quot;QTextFrame.html&quot;&gt;&lt;tt&gt;QTextFrame&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You rarely need to use this class directly. When creating custom text objects, you will also need to reimplement QTextDocument::createObject() which acts as a factory method for creating text objects.&lt;/p&gt;

@see &lt;a href=&quot;QTextDocument.html&quot;&gt;&lt;tt&gt;QTextDocument&lt;/tt&gt;&lt;/a&gt; */">
    <method name="protected QTextObject(com.trolltech.qt.gui.QTextDocument doc)" doc="/**
&lt;p&gt;Creates a new &lt;a href=&quot;QTextObject.html#QTextObject(com.trolltech.qt.gui.QTextDocument)&quot;&gt;&lt;tt&gt;QTextObject&lt;/tt&gt;&lt;/a&gt; for the given &lt;tt&gt;doc&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; This function should never be called directly, but only from QTextDocument::createObject().&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QTextDocument document()" doc="/**
&lt;p&gt;Returns the document this object belongs to.&lt;/p&gt;

@see &lt;a href=&quot;QTextObject.html#format()&quot;&gt;&lt;tt&gt;format&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QTextFormat format()" doc="/**
&lt;p&gt;Returns the text object's format.&lt;/p&gt;

@see &lt;a href=&quot;QTextObject.html#setFormat(com.trolltech.qt.gui.QTextFormat)&quot;&gt;&lt;tt&gt;setFormat&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextObject.html#document()&quot;&gt;&lt;tt&gt;document&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int formatIndex()" doc="/**
&lt;p&gt;Returns the index of the object's format in the document's internal list of formats.&lt;/p&gt;

@see &lt;tt&gt;QTextDocument::object&lt;/tt&gt; */"/>
    <method name="public final int objectIndex()" doc="/**
&lt;p&gt;Returns the object index of this object. This can be used together with QTextFormat::setObjectIndex().&lt;/p&gt;
 */"/>
    <method name="protected final void setFormat(com.trolltech.qt.gui.QTextFormat format)" doc="/**
&lt;p&gt;Sets the text object's &lt;tt&gt;format&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTextObject.html#format()&quot;&gt;&lt;tt&gt;format&lt;/tt&gt;&lt;/a&gt; */"/>
</class>
