GnuCash  5.6-150-g038405b370+
formulacell.h
Go to the documentation of this file.
1 /********************************************************************\
2  * formulacell.h -- Formula entry/display cell *
3  * *
4  * This program is free software; you can redistribute it and/or *
5  * modify it under the terms of the GNU General Public License as *
6  * published by the Free Software Foundation; either version 2 of *
7  * the License, or (at your option) any later version. *
8  * *
9  * This program is distributed in the hope that it will be useful, *
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12  * GNU General Public License for more details. *
13  * *
14  * You should have received a copy of the GNU General Public License*
15  * along with this program; if not, contact: *
16  * *
17  * Free Software Foundation Voice: +1-617-542-5942 *
18  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
19  * Boston, MA 02110-1301, USA gnu@gnu.org *
20 \********************************************************************/
21 
30  /* Copyright (c) 2002 Joshua Sled <jsled@asynchronous.org> */
31 
32 #ifndef FORMULA_CELL_H
33 #define FORMULA_CELL_H
34 
35 #include <time.h>
36 
37 #include "gnc-ui-util.h"
38 
39 #include "basiccell.h"
40 #include "qof.h"
41 
42 typedef struct
43 {
44  BasicCell cell;
45 
48 
50  char *formula;
51 } FormulaCell;
52 
53 /* installs a callback to handle date recording */
54 BasicCell* gnc_formula_cell_new (void);
55 
56 void gnc_formula_cell_set_value( FormulaCell *fc, const char *newVal );
58 #endif /* FORMULA_CELL_H */
59 
60 /* --------------- end of file ---------------------- */
char * formula
The user-entered formula.
Definition: formulacell.h:50
utility functions for the GnuCash UI
The FormulaCell is a register-table cell which can contain a formula involving numbers, formula markup and strings denoting either functions or variables.
Definition: formulacell.h:42
GNCPrintAmountInfo print_info
The print-info for numeric values.
Definition: formulacell.h:47