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