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 "rangelst.hxx"
22 /** Sparkline data, used for rendering the content of a cell
24 * Contains the input range of the data that is being drawn and a reference
25 * to the SparklineGroup, which includes common properties of multiple
28 class SC_DLLPUBLIC Sparkline
33 ScRangeList m_aInputRange
;
34 std::shared_ptr
<SparklineGroup
> m_pSparklineGroup
;
37 Sparkline(SCCOL nColumn
, SCROW nRow
, std::shared_ptr
<SparklineGroup
> pSparklineGroup
)
40 , m_pSparklineGroup(std::move(pSparklineGroup
))
44 Sparkline(const Sparkline
&) = delete;
45 Sparkline
& operator=(const Sparkline
&) = delete;
47 void setInputRange(ScRangeList
const& rInputRange
) { m_aInputRange
= rInputRange
; }
49 ScRangeList
const& getInputRange() const { return m_aInputRange
; }
51 std::shared_ptr
<SparklineGroup
> const& getSparklineGroup() const { return m_pSparklineGroup
; }
53 SCCOL
getColumn() const { return m_nColumn
; }
55 SCROW
getRow() const { return m_nRow
; }
60 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */