1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ |
---|
2 | /* This file is part of the GtkHTML library |
---|
3 | |
---|
4 | Copyright (C) 2000 Helix Code, Inc. |
---|
5 | Author: Radek Doulik <rodo@helixcode.com> |
---|
6 | |
---|
7 | This library is free software; you can redistribute it and/or |
---|
8 | modify it under the terms of the GNU Library General Public |
---|
9 | License as published by the Free Software Foundation; either |
---|
10 | version 2 of the License, or (at your option) any later version. |
---|
11 | |
---|
12 | This library is distributed in the hope that it will be useful, |
---|
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
14 | MERCHcANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
15 | Library General Public License for more details. |
---|
16 | |
---|
17 | You should have received a copy of the GNU Library General Public License |
---|
18 | along with this library; see the file COPYING.LIB. If not, write to |
---|
19 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
---|
20 | Boston, MA 02111-1307, USA. |
---|
21 | */ |
---|
22 | |
---|
23 | #ifndef _HTML_TYPES_H_ |
---|
24 | #define _HTML_TYPES_H_ |
---|
25 | |
---|
26 | #include <glib.h> |
---|
27 | |
---|
28 | #include "gtkhtml-enums.h" |
---|
29 | #include "gtkhtml-types.h" |
---|
30 | |
---|
31 | #include "htmlenums.h" |
---|
32 | |
---|
33 | #define HTML_CHECK_TYPE(object, otype) ((object) \ |
---|
34 | && (HTML_OBJECT (object))->klass \ |
---|
35 | && (HTML_OBJECT (object))->klass->type == otype) |
---|
36 | |
---|
37 | typedef struct _HTMLAnchor HTMLAnchor; |
---|
38 | typedef struct _HTMLAnchorClass HTMLAnchorClass; |
---|
39 | typedef struct _HTMLBlockStackElement HTMLBlockStackElement; |
---|
40 | typedef struct _HTMLButton HTMLButton; |
---|
41 | typedef struct _HTMLButtonClass HTMLButtonClass; |
---|
42 | typedef struct _HTMLCheckBox HTMLCheckBox; |
---|
43 | typedef struct _HTMLCheckBoxClass HTMLCheckBoxClass; |
---|
44 | typedef struct _HTMLClue HTMLClue; |
---|
45 | typedef struct _HTMLClueAligned HTMLClueAligned; |
---|
46 | typedef struct _HTMLClueAlignedClass HTMLClueAlignedClass; |
---|
47 | typedef struct _HTMLClueClass HTMLClueClass; |
---|
48 | typedef struct _HTMLClueFlow HTMLClueFlow; |
---|
49 | typedef struct _HTMLClueFlowClass HTMLClueFlowClass; |
---|
50 | typedef struct _HTMLClueH HTMLClueH; |
---|
51 | typedef struct _HTMLClueHClass HTMLClueHClass; |
---|
52 | typedef struct _HTMLClueV HTMLClueV; |
---|
53 | typedef struct _HTMLClueVClass HTMLClueVClass; |
---|
54 | typedef struct _HTMLColor HTMLColor; |
---|
55 | typedef struct _HTMLColorSet HTMLColorSet; |
---|
56 | typedef struct _HTMLCursor HTMLCursor; |
---|
57 | typedef struct _HTMLCursorRectagle HTMLCursorRectangle; |
---|
58 | typedef struct _HTMLDrawQueue HTMLDrawQueue; |
---|
59 | typedef struct _HTMLDrawQueueClearElement HTMLDrawQueueClearElement; |
---|
60 | typedef struct _HTMLEmbedded HTMLEmbedded; |
---|
61 | typedef struct _HTMLEmbeddedClass HTMLEmbeddedClass; |
---|
62 | typedef struct _HTMLEngine HTMLEngine; |
---|
63 | typedef struct _HTMLEngineClass HTMLEngineClass; |
---|
64 | typedef struct _HTMLEngineEditSelectionUpdater HTMLEngineEditSelectionUpdater; |
---|
65 | typedef struct _HTMLEngineSaveState HTMLEngineSaveState; |
---|
66 | typedef gchar HTMLFontFace; |
---|
67 | typedef struct _HTMLFont HTMLFont; |
---|
68 | typedef struct _HTMLFontManager HTMLFontManager; |
---|
69 | typedef struct _HTMLFontSet HTMLFontSet; |
---|
70 | typedef struct _HTMLForm HTMLForm; |
---|
71 | typedef struct _HTMLFrame HTMLFrame; |
---|
72 | typedef struct _HTMLFrameClass HTMLFrameClass; |
---|
73 | typedef struct _HTMLFrameset HTMLFrameset; |
---|
74 | typedef struct _HTMLFramesetClass HTMLFramesetClass; |
---|
75 | typedef struct _HTMLGdkPainter HTMLGdkPainter; |
---|
76 | typedef struct _HTMLGdkPainterClass HTMLGdkPainterClass; |
---|
77 | typedef struct _HTMLHidden HTMLHidden; |
---|
78 | typedef struct _HTMLHiddenClass HTMLHiddenClass; |
---|
79 | typedef struct _HTMLHSpace HTMLHSpace; |
---|
80 | typedef struct _HTMLHSpaceClass HTMLHSpaceClass; |
---|
81 | typedef struct _HTMLIFrame HTMLIFrame; |
---|
82 | typedef struct _HTMLIFrameClass HTMLIFrameClass; |
---|
83 | typedef struct _HTMLImage HTMLImage; |
---|
84 | typedef struct _HTMLImageAnimation HTMLImageAnimation; |
---|
85 | typedef struct _HTMLImageClass HTMLImageClass; |
---|
86 | typedef struct _HTMLImageFactory HTMLImageFactory; |
---|
87 | typedef struct _HTMLImageInput HTMLImageInput; |
---|
88 | typedef struct _HTMLImageInputClass HTMLImageInputClass; |
---|
89 | typedef struct _HTMLImagePointer HTMLImagePointer; |
---|
90 | typedef struct _HTMLInterval HTMLInterval; |
---|
91 | typedef struct _HTMLLinkText HTMLLinkText; |
---|
92 | typedef struct _HTMLLinkTextClass HTMLLinkTextClass; |
---|
93 | typedef struct _HTMLList HTMLList; |
---|
94 | typedef struct _HTMLMap HTMLMap; |
---|
95 | typedef struct _HTMLMapClass HTMLMapClass; |
---|
96 | typedef struct _HTMLObject HTMLObject; |
---|
97 | typedef struct _HTMLObjectClass HTMLObjectClass; |
---|
98 | typedef struct _HTMLObjectClearRectangle HTMLObjectClearRectangle; |
---|
99 | typedef struct _HTMLPainter HTMLPainter; |
---|
100 | typedef struct _HTMLPainterClass HTMLPainterClass; |
---|
101 | typedef struct _HTMLPoint HTMLPoint; |
---|
102 | typedef struct _HTMLPrinter HTMLPrinter; |
---|
103 | typedef struct _HTMLPrinterClass HTMLPrinterClass; |
---|
104 | typedef struct _HTMLRadio HTMLRadio; |
---|
105 | typedef struct _HTMLRadioClass HTMLRadioClass; |
---|
106 | typedef struct _HTMLReplace HTMLReplace; |
---|
107 | typedef struct _HTMLRule HTMLRule; |
---|
108 | typedef struct _HTMLRuleClass HTMLRuleClass; |
---|
109 | typedef struct _HTMLSelect HTMLSelect; |
---|
110 | typedef struct _HTMLSelectClass HTMLSelectClass; |
---|
111 | typedef struct _HTMLSearch HTMLSearch; |
---|
112 | typedef struct _HTMLSettings HTMLSettings; |
---|
113 | typedef struct _HTMLStack HTMLStack; |
---|
114 | typedef struct _HTMLStringTokenizer HTMLStringTokenizer; |
---|
115 | typedef struct _HTMLTable HTMLTable; |
---|
116 | typedef struct _HTMLTableCell HTMLTableCell; |
---|
117 | typedef struct _HTMLTableCellClass HTMLTableCellClass; |
---|
118 | typedef struct _HTMLTableClass HTMLTableClass; |
---|
119 | typedef struct _HTMLText HTMLText; |
---|
120 | typedef struct _HTMLTextArea HTMLTextArea; |
---|
121 | typedef struct _HTMLTextAreaClass HTMLTextAreaClass; |
---|
122 | typedef struct _HTMLTextClass HTMLTextClass; |
---|
123 | typedef struct _HTMLTextInput HTMLTextInput; |
---|
124 | typedef struct _HTMLTextInputClass HTMLTextInputClass; |
---|
125 | typedef struct _HTMLTextSlave HTMLTextSlave; |
---|
126 | typedef struct _HTMLTextSlaveClass HTMLTextSlaveClass; |
---|
127 | typedef struct _HTMLTokenizer HTMLTokenizer; |
---|
128 | typedef struct _HTMLTokenizerClass HTMLTokenizerClass; |
---|
129 | typedef struct _HTMLUndo HTMLUndo; |
---|
130 | typedef struct _HTMLUndoData HTMLUndoData; |
---|
131 | typedef struct _HTMLUndoAction HTMLUndoAction; |
---|
132 | typedef struct _HTMLVSpace HTMLVSpace; |
---|
133 | typedef struct _HTMLVSpaceClass HTMLVSpaceClass; |
---|
134 | typedef struct _SpellError SpellError; |
---|
135 | |
---|
136 | typedef void (* HTMLObjectForallFunc) (HTMLObject *self, |
---|
137 | HTMLEngine *e, |
---|
138 | gpointer data); |
---|
139 | typedef gpointer (* HTMLFontManagerAllocFont) (gchar *face_name, |
---|
140 | gdouble size, |
---|
141 | GtkHTMLFontStyle style); |
---|
142 | typedef void (* HTMLFontManagerRefFont) (gpointer font); |
---|
143 | typedef void (* HTMLFontManagerUnrefFont) (gpointer font); |
---|
144 | typedef void (* HTMLStackFreeFunc) (gpointer data); |
---|
145 | typedef void (* HTMLUndoFunc) (HTMLEngine *engine, |
---|
146 | HTMLUndoData *data, |
---|
147 | HTMLUndoDirection dir, |
---|
148 | guint position_after); |
---|
149 | typedef void (* HTMLUndoDataDestroyFunc) (HTMLUndoData *data); |
---|
150 | |
---|
151 | /* FIXME */ |
---|
152 | typedef GtkHTMLSaveReceiverFn HTMLEngineSaveReceiverFn; |
---|
153 | |
---|
154 | #endif |
---|