1998-04-14 00:24:54 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
*
|
1999-11-06 06:40:37 +03:00
|
|
|
* The contents of this file are subject to the Netscape Public
|
|
|
|
* License Version 1.1 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.mozilla.org/NPL/
|
1998-04-14 00:24:54 +04:00
|
|
|
*
|
1999-11-06 06:40:37 +03:00
|
|
|
* Software distributed under the License is distributed on an "AS
|
|
|
|
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
|
|
* implied. See the License for the specific language governing
|
|
|
|
* rights and limitations under the License.
|
1998-04-14 00:24:54 +04:00
|
|
|
*
|
1999-11-06 06:40:37 +03:00
|
|
|
* The Original Code is mozilla.org code.
|
|
|
|
*
|
|
|
|
* The Initial Developer of the Original Code is Netscape
|
1998-04-14 00:24:54 +04:00
|
|
|
* Communications Corporation. Portions created by Netscape are
|
1999-11-06 06:40:37 +03:00
|
|
|
* Copyright (C) 1998 Netscape Communications Corporation. All
|
|
|
|
* Rights Reserved.
|
|
|
|
*
|
|
|
|
* Contributor(s):
|
1998-04-14 00:24:54 +04:00
|
|
|
*/
|
|
|
|
#ifndef nsStyleConsts_h___
|
|
|
|
#define nsStyleConsts_h___
|
|
|
|
|
1998-04-25 22:33:11 +04:00
|
|
|
#include "nsFont.h"
|
|
|
|
|
|
|
|
// XXX fold this into nsIStyleContext and group by nsStyleXXX struct
|
|
|
|
|
1998-04-14 00:24:54 +04:00
|
|
|
// Defines for various style related constants
|
|
|
|
|
1998-09-30 03:46:25 +04:00
|
|
|
// Style change hints
|
1999-01-15 04:53:03 +03:00
|
|
|
#define NS_STYLE_HINT_UNKNOWN -1
|
|
|
|
#define NS_STYLE_HINT_NONE 0 // change has no impact
|
1998-10-27 02:13:44 +03:00
|
|
|
#define NS_STYLE_HINT_AURAL 1 // change was aural
|
|
|
|
#define NS_STYLE_HINT_CONTENT 2 // change was contentual (ie: SRC=)
|
|
|
|
#define NS_STYLE_HINT_VISUAL 3 // change was visual only (ie: COLOR=)
|
|
|
|
#define NS_STYLE_HINT_REFLOW 4 // change requires reflow (ie: WIDTH=)
|
1999-03-01 19:57:35 +03:00
|
|
|
#define NS_STYLE_HINT_FRAMECHANGE 5 // change requires frame change (ie: display:)
|
|
|
|
#define NS_STYLE_HINT_RECONSTRUCT_ALL 6 // change requires reconstruction of entire document (ie: style sheet change)
|
|
|
|
#define NS_STYLE_HINT_MAX NS_STYLE_HINT_RECONSTRUCT_ALL
|
1998-10-27 02:13:44 +03:00
|
|
|
|
|
|
|
// Indicies into border/padding/margin arrays
|
|
|
|
#define NS_SIDE_TOP 0
|
|
|
|
#define NS_SIDE_RIGHT 1
|
|
|
|
#define NS_SIDE_BOTTOM 2
|
|
|
|
#define NS_SIDE_LEFT 3
|
|
|
|
|
|
|
|
|
1999-07-18 04:14:08 +04:00
|
|
|
// box-sizing
|
|
|
|
#define NS_STYLE_BOX_SIZING_CONTENT 0
|
|
|
|
#define NS_STYLE_BOX_SIZING_PADDING 1
|
|
|
|
#define NS_STYLE_BOX_SIZING_BORDER 2
|
|
|
|
|
|
|
|
// float-edge
|
|
|
|
#define NS_STYLE_FLOAT_EDGE_CONTENT 0
|
|
|
|
#define NS_STYLE_FLOAT_EDGE_PADDING 1
|
|
|
|
#define NS_STYLE_FLOAT_EDGE_BORDER 2
|
|
|
|
#define NS_STYLE_FLOAT_EDGE_MARGIN 3
|
|
|
|
|
|
|
|
// key-equivalent
|
|
|
|
#define NS_STYLE_KEY_EQUIVALENT_NONE 0
|
|
|
|
|
|
|
|
// resizer
|
|
|
|
#define NS_STYLE_RESIZER_NONE 0x00
|
|
|
|
#define NS_STYLE_RESIZER_HORIZONTAL 0x01 // bits
|
|
|
|
#define NS_STYLE_RESIZER_VERTICAL 0x02 // bits
|
|
|
|
#define NS_STYLE_RESIZER_BOTH 0x03 // bits
|
|
|
|
#define NS_STYLE_RESIZER_AUTO 0x04 // bits
|
|
|
|
|
1999-09-04 03:33:06 +04:00
|
|
|
// user-focus
|
|
|
|
#define NS_STYLE_USER_FOCUS_NONE 0
|
1999-10-12 04:21:06 +04:00
|
|
|
#define NS_STYLE_USER_FOCUS_IGNORE 1
|
|
|
|
#define NS_STYLE_USER_FOCUS_NORMAL 2
|
|
|
|
#define NS_STYLE_USER_FOCUS_SELECT_ALL 3
|
|
|
|
#define NS_STYLE_USER_FOCUS_SELECT_BEFORE 4
|
|
|
|
#define NS_STYLE_USER_FOCUS_SELECT_AFTER 5
|
|
|
|
#define NS_STYLE_USER_FOCUS_SELECT_SAME 6
|
|
|
|
#define NS_STYLE_USER_FOCUS_SELECT_MENU 7
|
1999-09-04 03:33:06 +04:00
|
|
|
|
|
|
|
// user-select
|
|
|
|
#define NS_STYLE_USER_SELECT_NONE 0
|
|
|
|
#define NS_STYLE_USER_SELECT_TEXT 1
|
|
|
|
#define NS_STYLE_USER_SELECT_ELEMENT 2
|
|
|
|
#define NS_STYLE_USER_SELECT_ELEMENTS 3
|
|
|
|
#define NS_STYLE_USER_SELECT_ALL 4
|
1999-10-15 06:11:09 +04:00
|
|
|
#define NS_STYLE_USER_SELECT_TOGGLE 5
|
|
|
|
#define NS_STYLE_USER_SELECT_TRI_STATE 6
|
2000-08-12 05:00:14 +04:00
|
|
|
#define NS_STYLE_USER_SELECT_AUTO 7 // internal value - please use nsFrame::IsSelectable()
|
|
|
|
#define NS_STYLE_USER_SELECT_MOZ_ALL 8 // force selection of all children - bug 48096
|
1999-07-18 04:14:08 +04:00
|
|
|
|
|
|
|
// user-input
|
|
|
|
#define NS_STYLE_USER_INPUT_NONE 0
|
|
|
|
#define NS_STYLE_USER_INPUT_ENABLED 1
|
|
|
|
#define NS_STYLE_USER_INPUT_DISABLED 2
|
|
|
|
#define NS_STYLE_USER_INPUT_AUTO 3
|
|
|
|
|
1999-09-04 03:33:06 +04:00
|
|
|
// user-modify
|
|
|
|
#define NS_STYLE_USER_MODIFY_READ_ONLY 0
|
|
|
|
#define NS_STYLE_USER_MODIFY_READ_WRITE 1
|
|
|
|
#define NS_STYLE_USER_MODIFY_WRITE_ONLY 2
|
|
|
|
|
|
|
|
|
1999-07-18 04:14:08 +04:00
|
|
|
|
1998-10-27 02:13:44 +03:00
|
|
|
// Azimuth - See nsStyleAural
|
|
|
|
#define NS_STYLE_AZIMUTH_LEFT_SIDE 0x00
|
|
|
|
#define NS_STYLE_AZIMUTH_FAR_LEFT 0x01
|
|
|
|
#define NS_STYLE_AZIMUTH_LEFT 0x02
|
|
|
|
#define NS_STYLE_AZIMUTH_CENTER_LEFT 0x03
|
|
|
|
#define NS_STYLE_AZIMUTH_CENTER 0x04
|
|
|
|
#define NS_STYLE_AZIMUTH_CENTER_RIGHT 0x05
|
|
|
|
#define NS_STYLE_AZIMUTH_RIGHT 0x06
|
|
|
|
#define NS_STYLE_AZIMUTH_FAR_RIGHT 0x07
|
|
|
|
#define NS_STYLE_AZIMUTH_RIGHT_SIDE 0x08
|
|
|
|
#define NS_STYLE_AZIMUTH_BEHIND 0x80 // bits
|
|
|
|
#define NS_STYLE_AZIMUTH_LEFTWARDS 0x10 // bits
|
|
|
|
#define NS_STYLE_AZIMUTH_RIGHTWARDS 0x20 // bits
|
|
|
|
|
|
|
|
// See nsStyleAural
|
|
|
|
#define NS_STYLE_ELEVATION_BELOW 1
|
|
|
|
#define NS_STYLE_ELEVATION_LEVEL 2
|
|
|
|
#define NS_STYLE_ELEVATION_ABOVE 3
|
|
|
|
#define NS_STYLE_ELEVATION_HIGHER 4
|
|
|
|
#define NS_STYLE_ELEVATION_LOWER 5
|
|
|
|
|
|
|
|
// See nsStyleAural
|
|
|
|
#define NS_STYLE_PITCH_X_LOW 1
|
|
|
|
#define NS_STYLE_PITCH_LOW 2
|
|
|
|
#define NS_STYLE_PITCH_MEDIUM 3
|
|
|
|
#define NS_STYLE_PITCH_HIGH 4
|
|
|
|
#define NS_STYLE_PITCH_X_HIGH 5
|
|
|
|
|
|
|
|
// See nsStyleAural
|
|
|
|
#define NS_STYLE_PLAY_DURING_MIX 0x01 // bit field
|
|
|
|
#define NS_STYLE_PLAY_DURING_REPEAT 0x02
|
|
|
|
|
|
|
|
// See nsStyleAural
|
|
|
|
#define NS_STYLE_SPEAK_NONE 0
|
|
|
|
#define NS_STYLE_SPEAK_NORMAL 1
|
|
|
|
#define NS_STYLE_SPEAK_SPELL_OUT 2
|
|
|
|
|
|
|
|
// See nsStyleAural
|
|
|
|
#define NS_STYLE_SPEAK_HEADER_ONCE 0
|
|
|
|
#define NS_STYLE_SPEAK_HEADER_ALWAYS 1
|
|
|
|
|
|
|
|
// See nsStyleAural
|
|
|
|
#define NS_STYLE_SPEAK_NUMERAL_DIGITS 0
|
|
|
|
#define NS_STYLE_SPEAK_NUMERAL_CONTINUOUS 1
|
|
|
|
|
|
|
|
// See nsStyleAural
|
|
|
|
#define NS_STYLE_SPEAK_PUNCTUATION_NONE 0
|
|
|
|
#define NS_STYLE_SPEAK_PUNCTUATION_CODE 1
|
|
|
|
|
|
|
|
// See nsStyleAural
|
|
|
|
#define NS_STYLE_SPEECH_RATE_X_SLOW 0
|
|
|
|
#define NS_STYLE_SPEECH_RATE_SLOW 1
|
|
|
|
#define NS_STYLE_SPEECH_RATE_MEDIUM 2
|
|
|
|
#define NS_STYLE_SPEECH_RATE_FAST 3
|
|
|
|
#define NS_STYLE_SPEECH_RATE_X_FAST 4
|
|
|
|
#define NS_STYLE_SPEECH_RATE_FASTER 10
|
|
|
|
#define NS_STYLE_SPEECH_RATE_SLOWER 11
|
|
|
|
|
|
|
|
// See nsStyleAural
|
|
|
|
#define NS_STYLE_VOLUME_SILENT 0
|
|
|
|
#define NS_STYLE_VOLUME_X_SOFT 1
|
|
|
|
#define NS_STYLE_VOLUME_SOFT 2
|
|
|
|
#define NS_STYLE_VOLUME_MEDIUM 3
|
|
|
|
#define NS_STYLE_VOLUME_LOUD 4
|
|
|
|
#define NS_STYLE_VOLUME_X_LOUD 5
|
1998-09-30 03:46:25 +04:00
|
|
|
|
1998-04-25 22:33:11 +04:00
|
|
|
// See nsStyleColor
|
1999-04-22 02:01:18 +04:00
|
|
|
#define NS_STYLE_BG_ATTACHMENT_SCROLL 0
|
|
|
|
#define NS_STYLE_BG_ATTACHMENT_FIXED 1
|
1998-04-14 00:24:54 +04:00
|
|
|
|
1998-10-27 02:13:44 +03:00
|
|
|
// See nsStyleColor
|
1999-04-22 02:01:18 +04:00
|
|
|
#define NS_STYLE_COLOR_TRANSPARENT 0
|
|
|
|
#define NS_STYLE_COLOR_INVERT 1
|
1998-10-27 02:13:44 +03:00
|
|
|
|
1998-04-25 22:33:11 +04:00
|
|
|
// See nsStyleColor
|
1998-04-14 00:24:54 +04:00
|
|
|
#define NS_STYLE_BG_COLOR_TRANSPARENT 0x01
|
|
|
|
#define NS_STYLE_BG_IMAGE_NONE 0x02
|
1998-04-28 01:20:24 +04:00
|
|
|
#define NS_STYLE_BG_X_POSITION_PERCENT 0x04
|
1998-04-14 00:24:54 +04:00
|
|
|
#define NS_STYLE_BG_X_POSITION_LENGTH 0x08
|
1998-04-28 01:20:24 +04:00
|
|
|
#define NS_STYLE_BG_Y_POSITION_PERCENT 0x10
|
1998-04-14 00:24:54 +04:00
|
|
|
#define NS_STYLE_BG_Y_POSITION_LENGTH 0x20
|
2000-04-15 14:38:13 +04:00
|
|
|
#define NS_STYLE_BG_PROPAGATED_TO_PARENT 0x40 // for the BodyFixupRule
|
|
|
|
#define NS_STYLE_BG_PROPAGATED_FROM_CHILD 0x80 // '' ''
|
1998-04-14 00:24:54 +04:00
|
|
|
|
1998-04-25 22:33:11 +04:00
|
|
|
// See nsStyleColor
|
1998-04-14 00:24:54 +04:00
|
|
|
#define NS_STYLE_BG_REPEAT_OFF 0x00
|
|
|
|
#define NS_STYLE_BG_REPEAT_X 0x01
|
|
|
|
#define NS_STYLE_BG_REPEAT_Y 0x02
|
|
|
|
#define NS_STYLE_BG_REPEAT_XY 0x03
|
|
|
|
|
1998-10-27 02:13:44 +03:00
|
|
|
// See nsStyleTable
|
|
|
|
#define NS_STYLE_BORDER_COLLAPSE 0
|
|
|
|
#define NS_STYLE_BORDER_SEPARATE 1
|
|
|
|
|
1998-05-13 02:25:31 +04:00
|
|
|
// See nsStyleSpacing mBorder enum values
|
1998-04-14 00:24:54 +04:00
|
|
|
#define NS_STYLE_BORDER_WIDTH_THIN 0
|
|
|
|
#define NS_STYLE_BORDER_WIDTH_MEDIUM 1
|
|
|
|
#define NS_STYLE_BORDER_WIDTH_THICK 2
|
1998-05-13 02:25:31 +04:00
|
|
|
// XXX chopping block #define NS_STYLE_BORDER_WIDTH_LENGTH_VALUE 3
|
1998-04-14 00:24:54 +04:00
|
|
|
|
1998-05-13 02:25:31 +04:00
|
|
|
// See nsStyleSpacing mBorderStyle
|
1998-04-14 00:24:54 +04:00
|
|
|
#define NS_STYLE_BORDER_STYLE_NONE 0
|
|
|
|
#define NS_STYLE_BORDER_STYLE_GROOVE 1
|
|
|
|
#define NS_STYLE_BORDER_STYLE_RIDGE 2
|
|
|
|
#define NS_STYLE_BORDER_STYLE_DOTTED 3
|
|
|
|
#define NS_STYLE_BORDER_STYLE_DASHED 4
|
|
|
|
#define NS_STYLE_BORDER_STYLE_SOLID 5
|
|
|
|
#define NS_STYLE_BORDER_STYLE_DOUBLE 6
|
|
|
|
#define NS_STYLE_BORDER_STYLE_BLANK 7
|
|
|
|
#define NS_STYLE_BORDER_STYLE_INSET 8
|
|
|
|
#define NS_STYLE_BORDER_STYLE_OUTSET 9
|
1998-10-27 02:13:44 +03:00
|
|
|
#define NS_STYLE_BORDER_STYLE_HIDDEN 10
|
1999-01-16 01:24:29 +03:00
|
|
|
#define NS_STYLE_BORDER_STYLE_BG_INSET 11
|
|
|
|
#define NS_STYLE_BORDER_STYLE_BG_OUTSET 12
|
1998-04-14 00:24:54 +04:00
|
|
|
|
1998-04-25 22:33:11 +04:00
|
|
|
// See nsStyleDisplay
|
|
|
|
#define NS_STYLE_CLEAR_NONE 0
|
|
|
|
#define NS_STYLE_CLEAR_LEFT 1
|
|
|
|
#define NS_STYLE_CLEAR_RIGHT 2
|
|
|
|
#define NS_STYLE_CLEAR_LEFT_AND_RIGHT 3
|
|
|
|
#define NS_STYLE_CLEAR_LINE 4
|
|
|
|
#define NS_STYLE_CLEAR_BLOCK 5
|
|
|
|
#define NS_STYLE_CLEAR_COLUMN 6
|
|
|
|
#define NS_STYLE_CLEAR_PAGE 7
|
1999-10-15 03:08:04 +04:00
|
|
|
#define NS_STYLE_CLEAR_LAST_VALUE NS_STYLE_CLEAR_PAGE
|
1998-04-25 22:33:11 +04:00
|
|
|
|
1998-10-27 02:13:44 +03:00
|
|
|
// See
|
|
|
|
#define NS_STYLE_CONTENT_OPEN_QUOTE 0
|
|
|
|
#define NS_STYLE_CONTENT_CLOSE_QUOTE 1
|
|
|
|
#define NS_STYLE_CONTENT_NO_OPEN_QUOTE 2
|
|
|
|
#define NS_STYLE_CONTENT_NO_CLOSE_QUOTE 3
|
|
|
|
|
1998-04-25 22:33:11 +04:00
|
|
|
// See nsStyleColor
|
1998-04-30 23:51:52 +04:00
|
|
|
#define NS_STYLE_CURSOR_AUTO 1
|
1998-10-27 02:13:44 +03:00
|
|
|
#define NS_STYLE_CURSOR_CROSSHAIR 2
|
|
|
|
#define NS_STYLE_CURSOR_DEFAULT 3 // ie: an arrow
|
|
|
|
#define NS_STYLE_CURSOR_POINTER 4 // for links
|
|
|
|
#define NS_STYLE_CURSOR_MOVE 5
|
|
|
|
#define NS_STYLE_CURSOR_E_RESIZE 6
|
|
|
|
#define NS_STYLE_CURSOR_NE_RESIZE 7
|
|
|
|
#define NS_STYLE_CURSOR_NW_RESIZE 8
|
|
|
|
#define NS_STYLE_CURSOR_N_RESIZE 9
|
|
|
|
#define NS_STYLE_CURSOR_SE_RESIZE 10
|
|
|
|
#define NS_STYLE_CURSOR_SW_RESIZE 11
|
|
|
|
#define NS_STYLE_CURSOR_S_RESIZE 12
|
|
|
|
#define NS_STYLE_CURSOR_W_RESIZE 13
|
|
|
|
#define NS_STYLE_CURSOR_TEXT 14 // ie: i-beam
|
|
|
|
#define NS_STYLE_CURSOR_WAIT 15
|
|
|
|
#define NS_STYLE_CURSOR_HELP 16
|
2000-05-07 09:14:43 +04:00
|
|
|
#define NS_STYLE_CURSOR_COPY 17 // CSS3
|
|
|
|
#define NS_STYLE_CURSOR_ALIAS 18
|
|
|
|
#define NS_STYLE_CURSOR_CONTEXT_MENU 19
|
|
|
|
#define NS_STYLE_CURSOR_CELL 20
|
|
|
|
#define NS_STYLE_CURSOR_GRAB 21
|
|
|
|
#define NS_STYLE_CURSOR_GRABBING 22
|
|
|
|
#define NS_STYLE_CURSOR_SPINNING 23
|
|
|
|
#define NS_STYLE_CURSOR_COUNT_UP 24
|
|
|
|
#define NS_STYLE_CURSOR_COUNT_DOWN 25
|
|
|
|
#define NS_STYLE_CURSOR_COUNT_UP_DOWN 26
|
|
|
|
|
1998-04-14 00:24:54 +04:00
|
|
|
|
1998-04-25 22:33:11 +04:00
|
|
|
// See nsStyleDisplay
|
1998-04-14 00:24:54 +04:00
|
|
|
#define NS_STYLE_DIRECTION_LTR 0
|
|
|
|
#define NS_STYLE_DIRECTION_RTL 1
|
1998-04-26 07:46:26 +04:00
|
|
|
#define NS_STYLE_DIRECTION_INHERIT 2
|
1998-04-14 00:24:54 +04:00
|
|
|
|
1998-04-25 22:33:11 +04:00
|
|
|
// See nsStyleDisplay
|
1998-04-14 00:24:54 +04:00
|
|
|
#define NS_STYLE_DISPLAY_NONE 0
|
|
|
|
#define NS_STYLE_DISPLAY_BLOCK 1
|
|
|
|
#define NS_STYLE_DISPLAY_INLINE 2
|
1999-07-18 04:14:08 +04:00
|
|
|
#define NS_STYLE_DISPLAY_INLINE_BLOCK 3
|
|
|
|
#define NS_STYLE_DISPLAY_LIST_ITEM 4
|
|
|
|
#define NS_STYLE_DISPLAY_MARKER 5
|
|
|
|
#define NS_STYLE_DISPLAY_RUN_IN 6
|
|
|
|
#define NS_STYLE_DISPLAY_COMPACT 7
|
|
|
|
#define NS_STYLE_DISPLAY_TABLE 8
|
|
|
|
#define NS_STYLE_DISPLAY_INLINE_TABLE 9
|
|
|
|
#define NS_STYLE_DISPLAY_TABLE_ROW_GROUP 10
|
|
|
|
#define NS_STYLE_DISPLAY_TABLE_COLUMN 11
|
|
|
|
#define NS_STYLE_DISPLAY_TABLE_COLUMN_GROUP 12
|
|
|
|
#define NS_STYLE_DISPLAY_TABLE_HEADER_GROUP 13
|
|
|
|
#define NS_STYLE_DISPLAY_TABLE_FOOTER_GROUP 14
|
|
|
|
#define NS_STYLE_DISPLAY_TABLE_ROW 15
|
|
|
|
#define NS_STYLE_DISPLAY_TABLE_CELL 16
|
|
|
|
#define NS_STYLE_DISPLAY_TABLE_CAPTION 17
|
1999-07-24 22:59:43 +04:00
|
|
|
#define NS_STYLE_DISPLAY_MENU 18
|
1998-04-14 00:24:54 +04:00
|
|
|
|
1998-04-25 22:33:11 +04:00
|
|
|
// See nsStyleDisplay
|
1998-04-14 00:24:54 +04:00
|
|
|
#define NS_STYLE_FLOAT_NONE 0
|
|
|
|
#define NS_STYLE_FLOAT_LEFT 1
|
|
|
|
#define NS_STYLE_FLOAT_RIGHT 2
|
|
|
|
|
1998-04-25 22:33:11 +04:00
|
|
|
// See nsStyleFont
|
1998-04-14 00:24:54 +04:00
|
|
|
#define NS_STYLE_FONT_STYLE_NORMAL 0
|
|
|
|
#define NS_STYLE_FONT_STYLE_ITALIC 1
|
|
|
|
#define NS_STYLE_FONT_STYLE_OBLIQUE 2
|
|
|
|
|
1998-04-25 22:33:11 +04:00
|
|
|
// See nsStyleFont
|
1998-04-14 00:24:54 +04:00
|
|
|
#define NS_STYLE_FONT_VARIANT_NORMAL 0
|
|
|
|
#define NS_STYLE_FONT_VARIANT_SMALL_CAPS 1
|
|
|
|
|
1998-04-25 22:33:11 +04:00
|
|
|
// See nsStyleFont
|
1998-04-14 00:24:54 +04:00
|
|
|
#define NS_STYLE_FONT_WEIGHT_NORMAL 400
|
|
|
|
#define NS_STYLE_FONT_WEIGHT_BOLD 700
|
1999-09-10 09:50:30 +04:00
|
|
|
#define NS_STYLE_FONT_WEIGHT_BOLDER 1
|
|
|
|
#define NS_STYLE_FONT_WEIGHT_LIGHTER -1
|
1998-04-14 00:24:54 +04:00
|
|
|
|
1998-04-25 22:33:11 +04:00
|
|
|
// See nsStyleFont
|
1998-04-14 00:24:54 +04:00
|
|
|
#define NS_STYLE_FONT_SIZE_XXSMALL 0
|
|
|
|
#define NS_STYLE_FONT_SIZE_XSMALL 1
|
|
|
|
#define NS_STYLE_FONT_SIZE_SMALL 2
|
|
|
|
#define NS_STYLE_FONT_SIZE_MEDIUM 3
|
|
|
|
#define NS_STYLE_FONT_SIZE_LARGE 4
|
|
|
|
#define NS_STYLE_FONT_SIZE_XLARGE 5
|
|
|
|
#define NS_STYLE_FONT_SIZE_XXLARGE 6
|
|
|
|
#define NS_STYLE_FONT_SIZE_LARGER 7
|
|
|
|
#define NS_STYLE_FONT_SIZE_SMALLER 8
|
|
|
|
|
1998-10-27 02:13:44 +03:00
|
|
|
// See nsStyleFont
|
|
|
|
#define NS_STYLE_FONT_STRETCH_ULTRA_CONDENSED -4
|
|
|
|
#define NS_STYLE_FONT_STRETCH_EXTRA_CONDENSED -3
|
|
|
|
#define NS_STYLE_FONT_STRETCH_CONDENSED -2
|
|
|
|
#define NS_STYLE_FONT_STRETCH_SEMI_CONDENSED -1
|
|
|
|
#define NS_STYLE_FONT_STRETCH_NORMAL 0
|
|
|
|
#define NS_STYLE_FONT_STRETCH_SEMI_EXPANDED 1
|
|
|
|
#define NS_STYLE_FONT_STRETCH_EXPANDED 2
|
|
|
|
#define NS_STYLE_FONT_STRETCH_EXTRA_EXPANDED 3
|
|
|
|
#define NS_STYLE_FONT_STRETCH_ULTRA_EXPANDED 4
|
|
|
|
#define NS_STYLE_FONT_STRETCH_WIDER 10
|
|
|
|
#define NS_STYLE_FONT_STRETCH_NARROWER -10
|
|
|
|
|
1998-07-23 21:57:16 +04:00
|
|
|
// See nsStyleFont mFlags
|
|
|
|
#define NS_STYLE_FONT_DEFAULT 0x00
|
|
|
|
#define NS_STYLE_FONT_SIZE_EXPLICIT 0x01
|
|
|
|
#define NS_STYLE_FONT_FACE_EXPLICIT 0x02
|
1999-06-22 23:15:16 +04:00
|
|
|
#define NS_STYLE_FONT_USE_FIXED 0x04
|
1998-07-23 21:57:16 +04:00
|
|
|
|
1998-10-27 02:13:44 +03:00
|
|
|
// See nsStyleFont - system fonts
|
2000-03-25 21:54:36 +03:00
|
|
|
#define NS_STYLE_FONT_CAPTION 1 // css2
|
1998-10-27 02:13:44 +03:00
|
|
|
#define NS_STYLE_FONT_ICON 2
|
|
|
|
#define NS_STYLE_FONT_MENU 3
|
|
|
|
#define NS_STYLE_FONT_MESSAGE_BOX 4
|
|
|
|
#define NS_STYLE_FONT_SMALL_CAPTION 5
|
|
|
|
#define NS_STYLE_FONT_STATUS_BAR 6
|
2000-03-25 21:54:36 +03:00
|
|
|
#define NS_STYLE_FONT_WINDOW 7 // css3
|
|
|
|
#define NS_STYLE_FONT_DOCUMENT 8
|
|
|
|
#define NS_STYLE_FONT_WORKSPACE 9
|
|
|
|
#define NS_STYLE_FONT_DESKTOP 10
|
|
|
|
#define NS_STYLE_FONT_INFO 11
|
|
|
|
#define NS_STYLE_FONT_DIALOG 12
|
|
|
|
#define NS_STYLE_FONT_BUTTON 13
|
|
|
|
#define NS_STYLE_FONT_PULL_DOWN_MENU 14
|
|
|
|
#define NS_STYLE_FONT_LIST 15
|
|
|
|
#define NS_STYLE_FONT_FIELD 16
|
1998-10-27 02:13:44 +03:00
|
|
|
|
1998-04-25 08:07:18 +04:00
|
|
|
// See nsStylePosition.mPosition
|
1998-05-14 02:38:37 +04:00
|
|
|
#define NS_STYLE_POSITION_NORMAL 0
|
1998-04-23 03:29:01 +04:00
|
|
|
#define NS_STYLE_POSITION_RELATIVE 1
|
|
|
|
#define NS_STYLE_POSITION_ABSOLUTE 2
|
1998-05-14 02:38:37 +04:00
|
|
|
#define NS_STYLE_POSITION_FIXED 3
|
1998-04-23 03:29:01 +04:00
|
|
|
|
1998-04-25 08:07:18 +04:00
|
|
|
// See nsStylePosition.mClip
|
1998-05-13 02:25:31 +04:00
|
|
|
#define NS_STYLE_CLIP_AUTO 0x00
|
|
|
|
#define NS_STYLE_CLIP_INHERIT 0x01
|
|
|
|
#define NS_STYLE_CLIP_RECT 0x02
|
|
|
|
#define NS_STYLE_CLIP_TYPE_MASK 0x0F
|
|
|
|
#define NS_STYLE_CLIP_LEFT_AUTO 0x10
|
|
|
|
#define NS_STYLE_CLIP_TOP_AUTO 0x20
|
|
|
|
#define NS_STYLE_CLIP_RIGHT_AUTO 0x40
|
|
|
|
#define NS_STYLE_CLIP_BOTTOM_AUTO 0x80
|
1998-04-25 08:07:18 +04:00
|
|
|
|
1998-09-10 03:30:30 +04:00
|
|
|
// FRAME/FRAMESET/IFRAME specific values including backward compatibility. Boolean values with
|
|
|
|
// the same meaning (e.g. 1 & yes) may need to be distinguished for correct mode processing
|
|
|
|
#define NS_STYLE_FRAME_YES 0
|
|
|
|
#define NS_STYLE_FRAME_NO 1
|
|
|
|
#define NS_STYLE_FRAME_0 2
|
|
|
|
#define NS_STYLE_FRAME_1 3
|
|
|
|
#define NS_STYLE_FRAME_ON 4
|
|
|
|
#define NS_STYLE_FRAME_OFF 5
|
|
|
|
#define NS_STYLE_FRAME_AUTO 6
|
|
|
|
#define NS_STYLE_FRAME_SCROLL 7
|
|
|
|
#define NS_STYLE_FRAME_NOSCROLL 8
|
|
|
|
|
1998-04-25 08:07:18 +04:00
|
|
|
// See nsStylePosition.mOverflow
|
|
|
|
#define NS_STYLE_OVERFLOW_VISIBLE 0
|
|
|
|
#define NS_STYLE_OVERFLOW_HIDDEN 1
|
|
|
|
#define NS_STYLE_OVERFLOW_SCROLL 2
|
|
|
|
#define NS_STYLE_OVERFLOW_AUTO 3
|
2000-01-10 06:23:44 +03:00
|
|
|
#define NS_STYLE_OVERFLOW_SCROLLBARS_NONE 4
|
|
|
|
#define NS_STYLE_OVERFLOW_SCROLLBARS_HORIZONTAL 5
|
|
|
|
#define NS_STYLE_OVERFLOW_SCROLLBARS_VERTICAL 6
|
1998-04-25 08:07:18 +04:00
|
|
|
|
1998-04-25 22:33:11 +04:00
|
|
|
// See nsStyleList
|
1998-10-27 02:13:44 +03:00
|
|
|
#define NS_STYLE_LIST_STYLE_NONE 0
|
|
|
|
#define NS_STYLE_LIST_STYLE_DISC 1
|
|
|
|
#define NS_STYLE_LIST_STYLE_CIRCLE 2
|
|
|
|
#define NS_STYLE_LIST_STYLE_SQUARE 3
|
|
|
|
#define NS_STYLE_LIST_STYLE_DECIMAL 4
|
|
|
|
#define NS_STYLE_LIST_STYLE_DECIMAL_LEADING_ZERO 5
|
|
|
|
#define NS_STYLE_LIST_STYLE_LOWER_ROMAN 6
|
|
|
|
#define NS_STYLE_LIST_STYLE_UPPER_ROMAN 7
|
|
|
|
#define NS_STYLE_LIST_STYLE_LOWER_GREEK 8
|
|
|
|
#define NS_STYLE_LIST_STYLE_LOWER_ALPHA 9
|
|
|
|
#define NS_STYLE_LIST_STYLE_LOWER_LATIN 9 // == ALPHA
|
|
|
|
#define NS_STYLE_LIST_STYLE_UPPER_ALPHA 10
|
|
|
|
#define NS_STYLE_LIST_STYLE_UPPER_LATIN 10 // == ALPHA
|
|
|
|
#define NS_STYLE_LIST_STYLE_HEBREW 11
|
|
|
|
#define NS_STYLE_LIST_STYLE_ARMENIAN 12
|
|
|
|
#define NS_STYLE_LIST_STYLE_GEORGIAN 13
|
|
|
|
#define NS_STYLE_LIST_STYLE_CJK_IDEOGRAPHIC 14
|
|
|
|
#define NS_STYLE_LIST_STYLE_HIRAGANA 15
|
|
|
|
#define NS_STYLE_LIST_STYLE_KATAKANA 16
|
|
|
|
#define NS_STYLE_LIST_STYLE_HIRAGANA_IROHA 17
|
|
|
|
#define NS_STYLE_LIST_STYLE_KATAKANA_IROHA 18
|
1999-07-03 02:25:42 +04:00
|
|
|
#define NS_STYLE_LIST_STYLE_OLD_LOWER_ROMAN 19
|
|
|
|
#define NS_STYLE_LIST_STYLE_OLD_UPPER_ROMAN 20
|
|
|
|
#define NS_STYLE_LIST_STYLE_OLD_LOWER_ALPHA 21
|
|
|
|
#define NS_STYLE_LIST_STYLE_OLD_UPPER_ALPHA 22
|
1999-11-12 05:06:09 +03:00
|
|
|
#define NS_STYLE_LIST_STYLE_OLD_DECIMAL 23
|
2000-04-21 12:05:29 +04:00
|
|
|
#define NS_STYLE_LIST_STYLE_CJK_HEAVENLY_STEM 24
|
|
|
|
#define NS_STYLE_LIST_STYLE_CJK_EARTHLY_BRANCH 25
|
|
|
|
#define NS_STYLE_LIST_STYLE_TRAD_CHINESE_INFORMAL 26
|
|
|
|
#define NS_STYLE_LIST_STYLE_TRAD_CHINESE_FORMAL 27
|
|
|
|
#define NS_STYLE_LIST_STYLE_SIMP_CHINESE_INFORMAL 28
|
|
|
|
#define NS_STYLE_LIST_STYLE_SIMP_CHINESE_FORMAL 29
|
|
|
|
#define NS_STYLE_LIST_STYLE_JAPANESE_INFORMAL 30
|
|
|
|
#define NS_STYLE_LIST_STYLE_JAPANESE_FORMAL 31
|
|
|
|
#define NS_STYLE_LIST_STYLE_ARABIC_INDIC 32
|
|
|
|
#define NS_STYLE_LIST_STYLE_PERSIAN 33
|
|
|
|
#define NS_STYLE_LIST_STYLE_URDU 34
|
|
|
|
#define NS_STYLE_LIST_STYLE_DEVANAGARI 35
|
|
|
|
#define NS_STYLE_LIST_STYLE_GURMUKHI 36
|
|
|
|
#define NS_STYLE_LIST_STYLE_GUJARATI 37
|
|
|
|
#define NS_STYLE_LIST_STYLE_ORIYA 38
|
|
|
|
#define NS_STYLE_LIST_STYLE_KANNADA 39
|
|
|
|
#define NS_STYLE_LIST_STYLE_MALAYALAM 40
|
|
|
|
#define NS_STYLE_LIST_STYLE_BENGALI 41
|
|
|
|
#define NS_STYLE_LIST_STYLE_TAMIL 42
|
|
|
|
#define NS_STYLE_LIST_STYLE_TELUGU 43
|
|
|
|
#define NS_STYLE_LIST_STYLE_THAI 44
|
|
|
|
#define NS_STYLE_LIST_STYLE_LAO 45
|
|
|
|
#define NS_STYLE_LIST_STYLE_MYANMAR 46
|
|
|
|
#define NS_STYLE_LIST_STYLE_KHMER 47
|
1998-10-27 02:13:44 +03:00
|
|
|
#define NS_STYLE_LIST_STYLE_BASIC 100 // not in css
|
1998-04-14 00:24:54 +04:00
|
|
|
|
1998-04-25 22:33:11 +04:00
|
|
|
// See nsStyleList
|
1998-04-14 00:24:54 +04:00
|
|
|
#define NS_STYLE_LIST_STYLE_POSITION_INSIDE 0
|
|
|
|
#define NS_STYLE_LIST_STYLE_POSITION_OUTSIDE 1
|
|
|
|
|
1998-04-25 22:33:11 +04:00
|
|
|
// See nsStyleSpacing
|
1998-04-14 00:24:54 +04:00
|
|
|
#define NS_STYLE_MARGIN_SIZE_AUTO 0
|
|
|
|
|
1998-04-25 22:33:11 +04:00
|
|
|
// See nsStyleText
|
1999-03-25 06:51:16 +03:00
|
|
|
//
|
|
|
|
// Note: make sure the numbers are less than the numbers that start
|
|
|
|
// the vertical_align values below!
|
1998-05-28 06:00:59 +04:00
|
|
|
#define NS_STYLE_TEXT_ALIGN_DEFAULT 0
|
|
|
|
#define NS_STYLE_TEXT_ALIGN_LEFT 1
|
|
|
|
#define NS_STYLE_TEXT_ALIGN_RIGHT 2
|
|
|
|
#define NS_STYLE_TEXT_ALIGN_CENTER 3
|
|
|
|
#define NS_STYLE_TEXT_ALIGN_JUSTIFY 4
|
1998-09-15 21:58:24 +04:00
|
|
|
#define NS_STYLE_TEXT_ALIGN_CHAR 5 //align based on a certain character, for table cell
|
1999-03-25 06:51:16 +03:00
|
|
|
#define NS_STYLE_TEXT_ALIGN_MOZ_CENTER 6
|
|
|
|
#define NS_STYLE_TEXT_ALIGN_MOZ_RIGHT 7
|
1998-04-14 00:24:54 +04:00
|
|
|
|
1998-04-25 22:33:11 +04:00
|
|
|
// See nsStyleText, nsStyleFont
|
1998-04-14 00:24:54 +04:00
|
|
|
#define NS_STYLE_TEXT_DECORATION_NONE 0
|
1998-04-25 22:33:11 +04:00
|
|
|
#define NS_STYLE_TEXT_DECORATION_UNDERLINE NS_FONT_DECORATION_UNDERLINE
|
|
|
|
#define NS_STYLE_TEXT_DECORATION_OVERLINE NS_FONT_DECORATION_OVERLINE
|
|
|
|
#define NS_STYLE_TEXT_DECORATION_LINE_THROUGH NS_FONT_DECORATION_LINE_THROUGH
|
1998-04-14 00:24:54 +04:00
|
|
|
#define NS_STYLE_TEXT_DECORATION_BLINK 0x8
|
|
|
|
|
1998-04-25 22:33:11 +04:00
|
|
|
// See nsStyleText
|
1998-04-14 00:24:54 +04:00
|
|
|
#define NS_STYLE_TEXT_TRANSFORM_NONE 0
|
|
|
|
#define NS_STYLE_TEXT_TRANSFORM_CAPITALIZE 1
|
|
|
|
#define NS_STYLE_TEXT_TRANSFORM_LOWERCASE 2
|
|
|
|
#define NS_STYLE_TEXT_TRANSFORM_UPPERCASE 3
|
|
|
|
|
1998-04-25 22:33:11 +04:00
|
|
|
// See nsStyleText
|
1998-04-14 00:24:54 +04:00
|
|
|
// Note: these values pickup after the text-align values because there
|
|
|
|
// are a few html cases where an object can have both types of
|
|
|
|
// alignment applied with a single attribute
|
|
|
|
#define NS_STYLE_VERTICAL_ALIGN_BASELINE 10
|
|
|
|
#define NS_STYLE_VERTICAL_ALIGN_SUB 11
|
|
|
|
#define NS_STYLE_VERTICAL_ALIGN_SUPER 12
|
|
|
|
#define NS_STYLE_VERTICAL_ALIGN_TOP 13
|
|
|
|
#define NS_STYLE_VERTICAL_ALIGN_TEXT_TOP 14
|
|
|
|
#define NS_STYLE_VERTICAL_ALIGN_MIDDLE 15
|
|
|
|
#define NS_STYLE_VERTICAL_ALIGN_TEXT_BOTTOM 16
|
|
|
|
#define NS_STYLE_VERTICAL_ALIGN_BOTTOM 17
|
|
|
|
|
1998-04-25 22:33:11 +04:00
|
|
|
// See nsStyleDisplay
|
1998-05-27 03:14:29 +04:00
|
|
|
#define NS_STYLE_VISIBILITY_HIDDEN 0
|
1998-04-14 00:24:54 +04:00
|
|
|
#define NS_STYLE_VISIBILITY_VISIBLE 1
|
1998-10-27 02:13:44 +03:00
|
|
|
#define NS_STYLE_VISIBILITY_COLLAPSE 2
|
1998-04-14 00:24:54 +04:00
|
|
|
|
1998-04-25 22:33:11 +04:00
|
|
|
// See nsStyleText
|
1998-04-14 00:24:54 +04:00
|
|
|
#define NS_STYLE_WHITESPACE_NORMAL 0
|
|
|
|
#define NS_STYLE_WHITESPACE_PRE 1
|
|
|
|
#define NS_STYLE_WHITESPACE_NOWRAP 2
|
1999-03-25 06:51:16 +03:00
|
|
|
#define NS_STYLE_WHITESPACE_MOZ_PRE_WRAP 3
|
1998-04-14 00:24:54 +04:00
|
|
|
|
1998-10-27 02:13:44 +03:00
|
|
|
// See nsStyleText
|
|
|
|
#define NS_STYLE_UNICODE_BIDI_NORMAL 0
|
|
|
|
#define NS_STYLE_UNICODE_BIDI_EMBED 1
|
|
|
|
#define NS_STYLE_UNICODE_BIDI_OVERRIDE 2
|
|
|
|
|
1998-05-13 02:25:31 +04:00
|
|
|
// See nsStyleTable (here for HTML 4.0 for now, should probably change to side flags)
|
|
|
|
#define NS_STYLE_TABLE_FRAME_NONE 0
|
|
|
|
#define NS_STYLE_TABLE_FRAME_ABOVE 1
|
|
|
|
#define NS_STYLE_TABLE_FRAME_BELOW 2
|
|
|
|
#define NS_STYLE_TABLE_FRAME_HSIDES 3
|
|
|
|
#define NS_STYLE_TABLE_FRAME_VSIDES 4
|
|
|
|
#define NS_STYLE_TABLE_FRAME_LEFT 5
|
|
|
|
#define NS_STYLE_TABLE_FRAME_RIGHT 6
|
|
|
|
#define NS_STYLE_TABLE_FRAME_BOX 7
|
|
|
|
#define NS_STYLE_TABLE_FRAME_BORDER 8
|
|
|
|
|
|
|
|
// See nsStyleTable
|
|
|
|
#define NS_STYLE_TABLE_RULES_NONE 0
|
|
|
|
#define NS_STYLE_TABLE_RULES_GROUPS 1
|
|
|
|
#define NS_STYLE_TABLE_RULES_ROWS 2
|
|
|
|
#define NS_STYLE_TABLE_RULES_COLS 3
|
|
|
|
#define NS_STYLE_TABLE_RULES_ALL 4
|
|
|
|
|
1998-06-11 21:50:51 +04:00
|
|
|
#define NS_STYLE_TABLE_COLS_NONE (-1)
|
|
|
|
#define NS_STYLE_TABLE_COLS_ALL PRInt32(1 << 30)
|
1998-05-13 02:25:31 +04:00
|
|
|
|
1998-09-23 03:36:06 +04:00
|
|
|
#define NS_STYLE_TABLE_LAYOUT_AUTO 0
|
|
|
|
#define NS_STYLE_TABLE_LAYOUT_FIXED 1
|
|
|
|
|
1998-10-27 02:13:44 +03:00
|
|
|
#define NS_STYLE_TABLE_EMPTY_CELLS_HIDE 0
|
|
|
|
#define NS_STYLE_TABLE_EMPTY_CELLS_SHOW 1
|
|
|
|
|
1998-12-09 09:24:27 +03:00
|
|
|
// CAPTION_SIDE uses NS_SIDE_*
|
|
|
|
|
1998-09-15 21:58:24 +04:00
|
|
|
// constants for cell "scope" attribute
|
|
|
|
#define NS_STYLE_CELL_SCOPE_ROW 0
|
|
|
|
#define NS_STYLE_CELL_SCOPE_COL 1
|
|
|
|
#define NS_STYLE_CELL_SCOPE_ROWGROUP 2
|
|
|
|
#define NS_STYLE_CELL_SCOPE_COLGROUP 3
|
|
|
|
|
1998-10-27 02:13:44 +03:00
|
|
|
// See nsStylePage
|
|
|
|
#define NS_STYLE_PAGE_MARKS_NONE 0x00
|
|
|
|
#define NS_STYLE_PAGE_MARKS_CROP 0x01
|
|
|
|
#define NS_STYLE_PAGE_MARKS_REGISTER 0x02
|
|
|
|
|
|
|
|
// See nsStylePage
|
|
|
|
#define NS_STYLE_PAGE_SIZE_AUTO 0
|
|
|
|
#define NS_STYLE_PAGE_SIZE_PORTRAIT 1
|
|
|
|
#define NS_STYLE_PAGE_SIZE_LANDSCAPE 2
|
|
|
|
|
|
|
|
// See nsStyleBreaks
|
|
|
|
#define NS_STYLE_PAGE_BREAK_AUTO 0
|
|
|
|
#define NS_STYLE_PAGE_BREAK_ALWAYS 1
|
|
|
|
#define NS_STYLE_PAGE_BREAK_AVOID 2
|
|
|
|
#define NS_STYLE_PAGE_BREAK_LEFT 3
|
|
|
|
#define NS_STYLE_PAGE_BREAK_RIGHT 4
|
1998-09-15 21:58:24 +04:00
|
|
|
|
1998-04-14 00:24:54 +04:00
|
|
|
#endif /* nsStyleConsts_h___ */
|