summaryrefslogtreecommitdiffstats
path: root/doc/html/qstylesheetitem.html
blob: b6150acf462c5a64e79838d502a5a5583b3d6538 (plain)
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
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/src/kernel/qstylesheet.cpp:77 -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>TQStyleSheetItem Class</title>
<style type="text/css"><!--
fn { margin-left: 1cm; text-indent: -1cm; }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
body { background: #ffffff; color: black; }
--></style>
</head>
<body>

<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr bgcolor="#E5E5E5">
<td valign=center>
 <a href="index.html">
<font color="#004faf">Home</font></a>
 | <a href="classes.html">
<font color="#004faf">All&nbsp;Classes</font></a>
 | <a href="mainclasses.html">
<font color="#004faf">Main&nbsp;Classes</font></a>
 | <a href="annotated.html">
<font color="#004faf">Annotated</font></a>
 | <a href="groups.html">
<font color="#004faf">Grouped&nbsp;Classes</font></a>
 | <a href="functions.html">
<font color="#004faf">Functions</font></a>
</td>
<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>TQStyleSheetItem Class Reference</h1>

<p>The TQStyleSheetItem class provides an encapsulation of a set of text styles.
<a href="#details">More...</a>
<p><tt>#include &lt;<a href="qstylesheet-h.html">qstylesheet.h</a>&gt;</tt>
<p>Inherits <a href="qt.html">TQt</a>.
<p><a href="qstylesheetitem-members.html">List of all member functions.</a>
<h2>Public Members</h2>
<ul>
<li class=fn><a href="#TQStyleSheetItem"><b>TQStyleSheetItem</b></a> ( TQStyleSheet&nbsp;*&nbsp;parent, const&nbsp;TQString&nbsp;&amp;&nbsp;name )</li>
<li class=fn><a href="#TQStyleSheetItem-2"><b>TQStyleSheetItem</b></a> ( const&nbsp;TQStyleSheetItem&nbsp;&amp;&nbsp;other )</li>
<li class=fn><a href="#~TQStyleSheetItem"><b>~TQStyleSheetItem</b></a> ()</li>
<li class=fn>TQStyleSheetItem &amp; <a href="#operator-eq"><b>operator=</b></a> ( const&nbsp;TQStyleSheetItem&nbsp;&amp;&nbsp;other )</li>
<li class=fn>TQString <a href="#name"><b>name</b></a> () const</li>
<li class=fn>TQStyleSheet * <a href="#styleSheet"><b>styleSheet</b></a> ()</li>
<li class=fn>const TQStyleSheet * <a href="#styleSheet-2"><b>styleSheet</b></a> () const</li>
<li class=fn>enum <a href="#DisplayMode-enum"><b>DisplayMode</b></a> { DisplayBlock, DisplayInline, DisplayListItem, DisplayNone }</li>
<li class=fn>DisplayMode <a href="#displayMode"><b>displayMode</b></a> () const</li>
<li class=fn>void <a href="#setDisplayMode"><b>setDisplayMode</b></a> ( DisplayMode&nbsp;m )</li>
<li class=fn>int <a href="#alignment"><b>alignment</b></a> () const</li>
<li class=fn>void <a href="#setAlignment"><b>setAlignment</b></a> ( int&nbsp;f )</li>
<li class=fn>enum <a href="#VerticalAlignment-enum"><b>VerticalAlignment</b></a> { VAlignBaseline, VAlignSub, VAlignSuper }</li>
<li class=fn>VerticalAlignment <a href="#verticalAlignment"><b>verticalAlignment</b></a> () const</li>
<li class=fn>void <a href="#setVerticalAlignment"><b>setVerticalAlignment</b></a> ( VerticalAlignment&nbsp;valign )</li>
<li class=fn>int <a href="#fontWeight"><b>fontWeight</b></a> () const</li>
<li class=fn>void <a href="#setFontWeight"><b>setFontWeight</b></a> ( int&nbsp;w )</li>
<li class=fn>int <a href="#logicalFontSize"><b>logicalFontSize</b></a> () const</li>
<li class=fn>void <a href="#setLogicalFontSize"><b>setLogicalFontSize</b></a> ( int&nbsp;s )</li>
<li class=fn>int <a href="#logicalFontSizeStep"><b>logicalFontSizeStep</b></a> () const</li>
<li class=fn>void <a href="#setLogicalFontSizeStep"><b>setLogicalFontSizeStep</b></a> ( int&nbsp;s )</li>
<li class=fn>int <a href="#fontSize"><b>fontSize</b></a> () const</li>
<li class=fn>void <a href="#setFontSize"><b>setFontSize</b></a> ( int&nbsp;s )</li>
<li class=fn>TQString <a href="#fontFamily"><b>fontFamily</b></a> () const</li>
<li class=fn>void <a href="#setFontFamily"><b>setFontFamily</b></a> ( const&nbsp;TQString&nbsp;&amp;&nbsp;fam )</li>
<li class=fn>int numberOfColumns () const &nbsp;<em>(obsolete)</em></li>
<li class=fn>void setNumberOfColumns ( int&nbsp;ncols ) &nbsp;<em>(obsolete)</em></li>
<li class=fn>TQColor <a href="#color"><b>color</b></a> () const</li>
<li class=fn>void <a href="#setColor"><b>setColor</b></a> ( const&nbsp;TQColor&nbsp;&amp;&nbsp;c )</li>
<li class=fn>bool <a href="#fontItalic"><b>fontItalic</b></a> () const</li>
<li class=fn>void <a href="#setFontItalic"><b>setFontItalic</b></a> ( bool&nbsp;italic )</li>
<li class=fn>bool <a href="#definesFontItalic"><b>definesFontItalic</b></a> () const</li>
<li class=fn>bool <a href="#fontUnderline"><b>fontUnderline</b></a> () const</li>
<li class=fn>void <a href="#setFontUnderline"><b>setFontUnderline</b></a> ( bool&nbsp;underline )</li>
<li class=fn>bool <a href="#definesFontUnderline"><b>definesFontUnderline</b></a> () const</li>
<li class=fn>bool <a href="#fontStrikeOut"><b>fontStrikeOut</b></a> () const</li>
<li class=fn>void <a href="#setFontStrikeOut"><b>setFontStrikeOut</b></a> ( bool&nbsp;strikeOut )</li>
<li class=fn>bool <a href="#definesFontStrikeOut"><b>definesFontStrikeOut</b></a> () const</li>
<li class=fn>bool <a href="#isAnchor"><b>isAnchor</b></a> () const</li>
<li class=fn>void <a href="#setAnchor"><b>setAnchor</b></a> ( bool&nbsp;anc )</li>
<li class=fn>enum <a href="#WhiteSpaceMode-enum"><b>WhiteSpaceMode</b></a> { WhiteSpaceNormal, WhiteSpacePre, WhiteSpaceNoWrap }</li>
<li class=fn>WhiteSpaceMode <a href="#whiteSpaceMode"><b>whiteSpaceMode</b></a> () const</li>
<li class=fn>void <a href="#setWhiteSpaceMode"><b>setWhiteSpaceMode</b></a> ( WhiteSpaceMode&nbsp;m )</li>
<li class=fn>enum <a href="#Margin-enum"><b>Margin</b></a> { MarginLeft, MarginRight, MarginTop, MarginBottom, MarginFirstLine, MarginAll, MarginVertical, MarginHorizontal }</li>
<li class=fn>int <a href="#margin"><b>margin</b></a> ( Margin&nbsp;m ) const</li>
<li class=fn>void <a href="#setMargin"><b>setMargin</b></a> ( Margin&nbsp;m, int&nbsp;v )</li>
<li class=fn>enum <a href="#ListStyle-enum"><b>ListStyle</b></a> { ListDisc, ListCircle, ListSquare, ListDecimal, ListLowerAlpha, ListUpperAlpha }</li>
<li class=fn>ListStyle <a href="#listStyle"><b>listStyle</b></a> () const</li>
<li class=fn>void <a href="#setListStyle"><b>setListStyle</b></a> ( ListStyle&nbsp;s )</li>
<li class=fn>TQString <a href="#contexts"><b>contexts</b></a> () const</li>
<li class=fn>void <a href="#setContexts"><b>setContexts</b></a> ( const&nbsp;TQString&nbsp;&amp;&nbsp;c )</li>
<li class=fn>bool <a href="#allowedInContext"><b>allowedInContext</b></a> ( const&nbsp;TQStyleSheetItem&nbsp;*&nbsp;s ) const</li>
<li class=fn>bool <a href="#selfNesting"><b>selfNesting</b></a> () const</li>
<li class=fn>void <a href="#setSelfNesting"><b>setSelfNesting</b></a> ( bool&nbsp;nesting )</li>
<li class=fn>int lineSpacing () const &nbsp;<em>(obsolete)</em></li>
</ul>
<hr><a name="details"></a><h2>Detailed Description</h2>


The TQStyleSheetItem class provides an encapsulation of a set of text styles.
<p> 
<p> A style sheet item consists of a name and a set of attributes that
specifiy its font, color, etc. When used in a <a href="qstylesheet.html">style sheet</a> (see <a href="#styleSheet">styleSheet</a>()), items define the <a href="#name">name</a>() of
a rich text tag and the display property changes associated with
it.
<p> The <a href="#DisplayMode-enum">display mode</a>
attribute indicates whether the item is a block, an inline element
or a list element; see <a href="#setDisplayMode">setDisplayMode</a>(). The treatment of
whitespace is controlled by the <a href="#WhiteSpaceMode-enum">white space mode</a>; see
<a href="#setWhiteSpaceMode">setWhiteSpaceMode</a>(). An item's margins are set with <a href="#setMargin">setMargin</a>(),
In the case of list items, the list style is set with
<a href="#setListStyle">setListStyle</a>(). An item may be a hypertext link anchor; see
<a href="#setAnchor">setAnchor</a>(). Other attributes are set with <a href="#setAlignment">setAlignment</a>(),
<a href="#setVerticalAlignment">setVerticalAlignment</a>(), <a href="#setFontFamily">setFontFamily</a>(), <a href="#setFontSize">setFontSize</a>(),
<a href="#setFontWeight">setFontWeight</a>(), <a href="#setFontItalic">setFontItalic</a>(), <a href="#setFontUnderline">setFontUnderline</a>(),
setFontStrikeOut and <a href="#setColor">setColor</a>().
<p>See also <a href="text.html">Text Related Classes</a>.

<hr><h2>Member Type Documentation</h2>
<h3 class=fn><a name="DisplayMode-enum"></a>TQStyleSheetItem::DisplayMode</h3>

<p> This enum type defines the way adjacent elements are displayed.
<ul>
<li><tt>TQStyleSheetItem::DisplayBlock</tt> - elements are displayed as a rectangular block
(e.g. <tt>&lt;p&gt;...&lt;/p&gt;</tt>).
<li><tt>TQStyleSheetItem::DisplayInline</tt> - elements are displayed in a horizontally
flowing sequence (e.g. <tt>&lt;em&gt;...&lt;/em&gt;</tt>).
<li><tt>TQStyleSheetItem::DisplayListItem</tt> - elements are displayed in a vertical
sequence (e.g. <tt>&lt;li&gt;...&lt;/li&gt;</tt>).
<li><tt>TQStyleSheetItem::DisplayNone</tt> - elements are not displayed at all.
</ul>
<h3 class=fn><a name="ListStyle-enum"></a>TQStyleSheetItem::ListStyle</h3>

<p> This enum type defines how the items in a list are prefixed when
displayed.
<ul>
<li><tt>TQStyleSheetItem::ListDisc</tt> - a filled circle (i.e. a bullet)
<li><tt>TQStyleSheetItem::ListCircle</tt> - an unfilled circle
<li><tt>TQStyleSheetItem::ListSquare</tt> - a filled square
<li><tt>TQStyleSheetItem::ListDecimal</tt> - an integer in base 10: <em>1</em>, <em>2</em>, <em>3</em>, ...
<li><tt>TQStyleSheetItem::ListLowerAlpha</tt> - a lowercase letter: <em>a</em>, <em>b</em>, <em>c</em>, ...
<li><tt>TQStyleSheetItem::ListUpperAlpha</tt> - an uppercase letter: <em>A</em>, <em>B</em>, <em>C</em>, ...
</ul>
<h3 class=fn><a name="Margin-enum"></a>TQStyleSheetItem::Margin</h3>

<ul>
<li><tt>TQStyleSheetItem::MarginLeft</tt> - left margin
<li><tt>TQStyleSheetItem::MarginRight</tt> - right margin
<li><tt>TQStyleSheetItem::MarginTop</tt> - top margin
<li><tt>TQStyleSheetItem::MarginBottom</tt> - bottom margin
<li><tt>TQStyleSheetItem::MarginAll</tt> - all margins (left, right, top and bottom)
<li><tt>TQStyleSheetItem::MarginVertical</tt> - top and bottom margins
<li><tt>TQStyleSheetItem::MarginHorizontal</tt> - left and right margins
<li><tt>TQStyleSheetItem::MarginFirstLine</tt> - margin (indentation) of the first line of
a paragarph (in addition to the MarginLeft of the paragraph)
</ul>
<h3 class=fn><a name="VerticalAlignment-enum"></a>TQStyleSheetItem::VerticalAlignment</h3>

<p> This enum type defines the way elements are aligned vertically.
This is only supported for text elements.
<ul>
<li><tt>TQStyleSheetItem::VAlignBaseline</tt> - align the baseline of the element (or the
bottom, if the element doesn't have a baseline) with the
baseline of the parent
<li><tt>TQStyleSheetItem::VAlignSub</tt> - subscript the element
<li><tt>TQStyleSheetItem::VAlignSuper</tt> - superscript the element
</ul><p> 
<h3 class=fn><a name="WhiteSpaceMode-enum"></a>TQStyleSheetItem::WhiteSpaceMode</h3>

<p> This enum defines the ways in which <a href="qstylesheet.html">TQStyleSheet</a> can treat
whitespace.
<ul>
<li><tt>TQStyleSheetItem::WhiteSpaceNormal</tt> - any sequence of whitespace (including
line-breaks) is equivalent to a single space.
<li><tt>TQStyleSheetItem::WhiteSpacePre</tt> - whitespace must be output exactly as given
in the input.
<li><tt>TQStyleSheetItem::WhiteSpaceNoWrap</tt> - multiple spaces are collapsed as with
WhiteSpaceNormal, but no automatic line-breaks occur. To break
lines manually, use the <tt>&lt;br&gt;</tt> tag.
</ul><p> 
<hr><h2>Member Function Documentation</h2>
<h3 class=fn><a name="TQStyleSheetItem"></a>TQStyleSheetItem::TQStyleSheetItem ( <a href="qstylesheet.html">TQStyleSheet</a>&nbsp;*&nbsp;parent, const&nbsp;<a href="qstring.html">TQString</a>&nbsp;&amp;&nbsp;name )
</h3>
Constructs a new style called <em>name</em> for the stylesheet <em>parent</em>.
<p> All properties in TQStyleSheetItem are initially in the "do not
change" state, except <a href="#DisplayMode-enum">display
    mode</a>, which defaults to <a href="#DisplayMode-enum">DisplayInline</a>.

<h3 class=fn><a name="TQStyleSheetItem-2"></a>TQStyleSheetItem::TQStyleSheetItem ( const&nbsp;<a href="qstylesheetitem.html">TQStyleSheetItem</a>&nbsp;&amp;&nbsp;other )
</h3>
Copy constructor. Constructs a copy of <em>other</em> that is not bound
to any style sheet.

<h3 class=fn><a name="~TQStyleSheetItem"></a>TQStyleSheetItem::~TQStyleSheetItem ()
</h3>
Destroys the style. Note that TQStyleSheetItem objects become
owned by <a href="qstylesheet.html">TQStyleSheet</a> when they are created.

<h3 class=fn>int <a name="alignment"></a>TQStyleSheetItem::alignment () const
</h3>
Returns the alignment of this style. Possible values are <a href="qt.html#AlignmentFlags-enum">AlignAuto</a>, <a href="qt.html#AlignmentFlags-enum">AlignLeft</a>, <a href="qt.html#AlignmentFlags-enum">AlignRight</a>, <a href="qt.html#AlignmentFlags-enum">AlignCenter</a> or <a href="qt.html#AlignmentFlags-enum">AlignJustify</a>.
<p> <p>See also <a href="#setAlignment">setAlignment</a>() and <a href="qt.html#AlignmentFlags-enum">TQt::AlignmentFlags</a>.

<h3 class=fn>bool <a name="allowedInContext"></a>TQStyleSheetItem::allowedInContext ( const&nbsp;<a href="qstylesheetitem.html">TQStyleSheetItem</a>&nbsp;*&nbsp;s ) const
</h3>
Returns TRUE if this style can be nested into an element of style
<em>s</em>; otherwise returns FALSE.
<p> <p>See also <a href="#contexts">contexts</a>() and <a href="#setContexts">setContexts</a>().

<h3 class=fn><a href="qcolor.html">TQColor</a> <a name="color"></a>TQStyleSheetItem::color () const
</h3>
Returns the text color of this style or an invalid color if no
color has been set.
<p> <p>See also <a href="#setColor">setColor</a>() and <a href="qcolor.html#isValid">TQColor::isValid</a>().

<h3 class=fn><a href="qstring.html">TQString</a> <a name="contexts"></a>TQStyleSheetItem::contexts () const
</h3>
Returns a space-separated list of names of styles that may contain
elements of this style. If nothing has been set, <a href="#contexts">contexts</a>()
returns an empty string, which indicates that this style can be
nested everywhere.
<p> <p>See also <a href="#setContexts">setContexts</a>().

<h3 class=fn>bool <a name="definesFontItalic"></a>TQStyleSheetItem::definesFontItalic () const
</h3>
Returns TRUE if the style defines a font shape; otherwise returns
FALSE. A style does not define any shape until <a href="#setFontItalic">setFontItalic</a>() is
called.
<p> <p>See also <a href="#setFontItalic">setFontItalic</a>() and <a href="#fontItalic">fontItalic</a>().

<h3 class=fn>bool <a name="definesFontStrikeOut"></a>TQStyleSheetItem::definesFontStrikeOut () const
</h3>
Returns TRUE if the style defines a setting for the strikeOut
property of the font; otherwise returns FALSE. A style does not
define this until <a href="#setFontStrikeOut">setFontStrikeOut</a>() is called.
<p> <p>See also <a href="#setFontStrikeOut">setFontStrikeOut</a>() and <a href="#fontStrikeOut">fontStrikeOut</a>().

<h3 class=fn>bool <a name="definesFontUnderline"></a>TQStyleSheetItem::definesFontUnderline () const
</h3>
Returns TRUE if the style defines a setting for the underline
property of the font; otherwise returns FALSE. A style does not
define this until <a href="#setFontUnderline">setFontUnderline</a>() is called.
<p> <p>See also <a href="#setFontUnderline">setFontUnderline</a>() and <a href="#fontUnderline">fontUnderline</a>().

<h3 class=fn><a href="qstylesheetitem.html#DisplayMode-enum">DisplayMode</a> <a name="displayMode"></a>TQStyleSheetItem::displayMode () const
</h3>
Returns the <a href="#DisplayMode-enum">display
    mode</a> of the style.
<p> <p>See also <a href="#setDisplayMode">setDisplayMode</a>().

<h3 class=fn><a href="qstring.html">TQString</a> <a name="fontFamily"></a>TQStyleSheetItem::fontFamily () const
</h3>
Returns the font family setting of the style. This is either a
valid font family or <a href="qstring.html#TQString-null">TQString::null</a> if no family has been set.
<p> <p>See also <a href="#setFontFamily">setFontFamily</a>(), <a href="qfont.html#family">TQFont::family</a>(), and <a href="qfont.html#setFamily">TQFont::setFamily</a>().

<h3 class=fn>bool <a name="fontItalic"></a>TQStyleSheetItem::fontItalic () const
</h3>
Returns TRUE if the style sets an italic font; otherwise returns
FALSE.
<p> <p>See also <a href="#setFontItalic">setFontItalic</a>() and <a href="#definesFontItalic">definesFontItalic</a>().

<h3 class=fn>int <a name="fontSize"></a>TQStyleSheetItem::fontSize () const
</h3>
Returns the font size setting of the style. This is either a valid
point size or <a href="#AdditionalStyleValues-enum">TQStyleSheetItem::Undefined</a>.
<p> <p>See also <a href="#setFontSize">setFontSize</a>(), <a href="qfont.html#pointSize">TQFont::pointSize</a>(), and <a href="qfont.html#setPointSize">TQFont::setPointSize</a>().

<h3 class=fn>bool <a name="fontStrikeOut"></a>TQStyleSheetItem::fontStrikeOut () const
</h3>
Returns TRUE if the style sets a strike out font; otherwise
returns FALSE.
<p> <p>See also <a href="#setFontStrikeOut">setFontStrikeOut</a>() and <a href="#definesFontStrikeOut">definesFontStrikeOut</a>().

<h3 class=fn>bool <a name="fontUnderline"></a>TQStyleSheetItem::fontUnderline () const
</h3>
Returns TRUE if the style sets an underlined font; otherwise
returns FALSE.
<p> <p>See also <a href="#setFontUnderline">setFontUnderline</a>() and <a href="#definesFontUnderline">definesFontUnderline</a>().

<h3 class=fn>int <a name="fontWeight"></a>TQStyleSheetItem::fontWeight () const
</h3>
Returns the font weight setting of the style. This is either a
valid <a href="qfont.html#Weight-enum">TQFont::Weight</a> or the value <a href="#AdditionalStyleValues-enum">TQStyleSheetItem::Undefined</a>.
<p> <p>See also <a href="#setFontWeight">setFontWeight</a>() and <a href="qfont.html">TQFont</a>.

<h3 class=fn>bool <a name="isAnchor"></a>TQStyleSheetItem::isAnchor () const
</h3>
Returns whether this style is an anchor.
<p> <p>See also <a href="#setAnchor">setAnchor</a>().

<h3 class=fn>int <a name="lineSpacing"></a>TQStyleSheetItem::lineSpacing () const
</h3>
<b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
<p> Returns the linespacing

<h3 class=fn><a href="qstylesheetitem.html#ListStyle-enum">ListStyle</a> <a name="listStyle"></a>TQStyleSheetItem::listStyle () const
</h3>
Returns the list style of the style.
<p> <p>See also <a href="#setListStyle">setListStyle</a>() and <a href="#ListStyle-enum">ListStyle</a>.

<h3 class=fn>int <a name="logicalFontSize"></a>TQStyleSheetItem::logicalFontSize () const
</h3>
Returns the logical font size setting of the style. This is either
a valid size between 1 and 7 or <a href="#AdditionalStyleValues-enum">TQStyleSheetItem::Undefined</a>.
<p> <p>See also <a href="#setLogicalFontSize">setLogicalFontSize</a>(), <a href="#setLogicalFontSizeStep">setLogicalFontSizeStep</a>(), <a href="qfont.html#pointSize">TQFont::pointSize</a>(), and <a href="qfont.html#setPointSize">TQFont::setPointSize</a>().

<h3 class=fn>int <a name="logicalFontSizeStep"></a>TQStyleSheetItem::logicalFontSizeStep () const
</h3>
Returns the logical font size step of this style.
<p> The default is 0. Tags such as <tt>big</tt> define <tt>+1</tt>; <tt>small</tt>
defines <tt>-1</tt>.
<p> <p>See also <a href="#setLogicalFontSizeStep">setLogicalFontSizeStep</a>().

<h3 class=fn>int <a name="margin"></a>TQStyleSheetItem::margin ( <a href="qstylesheetitem.html#Margin-enum">Margin</a>&nbsp;m ) const
</h3>
Returns the width of margin <em>m</em> in pixels.
<p> The margin, <em>m</em>, can be <a href="#Margin-enum">MarginLeft</a>, <a href="#Margin-enum">MarginRight</a>, <a href="#Margin-enum">MarginTop</a>, <a href="#Margin-enum">MarginBottom</a>, or <a href="#Margin-enum">MarginFirstLine</a>.
<p> <p>See also <a href="#setMargin">setMargin</a>() and <a href="#Margin-enum">Margin</a>.

<h3 class=fn><a href="qstring.html">TQString</a> <a name="name"></a>TQStyleSheetItem::name () const
</h3>
Returns the name of the style item.

<h3 class=fn>int <a name="numberOfColumns"></a>TQStyleSheetItem::numberOfColumns () const
</h3><b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
<p> Returns the number of columns for this style.
<p> <p>See also <a href="#setNumberOfColumns">setNumberOfColumns</a>(), <a href="#displayMode">displayMode</a>(), and <a href="#setDisplayMode">setDisplayMode</a>().

<p> 
<h3 class=fn><a href="qstylesheetitem.html">TQStyleSheetItem</a>&nbsp;&amp; <a name="operator-eq"></a>TQStyleSheetItem::operator= ( const&nbsp;<a href="qstylesheetitem.html">TQStyleSheetItem</a>&nbsp;&amp;&nbsp;other )
</h3>
Assignment. Assings a copy of <em>other</em> that is not bound to any style sheet.
Unbounds first from previous style sheet.

<h3 class=fn>bool <a name="selfNesting"></a>TQStyleSheetItem::selfNesting () const
</h3>
Returns TRUE if this style has self-nesting enabled; otherwise
returns FALSE.
<p> <p>See also <a href="#setSelfNesting">setSelfNesting</a>().

<h3 class=fn>void <a name="setAlignment"></a>TQStyleSheetItem::setAlignment ( int&nbsp;f )
</h3>
Sets the alignment to <em>f</em>. This only makes sense for styles with
a <a href="#DisplayMode-enum">display mode</a> of
DisplayBlock. Possible values are <a href="qt.html#AlignmentFlags-enum">AlignAuto</a>, <a href="qt.html#AlignmentFlags-enum">AlignLeft</a>,
<a href="qt.html#AlignmentFlags-enum">AlignRight</a>, <a href="qt.html#AlignmentFlags-enum">AlignCenter</a> or <a href="qt.html#AlignmentFlags-enum">AlignJustify</a>.
<p> <p>See also <a href="#alignment">alignment</a>(), <a href="#displayMode">displayMode</a>(), and <a href="qt.html#AlignmentFlags-enum">TQt::AlignmentFlags</a>.

<h3 class=fn>void <a name="setAnchor"></a>TQStyleSheetItem::setAnchor ( bool&nbsp;anc )
</h3>
If <em>anc</em> is TRUE, sets this style to be an anchor (hypertext
link); otherwise sets it to not be an anchor. Elements in this
style link to other documents or anchors.
<p> <p>See also <a href="#isAnchor">isAnchor</a>().

<h3 class=fn>void <a name="setColor"></a>TQStyleSheetItem::setColor ( const&nbsp;<a href="qcolor.html">TQColor</a>&nbsp;&amp;&nbsp;c )
</h3>
Sets the text color of this style to <em>c</em>.
<p> <p>See also <a href="#color">color</a>().

<h3 class=fn>void <a name="setContexts"></a>TQStyleSheetItem::setContexts ( const&nbsp;<a href="qstring.html">TQString</a>&nbsp;&amp;&nbsp;c )
</h3>
Sets a space-separated list of names of styles that may contain
elements of this style. If <em>c</em> is empty, the style can be nested
everywhere.
<p> <p>See also <a href="#contexts">contexts</a>().

<h3 class=fn>void <a name="setDisplayMode"></a>TQStyleSheetItem::setDisplayMode ( <a href="qstylesheetitem.html#DisplayMode-enum">DisplayMode</a>&nbsp;m )
</h3>
Sets the display mode of the style to <em>m</em>.
<p> <p>See also <a href="#displayMode">displayMode</a>().

<h3 class=fn>void <a name="setFontFamily"></a>TQStyleSheetItem::setFontFamily ( const&nbsp;<a href="qstring.html">TQString</a>&nbsp;&amp;&nbsp;fam )
</h3>
Sets the font family setting of the style to <em>fam</em>.
<p> <p>See also <a href="#fontFamily">fontFamily</a>(), <a href="qfont.html#family">TQFont::family</a>(), and <a href="qfont.html#setFamily">TQFont::setFamily</a>().

<h3 class=fn>void <a name="setFontItalic"></a>TQStyleSheetItem::setFontItalic ( bool&nbsp;italic )
</h3>
If <em>italic</em> is TRUE sets italic for the style; otherwise sets
upright.
<p> <p>See also <a href="#fontItalic">fontItalic</a>() and <a href="#definesFontItalic">definesFontItalic</a>().

<h3 class=fn>void <a name="setFontSize"></a>TQStyleSheetItem::setFontSize ( int&nbsp;s )
</h3>
Sets the font size setting of the style to <em>s</em> points.
<p> <p>See also <a href="#fontSize">fontSize</a>(), <a href="qfont.html#pointSize">TQFont::pointSize</a>(), and <a href="qfont.html#setPointSize">TQFont::setPointSize</a>().

<h3 class=fn>void <a name="setFontStrikeOut"></a>TQStyleSheetItem::setFontStrikeOut ( bool&nbsp;strikeOut )
</h3>
If <em>strikeOut</em> is TRUE, sets strike out for the style; otherwise
sets no strike out.
<p> <p>See also <a href="#fontStrikeOut">fontStrikeOut</a>() and <a href="#definesFontStrikeOut">definesFontStrikeOut</a>().

<h3 class=fn>void <a name="setFontUnderline"></a>TQStyleSheetItem::setFontUnderline ( bool&nbsp;underline )
</h3>
If <em>underline</em> is TRUE, sets underline for the style; otherwise
sets no underline.
<p> <p>See also <a href="#fontUnderline">fontUnderline</a>() and <a href="#definesFontUnderline">definesFontUnderline</a>().

<h3 class=fn>void <a name="setFontWeight"></a>TQStyleSheetItem::setFontWeight ( int&nbsp;w )
</h3>
Sets the font weight setting of the style to <em>w</em>. Valid values
are those defined by <a href="qfont.html#Weight-enum">TQFont::Weight</a>.
<p> <p>See also <a href="qfont.html">TQFont</a> and <a href="#fontWeight">fontWeight</a>().

<h3 class=fn>void <a name="setListStyle"></a>TQStyleSheetItem::setListStyle ( <a href="qstylesheetitem.html#ListStyle-enum">ListStyle</a>&nbsp;s )
</h3>
Sets the list style of the style to <em>s</em>.
<p> This is used by nested elements that have a display mode of <a href="#DisplayMode-enum">DisplayListItem</a>.
<p> <p>See also <a href="#listStyle">listStyle</a>(), <a href="#DisplayMode-enum">DisplayMode</a>, and <a href="#ListStyle-enum">ListStyle</a>.

<h3 class=fn>void <a name="setLogicalFontSize"></a>TQStyleSheetItem::setLogicalFontSize ( int&nbsp;s )
</h3>
Sets the logical font size setting of the style to <em>s</em>. Valid
logical sizes are 1 to 7.
<p> <p>See also <a href="#logicalFontSize">logicalFontSize</a>(), <a href="qfont.html#pointSize">TQFont::pointSize</a>(), and <a href="qfont.html#setPointSize">TQFont::setPointSize</a>().

<h3 class=fn>void <a name="setLogicalFontSizeStep"></a>TQStyleSheetItem::setLogicalFontSizeStep ( int&nbsp;s )
</h3>
Sets the logical font size step of this style to <em>s</em>.
<p> <p>See also <a href="#logicalFontSizeStep">logicalFontSizeStep</a>().

<h3 class=fn>void <a name="setMargin"></a>TQStyleSheetItem::setMargin ( <a href="qstylesheetitem.html#Margin-enum">Margin</a>&nbsp;m, int&nbsp;v )
</h3>
Sets the width of margin <em>m</em> to <em>v</em> pixels.
<p> The margin, <em>m</em>, can be <a href="#Margin-enum">MarginLeft</a>, <a href="#Margin-enum">MarginRight</a>, <a href="#Margin-enum">MarginTop</a>, <a href="#Margin-enum">MarginBottom</a>, <a href="#Margin-enum">MarginFirstLine</a>, <a href="#Margin-enum">MarginAll</a>,
<a href="#Margin-enum">MarginVertical</a> or <a href="#Margin-enum">MarginHorizontal</a>. The value <em>v</em> must
be >= 0.
<p> <p>See also <a href="#margin">margin</a>().

<h3 class=fn>void <a name="setNumberOfColumns"></a>TQStyleSheetItem::setNumberOfColumns ( int&nbsp;ncols )
</h3><b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
<p> Sets the number of columns for this style. Elements in the style
are divided into columns.
<p> This makes sense only if the style uses a block display mode
(see TQStyleSheetItem::DisplayMode).
<p> <p>See also <a href="#numberOfColumns">numberOfColumns</a>().

<h3 class=fn>void <a name="setSelfNesting"></a>TQStyleSheetItem::setSelfNesting ( bool&nbsp;nesting )
</h3>
Sets the self-nesting property for this style to <em>nesting</em>.
<p> In order to support "dirty" HTML, paragraphs <tt>&lt;p&gt;</tt> and list
items <tt>&lt;li&gt;</tt> are not self-nesting. This means that starting a
new paragraph or list item automatically closes the previous one.
<p> <p>See also <a href="#selfNesting">selfNesting</a>().

<h3 class=fn>void <a name="setVerticalAlignment"></a>TQStyleSheetItem::setVerticalAlignment ( <a href="qstylesheetitem.html#VerticalAlignment-enum">VerticalAlignment</a>&nbsp;valign )
</h3>
Sets the vertical alignment to <em>valign</em>. Possible values are
<a href="#VerticalAlignment-enum">VAlignBaseline</a>, <a href="#VerticalAlignment-enum">VAlignSub</a> or <a href="#VerticalAlignment-enum">VAlignSuper</a>.
<p> The vertical alignment property is not inherited.
<p> <p>See also <a href="#verticalAlignment">verticalAlignment</a>().

<h3 class=fn>void <a name="setWhiteSpaceMode"></a>TQStyleSheetItem::setWhiteSpaceMode ( <a href="qstylesheetitem.html#WhiteSpaceMode-enum">WhiteSpaceMode</a>&nbsp;m )
</h3>
Sets the whitespace mode to <em>m</em>.
<p> <p>See also <a href="#WhiteSpaceMode-enum">WhiteSpaceMode</a>.

<h3 class=fn><a href="qstylesheet.html">TQStyleSheet</a>&nbsp;* <a name="styleSheet"></a>TQStyleSheetItem::styleSheet ()
</h3>
Returns the style sheet this item is in.

<h3 class=fn>const&nbsp;<a href="qstylesheet.html">TQStyleSheet</a>&nbsp;* <a name="styleSheet-2"></a>TQStyleSheetItem::styleSheet () const
</h3>
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> Returns the style sheet this item is in.

<h3 class=fn><a href="qstylesheetitem.html#VerticalAlignment-enum">VerticalAlignment</a> <a name="verticalAlignment"></a>TQStyleSheetItem::verticalAlignment () const
</h3>
Returns the vertical alignment of the style. Possible values are
<a href="#VerticalAlignment-enum">VAlignBaseline</a>, <a href="#VerticalAlignment-enum">VAlignSub</a> or <a href="#VerticalAlignment-enum">VAlignSuper</a>.
<p> <p>See also <a href="#setVerticalAlignment">setVerticalAlignment</a>().

<h3 class=fn><a href="qstylesheetitem.html#WhiteSpaceMode-enum">WhiteSpaceMode</a> <a name="whiteSpaceMode"></a>TQStyleSheetItem::whiteSpaceMode () const
</h3>
Returns the whitespace mode.
<p> <p>See also <a href="#setWhiteSpaceMode">setWhiteSpaceMode</a>() and <a href="#WhiteSpaceMode-enum">WhiteSpaceMode</a>.

<!-- eof -->
<hr><p>
This file is part of the <a href="index.html">TQt toolkit</a>.
Copyright &copy; 1995-2007
<a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
<table width=100% cellspacing=0 border=0><tr>
<td>Copyright &copy; 2007
<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
<td align=right><div align=right>TQt 3.3.8</div>
</table></div></address></body>
</html>