57 friend class import_factory;
60 document(
const document&) =
delete;
61 document& operator= (
const document&) =
delete;
67 virtual void dump(dump_format_t format, std::string_view output)
const override;
70 virtual void dump(dump_format_t format, std::u16string_view output)
const override;
73 virtual void dump_check(std::ostream& os)
const override;
79 const styles& get_styles()
const;
84 sheet* append_sheet(std::string_view sheet_name);
85 sheet* get_sheet(std::string_view sheet_name);
86 const sheet* get_sheet(std::string_view sheet_name)
const;
87 sheet* get_sheet(sheet_t sheet_pos);
88 const sheet* get_sheet(sheet_t sheet_pos)
const;
101 sheet_t get_sheet_index(std::string_view name)
const;
102 std::string_view get_sheet_name(sheet_t sheet_pos)
const;
114 size_t get_sheet_count()
const;
116 void set_origin_date(
int year,
int month,
int day);
119 void set_formula_grammar(formula_grammar_t grammar);
120 formula_grammar_t get_formula_grammar()
const;
122 const ixion::formula_name_resolver* get_formula_name_resolver(formula_ref_context_t cxt)
const;
124 ixion::model_context& get_model_context();
125 const ixion::model_context& get_model_context()
const;
134 const tables& get_tables()
const;
137 void finalize_import();
138 void insert_dirty_cell(
const ixion::abs_address_t& pos);
141 std::unique_ptr<detail::document_impl> mp_impl;