|
GnuCash 2.4.99
|
00001 /********************************************************************** 00002 * gnc-plugin-page-register.h -- register page functions * 00003 * * 00004 * Copyright (C) 2003 Jan Arne Petersen <jpetersen@uni-bonn.de> * 00005 * Copyright (C) 2003,2005,2006 David Hampton <hampton@employees.org> * 00006 * * 00007 * This program is free software; you can redistribute it and/or * 00008 * modify it under the terms of the GNU General Public License as * 00009 * published by the Free Software Foundation; either version 2 of * 00010 * the License, or (at your option) any later version. * 00011 * * 00012 * This program is distributed in the hope that it will be useful, * 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00015 * GNU General Public License for more details. * 00016 * * 00017 * You should have received a copy of the GNU General Public License * 00018 * along with this program; if not, contact: * 00019 * * 00020 * Free Software Foundation Voice: +1-617-542-5942 * 00021 * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 * 00022 * Boston, MA 02110-1301, USA gnu@gnu.org * 00023 **********************************************************************/ 00024 00035 #ifndef __GNC_PLUGIN_PAGE_REGISTER_H 00036 #define __GNC_PLUGIN_PAGE_REGISTER_H 00037 00038 #include <gtk/gtk.h> 00039 00040 #include "Account.h" 00041 #include "gnc-ledger-display.h" 00042 #include "gnc-plugin-page.h" 00043 #include "gnc-split-reg.h" 00044 00045 G_BEGIN_DECLS 00046 00047 /* type macros */ 00048 #define GNC_TYPE_PLUGIN_PAGE_REGISTER (gnc_plugin_page_register_get_type ()) 00049 #define GNC_PLUGIN_PAGE_REGISTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_PLUGIN_PAGE_REGISTER, GncPluginPageRegister)) 00050 #define GNC_PLUGIN_PAGE_REGISTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_PLUGIN_PAGE_REGISTER, GncPluginPageRegisterClass)) 00051 #define GNC_IS_PLUGIN_PAGE_REGISTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_PLUGIN_PAGE_REGISTER)) 00052 #define GNC_IS_PLUGIN_PAGE_REGISTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_PLUGIN_PAGE_REGISTER)) 00053 #define GNC_PLUGIN_PAGE_REGISTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_PLUGIN_PAGE_REGISTER, GncPluginPageRegisterClass)) 00054 #define GNC_PLUGIN_PAGE_REGISTER_NAME "GncPluginPageRegister" 00055 00056 /* typedefs & structures */ 00057 typedef struct 00058 { 00059 GncPluginPage gnc_plugin_page; 00060 } GncPluginPageRegister; 00061 00062 typedef struct 00063 { 00064 GncPluginPageClass gnc_plugin_page; 00065 } GncPluginPageRegisterClass; 00066 00067 /* function prototypes */ 00068 00073 GType gnc_plugin_page_register_get_type (void); 00074 00075 00087 GncPluginPage * 00088 gnc_plugin_page_register_new (Account *account, gboolean subaccounts); 00089 00090 00101 GncPluginPage * 00102 gnc_plugin_page_register_new_ledger (GNCLedgerDisplay *ledger); 00103 00104 00109 GncPluginPage * 00110 gnc_plugin_page_register_new_gl (void); 00111 00112 00122 void 00123 gnc_plugin_page_register_set_options (GncPluginPage *plugin_page, 00124 gint lines_default, 00125 gboolean read_only); 00126 00127 00132 GNCSplitReg * 00133 gnc_plugin_page_register_get_gsr (GncPluginPage *plugin_page); 00134 00135 00143 Account * 00144 gnc_plugin_page_register_get_account (GncPluginPageRegister *page); 00145 00146 G_END_DECLS 00150 #endif /* __GNC_PLUGIN_PAGE_REGISTER_H */ 00151
1.7.4