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

This sequence object does NOT store actual sequence data. More...

#include <UncachedDataSequence.hxx>

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

Public Member Functions

 UncachedDataSequence (rtl::Reference< InternalDataProvider > xIntDataProv, OUString aRangeRepresentation)
 The referring data provider is held as uno reference to ensure its lifetime is at least as long as the one of this object. More...
 
 UncachedDataSequence (rtl::Reference< InternalDataProvider > xIntDataProv, OUString aRangeRepresentation, const OUString &rRole)
 
 UncachedDataSequence (const UncachedDataSequence &rSource)
 
virtual ~UncachedDataSequence () override
 
virtual OUString SAL_CALL getImplementationName () override
 declare XServiceInfo methods More...
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
- Public Member Functions inherited from comphelper::OMutexAndBroadcastHelper
 OMutexAndBroadcastHelper ()
 
::osl::Mutex & GetMutex ()
 
::cppu::OBroadcastHelperGetBroadcastHelper ()
 
const ::cppu::OBroadcastHelperGetBroadcastHelper () const
 
- Public Member Functions inherited from comphelper::OPropertyContainer
virtual ~OPropertyContainer ()
 
- Public Member Functions inherited from comphelper::OPropertyArrayUsageHelper< UncachedDataSequence >
 OPropertyArrayUsageHelper ()
 
virtual ~OPropertyArrayUsageHelper ()
 
::cppu::IPropertyArrayHelpergetArrayHelper ()
 

Private Member Functions

virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 merge XInterface implementations More...
 
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper () override
 
virtual ::cppu::IPropertyArrayHelpercreateArrayHelper () const override
 
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getData () override
 
virtual OUString SAL_CALL getSourceRangeRepresentation () override
 
virtual css::uno::Sequence< OUString > SAL_CALL generateLabel (css::chart2::data::LabelOrigin nLabelOrigin) override
 
virtual ::sal_Int32 SAL_CALL getNumberFormatKeyByIndex (::sal_Int32 nIndex) override
 
virtual css::uno::Sequence< double > SAL_CALL getNumericalData () override
 
virtual css::uno::Sequence< OUString > SAL_CALL getTextualData () override
 
virtual void SAL_CALL replaceByIndex (::sal_Int32 Index, const css::uno::Any &Element) override
 
virtual ::sal_Int32 SAL_CALL getCount () override
 
virtual css::uno::Any SAL_CALL getByIndex (::sal_Int32 Index) override
 
virtual css::uno::Type SAL_CALL getElementType () override
 
virtual sal_Bool SAL_CALL hasElements () override
 
virtual OUString SAL_CALL getName () override
 
virtual void SAL_CALL setName (const OUString &aName) override
 
virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone () override
 
virtual sal_Bool SAL_CALL isModified () override
 
virtual void SAL_CALL setModified (sal_Bool bModified) override
 
virtual void SAL_CALL addModifyListener (const css::uno::Reference< css::util::XModifyListener > &aListener) override
 
virtual void SAL_CALL removeModifyListener (const css::uno::Reference< css::util::XModifyListener > &aListener) override
 
void fireModifyEvent ()
 
void registerProperties ()
 This method registers all properties. More...
 

Private Attributes

sal_Int32 m_nNumberFormatKey
 
OUString m_sRole
 
OUString m_aXMLRange
 
rtl::Reference< InternalDataProviderm_xDataProvider
 
OUString m_aSourceRepresentation
 
rtl::Reference< ModifyEventForwarderm_xModifyEventForwarder
 

Additional Inherited Members

- Protected Member Functions inherited from comphelper::OPropertyContainer
 OPropertyContainer (::cppu::OBroadcastHelper &_rBHelper)
 
virtual sal_Bool SAL_CALL convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) override
 
virtual void SAL_CALL setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &rValue) override
 
virtual void SAL_CALL getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const override
 
virtual css::uno::Any SAL_CALL getFastPropertyValue (sal_Int32 nHandle) override final
 
virtual void getFastPropertyValue (std::unique_lock< std::mutex > &rGuard, css::uno::Any &rValue, sal_Int32 nHandle) const =0
 
virtual void SAL_CALL setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue) override final
 
- Protected Member Functions inherited from comphelper::OPropertyContainerHelper
 OPropertyContainerHelper ()
 
 ~OPropertyContainerHelper ()
 
void registerProperty (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, void *_pPointerToMember, const css::uno::Type &_rMemberType)
 
void registerMayBeVoidProperty (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, css::uno::Any *_pPointerToMember, const css::uno::Type &_rExpectedType)
 
void registerPropertyNoMember (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, const css::uno::Type &_rType, css::uno::Any const &_pInitialValue)
 
void revokeProperty (sal_Int32 _nHandle)
 
bool isRegisteredProperty (sal_Int32 _nHandle) const
 
bool isRegisteredProperty (const OUString &_rName) const
 
bool convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue)
 
void setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue)
 
void getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const
 
void describeProperties (css::uno::Sequence< css::beans::Property > &_rProps) const
 
