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#include <utility>
17
18namespace sc
19{
22{
23private:
24 std::shared_ptr<Sparkline> m_pSparkline;
25
26public:
27 SparklineCell(std::shared_ptr<Sparkline> pSparkline)
28 : m_pSparkline(std::move(pSparkline))
29 {
30 }
31
32 SparklineCell(const SparklineCell&) = delete;
34
35 void setInputRange(ScRangeList const& rInputRange) { m_pSparkline->setInputRange(rInputRange); }
36
37 ScRangeList const& getInputRange() { return m_pSparkline->getInputRange(); }
38
39 std::shared_ptr<SparklineGroup> const& getSparklineGroup() const
40 {
41 return m_pSparkline->getSparklineGroup();
42 }
43
44 std::shared_ptr<Sparkline> const& getSparkline() const { return m_pSparkline; }
45};
46
47} // end sc
48
49/* 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 > pSparkline)
CAUTION! The following defines must be in the same namespace as the respective type.
#define SC_DLLPUBLIC
Definition: scdllapi.h:27