GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
assistant-csv-export.h
Go to the documentation of this file.
1 /*******************************************************************\
2  * assistant-csv-export.h -- An assistant for exporting Accounts *
3  * and Transactions to a file *
4  * *
5  * Copyright (C) 2012 Robert Fewell *
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 \********************************************************************/
28 #ifndef GNC_ASSISTANT_CSV_EXPORT_H
29 #define GNC_ASSISTANT_CSV_EXPORT_H
30 
31 #include "Account.h"
32 
33 typedef enum
34 {
35  XML_EXPORT_TREE,
36  XML_EXPORT_TRANS
37 } CsvExportType;
38 
39 typedef struct
40 {
41  GtkWidget *table;
42  GtkWidget *start_date_choose;
43  GtkWidget *start_date_today;
44  GtkWidget *start_date;
45  GtkWidget *end_date_choose;
46  GtkWidget *end_date_today;
47  GtkWidget *end_date;
48 
49  time64 start_time;
50  time64 end_time;
52 
53 typedef struct
54 {
55  GtkWidget *acct_info;
56  GtkWidget *account_treeview;
57  GtkWidget *select_button;
58  GtkWidget *num_acct_label;
59  GList *account_list;
60  int num_accounts;
61  GNCAccountType account_type;
62 } CsvExportAcc;
63 
64 
65 typedef struct
66 {
67  CsvExportType export_type;
68  CsvExportDate csvd;
69  CsvExportAcc csva;
70  GList *trans_list;
71 
72  GtkWidget *start_page;
73  GtkWidget *account_page;
74  GtkWidget *file_page;
75 
76  GtkWidget *window;
77  GtkWidget *assistant;
78  GtkWidget *start_label;
79  GtkWidget *custom_entry;
80 
81  GtkWidget *file_chooser;
82  GtkWidget *finish_label;
83  GtkWidget *summary_label;
84 
85  gchar *starting_dir;
86  gchar *file_name;
87 
88  char *separator_str;
89  gboolean use_quotes;
90  gboolean use_custom;
91  gboolean failed;
93 
94 
98 void gnc_file_csv_export (CsvExportType export_type);
99 
100 #endif
Account handling public routines.
GNCAccountType
Definition: Account.h:96
void gnc_file_csv_export(CsvExportType export_type)
gint64 time64
Definition: gnc-date.h:83