8#ifndef INCLUDED_ORCUS_SPREADSHEET_DOCUMENT_HPP
9#define INCLUDED_ORCUS_SPREADSHEET_DOCUMENT_HPP
11#include "orcus/env.hpp"
12#include "orcus/interface.hpp"
13#include "orcus/spreadsheet/types.hpp"
20class formula_name_resolver;
31namespace spreadsheet {
35class pivot_collection;
39struct document_config;
66 virtual void dump(dump_format_t format,
const std::string& output)
const override;
69 virtual void dump_check(std::ostream& os)
const override;
75 const styles& get_styles()
const;
80 sheet* append_sheet(std::string_view sheet_name);
81 sheet* get_sheet(std::string_view sheet_name);
82 const sheet* get_sheet(std::string_view sheet_name)
const;
83 sheet* get_sheet(sheet_t sheet_pos);
84 const sheet* get_sheet(sheet_t sheet_pos)
const;
97 sheet_t get_sheet_index(std::string_view name)
const;
98 std::string_view get_sheet_name(sheet_t sheet_pos)
const;
110 size_t get_sheet_count()
const;
112 void set_origin_date(
int year,
int month,
int day);
115 void set_formula_grammar(formula_grammar_t grammar);
116 formula_grammar_t get_formula_grammar()
const;
118 const ixion::formula_name_resolver* get_formula_name_resolver(formula_ref_context_t cxt)
const;
120 ixion::model_context& get_model_context();
121 const ixion::model_context& get_model_context()
const;
150 void dump_flat(
const std::string& outdir)
const;
151 void dump_html(const ::std::string& outdir)
const;
152 void dump_json(const ::std::string& outdir)
const;
153 void dump_csv(
const std::string& outdir)
const;
154 void dump_debug_state(
const std::string& outdir)
const;
156 void finalize_import();
157 void insert_dirty_cell(
const ixion::abs_address_t& pos);
160 std::unique_ptr<detail::document_impl> mp_impl;
Definition: interface.hpp:64
Definition: document.hpp:54
virtual void dump_check(std::ostream &os) const override
void recalc_formula_cells()
const table_t * get_table(std::string_view name) const
void set_sheet_name(sheet_t sheet_pos, std::string name)
void insert_table(table_t *p)
virtual void dump(dump_format_t format, const std::string &output) const override
Definition: factory.hpp:52
Definition: pivot.hpp:208
Definition: shared_strings.hpp:31
Definition: styles.hpp:202
Definition: string_pool.hpp:26
Definition: types.hpp:528
Definition: config.hpp:18
Definition: types.hpp:590
Definition: auto_filter.hpp:118