LibreOffice Module sc (master) 1
SparklineFragment.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 "excelhandlers.hxx"
14#include <SparklineGroup.hxx>
15
16#include <vector>
17#include <memory>
18
19namespace oox
20{
21class AttributeList;
22}
23
24namespace oox::xls
25{
28{
29public:
33};
34
37{
38private:
39 std::vector<Sparkline> m_aSparklines;
40
41 std::shared_ptr<sc::SparklineGroup> m_pSparklineGroup;
42
43public:
46 {
47 }
48
49 const std::shared_ptr<sc::SparklineGroup>& getSparklineGroup() { return m_pSparklineGroup; }
50
51 std::vector<Sparkline>& getSparklines() { return m_aSparklines; }
52};
53
56{
57private:
58 std::vector<SparklineGroup> m_aSparklineGroups;
59
60public:
62
64 const AttributeList& rAttribs) override;
65 void onStartElement(const AttributeList& rAttribs) override;
66 void onCharacters(const OUString& rCharacters) override;
67 void onEndElement() override;
68
69 void insertSparkline(SparklineGroup& rSparklineGroup, Sparkline& rSparkline);
70};
71
72} //namespace oox::xls
73
74/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Transitional sparkline group data.
std::vector< Sparkline > & getSparklines()
std::vector< Sparkline > m_aSparklines
std::shared_ptr< sc::SparklineGroup > m_pSparklineGroup
const std::shared_ptr< sc::SparklineGroup > & getSparklineGroup()
Handle import of the sparkline, sparkline group and attributes.
void onStartElement(const AttributeList &rAttribs) override
SparklineGroupsContext(WorksheetContextBase &rFragment)
std::vector< SparklineGroup > m_aSparklineGroups
void onCharacters(const OUString &rCharacters) override
oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
void insertSparkline(SparklineGroup &rSparklineGroup, Sparkline &rSparkline)
Transitional sparkline data.
Context handler derived from the WorksheetHelper helper class.
CAUTION! The following defines must be in the same namespace as the respective type.
Definition: broadcast.cxx:15