1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3
* Copyright (C) 2001-2002 Mikael Hallendal <micke@imendio.com>
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU General Public License as
7
* published by the Free Software Foundation; either version 2 of the
8
* License, or (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
* General Public License for more details.
15
* You should have received a copy of the GNU General Public
16
* License along with this program; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
19
* Author: Mikael Hallendal <micke@imendio.com>
22
#ifndef __GECKO_HTML_H__
23
#define __GECKO_HTML_H__
26
#include "main/module_dialogs.h"
30
#define GECKO_TYPE_HTML (gecko_html_get_type ())
31
#define GECKO_HTML(o) (GTK_CHECK_CAST ((o), GECKO_TYPE_HTML, GeckoHtml))
32
#define GECKO_HTML_CLASS(k) (GTK_CHECK_FOR_CAST((k), GECKO_TYPE_HTML, GeckoHtmlClass))
33
#define GECKO_IS_HTML(o) (GTK_CHECK_TYPE ((o), GECKO_TYPE_HTML))
34
#define GECKO_IS_HTML_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), GECKO_TYPE_HTML))
35
#define GECKO_HTML_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GECKO_TYPE_HTML, GeckoHtmlClass))
37
typedef struct _GeckoHtml GeckoHtml;
38
typedef struct _GeckoHtmlClass GeckoHtmlClass;
39
typedef struct _GeckoHtmlPriv GeckoHtmlPriv;
47
struct _GeckoHtmlClass {
48
GtkWidgetClass parent_class;
55
void (*uri_selected) (GeckoHtml *view,
58
gboolean (*frame_selected) (GeckoHtml *view,
61
void (*title_changed) (GeckoHtml *view,
62
const gchar *new_title);
63
void (*popupmenu_requested) (GeckoHtml *view,
65
void (*link_message) (GeckoHtml *view);
67
void (*html_title) (GeckoHtml *view);
69
gint (*html_dom_key_down) (GeckoHtml *view, gpointer dom_event);
71
gint (*html_dom_key_up) (GeckoHtml *view, gpointer dom_event);
73
gint (*html_dom_mouse_down) (GeckoHtml *view, gpointer dom_event);
75
gint (*html_dom_mouse_up) (GeckoHtml *view, gpointer dom_event);
77
gint (*html_dom_mouse_out) (GeckoHtml *view, gpointer dom_event);
79
gint (*html_dom_mouse_over) (GeckoHtml *view, gpointer dom_event);
81
gint (*html_dom_mouse_dbl_click) (GeckoHtml *view, gpointer dom_event);
83
gint (*html_open_uri) (GeckoHtml *view, const gchar *uri);
87
GType gecko_html_get_type (void);
88
GeckoHtml * gecko_html_new (DIALOG_DATA * dialog,
91
void gecko_html_set_parent(GtkWidget *widget, GtkWidget *owner);
93
void gecko_html_set_base_uri (GeckoHtml *html,
95
void gecko_html_open_stream (GeckoHtml *html,
97
void gecko_html_write (GeckoHtml *html,
100
void gecko_html_printf (GeckoHtml *html,
102
...) G_GNUC_PRINTF (2,3);
103
void gecko_html_close (GeckoHtml *html);
105
void gecko_html_render_data (GeckoHtml *html,
109
void gecko_html_frames (GeckoHtml *html,
112
gboolean gecko_html_find (GeckoHtml *html,
115
gboolean gecko_html_find_again (GeckoHtml *html,
118
void gecko_html_set_find_props (GeckoHtml *html,
123
void gecko_html_jump_to_anchor (GeckoHtml *html,
126
void gecko_html_copy_selection (GeckoHtml *html);
127
void gecko_html_paste(GeckoHtml * html);
129
void gecko_html_select_all (GeckoHtml *html);
130
void gecko_html_select_none(GeckoHtml * html);
132
void gecko_html_preview_end (GeckoHtml *html);
133
void gecko_html_preview_navigate (GeckoHtml *html,
135
gboolean gecko_html_initialize (void);
136
void gecko_html_shutdown (void);
138
void gecko_html_print_document (GtkWindow * window,
140
DIALOG_DATA * dialog);
142
void gecko_html_emit_link_message(GeckoHtml *html);
144
void gecko_html_emit_title_changed(GeckoHtml *html);
146
gboolean gecko_html_emit_uri_open(GeckoHtml *html, const gchar *uri);
150
#endif /* __GECKO_HTML_H__ */