LibreOffice Module chart2 (master) 1
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
chart::RangeHighlighter Class Referencefinal

#include <RangeHighlighter.hxx>

Inheritance diagram for chart::RangeHighlighter:
[legend]
Collaboration diagram for chart::RangeHighlighter:
[legend]

Public Member Functions

 RangeHighlighter (const rtl::Reference< ::chart::ChartModel > &xSelectionSupplier)
 
virtual ~RangeHighlighter () override
 
- Public Member Functions inherited from comphelper::WeakComponentImplHelper< typename... Ifc >
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
virtual void SAL_CALL dispose () noexcept final override
 
virtual void SAL_CALL addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override
 
virtual void SAL_CALL removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 
- Public Member Functions inherited from comphelper::WeakComponentImplHelperBase
virtual ~WeakComponentImplHelperBase () override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override
 
virtual void SAL_CALL removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) override
 
virtual void disposing (std::unique_lock< std::mutex > &)
 
- Public Member Functions inherited from comphelper::UnoImplBase
virtual ~UnoImplBase ()
 

Protected Member Functions

virtual css::uno::Sequence< css::chart2::data::HighlightedRange > SAL_CALL getSelectedRanges () override
 
virtual void SAL_CALL addSelectionChangeListener (const css::uno::Reference< css::view::XSelectionChangeListener > &xListener) override
 
virtual void SAL_CALL removeSelectionChangeListener (const css::uno::Reference< css::view::XSelectionChangeListener > &xListener) override
 
virtual void SAL_CALL selectionChanged (const css::lang::EventObject &aEvent) override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) override
 
virtual void disposing (std::unique_lock< std::mutex > &) override
 
- Protected Member Functions inherited from comphelper::WeakComponentImplHelperBase
void throwIfDisposed (std::unique_lock< std::mutex > &)
 

Private Member Functions

void fireSelectionEvent ()
 
void startListening ()
 
void stopListening ()
 
void determineRanges ()
 
void fillRangesForDiagram (const rtl::Reference< ::chart::Diagram > &xDiagram)
 
void fillRangesForDataSeries (const css::uno::Reference< css::chart2::XDataSeries > &xSeries)
 
void fillRangesForCategories (const css::uno::Reference< css::chart2::XAxis > &xAxis)
 
void fillRangesForDataPoint (const rtl::Reference< ::chart::DataSeries > &xDataSeries, sal_Int32 nIndex)
 
void fillRangesForErrorBars (const css::uno::Reference< css::beans::XPropertySet > &xErrorBar, const css::uno::Reference< css::chart2::XDataSeries > &xDataSeries)
 

Private Attributes

css::uno::Reference< css::view::XSelectionSupplier > m_xSelectionSupplier
 
rtl::Reference< ::chart::ChartModel > m_xChartModel
 
css::uno::Reference< css::view::XSelectionChangeListener > m_xListener
 
css::uno::Sequence< css::chart2::data::HighlightedRange > m_aSelectedRanges
 
sal_Int32 m_nAddedListenerCount
 
bool m_bIncludeHiddenCells
 
comphelper::OInterfaceContainerHelper4< css::view::XSelectionChangeListener > maSelectionChangeListeners
 

Additional Inherited Members

- Protected Attributes inherited from comphelper::WeakComponentImplHelperBase
comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > maEventListeners
 
- Protected Attributes inherited from comphelper::UnoImplBase
std::mutex m_aMutex
 
bool m_bDisposed
 

Detailed Description

Definition at line 52 of file RangeHighlighter.hxx.

Constructor & Destructor Documentation

◆ RangeHighlighter()

chart::RangeHighlighter::RangeHighlighter ( const rtl::Reference< ::chart::ChartModel > &  xSelectionSupplier)
explicit

Definition at line 72 of file RangeHighlighter.cxx.

◆ ~RangeHighlighter()

chart::RangeHighlighter::~RangeHighlighter ( )
overridevirtual

Definition at line 81 of file RangeHighlighter.cxx.

Member Function Documentation

◆ addSelectionChangeListener()

void SAL_CALL chart::RangeHighlighter::addSelectionChangeListener ( const css::uno::Reference< css::view::XSelectionChangeListener > &  xListener)
overrideprotectedvirtual

◆ determineRanges()

void chart::RangeHighlighter::determineRanges ( )
private

◆ disposing() [1/2]

