Back to index

lightning-sunbird  0.9+nobinonly
nsStyleConsts.h
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
00002 /* ***** BEGIN LICENSE BLOCK *****
00003  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
00004  *
00005  * The contents of this file are subject to the Mozilla Public License Version
00006  * 1.1 (the "License"); you may not use this file except in compliance with
00007  * the License. You may obtain a copy of the License at
00008  * http://www.mozilla.org/MPL/
00009  *
00010  * Software distributed under the License is distributed on an "AS IS" basis,
00011  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00012  * for the specific language governing rights and limitations under the
00013  * License.
00014  *
00015  * The Original Code is mozilla.org code.
00016  *
00017  * The Initial Developer of the Original Code is
00018  * Netscape Communications Corporation.
00019  * Portions created by the Initial Developer are Copyright (C) 1998
00020  * the Initial Developer. All Rights Reserved.
00021  *
00022  * Contributor(s):
00023  *   Mats Palmgren <mats.palmgren@bredband.net>
00024  *
00025  * Alternatively, the contents of this file may be used under the terms of
00026  * either of the GNU General Public License Version 2 or later (the "GPL"),
00027  * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00028  * in which case the provisions of the GPL or the LGPL are applicable instead
00029  * of those above. If you wish to allow use of your version of this file only
00030  * under the terms of either the GPL or the LGPL, and not to allow others to
00031  * use your version of this file under the terms of the MPL, indicate your
00032  * decision by deleting the provisions above and replace them with the notice
00033  * and other provisions required by the GPL or the LGPL. If you do not delete
00034  * the provisions above, a recipient may use your version of this file under
00035  * the terms of any one of the MPL, the GPL or the LGPL.
00036  *
00037  * ***** END LICENSE BLOCK ***** */
00038 #ifndef nsStyleConsts_h___
00039 #define nsStyleConsts_h___
00040 
00041 #include "nsFont.h"
00042 
00043 // XXX fold this into nsStyleContext and group by nsStyleXXX struct
00044 
00045 // Indices into border/padding/margin arrays
00046 #define NS_SIDE_TOP     0
00047 #define NS_SIDE_RIGHT   1
00048 #define NS_SIDE_BOTTOM  2
00049 #define NS_SIDE_LEFT    3
00050 
00051 #define NS_FOR_CSS_SIDES(var_) for (PRInt32 var_ = 0; var_ < 4; ++var_)
00052 
00053 // {margin,padding}-{left,right}-{ltr,rtl}-source
00054 #define NS_BOXPROP_SOURCE_PHYSICAL 0
00055 #define NS_BOXPROP_SOURCE_LOGICAL  1
00056 
00057 // box-sizing
00058 #define NS_STYLE_BOX_SIZING_CONTENT       0
00059 #define NS_STYLE_BOX_SIZING_PADDING       1
00060 #define NS_STYLE_BOX_SIZING_BORDER        2
00061 
00062 // float-edge
00063 #define NS_STYLE_FLOAT_EDGE_CONTENT       0
00064 #define NS_STYLE_FLOAT_EDGE_PADDING       1
00065 #define NS_STYLE_FLOAT_EDGE_BORDER        2
00066 #define NS_STYLE_FLOAT_EDGE_MARGIN        3
00067 
00068 // key-equivalent
00069 #define NS_STYLE_KEY_EQUIVALENT_NONE      0
00070 
00071 // user-focus
00072 #define NS_STYLE_USER_FOCUS_NONE            0
00073 #define NS_STYLE_USER_FOCUS_IGNORE          1
00074 #define NS_STYLE_USER_FOCUS_NORMAL          2
00075 #define NS_STYLE_USER_FOCUS_SELECT_ALL      3
00076 #define NS_STYLE_USER_FOCUS_SELECT_BEFORE   4
00077 #define NS_STYLE_USER_FOCUS_SELECT_AFTER    5
00078 #define NS_STYLE_USER_FOCUS_SELECT_SAME     6
00079 #define NS_STYLE_USER_FOCUS_SELECT_MENU     7
00080 
00081 // user-select
00082 #define NS_STYLE_USER_SELECT_NONE       0
00083 #define NS_STYLE_USER_SELECT_TEXT       1
00084 #define NS_STYLE_USER_SELECT_ELEMENT    2
00085 #define NS_STYLE_USER_SELECT_ELEMENTS   3
00086 #define NS_STYLE_USER_SELECT_ALL        4
00087 #define NS_STYLE_USER_SELECT_TOGGLE     5
00088 #define NS_STYLE_USER_SELECT_TRI_STATE  6
00089 #define NS_STYLE_USER_SELECT_AUTO       7 // internal value - please use nsFrame::IsSelectable()
00090 #define NS_STYLE_USER_SELECT_MOZ_ALL    8 // force selection of all children, unless an ancestor has NONE set - bug 48096
00091 #define NS_STYLE_USER_SELECT_MOZ_NONE   9 // Like NONE, but doesn't change selection behavior for descendants whose user-select is not AUTO.
00092 
00093 // user-input
00094 #define NS_STYLE_USER_INPUT_NONE      0
00095 #define NS_STYLE_USER_INPUT_ENABLED   1
00096 #define NS_STYLE_USER_INPUT_DISABLED  2
00097 #define NS_STYLE_USER_INPUT_AUTO      3
00098 
00099 // user-modify
00100 #define NS_STYLE_USER_MODIFY_READ_ONLY   0
00101 #define NS_STYLE_USER_MODIFY_READ_WRITE  1
00102 #define NS_STYLE_USER_MODIFY_WRITE_ONLY  2
00103 
00104 // box-align
00105 #define NS_STYLE_BOX_ALIGN_STRETCH     0
00106 #define NS_STYLE_BOX_ALIGN_START       1
00107 #define NS_STYLE_BOX_ALIGN_CENTER      2
00108 #define NS_STYLE_BOX_ALIGN_BASELINE    3
00109 #define NS_STYLE_BOX_ALIGN_END         4
00110 
00111 // box-pack
00112 #define NS_STYLE_BOX_PACK_START        0
00113 #define NS_STYLE_BOX_PACK_CENTER       1
00114 #define NS_STYLE_BOX_PACK_END          2
00115 #define NS_STYLE_BOX_PACK_JUSTIFY      3
00116 
00117 // box-direction
00118 #define NS_STYLE_BOX_DIRECTION_NORMAL    0
00119 #define NS_STYLE_BOX_DIRECTION_REVERSE   1
00120 
00121 // box-orient
00122 #define NS_STYLE_BOX_ORIENT_HORIZONTAL 0
00123 #define NS_STYLE_BOX_ORIENT_VERTICAL   1
00124 
00125 // Azimuth - See nsStyleAural
00126 #define NS_STYLE_AZIMUTH_LEFT_SIDE        0x00
00127 #define NS_STYLE_AZIMUTH_FAR_LEFT         0x01
00128 #define NS_STYLE_AZIMUTH_LEFT             0x02
00129 #define NS_STYLE_AZIMUTH_CENTER_LEFT      0x03
00130 #define NS_STYLE_AZIMUTH_CENTER           0x04
00131 #define NS_STYLE_AZIMUTH_CENTER_RIGHT     0x05
00132 #define NS_STYLE_AZIMUTH_RIGHT            0x06
00133 #define NS_STYLE_AZIMUTH_FAR_RIGHT        0x07
00134 #define NS_STYLE_AZIMUTH_RIGHT_SIDE       0x08
00135 #define NS_STYLE_AZIMUTH_BEHIND           0x80  // bits
00136 #define NS_STYLE_AZIMUTH_LEFTWARDS        0x10  // bits
00137 #define NS_STYLE_AZIMUTH_RIGHTWARDS       0x20  // bits
00138 
00139 // See nsStyleAural
00140 #define NS_STYLE_ELEVATION_BELOW          1
00141 #define NS_STYLE_ELEVATION_LEVEL          2
00142 #define NS_STYLE_ELEVATION_ABOVE          3
00143 #define NS_STYLE_ELEVATION_HIGHER         4
00144 #define NS_STYLE_ELEVATION_LOWER          5
00145 
00146 // See nsStyleAural
00147 #define NS_STYLE_PITCH_X_LOW              1
00148 #define NS_STYLE_PITCH_LOW                2
00149 #define NS_STYLE_PITCH_MEDIUM             3
00150 #define NS_STYLE_PITCH_HIGH               4
00151 #define NS_STYLE_PITCH_X_HIGH             5
00152 
00153 // See nsStyleAural
00154 #define NS_STYLE_SPEAK_NONE               0
00155 #define NS_STYLE_SPEAK_NORMAL             1
00156 #define NS_STYLE_SPEAK_SPELL_OUT          2
00157 
00158 // See nsStyleAural 
00159 #define NS_STYLE_SPEAK_HEADER_ONCE        0
00160 #define NS_STYLE_SPEAK_HEADER_ALWAYS      1
00161 
00162 // See nsStyleAural 
00163 #define NS_STYLE_SPEAK_NUMERAL_DIGITS     0
00164 #define NS_STYLE_SPEAK_NUMERAL_CONTINUOUS 1
00165 
00166 // See nsStyleAural 
00167 #define NS_STYLE_SPEAK_PUNCTUATION_NONE   0
00168 #define NS_STYLE_SPEAK_PUNCTUATION_CODE   1
00169 
00170 // See nsStyleAural 
00171 #define NS_STYLE_SPEECH_RATE_X_SLOW       0
00172 #define NS_STYLE_SPEECH_RATE_SLOW         1
00173 #define NS_STYLE_SPEECH_RATE_MEDIUM       2
00174 #define NS_STYLE_SPEECH_RATE_FAST         3
00175 #define NS_STYLE_SPEECH_RATE_X_FAST       4
00176 #define NS_STYLE_SPEECH_RATE_FASTER       10
00177 #define NS_STYLE_SPEECH_RATE_SLOWER       11
00178 
00179 // See nsStyleAural 
00180 #define NS_STYLE_VOLUME_SILENT            0
00181 #define NS_STYLE_VOLUME_X_SOFT            1
00182 #define NS_STYLE_VOLUME_SOFT              2
00183 #define NS_STYLE_VOLUME_MEDIUM            3
00184 #define NS_STYLE_VOLUME_LOUD              4
00185 #define NS_STYLE_VOLUME_X_LOUD            5
00186 
00187 // See nsStyleColor
00188 #define NS_STYLE_COLOR_TRANSPARENT        0
00189 #define NS_STYLE_COLOR_INVERT             1
00190 #define NS_STYLE_COLOR_MOZ_USE_TEXT_COLOR      2
00191 
00192 // See nsStyleColor
00193 #define NS_COLOR_MOZ_HYPERLINKTEXT              -1
00194 #define NS_COLOR_MOZ_VISITEDHYPERLINKTEXT       -2
00195 #define NS_COLOR_MOZ_ACTIVEHYPERLINKTEXT        -3
00196 #define NS_COLOR_CURRENTCOLOR                   -4
00197 
00198 // See nsStyleBackground
00199 #define NS_STYLE_BG_COLOR_TRANSPARENT           0x01
00200 #define NS_STYLE_BG_IMAGE_NONE                  0x02
00201 #define NS_STYLE_BG_X_POSITION_PERCENT          0x04
00202 #define NS_STYLE_BG_X_POSITION_LENGTH           0x08
00203 #define NS_STYLE_BG_Y_POSITION_PERCENT          0x10
00204 #define NS_STYLE_BG_Y_POSITION_LENGTH           0x20
00205 
00206 // See nsStyleBackground
00207 #define NS_STYLE_BG_ATTACHMENT_SCROLL     0
00208 #define NS_STYLE_BG_ATTACHMENT_FIXED      1
00209 
00210 // See nsStyleBackground
00211 #define NS_STYLE_BG_CLIP_BORDER           0
00212 #define NS_STYLE_BG_CLIP_PADDING          1
00213 
00214 // See nsStyleBackground
00215 #define NS_STYLE_BG_INLINE_POLICY_EACH_BOX      0
00216 #define NS_STYLE_BG_INLINE_POLICY_CONTINUOUS    1
00217 #define NS_STYLE_BG_INLINE_POLICY_BOUNDING_BOX  2
00218 
00219 // See nsStyleBackground
00220 #define NS_STYLE_BG_ORIGIN_BORDER         0
00221 #define NS_STYLE_BG_ORIGIN_PADDING        1
00222 #define NS_STYLE_BG_ORIGIN_CONTENT        2
00223 
00224 // See nsStyleBackground
00225 #define NS_STYLE_BG_REPEAT_OFF                  0x00
00226 #define NS_STYLE_BG_REPEAT_X                    0x01
00227 #define NS_STYLE_BG_REPEAT_Y                    0x02
00228 #define NS_STYLE_BG_REPEAT_XY                   0x03
00229 
00230 // See nsStyleTable
00231 #define NS_STYLE_BORDER_COLLAPSE                0
00232 #define NS_STYLE_BORDER_SEPARATE                1
00233 
00234 // Possible enumerated specified values of border-*-width, used by nsCSSMargin
00235 #define NS_STYLE_BORDER_WIDTH_THIN              0
00236 #define NS_STYLE_BORDER_WIDTH_MEDIUM            1
00237 #define NS_STYLE_BORDER_WIDTH_THICK             2
00238 // XXX chopping block #define NS_STYLE_BORDER_WIDTH_LENGTH_VALUE      3
00239 
00240 // See nsStyleBorder mBorderStyle
00241 #define NS_STYLE_BORDER_STYLE_NONE              0
00242 #define NS_STYLE_BORDER_STYLE_GROOVE            1
00243 #define NS_STYLE_BORDER_STYLE_RIDGE             2
00244 #define NS_STYLE_BORDER_STYLE_DOTTED            3
00245 #define NS_STYLE_BORDER_STYLE_DASHED            4
00246 #define NS_STYLE_BORDER_STYLE_SOLID             5
00247 #define NS_STYLE_BORDER_STYLE_DOUBLE            6
00248 #define NS_STYLE_BORDER_STYLE_INSET             7
00249 #define NS_STYLE_BORDER_STYLE_OUTSET            8
00250 #define NS_STYLE_BORDER_STYLE_HIDDEN            9
00251 #define NS_STYLE_BORDER_STYLE_BG_INSET          10
00252 #define NS_STYLE_BORDER_STYLE_BG_OUTSET         11
00253 #define NS_STYLE_BORDER_STYLE_BG_SOLID          12
00254 #define NS_STYLE_BORDER_STYLE_AUTO              13 // for outline-style only
00255 // a bit ORed onto the style for table border collapsing indicating that the style was 
00256 // derived from a table with its rules attribute set
00257 #define NS_STYLE_BORDER_STYLE_RULES_MARKER      0x10  
00258 
00259 // See nsStyleDisplay
00260 #define NS_STYLE_CLEAR_NONE                     0
00261 #define NS_STYLE_CLEAR_LEFT                     1
00262 #define NS_STYLE_CLEAR_RIGHT                    2
00263 #define NS_STYLE_CLEAR_LEFT_AND_RIGHT           3
00264 #define NS_STYLE_CLEAR_LINE                     4
00265 #define NS_STYLE_CLEAR_BLOCK                    5
00266 #define NS_STYLE_CLEAR_COLUMN                   6
00267 #define NS_STYLE_CLEAR_PAGE                     7
00268 #define NS_STYLE_CLEAR_LAST_VALUE NS_STYLE_CLEAR_PAGE
00269 
00270 // See
00271 #define NS_STYLE_CONTENT_OPEN_QUOTE             0
00272 #define NS_STYLE_CONTENT_CLOSE_QUOTE            1
00273 #define NS_STYLE_CONTENT_NO_OPEN_QUOTE          2
00274 #define NS_STYLE_CONTENT_NO_CLOSE_QUOTE         3
00275 
00276 // See nsStyleColor
00277 #define NS_STYLE_CURSOR_AUTO                    1
00278 #define NS_STYLE_CURSOR_CROSSHAIR               2
00279 #define NS_STYLE_CURSOR_DEFAULT                 3    // ie: an arrow
00280 #define NS_STYLE_CURSOR_POINTER                 4    // for links
00281 #define NS_STYLE_CURSOR_MOVE                    5 
00282 #define NS_STYLE_CURSOR_E_RESIZE                6     
00283 #define NS_STYLE_CURSOR_NE_RESIZE               7      
00284 #define NS_STYLE_CURSOR_NW_RESIZE               8      
00285 #define NS_STYLE_CURSOR_N_RESIZE                9     
00286 #define NS_STYLE_CURSOR_SE_RESIZE               10      
00287 #define NS_STYLE_CURSOR_SW_RESIZE               11     
00288 #define NS_STYLE_CURSOR_S_RESIZE                12    
00289 #define NS_STYLE_CURSOR_W_RESIZE                13    
00290 #define NS_STYLE_CURSOR_TEXT                    14   // ie: i-beam
00291 #define NS_STYLE_CURSOR_WAIT                    15
00292 #define NS_STYLE_CURSOR_HELP                    16
00293 #define NS_STYLE_CURSOR_COPY                    17   // CSS3
00294 #define NS_STYLE_CURSOR_ALIAS                   18
00295 #define NS_STYLE_CURSOR_CONTEXT_MENU            19
00296 #define NS_STYLE_CURSOR_CELL                    20
00297 #define NS_STYLE_CURSOR_GRAB                    21
00298 #define NS_STYLE_CURSOR_GRABBING                22
00299 #define NS_STYLE_CURSOR_SPINNING                23
00300 #define NS_STYLE_CURSOR_MOZ_ZOOM_IN             24
00301 #define NS_STYLE_CURSOR_MOZ_ZOOM_OUT            25
00302 #define NS_STYLE_CURSOR_NOT_ALLOWED             26
00303 #define NS_STYLE_CURSOR_COL_RESIZE              27
00304 #define NS_STYLE_CURSOR_ROW_RESIZE              28
00305 #define NS_STYLE_CURSOR_NO_DROP                 29
00306 #define NS_STYLE_CURSOR_VERTICAL_TEXT           30
00307 #define NS_STYLE_CURSOR_ALL_SCROLL              31
00308 #define NS_STYLE_CURSOR_NESW_RESIZE             32
00309 #define NS_STYLE_CURSOR_NWSE_RESIZE             33
00310 #define NS_STYLE_CURSOR_NS_RESIZE               34
00311 #define NS_STYLE_CURSOR_EW_RESIZE               35
00312 
00313 // See nsStyleDisplay
00314 #define NS_STYLE_DIRECTION_LTR                  0
00315 #define NS_STYLE_DIRECTION_RTL                  1
00316 #define NS_STYLE_DIRECTION_INHERIT              2
00317 
00318 // See nsStyleDisplay
00319 #define NS_STYLE_DISPLAY_NONE                   0
00320 #define NS_STYLE_DISPLAY_BLOCK                  1
00321 #define NS_STYLE_DISPLAY_INLINE                 2
00322 #define NS_STYLE_DISPLAY_INLINE_BLOCK           3
00323 #define NS_STYLE_DISPLAY_LIST_ITEM              4
00324 #define NS_STYLE_DISPLAY_MARKER                 5
00325 #define NS_STYLE_DISPLAY_RUN_IN                 6
00326 #define NS_STYLE_DISPLAY_COMPACT                7
00327 #define NS_STYLE_DISPLAY_TABLE                  8
00328 #define NS_STYLE_DISPLAY_INLINE_TABLE           9
00329 #define NS_STYLE_DISPLAY_TABLE_ROW_GROUP        10
00330 #define NS_STYLE_DISPLAY_TABLE_COLUMN           11
00331 #define NS_STYLE_DISPLAY_TABLE_COLUMN_GROUP     12
00332 #define NS_STYLE_DISPLAY_TABLE_HEADER_GROUP     13
00333 #define NS_STYLE_DISPLAY_TABLE_FOOTER_GROUP     14
00334 #define NS_STYLE_DISPLAY_TABLE_ROW              15
00335 #define NS_STYLE_DISPLAY_TABLE_CELL             16
00336 #define NS_STYLE_DISPLAY_TABLE_CAPTION          17
00337 #define NS_STYLE_DISPLAY_BOX                    18
00338 #define NS_STYLE_DISPLAY_INLINE_BOX             19
00339 #define NS_STYLE_DISPLAY_GRID                   20
00340 #define NS_STYLE_DISPLAY_INLINE_GRID            21
00341 #define NS_STYLE_DISPLAY_GRID_GROUP             22
00342 #define NS_STYLE_DISPLAY_GRID_LINE              23
00343 #define NS_STYLE_DISPLAY_STACK                  24
00344 #define NS_STYLE_DISPLAY_INLINE_STACK           25
00345 #define NS_STYLE_DISPLAY_DECK                   26
00346 #define NS_STYLE_DISPLAY_POPUP                  27
00347 #define NS_STYLE_DISPLAY_GROUPBOX               28
00348 
00349 // See nsStyleDisplay
00350 #define NS_STYLE_FLOAT_NONE                     0
00351 #define NS_STYLE_FLOAT_LEFT                     1
00352 #define NS_STYLE_FLOAT_RIGHT                    2
00353 
00354 // See nsStyleFont
00355 #define NS_STYLE_FONT_STYLE_NORMAL              0
00356 #define NS_STYLE_FONT_STYLE_ITALIC              1
00357 #define NS_STYLE_FONT_STYLE_OBLIQUE             2
00358 
00359 // See nsStyleFont
00360 #define NS_STYLE_FONT_VARIANT_NORMAL            0
00361 #define NS_STYLE_FONT_VARIANT_SMALL_CAPS        1
00362 
00363 // See nsStyleFont
00364 #define NS_STYLE_FONT_WEIGHT_NORMAL             400
00365 #define NS_STYLE_FONT_WEIGHT_BOLD               700
00366 #define NS_STYLE_FONT_WEIGHT_BOLDER             1
00367 #define NS_STYLE_FONT_WEIGHT_LIGHTER            -1
00368 
00369 // See nsStyleFont
00370 #define NS_STYLE_FONT_SIZE_XXSMALL              0
00371 #define NS_STYLE_FONT_SIZE_XSMALL               1
00372 #define NS_STYLE_FONT_SIZE_SMALL                2
00373 #define NS_STYLE_FONT_SIZE_MEDIUM               3
00374 #define NS_STYLE_FONT_SIZE_LARGE                4
00375 #define NS_STYLE_FONT_SIZE_XLARGE               5
00376 #define NS_STYLE_FONT_SIZE_XXLARGE              6
00377 #define NS_STYLE_FONT_SIZE_XXXLARGE             7  // Only used by <font size="7">. Not specifiable in CSS.
00378 #define NS_STYLE_FONT_SIZE_LARGER               8
00379 #define NS_STYLE_FONT_SIZE_SMALLER              9
00380 
00381 // See nsStyleFont
00382 #define NS_STYLE_FONT_STRETCH_ULTRA_CONDENSED   -4
00383 #define NS_STYLE_FONT_STRETCH_EXTRA_CONDENSED   -3
00384 #define NS_STYLE_FONT_STRETCH_CONDENSED         -2
00385 #define NS_STYLE_FONT_STRETCH_SEMI_CONDENSED    -1
00386 #define NS_STYLE_FONT_STRETCH_NORMAL            0
00387 #define NS_STYLE_FONT_STRETCH_SEMI_EXPANDED     1
00388 #define NS_STYLE_FONT_STRETCH_EXPANDED          2
00389 #define NS_STYLE_FONT_STRETCH_EXTRA_EXPANDED    3
00390 #define NS_STYLE_FONT_STRETCH_ULTRA_EXPANDED    4
00391 #define NS_STYLE_FONT_STRETCH_WIDER             10
00392 #define NS_STYLE_FONT_STRETCH_NARROWER          -10
00393 
00394 // See nsStyleFont mFlags
00395 #define NS_STYLE_FONT_DEFAULT                   0x00
00396 #define NS_STYLE_FONT_FACE_MASK                 0xFF // used to flag generic fonts
00397 
00398 // See nsStyleFont - system fonts
00399 #define NS_STYLE_FONT_CAPTION                   1              // css2
00400 #define NS_STYLE_FONT_ICON                      2
00401 #define NS_STYLE_FONT_MENU                      3
00402 #define NS_STYLE_FONT_MESSAGE_BOX               4
00403 #define NS_STYLE_FONT_SMALL_CAPTION             5
00404 #define NS_STYLE_FONT_STATUS_BAR                6
00405 #define NS_STYLE_FONT_WINDOW                                                                      7             // css3
00406 #define NS_STYLE_FONT_DOCUMENT                                                             8
00407 #define NS_STYLE_FONT_WORKSPACE                                                            9
00408 #define NS_STYLE_FONT_DESKTOP                                                                     10
00409 #define NS_STYLE_FONT_INFO                                                                        11
00410 #define NS_STYLE_FONT_DIALOG                                                                      12
00411 #define NS_STYLE_FONT_BUTTON                                                                      13
00412 #define NS_STYLE_FONT_PULL_DOWN_MENU                                         14
00413 #define NS_STYLE_FONT_LIST                                                                        15
00414 #define NS_STYLE_FONT_FIELD                                                                       16
00415 
00416 // See nsStylePosition.mPosition
00417 #define NS_STYLE_POSITION_STATIC                0
00418 #define NS_STYLE_POSITION_RELATIVE              1
00419 #define NS_STYLE_POSITION_ABSOLUTE              2
00420 #define NS_STYLE_POSITION_FIXED                 3
00421 
00422 // See nsStylePosition.mClip
00423 #define NS_STYLE_CLIP_AUTO                      0x00
00424 #define NS_STYLE_CLIP_RECT                      0x01
00425 #define NS_STYLE_CLIP_TYPE_MASK                 0x0F
00426 #define NS_STYLE_CLIP_LEFT_AUTO                 0x10
00427 #define NS_STYLE_CLIP_TOP_AUTO                  0x20
00428 #define NS_STYLE_CLIP_RIGHT_AUTO                0x40
00429 #define NS_STYLE_CLIP_BOTTOM_AUTO               0x80
00430 
00431 // FRAME/FRAMESET/IFRAME specific values including backward compatibility. Boolean values with
00432 // the same meaning (e.g. 1 & yes) may need to be distinguished for correct mode processing 
00433 #define NS_STYLE_FRAME_YES                      0
00434 #define NS_STYLE_FRAME_NO                       1
00435 #define NS_STYLE_FRAME_0                        2
00436 #define NS_STYLE_FRAME_1                        3
00437 #define NS_STYLE_FRAME_ON                       4
00438 #define NS_STYLE_FRAME_OFF                      5
00439 #define NS_STYLE_FRAME_AUTO                     6
00440 #define NS_STYLE_FRAME_SCROLL                   7
00441 #define NS_STYLE_FRAME_NOSCROLL                 8
00442 
00443 // See nsStylePosition.mOverflow
00444 #define NS_STYLE_OVERFLOW_VISIBLE               0
00445 #define NS_STYLE_OVERFLOW_HIDDEN                1
00446 #define NS_STYLE_OVERFLOW_SCROLL                2
00447 #define NS_STYLE_OVERFLOW_AUTO                  3
00448 #define NS_STYLE_OVERFLOW_CLIP                  4
00449 #define NS_STYLE_OVERFLOW_SCROLLBARS_HORIZONTAL 5
00450 #define NS_STYLE_OVERFLOW_SCROLLBARS_VERTICAL   6
00451 
00452 // See nsStyleList
00453 #define NS_STYLE_LIST_STYLE_NONE                  0
00454 #define NS_STYLE_LIST_STYLE_DISC                  1
00455 #define NS_STYLE_LIST_STYLE_CIRCLE                2
00456 #define NS_STYLE_LIST_STYLE_SQUARE                3
00457 #define NS_STYLE_LIST_STYLE_DECIMAL               4
00458 #define NS_STYLE_LIST_STYLE_DECIMAL_LEADING_ZERO  5
00459 #define NS_STYLE_LIST_STYLE_LOWER_ROMAN           6
00460 #define NS_STYLE_LIST_STYLE_UPPER_ROMAN           7
00461 #define NS_STYLE_LIST_STYLE_LOWER_GREEK           8
00462 #define NS_STYLE_LIST_STYLE_LOWER_ALPHA           9
00463 #define NS_STYLE_LIST_STYLE_LOWER_LATIN           9   // == ALPHA
00464 #define NS_STYLE_LIST_STYLE_UPPER_ALPHA           10
00465 #define NS_STYLE_LIST_STYLE_UPPER_LATIN           10  // == ALPHA
00466 #define NS_STYLE_LIST_STYLE_HEBREW                11
00467 #define NS_STYLE_LIST_STYLE_ARMENIAN              12
00468 #define NS_STYLE_LIST_STYLE_GEORGIAN              13
00469 #define NS_STYLE_LIST_STYLE_CJK_IDEOGRAPHIC       14
00470 #define NS_STYLE_LIST_STYLE_HIRAGANA              15
00471 #define NS_STYLE_LIST_STYLE_KATAKANA              16
00472 #define NS_STYLE_LIST_STYLE_HIRAGANA_IROHA        17
00473 #define NS_STYLE_LIST_STYLE_KATAKANA_IROHA        18
00474 #define NS_STYLE_LIST_STYLE_OLD_LOWER_ROMAN       19
00475 #define NS_STYLE_LIST_STYLE_OLD_UPPER_ROMAN       20
00476 #define NS_STYLE_LIST_STYLE_OLD_LOWER_ALPHA       21
00477 #define NS_STYLE_LIST_STYLE_OLD_UPPER_ALPHA       22
00478 #define NS_STYLE_LIST_STYLE_OLD_DECIMAL           23
00479 #define NS_STYLE_LIST_STYLE_MOZ_CJK_HEAVENLY_STEM     24
00480 #define NS_STYLE_LIST_STYLE_MOZ_CJK_EARTHLY_BRANCH    25
00481 #define NS_STYLE_LIST_STYLE_MOZ_TRAD_CHINESE_INFORMAL 26
00482 #define NS_STYLE_LIST_STYLE_MOZ_TRAD_CHINESE_FORMAL   27
00483 #define NS_STYLE_LIST_STYLE_MOZ_SIMP_CHINESE_INFORMAL 28
00484 #define NS_STYLE_LIST_STYLE_MOZ_SIMP_CHINESE_FORMAL   29
00485 #define NS_STYLE_LIST_STYLE_MOZ_JAPANESE_INFORMAL     30
00486 #define NS_STYLE_LIST_STYLE_MOZ_JAPANESE_FORMAL       31
00487 #define NS_STYLE_LIST_STYLE_MOZ_ARABIC_INDIC          32
00488 #define NS_STYLE_LIST_STYLE_MOZ_PERSIAN               33
00489 #define NS_STYLE_LIST_STYLE_MOZ_URDU                  34 
00490 #define NS_STYLE_LIST_STYLE_MOZ_DEVANAGARI            35
00491 #define NS_STYLE_LIST_STYLE_MOZ_GURMUKHI              36
00492 #define NS_STYLE_LIST_STYLE_MOZ_GUJARATI              37
00493 #define NS_STYLE_LIST_STYLE_MOZ_ORIYA                 38
00494 #define NS_STYLE_LIST_STYLE_MOZ_KANNADA               39
00495 #define NS_STYLE_LIST_STYLE_MOZ_MALAYALAM             40
00496 #define NS_STYLE_LIST_STYLE_MOZ_BENGALI               41
00497 #define NS_STYLE_LIST_STYLE_MOZ_TAMIL                 42
00498 #define NS_STYLE_LIST_STYLE_MOZ_TELUGU                43
00499 #define NS_STYLE_LIST_STYLE_MOZ_THAI                  44
00500 #define NS_STYLE_LIST_STYLE_MOZ_LAO                   45
00501 #define NS_STYLE_LIST_STYLE_MOZ_MYANMAR               46
00502 #define NS_STYLE_LIST_STYLE_MOZ_KHMER                 47
00503 #define NS_STYLE_LIST_STYLE_MOZ_HANGUL                48
00504 #define NS_STYLE_LIST_STYLE_MOZ_HANGUL_CONSONANT      49
00505 #define NS_STYLE_LIST_STYLE_MOZ_ETHIOPIC_HALEHAME     50
00506 #define NS_STYLE_LIST_STYLE_MOZ_ETHIOPIC_NUMERIC      51
00507 #define NS_STYLE_LIST_STYLE_MOZ_ETHIOPIC_HALEHAME_AM  52
00508 #define NS_STYLE_LIST_STYLE_MOZ_ETHIOPIC_HALEHAME_TI_ER  53
00509 #define NS_STYLE_LIST_STYLE_MOZ_ETHIOPIC_HALEHAME_TI_ET  54
00510 
00511 // See nsStyleList
00512 #define NS_STYLE_LIST_STYLE_POSITION_INSIDE     0
00513 #define NS_STYLE_LIST_STYLE_POSITION_OUTSIDE    1
00514 
00515 // See nsStyleMargin
00516 #define NS_STYLE_MARGIN_SIZE_AUTO               0
00517 
00518 // See nsStyleText
00519 // 
00520 // Note: make sure the numbers are less than the numbers that start
00521 // the vertical_align values below!
00522 #define NS_STYLE_TEXT_ALIGN_DEFAULT             0
00523 #define NS_STYLE_TEXT_ALIGN_LEFT                1
00524 #define NS_STYLE_TEXT_ALIGN_RIGHT               2
00525 #define NS_STYLE_TEXT_ALIGN_CENTER              3
00526 #define NS_STYLE_TEXT_ALIGN_JUSTIFY             4
00527 #define NS_STYLE_TEXT_ALIGN_CHAR                5   //align based on a certain character, for table cell
00528 #define NS_STYLE_TEXT_ALIGN_MOZ_CENTER          6
00529 #define NS_STYLE_TEXT_ALIGN_MOZ_RIGHT           7
00530 #define NS_STYLE_TEXT_ALIGN_MOZ_LEFT            8
00531 
00532 // See nsStyleText, nsStyleFont
00533 #define NS_STYLE_TEXT_DECORATION_NONE           0
00534 #define NS_STYLE_TEXT_DECORATION_UNDERLINE      NS_FONT_DECORATION_UNDERLINE
00535 #define NS_STYLE_TEXT_DECORATION_OVERLINE       NS_FONT_DECORATION_OVERLINE
00536 #define NS_STYLE_TEXT_DECORATION_LINE_THROUGH   NS_FONT_DECORATION_LINE_THROUGH
00537 #define NS_STYLE_TEXT_DECORATION_BLINK          0x08
00538 #define NS_STYLE_TEXT_DECORATION_OVERRIDE_ALL   0x10
00539 #define NS_STYLE_TEXT_DECORATION_PREF_ANCHORS   0x20
00540 #define NS_STYLE_TEXT_DECORATION_LINES_MASK     (NS_STYLE_TEXT_DECORATION_UNDERLINE | NS_STYLE_TEXT_DECORATION_OVERLINE | NS_STYLE_TEXT_DECORATION_LINE_THROUGH)
00541 
00542 // See nsStyleText
00543 #define NS_STYLE_TEXT_TRANSFORM_NONE            0
00544 #define NS_STYLE_TEXT_TRANSFORM_CAPITALIZE      1
00545 #define NS_STYLE_TEXT_TRANSFORM_LOWERCASE       2
00546 #define NS_STYLE_TEXT_TRANSFORM_UPPERCASE       3
00547 
00548 // See nsStyleText
00549 // Note: these values pickup after the text-align values because there
00550 // are a few html cases where an object can have both types of
00551 // alignment applied with a single attribute
00552 #define NS_STYLE_VERTICAL_ALIGN_BASELINE             10
00553 #define NS_STYLE_VERTICAL_ALIGN_SUB                  11
00554 #define NS_STYLE_VERTICAL_ALIGN_SUPER                12
00555 #define NS_STYLE_VERTICAL_ALIGN_TOP                  13
00556 #define NS_STYLE_VERTICAL_ALIGN_TEXT_TOP             14
00557 #define NS_STYLE_VERTICAL_ALIGN_MIDDLE               15
00558 #define NS_STYLE_VERTICAL_ALIGN_TEXT_BOTTOM          16
00559 #define NS_STYLE_VERTICAL_ALIGN_BOTTOM               17
00560 #define NS_STYLE_VERTICAL_ALIGN_MIDDLE_WITH_BASELINE 18
00561 
00562 // See nsStyleDisplay
00563 #define NS_STYLE_VISIBILITY_HIDDEN              0
00564 #define NS_STYLE_VISIBILITY_VISIBLE             1
00565 #define NS_STYLE_VISIBILITY_COLLAPSE            2
00566 
00567 // See nsStyleText
00568 #define NS_STYLE_WHITESPACE_NORMAL              0
00569 #define NS_STYLE_WHITESPACE_PRE                 1
00570 #define NS_STYLE_WHITESPACE_NOWRAP              2
00571 #define NS_STYLE_WHITESPACE_MOZ_PRE_WRAP        3
00572 
00573 // See nsStyleText
00574 #define NS_STYLE_UNICODE_BIDI_NORMAL            0
00575 #define NS_STYLE_UNICODE_BIDI_EMBED             1
00576 #define NS_STYLE_UNICODE_BIDI_OVERRIDE          2
00577 
00578 // See nsStyleTable (here for HTML 4.0 for now, should probably change to side flags)
00579 #define NS_STYLE_TABLE_FRAME_NONE               0
00580 #define NS_STYLE_TABLE_FRAME_ABOVE              1
00581 #define NS_STYLE_TABLE_FRAME_BELOW              2
00582 #define NS_STYLE_TABLE_FRAME_HSIDES             3
00583 #define NS_STYLE_TABLE_FRAME_VSIDES             4
00584 #define NS_STYLE_TABLE_FRAME_LEFT               5
00585 #define NS_STYLE_TABLE_FRAME_RIGHT              6
00586 #define NS_STYLE_TABLE_FRAME_BOX                7
00587 #define NS_STYLE_TABLE_FRAME_BORDER             8
00588 
00589 // See nsStyleTable
00590 #define NS_STYLE_TABLE_RULES_NONE               0
00591 #define NS_STYLE_TABLE_RULES_GROUPS             1
00592 #define NS_STYLE_TABLE_RULES_ROWS               2
00593 #define NS_STYLE_TABLE_RULES_COLS               3
00594 #define NS_STYLE_TABLE_RULES_ALL                4
00595 
00596 #define NS_STYLE_TABLE_COLS_NONE                (-1)
00597 #define NS_STYLE_TABLE_COLS_ALL                 PRInt32(1 << 30)
00598 
00599 #define NS_STYLE_TABLE_LAYOUT_AUTO              0
00600 #define NS_STYLE_TABLE_LAYOUT_FIXED             1
00601 
00602 #define NS_STYLE_TABLE_EMPTY_CELLS_HIDE            0
00603 #define NS_STYLE_TABLE_EMPTY_CELLS_SHOW            1
00604 #define NS_STYLE_TABLE_EMPTY_CELLS_SHOW_BACKGROUND 2
00605 
00606 // CAPTION_SIDE uses NS_SIDE_*
00607 
00608 // constants for cell "scope" attribute
00609 #define NS_STYLE_CELL_SCOPE_ROW                 0
00610 #define NS_STYLE_CELL_SCOPE_COL                 1
00611 #define NS_STYLE_CELL_SCOPE_ROWGROUP            2
00612 #define NS_STYLE_CELL_SCOPE_COLGROUP            3
00613 
00614 // See nsStylePage
00615 #define NS_STYLE_PAGE_MARKS_NONE                0x00
00616 #define NS_STYLE_PAGE_MARKS_CROP                0x01
00617 #define NS_STYLE_PAGE_MARKS_REGISTER            0x02
00618 
00619 // See nsStylePage
00620 #define NS_STYLE_PAGE_SIZE_AUTO                 0
00621 #define NS_STYLE_PAGE_SIZE_PORTRAIT             1
00622 #define NS_STYLE_PAGE_SIZE_LANDSCAPE            2
00623 
00624 // See nsStyleBreaks
00625 #define NS_STYLE_PAGE_BREAK_AUTO                0
00626 #define NS_STYLE_PAGE_BREAK_ALWAYS              1
00627 #define NS_STYLE_PAGE_BREAK_AVOID               2
00628 #define NS_STYLE_PAGE_BREAK_LEFT                3
00629 #define NS_STYLE_PAGE_BREAK_RIGHT               4
00630 
00631 // See nsStyleColumn
00632 #define NS_STYLE_COLUMN_COUNT_AUTO              0
00633 #define NS_STYLE_COLUMN_COUNT_UNLIMITED         (-1)
00634 
00635 #ifdef MOZ_SVG
00636 // Some of our constants must map to the same values as those defined in
00637 // nsISVG{,Path,Glyph}GeometrySource.idl/
00638 // I don't want to add a dependency on the SVG module
00639 // everywhere by #include'ing nsISVG{,Path,Glyph}GeometrySource.h, so these consts
00640 // have to be kept in sync manually.
00641 
00642 // dominant-baseline
00643 #define NS_STYLE_DOMINANT_BASELINE_AUTO              0
00644 #define NS_STYLE_DOMINANT_BASELINE_USE_SCRIPT        1
00645 #define NS_STYLE_DOMINANT_BASELINE_NO_CHANGE         2
00646 #define NS_STYLE_DOMINANT_BASELINE_RESET_SIZE        3
00647 #define NS_STYLE_DOMINANT_BASELINE_IDEOGRAPHIC       4
00648 #define NS_STYLE_DOMINANT_BASELINE_ALPHABETIC        5
00649 #define NS_STYLE_DOMINANT_BASELINE_HANGING           6
00650 #define NS_STYLE_DOMINANT_BASELINE_MATHEMATICAL      7
00651 #define NS_STYLE_DOMINANT_BASELINE_CENTRAL           8
00652 #define NS_STYLE_DOMINANT_BASELINE_MIDDLE            9
00653 #define NS_STYLE_DOMINANT_BASELINE_TEXT_AFTER_EDGE  10
00654 #define NS_STYLE_DOMINANT_BASELINE_TEXT_BEFORE_EDGE 11
00655 
00656 // fill-rule
00657 #define NS_STYLE_FILL_RULE_NONZERO              0 /* == nsISVGGeometrySource::FILL_RULE_NONZERO */
00658 #define NS_STYLE_FILL_RULE_EVENODD              1 /* == nsISVGGeometrySource::FILL_RULE_EVENODD */
00659 
00660 // pointer-events
00661 #define NS_STYLE_POINTER_EVENTS_NONE            0
00662 #define NS_STYLE_POINTER_EVENTS_VISIBLEPAINTED  1
00663 #define NS_STYLE_POINTER_EVENTS_VISIBLEFILL     2
00664 #define NS_STYLE_POINTER_EVENTS_VISIBLESTROKE   3
00665 #define NS_STYLE_POINTER_EVENTS_VISIBLE         4
00666 #define NS_STYLE_POINTER_EVENTS_PAINTED         5
00667 #define NS_STYLE_POINTER_EVENTS_FILL            6
00668 #define NS_STYLE_POINTER_EVENTS_STROKE          7
00669 #define NS_STYLE_POINTER_EVENTS_ALL             8
00670 
00671 // shape-rendering
00672 #define NS_STYLE_SHAPE_RENDERING_AUTO               0 /* == nsISVGPathGeometrySource::SHAPE_RENDERING_AUTO */
00673 #define NS_STYLE_SHAPE_RENDERING_OPTIMIZESPEED      1 /* == nsISVGPathGeometrySource::SHAPE_RENDERING_OPTIMIZESPEED */
00674 #define NS_STYLE_SHAPE_RENDERING_CRISPEDGES         2 /* == nsISVGPathGeometrySource::SHAPE_RENDERING_CRISPEDGES */
00675 #define NS_STYLE_SHAPE_RENDERING_GEOMETRICPRECISION 3 /* == nsISVGPathGeometrySource::SHAPE_RENDERING_GEOMETRICPRECISION */
00676 
00677 
00678 // stroke-linecap
00679 #define NS_STYLE_STROKE_LINECAP_BUTT            0 /* == nsISVGGeometrySource::STROKE_LINECAP_BUTT */
00680 #define NS_STYLE_STROKE_LINECAP_ROUND           1 /* == nsISVGGeometrySource::STROKE_LINECAP_ROUND */
00681 #define NS_STYLE_STROKE_LINECAP_SQUARE          2 /* == nsISVGGeometrySource::STROKE_LINECAP_SQUARE */
00682 
00683 // stroke-linejoin
00684 #define NS_STYLE_STROKE_LINEJOIN_MITER          0 /* == nsISVGGeometrySource::STROKE_LINEJOIN_MITER */
00685 #define NS_STYLE_STROKE_LINEJOIN_ROUND          1 /* == nsISVGGeometrySource::STROKE_LINEJOIN_ROUND */
00686 #define NS_STYLE_STROKE_LINEJOIN_BEVEL          2 /* == nsISVGGeometrySource::STROKE_LINEJOIN_BEVEL */
00687 
00688 // text-anchor
00689 #define NS_STYLE_TEXT_ANCHOR_START              0 
00690 #define NS_STYLE_TEXT_ANCHOR_MIDDLE             1 
00691 #define NS_STYLE_TEXT_ANCHOR_END                2 
00692 
00693 // text-rendering
00694 #define NS_STYLE_TEXT_RENDERING_AUTO               0 /* == nsISVGGlyphGeometrySource::TEXT_RENDERING_AUTO */
00695 #define NS_STYLE_TEXT_RENDERING_OPTIMIZESPEED      1 /* == nsISVGG.G.S.::TEXT_RENDERING_OPTIMIZESPEED */
00696 #define NS_STYLE_TEXT_RENDERING_OPTIMIZELEGIBILITY 2 /* == nsISVGG.G.S.::TEXT_RENDERING_OPTIMIZELEGIBILITY */
00697 #define NS_STYLE_TEXT_RENDERING_GEOMETRICPRECISION 3 /* == nsISVGG.G.S.::TEXT_RENDERING_GEOMETRICPRECISION */
00698 
00699 #endif // MOZ_SVG
00700 
00701 #endif /* nsStyleConsts_h___ */