/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #pragma once #include "filesystem_env.hpp" #include namespace orcus { namespace spreadsheet { class document; namespace detail { struct document_impl; struct sheet_impl; class doc_debug_state_dumper { const document_impl& m_doc; public: doc_debug_state_dumper(const document_impl& doc); void dump(const fs::path& outdir) const; private: void dump_properties(const fs::path& outdir) const; void dump_styles(const fs::path& outdir) const; void dump_named_expressions(const fs::path& outdir) const; }; class sheet_debug_state_dumper { const sheet_impl& m_sheet; std::string_view m_sheet_name; public: sheet_debug_state_dumper(const sheet_impl& sheet, std::string_view sheet_name); void dump(const fs::path& outdir) const; private: void dump_cell_values(const fs::path& outdir) const; void dump_cell_formats(const fs::path& outdir) const; void dump_column_formats(const fs::path& outdir) const; void dump_row_formats(const fs::path& outdir) const; void dump_column_widths(const fs::path& outdir) const; void dump_row_heights(const fs::path& outdir) const; void dump_auto_filter(const fs::path& outdir) const; void dump_named_expressions(const fs::path& outdir) const; }; }}} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */