1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
3 * Copyright (C) 2000 Helix Code, Inc.
4 * Copyright (C) 2001 Ximian, Inc.
6 * The Gnome Library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public License as
8 * published by the Free Software Foundation; either version 2 of the
9 * License, or (at your option) any later version.
11 * The Gnome Library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
16 * You should have received a copy of the GNU Library General Public
17 * License along with the Gnome Library; see the file COPYING.LIB. If not,
18 * write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
21 * Author: Radek Doulik <rodo@ximian.com>
28 #define MAX_WIDGET_WIDTH 32000
38 HTML_CHANGE_MIN_WIDTH
= 1 << 0,
39 HTML_CHANGE_PREF_WIDTH
= 1 << 1,
40 HTML_CHANGE_SIZE
= 1 << 2,
41 HTML_CHANGE_RECALC_PI
= 1 << 3,
42 HTML_CHANGE_ALL_CALC
= ((HTML_CHANGE_SIZE
<< 1) - 1),
43 HTML_CHANGE_ALL
= ((HTML_CHANGE_RECALC_PI
<< 1) - 1)
54 /* Paragraph style. Notice that the `H*' elements must be consecutive. */
56 HTML_CLUEFLOW_STYLE_NORMAL
,
57 HTML_CLUEFLOW_STYLE_H1
,
58 HTML_CLUEFLOW_STYLE_H2
,
59 HTML_CLUEFLOW_STYLE_H3
,
60 HTML_CLUEFLOW_STYLE_H4
,
61 HTML_CLUEFLOW_STYLE_H5
,
62 HTML_CLUEFLOW_STYLE_H6
,
63 HTML_CLUEFLOW_STYLE_ADDRESS
,
64 HTML_CLUEFLOW_STYLE_PRE
,
65 HTML_CLUEFLOW_STYLE_LIST_ITEM
,
66 HTML_CLUEFLOW_NUMSTYLES
76 HTMLHighlightTextColor
,
78 HTMLHighlightTextNFColor
,
86 HTML_DIRECTION_DERIVED
,
92 HTML_ENGINE_CURSOR_UP
,
93 HTML_ENGINE_CURSOR_DOWN
,
94 HTML_ENGINE_CURSOR_RIGHT
,
95 HTML_ENGINE_CURSOR_LEFT
,
96 HTML_ENGINE_CURSOR_HOME
,
97 HTML_ENGINE_CURSOR_END
,
98 HTML_ENGINE_CURSOR_PGUP
,
99 HTML_ENGINE_CURSOR_PGDOWN
100 } HTMLEngineCursorMovement
;
103 HTML_ENGINE_SET_CLUEFLOW_NONE
= 0,
104 HTML_ENGINE_SET_CLUEFLOW_STYLE
= 1 << 0,
105 HTML_ENGINE_SET_CLUEFLOW_ALIGNMENT
= 1 << 1,
106 HTML_ENGINE_SET_CLUEFLOW_INDENTATION
= 1 << 2,
107 HTML_ENGINE_SET_CLUEFLOW_INDENTATION_DELTA
= 1 << 3,
108 HTML_ENGINE_SET_CLUEFLOW_INDENTATION_ALL
= 5
109 } HTMLEngineSetClueFlowStyleMask
;
118 HTML_GLOSSARY_DL
= 1,
130 HTML_LIST_TYPE_UNORDERED
,
131 HTML_LIST_TYPE_ORDERED_ARABIC
,
132 HTML_LIST_TYPE_ORDERED_LOWER_ALPHA
,
133 HTML_LIST_TYPE_ORDERED_UPPER_ALPHA
,
134 HTML_LIST_TYPE_ORDERED_LOWER_ROMAN
,
135 HTML_LIST_TYPE_ORDERED_UPPER_ROMAN
,
138 HTML_LIST_TYPE_BLOCKQUOTE
,
139 HTML_LIST_TYPE_BLOCKQUOTE_CITE
,
140 HTML_LIST_TYPE_GLOSSARY_DL
,
141 HTML_LIST_TYPE_GLOSSARY_DD
,
142 HTML_LIST_TYPE_CIRCLE
,
144 HTML_LIST_TYPE_SQUARE
148 HTML_OBJECT_FLAG_NONE
= 0,
149 HTML_OBJECT_FLAG_SEPARATOR
= 1 << 0,
150 HTML_OBJECT_FLAG_SELECTED
= 1 << 2,
151 HTML_OBJECT_FLAG_ALLSELECTED
= 1 << 3,
152 HTML_OBJECT_FLAG_FIXEDWIDTH
= 1 << 4,
153 HTML_OBJECT_FLAG_ALIGNED
= 1 << 5,
154 HTML_OBJECT_FLAG_PRINTED
= 1 << 6,
155 HTML_OBJECT_FLAG_HIDDEN
= 1 << 7
163 } HTMLReplaceQueryAnswer
;
165 /* This is a list of the HTML object classes we are using. We use a static
166 * system because (a) it's faster and (b) we don't need/want an extensible
169 * If you add new HTML classes, you should (a) update this list and (b) update
170 * the `html_types_init ()' function in `htmltype.c'. */
179 HTML_TYPE_CLUEALIGNED
,
187 HTML_TYPE_IMAGEINPUT
,
212 HTML_URL_DUP_ALL
= 0,
213 HTML_URL_DUP_NOPROTOCOL
= 1 << 0,
214 HTML_URL_DUP_NOUSERNAME
= 1 << 1,
215 HTML_URL_DUP_NOPASSWORD
= 1 << 2,
216 HTML_URL_DUP_NOHOSTNAME
= 1 << 3,
217 HTML_URL_DUP_NOPORT
= 1 << 4,
218 HTML_URL_DUP_NOPATH
= 1 << 5,
219 HTML_URL_DUP_NOREFERENCE
= 1 << 6,
220 HTML_URL_DUP_NOCGIARGS
= 1 << 7
234 DISPLAY_INLINE_BLOCK
,
239 DISPLAY_TABLE_ROW_GROUP
,
240 DISPLAY_TABLE_COLUMN
,
241 DISPLAY_TABLE_COLUMN_GROUP
,
242 DISPLAY_TABLE_HEADER_GROUP
,
243 DISPLAY_TABLE_FOOTER_GROUP
,
246 DISPLAY_TABLE_CAPTION
,
247 DISPLAY_INLINE_TABLE
,
253 HTML_WHITE_SPACE_NORMAL
,
254 HTML_WHITE_SPACE_PRE
,
255 HTML_WHITE_SPACE_NOWRAP
,
256 HTML_WHITE_SPACE_PRE_WRAP
,
257 HTML_WHITE_SPACE_PRE_LINE
,
258 HTML_WHITE_SPACE_INHERIT
259 } HTMLWhiteSpaceType
;
262 HTML_LENGTH_TYPE_PIXELS
,
263 HTML_LENGTH_TYPE_PERCENT
,
264 HTML_LENGTH_TYPE_FRACTION
275 HTML_TEXT_SLAVE_GLYPH_ITEM_CREATED
,
276 HTML_TEXT_SLAVE_GLYPH_ITEM_PARENTAL
277 } HTMLTextSlaveGlyphItemType
;