LibreOffice Module sc (master) 1
Sparkline.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 "rangelst.hxx"
15#include <memory>
16#include <utility>
17
18namespace sc
19{
20class SparklineGroup;
21
29{
32
34 std::shared_ptr<SparklineGroup> m_pSparklineGroup;
35
36public:
37 Sparkline(SCCOL nColumn, SCROW nRow, std::shared_ptr<SparklineGroup> pSparklineGroup)
38 : m_nColumn(nColumn)
39 , m_nRow(nRow)
40 , m_pSparklineGroup(std::move(pSparklineGroup))
41 {
42 }
43
44 Sparkline(const Sparkline&) = delete;
45 Sparkline& operator=(const Sparkline&) = delete;
46
47 void setInputRange(ScRangeList const& rInputRange) { m_aInputRange = rInputRange; }
48
49 ScRangeList const& getInputRange() const { return m_aInputRange; }
50
51 std::shared_ptr<SparklineGroup> const& getSparklineGroup() const { return m_pSparklineGroup; }
52
53 SCCOL getColumn() const { return m_nColumn; }
54
55 SCROW getRow() const { return m_nRow; }
56};
57
58} // end sc
59
60/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Sparkline data, used for rendering the content of a cell.
Definition: Sparkline.hxx:29
SCROW getRow() const
Definition: Sparkline.hxx:55
ScRangeList m_aInputRange
Definition: Sparkline.hxx:33
ScRangeList const & getInputRange() const
Definition: Sparkline.hxx:49
SCCOL m_nColumn
Definition: Sparkline.hxx:30
std::shared_ptr< SparklineGroup > const & getSparklineGroup() const
Definition: Sparkline.hxx:51
Sparkline & operator=(const Sparkline &)=delete
Sparkline(SCCOL nColumn, SCROW nRow, std::shared_ptr< SparklineGroup > pSparklineGroup)
Definition: Sparkline.hxx:37
std::shared_ptr< SparklineGroup > m_pSparklineGroup
Definition: Sparkline.hxx:34
SCCOL getColumn() const
Definition: Sparkline.hxx:53
Sparkline(const Sparkline &)=delete
void setInputRange(ScRangeList const &rInputRange)
Definition: Sparkline.hxx:47
CAUTION! The following defines must be in the same namespace as the respective type.
Definition: broadcast.cxx:15
#define SC_DLLPUBLIC
Definition: scdllapi.h:27
sal_Int16 SCCOL
Definition: types.hxx:21
sal_Int32 SCROW
Definition: types.hxx:17
int m_nColumn