tdf#48459 sw inline heading: don't apply inside frames or over 120 chars
[LibreOffice.git] / sc / inc / SparklineCell.hxx
blob28a7b4249808409b8430d51186c8a98e948999a3
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
9 */
11 #pragma once
13 #include "scdllapi.h"
14 #include "Sparkline.hxx"
15 #include <memory>
16 #include <utility>
18 namespace sc
20 /** Holder of a sparkline, that is connected to a cell specific */
21 class SC_DLLPUBLIC SparklineCell
23 private:
24 std::shared_ptr<Sparkline> m_pSparkline;
26 public:
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; }
47 } // end sc
49 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */