32#include <glib-object.h>
36#define GNC_TYPE_HTML (gnc_html_get_type())
37#define GNC_HTML(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GNC_TYPE_HTML, GncHtml))
38#define GNC_HTML_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GNC_TYPE_HTML, GncHtmlClass))
39#define GNC_IS_HTML(o) (G_TYPE_CHECK_INSTANCE_TYPE((o), GNC_TYPE_HTML))
40#define GNC_IS_HTML_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE((o), GNC_TYPE_HTML))
41#define GNC_HTML_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS((o), GNC_TYPE_HTML, GncHtmlClass))
52GType gnc_html_get_type(
void);
59#include "gnc-html-extras.h"
67 gboolean load_to_stream;
87typedef gboolean (* GncHTMLObjectCB)(GncHtml* html, gpointer eb,
89typedef gboolean (* GncHTMLStreamCB)(
const gchar* location, gchar** data,
int* datalen);
90typedef gboolean (* GncHTMLUrlCB)(
const gchar* location,
const gchar* label,
94#define NOEXCEPT noexcept
109gboolean gnc_html_register_urltype( URLType type,
const gchar* protocol ) NOEXCEPT;
114void gnc_html_initialize(
void ) NOEXCEPT;
120#include "gnc-html-history.h"
124 GtkBinClass parent_class;
127 void (*show_url)( GncHtml* html,
129 const gchar* location,
131 gboolean new_window_hint );
132 void (*show_data)( GncHtml* html,
const gchar* data,
int datalen );
133 void (*reload)( GncHtml* html, gboolean force_rebuild );
134 void (*copy_to_clipboard)( GncHtml* html );
135 gboolean (*export_to_file)( GncHtml* html,
const gchar* file );
137 void (*print) (GncHtml* html,
const gchar* jobname, gboolean export_pdf);
139 void (*print) (GncHtml* html,
const gchar* jobname);
141 void (*cancel)( GncHtml* html );
142 URLType (*parse_url)( GncHtml* html,
const gchar* url,
143 gchar** url_location, gchar** url_label );
144 void (*set_parent)( GncHtml* html, GtkWindow* parent );
149 GtkBin parent_instance;
152 GncHtmlPrivate* priv;
155typedef int (* GncHTMLUrltypeCB)(URLType ut);
156typedef void (* GncHTMLFlyoverCB)(GncHtml* html,
const gchar* url,
158typedef void (* GncHTMLLoadCB)(GncHtml* html, URLType type,
159 const gchar* location,
const gchar* label,
161typedef int (* GncHTMLButtonCB)(GncHtml* html, GdkEventButton* event,
174void gnc_html_destroy( GncHtml* html ) NOEXCEPT;
181void gnc_html_show_url( GncHtml* html, URLType type,
const gchar* location,
182 const gchar* label, gboolean new_window_hint ) NOEXCEPT;
189void gnc_html_show_data( GncHtml* html,
const gchar* data,
int datalen ) NOEXCEPT;
197void gnc_html_reload( GncHtml* html, gboolean view ) NOEXCEPT;
204void gnc_html_copy_to_clipboard( GncHtml* html ) NOEXCEPT;
213gboolean gnc_html_export_to_file( GncHtml* html,
const gchar* filename ) NOEXCEPT;
225void gnc_html_print (GncHtml* html,
const char* jobname, gboolean export_pdf) NOEXCEPT;
232void gnc_html_print (GncHtml* html,
const char* jobname) NOEXCEPT;
239void gnc_html_cancel( GncHtml* html ) NOEXCEPT;
249URLType gnc_html_parse_url( GncHtml* html,
const gchar* url,
250 gchar** url_location, gchar** url_label ) NOEXCEPT;
258gnc_html_history* gnc_html_get_history( GncHtml* html ) NOEXCEPT;
266GtkWidget* gnc_html_get_widget( GncHtml* html ) NOEXCEPT;
274GtkWidget* gnc_html_get_webview( GncHtml* html ) NOEXCEPT;
283void gnc_html_set_parent( GncHtml* html, GtkWindow* parent ) NOEXCEPT;
286void gnc_html_set_urltype_cb( GncHtml* html, GncHTMLUrltypeCB urltype_cb ) NOEXCEPT;
287void gnc_html_set_load_cb( GncHtml* html, GncHTMLLoadCB load_cb, gpointer data ) NOEXCEPT;
288void gnc_html_set_flyover_cb( GncHtml* html, GncHTMLFlyoverCB newwin_cb, gpointer data ) NOEXCEPT;
289void gnc_html_set_button_cb( GncHtml* html, GncHTMLButtonCB button_cb, gpointer data ) NOEXCEPT;
293void gnc_html_register_object_handler(
const gchar* classid, GncHTMLObjectCB hand ) NOEXCEPT;
294void gnc_html_unregister_object_handler(
const gchar* classid ) NOEXCEPT;
297void gnc_html_register_stream_handler( URLType url_type, GncHTMLStreamCB hand ) NOEXCEPT;
298void gnc_html_unregister_stream_handler( URLType url_type ) NOEXCEPT;
301void gnc_html_register_url_handler( URLType url_type, GncHTMLUrlCB hand ) NOEXCEPT;
302void gnc_html_unregister_url_handler( URLType url_type ) NOEXCEPT;
304const gchar* gnc_html_get_embedded_param( gpointer eb,
const gchar* param_name ) NOEXCEPT;