1
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2
/* ***** BEGIN LICENSE BLOCK *****
3
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
5
* The contents of this file are subject to the Netscape Public License
6
* Version 1.1 (the "License"); you may not use this file except in
7
* compliance with the License. You may obtain a copy of the License at
8
* http://www.mozilla.org/NPL/
10
* Software distributed under the License is distributed on an "AS IS" basis,
11
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12
* for the specific language governing rights and limitations under the
15
* The Original Code is mozilla.org code.
17
* The Initial Developer of the Original Code is
18
* Netscape Communications Corporation.
19
* Portions created by the Initial Developer are Copyright (C) 1998
20
* the Initial Developer. All Rights Reserved.
24
* Alternatively, the contents of this file may be used under the terms of
25
* either the GNU General Public License Version 2 or later (the "GPL"), or
26
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27
* in which case the provisions of the GPL or the LGPL are applicable instead
28
* of those above. If you wish to allow use of your version of this file only
29
* under the terms of either the GPL or the LGPL, and not to allow others to
30
* use your version of this file under the terms of the NPL, indicate your
31
* decision by deleting the provisions above and replace them with the notice
32
* and other provisions required by the GPL or the LGPL. If you do not delete
33
* the provisions above, a recipient may use your version of this file under
34
* the terms of any one of the NPL, the GPL or the LGPL.
36
* ***** END LICENSE BLOCK ***** */
37
#ifndef nsStyleConsts_h___
38
#define nsStyleConsts_h___
42
// XXX fold this into nsStyleContext and group by nsStyleXXX struct
44
// Indices into border/padding/margin arrays
46
#define NS_SIDE_RIGHT 1
47
#define NS_SIDE_BOTTOM 2
48
#define NS_SIDE_LEFT 3
50
// {margin,padding}-{left,right}-{ltr,rtl}-source
51
#define NS_BOXPROP_SOURCE_PHYSICAL 0
52
#define NS_BOXPROP_SOURCE_LOGICAL 1
55
#define NS_STYLE_BOX_SIZING_CONTENT 0
56
#define NS_STYLE_BOX_SIZING_PADDING 1
57
#define NS_STYLE_BOX_SIZING_BORDER 2
60
#define NS_STYLE_FLOAT_EDGE_CONTENT 0
61
#define NS_STYLE_FLOAT_EDGE_PADDING 1
62
#define NS_STYLE_FLOAT_EDGE_BORDER 2
63
#define NS_STYLE_FLOAT_EDGE_MARGIN 3
66
#define NS_STYLE_KEY_EQUIVALENT_NONE 0
69
#define NS_STYLE_RESIZER_NONE 0x00
70
#define NS_STYLE_RESIZER_HORIZONTAL 0x01 // bits
71
#define NS_STYLE_RESIZER_VERTICAL 0x02 // bits
72
#define NS_STYLE_RESIZER_BOTH 0x03 // bits
73
#define NS_STYLE_RESIZER_AUTO 0x04 // bits
76
#define NS_STYLE_USER_FOCUS_NONE 0
77
#define NS_STYLE_USER_FOCUS_IGNORE 1
78
#define NS_STYLE_USER_FOCUS_NORMAL 2
79
#define NS_STYLE_USER_FOCUS_SELECT_ALL 3
80
#define NS_STYLE_USER_FOCUS_SELECT_BEFORE 4
81
#define NS_STYLE_USER_FOCUS_SELECT_AFTER 5
82
#define NS_STYLE_USER_FOCUS_SELECT_SAME 6
83
#define NS_STYLE_USER_FOCUS_SELECT_MENU 7
86
#define NS_STYLE_USER_SELECT_NONE 0
87
#define NS_STYLE_USER_SELECT_TEXT 1
88
#define NS_STYLE_USER_SELECT_ELEMENT 2
89
#define NS_STYLE_USER_SELECT_ELEMENTS 3
90
#define NS_STYLE_USER_SELECT_ALL 4
91
#define NS_STYLE_USER_SELECT_TOGGLE 5
92
#define NS_STYLE_USER_SELECT_TRI_STATE 6
93
#define NS_STYLE_USER_SELECT_AUTO 7 // internal value - please use nsFrame::IsSelectable()
94
#define NS_STYLE_USER_SELECT_MOZ_ALL 8 // force selection of all children - bug 48096
95
#define NS_STYLE_USER_SELECT_MOZ_FORCE_TEXT 9
98
#define NS_STYLE_USER_INPUT_NONE 0
99
#define NS_STYLE_USER_INPUT_ENABLED 1
100
#define NS_STYLE_USER_INPUT_DISABLED 2
101
#define NS_STYLE_USER_INPUT_AUTO 3
104
#define NS_STYLE_USER_MODIFY_READ_ONLY 0
105
#define NS_STYLE_USER_MODIFY_READ_WRITE 1
106
#define NS_STYLE_USER_MODIFY_WRITE_ONLY 2
109
#define NS_STYLE_BOX_ALIGN_STRETCH 0
110
#define NS_STYLE_BOX_ALIGN_START 1
111
#define NS_STYLE_BOX_ALIGN_CENTER 2
112
#define NS_STYLE_BOX_ALIGN_BASELINE 3
113
#define NS_STYLE_BOX_ALIGN_END 4
116
#define NS_STYLE_BOX_PACK_START 0
117
#define NS_STYLE_BOX_PACK_CENTER 1
118
#define NS_STYLE_BOX_PACK_END 2
119
#define NS_STYLE_BOX_PACK_JUSTIFY 3
122
#define NS_STYLE_BOX_DIRECTION_NORMAL 0
123
#define NS_STYLE_BOX_DIRECTION_REVERSE 1
126
#define NS_STYLE_BOX_ORIENT_HORIZONTAL 0
127
#define NS_STYLE_BOX_ORIENT_VERTICAL 1
129
// Azimuth - See nsStyleAural
130
#define NS_STYLE_AZIMUTH_LEFT_SIDE 0x00
131
#define NS_STYLE_AZIMUTH_FAR_LEFT 0x01
132
#define NS_STYLE_AZIMUTH_LEFT 0x02
133
#define NS_STYLE_AZIMUTH_CENTER_LEFT 0x03
134
#define NS_STYLE_AZIMUTH_CENTER 0x04
135
#define NS_STYLE_AZIMUTH_CENTER_RIGHT 0x05
136
#define NS_STYLE_AZIMUTH_RIGHT 0x06
137
#define NS_STYLE_AZIMUTH_FAR_RIGHT 0x07
138
#define NS_STYLE_AZIMUTH_RIGHT_SIDE 0x08
139
#define NS_STYLE_AZIMUTH_BEHIND 0x80 // bits
140
#define NS_STYLE_AZIMUTH_LEFTWARDS 0x10 // bits
141
#define NS_STYLE_AZIMUTH_RIGHTWARDS 0x20 // bits
144
#define NS_STYLE_ELEVATION_BELOW 1
145
#define NS_STYLE_ELEVATION_LEVEL 2
146
#define NS_STYLE_ELEVATION_ABOVE 3
147
#define NS_STYLE_ELEVATION_HIGHER 4
148
#define NS_STYLE_ELEVATION_LOWER 5
151
#define NS_STYLE_PITCH_X_LOW 1
152
#define NS_STYLE_PITCH_LOW 2
153
#define NS_STYLE_PITCH_MEDIUM 3
154
#define NS_STYLE_PITCH_HIGH 4
155
#define NS_STYLE_PITCH_X_HIGH 5
158
#define NS_STYLE_PLAY_DURING_MIX 0x01 // bit field
159
#define NS_STYLE_PLAY_DURING_REPEAT 0x02
162
#define NS_STYLE_SPEAK_NONE 0
163
#define NS_STYLE_SPEAK_NORMAL 1
164
#define NS_STYLE_SPEAK_SPELL_OUT 2
167
#define NS_STYLE_SPEAK_HEADER_ONCE 0
168
#define NS_STYLE_SPEAK_HEADER_ALWAYS 1
171
#define NS_STYLE_SPEAK_NUMERAL_DIGITS 0
172
#define NS_STYLE_SPEAK_NUMERAL_CONTINUOUS 1
175
#define NS_STYLE_SPEAK_PUNCTUATION_NONE 0
176
#define NS_STYLE_SPEAK_PUNCTUATION_CODE 1
179
#define NS_STYLE_SPEECH_RATE_X_SLOW 0
180
#define NS_STYLE_SPEECH_RATE_SLOW 1
181
#define NS_STYLE_SPEECH_RATE_MEDIUM 2
182
#define NS_STYLE_SPEECH_RATE_FAST 3
183
#define NS_STYLE_SPEECH_RATE_X_FAST 4
184
#define NS_STYLE_SPEECH_RATE_FASTER 10
185
#define NS_STYLE_SPEECH_RATE_SLOWER 11
188
#define NS_STYLE_VOLUME_SILENT 0
189
#define NS_STYLE_VOLUME_X_SOFT 1
190
#define NS_STYLE_VOLUME_SOFT 2
191
#define NS_STYLE_VOLUME_MEDIUM 3
192
#define NS_STYLE_VOLUME_LOUD 4
193
#define NS_STYLE_VOLUME_X_LOUD 5
196
#define NS_STYLE_COLOR_TRANSPARENT 0
197
#define NS_STYLE_COLOR_INVERT 1
198
#define NS_STYLE_COLOR_MOZ_USE_TEXT_COLOR 2
201
#define NS_COLOR_MOZ_HYPERLINKTEXT -1
202
#define NS_COLOR_MOZ_VISITEDHYPERLINKTEXT -2
203
#define NS_COLOR_MOZ_ACTIVEHYPERLINKTEXT -3
205
// See nsStyleBackground
206
#define NS_STYLE_BG_COLOR_TRANSPARENT 0x01
207
#define NS_STYLE_BG_IMAGE_NONE 0x02
208
#define NS_STYLE_BG_X_POSITION_PERCENT 0x04
209
#define NS_STYLE_BG_X_POSITION_LENGTH 0x08
210
#define NS_STYLE_BG_Y_POSITION_PERCENT 0x10
211
#define NS_STYLE_BG_Y_POSITION_LENGTH 0x20
213
// See nsStyleBackground
214
#define NS_STYLE_BG_ATTACHMENT_SCROLL 0
215
#define NS_STYLE_BG_ATTACHMENT_FIXED 1
217
// See nsStyleBackground
218
#define NS_STYLE_BG_CLIP_BORDER 0
219
#define NS_STYLE_BG_CLIP_PADDING 1
221
// See nsStyleBackground
222
#define NS_STYLE_BG_INLINE_POLICY_EACH_BOX 0
223
#define NS_STYLE_BG_INLINE_POLICY_CONTINUOUS 1
224
#define NS_STYLE_BG_INLINE_POLICY_BOUNDING_BOX 2
226
// See nsStyleBackground
227
#define NS_STYLE_BG_ORIGIN_BORDER 0
228
#define NS_STYLE_BG_ORIGIN_PADDING 1
229
#define NS_STYLE_BG_ORIGIN_CONTENT 2
231
// See nsStyleBackground
232
#define NS_STYLE_BG_REPEAT_OFF 0x00
233
#define NS_STYLE_BG_REPEAT_X 0x01
234
#define NS_STYLE_BG_REPEAT_Y 0x02
235
#define NS_STYLE_BG_REPEAT_XY 0x03
238
#define NS_STYLE_BORDER_COLLAPSE 0
239
#define NS_STYLE_BORDER_SEPARATE 1
241
// See nsStyleBorder mBorder enum values
242
#define NS_STYLE_BORDER_WIDTH_THIN 0
243
#define NS_STYLE_BORDER_WIDTH_MEDIUM 1
244
#define NS_STYLE_BORDER_WIDTH_THICK 2
245
// XXX chopping block #define NS_STYLE_BORDER_WIDTH_LENGTH_VALUE 3
247
// See nsStyleBorder mBorderStyle
248
#define NS_STYLE_BORDER_STYLE_NONE 0
249
#define NS_STYLE_BORDER_STYLE_GROOVE 1
250
#define NS_STYLE_BORDER_STYLE_RIDGE 2
251
#define NS_STYLE_BORDER_STYLE_DOTTED 3
252
#define NS_STYLE_BORDER_STYLE_DASHED 4
253
#define NS_STYLE_BORDER_STYLE_SOLID 5
254
#define NS_STYLE_BORDER_STYLE_DOUBLE 6
255
#define NS_STYLE_BORDER_STYLE_INSET 7
256
#define NS_STYLE_BORDER_STYLE_OUTSET 8
257
#define NS_STYLE_BORDER_STYLE_HIDDEN 9
258
#define NS_STYLE_BORDER_STYLE_BG_INSET 10
259
#define NS_STYLE_BORDER_STYLE_BG_OUTSET 11
260
#define NS_STYLE_BORDER_STYLE_BG_SOLID 12
261
// a bit ORed onto the style for table border collapsing indicating that the style was
262
// derived from a table with its rules attribute set
263
#define NS_STYLE_BORDER_STYLE_RULES_MASK 0x10
265
// See nsStyleDisplay
266
#define NS_STYLE_CLEAR_NONE 0
267
#define NS_STYLE_CLEAR_LEFT 1
268
#define NS_STYLE_CLEAR_RIGHT 2
269
#define NS_STYLE_CLEAR_LEFT_AND_RIGHT 3
270
#define NS_STYLE_CLEAR_LINE 4
271
#define NS_STYLE_CLEAR_BLOCK 5
272
#define NS_STYLE_CLEAR_COLUMN 6
273
#define NS_STYLE_CLEAR_PAGE 7
274
#define NS_STYLE_CLEAR_LAST_VALUE NS_STYLE_CLEAR_PAGE
277
#define NS_STYLE_CONTENT_OPEN_QUOTE 0
278
#define NS_STYLE_CONTENT_CLOSE_QUOTE 1
279
#define NS_STYLE_CONTENT_NO_OPEN_QUOTE 2
280
#define NS_STYLE_CONTENT_NO_CLOSE_QUOTE 3
283
#define NS_STYLE_CURSOR_AUTO 1
284
#define NS_STYLE_CURSOR_CROSSHAIR 2
285
#define NS_STYLE_CURSOR_DEFAULT 3 // ie: an arrow
286
#define NS_STYLE_CURSOR_POINTER 4 // for links
287
#define NS_STYLE_CURSOR_MOVE 5
288
#define NS_STYLE_CURSOR_E_RESIZE 6
289
#define NS_STYLE_CURSOR_NE_RESIZE 7
290
#define NS_STYLE_CURSOR_NW_RESIZE 8
291
#define NS_STYLE_CURSOR_N_RESIZE 9
292
#define NS_STYLE_CURSOR_SE_RESIZE 10
293
#define NS_STYLE_CURSOR_SW_RESIZE 11
294
#define NS_STYLE_CURSOR_S_RESIZE 12
295
#define NS_STYLE_CURSOR_W_RESIZE 13
296
#define NS_STYLE_CURSOR_TEXT 14 // ie: i-beam
297
#define NS_STYLE_CURSOR_WAIT 15
298
#define NS_STYLE_CURSOR_HELP 16
299
#define NS_STYLE_CURSOR_COPY 17 // CSS3
300
#define NS_STYLE_CURSOR_ALIAS 18
301
#define NS_STYLE_CURSOR_CONTEXT_MENU 19
302
#define NS_STYLE_CURSOR_CELL 20
303
#define NS_STYLE_CURSOR_GRAB 21
304
#define NS_STYLE_CURSOR_GRABBING 22
305
#define NS_STYLE_CURSOR_SPINNING 23
306
#define NS_STYLE_CURSOR_COUNT_UP 24
307
#define NS_STYLE_CURSOR_COUNT_DOWN 25
308
#define NS_STYLE_CURSOR_COUNT_UP_DOWN 26
309
#define NS_STYLE_CURSOR_MOZ_ZOOM_IN 27
310
#define NS_STYLE_CURSOR_MOZ_ZOOM_OUT 28
313
// See nsStyleDisplay
314
#define NS_STYLE_DIRECTION_LTR 0
315
#define NS_STYLE_DIRECTION_RTL 1
316
#define NS_STYLE_DIRECTION_INHERIT 2
318
// See nsStyleDisplay
319
#define NS_STYLE_DISPLAY_NONE 0
320
#define NS_STYLE_DISPLAY_BLOCK 1
321
#define NS_STYLE_DISPLAY_INLINE 2
322
#define NS_STYLE_DISPLAY_INLINE_BLOCK 3
323
#define NS_STYLE_DISPLAY_LIST_ITEM 4
324
#define NS_STYLE_DISPLAY_MARKER 5
325
#define NS_STYLE_DISPLAY_RUN_IN 6
326
#define NS_STYLE_DISPLAY_COMPACT 7
327
#define NS_STYLE_DISPLAY_TABLE 8
328
#define NS_STYLE_DISPLAY_INLINE_TABLE 9
329
#define NS_STYLE_DISPLAY_TABLE_ROW_GROUP 10
330
#define NS_STYLE_DISPLAY_TABLE_COLUMN 11
331
#define NS_STYLE_DISPLAY_TABLE_COLUMN_GROUP 12
332
#define NS_STYLE_DISPLAY_TABLE_HEADER_GROUP 13
333
#define NS_STYLE_DISPLAY_TABLE_FOOTER_GROUP 14
334
#define NS_STYLE_DISPLAY_TABLE_ROW 15
335
#define NS_STYLE_DISPLAY_TABLE_CELL 16
336
#define NS_STYLE_DISPLAY_TABLE_CAPTION 17
337
#define NS_STYLE_DISPLAY_BOX 18
338
#define NS_STYLE_DISPLAY_INLINE_BOX 19
339
#define NS_STYLE_DISPLAY_GRID 20
340
#define NS_STYLE_DISPLAY_INLINE_GRID 21
341
#define NS_STYLE_DISPLAY_GRID_GROUP 22
342
#define NS_STYLE_DISPLAY_GRID_LINE 23
343
#define NS_STYLE_DISPLAY_STACK 24
344
#define NS_STYLE_DISPLAY_INLINE_STACK 25
345
#define NS_STYLE_DISPLAY_DECK 26
346
#define NS_STYLE_DISPLAY_BULLETINBOARD 27
347
#define NS_STYLE_DISPLAY_POPUP 28
348
#define NS_STYLE_DISPLAY_GROUPBOX 29
349
#define NS_STYLE_DISPLAY_PAGE_BREAK 30
351
// See nsStyleDisplay
352
#define NS_STYLE_FLOAT_NONE 0
353
#define NS_STYLE_FLOAT_LEFT 1
354
#define NS_STYLE_FLOAT_RIGHT 2
357
#define NS_STYLE_FONT_STYLE_NORMAL 0
358
#define NS_STYLE_FONT_STYLE_ITALIC 1
359
#define NS_STYLE_FONT_STYLE_OBLIQUE 2
362
#define NS_STYLE_FONT_VARIANT_NORMAL 0
363
#define NS_STYLE_FONT_VARIANT_SMALL_CAPS 1
366
#define NS_STYLE_FONT_WEIGHT_NORMAL 400
367
#define NS_STYLE_FONT_WEIGHT_BOLD 700
368
#define NS_STYLE_FONT_WEIGHT_BOLDER 1
369
#define NS_STYLE_FONT_WEIGHT_LIGHTER -1
372
#define NS_STYLE_FONT_SIZE_XXSMALL 0
373
#define NS_STYLE_FONT_SIZE_XSMALL 1
374
#define NS_STYLE_FONT_SIZE_SMALL 2
375
#define NS_STYLE_FONT_SIZE_MEDIUM 3
376
#define NS_STYLE_FONT_SIZE_LARGE 4
377
#define NS_STYLE_FONT_SIZE_XLARGE 5
378
#define NS_STYLE_FONT_SIZE_XXLARGE 6
379
#define NS_STYLE_FONT_SIZE_XXXLARGE 7 // Only used by <font size="7">. Not specifiable in CSS.
380
#define NS_STYLE_FONT_SIZE_LARGER 8
381
#define NS_STYLE_FONT_SIZE_SMALLER 9
384
#define NS_STYLE_FONT_STRETCH_ULTRA_CONDENSED -4
385
#define NS_STYLE_FONT_STRETCH_EXTRA_CONDENSED -3
386
#define NS_STYLE_FONT_STRETCH_CONDENSED -2
387
#define NS_STYLE_FONT_STRETCH_SEMI_CONDENSED -1
388
#define NS_STYLE_FONT_STRETCH_NORMAL 0
389
#define NS_STYLE_FONT_STRETCH_SEMI_EXPANDED 1
390
#define NS_STYLE_FONT_STRETCH_EXPANDED 2
391
#define NS_STYLE_FONT_STRETCH_EXTRA_EXPANDED 3
392
#define NS_STYLE_FONT_STRETCH_ULTRA_EXPANDED 4
393
#define NS_STYLE_FONT_STRETCH_WIDER 10
394
#define NS_STYLE_FONT_STRETCH_NARROWER -10
396
// See nsStyleFont mFlags
397
#define NS_STYLE_FONT_DEFAULT 0x00
398
#define NS_STYLE_FONT_FACE_MASK 0xFF // used to flag generic fonts
400
// See nsStyleFont - system fonts
401
#define NS_STYLE_FONT_CAPTION 1 // css2
402
#define NS_STYLE_FONT_ICON 2
403
#define NS_STYLE_FONT_MENU 3
404
#define NS_STYLE_FONT_MESSAGE_BOX 4
405
#define NS_STYLE_FONT_SMALL_CAPTION 5
406
#define NS_STYLE_FONT_STATUS_BAR 6
407
#define NS_STYLE_FONT_WINDOW 7 // css3
408
#define NS_STYLE_FONT_DOCUMENT 8
409
#define NS_STYLE_FONT_WORKSPACE 9
410
#define NS_STYLE_FONT_DESKTOP 10
411
#define NS_STYLE_FONT_INFO 11
412
#define NS_STYLE_FONT_DIALOG 12
413
#define NS_STYLE_FONT_BUTTON 13
414
#define NS_STYLE_FONT_PULL_DOWN_MENU 14
415
#define NS_STYLE_FONT_LIST 15
416
#define NS_STYLE_FONT_FIELD 16
418
// See nsStylePosition.mPosition
419
#define NS_STYLE_POSITION_STATIC 0
420
#define NS_STYLE_POSITION_RELATIVE 1
421
#define NS_STYLE_POSITION_ABSOLUTE 2
422
#define NS_STYLE_POSITION_FIXED 3
424
// See nsStylePosition.mClip
425
#define NS_STYLE_CLIP_AUTO 0x00
426
#define NS_STYLE_CLIP_RECT 0x01
427
#define NS_STYLE_CLIP_TYPE_MASK 0x0F
428
#define NS_STYLE_CLIP_LEFT_AUTO 0x10
429
#define NS_STYLE_CLIP_TOP_AUTO 0x20
430
#define NS_STYLE_CLIP_RIGHT_AUTO 0x40
431
#define NS_STYLE_CLIP_BOTTOM_AUTO 0x80
433
// FRAME/FRAMESET/IFRAME specific values including backward compatibility. Boolean values with
434
// the same meaning (e.g. 1 & yes) may need to be distinguished for correct mode processing
435
#define NS_STYLE_FRAME_YES 0
436
#define NS_STYLE_FRAME_NO 1
437
#define NS_STYLE_FRAME_0 2
438
#define NS_STYLE_FRAME_1 3
439
#define NS_STYLE_FRAME_ON 4
440
#define NS_STYLE_FRAME_OFF 5
441
#define NS_STYLE_FRAME_AUTO 6
442
#define NS_STYLE_FRAME_SCROLL 7
443
#define NS_STYLE_FRAME_NOSCROLL 8
445
// See nsStylePosition.mOverflow
446
#define NS_STYLE_OVERFLOW_VISIBLE 0
447
#define NS_STYLE_OVERFLOW_HIDDEN 1
448
#define NS_STYLE_OVERFLOW_SCROLL 2
449
#define NS_STYLE_OVERFLOW_AUTO 3
450
#define NS_STYLE_OVERFLOW_SCROLLBARS_NONE 4
451
#define NS_STYLE_OVERFLOW_SCROLLBARS_HORIZONTAL 5
452
#define NS_STYLE_OVERFLOW_SCROLLBARS_VERTICAL 6
455
#define NS_STYLE_LIST_STYLE_NONE 0
456
#define NS_STYLE_LIST_STYLE_DISC 1
457
#define NS_STYLE_LIST_STYLE_CIRCLE 2
458
#define NS_STYLE_LIST_STYLE_SQUARE 3
459
#define NS_STYLE_LIST_STYLE_DECIMAL 4
460
#define NS_STYLE_LIST_STYLE_DECIMAL_LEADING_ZERO 5
461
#define NS_STYLE_LIST_STYLE_LOWER_ROMAN 6
462
#define NS_STYLE_LIST_STYLE_UPPER_ROMAN 7
463
#define NS_STYLE_LIST_STYLE_LOWER_GREEK 8
464
#define NS_STYLE_LIST_STYLE_LOWER_ALPHA 9
465
#define NS_STYLE_LIST_STYLE_LOWER_LATIN 9 // == ALPHA
466
#define NS_STYLE_LIST_STYLE_UPPER_ALPHA 10
467
#define NS_STYLE_LIST_STYLE_UPPER_LATIN 10 // == ALPHA
468
#define NS_STYLE_LIST_STYLE_HEBREW 11
469
#define NS_STYLE_LIST_STYLE_ARMENIAN 12
470
#define NS_STYLE_LIST_STYLE_GEORGIAN 13
471
#define NS_STYLE_LIST_STYLE_CJK_IDEOGRAPHIC 14
472
#define NS_STYLE_LIST_STYLE_HIRAGANA 15
473
#define NS_STYLE_LIST_STYLE_KATAKANA 16
474
#define NS_STYLE_LIST_STYLE_HIRAGANA_IROHA 17
475
#define NS_STYLE_LIST_STYLE_KATAKANA_IROHA 18
476
#define NS_STYLE_LIST_STYLE_OLD_LOWER_ROMAN 19
477
#define NS_STYLE_LIST_STYLE_OLD_UPPER_ROMAN 20
478
#define NS_STYLE_LIST_STYLE_OLD_LOWER_ALPHA 21
479
#define NS_STYLE_LIST_STYLE_OLD_UPPER_ALPHA 22
480
#define NS_STYLE_LIST_STYLE_OLD_DECIMAL 23
481
#define NS_STYLE_LIST_STYLE_MOZ_CJK_HEAVENLY_STEM 24
482
#define NS_STYLE_LIST_STYLE_MOZ_CJK_EARTHLY_BRANCH 25
483
#define NS_STYLE_LIST_STYLE_MOZ_TRAD_CHINESE_INFORMAL 26
484
#define NS_STYLE_LIST_STYLE_MOZ_TRAD_CHINESE_FORMAL 27
485
#define NS_STYLE_LIST_STYLE_MOZ_SIMP_CHINESE_INFORMAL 28
486
#define NS_STYLE_LIST_STYLE_MOZ_SIMP_CHINESE_FORMAL 29
487
#define NS_STYLE_LIST_STYLE_MOZ_JAPANESE_INFORMAL 30
488
#define NS_STYLE_LIST_STYLE_MOZ_JAPANESE_FORMAL 31
489
#define NS_STYLE_LIST_STYLE_MOZ_ARABIC_INDIC 32
490
#define NS_STYLE_LIST_STYLE_MOZ_PERSIAN 33
491
#define NS_STYLE_LIST_STYLE_MOZ_URDU 34
492
#define NS_STYLE_LIST_STYLE_MOZ_DEVANAGARI 35
493
#define NS_STYLE_LIST_STYLE_MOZ_GURMUKHI 36
494
#define NS_STYLE_LIST_STYLE_MOZ_GUJARATI 37
495
#define NS_STYLE_LIST_STYLE_MOZ_ORIYA 38
496
#define NS_STYLE_LIST_STYLE_MOZ_KANNADA 39
497
#define NS_STYLE_LIST_STYLE_MOZ_MALAYALAM 40
498
#define NS_STYLE_LIST_STYLE_MOZ_BENGALI 41
499
#define NS_STYLE_LIST_STYLE_MOZ_TAMIL 42
500
#define NS_STYLE_LIST_STYLE_MOZ_TELUGU 43
501
#define NS_STYLE_LIST_STYLE_MOZ_THAI 44
502
#define NS_STYLE_LIST_STYLE_MOZ_LAO 45
503
#define NS_STYLE_LIST_STYLE_MOZ_MYANMAR 46
504
#define NS_STYLE_LIST_STYLE_MOZ_KHMER 47
505
#define NS_STYLE_LIST_STYLE_MOZ_HANGUL 48
506
#define NS_STYLE_LIST_STYLE_MOZ_HANGUL_CONSONANT 49
507
#define NS_STYLE_LIST_STYLE_MOZ_ETHIOPIC_HALEHAME 50
508
#define NS_STYLE_LIST_STYLE_MOZ_ETHIOPIC_NUMERIC 51
509
#define NS_STYLE_LIST_STYLE_MOZ_ETHIOPIC_HALEHAME_AM 52
510
#define NS_STYLE_LIST_STYLE_MOZ_ETHIOPIC_HALEHAME_TI_ER 53
511
#define NS_STYLE_LIST_STYLE_MOZ_ETHIOPIC_HALEHAME_TI_ET 54
514
#define NS_STYLE_LIST_STYLE_POSITION_INSIDE 0
515
#define NS_STYLE_LIST_STYLE_POSITION_OUTSIDE 1
518
#define NS_STYLE_MARGIN_SIZE_AUTO 0
522
// Note: make sure the numbers are less than the numbers that start
523
// the vertical_align values below!
524
#define NS_STYLE_TEXT_ALIGN_DEFAULT 0
525
#define NS_STYLE_TEXT_ALIGN_LEFT 1
526
#define NS_STYLE_TEXT_ALIGN_RIGHT 2
527
#define NS_STYLE_TEXT_ALIGN_CENTER 3
528
#define NS_STYLE_TEXT_ALIGN_JUSTIFY 4
529
#define NS_STYLE_TEXT_ALIGN_CHAR 5 //align based on a certain character, for table cell
530
#define NS_STYLE_TEXT_ALIGN_MOZ_CENTER 6
531
#define NS_STYLE_TEXT_ALIGN_MOZ_RIGHT 7
533
// See nsStyleText, nsStyleFont
534
#define NS_STYLE_TEXT_DECORATION_NONE 0
535
#define NS_STYLE_TEXT_DECORATION_UNDERLINE NS_FONT_DECORATION_UNDERLINE
536
#define NS_STYLE_TEXT_DECORATION_OVERLINE NS_FONT_DECORATION_OVERLINE
537
#define NS_STYLE_TEXT_DECORATION_LINE_THROUGH NS_FONT_DECORATION_LINE_THROUGH
538
#define NS_STYLE_TEXT_DECORATION_BLINK 0x08
539
#define NS_STYLE_TEXT_DECORATION_OVERRIDE_ALL 0x10
540
#define NS_STYLE_TEXT_DECORATION_PREF_ANCHORS 0x20
541
#define NS_STYLE_TEXT_DECORATION_LINES_MASK (NS_STYLE_TEXT_DECORATION_UNDERLINE | NS_STYLE_TEXT_DECORATION_OVERLINE | NS_STYLE_TEXT_DECORATION_LINE_THROUGH)
544
#define NS_STYLE_TEXT_TRANSFORM_NONE 0
545
#define NS_STYLE_TEXT_TRANSFORM_CAPITALIZE 1
546
#define NS_STYLE_TEXT_TRANSFORM_LOWERCASE 2
547
#define NS_STYLE_TEXT_TRANSFORM_UPPERCASE 3
550
// Note: these values pickup after the text-align values because there
551
// are a few html cases where an object can have both types of
552
// alignment applied with a single attribute
553
#define NS_STYLE_VERTICAL_ALIGN_BASELINE 10
554
#define NS_STYLE_VERTICAL_ALIGN_SUB 11
555
#define NS_STYLE_VERTICAL_ALIGN_SUPER 12
556
#define NS_STYLE_VERTICAL_ALIGN_TOP 13
557
#define NS_STYLE_VERTICAL_ALIGN_TEXT_TOP 14
558
#define NS_STYLE_VERTICAL_ALIGN_MIDDLE 15
559
#define NS_STYLE_VERTICAL_ALIGN_TEXT_BOTTOM 16
560
#define NS_STYLE_VERTICAL_ALIGN_BOTTOM 17
562
// See nsStyleDisplay
563
#define NS_STYLE_VISIBILITY_HIDDEN 0
564
#define NS_STYLE_VISIBILITY_VISIBLE 1
565
#define NS_STYLE_VISIBILITY_COLLAPSE 2
568
#define NS_STYLE_WHITESPACE_NORMAL 0
569
#define NS_STYLE_WHITESPACE_PRE 1
570
#define NS_STYLE_WHITESPACE_NOWRAP 2
571
#define NS_STYLE_WHITESPACE_MOZ_PRE_WRAP 3
574
#define NS_STYLE_UNICODE_BIDI_NORMAL 0
575
#define NS_STYLE_UNICODE_BIDI_EMBED 1
576
#define NS_STYLE_UNICODE_BIDI_OVERRIDE 2
578
// See nsStyleTable (here for HTML 4.0 for now, should probably change to side flags)
579
#define NS_STYLE_TABLE_FRAME_NONE 0
580
#define NS_STYLE_TABLE_FRAME_ABOVE 1
581
#define NS_STYLE_TABLE_FRAME_BELOW 2
582
#define NS_STYLE_TABLE_FRAME_HSIDES 3
583
#define NS_STYLE_TABLE_FRAME_VSIDES 4
584
#define NS_STYLE_TABLE_FRAME_LEFT 5
585
#define NS_STYLE_TABLE_FRAME_RIGHT 6
586
#define NS_STYLE_TABLE_FRAME_BOX 7
587
#define NS_STYLE_TABLE_FRAME_BORDER 8
590
#define NS_STYLE_TABLE_RULES_NONE 0
591
#define NS_STYLE_TABLE_RULES_GROUPS 1
592
#define NS_STYLE_TABLE_RULES_ROWS 2
593
#define NS_STYLE_TABLE_RULES_COLS 3
594
#define NS_STYLE_TABLE_RULES_ALL 4
596
#define NS_STYLE_TABLE_COLS_NONE (-1)
597
#define NS_STYLE_TABLE_COLS_ALL PRInt32(1 << 30)
599
#define NS_STYLE_TABLE_LAYOUT_AUTO 0
600
#define NS_STYLE_TABLE_LAYOUT_FIXED 1
602
#define NS_STYLE_TABLE_EMPTY_CELLS_HIDE 0
603
#define NS_STYLE_TABLE_EMPTY_CELLS_SHOW 1
604
#define NS_STYLE_TABLE_EMPTY_CELLS_SHOW_BACKGROUND 2
606
// CAPTION_SIDE uses NS_SIDE_*
608
// constants for cell "scope" attribute
609
#define NS_STYLE_CELL_SCOPE_ROW 0
610
#define NS_STYLE_CELL_SCOPE_COL 1
611
#define NS_STYLE_CELL_SCOPE_ROWGROUP 2
612
#define NS_STYLE_CELL_SCOPE_COLGROUP 3
615
#define NS_STYLE_PAGE_MARKS_NONE 0x00
616
#define NS_STYLE_PAGE_MARKS_CROP 0x01
617
#define NS_STYLE_PAGE_MARKS_REGISTER 0x02
620
#define NS_STYLE_PAGE_SIZE_AUTO 0
621
#define NS_STYLE_PAGE_SIZE_PORTRAIT 1
622
#define NS_STYLE_PAGE_SIZE_LANDSCAPE 2
625
#define NS_STYLE_PAGE_BREAK_AUTO 0
626
#define NS_STYLE_PAGE_BREAK_ALWAYS 1
627
#define NS_STYLE_PAGE_BREAK_AVOID 2
628
#define NS_STYLE_PAGE_BREAK_LEFT 3
629
#define NS_STYLE_PAGE_BREAK_RIGHT 4
632
// Some of our constants must map to the same values as those defined in
633
// nsISVG{,Path,Glyph}GeometrySource.idl/
634
// I don't want to add a dependency on the SVG module
635
// everywhere by #include'ing nsISVG{,Path,Glyph}GeometrySource.h, so these consts
636
// have to be kept in sync manually.
639
#define NS_STYLE_DOMINANT_BASELINE_AUTO 0
640
#define NS_STYLE_DOMINANT_BASELINE_USE_SCRIPT 1
641
#define NS_STYLE_DOMINANT_BASELINE_NO_CHANGE 2
642
#define NS_STYLE_DOMINANT_BASELINE_RESET_SIZE 3
643
#define NS_STYLE_DOMINANT_BASELINE_ALPHABETIC 4
644
#define NS_STYLE_DOMINANT_BASELINE_HANGING 5
645
#define NS_STYLE_DOMINANT_BASELINE_IDEOGRAPHIC 6
646
#define NS_STYLE_DOMINANT_BASELINE_MATHEMATICAL 7
647
#define NS_STYLE_DOMINANT_BASELINE_CENTRAL 8
648
#define NS_STYLE_DOMINANT_BASELINE_MIDDLE 9
649
#define NS_STYLE_DOMINANT_BASELINE_TEXT_AFTER_EDGE 10
650
#define NS_STYLE_DOMINANT_BASELINE_TEXT_BEFORE_EDGE 11
651
#define NS_STYLE_DOMINANT_BASELINE_TEXT_TOP 12
652
#define NS_STYLE_DOMINANT_BASELINE_TEXT_BOTTOM 13
655
#define NS_STYLE_FILL_RULE_NONZERO 0 /* == nsISVGGeometrySource::FILL_RULE_NONZERO */
656
#define NS_STYLE_FILL_RULE_EVENODD 1 /* == nsISVGGeometrySource::FILL_RULE_EVENODD */
659
#define NS_STYLE_POINTER_EVENTS_NONE 0
660
#define NS_STYLE_POINTER_EVENTS_VISIBLEPAINTED 1
661
#define NS_STYLE_POINTER_EVENTS_VISIBLEFILL 2
662
#define NS_STYLE_POINTER_EVENTS_VISIBLESTROKE 3
663
#define NS_STYLE_POINTER_EVENTS_VISIBLE 4
664
#define NS_STYLE_POINTER_EVENTS_PAINTED 5
665
#define NS_STYLE_POINTER_EVENTS_FILL 6
666
#define NS_STYLE_POINTER_EVENTS_STROKE 7
667
#define NS_STYLE_POINTER_EVENTS_ALL 8
670
#define NS_STYLE_SHAPE_RENDERING_AUTO 0 /* == nsISVGPathGeometrySource::SHAPE_RENDERING_AUTO */
671
#define NS_STYLE_SHAPE_RENDERING_OPTIMIZESPEED 1 /* == nsISVGPathGeometrySource::SHAPE_RENDERING_OPTIMIZESPEED */
672
#define NS_STYLE_SHAPE_RENDERING_CRISPEDGES 2 /* == nsISVGPathGeometrySource::SHAPE_RENDERING_CRISPEDGES */
673
#define NS_STYLE_SHAPE_RENDERING_GEOMETRICPRECISION 3 /* == nsISVGPathGeometrySource::SHAPE_RENDERING_GEOMETRICPRECISION */
677
#define NS_STYLE_STROKE_LINECAP_BUTT 0 /* == nsISVGGeometrySource::STROKE_LINECAP_BUTT */
678
#define NS_STYLE_STROKE_LINECAP_ROUND 1 /* == nsISVGGeometrySource::STROKE_LINECAP_ROUND */
679
#define NS_STYLE_STROKE_LINECAP_SQUARE 2 /* == nsISVGGeometrySource::STROKE_LINECAP_SQUARE */
682
#define NS_STYLE_STROKE_LINEJOIN_MITER 0 /* == nsISVGGeometrySource::STROKE_LINEJOIN_MITER */
683
#define NS_STYLE_STROKE_LINEJOIN_ROUND 1 /* == nsISVGGeometrySource::STROKE_LINEJOIN_ROUND */
684
#define NS_STYLE_STROKE_LINEJOIN_BEVEL 2 /* == nsISVGGeometrySource::STROKE_LINEJOIN_BEVEL */
687
#define NS_STYLE_TEXT_ANCHOR_START 0
688
#define NS_STYLE_TEXT_ANCHOR_MIDDLE 1
689
#define NS_STYLE_TEXT_ANCHOR_END 2
692
#define NS_STYLE_TEXT_RENDERING_AUTO 0 /* == nsISVGGlyphGeometrySource::TEXT_RENDERING_AUTO */
693
#define NS_STYLE_TEXT_RENDERING_OPTIMIZESPEED 1 /* == nsISVGG.G.S.::TEXT_RENDERING_OPTIMIZESPEED */
694
#define NS_STYLE_TEXT_RENDERING_OPTIMIZELEGIBILITY 2 /* == nsISVGG.G.S.::TEXT_RENDERING_OPTIMIZELEGIBILITY */
695
#define NS_STYLE_TEXT_RENDERING_GEOMETRICPRECISION 3 /* == nsISVGG.G.S.::TEXT_RENDERING_GEOMETRICPRECISION */
699
#endif /* nsStyleConsts_h___ */