source: trunk/third/gtkhtml3/src/htmlenums.h @ 21116

Revision 21116, 5.2 KB checked in by ghudson, 20 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r21115, which included commits to RCS files with non-trunk default branches.
Line 
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
30typedef enum {
31        BUTTON_NORMAL,
32        BUTTON_SUBMIT,
33        BUTTON_RESET
34} HTMLButtonType;
35
36typedef 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_RECALC_PI = 1 << 3,
42        HTML_CHANGE_ALL_CALC = ((HTML_CHANGE_SIZE << 1) - 1),
43        HTML_CHANGE_ALL = ((HTML_CHANGE_RECALC_PI << 1) - 1)
44} HTMLChangeFlags;
45
46typedef enum {
47        HTML_CLEAR_NONE,
48        HTML_CLEAR_LEFT,
49        HTML_CLEAR_RIGHT,
50        HTML_CLEAR_ALL,
51        HTML_CLEAR_INHERIT
52} HTMLClearType;
53
54/* Paragraph style.  Notice that the `H*' elements must be consecutive.  */
55typedef enum {
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
67} HTMLClueFlowStyle;
68
69typedef enum {
70        HTMLBgColor = 0,
71        HTMLTextColor,
72        HTMLLinkColor,
73        HTMLVLinkColor,
74        HTMLALinkColor,
75        HTMLHighlightColor,
76        HTMLHighlightTextColor,
77        HTMLHighlightNFColor,
78        HTMLHighlightTextNFColor,
79        HTMLSpellErrorColor,
80        HTMLCiteColor,
81
82        HTMLColors
83} HTMLColorId;
84
85typedef enum {
86        HTML_ENGINE_CURSOR_UP,
87        HTML_ENGINE_CURSOR_DOWN,
88        HTML_ENGINE_CURSOR_RIGHT,
89        HTML_ENGINE_CURSOR_LEFT,
90        HTML_ENGINE_CURSOR_HOME,
91        HTML_ENGINE_CURSOR_END,
92        HTML_ENGINE_CURSOR_PGUP,
93        HTML_ENGINE_CURSOR_PGDOWN
94} HTMLEngineCursorMovement;
95
96typedef enum {
97        HTML_ENGINE_SET_CLUEFLOW_NONE = 0,
98        HTML_ENGINE_SET_CLUEFLOW_STYLE = 1 << 0,
99        HTML_ENGINE_SET_CLUEFLOW_ALIGNMENT = 1 << 1,
100        HTML_ENGINE_SET_CLUEFLOW_INDENTATION = 1 << 2,
101        HTML_ENGINE_SET_CLUEFLOW_INDENTATION_DELTA = 1 << 3,
102        HTML_ENGINE_SET_CLUEFLOW_INDENTATION_ALL = 5
103} HTMLEngineSetClueFlowStyleMask;
104
105typedef enum {
106        HTML_FIT_NONE,
107        HTML_FIT_PARTIAL,
108        HTML_FIT_COMPLETE
109} HTMLFitType;
110
111typedef enum {
112        HTML_GLOSSARY_DL = 1,
113        HTML_GLOSSARY_DD = 2
114} HTMLGlossaryEntry;
115
116typedef enum {
117        HTML_HALIGN_LEFT,
118        HTML_HALIGN_CENTER,
119        HTML_HALIGN_RIGHT,
120        HTML_HALIGN_NONE
121} HTMLHAlignType;
122
123typedef enum {
124        HTML_LIST_TYPE_UNORDERED,
125        HTML_LIST_TYPE_ORDERED_ARABIC,
126        HTML_LIST_TYPE_ORDERED_LOWER_ALPHA,
127        HTML_LIST_TYPE_ORDERED_UPPER_ALPHA,
128        HTML_LIST_TYPE_ORDERED_LOWER_ROMAN,
129        HTML_LIST_TYPE_ORDERED_UPPER_ROMAN,
130        HTML_LIST_TYPE_MENU,
131        HTML_LIST_TYPE_DIR,
132        HTML_LIST_TYPE_BLOCKQUOTE,
133        HTML_LIST_TYPE_BLOCKQUOTE_CITE,
134        HTML_LIST_TYPE_GLOSSARY_DL,
135        HTML_LIST_TYPE_GLOSSARY_DD
136} HTMLListType;
137
138typedef enum {
139        HTML_OBJECT_FLAG_NONE = 0,
140        HTML_OBJECT_FLAG_SEPARATOR = 1 << 0,
141        HTML_OBJECT_FLAG_SELECTED = 1 << 2,
142        HTML_OBJECT_FLAG_ALLSELECTED = 1 << 3,
143        HTML_OBJECT_FLAG_FIXEDWIDTH = 1 << 4,
144        HTML_OBJECT_FLAG_ALIGNED = 1 << 5,
145        HTML_OBJECT_FLAG_PRINTED = 1 << 6,
146        HTML_OBJECT_FLAG_HIDDEN = 1 << 7
147} HTMLObjectFlags;
148
149typedef enum {
150        RQA_Replace,
151        RQA_ReplaceAll,
152        RQA_Next,
153        RQA_Cancel
154} HTMLReplaceQueryAnswer;
155
156/* This is a list of the HTML object classes we are using.  We use a static
157   system because (a) it's faster and (b) we don't need/want an extensible
158   object system.
159
160   If you add new HTML classes, you should (a) update this list and (b) update
161   the `html_types_init ()' function in `htmltype.c'.  */
162
163typedef enum {
164        HTML_TYPE_NONE,
165        HTML_TYPE_ANCHOR,
166        HTML_TYPE_BULLET,
167        HTML_TYPE_BUTTON,
168        HTML_TYPE_CHECKBOX,
169        HTML_TYPE_CLUE,
170        HTML_TYPE_CLUEALIGNED,
171        HTML_TYPE_CLUEFLOW,
172        HTML_TYPE_CLUEH,
173        HTML_TYPE_CLUEV,
174        HTML_TYPE_EMBEDDED,
175        HTML_TYPE_HIDDEN,
176        HTML_TYPE_HSPACE,
177        HTML_TYPE_IMAGE,
178        HTML_TYPE_IMAGEINPUT,
179        HTML_TYPE_LINKTEXT,
180        HTML_TYPE_OBJECT,
181        HTML_TYPE_RADIO,
182        HTML_TYPE_RULE,
183        HTML_TYPE_SELECT,
184        HTML_TYPE_TABLE,
185        HTML_TYPE_TABLECELL,
186        HTML_TYPE_TEXT,
187        HTML_TYPE_TEXTAREA,
188        HTML_TYPE_TEXTINPUT,
189        HTML_TYPE_TEXTSLAVE,
190        HTML_TYPE_IFRAME,
191        HTML_TYPE_FRAME,
192        HTML_TYPE_FRAMESET,
193        HTML_NUM_TYPES
194} HTMLType;
195
196typedef enum {
197        HTML_UNDO_UNDO = 0,
198        HTML_UNDO_REDO = 1,
199        HTML_UNDO_END  = 2
200} HTMLUndoDirection;
201
202typedef 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
214typedef enum {
215        HTML_VALIGN_TOP,
216        HTML_VALIGN_MIDDLE,
217        HTML_VALIGN_BOTTOM,
218        HTML_VALIGN_NONE
219} HTMLVAlignType;
220
221#endif
Note: See TracBrowser for help on using the repository browser.