47 typedef QofSession* (*QofSessionCB) (void);
50 char* gnc_normalize_account_separator (
const char* separator);
51 gboolean gnc_reverse_balance(
const Account* account);
55 void gnc_set_use_equity_type_opening_balance_account (QofBook* book);
56 gboolean gnc_using_equity_type_opening_balance_account (QofBook* book);
59 #define GNC_PREFS_GROUP_OPEN_SAVE "dialogs.open-save" 60 #define GNC_PREFS_GROUP_EXPORT "dialogs.export-accounts" 61 #define GNC_PREFS_GROUP_REPORT "dialogs.report" 62 #define GNC_PREF_AUTO_DECIMAL_POINT "auto-decimal-point" 63 #define GNC_PREF_AUTO_DECIMAL_PLACES "auto-decimal-places" 67 char* gnc_get_default_directory (
const char* section);
68 void gnc_set_default_directory (
const char* section,
69 const char* directory);
72 QofBook* gnc_get_current_book (
void);
82 gboolean gnc_is_new_book (
void);
84 void gnc_set_current_book_tax_name_type (gboolean name_changed,
86 gboolean type_changed,
87 const char* tax_type);
88 const char* gnc_get_current_book_tax_name (
void);
89 const char* gnc_get_current_book_tax_type (
void);
94 Account* gnc_get_current_root_account (
void);
95 gnc_commodity_table* gnc_get_current_commodities (
void);
129 gboolean show_leaf_accounts);
150 const char* gnc_get_reconcile_str (
char reconciled_flag);
151 const char* gnc_get_reconcile_valid_flags (
void);
152 const char* gnc_get_reconcile_flag_order (
void);
179 EQUITY_OPENING_BALANCE,
180 EQUITY_RETAINED_EARNINGS,
185 GNCEquityType equity_type,
186 gnc_commodity* currency);
187 gboolean gnc_account_create_opening_balance (
Account* account,
239 gboolean* currency_from_account_found);
252 typedef struct _GNCPrintAmountInfo
254 const gnc_commodity *commodity;
256 guint8 max_decimal_places;
257 guint8 min_decimal_places;
259 unsigned int use_separators : 1;
260 unsigned int use_symbol : 1;
261 unsigned int use_locale : 1;
262 unsigned int monetary : 1;
263 unsigned int force_fit : 1;
264 unsigned int round : 1;
271 gboolean use_symbol);
274 gboolean use_symbol);
277 gboolean use_symbol);
280 gboolean use_symbol);
317 const char* printable_value(gdouble val, gint denom);
318 char* number_to_words(gdouble val, gint64 denom);
319 char* numeric_to_words(gnc_numeric val);
333 gnc_numeric* result,
char** endstr);
345 gunichar negative_sign, gunichar decimal_point,
346 gunichar group_separator,
const char* ignore_list,
347 gnc_numeric* result,
char** endstr);
366 char** endstr, gboolean skip);
376 gunichar negative_sign, gunichar decimal_point,
377 gunichar group_separator,
const char* ignore_list,
378 gnc_numeric* result,
char** endstr);
405 void gnc_ui_util_init (
void);
409 void gnc_ui_util_remove_registered_prefs (
void);
432 int* zcursor_position);
458 const char* incoming_text,
459 const char** symbol);
gboolean xaccParseAmount(const char *in_str, gboolean monetary, gnc_numeric *result, char **endstr)
Parses in_str to obtain a numeric result.
gboolean xaccParseAmountImport(const char *in_str, gboolean monetary, gnc_numeric *result, char **endstr, gboolean skip)
Similar to xaccParseAmount, but with two differences.
gnc_commodity * gnc_locale_default_currency_nodefault(void)
Returns the default currency of the current locale, or NULL if no sensible currency could be identifi...
Business Interface: Object OWNERs.
const char * gnc_print_amount_with_bidi_ltr_isolate(gnc_numeric val, GNCPrintAmountInfo info)
Make a string representation of a gnc_numeric.
char * gnc_wrap_text_with_bidi_ltr_isolate(const char *text)
This function helps with GTK's use of 'Unicode Bidirectional Text Algorithm'.
const char * xaccPrintAmount(gnc_numeric val, GNCPrintAmountInfo info)
Make a string representation of a gnc_numeric.
void gnc_book_option_num_field_source_change_cb(gboolean num_action)
Calls gnc_book_option_num_field_source_change to initiate registered callbacks when num_field_source ...
char * gnc_filter_text_for_currency_commodity(const gnc_commodity *comm, const char *incoming_text, const char **symbol)
Returns the incoming text removed of currency symbol.
gnc_commodity * gnc_default_report_currency(void)
Return the default currency for use in reports, as set by the user.
gnc_commodity * gnc_default_currency(void)
Return the default currency set by the user.
gboolean xaccParseAmountExtImport(const char *in_str, gboolean monetary, gunichar negative_sign, gunichar decimal_point, gunichar group_separator, const char *ignore_list, gnc_numeric *result, char **endstr)
Similar to xaccParseAmountExtended, but will not automatically set a decimal point, regardless of what the user has set for this option.
char * gnc_get_account_name_for_register(const Account *account)
Get either the full name of the account or the simple name, depending on the configuration parameter ...
Account handling public routines.
char * gnc_get_account_name_for_split_register(const Account *account, gboolean show_leaf_accounts)
Get either the full name of the account or the simple name, depending on the show_leaf_accounts.
const char * gnc_get_doclink_flag_order(void)
Get a string containing document link flag order.
gboolean xaccParseAmountExtended(const char *in_str, gboolean monetary, gunichar negative_sign, gunichar decimal_point, gunichar group_separator, const char *ignore_list, gnc_numeric *result, char **endstr)
Converts a string to a gnc_numeric.
void gnc_filter_text_set_cursor_position(const char *incoming_text, const char *symbol, int *zcursor_position)
Updates cursor_position after removal of currency symbols.
gchar * gnc_list_formatter(GList *strings)
This function takes a GList of char*, and uses locale-sensitive list formatter.
int xaccSPrintAmount(char *buf, gnc_numeric val, GNCPrintAmountInfo info)
Make a string representation of a gnc_numeric.
char * gnc_filter_text_for_control_chars(const char *incoming_text)
Returns the incoming text removed of control characters.
Account * gnc_account_lookup_for_register(const Account *base_account, const char *name)
Retrieve the account matching the given name starting from the descendants of base_account.
gnc_commodity * gnc_account_or_default_currency(const Account *account, gboolean *currency_from_account_found)
Returns a gnc_commodity that is a currency, suitable for being a Transaction's currency.
char * gnc_filter_text_for_currency_symbol(const char *incoming_text, const char *symbol)
Returns the incoming text removed of a currency symbol.
const char * gnc_get_doclink_str(char link_flag)
Get a string representing the document link type.
gint64 time64
Most systems that are currently maintained, including Microsoft Windows, BSD-derived Unixes and Linux...
const char * gnc_get_doclink_valid_flags(void)
Get a string containing documentation link valid flags.
gnc_commodity * gnc_locale_default_currency(void)
Returns the default currency of the current locale.