LibreOffice Module sc (master) 1
SparklineExt.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9
10#pragma once
11
12#include <memory>
13#include <vector>
14#include <map>
15#include <rangelst.hxx>
16#include <Sparkline.hxx>
18
19#include <sax/fastattribs.hxx>
20
21#include <xerecord.hxx>
22#include <xeroot.hxx>
23#include <xeextlst.hxx>
24
25namespace xcl::exp
26{
28class SparklineExt : public XclExpExt
29{
30public:
31 SparklineExt(const XclExpRoot& rRoot);
32
33 void SaveXml(XclExpXmlStream& rStream) override;
34 void addSparklineGroup(XclExpXmlStream& rStream, sc::SparklineGroup& rSparklineGroup,
35 std::vector<std::shared_ptr<sc::Sparkline>> const& rSparklines);
36
37 static void
39 sc::SparklineAttributes& rSparklineAttributes);
40 static void addSparklineGroupColors(XclExpXmlStream& rStream,
41 sc::SparklineAttributes& rSparklineAttributes);
42
44};
45
48{
49public:
50 explicit SparklineBuffer(const XclExpRoot& rRoot, const XclExtLstRef& xExtLst);
51};
52
53} // end namespace xcl::exp
54
55/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Base class for ext entries.
Definition: xeextlst.hxx:38
Base class for all Excel records.
Definition: xerecord.hxx:39
Access to global data from other classes.
Definition: xeroot.hxx:113
Common properties for a group of sparklines.
Common properties for a group of sparklines.
Determines if sparklines needs to be exported and initiates the export.
SparklineBuffer(const XclExpRoot &rRoot, const XclExtLstRef &xExtLst)
Export for sparkline type of <ext> element - top sparkline element.
XclExpExtType GetType() override
static void addSparklineGroupAttributes(rtl::Reference< sax_fastparser::FastAttributeList > &pAttrList, sc::SparklineAttributes &rSparklineAttributes)
static void addSparklineGroupColors(XclExpXmlStream &rStream, sc::SparklineAttributes &rSparklineAttributes)
void addSparklineGroup(XclExpXmlStream &rStream, sc::SparklineGroup &rSparklineGroup, std::vector< std::shared_ptr< sc::Sparkline > > const &rSparklines)
void SaveXml(XclExpXmlStream &rStream) override
SparklineExt(const XclExpRoot &rRoot)
XclExpExtType
Definition: xeextlst.hxx:20
@ XclExpExtSparklineType
Definition: xeextlst.hxx:23