1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
14 #include "Sparkline.hxx"
20 /** Holder of a sparkline, that is connected to a cell specific */
21 class SC_DLLPUBLIC SparklineCell
24 std::shared_ptr
<Sparkline
> m_pSparkline
;
27 SparklineCell(std::shared_ptr
<Sparkline
> pSparkline
)
28 : m_pSparkline(std::move(pSparkline
))
32 SparklineCell(const SparklineCell
&) = delete;
33 SparklineCell
& operator=(const SparklineCell
&) = delete;
35 void setInputRange(ScRangeList
const& rInputRange
) { m_pSparkline
->setInputRange(rInputRange
); }
37 ScRangeList
const& getInputRange() { return m_pSparkline
->getInputRange(); }
39 std::shared_ptr
<SparklineGroup
> const& getSparklineGroup() const
41 return m_pSparkline
->getSparklineGroup();
44 std::shared_ptr
<Sparkline
> const& getSparkline() const { return m_pSparkline
; }
49 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */