LibreOffice Module sc (master) 1
SparklineCell.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
11#pragma once
12
13#include "scdllapi.h"
14#include "Sparkline.hxx"
15#include <memory>
16
17namespace sc
18{
21{
22private:
23 std::shared_ptr<Sparkline> m_pSparkline;
24
25public:
26 SparklineCell(std::shared_ptr<Sparkline> const& pSparkline)
27 : m_pSparkline(pSparkline)
28 {
29 }
30
31 SparklineCell(const SparklineCell&) = delete;
33
34 void setInputRange(ScRangeList const& rInputRange) { m_pSparkline->setInputRange(rInputRange); }
35
36 ScRangeList const& getInputRange() { return m_pSparkline->getInputRange(); }
37
38 std::shared_ptr<SparklineGroup> const& getSparklineGroup() const
39 {
40 return m_pSparkline->getSparklineGroup();
41 }
42
43 std::shared_ptr<Sparkline> const& getSparkline() const { return m_pSparkline; }
44};
45
46} // end sc
47
48/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Holder of a sparkline, that is connected to a cell specific.
void setInputRange(ScRangeList const &rInputRange)
std::shared_ptr< Sparkline > const & getSparkline() const
SparklineCell & operator=(const SparklineCell &)=delete
ScRangeList const & getInputRange()
std::shared_ptr< Sparkline > m_pSparkline
std::shared_ptr< SparklineGroup > const & getSparklineGroup() const
SparklineCell(const SparklineCell &)=delete
SparklineCell(std::shared_ptr< Sparkline > const &pSparkline)
CAUTION! The following defines must be in the same namespace as the respective type.
#define SC_DLLPUBLIC
Definition: scdllapi.h:27