GnuCash  5.6-150-g038405b370+
gncEntryLedgerP.h
Go to the documentation of this file.
1 /*
2  * gncEntryLedgerP.h -- a ledger widget for manipulating GncEntry's
3  * Copyright (C) 2001, 2002 Derek Atkins
4  * Author: Derek Atkins <warlord@MIT.EDU>
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License as
8  * published by the Free Software Foundation; either version 2 of
9  * the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, contact:
18  *
19  * Free Software Foundation Voice: +1-617-542-5942
20  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
21  * Boston, MA 02110-1301, USA gnu@gnu.org
22  */
23 
24 #ifndef GNC_ENTRY_LEDGERP_H
25 #define GNC_ENTRY_LEDGERP_H
26 
27 #include "qof.h"
28 #include "table-allgui.h"
29 #include "gncEntryLedger.h"
37 {
38  GncGUID blank_entry_guid;
39  gboolean blank_entry_edited;
40  gboolean traverse_to_new;
41 
42  gboolean loading;
43  gboolean full_refresh;
44  gint component_id;
47 
48  GncEntry * hint_entry;
50  GtkWidget * parent;
51  QofBook * book;
52  Table * table;
53  GncOrder * order;
54  GncInvoice * invoice;
55  QofQuery * query;
56 
57  GncEntryLedgerType type;
58 
59  gboolean is_cust_doc;
60  gboolean is_credit_note;
62  const gchar * prefs_group;
63 };
64 
65 GncEntry * gnc_entry_ledger_get_entry (GncEntryLedger *ledger,
66  VirtualCellLocation vcell_loc);
67 Account * gnc_entry_ledger_get_account_by_name (GncEntryLedger *ledger, BasicCell * bcell,
68  const char *name, gboolean *isnew);
69 Account * gnc_entry_ledger_get_account (GncEntryLedger *ledger,
70  const char * cell_name);
71 GncTaxTable * gnc_entry_ledger_get_taxtable (GncEntryLedger *ledger,
72  const char *cell_name);
73 
74 gint gnc_entry_ledger_get_type (GncEntryLedger *ledger,
75  const char * cell_name);
76 gboolean gnc_entry_ledger_get_checkmark (GncEntryLedger *ledger,
77  const char * cell_name);
78 gboolean gnc_entry_ledger_get_numeric (GncEntryLedger *ledger,
79  const char *cell_name,
80  gnc_numeric *value);
81 
82 const char * gnc_entry_ledger_type_string_getter (char flag);
83 const char * gnc_entry_ledger_how_string_getter (char flag);
84 
85 gboolean gnc_entry_ledger_find_entry (GncEntryLedger *ledger, GncEntry *entry,
86  VirtualCellLocation *vcell_loc);
87 
88 void gnc_entry_ledger_load_xfer_cells (GncEntryLedger *ledger);
89 
90 void gnc_entry_ledger_display_init (GncEntryLedger *ledger);
91 void gnc_entry_ledger_display_fini (GncEntryLedger *ledger);
92 
93 void gnc_entry_ledger_compute_value (GncEntryLedger *ledger,
94  gnc_numeric *value,
95  gnc_numeric *tax_value);
97 #endif /* GNC_ENTRY_LEDGERP_H */
STRUCTS.
GncEntry * gnc_entry_ledger_get_entry(GncEntryLedger *ledger, VirtualCellLocation vcell_loc)
Returns the GncEntry at the given location, or NULL if the location is not valid. ...
GtkWidget * parent
A Hint for where to display.
gboolean full_refresh
To keep from recursing from events.
const gchar * prefs_group
is this an invoice (or a bill)?
gint component_id
Is a full refresh ok?
gboolean is_credit_note
is this document customer or vendor related ?
Declarations for the Table object.
GDate last_date_entered
To register for events.
The type used to store guids in C.
Definition: guid.h:75
A Query.
Definition: qofquery.cpp:74
modtime is the internal date of the last modtime See libgnucash/engine/TaxTableBillTermImmutability.txt for an explanation of the following Code that handles refcount, parent, child, invisible and children is identical to that in ::GncBillTerm