LibreOffice Module sc (master) 1
|
Tracks and gathers all created sparklines and sparkline groups. More...
#include <SparklineList.hxx>
Public Member Functions | |
SparklineList () | |
void | addSparkline (std::shared_ptr< Sparkline > const &pSparkline) |
void | removeSparkline (std::shared_ptr< Sparkline > const &pSparkline) |
std::vector< std::shared_ptr< SparklineGroup > > | getSparklineGroups () |
std::vector< std::shared_ptr< Sparkline > > | getSparklinesFor (std::shared_ptr< SparklineGroup > const &pSparklineGroup) |
Private Attributes | |
std::vector< std::weak_ptr< SparklineGroup > > | m_aSparklineGroups |
std::map< std::weak_ptr< SparklineGroup >, std::vector< std::weak_ptr< Sparkline > >, std::owner_less<> > | m_aSparklineGroupMap |
Tracks and gathers all created sparklines and sparkline groups.
All the collections of sparkline groups and sparklines don't take the ownership of the pointers.
Definition at line 27 of file SparklineList.hxx.
|
default |
void sc::SparklineList::addSparkline | ( | std::shared_ptr< Sparkline > const & | pSparkline | ) |
Definition at line 17 of file SparklineList.cxx.
References m_aSparklineGroupMap, and m_aSparklineGroups.
Referenced by ScColumn::CreateSparklineCell().
std::vector< std::shared_ptr< SparklineGroup > > sc::SparklineList::getSparklineGroups | ( | ) |
Definition at line 52 of file SparklineList.cxx.
References m_aSparklineGroups.
std::vector< std::shared_ptr< Sparkline > > sc::SparklineList::getSparklinesFor | ( | std::shared_ptr< SparklineGroup > const & | pSparklineGroup | ) |
Definition at line 73 of file SparklineList.cxx.
References m_aSparklineGroupMap.
Referenced by ScGridWindow::UpdateSparklineGroupOverlay().
void sc::SparklineList::removeSparkline | ( | std::shared_ptr< Sparkline > const & | pSparkline | ) |
Definition at line 28 of file SparklineList.cxx.
References m_aSparklineGroupMap.
|
private |
Definition at line 33 of file SparklineList.hxx.
Referenced by addSparkline(), getSparklinesFor(), and removeSparkline().
|
private |
Definition at line 30 of file SparklineList.hxx.
Referenced by addSparkline(), and getSparklineGroups().