const css::beans::Property & getProperty (const OUString &_rName) const
 
virtual ::cppu::IPropertyArrayHelpercreateArrayHelper () const =0
 
- Static Protected Member Functions inherited from comphelper::OPropertyContainer
static css::uno::Sequence< css::uno::Type > getBaseTypes ()
 
- Static Protected Member Functions inherited from comphelper::OPropertyArrayUsageHelper< UncachedDataSequence >
static std::mutextheMutex ()
 
- Protected Attributes inherited from comphelper::OMutexAndBroadcastHelper
::osl::Mutex m_aMutex
 
::cppu::OBroadcastHelper m_aBHelper
 
- Static Protected Attributes inherited from comphelper::OPropertyArrayUsageHelper< UncachedDataSequence >
static sal_Int32 s_nRefCount
 
::cppu::IPropertyArrayHelpers_pProps
 

Detailed Description

This sequence object does NOT store actual sequence data.

Instead, it references a column inside the internal data table (represented by class InternalData) via range representation string. The range representation string ends with a numeric value that indicates the column index within the internal data table.

A range representation can be either '0', '1', '2', ..., or 'label 1', 'label 2', ...

Definition at line 71 of file UncachedDataSequence.hxx.

Constructor & Destructor Documentation

◆ UncachedDataSequence() [1/3]

chart::UncachedDataSequence::UncachedDataSequence ( rtl::Reference< InternalDataProvider xIntDataProv,
OUString  aRangeRepresentation 
)

The referring data provider is held as uno reference to ensure its lifetime is at least as long as the one of this object.

Definition at line 57 of file UncachedDataSequence.cxx.

References registerProperties().

Referenced by createClone().

◆ UncachedDataSequence() [2/3]

chart::UncachedDataSequence::UncachedDataSequence ( rtl::Reference< InternalDataProvider xIntDataProv,
OUString  aRangeRepresentation,
const OUString &  rRole 
)

◆ UncachedDataSequence() [3/3]

chart::UncachedDataSequence::UncachedDataSequence ( const UncachedDataSequence rSource)

Definition at line 85 of file UncachedDataSequence.cxx.

References registerProperties().

◆ ~UncachedDataSequence()

chart::UncachedDataSequence::~UncachedDataSequence ( )
overridevirtual

Definition at line 97 of file UncachedDataSequence.cxx.

Member Function Documentation

◆ addModifyListener()

void SAL_CALL chart::UncachedDataSequence::addModifyListener ( const css::uno::Reference< css::util::XModifyListener > &  aListener)
overrideprivatevirtual

Definition at line 298 of file UncachedDataSequence.cxx.

References m_xModifyEventForwarder.

◆ createArrayHelper()

cppu::IPropertyArrayHelper * chart::UncachedDataSequence::createArrayHelper ( ) const
overrideprivatevirtual

◆ createClone()

Reference< util::XCloneable > SAL_CALL chart::UncachedDataSequence::createClone ( )
overrideprivatevirtual

Definition at line 280 of file UncachedDataSequence.cxx.

References UncachedDataSequence().

◆ fireModifyEvent()

void chart::UncachedDataSequence::fireModifyEvent ( )
private

Definition at line 308 of file UncachedDataSequence.cxx.

References m_xModifyEventForwarder.

Referenced by replaceByIndex(), setModified(), and setName().

◆ generateLabel()

Sequence< OUString > SAL_CALL chart::UncachedDataSequence::generateLabel ( css::chart2::data::LabelOrigin  nLabelOrigin)
overrideprivatevirtual

Definition at line 210 of file UncachedDataSequence.cxx.

References aName, m_aSourceRepresentation, nIndex, chart::SchResId(), and u.

◆ getByIndex()

uno::Any SAL_CALL chart::UncachedDataSequence::getByIndex ( ::sal_Int32  Index)
overrideprivatevirtual

Definition at line 249 of file UncachedDataSequence.cxx.

◆ getCount()

sal_Int32 SAL_CALL chart::UncachedDataSequence::getCount ( )
overrideprivate

Definition at line 243 of file UncachedDataSequence.cxx.

◆ getData()

Sequence< Any > SAL_CALL chart::UncachedDataSequence::getData ( )
overrideprivatevirtual

◆ getElementType()

uno::Type SAL_CALL chart::UncachedDataSequence::getElementType ( )
overrideprivatevirtual

Definition at line 256 of file UncachedDataSequence.cxx.

References cppu::UnoType< typename T >::get().

◆ getImplementationName()

OUString SAL_CALL chart::UncachedDataSequence::getImplementationName ( )
overridevirtual

declare XServiceInfo methods

Definition at line 146 of file UncachedDataSequence.cxx.

◆ getInfoHelper()

cppu::IPropertyArrayHelper & chart::UncachedDataSequence::getInfoHelper ( )
overrideprivate

◆ getName()

OUString SAL_CALL chart::UncachedDataSequence::getName ( )
overrideprivatevirtual

Definition at line 269 of file UncachedDataSequence.cxx.

References m_aSourceRepresentation.

