3
3
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
4
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
<!-- /fasttmp/mkdist-qt-4.4.0-1209388211/qt-x11-opensource-src-4.4.0/src/gui/text/qtextobject.cpp -->
5
<!-- /fasttmp/mkdist-qt-4.4.1-1217326953/qt-all-opensource-src-4.4.1/src/gui/text/qtextobject.cpp -->
7
7
<title>Qt 4.4: QTextFrame Class Reference</title>
8
8
<link href="classic.css" rel="stylesheet" type="text/css" />
11
<a name="//apple_ref/cpp/cl//QTextFrame" />
11
12
<table border="0" cellpadding="0" cellspacing="0" width="100%">
13
14
<td align="left" valign="top" width="32"><a href="http://www.trolltech.com/products/qt"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></a></td>
69
70
<p>See also <a href="qtextcursor.html">QTextCursor</a> and <a href="qtextdocument.html">QTextDocument</a>.</p>
71
72
<h2>Member Type Documentation</h2>
73
<a name="//apple_ref/cpp/tdef/QTextFrame/Iterator" />
72
74
<h3 class="fn"><a name="Iterator-typedef"></a>typedef QTextFrame::Iterator</h3>
73
75
<p>Qt-style synonym for <a href="qtextframe-iterator.html">QTextFrame::iterator</a>.</p>
75
77
<h2>Member Function Documentation</h2>
78
<a name="//apple_ref/cpp/instm/QTextFrame/QTextFrame" />
76
79
<h3 class="fn"><a name="QTextFrame"></a>QTextFrame::QTextFrame ( <a href="qtextdocument.html">QTextDocument</a> * <i>document</i> )</h3>
77
80
<p>Creates a new empty frame for the text <i>document</i>.</p>
81
<a name="//apple_ref/cpp/instm/QTextFrame/~QTextFrame" />
78
82
<h3 class="fn"><a name="dtor.QTextFrame"></a>QTextFrame::~QTextFrame ()</h3>
79
83
<p>Destroys the frame, and removes it from the document's layout.</p>
84
<a name="//apple_ref/cpp/instm/QTextFrame/begin" />
80
85
<h3 class="fn"><a name="begin"></a><a href="qtextframe-iterator.html">iterator</a> QTextFrame::begin () const</h3>
81
86
<p>Returns an iterator pointing to the first document element inside the frame.</p>
82
87
<p>See also <a href="qtextframe.html#end">end</a>().</p>
88
<a name="//apple_ref/cpp/instm/QTextFrame/childFrames" />
83
89
<h3 class="fn"><a name="childFrames"></a><a href="qlist.html">QList</a><QTextFrame *> QTextFrame::childFrames () const</h3>
84
90
<p>Returns a (possibly empty) list of the frame's child frames.</p>
85
91
<p>See also <a href="qtextframe.html#parentFrame">parentFrame</a>().</p>
92
<a name="//apple_ref/cpp/instm/QTextFrame/end" />
86
93
<h3 class="fn"><a name="end"></a><a href="qtextframe-iterator.html">iterator</a> QTextFrame::end () const</h3>
87
94
<p>Returns an iterator pointing to the last document element inside the frame.</p>
88
95
<p>See also <a href="qtextframe.html#begin">begin</a>().</p>
96
<a name="//apple_ref/cpp/instm/QTextFrame/firstCursorPosition" />
89
97
<h3 class="fn"><a name="firstCursorPosition"></a><a href="qtextcursor.html">QTextCursor</a> QTextFrame::firstCursorPosition () const</h3>
90
98
<p>Returns the first cursor position inside the frame.</p>
91
99
<p>See also <a href="qtextframe.html#lastCursorPosition">lastCursorPosition</a>(), <a href="qtextframe.html#firstPosition">firstPosition</a>(), and <a href="qtextframe.html#lastPosition">lastPosition</a>().</p>
100
<a name="//apple_ref/cpp/instm/QTextFrame/firstPosition" />
92
101
<h3 class="fn"><a name="firstPosition"></a>int QTextFrame::firstPosition () const</h3>
93
102
<p>Returns the first document position inside the frame.</p>
94
103
<p>See also <a href="qtextframe.html#lastPosition">lastPosition</a>(), <a href="qtextframe.html#firstCursorPosition">firstCursorPosition</a>(), and <a href="qtextframe.html#lastCursorPosition">lastCursorPosition</a>().</p>
104
<a name="//apple_ref/cpp/instm/QTextFrame/frameFormat" />
95
105
<h3 class="fn"><a name="frameFormat"></a><a href="qtextframeformat.html">QTextFrameFormat</a> QTextFrame::frameFormat () const</h3>
96
106
<p>Returns the frame's format.</p>
97
107
<p>See also <a href="qtextframe.html#setFrameFormat">setFrameFormat</a>().</p>
108
<a name="//apple_ref/cpp/instm/QTextFrame/lastCursorPosition" />
98
109
<h3 class="fn"><a name="lastCursorPosition"></a><a href="qtextcursor.html">QTextCursor</a> QTextFrame::lastCursorPosition () const</h3>
99
110
<p>Returns the last cursor position inside the frame.</p>
100
111
<p>See also <a href="qtextframe.html#firstCursorPosition">firstCursorPosition</a>(), <a href="qtextframe.html#firstPosition">firstPosition</a>(), and <a href="qtextframe.html#lastPosition">lastPosition</a>().</p>
112
<a name="//apple_ref/cpp/instm/QTextFrame/lastPosition" />
101
113
<h3 class="fn"><a name="lastPosition"></a>int QTextFrame::lastPosition () const</h3>
102
114
<p>Returns the last document position inside the frame.</p>
103
115
<p>See also <a href="qtextframe.html#firstPosition">firstPosition</a>(), <a href="qtextframe.html#firstCursorPosition">firstCursorPosition</a>(), and <a href="qtextframe.html#lastCursorPosition">lastCursorPosition</a>().</p>
116
<a name="//apple_ref/cpp/instm/QTextFrame/parentFrame" />
104
117
<h3 class="fn"><a name="parentFrame"></a>QTextFrame * QTextFrame::parentFrame () const</h3>
105
118
<p>Returns the frame's parent frame. If the frame is the root frame of a document, this will return 0.</p>
106
119
<p>See also <a href="qtextframe.html#childFrames">childFrames</a>() and <a href="qtextdocument.html#rootFrame">QTextDocument::rootFrame</a>().</p>
120
<a name="//apple_ref/cpp/instm/QTextFrame/setFrameFormat" />
107
121
<h3 class="fn"><a name="setFrameFormat"></a>void QTextFrame::setFrameFormat ( const <a href="qtextframeformat.html">QTextFrameFormat</a> & <i>format</i> )</h3>
108
122
<p>Sets the frame's <i>format</i>.</p>
109
123
<p>See also <a href="qtextframe.html#frameFormat">frameFormat</a>().</p>