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 | Authors: 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 _GTK_HTML_PROPERTIES_H_ |
---|
24 | #define _GTK_HTML_PROPERTIES_H_ |
---|
25 | |
---|
26 | #define GTK_HTML_GCONF_DIR "/GNOME/Documents/HTML_Editor" |
---|
27 | #define GTK_HTML_GNOME_CONFIG_PREFIX "/gtkhtml/Settings/" |
---|
28 | |
---|
29 | #include <glib.h> |
---|
30 | #include <gdk/gdktypes.h> |
---|
31 | |
---|
32 | #include <gconf/gconf-client.h> |
---|
33 | |
---|
34 | #include <gtk/gtkobject.h> |
---|
35 | #include "gtkhtml-types.h" |
---|
36 | #include "gtkhtml.h" |
---|
37 | |
---|
38 | #define GTK_HTML_PROPERTY(w,p) (GTK_HTML_CLASS (GTK_WIDGET_GET_CLASS (w))->properties-> p) |
---|
39 | |
---|
40 | struct _GtkHTMLClassProperties { |
---|
41 | /* viewer */ |
---|
42 | gchar *font_var_print; |
---|
43 | guint font_var_size_print; |
---|
44 | gboolean font_var_print_points; |
---|
45 | gchar *font_fix_print; |
---|
46 | guint font_fix_size_print; |
---|
47 | gboolean font_fix_print_points; |
---|
48 | |
---|
49 | /* editor */ |
---|
50 | gchar *language; |
---|
51 | }; |
---|
52 | |
---|
53 | GtkHTMLClassProperties * gtk_html_class_properties_new (GtkWidget *widget); |
---|
54 | void gtk_html_class_properties_destroy (GtkHTMLClassProperties *p); |
---|
55 | void gtk_html_class_properties_copy (GtkHTMLClassProperties *p1, |
---|
56 | GtkHTMLClassProperties *p2); |
---|
57 | void gtk_html_class_properties_load (GtkHTMLClassProperties *p, |
---|
58 | GConfClient *client); |
---|
59 | void gtk_html_class_properties_update (GtkHTMLClassProperties *p, |
---|
60 | GConfClient *client, |
---|
61 | GtkHTMLClassProperties *old); |
---|
62 | |
---|
63 | /* enum types */ |
---|
64 | |
---|
65 | #define GTK_TYPE_HTML_CURSOR_SKIP (gtk_html_cursor_skip_get_type ()) |
---|
66 | #define GTK_TYPE_HTML_COMMAND (gtk_html_command_get_type ()) |
---|
67 | |
---|
68 | GtkType gtk_html_cursor_skip_get_type (void); |
---|
69 | GtkType gtk_html_command_get_type (void); |
---|
70 | |
---|
71 | #endif |
---|