gboolean blank_zero
fraction used for rounding, if 0 no rounding
int fraction
the amount associated with this cell
utility functions for the GnuCash UI
void gnc_price_cell_blank(PriceCell *cell)
Sets the cell as blank, regardless of the blank_zero value.
The PriceCell object implements a cell handler that stores a single double-precision value...
GNCPrintAmountInfo print_info
controls printing of zero values
void gnc_price_cell_set_fraction(PriceCell *cell, int fraction)
Sets the fraction used for rounding.
void gnc_price_cell_set_print_info(PriceCell *cell, GNCPrintAmountInfo print_info)
set the printing context of the price cell
gboolean need_to_parse
amount printing context
void gnc_price_cell_set_blank_zero(PriceCell *cell, gboolean blank_zero)
determines whether 0 values are left blank or printed.
gboolean gnc_price_cell_set_value(PriceCell *cell, gnc_numeric amount)
updates amount, returns TRUE if string representation actually changed
BasicCell * gnc_price_cell_new(void)
installs a callback to handle price recording
void gnc_price_cell_set_debt_credit_value(PriceCell *debit, PriceCell *credit, gnc_numeric amount)
updates two cells; the deb cell if amt is negative, the credit cell if amount is positive, and makes the other cell blank.
gnc_numeric gnc_price_cell_get_value(PriceCell *cell)
return the value of a price cell