1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qtextformat.cpp -->
<title>Qt 4.8: QTextFrameFormat Class Reference</title>
<link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
<div class="content">
<a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
</div>
<div class="breadcrumb toolblock">
<ul>
<li class="first"><a href="index.html">Home</a></li>
<!-- Breadcrumbs go here -->
<li><a href="modules.html">Modules</a></li>
<li><a href="qtgui.html">QtGui</a></li>
<li>QTextFrameFormat</li>
</ul>
</div>
</div>
<div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-types">Public Types</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">QTextFrameFormat Class Reference</h1>
<!-- $$$QTextFrameFormat-brief -->
<p>The QTextFrameFormat class provides formatting information for frames in a <a href="qtextdocument.html">QTextDocument</a>. <a href="#details">More...</a></p>
<!-- @@@QTextFrameFormat -->
<pre class="cpp"> <span class="preprocessor">#include <QTextFrameFormat></span></pre><p><b>Inherits: </b><a href="qtextformat.html">QTextFormat</a>.</p>
<p><b>Inherited by: </b><a href="qtexttableformat.html">QTextTableFormat</a>.</p>
<p><b>Note:</b> All functions in this class are <a href="threads-reentrancy.html#reentrant">reentrant</a>.</p>
<ul>
<li><a href="qtextframeformat-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-types"></a>
<h2>Public Types</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#BorderStyle-enum">BorderStyle</a></b> { BorderStyle_None, BorderStyle_Dotted, BorderStyle_Dashed, BorderStyle_Solid, ..., BorderStyle_Outset }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#Position-enum">Position</a></b> { InFlow, FloatLeft, FloatRight }</td></tr>
</table>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#QTextFrameFormat">QTextFrameFormat</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#border">border</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QBrush </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#borderBrush">borderBrush</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> BorderStyle </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#borderStyle">borderStyle</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#bottomMargin">bottomMargin</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QTextLength </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#height">height</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#isValid">isValid</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#leftMargin">leftMargin</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#margin">margin</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#padding">padding</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> PageBreakFlags </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#pageBreakPolicy">pageBreakPolicy</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Position </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#position">position</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#rightMargin">rightMargin</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#setBorder">setBorder</a></b> ( qreal <i>width</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#setBorderBrush">setBorderBrush</a></b> ( const QBrush & <i>brush</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#setBorderStyle">setBorderStyle</a></b> ( BorderStyle <i>style</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#setBottomMargin">setBottomMargin</a></b> ( qreal <i>margin</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#setHeight">setHeight</a></b> ( const QTextLength & <i>height</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#setHeight-2">setHeight</a></b> ( qreal <i>height</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#setLeftMargin">setLeftMargin</a></b> ( qreal <i>margin</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#setMargin">setMargin</a></b> ( qreal <i>margin</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#setPadding">setPadding</a></b> ( qreal <i>width</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#setPageBreakPolicy">setPageBreakPolicy</a></b> ( PageBreakFlags <i>policy</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#setPosition">setPosition</a></b> ( Position <i>policy</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#setRightMargin">setRightMargin</a></b> ( qreal <i>margin</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#setTopMargin">setTopMargin</a></b> ( qreal <i>margin</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#setWidth">setWidth</a></b> ( const QTextLength & <i>width</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#setWidth-2">setWidth</a></b> ( qreal <i>width</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#topMargin">topMargin</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QTextLength </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#width">width</a></b> () const</td></tr>
</table>
<ul>
<li class="fn">49 public functions inherited from <a href="qtextformat.html#public-functions">QTextFormat</a></li>
</ul>
<a name="details"></a>
<!-- $$$QTextFrameFormat-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QTextFrameFormat class provides formatting information for frames in a <a href="qtextdocument.html">QTextDocument</a>.</p>
<p>A text frame groups together one or more blocks of text, providing a layer of structure larger than the paragraph. The format of a frame specifies how it is rendered and positioned on the screen. It does not directly specify the behavior of the text formatting within, but provides constraints on the layout of its children.</p>
<p>The frame format defines the <a href="qtextframeformat.html#width">width</a>() and <a href="qtextframeformat.html#height">height</a>() of the frame on the screen. Each frame can have a <a href="qtextframeformat.html#border">border</a>() that surrounds its contents with a rectangular box. The border is surrounded by a <a href="qtextframeformat.html#margin">margin</a>() around the frame, and the contents of the frame are kept separate from the border by the frame's <a href="qtextframeformat.html#padding">padding</a>(). This scheme is similar to the box model used by Cascading Style Sheets for HTML pages.</p>
<p class="centerAlign"><img src="images/qtextframe-style.png" alt="" /></p><p>The <a href="qtextframeformat.html#position">position</a>() of a frame is set using <a href="qtextframeformat.html#setPosition">setPosition</a>() and determines how it is located relative to the surrounding text.</p>
<p>The validity of a QTextFrameFormat object can be determined with the <a href="qtextframeformat.html#isValid">isValid</a>() function.</p>
</div>
<p><b>See also </b><a href="qtextframe.html">QTextFrame</a> and <a href="qtextblockformat.html">QTextBlockFormat</a>.</p>
<!-- @@@QTextFrameFormat -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$BorderStyle$$$BorderStyle_None$$$BorderStyle_Dotted$$$BorderStyle_Dashed$$$BorderStyle_Solid$$$BorderStyle_Double$$$BorderStyle_DotDash$$$BorderStyle_DotDotDash$$$BorderStyle_Groove$$$BorderStyle_Ridge$$$BorderStyle_Inset$$$BorderStyle_Outset -->
<h3 class="fn"><a name="BorderStyle-enum"></a>enum QTextFrameFormat::<span class="name">BorderStyle</span></h3>
<p>This enum describes different border styles for the text frame.</p>
<table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><tt>QTextFrameFormat::BorderStyle_None</tt></td><td class="topAlign"><tt>0</tt></td></tr>
<tr><td class="topAlign"><tt>QTextFrameFormat::BorderStyle_Dotted</tt></td><td class="topAlign"><tt>1</tt></td></tr>
<tr><td class="topAlign"><tt>QTextFrameFormat::BorderStyle_Dashed</tt></td><td class="topAlign"><tt>2</tt></td></tr>
<tr><td class="topAlign"><tt>QTextFrameFormat::BorderStyle_Solid</tt></td><td class="topAlign"><tt>3</tt></td></tr>
<tr><td class="topAlign"><tt>QTextFrameFormat::BorderStyle_Double</tt></td><td class="topAlign"><tt>4</tt></td></tr>
<tr><td class="topAlign"><tt>QTextFrameFormat::BorderStyle_DotDash</tt></td><td class="topAlign"><tt>5</tt></td></tr>
<tr><td class="topAlign"><tt>QTextFrameFormat::BorderStyle_DotDotDash</tt></td><td class="topAlign"><tt>6</tt></td></tr>
<tr><td class="topAlign"><tt>QTextFrameFormat::BorderStyle_Groove</tt></td><td class="topAlign"><tt>7</tt></td></tr>
<tr><td class="topAlign"><tt>QTextFrameFormat::BorderStyle_Ridge</tt></td><td class="topAlign"><tt>8</tt></td></tr>
<tr><td class="topAlign"><tt>QTextFrameFormat::BorderStyle_Inset</tt></td><td class="topAlign"><tt>9</tt></td></tr>
<tr><td class="topAlign"><tt>QTextFrameFormat::BorderStyle_Outset</tt></td><td class="topAlign"><tt>10</tt></td></tr>
</table>
<p>This enum was introduced or modified in Qt 4.3.</p>
<p><b>See also </b><a href="qtextframeformat.html#borderStyle">borderStyle</a>() and <a href="qtextformat.html#Property-enum">FrameBorderStyle</a>.</p>
<!-- @@@BorderStyle -->
<!-- $$$Position$$$InFlow$$$FloatLeft$$$FloatRight -->
<h3 class="fn"><a name="Position-enum"></a>enum QTextFrameFormat::<span class="name">Position</span></h3>
<p>This enum describes how a frame is located relative to the surrounding text.</p>
<table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><tt>QTextFrameFormat::InFlow</tt></td><td class="topAlign"><tt>0</tt></td></tr>
<tr><td class="topAlign"><tt>QTextFrameFormat::FloatLeft</tt></td><td class="topAlign"><tt>1</tt></td></tr>
<tr><td class="topAlign"><tt>QTextFrameFormat::FloatRight</tt></td><td class="topAlign"><tt>2</tt></td></tr>
</table>
<p><b>See also </b><a href="qtextframeformat.html#position">position</a>() and <a href="qtextformat.html#Property-enum">CssFloat</a>.</p>
<!-- @@@Position -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QTextFrameFormat[overload1]$$$QTextFrameFormat -->
<h3 class="fn"><a name="QTextFrameFormat"></a>QTextFrameFormat::<span class="name">QTextFrameFormat</span> ()</h3>
<p>Constructs a text frame format object with the default properties.</p>
<!-- @@@QTextFrameFormat -->
<!-- $$$border[overload1]$$$border -->
<h3 class="fn"><a name="border"></a><span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> QTextFrameFormat::<span class="name">border</span> () const</h3>
<p>Returns the width of the border in pixels.</p>
<p><b>See also </b><a href="qtextframeformat.html#setBorder">setBorder</a>().</p>
<!-- @@@border -->
<!-- $$$borderBrush[overload1]$$$borderBrush -->
<h3 class="fn"><a name="borderBrush"></a><span class="type"><a href="qbrush.html">QBrush</a></span> QTextFrameFormat::<span class="name">borderBrush</span> () const</h3>
<p>Returns the brush used for the frame's border.</p>
<p>This function was introduced in Qt 4.3.</p>
<p><b>See also </b><a href="qtextframeformat.html#setBorderBrush">setBorderBrush</a>().</p>
<!-- @@@borderBrush -->
<!-- $$$borderStyle[overload1]$$$borderStyle -->
<h3 class="fn"><a name="borderStyle"></a><span class="type"><a href="qtextframeformat.html#BorderStyle-enum">BorderStyle</a></span> QTextFrameFormat::<span class="name">borderStyle</span> () const</h3>
<p>Returns the style of the frame's border.</p>
<p>This function was introduced in Qt 4.3.</p>
<p><b>See also </b><a href="qtextframeformat.html#setBorderStyle">setBorderStyle</a>().</p>
<!-- @@@borderStyle -->
<!-- $$$bottomMargin[overload1]$$$bottomMargin -->
<h3 class="fn"><a name="bottomMargin"></a><span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> QTextFrameFormat::<span class="name">bottomMargin</span> () const</h3>
<p>Returns the width of the frame's bottom margin in pixels.</p>
<p>This function was introduced in Qt 4.3.</p>
<p><b>See also </b><a href="qtextframeformat.html#setBottomMargin">setBottomMargin</a>().</p>
<!-- @@@bottomMargin -->
<!-- $$$height[overload1]$$$height -->
<h3 class="fn"><a name="height"></a><span class="type"><a href="qtextlength.html">QTextLength</a></span> QTextFrameFormat::<span class="name">height</span> () const</h3>
<p>Returns the height of the frame's border rectangle.</p>
<p><b>See also </b><a href="qtextframeformat.html#setHeight">setHeight</a>().</p>
<!-- @@@height -->
<!-- $$$isValid[overload1]$$$isValid -->
<h3 class="fn"><a name="isValid"></a><span class="type">bool</span> QTextFrameFormat::<span class="name">isValid</span> () const</h3>
<p>Returns true if the format description is valid; otherwise returns false.</p>
<!-- @@@isValid -->
<!-- $$$leftMargin[overload1]$$$leftMargin -->
<h3 class="fn"><a name="leftMargin"></a><span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> QTextFrameFormat::<span class="name">leftMargin</span> () const</h3>
<p>Returns the width of the frame's left margin in pixels.</p>
<p>This function was introduced in Qt 4.3.</p>
<p><b>See also </b><a href="qtextframeformat.html#setLeftMargin">setLeftMargin</a>().</p>
<!-- @@@leftMargin -->
<!-- $$$margin[overload1]$$$margin -->
<h3 class="fn"><a name="margin"></a><span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> QTextFrameFormat::<span class="name">margin</span> () const</h3>
<p>Returns the width of the frame's external margin in pixels.</p>
<p><b>See also </b><a href="qtextframeformat.html#setMargin">setMargin</a>().</p>
<!-- @@@margin -->
<!-- $$$padding[overload1]$$$padding -->
<h3 class="fn"><a name="padding"></a><span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> QTextFrameFormat::<span class="name">padding</span> () const</h3>
<p>Returns the width of the frame's internal padding in pixels.</p>
<p><b>See also </b><a href="qtextframeformat.html#setPadding">setPadding</a>().</p>
<!-- @@@padding -->
<!-- $$$pageBreakPolicy[overload1]$$$pageBreakPolicy -->
<h3 class="fn"><a name="pageBreakPolicy"></a><span class="type"><a href="qtextformat.html#PageBreakFlag-enum">PageBreakFlags</a></span> QTextFrameFormat::<span class="name">pageBreakPolicy</span> () const</h3>
<p>Returns the currently set page break policy for the frame/table. The default is <a href="qtextformat.html#PageBreakFlag-enum">QTextFormat::PageBreak_Auto</a>.</p>
<p>This function was introduced in Qt 4.2.</p>
<p><b>See also </b><a href="qtextframeformat.html#setPageBreakPolicy">setPageBreakPolicy</a>().</p>
<!-- @@@pageBreakPolicy -->
<!-- $$$position[overload1]$$$position -->
<h3 class="fn"><a name="position"></a><span class="type"><a href="qtextframeformat.html#Position-enum">Position</a></span> QTextFrameFormat::<span class="name">position</span> () const</h3>
<p>Returns the positioning policy for frames with this frame format.</p>
<p><b>See also </b><a href="qtextframeformat.html#setPosition">setPosition</a>().</p>
<!-- @@@position -->
<!-- $$$rightMargin[overload1]$$$rightMargin -->
<h3 class="fn"><a name="rightMargin"></a><span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> QTextFrameFormat::<span class="name">rightMargin</span> () const</h3>
<p>Returns the width of the frame's right margin in pixels.</p>
<p>This function was introduced in Qt 4.3.</p>
<p><b>See also </b><a href="qtextframeformat.html#setRightMargin">setRightMargin</a>().</p>
<!-- @@@rightMargin -->
<!-- $$$setBorder[overload1]$$$setBorderqreal -->
<h3 class="fn"><a name="setBorder"></a><span class="type">void</span> QTextFrameFormat::<span class="name">setBorder</span> ( <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>width</i> )</h3>
<p>Sets the <i>width</i> (in pixels) of the frame's border.</p>
<p><b>See also </b><a href="qtextframeformat.html#border">border</a>().</p>
<!-- @@@setBorder -->
<!-- $$$setBorderBrush[overload1]$$$setBorderBrushconstQBrush& -->
<h3 class="fn"><a name="setBorderBrush"></a><span class="type">void</span> QTextFrameFormat::<span class="name">setBorderBrush</span> ( const <span class="type"><a href="qbrush.html">QBrush</a></span> & <i>brush</i> )</h3>
<p>Sets the <i>brush</i> used for the frame's border.</p>
<p>This function was introduced in Qt 4.3.</p>
<p><b>See also </b><a href="qtextframeformat.html#borderBrush">borderBrush</a>().</p>
<!-- @@@setBorderBrush -->
<!-- $$$setBorderStyle[overload1]$$$setBorderStyleBorderStyle -->
<h3 class="fn"><a name="setBorderStyle"></a><span class="type">void</span> QTextFrameFormat::<span class="name">setBorderStyle</span> ( <span class="type"><a href="qtextframeformat.html#BorderStyle-enum">BorderStyle</a></span> <i>style</i> )</h3>
<p>Sets the <i>style</i> of the frame's border.</p>
<p>This function was introduced in Qt 4.3.</p>
<p><b>See also </b><a href="qtextframeformat.html#borderStyle">borderStyle</a>().</p>
<!-- @@@setBorderStyle -->
<!-- $$$setBottomMargin[overload1]$$$setBottomMarginqreal -->
<h3 class="fn"><a name="setBottomMargin"></a><span class="type">void</span> QTextFrameFormat::<span class="name">setBottomMargin</span> ( <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>margin</i> )</h3>
<p>Sets the frame's bottom <i>margin</i> in pixels.</p>
<p>This function was introduced in Qt 4.3.</p>
<p><b>See also </b><a href="qtextframeformat.html#bottomMargin">bottomMargin</a>().</p>
<!-- @@@setBottomMargin -->
<!-- $$$setHeight[overload1]$$$setHeightconstQTextLength& -->
<h3 class="fn"><a name="setHeight"></a><span class="type">void</span> QTextFrameFormat::<span class="name">setHeight</span> ( const <span class="type"><a href="qtextlength.html">QTextLength</a></span> & <i>height</i> )</h3>
<p>Sets the frame's <i>height</i>.</p>
<p><b>See also </b><a href="qtextframeformat.html#height">height</a>().</p>
<!-- @@@setHeight -->
<!-- $$$setHeight$$$setHeightqreal -->
<h3 class="fn"><a name="setHeight-2"></a><span class="type">void</span> QTextFrameFormat::<span class="name">setHeight</span> ( <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>height</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the frame's <i>height</i>.</p>
<!-- @@@setHeight -->
<!-- $$$setLeftMargin[overload1]$$$setLeftMarginqreal -->
<h3 class="fn"><a name="setLeftMargin"></a><span class="type">void</span> QTextFrameFormat::<span class="name">setLeftMargin</span> ( <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>margin</i> )</h3>
<p>Sets the frame's left <i>margin</i> in pixels.</p>
<p>This function was introduced in Qt 4.3.</p>
<p><b>See also </b><a href="qtextframeformat.html#leftMargin">leftMargin</a>().</p>
<!-- @@@setLeftMargin -->
<!-- $$$setMargin[overload1]$$$setMarginqreal -->
<h3 class="fn"><a name="setMargin"></a><span class="type">void</span> QTextFrameFormat::<span class="name">setMargin</span> ( <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>margin</i> )</h3>
<p>Sets the frame's <i>margin</i> in pixels. This method also sets the left, right, top and bottom margins of the frame to the same value. The individual margins override the general margin.</p>
<p><b>See also </b><a href="qtextframeformat.html#margin">margin</a>().</p>
<!-- @@@setMargin -->
<!-- $$$setPadding[overload1]$$$setPaddingqreal -->
<h3 class="fn"><a name="setPadding"></a><span class="type">void</span> QTextFrameFormat::<span class="name">setPadding</span> ( <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>width</i> )</h3>
<p>Sets the <i>width</i> of the frame's internal padding in pixels.</p>
<p><b>See also </b><a href="qtextframeformat.html#padding">padding</a>().</p>
<!-- @@@setPadding -->
<!-- $$$setPageBreakPolicy[overload1]$$$setPageBreakPolicyPageBreakFlags -->
<h3 class="fn"><a name="setPageBreakPolicy"></a><span class="type">void</span> QTextFrameFormat::<span class="name">setPageBreakPolicy</span> ( <span class="type"><a href="qtextformat.html#PageBreakFlag-enum">PageBreakFlags</a></span> <i>policy</i> )</h3>
<p>Sets the page break policy for the frame/table to <i>policy</i>.</p>
<p>This function was introduced in Qt 4.2.</p>
<p><b>See also </b><a href="qtextframeformat.html#pageBreakPolicy">pageBreakPolicy</a>().</p>
<!-- @@@setPageBreakPolicy -->
<!-- $$$setPosition[overload1]$$$setPositionPosition -->
<h3 class="fn"><a name="setPosition"></a><span class="type">void</span> QTextFrameFormat::<span class="name">setPosition</span> ( <span class="type"><a href="qtextframeformat.html#Position-enum">Position</a></span> <i>policy</i> )</h3>
<p>Sets the <i>policy</i> for positioning frames with this frame format.</p>
<p><b>See also </b><a href="qtextframeformat.html#position">position</a>().</p>
<!-- @@@setPosition -->
<!-- $$$setRightMargin[overload1]$$$setRightMarginqreal -->
<h3 class="fn"><a name="setRightMargin"></a><span class="type">void</span> QTextFrameFormat::<span class="name">setRightMargin</span> ( <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>margin</i> )</h3>
<p>Sets the frame's right <i>margin</i> in pixels.</p>
<p>This function was introduced in Qt 4.3.</p>
<p><b>See also </b><a href="qtextframeformat.html#rightMargin">rightMargin</a>().</p>
<!-- @@@setRightMargin -->
<!-- $$$setTopMargin[overload1]$$$setTopMarginqreal -->
<h3 class="fn"><a name="setTopMargin"></a><span class="type">void</span> QTextFrameFormat::<span class="name">setTopMargin</span> ( <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>margin</i> )</h3>
<p>Sets the frame's top <i>margin</i> in pixels.</p>
<p>This function was introduced in Qt 4.3.</p>
<p><b>See also </b><a href="qtextframeformat.html#topMargin">topMargin</a>().</p>
<!-- @@@setTopMargin -->
<!-- $$$setWidth[overload1]$$$setWidthconstQTextLength& -->
<h3 class="fn"><a name="setWidth"></a><span class="type">void</span> QTextFrameFormat::<span class="name">setWidth</span> ( const <span class="type"><a href="qtextlength.html">QTextLength</a></span> & <i>width</i> )</h3>
<p>Sets the frame's border rectangle's <i>width</i>.</p>
<p><b>See also </b><a href="qtextframeformat.html#width">width</a>() and <a href="qtextlength.html">QTextLength</a>.</p>
<!-- @@@setWidth -->
<!-- $$$setWidth$$$setWidthqreal -->
<h3 class="fn"><a name="setWidth-2"></a><span class="type">void</span> QTextFrameFormat::<span class="name">setWidth</span> ( <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>width</i> )</h3>
<p>This is an overloaded function.</p>
<p>Convenience method that sets the width of the frame's border rectangle's width to the specified fixed <i>width</i>.</p>
<!-- @@@setWidth -->
<!-- $$$topMargin[overload1]$$$topMargin -->
<h3 class="fn"><a name="topMargin"></a><span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> QTextFrameFormat::<span class="name">topMargin</span> () const</h3>
<p>Returns the width of the frame's top margin in pixels.</p>
<p>This function was introduced in Qt 4.3.</p>
<p><b>See also </b><a href="qtextframeformat.html#setTopMargin">setTopMargin</a>().</p>
<!-- @@@topMargin -->
<!-- $$$width[overload1]$$$width -->
<h3 class="fn"><a name="width"></a><span class="type"><a href="qtextlength.html">QTextLength</a></span> QTextFrameFormat::<span class="name">width</span> () const</h3>
<p>Returns the width of the frame's border rectangle.</p>
<p><b>See also </b><a href="qtextframeformat.html#setWidth">setWidth</a>() and <a href="qtextlength.html">QTextLength</a>.</p>
<!-- @@@width -->
</div>
<div class="ft">
<span></span>
</div>
</div>
<div class="footer">
<p>
<acronym title="Copyright">©</acronym> 2012 Nokia Corporation and/or its
subsidiaries. Documentation contributions included herein are the copyrights of
their respective owners.</p>
<br />
<p>
The documentation provided herein is licensed under the terms of the
<a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation
License version 1.3</a> as published by the Free Software Foundation.</p>
<p>
Documentation sources may be obtained from <a href="http://www.qt-project.org">
www.qt-project.org</a>.</p>
<br />
<p>
Nokia, Qt and their respective logos are trademarks of Nokia Corporation
in Finland and/or other countries worldwide. All other trademarks are property
of their respective owners. <a title="Privacy Policy"
href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p>
</div>
</body>
</html>
|