|
GnuCash 2.4.99
|
00001 /* 00002 * gnc-plugin-page-invoice.h -- 00003 * 00004 * Copyright (C) 2005,2006 David Hampton <hampton@employees.org> 00005 * 00006 * This program is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU General Public License as 00008 * published by the Free Software Foundation; either version 2 of 00009 * the License, or (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, contact: 00018 * 00019 * Free Software Foundation Voice: +1-617-542-5942 00020 * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 00021 * Boston, MA 02110-1301, USA gnu@gnu.org 00022 */ 00023 00033 #ifndef __GNC_PLUGIN_PAGE_INVOICE_H 00034 #define __GNC_PLUGIN_PAGE_INVOICE_H 00035 00036 #include <gtk/gtk.h> 00037 00038 #include "Account.h" 00039 #include "gnc-ledger-display.h" 00040 #include "gnc-plugin-page.h" 00041 #include "dialog-invoice.h" /* for InvoiceWindow */ 00042 00043 G_BEGIN_DECLS 00044 00045 /* type macros */ 00046 #define GNC_TYPE_PLUGIN_PAGE_INVOICE (gnc_plugin_page_invoice_get_type ()) 00047 #define GNC_PLUGIN_PAGE_INVOICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_PLUGIN_PAGE_INVOICE, GncPluginPageInvoice)) 00048 #define GNC_PLUGIN_PAGE_INVOICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_PLUGIN_PAGE_INVOICE, GncPluginPageInvoiceClass)) 00049 #define GNC_IS_PLUGIN_PAGE_INVOICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_PLUGIN_PAGE_INVOICE)) 00050 #define GNC_IS_PLUGIN_PAGE_INVOICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_PLUGIN_PAGE_INVOICE)) 00051 #define GNC_PLUGIN_PAGE_INVOICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_PLUGIN_PAGE_INVOICE, GncPluginPageInvoiceClass)) 00052 00053 #define GNC_PLUGIN_PAGE_INVOICE_NAME "GncPluginPageInvoice" 00054 00055 /* typedefs & structures */ 00056 typedef struct 00057 { 00058 GncPluginPage gnc_plugin_page; 00059 } GncPluginPageInvoice; 00060 00061 typedef struct 00062 { 00063 GncPluginPageClass gnc_plugin_page; 00064 } GncPluginPageInvoiceClass; 00065 00066 /* function prototypes */ 00067 00072 GType gnc_plugin_page_invoice_get_type (void); 00073 00074 00084 GncPluginPage *gnc_plugin_page_invoice_new (InvoiceWindow *iw); 00085 00086 00097 void gnc_plugin_page_invoice_update_menus (GncPluginPage *page, gboolean is_posted, gboolean can_unpost); 00098 00099 00105 void gnc_plugin_page_invoice_update_title (GncPluginPage *page); 00106 00107 G_END_DECLS 00111 #endif /* __GNC_PLUGIN_PAGE_INVOICE_H */ 00112
1.7.4