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/.
17 #include "Sparkline.hxx"
18 #include "SparklineGroup.hxx"
22 /** Tracks and gathers all created sparklines and sparkline groups.
24 * All the collections of sparkline groups and sparklines don't take
25 * the ownership of the pointers.
27 class SC_DLLPUBLIC SparklineList
30 std::vector
<std::weak_ptr
<SparklineGroup
>> m_aSparklineGroups
;
31 std::map
<std::weak_ptr
<SparklineGroup
>, std::vector
<std::weak_ptr
<Sparkline
>>,
38 void addSparkline(std::shared_ptr
<Sparkline
> const& pSparkline
);
39 void removeSparkline(std::shared_ptr
<Sparkline
> const& pSparkline
);
41 std::vector
<std::shared_ptr
<SparklineGroup
>> getSparklineGroups();
43 std::vector
<std::shared_ptr
<Sparkline
>>
44 getSparklinesFor(std::shared_ptr
<SparklineGroup
> const& pSparklineGroup
);
49 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */