28 #ifndef GNC_CSV_IMPORT_SETTINGS_H 29 #define GNC_CSV_IMPORT_SETTINGS_H 39 #include <gnc-datetime.hpp> 45 enum SEP_BUTTON_TYPES {SEP_SPACE, SEP_TAB, SEP_COMMA, SEP_COLON, SEP_SEMICOLON, SEP_HYPHEN,
53 CsvImportSettings() : m_file_format (GncImpFileFormat::CSV), m_encoding {
"UTF-8"},
54 m_date_format {0}, m_currency_format {0},
55 m_skip_start_lines{0}, m_skip_end_lines{0}, m_skip_alt_lines (
false),
56 m_separators {
","}, m_load_error {
false} { }
78 std::string m_encoding;
80 int m_currency_format;
81 uint32_t m_skip_start_lines;
82 uint32_t m_skip_end_lines;
83 bool m_skip_alt_lines;
84 std::string m_separators;
86 std::vector<uint32_t> m_column_widths;
89 virtual const char* get_group_prefix (
void) = 0;
92 std::string get_no_settings (
void);
93 std::string get_gnc_exp (
void);
94 std::string get_gnc_exp_4 (
void);
110 handle_load_error (GError **key_error,
const std::string& group);
Account handling public routines.
Class convert a file into vector of string vectors.
SETTINGS_COL
Enumeration for the settings combo's.
GncImpFileFormat
Enumeration for file formats supported by this importer.
bool load(void)
Load the widget properties from a key File.
bool save(void)
Save the gathered widget properties to a key File.
bool preset_is_reserved_name(const std::string &name)
Check whether name can be used as a preset name.
Commodity handling public routines.
SEP_BUTTON_TYPES
Enumeration for separator checkbutton types.