Referenced by getSourceRangeRepresentation().

◆ getNumberFormatKeyByIndex()

sal_Int32 SAL_CALL chart::UncachedDataSequence::getNumberFormatKeyByIndex ( ::sal_Int32  nIndex)
overrideprivate

Definition at line 223 of file UncachedDataSequence.cxx.

References m_nNumberFormatKey.

◆ getNumericalData()

Sequence< double > SAL_CALL chart::UncachedDataSequence::getNumericalData ( )
overrideprivatevirtual
See also
css::chart::data::XNumericalDataSequence

Definition at line 167 of file UncachedDataSequence.cxx.

References comphelper::OMutexAndBroadcastHelper::GetMutex(), m_aSourceRepresentation, and m_xDataProvider.

◆ getPropertySetInfo()

Reference< beans::XPropertySetInfo > SAL_CALL chart::UncachedDataSequence::getPropertySetInfo ( )
overrideprivatevirtual

merge XInterface implementations

merge XTypeProvider implementations

See also
css::beans::XPropertySet

Definition at line 125 of file UncachedDataSequence.cxx.

◆ getSourceRangeRepresentation()

OUString SAL_CALL chart::UncachedDataSequence::getSourceRangeRepresentation ( )
overrideprivatevirtual

Definition at line 205 of file UncachedDataSequence.cxx.

References getName().

◆ getSupportedServiceNames()

css::uno::Sequence< OUString > SAL_CALL chart::UncachedDataSequence::getSupportedServiceNames ( )
overridevirtual

Definition at line 156 of file UncachedDataSequence.cxx.

◆ getTextualData()

Sequence< OUString > SAL_CALL chart::UncachedDataSequence::getTextualData ( )
overrideprivatevirtual
See also
css::chart::data::XTextualDataSequence

Definition at line 182 of file UncachedDataSequence.cxx.

References comphelper::OMutexAndBroadcastHelper::GetMutex(), m_aSourceRepresentation, and m_xDataProvider.

◆ hasElements()

sal_Bool SAL_CALL chart::UncachedDataSequence::hasElements ( )
overrideprivatevirtual

Definition at line 261 of file UncachedDataSequence.cxx.

References m_aSourceRepresentation, and m_xDataProvider.

◆ isModified()

sal_Bool SAL_CALL chart::UncachedDataSequence::isModified ( )
overrideprivatevirtual

Definition at line 286 of file UncachedDataSequence.cxx.

◆ registerProperties()

void chart::UncachedDataSequence::registerProperties ( )
private

This method registers all properties.

It should be called by all constructors.

Definition at line 100 of file UncachedDataSequence.cxx.

References m_aXMLRange, m_nNumberFormatKey, m_sRole, and comphelper::OPropertyContainerHelper::registerProperty().

Referenced by UncachedDataSequence().

◆ removeModifyListener()

void SAL_CALL chart::UncachedDataSequence::removeModifyListener ( const css::uno::Reference< css::util::XModifyListener > &  aListener)
overrideprivatevirtual

Definition at line 303 of file UncachedDataSequence.cxx.

References m_xModifyEventForwarder.

◆ replaceByIndex()

void SAL_CALL chart::UncachedDataSequence::replaceByIndex ( ::sal_Int32  Index,
const css::uno::Any &  Element 
)
overrideprivatevirtual

◆ setModified()

void SAL_CALL chart::UncachedDataSequence::setModified ( sal_Bool  bModified)
overrideprivatevirtual

Definition at line 291 of file UncachedDataSequence.cxx.

References fireModifyEvent().

◆ setName()

void SAL_CALL chart::UncachedDataSequence::setName ( const OUString &  aName)
overrideprivatevirtual

Definition at line 274 of file UncachedDataSequence.cxx.

References aName, fireModifyEvent(), and m_aSourceRepresentation.

◆ supportsService()

sal_Bool SAL_CALL chart::UncachedDataSequence::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 151 of file UncachedDataSequence.cxx.

References cppu::supportsService().

Member Data Documentation

◆ m_aSourceRepresentation

OUString chart::UncachedDataSequence::m_aSourceRepresentation
private

◆ m_aXMLRange

OUString chart::UncachedDataSequence::m_aXMLRange
private

Definition at line 158 of file UncachedDataSequence.hxx.

Referenced by registerProperties().

◆ m_nNumberFormatKey

sal_Int32 chart::UncachedDataSequence::m_nNumberFormatKey
private

Definition at line 156 of file UncachedDataSequence.hxx.

Referenced by getNumberFormatKeyByIndex(), and registerProperties().

◆ m_sRole

OUString chart::UncachedDataSequence::m_sRole
private

Definition at line 157 of file UncachedDataSequence.hxx.

Referenced by registerProperties().

◆ m_xDataProvider

rtl::Reference< InternalDataProvider > chart::UncachedDataSequence::m_xDataProvider
private

◆ m_xModifyEventForwarder

rtl::Reference<ModifyEventForwarder> chart::UncachedDataSequence::m_xModifyEventForwarder
private

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