1 | /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ |
---|
2 | /* |
---|
3 | Copyright (C) 2000 Helix Code, Inc. |
---|
4 | Copyright (C) 2001 Ximian, Inc. |
---|
5 | |
---|
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. |
---|
10 | |
---|
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. |
---|
15 | |
---|
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., 59 Temple Place - Suite 330, |
---|
19 | Boston, MA 02111-1307, USA. |
---|
20 | |
---|
21 | Author: Radek Doulik <rodo@ximian.com> |
---|
22 | |
---|
23 | */ |
---|
24 | |
---|
25 | #ifndef _HTML_ENUMS_H |
---|
26 | #define _HTML_ENUMS_H |
---|
27 | |
---|
28 | #define MAX_WIDGET_WIDTH 32000 |
---|
29 | |
---|
30 | typedef enum { |
---|
31 | BUTTON_NORMAL, |
---|
32 | BUTTON_SUBMIT, |
---|
33 | BUTTON_RESET |
---|
34 | } HTMLButtonType; |
---|
35 | |
---|
36 | typedef enum { |
---|
37 | HTML_CHANGE_NONE = 0, |
---|
38 | HTML_CHANGE_MIN_WIDTH = 1 << 0, |
---|
39 | HTML_CHANGE_PREF_WIDTH = 1 << 1, |
---|
40 | HTML_CHANGE_SIZE = 1 << 2, |
---|
41 | HTML_CHANGE_WORD_WIDTH = 1 << 3, |
---|
42 | HTML_CHANGE_ALL_CALC = ((HTML_CHANGE_SIZE << 1) - 1), |
---|
43 | HTML_CHANGE_ALL = ((HTML_CHANGE_WORD_WIDTH << 1) - 1) |
---|
44 | } HTMLChangeFlags; |
---|
45 | |
---|
46 | typedef enum { |
---|
47 | HTML_CLEAR_NONE, |
---|
48 | HTML_CLEAR_LEFT, |
---|
49 | HTML_CLEAR_RIGHT, |
---|
50 | HTML_CLEAR_ALL |
---|
51 | } HTMLClearType; |
---|
52 | |
---|
53 | /* Paragraph style. Notice that the `H*' elements must be consecutive. */ |
---|
54 | typedef enum { |
---|
55 | HTML_CLUEFLOW_STYLE_NORMAL, |
---|
56 | HTML_CLUEFLOW_STYLE_H1, |
---|
57 | HTML_CLUEFLOW_STYLE_H2, |
---|
58 | HTML_CLUEFLOW_STYLE_H3, |
---|
59 | HTML_CLUEFLOW_STYLE_H4, |
---|
60 | HTML_CLUEFLOW_STYLE_H5, |
---|
61 | HTML_CLUEFLOW_STYLE_H6, |
---|
62 | HTML_CLUEFLOW_STYLE_ADDRESS, |
---|
63 | HTML_CLUEFLOW_STYLE_PRE, |
---|
64 | HTML_CLUEFLOW_STYLE_LIST_ITEM, |
---|
65 | HTML_CLUEFLOW_NUMSTYLES |
---|
66 | } HTMLClueFlowStyle; |
---|
67 | |
---|
68 | typedef enum { |
---|
69 | HTMLBgColor = 0, |
---|
70 | HTMLTextColor, |
---|
71 | HTMLLinkColor, |
---|
72 | HTMLVLinkColor, |
---|
73 | HTMLALinkColor, |
---|
74 | HTMLHighlightColor, |
---|
75 | HTMLHighlightTextColor, |
---|
76 | HTMLHighlightNFColor, |
---|
77 | HTMLHighlightTextNFColor, |
---|
78 | HTMLSpellErrorColor, |
---|
79 | |
---|
80 | HTMLColors |
---|
81 | } HTMLColorId; |
---|
82 | |
---|
83 | typedef enum { |
---|
84 | HTML_ENGINE_CURSOR_UP, |
---|
85 | HTML_ENGINE_CURSOR_DOWN, |
---|
86 | HTML_ENGINE_CURSOR_RIGHT, |
---|
87 | HTML_ENGINE_CURSOR_LEFT, |
---|
88 | HTML_ENGINE_CURSOR_HOME, |
---|
89 | HTML_ENGINE_CURSOR_END, |
---|
90 | HTML_ENGINE_CURSOR_PGUP, |
---|
91 | HTML_ENGINE_CURSOR_PGDOWN |
---|
92 | } HTMLEngineCursorMovement; |
---|
93 | |
---|
94 | typedef enum { |
---|
95 | HTML_ENGINE_SET_CLUEFLOW_NONE = 0, |
---|
96 | HTML_ENGINE_SET_CLUEFLOW_STYLE = 1 << 0, |
---|
97 | HTML_ENGINE_SET_CLUEFLOW_ALIGNMENT = 1 << 1, |
---|
98 | HTML_ENGINE_SET_CLUEFLOW_INDENTATION = 1 << 2, |
---|
99 | HTML_ENGINE_SET_CLUEFLOW_INDENTATION_DELTA = 1 << 3, |
---|
100 | HTML_ENGINE_SET_CLUEFLOW_INDENTATION_ALL = 5 |
---|
101 | } HTMLEngineSetClueFlowStyleMask; |
---|
102 | |
---|
103 | typedef enum { |
---|
104 | HTML_FIT_NONE, |
---|
105 | HTML_FIT_PARTIAL, |
---|
106 | HTML_FIT_COMPLETE |
---|
107 | } HTMLFitType; |
---|
108 | |
---|
109 | typedef enum { |
---|
110 | HTML_GLOSSARY_DL = 1, |
---|
111 | HTML_GLOSSARY_DD = 2 |
---|
112 | } HTMLGlossaryEntry; |
---|
113 | |
---|
114 | typedef enum { |
---|
115 | HTML_HALIGN_LEFT, |
---|
116 | HTML_HALIGN_CENTER, |
---|
117 | HTML_HALIGN_RIGHT, |
---|
118 | HTML_HALIGN_NONE |
---|
119 | } HTMLHAlignType; |
---|
120 | |
---|
121 | typedef enum { |
---|
122 | HTML_LIST_TYPE_UNORDERED, |
---|
123 | HTML_LIST_TYPE_ORDERED_ARABIC, |
---|
124 | HTML_LIST_TYPE_ORDERED_LOWER_ALPHA, |
---|
125 | HTML_LIST_TYPE_ORDERED_UPPER_ALPHA, |
---|
126 | HTML_LIST_TYPE_ORDERED_LOWER_ROMAN, |
---|
127 | HTML_LIST_TYPE_ORDERED_UPPER_ROMAN, |
---|
128 | HTML_LIST_TYPE_MENU, |
---|
129 | HTML_LIST_TYPE_DIR, |
---|
130 | HTML_LIST_TYPE_BLOCKQUOTE, |
---|
131 | HTML_LIST_TYPE_BLOCKQUOTE_CITE, |
---|
132 | HTML_LIST_TYPE_GLOSSARY_DL, |
---|
133 | HTML_LIST_TYPE_GLOSSARY_DD |
---|
134 | } HTMLListType; |
---|
135 | |
---|
136 | typedef enum { |
---|
137 | HTML_OBJECT_FLAG_NONE = 0, |
---|
138 | HTML_OBJECT_FLAG_SEPARATOR = 1 << 0, |
---|
139 | HTML_OBJECT_FLAG_NEWLINE = 1 << 1, |
---|
140 | HTML_OBJECT_FLAG_SELECTED = 1 << 2, |
---|
141 | HTML_OBJECT_FLAG_ALLSELECTED = 1 << 3, |
---|
142 | HTML_OBJECT_FLAG_FIXEDWIDTH = 1 << 4, |
---|
143 | HTML_OBJECT_FLAG_ALIGNED = 1 << 5, |
---|
144 | HTML_OBJECT_FLAG_PRINTED = 1 << 6, |
---|
145 | HTML_OBJECT_FLAG_HIDDEN = 1 << 7 |
---|
146 | } HTMLObjectFlags; |
---|
147 | |
---|
148 | typedef enum { |
---|
149 | RQA_Replace, |
---|
150 | RQA_ReplaceAll, |
---|
151 | RQA_Next, |
---|
152 | RQA_Cancel |
---|
153 | } HTMLReplaceQueryAnswer; |
---|
154 | |
---|
155 | /* This is a list of the HTML object classes we are using. We use a static |
---|
156 | system because (a) it's faster and (b) we don't need/want an extensible |
---|
157 | object system. |
---|
158 | |
---|
159 | If you add new HTML classes, you should (a) update this list and (b) update |
---|
160 | the `html_types_init ()' function in `htmltype.c'. */ |
---|
161 | |
---|
162 | typedef enum { |
---|
163 | HTML_TYPE_NONE, |
---|
164 | HTML_TYPE_ANCHOR, |
---|
165 | HTML_TYPE_BULLET, |
---|
166 | HTML_TYPE_BUTTON, |
---|
167 | HTML_TYPE_CHECKBOX, |
---|
168 | HTML_TYPE_CLUE, |
---|
169 | HTML_TYPE_CLUEALIGNED, |
---|
170 | HTML_TYPE_CLUEFLOW, |
---|
171 | HTML_TYPE_CLUEH, |
---|
172 | HTML_TYPE_CLUEV, |
---|
173 | HTML_TYPE_EMBEDDED, |
---|
174 | HTML_TYPE_HIDDEN, |
---|
175 | HTML_TYPE_HSPACE, |
---|
176 | HTML_TYPE_IMAGE, |
---|
177 | HTML_TYPE_IMAGEINPUT, |
---|
178 | HTML_TYPE_LINKTEXT, |
---|
179 | HTML_TYPE_OBJECT, |
---|
180 | HTML_TYPE_RADIO, |
---|
181 | HTML_TYPE_RULE, |
---|
182 | HTML_TYPE_SELECT, |
---|
183 | HTML_TYPE_TABLE, |
---|
184 | HTML_TYPE_TABLECELL, |
---|
185 | HTML_TYPE_TEXT, |
---|
186 | HTML_TYPE_TEXTAREA, |
---|
187 | HTML_TYPE_TEXTINPUT, |
---|
188 | HTML_TYPE_TEXTSLAVE, |
---|
189 | HTML_TYPE_VSPACE, |
---|
190 | HTML_TYPE_IFRAME, |
---|
191 | HTML_TYPE_FRAME, |
---|
192 | HTML_TYPE_FRAMESET, |
---|
193 | HTML_NUM_TYPES |
---|
194 | } HTMLType; |
---|
195 | |
---|
196 | typedef enum { |
---|
197 | HTML_UNDO_UNDO = 0, |
---|
198 | HTML_UNDO_REDO = 1, |
---|
199 | HTML_UNDO_END = 2 |
---|
200 | } HTMLUndoDirection; |
---|
201 | |
---|
202 | typedef enum { |
---|
203 | HTML_URL_DUP_ALL = 0, |
---|
204 | HTML_URL_DUP_NOPROTOCOL = 1 << 0, |
---|
205 | HTML_URL_DUP_NOUSERNAME = 1 << 1, |
---|
206 | HTML_URL_DUP_NOPASSWORD = 1 << 2, |
---|
207 | HTML_URL_DUP_NOHOSTNAME = 1 << 3, |
---|
208 | HTML_URL_DUP_NOPORT = 1 << 4, |
---|
209 | HTML_URL_DUP_NOPATH = 1 << 5, |
---|
210 | HTML_URL_DUP_NOREFERENCE = 1 << 6, |
---|
211 | HTML_URL_DUP_NOCGIARGS = 1 << 7 |
---|
212 | } HTMLURLDupFlags; |
---|
213 | |
---|
214 | typedef enum { |
---|
215 | HTML_VALIGN_TOP, |
---|
216 | HTML_VALIGN_MIDDLE, |
---|
217 | HTML_VALIGN_BOTTOM, |
---|
218 | HTML_VALIGN_NONE |
---|
219 | } HTMLVAlignType; |
---|
220 | |
---|
221 | typedef enum { |
---|
222 | HTML_FONT_MANAGER_ID_FIRST = 0, |
---|
223 | HTML_FONT_MANAGER_ID_GDK = 0, |
---|
224 | HTML_FONT_MANAGER_ID_PLAIN, |
---|
225 | HTML_FONT_MANAGER_ID_PRINTER, |
---|
226 | HTML_FONT_MANAGER_ID_N, |
---|
227 | } HTMLFontManagerId; |
---|
228 | |
---|
229 | #endif |
---|