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., 51 Franklin Street, Fifth Floor, 18 * Boston, MA 02110-1301, 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 218 GTK_HTML_COMMAND_CELL_CSPAN_INC, 219 GTK_HTML_COMMAND_CELL_RSPAN_INC, 220 GTK_HTML_COMMAND_CELL_CSPAN_DEC, 221 GTK_HTML_COMMAND_CELL_RSPAN_DEC, 222 223 GTK_HTML_COMMAND_EDITABLE_ON, 224 GTK_HTML_COMMAND_EDITABLE_OFF, 225 226 GTK_HTML_COMMAND_BLOCK_SELECTION, 227 GTK_HTML_COMMAND_UNBLOCK_SELECTION, 228 229 GTK_HTML_COMMAND_IS_SELECTION_ACTIVE, 230 GTK_HTML_COMMAND_SCROLL_FORWARD, 231 GTK_HTML_COMMAND_SCROLL_BACKWARD, 232 233 GTK_HTML_COMMAND_UNSELECT_ALL 234 } GtkHTMLCommandType; 235 236 typedef enum { 237 GTK_HTML_CURSOR_SKIP_ONE, 238 GTK_HTML_CURSOR_SKIP_WORD, 239 GTK_HTML_CURSOR_SKIP_PAGE, 240 GTK_HTML_CURSOR_SKIP_ALL, 241 GTK_HTML_CURSOR_SKIP_NONE 242 } GtkHTMLCursorSkipType; 243 244 typedef enum { 245 GTK_HTML_EDITOR_EVENT_COMMAND_BEFORE, 246 GTK_HTML_EDITOR_EVENT_COMMAND_AFTER, 247 GTK_HTML_EDITOR_EVENT_IMAGE_URL, 248 GTK_HTML_EDITOR_EVENT_DELETE, 249 GTK_HTML_EDITOR_EVENT_LINK_CLICKED 250 } GtkHTMLEditorEventType; 251 252 typedef enum { 253 GTK_HTML_FONT_STYLE_SHIFT_FIRST = 3, 254 GTK_HTML_FONT_STYLE_SHIFT_BOLD = GTK_HTML_FONT_STYLE_SHIFT_FIRST, 255 GTK_HTML_FONT_STYLE_SHIFT_ITALIC, 256 GTK_HTML_FONT_STYLE_SHIFT_UNDERLINE, 257 GTK_HTML_FONT_STYLE_SHIFT_STRIKEOUT, 258 GTK_HTML_FONT_STYLE_SHIFT_FIXED, 259 GTK_HTML_FONT_STYLE_SHIFT_SUBSCRIPT, 260 GTK_HTML_FONT_STYLE_SHIFT_SUPERSCRIPT, 261 GTK_HTML_FONT_STYLE_SHIFT_LAST = GTK_HTML_FONT_STYLE_SHIFT_SUPERSCRIPT 262 } GtkHTMLFontStyleShift; 263 264 typedef enum { 265 GTK_HTML_FONT_STYLE_DEFAULT = 0, 266 GTK_HTML_FONT_STYLE_SIZE_1 = 1, 267 GTK_HTML_FONT_STYLE_SIZE_2 = 2, 268 GTK_HTML_FONT_STYLE_SIZE_3 = 3, 269 GTK_HTML_FONT_STYLE_SIZE_4 = 4, 270 GTK_HTML_FONT_STYLE_SIZE_5 = 5, 271 GTK_HTML_FONT_STYLE_SIZE_6 = 6, 272 GTK_HTML_FONT_STYLE_SIZE_7 = 7, 273 GTK_HTML_FONT_STYLE_SIZE_MASK = 0x7, 274 GTK_HTML_FONT_STYLE_BOLD = 1 << GTK_HTML_FONT_STYLE_SHIFT_BOLD, 275 GTK_HTML_FONT_STYLE_ITALIC = 1 << GTK_HTML_FONT_STYLE_SHIFT_ITALIC, 276 GTK_HTML_FONT_STYLE_UNDERLINE = 1 << GTK_HTML_FONT_STYLE_SHIFT_UNDERLINE, 277 GTK_HTML_FONT_STYLE_STRIKEOUT = 1 << GTK_HTML_FONT_STYLE_SHIFT_STRIKEOUT, 278 GTK_HTML_FONT_STYLE_FIXED = 1 << GTK_HTML_FONT_STYLE_SHIFT_FIXED, 279 GTK_HTML_FONT_STYLE_SUBSCRIPT = 1 << GTK_HTML_FONT_STYLE_SHIFT_SUBSCRIPT, 280 GTK_HTML_FONT_STYLE_SUPERSCRIPT = 1 << GTK_HTML_FONT_STYLE_SHIFT_SUPERSCRIPT 281 } GtkHTMLFontStyle; 282 283 typedef enum { 284 GTK_HTML_PARAGRAPH_ALIGNMENT_LEFT, 285 GTK_HTML_PARAGRAPH_ALIGNMENT_RIGHT, 286 GTK_HTML_PARAGRAPH_ALIGNMENT_CENTER 287 } GtkHTMLParagraphAlignment; 288 289 typedef enum { 290 GTK_HTML_PARAGRAPH_STYLE_NORMAL, 291 GTK_HTML_PARAGRAPH_STYLE_H1, 292 GTK_HTML_PARAGRAPH_STYLE_H2, 293 GTK_HTML_PARAGRAPH_STYLE_H3, 294 GTK_HTML_PARAGRAPH_STYLE_H4, 295 GTK_HTML_PARAGRAPH_STYLE_H5, 296 GTK_HTML_PARAGRAPH_STYLE_H6, 297 GTK_HTML_PARAGRAPH_STYLE_ADDRESS, 298 GTK_HTML_PARAGRAPH_STYLE_PRE, 299 GTK_HTML_PARAGRAPH_STYLE_ITEMDOTTED, 300 GTK_HTML_PARAGRAPH_STYLE_ITEMROMAN, 301 GTK_HTML_PARAGRAPH_STYLE_ITEMDIGIT, 302 GTK_HTML_PARAGRAPH_STYLE_ITEMALPHA 303 } GtkHTMLParagraphStyle; 304 305 typedef enum { 306 GTK_HTML_STREAM_OK, 307 GTK_HTML_STREAM_ERROR 308 } GtkHTMLStreamStatus; 309 310 typedef enum { 311 GTK_HTML_BEGIN_KEEP_SCROLL = 1 << 0, 312 GTK_HTML_BEGIN_KEEP_IMAGES = 1 << 1, 313 GTK_HTML_BEGIN_BLOCK_UPDATES = 1 << 2, 314 GTK_HTML_BEGIN_BLOCK_IMAGES = 1 << 3, 315 /*enable autochange content_type*/ 316 GTK_HTML_BEGIN_CHANGECONTENTTYPE = 1 << 4 317 } GtkHTMLBeginFlags; 318 #endif 319