~xnox/ubuntu/natty/xiphos/update-3.1.4

« back to all changes in this revision

Viewing changes to src/geckowin/gecko-html.h

  • Committer: Dmitrijs Ledkovs
  • Author(s): Dmitrijs Ledkovs, Jonathan Marsden, Dmitrijs Ledkovs
  • Date: 2010-11-25 21:26:48 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: dmitrij.ledkov@ubuntu.com-20101125212648-az1oaou0quf37bwd
Tags: 3.1.4-0ubuntu1
[ Jonathan Marsden ]
* New upstream release 3.1.4
* Removed debian/patch/* since the one patch was included upstream.
* Bumped Standards-Version to 3.9.1 (no changes required).
* debian/README.Debian: Corrected spelling and reworded for clarity.
* debian/control: Add Jonathan Marsden back into Uploaders.

[ Dmitrijs Ledkovs ]
* Added local options dpkg-source to unapply patches and fail on
  upstream source changes (ignoring false positives).
* Added bzr-builddeb hook to generate source-format before build. If you
  are not using bzr-builddeb, you must run "./debian/rules clean" before
  building.
* patches/xul-2.0.patch: bump UPPER_RANGE to allow running against xul20.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 
2
/*
 
3
 * Copyright (C) 2001-2002 Mikael Hallendal <micke@imendio.com>
 
4
 *
 
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.
 
9
 *
 
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.
 
14
 *
 
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.
 
18
 *
 
19
 * Author: Mikael Hallendal <micke@imendio.com>
 
20
 */
 
21
 
 
22
#ifndef __GECKO_HTML_H__
 
23
#define __GECKO_HTML_H__
 
24
 
 
25
#include <gtk/gtk.h>
 
26
#include "main/module_dialogs.h"
 
27
 
 
28
G_BEGIN_DECLS
 
29
 
 
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))
 
36
 
 
37
typedef struct _GeckoHtml        GeckoHtml;
 
38
typedef struct _GeckoHtmlClass   GeckoHtmlClass;
 
39
typedef struct _GeckoHtmlPriv    GeckoHtmlPriv;
 
40
 
 
41
struct _GeckoHtml {
 
42
        GtkWidget widget;
 
43
 
 
44
        GeckoHtmlPriv *priv;
 
45
};
 
46
 
 
47
struct _GeckoHtmlClass {
 
48
        GtkWidgetClass parent_class;
 
49
 
 
50
        guint font_handler;
 
51
        guint color_handler;
 
52
        guint a11y_handler;
 
53
 
 
54
        /* Signals */
 
55
        void (*uri_selected)   (GeckoHtml    *view,
 
56
                                gchar       *uri,
 
57
                                gboolean     handled);
 
58
        gboolean (*frame_selected) (GeckoHtml    *view,
 
59
                                gchar       *uri,
 
60
                                gboolean    handled);
 
61
        void (*title_changed)  (GeckoHtml    *view,
 
62
                                const gchar *new_title);
 
63
        void (*popupmenu_requested) (GeckoHtml *view,
 
64
                                     const gchar *link);
 
65
        void (*link_message) (GeckoHtml *view);
 
66
 
 
67
        void (*html_title) (GeckoHtml *view);
 
68
 
 
69
        gint (*html_dom_key_down) (GeckoHtml *view, gpointer dom_event);
 
70
 
 
71
        gint (*html_dom_key_up) (GeckoHtml *view, gpointer dom_event);
 
72
 
 
73
        gint (*html_dom_mouse_down) (GeckoHtml *view, gpointer dom_event);
 
74
 
 
75
        gint (*html_dom_mouse_up) (GeckoHtml *view, gpointer dom_event);
 
76
 
 
77
        gint (*html_dom_mouse_out) (GeckoHtml *view, gpointer dom_event);
 
78
 
 
79
        gint (*html_dom_mouse_over) (GeckoHtml *view, gpointer dom_event);
 
80
 
 
81
        gint (*html_dom_mouse_dbl_click) (GeckoHtml *view, gpointer dom_event);
 
82
 
 
83
        gint (*html_open_uri) (GeckoHtml *view, const gchar *uri);
 
84
 
 
85
};
 
86
 
 
87
GType           gecko_html_get_type       (void);
 
88
GeckoHtml *     gecko_html_new            (DIALOG_DATA * dialog,
 
89
                                           gboolean is_dialog,
 
90
                                           gint pane);
 
91
void gecko_html_set_parent(GtkWidget *widget, GtkWidget *owner);
 
92
 
 
93
void            gecko_html_set_base_uri   (GeckoHtml    *html,
 
94
                                          const gchar *uri);
 
95
void            gecko_html_open_stream    (GeckoHtml    *html,
 
96
                                          const gchar *mime);
 
97
void            gecko_html_write          (GeckoHtml    *html,
 
98
                                          const gchar *data,
 
99
                                          gint         len);
 
100
void            gecko_html_printf         (GeckoHtml    *html,
 
101
                                          char        *format,
 
102
                                          ...) G_GNUC_PRINTF (2,3);
 
103
void            gecko_html_close          (GeckoHtml    *html);
 
104
 
 
105
void            gecko_html_render_data    (GeckoHtml    *html,
 
106
                                           const char *data,
 
107
                                           guint32 len);
 
108
 
 
109
void            gecko_html_frames         (GeckoHtml    *html,
 
110
                                          gboolean     enable);
 
111
 
 
112
gboolean        gecko_html_find           (GeckoHtml    *html,
 
113
                                          const gchar *str);
 
114
 
 
115
gboolean        gecko_html_find_again    (GeckoHtml    *html,
 
116
                                          gboolean     forward);
 
117
 
 
118
void            gecko_html_set_find_props (GeckoHtml    *html,
 
119
                                          const char  *str,
 
120
                                          gboolean     match_case,
 
121
                                          gboolean     wrap);
 
122
 
 
123
void            gecko_html_jump_to_anchor (GeckoHtml    *html,
 
124
                                          gchar       *anchor);
 
125
 
 
126
void            gecko_html_copy_selection (GeckoHtml    *html);
 
127
void            gecko_html_paste(GeckoHtml * html);
 
128
 
 
129
void            gecko_html_select_all     (GeckoHtml    *html);
 
130
void            gecko_html_select_none(GeckoHtml * html);
 
131
 
 
132
void            gecko_html_preview_end    (GeckoHtml    *html);
 
133
void            gecko_html_preview_navigate (GeckoHtml *html,
 
134
                                            gint page_no);
 
135
gboolean        gecko_html_initialize     (void);
 
136
void            gecko_html_shutdown       (void);
 
137
 
 
138
void            gecko_html_print_document (GtkWindow * window,
 
139
                                           gchar * mod_name,
 
140
                                           DIALOG_DATA * dialog);
 
141
 
 
142
void gecko_html_emit_link_message(GeckoHtml *html);
 
143
 
 
144
void gecko_html_emit_title_changed(GeckoHtml *html);
 
145
 
 
146
gboolean gecko_html_emit_uri_open(GeckoHtml *html, const gchar *uri);
 
147
 
 
148
G_END_DECLS
 
149
 
 
150
#endif /* __GECKO_HTML_H__ */