virtual void SAL_CALL chart::RangeHighlighter::disposing ( const css::lang::EventObject &  Source)
overrideprotectedvirtual

◆ disposing() [2/2]

void chart::RangeHighlighter::disposing ( std::unique_lock< std::mutex > &  )
overrideprotectedvirtual

◆ fillRangesForCategories()

void chart::RangeHighlighter::fillRangesForCategories ( const css::uno::Reference< css::chart2::XAxis > &  xAxis)
private

◆ fillRangesForDataPoint()

void chart::RangeHighlighter::fillRangesForDataPoint ( const rtl::Reference< ::chart::DataSeries > &  xDataSeries,
sal_Int32  nIndex 
)
private

◆ fillRangesForDataSeries()

void chart::RangeHighlighter::fillRangesForDataSeries ( const css::uno::Reference< css::chart2::XDataSeries > &  xSeries)
private

◆ fillRangesForDiagram()

void chart::RangeHighlighter::fillRangesForDiagram ( const rtl::Reference< ::chart::Diagram > &  xDiagram)
private

Definition at line 195 of file RangeHighlighter.cxx.

References chart::DataSourceHelper::getUsedDataRanges(), i, and m_aSelectedRanges.

Referenced by determineRanges().

◆ fillRangesForErrorBars()

void chart::RangeHighlighter::fillRangesForErrorBars ( const css::uno::Reference< css::beans::XPropertySet > &  xErrorBar,
const css::uno::Reference< css::chart2::XDataSeries > &  xDataSeries 
)
private

◆ fireSelectionEvent()

void chart::RangeHighlighter::fireSelectionEvent ( )
private

◆ getSelectedRanges()

Sequence< chart2::data::HighlightedRange > SAL_CALL chart::RangeHighlighter::getSelectedRanges ( )
overrideprotectedvirtual

Definition at line 85 of file RangeHighlighter.cxx.

References m_aSelectedRanges.

◆ removeSelectionChangeListener()

void SAL_CALL chart::RangeHighlighter::removeSelectionChangeListener ( const css::uno::Reference< css::view::XSelectionChangeListener > &  xListener)
overrideprotectedvirtual

◆ selectionChanged()

void SAL_CALL chart::RangeHighlighter::selectionChanged ( const css::lang::EventObject &  aEvent)
overrideprotectedvirtual

Definition at line 323 of file RangeHighlighter.cxx.

References determineRanges(), and fireSelectionEvent().

◆ startListening()

void chart::RangeHighlighter::startListening ( )
private

Definition at line 357 of file RangeHighlighter.cxx.

References determineRanges(), m_xListener, and m_xSelectionSupplier.

Referenced by addSelectionChangeListener().

◆ stopListening()

void chart::RangeHighlighter::stopListening ( )
private

Definition at line 370 of file RangeHighlighter.cxx.

References m_xListener, and m_xSelectionSupplier.

Referenced by removeSelectionChangeListener().

Member Data Documentation

◆ m_aSelectedRanges

css::uno::Sequence< css::chart2::data::HighlightedRange > chart::RangeHighlighter::m_aSelectedRanges
private

◆ m_bIncludeHiddenCells

bool chart::RangeHighlighter::m_bIncludeHiddenCells
private

Definition at line 101 of file RangeHighlighter.hxx.

Referenced by determineRanges(), and fillRangesForDataPoint().

◆ m_nAddedListenerCount

sal_Int32 chart::RangeHighlighter::m_nAddedListenerCount
private

◆ m_xChartModel

rtl::Reference< ::chart::ChartModel > chart::RangeHighlighter::m_xChartModel
private

Definition at line 95 of file RangeHighlighter.hxx.

Referenced by determineRanges().

◆ m_xListener

css::uno::Reference< css::view::XSelectionChangeListener > chart::RangeHighlighter::m_xListener
private

Definition at line 97 of file RangeHighlighter.hxx.

Referenced by disposing(), startListening(), and stopListening().

◆ m_xSelectionSupplier

css::uno::Reference< css::view::XSelectionSupplier > chart::RangeHighlighter::m_xSelectionSupplier
private

Definition at line 94 of file RangeHighlighter.hxx.

Referenced by determineRanges(), disposing(), startListening(), and stopListening().

◆ maSelectionChangeListeners

comphelper::OInterfaceContainerHelper4<css::view::XSelectionChangeListener> chart::RangeHighlighter::maSelectionChangeListeners
private

The documentation for this class was generated from the following files: