GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
gnc-report.h
1 /********************************************************************
2  * gnc-report.h -- C functions for reports. *
3  * *
4  * Copyright (C) 2001 Linux Developers Group *
5  * Copyright (C) 2006 Chris Shoemaker <[email protected]> *
6  * *
7  * This program is free software; you can redistribute it and/or *
8  * modify it under the terms of the GNU General Public License as *
9  * published by the Free Software Foundation; either version 2 of *
10  * the License, or (at your option) any later version. *
11  * *
12  * This program is distributed in the hope that it will be useful, *
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15  * GNU General Public License for more details. *
16  * *
17  * You should have received a copy of the GNU General Public License*
18  * along with this program; if not, contact: *
19  * *
20  * Free Software Foundation Voice: +1-617-542-5942 *
21  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
22  * Boston, MA 02110-1301, USA [email protected] *
23  ********************************************************************/
24 
25 #ifndef GNC_REPORT_H
26 #define GNC_REPORT_H
27 
28 #include <glib.h>
29 #include <libguile.h>
30 
31 #define SAVED_REPORTS_FILE "saved-reports-2.4"
32 #define SAVED_REPORTS_FILE_OLD_REV "saved-reports-2.0"
33 
34 gboolean gnc_run_report (gint report_id, char ** data);
35 gboolean gnc_run_report_id_string (const char * id_string, char **data);
36 
42 gchar* gnc_report_name( SCM report );
43 
44 /* returns #f if the report id cannot be found */
45 SCM gnc_report_find(gint id);
46 void gnc_report_remove_by_id(gint id);
47 gint gnc_report_add(SCM report);
48 
49 void gnc_reports_flush_global(void);
50 GHashTable *gnc_reports_get_global(void);
51 
52 gchar* gnc_get_default_report_font_family(void);
53 
54 gboolean gnc_saved_reports_backup (void);
55 gboolean gnc_saved_reports_write_to_file (const gchar* report_def, gboolean overwrite);
56 
57 #endif