source: trunk/third/gtkhtml/src/htmlsettings.h @ 16767

Revision 16767, 2.3 KB checked in by ghudson, 23 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r16766, which included commits to RCS files with non-trunk default branches.
Line 
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) 1997 Martin Jones (mjones@kde.org)
5   Copyright (C) 1997 Torben Weis (weis@kde.org)
6   Copyright (C) 2000 Helix Code, Inc.
7   
8   This library is free software; you can redistribute it and/or
9   modify it under the terms of the GNU Library General Public
10   License as published by the Free Software Foundation; either
11   version 2 of the License, or (at your option) any later version.
12   
13   This library is distributed in the hope that it will be useful,
14   but WITHOUT ANY WARRANTY; without even the implied warranty of
15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16   Library General Public License for more details.
17   
18   You should have received a copy of the GNU Library General Public License
19   along with this library; see the file COPYING.LIB.  If not, write to
20   the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21   Boston, MA 02111-1307, USA.
22*/
23
24#ifndef _HTMLSETTINGS_H_
25#define _HTMLSETTINGS_H_
26
27#include <gdk/gdk.h>
28
29#include "htmlengine.h"
30#include "htmlpainter.h"
31#include "htmlcolorset.h"
32
33
34#define HTML_NUM_FONT_SIZES 7
35
36struct _HTMLSettings {
37        gint fontSizes [HTML_NUM_FONT_SIZES];
38        gint fontBaseSize;
39
40        gchar *fontBaseFace;
41        gchar *fixedFontFace;
42
43        guint underlineLinks : 1;
44        guint forceDefault : 1;
45
46        HTMLColorSet *color_set;
47};
48
49
50HTMLSettings *   html_settings_new                   (GtkWidget *w);
51void             html_settings_reset                 (HTMLSettings *settings,
52                                                      HTMLSettings *orig,
53                                                      HTMLPainter  *painter);
54void             html_settings_destroy               (HTMLSettings *settings);
55void             html_settings_set_font_sizes        (HTMLSettings *settings,
56                                                      const gint *newFontSizes);
57void             html_settings_get_font_sizes        (HTMLSettings *settings,
58                                                      gint *fontSizes);
59void             html_settings_reset_font_sizes      (HTMLSettings *settings);
60void             html_settings_copy                  (HTMLSettings *dest, HTMLSettings *src);
61void             html_settings_set_font_base_face    (HTMLSettings *settings, const gchar *face);
62void             html_settings_set_fixed_font_face   (HTMLSettings *settings, const gchar *face);
63
64#endif /* _HTMLSETTINGS_H_ */
Note: See TracBrowser for help on using the repository browser.