GnuCash  4.12-68-g5dc52459a1+
gnc-plugin-page-report.h
Go to the documentation of this file.
1 
34 #ifndef __GNC_PLUGIN_PAGE_REPORT_H
35 #define __GNC_PLUGIN_PAGE_REPORT_H
36 
37 #include <gtk/gtk.h>
38 #include "gnc-plugin.h"
39 
40 G_BEGIN_DECLS
41 
42 /* type macros */
43 #define GNC_TYPE_PLUGIN_PAGE_REPORT (gnc_plugin_page_report_get_type ())
44 #define GNC_PLUGIN_PAGE_REPORT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_PLUGIN_PAGE_REPORT, GncPluginPageReport))
45 #define GNC_PLUGIN_PAGE_REPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_PLUGIN_PAGE_REPORT, GncPluginPageReportClass))
46 #define GNC_IS_PLUGIN_PAGE_REPORT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_PLUGIN_PAGE_REPORT))
47 #define GNC_IS_PLUGIN_PAGE_REPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_PLUGIN_PAGE_REPORT))
48 #define GNC_PLUGIN_PAGE_REPORT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_PLUGIN_PAGE_REPORT, GncPluginPageReportClass))
49 
50 #define GNC_PLUGIN_PAGE_REPORT_NAME "GncPluginPageReport"
51 
52 #define WINDOW_REPORT_CM_CLASS "window-report"
53 
54 /* typedefs & structures */
55 typedef struct
56 {
57  GncPluginPage gnc_plugin;
59 
60 typedef struct
61 {
62  GncPluginPageClass gnc_plugin;
63 
64  /* callbacks */
66 
67 /* function prototypes */
68 
73 
79 
80 void gnc_plugin_page_report_reload (GncPluginPageReport *report);
81 
82 // entry-point from scm menu-extension callback [gnc:menu-extension].
83 void gnc_main_window_open_report (int report_id, GncMainWindow *window);
84 // directly called through from above
85 void gnc_main_window_open_report_url (const char * url, GncMainWindow *window);
86 
87 G_END_DECLS
88 
89 #endif /* __GNC_PLUGIN_PAGE_REPORT_H */
90 
The instance data structure for a content plugin.
GType gnc_plugin_page_report_get_type(void)
The class data structure for a content plugin.
GncPluginPage * gnc_plugin_page_report_new(int reportId)
Functions for adding plugins to a GnuCash window.
The instance data structure for a main window object.