GnuCash  4.901-15-g732a005710
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 #ifdef __cplusplus
38 extern "C"
39 {
40 #endif
41 
42 #include <gtk/gtk.h>
43 #include "gnc-plugin.h"
44 
45 G_BEGIN_DECLS
46 
47 /* type macros */
48 #define GNC_TYPE_PLUGIN_PAGE_REPORT (gnc_plugin_page_report_get_type ())
49 #define GNC_PLUGIN_PAGE_REPORT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_PLUGIN_PAGE_REPORT, GncPluginPageReport))
50 #define GNC_PLUGIN_PAGE_REPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_PLUGIN_PAGE_REPORT, GncPluginPageReportClass))
51 #define GNC_IS_PLUGIN_PAGE_REPORT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_PLUGIN_PAGE_REPORT))
52 #define GNC_IS_PLUGIN_PAGE_REPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_PLUGIN_PAGE_REPORT))
53 #define GNC_PLUGIN_PAGE_REPORT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_PLUGIN_PAGE_REPORT, GncPluginPageReportClass))
54 
55 #define GNC_PLUGIN_PAGE_REPORT_NAME "GncPluginPageReport"
56 
57 #define WINDOW_REPORT_CM_CLASS "window-report"
58 
59 /* typedefs & structures */
60 typedef struct
61 {
62  GncPluginPage gnc_plugin;
64 
65 typedef struct
66 {
67  GncPluginPageClass gnc_plugin;
68 
69  /* callbacks */
71 
72 /* function prototypes */
73 
78 
84 
85 void gnc_plugin_page_report_reload (GncPluginPageReport *report);
86 
87 // entry-point from scm menu-extension callback [gnc:menu-extension].
88 void gnc_main_window_open_report (int report_id, GncMainWindow *window);
89 // directly called through from above
90 void gnc_main_window_open_report_url (const char * url, GncMainWindow *window);
91 
92 G_END_DECLS
93 #ifdef __cplusplus
94 }
95 #endif
96 #endif /* __GNC_PLUGIN_PAGE_REPORT_H */
97 
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.