Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > 8e6051afcdb111a0317a58fb64c2abf5 > files > 5294

qt4-doc-4.6.3-0.2mdv2010.2.i586.rpm

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- qtextformat.cpp -->
<head>
  <title>Qt 4.6: QTextListFormat Class Reference</title>
  <link href="classic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<a name="//apple_ref/cpp/cl//QTextListFormat"></a>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="top" width="32"><a href="http://qt.nokia.com/"><img src="images/qt-logo.png" align="left" border="0" /></a></td>
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">All&nbsp;Functions</font></a>&nbsp;&middot; <a href="overviews.html"><font color="#004faf">Overviews</font></a></td></tr></table><h1 class="title">QTextListFormat Class Reference<br /><span class="small-subtitle">[<a href="qtgui.html">QtGui</a> module]</span>
</h1>
<p>The QTextListFormat class provides formatting information for lists in a <a href="qtextdocument.html">QTextDocument</a>. <a href="#details">More...</a></p>
<pre> #include &lt;QTextListFormat&gt;</pre><p>Inherits <a href="qtextformat.html">QTextFormat</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="qtextlistformat-members.html">List of all members, including inherited members</a></li>
</ul>
<hr />
<a name="public-types"></a>
<h2>Public Types</h2>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><b><a href="qtextlistformat.html#Style-enum">Style</a></b> { ListDisc, ListCircle, ListSquare, ListDecimal, ..., ListUpperRoman }</td></tr>
</table>
<hr />
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qtextlistformat.html#QTextListFormat">QTextListFormat</a></b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><b><a href="qtextlistformat.html#indent">indent</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="qtextlistformat.html#isValid">isValid</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qtextlistformat.html#setIndent">setIndent</a></b> ( int <i>indentation</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qtextlistformat.html#setStyle">setStyle</a></b> ( Style <i>style</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">Style </td><td class="memItemRight" valign="bottom"><b><a href="qtextlistformat.html#style">style</a></b> () const</td></tr>
</table>
<ul>
<li><div bar="2" class="fn"></div>49 public functions inherited from <a href="qtextformat.html#public-functions">QTextFormat</a></li>
</ul>
<a name="details"></a>
<hr />
<h2>Detailed Description</h2>
<p>The QTextListFormat class provides formatting information for lists in a <a href="qtextdocument.html">QTextDocument</a>.</p>
<p>A list is composed of one or more items, represented as text blocks. The list's format specifies the appearance of items in the list. In particular, it determines the indentation and the style of each item.</p>
<p>The indentation of the items is an integer value that causes each item to be offset from the left margin by a certain amount. This value is read with <a href="qtextlistformat.html#indent">indent</a>() and set with <a href="qtextlistformat.html#setIndent">setIndent</a>().</p>
<p>The style used to decorate each item is set with <a href="qtextlistformat.html#setStyle">setStyle</a>() and can be read with the <a href="qtextlistformat.html#style">style</a>() function. The style controls the type of bullet points and numbering scheme used for items in the list. Note that lists that use the decimal numbering scheme begin counting at 1 rather than 0.</p>
<p>See also <a href="qtextlist.html">QTextList</a>.</p>
<hr />
<h2>Member Type Documentation</h2>
<a name="//apple_ref/cpp/tag/QTextListFormat/Style"></a>
<a name="//apple_ref/cpp/econst/QTextListFormat/ListDisc"></a>
<a name="//apple_ref/cpp/econst/QTextListFormat/ListCircle"></a>
<a name="//apple_ref/cpp/econst/QTextListFormat/ListSquare"></a>
<a name="//apple_ref/cpp/econst/QTextListFormat/ListDecimal"></a>
<a name="//apple_ref/cpp/econst/QTextListFormat/ListLowerAlpha"></a>
<a name="//apple_ref/cpp/econst/QTextListFormat/ListUpperAlpha"></a>
<a name="//apple_ref/cpp/econst/QTextListFormat/ListLowerRoman"></a>
<a name="//apple_ref/cpp/econst/QTextListFormat/ListUpperRoman"></a>
<a name="//apple_ref/cpp/econst/QTextListFormat/ListStyleUndefined"></a>
<h3 class="fn"><a name="Style-enum"></a>enum QTextListFormat::Style</h3>
<p>This enum describes the symbols used to decorate list items:</p>
<p><table class="valuelist" border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>QTextListFormat::ListDisc</tt></td><td align="center" valign="top"><tt>-1</tt></td><td valign="top">a filled circle</td></tr>
<tr><td valign="top"><tt>QTextListFormat::ListCircle</tt></td><td align="center" valign="top"><tt>-2</tt></td><td valign="top">an empty circle</td></tr>
<tr><td valign="top"><tt>QTextListFormat::ListSquare</tt></td><td align="center" valign="top"><tt>-3</tt></td><td valign="top">a filled square</td></tr>
<tr><td valign="top"><tt>QTextListFormat::ListDecimal</tt></td><td align="center" valign="top"><tt>-4</tt></td><td valign="top">decimal values in ascending order</td></tr>
<tr><td valign="top"><tt>QTextListFormat::ListLowerAlpha</tt></td><td align="center" valign="top"><tt>-5</tt></td><td valign="top">lower case Latin characters in alphabetical order</td></tr>
<tr><td valign="top"><tt>QTextListFormat::ListUpperAlpha</tt></td><td align="center" valign="top"><tt>-6</tt></td><td valign="top">upper case Latin characters in alphabetical order</td></tr>
<tr><td valign="top"><tt>QTextListFormat::ListLowerRoman</tt></td><td align="center" valign="top"><tt>-7</tt></td><td valign="top">lower case roman numerals (supports up to 4999 items only)</td></tr>
<tr><td valign="top"><tt>QTextListFormat::ListUpperRoman</tt></td><td align="center" valign="top"><tt>-8</tt></td><td valign="top">upper case roman numerals (supports up to 4999 items only)</td></tr>
</table></p>
<hr />
<h2>Member Function Documentation</h2>
<a name="//apple_ref/cpp/instm/QTextListFormat/QTextListFormat"></a>
<h3 class="fn"><a name="QTextListFormat"></a>QTextListFormat::QTextListFormat ()</h3>
<p>Constructs a new list format object.</p>
<a name="//apple_ref/cpp/instm/QTextListFormat/indent"></a>
<h3 class="fn"><a name="indent"></a>int QTextListFormat::indent () const</h3>
<p>Returns the list format's indentation. The indentation is multiplied by the <a href="qtextdocument.html#indentWidth-prop">QTextDocument::indentWidth</a> property to get the effective indent in pixels.</p>
<p>See also <a href="qtextlistformat.html#setIndent">setIndent</a>().</p>
<a name="//apple_ref/cpp/instm/QTextListFormat/isValid"></a>
<h3 class="fn"><a name="isValid"></a>bool QTextListFormat::isValid () const</h3>
<p>Returns true if this list format is valid; otherwise returns false.</p>
<a name="//apple_ref/cpp/instm/QTextListFormat/setIndent"></a>
<h3 class="fn"><a name="setIndent"></a>void QTextListFormat::setIndent ( int <i>indentation</i> )</h3>
<p>Sets the list format's <i>indentation</i>. The indentation is multiplied by the <a href="qtextdocument.html#indentWidth-prop">QTextDocument::indentWidth</a> property to get the effective indent in pixels.</p>
<p>See also <a href="qtextlistformat.html#indent">indent</a>().</p>
<a name="//apple_ref/cpp/instm/QTextListFormat/setStyle"></a>
<h3 class="fn"><a name="setStyle"></a>void QTextListFormat::setStyle ( <a href="qtextlistformat.html#Style-enum">Style</a> <i>style</i> )</h3>
<p>Sets the list format's <i>style</i>.</p>
<p>See also <a href="qtextlistformat.html#style">style</a>() and <a href="qtextlistformat.html#Style-enum">Style</a>.</p>
<a name="//apple_ref/cpp/instm/QTextListFormat/style"></a>
<h3 class="fn"><a name="style"></a><a href="qtextlistformat.html#Style-enum">Style</a> QTextListFormat::style () const</h3>
<p>Returns the list format's style.</p>
<p>See also <a href="qtextlistformat.html#setStyle">setStyle</a>() and <a href="qtextlistformat.html#Style-enum">Style</a>.</p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="40%" align="left">Copyright &copy; 2010 Nokia Corporation and/or its subsidiary(-ies)</td>
<td width="20%" align="center"><a href="trademarks.html">Trademarks</a></td>
<td width="40%" align="right"><div align="right">Qt 4.6.3</div></td>
</tr></table></div></address></body>
</html>