GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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 /* typedefs & structures */
53 typedef struct
54 {
55  GncPluginPage gnc_plugin;
57 
58 typedef struct
59 {
60  GncPluginPageClass gnc_plugin;
61 
62  /* callbacks */
64 
65 /* function prototypes */
66 
71 
77 
78 // entry-point from scm menu-extension callback [gnc:menu-extension].
79 void gnc_main_window_open_report (int report_id, GncMainWindow *window);
80 // directly called through from above
81 void gnc_main_window_open_report_url (const char * url, GncMainWindow *window);
82 
83 G_END_DECLS
84 
85 #endif /* __GNC_PLUGIN_PAGE_REPORT_H */
86 
GType gnc_plugin_page_report_get_type(void)
GncPluginPage * gnc_plugin_page_report_new(int reportId)
Functions for adding plugins to a GnuCash window.