~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to doc/html/qtextlistformat.html

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-08-24 04:09:09 UTC
  • Revision ID: james.westby@ubuntu.com-20050824040909-xmxe9jfr4a0w5671
Tags: upstream-4.0.0
ImportĀ upstreamĀ versionĀ 4.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="iso-8859-1"?>
 
2
<!DOCTYPE html
 
3
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
 
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 
5
<!-- /tmp/qt-4.0.0-espenr-1119621036935/qt-x11-opensource-desktop-4.0.0/src/gui/text/qtextformat.cpp -->
 
6
<head>
 
7
    <title>Qt 4.0: QTextListFormat Class Reference</title>
 
8
    <style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }
 
9
a:link { color: #004faf; text-decoration: none }
 
10
a:visited { color: #672967; text-decoration: none }
 
11
td.postheader { font-family: sans-serif }
 
12
tr.address { font-family: sans-serif }
 
13
body { background: #ffffff; color: black; }</style>
 
14
</head>
 
15
<body>
 
16
<table border="0" cellpadding="0" cellspacing="0" width="100%">
 
17
<tr>
 
18
<td align="left" valign="top" width="32"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></td>
 
19
<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="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a>&nbsp;&middot; <a href="annotated.html"><font color="#004faf">Annotated</font></a>&nbsp;&middot; <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
 
20
<td align="right" valign="top" width="230"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></td></tr></table><h1 align="center">QTextListFormat Class Reference</h1>
 
21
<p>The QTextListFormat class provides formatting information for lists in a <a href="qtextdocument.html">QTextDocument</a>. <a href="#details">More...</a></p>
 
22
<pre>#include &lt;QTextListFormat&gt;</pre><p>Part of the <a href="qtgui.html">QtGui</a> module.</p>
 
23
<p>Inherits <a href="qtextformat.html">QTextFormat</a>.</p>
 
24
<ul>
 
25
<li><a href="qtextlistformat-members.html">List of all members, including inherited members</a></li>
 
26
</ul>
 
27
<a name="public-types"></a>
 
28
<h3>Public Types</h3>
 
29
<ul>
 
30
<li><div class="fn"/>enum <b><a href="qtextlistformat.html#Style-enum">Style</a></b> { ListDisc, ListCircle, ListSquare, ListDecimal, ListLowerAlpha, ListUpperAlpha }</li>
 
31
</ul>
 
32
<a name="public-functions"></a>
 
33
<h3>Public Functions</h3>
 
34
<ul>
 
35
<li><div class="fn"/><b><a href="qtextlistformat.html#QTextListFormat">QTextListFormat</a></b> ()</li>
 
36
<li><div class="fn"/>int <b><a href="qtextlistformat.html#indent">indent</a></b> () const</li>
 
37
<li><div class="fn"/>bool <b><a href="qtextlistformat.html#isValid">isValid</a></b> () const</li>
 
38
<li><div class="fn"/>void <b><a href="qtextlistformat.html#setIndent">setIndent</a></b> ( int <i>indentation</i> )</li>
 
39
<li><div class="fn"/>void <b><a href="qtextlistformat.html#setStyle">setStyle</a></b> ( Style <i>style</i> )</li>
 
40
<li><div class="fn"/>Style <b><a href="qtextlistformat.html#style">style</a></b> () const</li>
 
41
</ul>
 
42
<ul>
 
43
<li><div class="fn"/>46 public functions inherited from <a href="qtextformat.html#public-functions">QTextFormat</a></li>
 
44
</ul>
 
45
<a name="details"></a>
 
46
<hr />
 
47
<h2>Detailed Description</h2>
 
48
<p>The QTextListFormat class provides formatting information for lists in a <a href="qtextdocument.html">QTextDocument</a>.</p>
 
49
<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>
 
50
<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>
 
51
<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>
 
52
<p>See also <a href="qtextlist.html">QTextList</a>.</p>
 
53
<hr />
 
54
<h2>Member Type Documentation</h2>
 
55
<h3 class="fn"><a name="Style-enum"></a>enum QTextListFormat::Style</h3>
 
56
<p>This enum describes the symbols used to decorate list items:</p>
 
57
<table border="1" cellpadding="2" cellspacing="1" width="100%">
 
58
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
 
59
<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>
 
60
<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>
 
61
<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>
 
62
<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>
 
63
<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>
 
64
<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>
 
65
</table>
 
66
<hr />
 
67
<h2>Member Function Documentation</h2>
 
68
<h3 class="fn"><a name="QTextListFormat"></a>QTextListFormat::QTextListFormat ()</h3>
 
69
<p>Constructs a new list format object.</p>
 
70
<h3 class="fn"><a name="indent"></a>int QTextListFormat::indent () const</h3>
 
71
<p>Returns the list format's indentation.</p>
 
72
<p>See also <a href="qtextlistformat.html#setIndent">setIndent</a>().</p>
 
73
<h3 class="fn"><a name="isValid"></a>bool QTextListFormat::isValid () const</h3>
 
74
<p>Returns true if this list format is valid; otherwise returns false.</p>
 
75
<h3 class="fn"><a name="setIndent"></a>void QTextListFormat::setIndent ( int <i>indentation</i> )</h3>
 
76
<p>Sets the list format's <i>indentation</i>.</p>
 
77
<p>See also <a href="qtextlistformat.html#indent">indent</a>().</p>
 
78
<h3 class="fn"><a name="setStyle"></a>void QTextListFormat::setStyle ( <a href="qtextlistformat.html#Style-enum">Style</a> <i>style</i> )</h3>
 
79
<p>Sets the list format's <i>style</i>. See <tt>Style</tt> for the available styles.</p>
 
80
<p>See also <a href="qtextlistformat.html#style">style</a>().</p>
 
81
<h3 class="fn"><a name="style"></a><a href="qtextlistformat.html#Style-enum">Style</a> QTextListFormat::style () const</h3>
 
82
<p>Returns the list format's style. See <tt>Style</tt>.</p>
 
83
<p>See also <a href="qtextlistformat.html#setStyle">setStyle</a>().</p>
 
84
<p /><address><hr /><div align="center">
 
85
<table width="100%" cellspacing="0" border="0"><tr class="address">
 
86
<td width="30%">Copyright &copy; 2005 <a href="trolltech.html">Trolltech</a></td>
 
87
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
 
88
<td width="30%" align="right"><div align="right">Qt 4.0.0</div></td>
 
89
</tr></table></div></address></body>
 
90
</html>