diff options
Diffstat (limited to 'sc/source/filter/xml/SparklineGroupsExport.hxx')
-rw-r--r-- | sc/source/filter/xml/SparklineGroupsExport.hxx | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/sc/source/filter/xml/SparklineGroupsExport.hxx b/sc/source/filter/xml/SparklineGroupsExport.hxx new file mode 100644 index 000000000..935941373 --- /dev/null +++ b/sc/source/filter/xml/SparklineGroupsExport.hxx @@ -0,0 +1,46 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * 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 <memory> +#include <unordered_map> +#include <tools/color.hxx> +#include <xmloff/xmltoken.hxx> + +#include <Sparkline.hxx> +#include <SparklineGroup.hxx> + +class ScXMLExport; + +namespace sc +{ +/** Handle the export of sparkline groups and sparklines */ +class SparklineGroupsExport +{ + ScXMLExport& m_rExport; + SCTAB m_nTable; + + void addSparklineGroupAttributes(sc::SparklineAttributes const& rAttributes); + void addSparklineGroup(std::shared_ptr<SparklineGroup> const& pSparklineGroup, + std::vector<std::shared_ptr<Sparkline>> const& rSparklines); + void addSparklineAttributes(Sparkline const& rSparkline); + + void insertColor(Color aColor, xmloff::token::XMLTokenEnum eToken); + void insertBool(bool bValue, xmloff::token::XMLTokenEnum eToken); + +public: + SparklineGroupsExport(ScXMLExport& rExport, SCTAB nTable); + + void write(); +}; +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |