1 | /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ |
---|
2 | /* |
---|
3 | Copyright (C) 2000 Helix Code, Inc. |
---|
4 | |
---|
5 | The Gnome Library is free software; you can redistribute it and/or |
---|
6 | modify it under the terms of the GNU Library General Public License as |
---|
7 | published by the Free Software Foundation; either version 2 of the |
---|
8 | License, or (at your option) any later version. |
---|
9 | |
---|
10 | The Gnome Library is distributed in the hope that it will be useful, |
---|
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
13 | Library General Public License for more details. |
---|
14 | |
---|
15 | You should have received a copy of the GNU Library General Public |
---|
16 | License along with the Gnome Library; see the file COPYING.LIB. If not, |
---|
17 | write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
---|
18 | Boston, MA 02111-1307, USA. |
---|
19 | |
---|
20 | Author: Radek Doulik <rodo@helixcode.com> |
---|
21 | |
---|
22 | */ |
---|
23 | |
---|
24 | #ifndef _GTK_HTML_ENUMS_H |
---|
25 | #define _GTK_HTML_ENUMS_H |
---|
26 | |
---|
27 | typedef enum { |
---|
28 | GTK_HTML_COMMAND_UNDO, |
---|
29 | GTK_HTML_COMMAND_REDO, |
---|
30 | GTK_HTML_COMMAND_COPY, |
---|
31 | GTK_HTML_COMMAND_COPY_AND_DISABLE_SELECTION, |
---|
32 | GTK_HTML_COMMAND_CUT, |
---|
33 | GTK_HTML_COMMAND_PASTE, |
---|
34 | |
---|
35 | GTK_HTML_COMMAND_CUT_LINE, |
---|
36 | |
---|
37 | GTK_HTML_COMMAND_INSERT_PARAGRAPH, |
---|
38 | GTK_HTML_COMMAND_INSERT_TAB, |
---|
39 | GTK_HTML_COMMAND_INSERT_RULE, |
---|
40 | GTK_HTML_COMMAND_INSERT_RULE_PARAM, |
---|
41 | GTK_HTML_COMMAND_INSERT_IMAGE_PARAM, |
---|
42 | GTK_HTML_COMMAND_INSERT_TAB_OR_INDENT_MORE, |
---|
43 | GTK_HTML_COMMAND_INSERT_TAB_OR_NEXT_CELL, |
---|
44 | |
---|
45 | GTK_HTML_COMMAND_MAKE_LINK, |
---|
46 | GTK_HTML_COMMAND_REMOVE_LINK, |
---|
47 | |
---|
48 | GTK_HTML_COMMAND_DELETE, |
---|
49 | GTK_HTML_COMMAND_DELETE_BACK, |
---|
50 | GTK_HTML_COMMAND_DELETE_BACK_OR_INDENT_DEC, |
---|
51 | |
---|
52 | GTK_HTML_COMMAND_SELECTION_MODE, |
---|
53 | GTK_HTML_COMMAND_DISABLE_SELECTION, |
---|
54 | |
---|
55 | GTK_HTML_COMMAND_BOLD_ON, |
---|
56 | GTK_HTML_COMMAND_BOLD_OFF, |
---|
57 | GTK_HTML_COMMAND_BOLD_TOGGLE, |
---|
58 | |
---|
59 | GTK_HTML_COMMAND_ITALIC_ON, |
---|
60 | GTK_HTML_COMMAND_ITALIC_OFF, |
---|
61 | GTK_HTML_COMMAND_ITALIC_TOGGLE, |
---|
62 | |
---|
63 | GTK_HTML_COMMAND_UNDERLINE_ON, |
---|
64 | GTK_HTML_COMMAND_UNDERLINE_OFF, |
---|
65 | GTK_HTML_COMMAND_UNDERLINE_TOGGLE, |
---|
66 | |
---|
67 | GTK_HTML_COMMAND_STRIKEOUT_ON, |
---|
68 | GTK_HTML_COMMAND_STRIKEOUT_OFF, |
---|
69 | GTK_HTML_COMMAND_STRIKEOUT_TOGGLE, |
---|
70 | |
---|
71 | GTK_HTML_COMMAND_SIZE_MINUS_2, |
---|
72 | GTK_HTML_COMMAND_SIZE_MINUS_1, |
---|
73 | GTK_HTML_COMMAND_SIZE_PLUS_0, |
---|
74 | GTK_HTML_COMMAND_SIZE_PLUS_1, |
---|
75 | GTK_HTML_COMMAND_SIZE_PLUS_2, |
---|
76 | GTK_HTML_COMMAND_SIZE_PLUS_3, |
---|
77 | GTK_HTML_COMMAND_SIZE_PLUS_4, |
---|
78 | |
---|
79 | GTK_HTML_COMMAND_SIZE_INCREASE, |
---|
80 | GTK_HTML_COMMAND_SIZE_DECREASE, |
---|
81 | |
---|
82 | GTK_HTML_COMMAND_ALIGN_LEFT, |
---|
83 | GTK_HTML_COMMAND_ALIGN_CENTER, |
---|
84 | GTK_HTML_COMMAND_ALIGN_RIGHT, |
---|
85 | |
---|
86 | GTK_HTML_COMMAND_INDENT_ZERO, |
---|
87 | GTK_HTML_COMMAND_INDENT_INC, |
---|
88 | GTK_HTML_COMMAND_INDENT_INC_OR_NEXT_CELL, |
---|
89 | GTK_HTML_COMMAND_INDENT_DEC, |
---|
90 | GTK_HTML_COMMAND_PREV_CELL, |
---|
91 | GTK_HTML_COMMAND_INDENT_PARAGRAPH, |
---|
92 | |
---|
93 | GTK_HTML_COMMAND_BREAK_AND_FILL_LINE, |
---|
94 | GTK_HTML_COMMAND_SPACE_AND_FILL_LINE, |
---|
95 | |
---|
96 | GTK_HTML_COMMAND_PARAGRAPH_STYLE_NORMAL, |
---|
97 | GTK_HTML_COMMAND_PARAGRAPH_STYLE_H1, |
---|
98 | GTK_HTML_COMMAND_PARAGRAPH_STYLE_H2, |
---|
99 | GTK_HTML_COMMAND_PARAGRAPH_STYLE_H3, |
---|
100 | GTK_HTML_COMMAND_PARAGRAPH_STYLE_H4, |
---|
101 | GTK_HTML_COMMAND_PARAGRAPH_STYLE_H5, |
---|
102 | GTK_HTML_COMMAND_PARAGRAPH_STYLE_H6, |
---|
103 | GTK_HTML_COMMAND_PARAGRAPH_STYLE_ADDRESS, |
---|
104 | GTK_HTML_COMMAND_PARAGRAPH_STYLE_PRE, |
---|
105 | GTK_HTML_COMMAND_PARAGRAPH_STYLE_ITEMDOTTED, |
---|
106 | GTK_HTML_COMMAND_PARAGRAPH_STYLE_ITEMROMAN, |
---|
107 | GTK_HTML_COMMAND_PARAGRAPH_STYLE_ITEMDIGIT, |
---|
108 | GTK_HTML_COMMAND_PARAGRAPH_STYLE_ITEMALPHA, |
---|
109 | |
---|
110 | GTK_HTML_COMMAND_MODIFY_SELECTION_UP, |
---|
111 | GTK_HTML_COMMAND_MODIFY_SELECTION_DOWN, |
---|
112 | GTK_HTML_COMMAND_MODIFY_SELECTION_LEFT, |
---|
113 | GTK_HTML_COMMAND_MODIFY_SELECTION_RIGHT, |
---|
114 | GTK_HTML_COMMAND_MODIFY_SELECTION_PAGEUP, |
---|
115 | GTK_HTML_COMMAND_MODIFY_SELECTION_PAGEDOWN, |
---|
116 | GTK_HTML_COMMAND_MODIFY_SELECTION_BOL, |
---|
117 | GTK_HTML_COMMAND_MODIFY_SELECTION_EOL, |
---|
118 | GTK_HTML_COMMAND_MODIFY_SELECTION_BOD, |
---|
119 | GTK_HTML_COMMAND_MODIFY_SELECTION_EOD, |
---|
120 | GTK_HTML_COMMAND_MODIFY_SELECTION_PREV_WORD, |
---|
121 | GTK_HTML_COMMAND_MODIFY_SELECTION_NEXT_WORD, |
---|
122 | |
---|
123 | GTK_HTML_COMMAND_CAPITALIZE_WORD, |
---|
124 | GTK_HTML_COMMAND_UPCASE_WORD, |
---|
125 | GTK_HTML_COMMAND_DOWNCASE_WORD, |
---|
126 | |
---|
127 | GTK_HTML_COMMAND_SPELL_SUGGEST, |
---|
128 | GTK_HTML_COMMAND_SPELL_PERSONAL_DICTIONARY_ADD, |
---|
129 | GTK_HTML_COMMAND_SPELL_SESSION_DICTIONARY_ADD, |
---|
130 | |
---|
131 | GTK_HTML_COMMAND_SEARCH, |
---|
132 | GTK_HTML_COMMAND_SEARCH_INCREMENTAL_FORWARD, |
---|
133 | GTK_HTML_COMMAND_SEARCH_INCREMENTAL_BACKWARD, |
---|
134 | GTK_HTML_COMMAND_SEARCH_REGEX, |
---|
135 | |
---|
136 | GTK_HTML_COMMAND_FOCUS_FORWARD, |
---|
137 | GTK_HTML_COMMAND_FOCUS_BACKWARD, |
---|
138 | |
---|
139 | GTK_HTML_COMMAND_POPUP_MENU, |
---|
140 | GTK_HTML_COMMAND_PROPERTIES_DIALOG, |
---|
141 | |
---|
142 | GTK_HTML_COMMAND_CURSOR_FORWARD, |
---|
143 | GTK_HTML_COMMAND_CURSOR_BACKWARD, |
---|
144 | |
---|
145 | GTK_HTML_COMMAND_INSERT_TABLE_1_1, |
---|
146 | |
---|
147 | GTK_HTML_COMMAND_TABLE_INSERT_COL_AFTER, |
---|
148 | GTK_HTML_COMMAND_TABLE_INSERT_COL_BEFORE, |
---|
149 | GTK_HTML_COMMAND_TABLE_INSERT_ROW_AFTER, |
---|
150 | GTK_HTML_COMMAND_TABLE_INSERT_ROW_BEFORE, |
---|
151 | GTK_HTML_COMMAND_TABLE_DELETE_COL, |
---|
152 | GTK_HTML_COMMAND_TABLE_DELETE_ROW, |
---|
153 | |
---|
154 | GTK_HTML_COMMAND_TABLE_CELL_INC_CSPAN, |
---|
155 | GTK_HTML_COMMAND_TABLE_CELL_DEC_CSPAN, |
---|
156 | GTK_HTML_COMMAND_TABLE_CELL_INC_RSPAN, |
---|
157 | GTK_HTML_COMMAND_TABLE_CELL_DEC_RSPAN, |
---|
158 | |
---|
159 | GTK_HTML_COMMAND_TABLE_CELL_JOIN_LEFT, |
---|
160 | GTK_HTML_COMMAND_TABLE_CELL_JOIN_RIGHT, |
---|
161 | GTK_HTML_COMMAND_TABLE_CELL_JOIN_UP, |
---|
162 | GTK_HTML_COMMAND_TABLE_CELL_JOIN_DOWN, |
---|
163 | |
---|
164 | GTK_HTML_COMMAND_TABLE_BORDER_WIDTH_INC, |
---|
165 | GTK_HTML_COMMAND_TABLE_BORDER_WIDTH_DEC, |
---|
166 | GTK_HTML_COMMAND_TABLE_BORDER_WIDTH_ZERO, |
---|
167 | |
---|
168 | GTK_HTML_COMMAND_TEXT_SET_DEFAULT_COLOR, |
---|
169 | |
---|
170 | GTK_HTML_COMMAND_SELECT_WORD, |
---|
171 | GTK_HTML_COMMAND_SELECT_LINE, |
---|
172 | GTK_HTML_COMMAND_SELECT_PARAGRAPH, |
---|
173 | GTK_HTML_COMMAND_SELECT_PARAGRAPH_EXTENDED, |
---|
174 | GTK_HTML_COMMAND_SELECT_ALL, |
---|
175 | |
---|
176 | GTK_HTML_COMMAND_CURSOR_POSITION_SAVE, |
---|
177 | GTK_HTML_COMMAND_CURSOR_POSITION_RESTORE, |
---|
178 | |
---|
179 | GTK_HTML_COMMAND_CURSOR_BOD, |
---|
180 | GTK_HTML_COMMAND_CURSOR_EOD, |
---|
181 | |
---|
182 | GTK_HTML_COMMAND_BLOCK_REDRAW, |
---|
183 | GTK_HTML_COMMAND_UNBLOCK_REDRAW, |
---|
184 | |
---|
185 | GTK_HTML_COMMAND_ZOOM_IN, |
---|
186 | GTK_HTML_COMMAND_ZOOM_OUT, |
---|
187 | GTK_HTML_COMMAND_ZOOM_RESET, |
---|
188 | |
---|
189 | GTK_HTML_COMMAND_TABLE_SPACING_INC, |
---|
190 | GTK_HTML_COMMAND_TABLE_SPACING_DEC, |
---|
191 | GTK_HTML_COMMAND_TABLE_SPACING_ZERO, |
---|
192 | |
---|
193 | GTK_HTML_COMMAND_TABLE_PADDING_INC, |
---|
194 | GTK_HTML_COMMAND_TABLE_PADDING_DEC, |
---|
195 | GTK_HTML_COMMAND_TABLE_PADDING_ZERO, |
---|
196 | |
---|
197 | GTK_HTML_COMMAND_DELETE_TABLE, |
---|
198 | GTK_HTML_COMMAND_DELETE_TABLE_ROW, |
---|
199 | GTK_HTML_COMMAND_DELETE_TABLE_COLUMN, |
---|
200 | GTK_HTML_COMMAND_DELETE_TABLE_CELL_CONTENTS, |
---|
201 | |
---|
202 | GTK_HTML_COMMAND_GRAB_FOCUS, |
---|
203 | |
---|
204 | GTK_HTML_COMMAND_KILL_WORD, |
---|
205 | GTK_HTML_COMMAND_KILL_WORD_BACKWARD, |
---|
206 | |
---|
207 | GTK_HTML_COMMAND_TEXT_COLOR_APPLY, |
---|
208 | |
---|
209 | GTK_HTML_COMMAND_SAVE_DATA_ON, |
---|
210 | GTK_HTML_COMMAND_SAVE_DATA_OFF, |
---|
211 | |
---|
212 | GTK_HTML_COMMAND_SAVED, |
---|
213 | GTK_HTML_COMMAND_IS_SAVED, |
---|
214 | |
---|
215 | GTK_HTML_COMMAND_SCROLL_BOD, |
---|
216 | GTK_HTML_COMMAND_SCROLL_EOD, |
---|
217 | } GtkHTMLCommandType; |
---|
218 | |
---|
219 | typedef enum { |
---|
220 | GTK_HTML_CURSOR_SKIP_ONE, |
---|
221 | GTK_HTML_CURSOR_SKIP_WORD, |
---|
222 | GTK_HTML_CURSOR_SKIP_PAGE, |
---|
223 | GTK_HTML_CURSOR_SKIP_ALL |
---|
224 | } GtkHTMLCursorSkipType; |
---|
225 | |
---|
226 | typedef enum { |
---|
227 | GTK_HTML_EDITOR_EVENT_COMMAND_BEFORE, |
---|
228 | GTK_HTML_EDITOR_EVENT_COMMAND_AFTER, |
---|
229 | GTK_HTML_EDITOR_EVENT_IMAGE_URL, |
---|
230 | GTK_HTML_EDITOR_EVENT_DELETE |
---|
231 | } GtkHTMLEditorEventType; |
---|
232 | |
---|
233 | typedef enum { |
---|
234 | GTK_HTML_ETCH_IN, |
---|
235 | GTK_HTML_ETCH_OUT, |
---|
236 | GTK_HTML_ETCH_NONE |
---|
237 | } GtkHTMLEtchStyle; |
---|
238 | |
---|
239 | typedef enum { |
---|
240 | GTK_HTML_FONT_STYLE_SHIFT_FIRST = 3, |
---|
241 | GTK_HTML_FONT_STYLE_SHIFT_BOLD = GTK_HTML_FONT_STYLE_SHIFT_FIRST, |
---|
242 | GTK_HTML_FONT_STYLE_SHIFT_ITALIC, |
---|
243 | GTK_HTML_FONT_STYLE_SHIFT_UNDERLINE, |
---|
244 | GTK_HTML_FONT_STYLE_SHIFT_STRIKEOUT, |
---|
245 | GTK_HTML_FONT_STYLE_SHIFT_FIXED, |
---|
246 | GTK_HTML_FONT_STYLE_SHIFT_SUBSCRIPT, |
---|
247 | GTK_HTML_FONT_STYLE_SHIFT_SUPERSCRIPT, |
---|
248 | GTK_HTML_FONT_STYLE_SHIFT_LAST = GTK_HTML_FONT_STYLE_SHIFT_SUPERSCRIPT, |
---|
249 | } GtkHTMLFontStyleShift; |
---|
250 | |
---|
251 | typedef enum { |
---|
252 | GTK_HTML_FONT_STYLE_DEFAULT = 0, |
---|
253 | GTK_HTML_FONT_STYLE_SIZE_1 = 1, |
---|
254 | GTK_HTML_FONT_STYLE_SIZE_2 = 2, |
---|
255 | GTK_HTML_FONT_STYLE_SIZE_3 = 3, |
---|
256 | GTK_HTML_FONT_STYLE_SIZE_4 = 4, |
---|
257 | GTK_HTML_FONT_STYLE_SIZE_5 = 5, |
---|
258 | GTK_HTML_FONT_STYLE_SIZE_6 = 6, |
---|
259 | GTK_HTML_FONT_STYLE_SIZE_7 = 7, |
---|
260 | GTK_HTML_FONT_STYLE_SIZE_MASK = 0x7, |
---|
261 | GTK_HTML_FONT_STYLE_BOLD = 1 << GTK_HTML_FONT_STYLE_SHIFT_BOLD, |
---|
262 | GTK_HTML_FONT_STYLE_ITALIC = 1 << GTK_HTML_FONT_STYLE_SHIFT_ITALIC, |
---|
263 | GTK_HTML_FONT_STYLE_UNDERLINE = 1 << GTK_HTML_FONT_STYLE_SHIFT_UNDERLINE, |
---|
264 | GTK_HTML_FONT_STYLE_STRIKEOUT = 1 << GTK_HTML_FONT_STYLE_SHIFT_STRIKEOUT, |
---|
265 | GTK_HTML_FONT_STYLE_FIXED = 1 << GTK_HTML_FONT_STYLE_SHIFT_FIXED, |
---|
266 | GTK_HTML_FONT_STYLE_SUBSCRIPT = 1 << GTK_HTML_FONT_STYLE_SHIFT_SUBSCRIPT, |
---|
267 | GTK_HTML_FONT_STYLE_SUPERSCRIPT = 1 << GTK_HTML_FONT_STYLE_SHIFT_SUPERSCRIPT, |
---|
268 | } GtkHTMLFontStyle; |
---|
269 | |
---|
270 | typedef enum { |
---|
271 | GTK_HTML_PARAGRAPH_ALIGNMENT_LEFT, |
---|
272 | GTK_HTML_PARAGRAPH_ALIGNMENT_RIGHT, |
---|
273 | GTK_HTML_PARAGRAPH_ALIGNMENT_CENTER |
---|
274 | } GtkHTMLParagraphAlignment; |
---|
275 | |
---|
276 | typedef enum { |
---|
277 | GTK_HTML_PARAGRAPH_STYLE_NORMAL, |
---|
278 | GTK_HTML_PARAGRAPH_STYLE_H1, |
---|
279 | GTK_HTML_PARAGRAPH_STYLE_H2, |
---|
280 | GTK_HTML_PARAGRAPH_STYLE_H3, |
---|
281 | GTK_HTML_PARAGRAPH_STYLE_H4, |
---|
282 | GTK_HTML_PARAGRAPH_STYLE_H5, |
---|
283 | GTK_HTML_PARAGRAPH_STYLE_H6, |
---|
284 | GTK_HTML_PARAGRAPH_STYLE_ADDRESS, |
---|
285 | GTK_HTML_PARAGRAPH_STYLE_PRE, |
---|
286 | GTK_HTML_PARAGRAPH_STYLE_ITEMDOTTED, |
---|
287 | GTK_HTML_PARAGRAPH_STYLE_ITEMROMAN, |
---|
288 | GTK_HTML_PARAGRAPH_STYLE_ITEMDIGIT, |
---|
289 | GTK_HTML_PARAGRAPH_STYLE_ITEMALPHA |
---|
290 | } GtkHTMLParagraphStyle; |
---|
291 | |
---|
292 | typedef enum { |
---|
293 | GTK_HTML_STREAM_OK, |
---|
294 | GTK_HTML_STREAM_ERROR |
---|
295 | } GtkHTMLStreamStatus; |
---|
296 | |
---|
297 | #endif |
---|