Coverage Report

Created: 2026-09-28 10:59

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libreoffice/sc/inc/SparklineCell.hxx
Line
Count
Source
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
18
namespace sc
19
{
20
/** Holder of a sparkline, that is connected to a cell specific */
21
class SC_DLLPUBLIC SparklineCell
22
{
23
private:
24
    std::shared_ptr<Sparkline> m_pSparkline;
25
26
public:
27
    SparklineCell(std::shared_ptr<Sparkline> pSparkline)
28
12
        : m_pSparkline(std::move(pSparkline))
29
12
    {
30
12
    }
31
32
    SparklineCell(const SparklineCell&) = delete;
33
    SparklineCell& operator=(const SparklineCell&) = delete;
34
35
0
    void setInputRange(ScRangeList const& rInputRange) { m_pSparkline->setInputRange(rInputRange); }
36
37
0
    ScRangeList const& getInputRange() { return m_pSparkline->getInputRange(); }
38
39
    std::shared_ptr<SparklineGroup> const& getSparklineGroup() const
40
0
    {
41
0
        return m_pSparkline->getSparklineGroup();
42
0
    }
43
44
0
    std::shared_ptr<Sparkline> const& getSparkline() const { return m_pSparkline; }
45
};
46
47
} // end sc
48
49
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */