GnuCash  4.12-68-g5dc52459a1+
gnc-plugin-page-register2.h
Go to the documentation of this file.
1 /**********************************************************************
2  * gnc-plugin-page-register2.h -- register page functions *
3  * *
4  * Copyright (C) 2003 Jan Arne Petersen <jpetersen@uni-bonn.de> *
5  * Copyright (C) 2003,2005,2006 David Hampton <hampton@employees.org> *
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 gnu@gnu.org *
23  **********************************************************************/
24 
25 #ifndef __GNC_PLUGIN_PAGE_REGISTER2_H
26 #define __GNC_PLUGIN_PAGE_REGISTER2_H
27 
28 #include <gtk/gtk.h>
29 
30 #include "Account.h"
31 #include "gnc-ledger-display2.h"
32 #include "gnc-plugin-page.h"
33 #include "gnc-split-reg2.h"
34 #include "Query.h"
35 
36 G_BEGIN_DECLS
43 /* type macros */
44 #define GNC_TYPE_PLUGIN_PAGE_REGISTER2 (gnc_plugin_page_register2_get_type ())
45 #define GNC_PLUGIN_PAGE_REGISTER2(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_PLUGIN_PAGE_REGISTER2, GncPluginPageRegister2))
46 #define GNC_PLUGIN_PAGE_REGISTER2_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_PLUGIN_PAGE_REGISTER2, GncPluginPageRegister2Class))
47 #define GNC_IS_PLUGIN_PAGE_REGISTER2(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_PLUGIN_PAGE_REGISTER2))
48 #define GNC_IS_PLUGIN_PAGE_REGISTER2_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_PLUGIN_PAGE_REGISTER2))
49 #define GNC_PLUGIN_PAGE_REGISTER2_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_PLUGIN_PAGE_REGISTER2, GncPluginPageRegister2Class))
50 #define GNC_PLUGIN_PAGE_REGISTER2_NAME "GncPluginPageRegister2"
51 
52 /* typedefs & structures */
53 typedef struct
54 {
55  GncPluginPage gnc_plugin_page;
57 
58 typedef struct
59 {
60  GncPluginPageClass gnc_plugin_page;
62 
63 /* function prototypes */
64 
70 
71 
84 gnc_plugin_page_register2_new (Account *account, gboolean subaccounts);
85 
86 
98 gnc_plugin_page_register2_new_ledger (GNCLedgerDisplay2 *ledger);
99 
100 
107 
108 
118 void
120  gint lines_default,
121  gboolean read_only);
122 
123 
128 GNCSplitReg2 *
130 
131 
136 GNCLedgerDisplay2 *
138 
139 
146 Query *
148 
149 
157 Account *
159 
160 G_END_DECLS
163 #endif /* __GNC_PLUGIN_PAGE_REGISTER2_H */
Query * gnc_plugin_page_register2_get_query(GncPluginPage *plugin_page)
Get the Query associated with this "register" plugin page.
The instance data structure for a content plugin.
GncPluginPage * gnc_plugin_page_register2_new_ledger(GNCLedgerDisplay2 *ledger)
Create a new "register" plugin page, given a pointer to an already created ledger.
void gnc_plugin_page_register2_set_options(GncPluginPage *plugin_page, gint lines_default, gboolean read_only)
Set various register options on a newly created "register" plugin page.
Account * gnc_plugin_page_register2_get_account(GncPluginPageRegister2 *page)
Get the Account associated with this register page.
GNCLedgerDisplay2 * gnc_plugin_page_register2_get_ledger(GncPluginPage *plugin_page)
Get the GNCLedgerDisplay data structure associated with this register page.
GncPluginPage * gnc_plugin_page_register2_new_gl(void)
Create a new "register" plugin page containing a general journal.
Account handling public routines.
The class data structure for a content plugin.
GncPluginPage * gnc_plugin_page_register2_new(Account *account, gboolean subaccounts)
Create a new "register" plugin page, given a pointer to an account.
Functions for adding plugins to a GnuCash window.
GType gnc_plugin_page_register2_get_type(void)
Retrieve the type number for the plugin page.
GNCSplitReg2 * gnc_plugin_page_register2_get_gsr(GncPluginPage *plugin_page)
Get the GNCSplitReg data structure associated with this register page.
Public declarations for GncLedgerDisplay2 class.