LibreOffice Module chart2 (master) 1
|
#include <RangeHighlighter.hxx>
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 |
Definition at line 52 of file RangeHighlighter.hxx.
|
explicit |
Definition at line 72 of file RangeHighlighter.cxx.
|
overridevirtual |
Definition at line 81 of file RangeHighlighter.cxx.
|
overrideprotectedvirtual |
Definition at line 297 of file RangeHighlighter.cxx.
References comphelper::OInterfaceContainerHelper4< class ListenerT >::addInterface(), aEvent, comphelper::UnoImplBase::m_aMutex, m_nAddedListenerCount, maSelectionChangeListeners, and startListening().
|
private |
Definition at line 90 of file RangeHighlighter.cxx.
References DBG_UNHANDLED_EXCEPTION, fillRangesForCategories(), fillRangesForDataPoint(), fillRangesForDataSeries(), fillRangesForDiagram(), fillRangesForErrorBars(), chart::ObjectIdentifier::getDataSeriesForCID(), chart::ObjectIdentifier::getDiagramForCID(), chart::ObjectIdentifier::getFullParentParticle(), chart::ObjectIdentifier::getIndexFromParticleOrCID(), chart::ObjectIdentifier::getObjectPropertySet(), chart::ObjectIdentifier::getObjectType(), chart::ChartModelHelper::isIncludeHiddenCells(), m_aSelectedRanges, m_bIncludeHiddenCells, m_xChartModel, m_xSelectionSupplier, nIndex, chart::OBJECTTYPE_AXIS, chart::OBJECTTYPE_DATA_ERRORS_X, chart::OBJECTTYPE_DATA_ERRORS_Y, chart::OBJECTTYPE_DATA_ERRORS_Z, chart::OBJECTTYPE_DATA_LABEL, chart::OBJECTTYPE_DATA_POINT, chart::OBJECTTYPE_DIAGRAM, chart::OBJECTTYPE_DIAGRAM_FLOOR, chart::OBJECTTYPE_DIAGRAM_WALL, chart::OBJECTTYPE_LEGEND_ENTRY, and chart::OBJECTTYPE_PAGE.
Referenced by selectionChanged(), and startListening().
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
Reimplemented from comphelper::WeakComponentImplHelperBase.
Definition at line 381 of file RangeHighlighter.cxx.
References m_aSelectedRanges, m_nAddedListenerCount, m_xListener, and m_xSelectionSupplier.
|
private |
Definition at line 256 of file RangeHighlighter.cxx.
References aData, chart::DataSourceHelper::getRangesFromLabeledDataSequence(), and m_aSelectedRanges.
Referenced by determineRanges().
|
private |
Definition at line 266 of file RangeHighlighter.cxx.
References comphelper::containerToSequence(), m_aSelectedRanges, m_bIncludeHiddenCells, nIndex, and chart::DataSeriesHelper::translateIndexFromHiddenToFullSequence().
Referenced by determineRanges().
|
private |
Definition at line 210 of file RangeHighlighter.cxx.
References chart::DataSourceHelper::getRangesFromDataSource(), and m_aSelectedRanges.
Referenced by determineRanges(), and fillRangesForErrorBars().
|
private |
Definition at line 195 of file RangeHighlighter.cxx.
References chart::DataSourceHelper::getUsedDataRanges(), i, and m_aSelectedRanges.
Referenced by determineRanges().
|
private |
Definition at line 221 of file RangeHighlighter.cxx.
References DBG_UNHANDLED_EXCEPTION, fillRangesForDataSeries(), chart::DataSourceHelper::getRangesFromDataSource(), and m_aSelectedRanges.
Referenced by determineRanges().
|
private |
Definition at line 332 of file RangeHighlighter.cxx.
References aEvent, comphelper::OInterfaceContainerHelper4< class ListenerT >::forEach(), comphelper::OInterfaceContainerHelper4< class ListenerT >::getLength(), comphelper::UnoImplBase::m_aMutex, and maSelectionChangeListeners.
Referenced by selectionChanged().
|
overrideprotectedvirtual |
Definition at line 85 of file RangeHighlighter.cxx.
References m_aSelectedRanges.
|
overrideprotectedvirtual |
Definition at line 313 of file RangeHighlighter.cxx.
References comphelper::UnoImplBase::m_aMutex, m_nAddedListenerCount, maSelectionChangeListeners, comphelper::OInterfaceContainerHelper4< class ListenerT >::removeInterface(), and stopListening().
|
overrideprotectedvirtual |
Definition at line 323 of file RangeHighlighter.cxx.
References determineRanges(), and fireSelectionEvent().
|
private |
Definition at line 357 of file RangeHighlighter.cxx.
References determineRanges(), m_xListener, and m_xSelectionSupplier.
Referenced by addSelectionChangeListener().
|
private |
Definition at line 370 of file RangeHighlighter.cxx.
References m_xListener, and m_xSelectionSupplier.
Referenced by removeSelectionChangeListener().
|
private |
Definition at line 99 of file RangeHighlighter.hxx.
Referenced by determineRanges(), disposing(), fillRangesForCategories(), fillRangesForDataPoint(), fillRangesForDataSeries(), fillRangesForDiagram(), fillRangesForErrorBars(), and getSelectedRanges().
|
private |
Definition at line 101 of file RangeHighlighter.hxx.
Referenced by determineRanges(), and fillRangesForDataPoint().
|
private |
Definition at line 100 of file RangeHighlighter.hxx.
Referenced by addSelectionChangeListener(), disposing(), and removeSelectionChangeListener().
|
private |
Definition at line 95 of file RangeHighlighter.hxx.
Referenced by determineRanges().
|
private |
Definition at line 97 of file RangeHighlighter.hxx.
Referenced by disposing(), startListening(), and stopListening().
|
private |
Definition at line 94 of file RangeHighlighter.hxx.
Referenced by determineRanges(), disposing(), startListening(), and stopListening().
|
private |
Definition at line 102 of file RangeHighlighter.hxx.
Referenced by addSelectionChangeListener(), fireSelectionEvent(), and removeSelectionChangeListener().