Spreadsheet Import Filters

Plain Text (CSV)

class orcus_csv : public orcus::iface::import_filter

Public Functions

orcus_csv(spreadsheet::iface::import_factory *factory)
virtual void read_file(const std::string &filepath)

expects a system path to a local file

virtual void read_stream(const char *content, size_t len)

expects the whole content of the file

virtual const char *get_name() const

Open Document Spreadsheet

class orcus_ods : public orcus::iface::import_filter

Public Functions

orcus_ods(spreadsheet::iface::import_factory *factory)
~orcus_ods()
virtual void read_file(const std::string &filepath)

expects a system path to a local file

virtual void read_stream(const char *content, size_t len)

expects the whole content of the file

virtual const char *get_name() const

Public Static Functions

static bool detect(const unsigned char *blob, size_t size)
class import_ods

Public Static Functions

static void read_styles(const char *p, size_t n, spreadsheet::iface::import_styles *data)

Microsoft Excel 2003 XML

class orcus_xls_xml : public orcus::iface::import_filter

Public Functions

orcus_xls_xml(spreadsheet::iface::import_factory *factory)
~orcus_xls_xml()
virtual void read_file(const std::string &filepath)

expects a system path to a local file

virtual void read_stream(const char *content, size_t len)

expects the whole content of the file

virtual const char *get_name() const

Public Static Functions

static bool detect(const unsigned char *blob, size_t size)

Microsoft Excel 2007 XML

class orcus_xlsx : public orcus::iface::import_filter

Public Functions

orcus_xlsx(spreadsheet::iface::import_factory *factory)
~orcus_xlsx()
orcus_xlsx(const orcus_xlsx&)
orcus_xlsx &operator=(const orcus_xlsx&)
virtual void read_file(const std::string &filepath)

expects a system path to a local file

virtual void read_stream(const char *content, size_t len)

expects the whole content of the file

virtual const char *get_name() const

Public Static Functions

static bool detect(const unsigned char *blob, size_t size)
class import_xlsx

Public Static Functions

static void read_table(const char *p, size_t n, spreadsheet::iface::import_table &table, spreadsheet::iface::import_reference_resolver &resolver)

Gnumeric XML

class orcus_gnumeric : public orcus::iface::import_filter

Public Functions

orcus_gnumeric(spreadsheet::iface::import_factory *factory)
~orcus_gnumeric()
virtual void read_file(const std::string &filepath)

expects a system path to a local file

virtual void read_stream(const char *content, size_t len)

expects the whole content of the file

virtual const char *get_name() const

Public Static Functions

static bool detect(const unsigned char *blob, size_t size)

Generic XML

class orcus_xml

Public Functions

orcus_xml(xmlns_repository &ns_repo, spreadsheet::iface::import_factory *im_fact, spreadsheet::iface::export_factory *ex_fact)
~orcus_xml()
void set_namespace_alias(const pstring &alias, const pstring &uri)
void set_cell_link(const pstring &xpath, const pstring &sheet, spreadsheet::row_t row, spreadsheet::col_t col)
void start_range(const pstring &sheet, spreadsheet::row_t row, spreadsheet::col_t col)
void append_field_link(const pstring &xpath)
void commit_range()
void append_sheet(const pstring &name)
void read_stream(const char *p, size_t n)
void write(const char *p_in, size_t n_in, std::ostream &out) const