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) 2002 Ximian Inc. |
---|
5 | Authors: Larry Ewing <lewing@ximian.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 | #ifndef __GTK_HTML_PROPMANAGER_H__ |
---|
23 | #define __GTK_HTML_PROPMANAGER_H__ |
---|
24 | |
---|
25 | #include <gtk/gtkobject.h> |
---|
26 | #include <gconf/gconf-client.h> |
---|
27 | #include <glade/glade.h> |
---|
28 | #include "gtkhtml-properties.h" |
---|
29 | |
---|
30 | #define GTK_TYPE_HTML_PROPMANAGER (gtk_html_propmanager_get_type ()) |
---|
31 | #define GTK_HTML_PROPMANAGER(w) (GTK_CHECK_CAST ((w), GTK_TYPE_HTML_PROPMANAGER, GtkHTMLPropmanager)) |
---|
32 | #define GTK_HTML_PROPMANAGER_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_HTML_PROPMANAGER, GtkHTMLPropmanagerClass)) |
---|
33 | |
---|
34 | #define GTK_IS_HTML_PROPMANAGER(w) (GTK_CHECK_TYPE ((w), GTK_TYPE_HTML_PROPMANAGER)) |
---|
35 | |
---|
36 | typedef struct _GtkHTMLPropmanagerPrivate GtkHTMLPropmanagerPrivate; |
---|
37 | typedef struct _GtkHTMLPropmanagerClass GtkHTMLPropmanagerClass; |
---|
38 | typedef struct _GtkHTMLPropmanager GtkHTMLPropmanager; |
---|
39 | |
---|
40 | struct _GtkHTMLPropmanager { |
---|
41 | GtkObject object; |
---|
42 | |
---|
43 | GtkHTMLPropmanagerPrivate *priv; |
---|
44 | GConfClient *client; |
---|
45 | }; |
---|
46 | |
---|
47 | struct _GtkHTMLPropmanagerClass { |
---|
48 | GtkObjectClass parent_class; |
---|
49 | |
---|
50 | void (*changed)(GtkHTMLPropmanager *); |
---|
51 | }; |
---|
52 | |
---|
53 | GtkType gtk_html_propmanager_get_type (void); |
---|
54 | GtkObject * gtk_html_propmanager_new (GConfClient *client); |
---|
55 | gboolean gtk_html_propmanager_set_gui (GtkHTMLPropmanager *pman, GladeXML *xml, GHashTable *nametable); |
---|
56 | void gtk_html_propmanager_apply (GtkHTMLPropmanager *pman); |
---|
57 | void gtk_html_propmanager_reset (GtkHTMLPropmanager *pman); |
---|
58 | |
---|
59 | void gtk_html_propmanager_set_names (GtkHTMLPropmanager *pman, char *names[][2]); |
---|
60 | void gtk_html_propmanager_set_nametable (GtkHTMLPropmanager *pman, GHashTable *table); |
---|
61 | #endif /* __GTK_HTML_PROPMANAGER_H__ */ |
---|
62 | |
---|
63 | |
---|
64 | |
---|