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 22 /** @addtogroup Cell Cell 23 * @{ 24 * @file formulacell.h 25 * @struct FormulaCell 26 * @brief The FormulaCell is a register-table cell which can contain a formula 27 * involving numbers, formula markup and strings denoting either functions or 28 * variables. 29 */ 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 46 /** The print-info for numeric values. **/ 47 GNCPrintAmountInfo print_info; 48 49 /** The user-entered formula. **/ 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 ); 57 /** @} */ 58 #endif /* FORMULA_CELL_H */ 59 60 /* --------------- end of file ---------------------- */ 61