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

This sequence object does store actual values within, hence "cached". More...

#include <CachedDataSequence.hxx>

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

Public Member Functions

 CachedDataSequence ()
 constructs an empty sequence More...
 
 CachedDataSequence (const css::uno::Reference< css::uno::XComponentContext > &xContext)
 
 CachedDataSequence (const OUString &rSingleText)
 creates a sequence and initializes it with the given string. More...
 
 CachedDataSequence (const CachedDataSequence &rSource)
 Copy CTOR. More...
 
virtual ~CachedDataSequence () 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< CachedDataSequence >
 OPropertyArrayUsageHelper ()
 
virtual ~OPropertyArrayUsageHelper ()
 
::cppu::IPropertyArrayHelpergetArrayHelper ()
 

Private Types

enum  DataType {
  NUMERICAL ,
  TEXTUAL ,
  MIXED
}
 

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 css::uno::Reference< css::util::XCloneable > SAL_CALL createClone () 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
 
virtual void SAL_CALL initialize (const css::uno::Sequence< css::uno::Any > &aArguments) override
 
void registerProperties ()
 This method registers all properties. More...
 
css::uno::Sequence< double > Impl_getNumericalData () const
 is used by interface method getNumericalData(). More...
 
css::uno::Sequence< OUString > Impl_getTextualData () const
 is used by interface method getTextualData(). More...
 
css::uno::Sequence< css::uno::Any > Impl_getMixedData () const
 is used by interface method getData(). More...
 

Private Attributes

sal_Int32 m_nNumberFormatKey
 
OUString m_sRole
 
enum DataType m_eCurrentDataType
 
css::uno::Sequence< double > m_aNumericalSequence
 
css::uno::Sequence< OUString > m_aTextualSequence
 
css::uno::Sequence< css::uno::Any > m_aMixedSequence
 
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< CachedDataSequence >
static std::mutextheMutex ()
 
- Protected Attributes inherited from comphelper::OMutexAndBroadcastHelper
::osl::Mutex m_aMutex
 
::cppu::OBroadcastHelper m_aBHelper
 
- Static Protected Attributes inherited from comphelper::OPropertyArrayUsageHelper< CachedDataSequence >
static sal_Int32 s_nRefCount
 
::cppu::IPropertyArrayHelpers_pProps
 

Detailed Description

This sequence object does store actual values within, hence "cached".

Definition at line 58 of file CachedDataSequence.hxx.

Member Enumeration Documentation

◆ DataType

Enumerator
NUMERICAL 
TEXTUAL 
MIXED 

Definition at line 132 of file CachedDataSequence.hxx.

Constructor & Destructor Documentation

◆ CachedDataSequence() [1/4]

chart::CachedDataSequence::CachedDataSequence ( )

constructs an empty sequence

Definition at line 55 of file CachedDataSequence.cxx.

References registerProperties().

Referenced by createClone().

◆ CachedDataSequence() [2/4]

chart::CachedDataSequence::CachedDataSequence ( const css::uno::Reference< css::uno::XComponentContext > &  xContext)
explicit

References DECLARE_XINTERFACE.

◆ CachedDataSequence() [3/4]

chart::CachedDataSequence::CachedDataSequence ( const OUString &  rSingleText)
explicit

creates a sequence and initializes it with the given string.

This is especially useful for labels, which only have one element.

Definition at line 72 of file CachedDataSequence.cxx.

◆ CachedDataSequence() [4/4]

chart::CachedDataSequence::CachedDataSequence ( const CachedDataSequence rSource)
explicit

◆ ~CachedDataSequence()

chart::CachedDataSequence::~CachedDataSequence ( )
overridevirtual

Definition at line 106 of file CachedDataSequence.cxx.

Member Function Documentation

◆ addModifyListener()

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

Definition at line 311 of file CachedDataSequence.cxx.

References m_xModifyEventForwarder.

◆ createArrayHelper()

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

◆ createClone()

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

Definition at line 306 of file CachedDataSequence.cxx.

References CachedDataSequence().

◆ generateLabel()

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

Definition at line 295 of file CachedDataSequence.cxx.

◆ getData()

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

◆ getImplementationName()

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

declare XServiceInfo methods

Definition at line 241 of file CachedDataSequence.cxx.

◆ getInfoHelper()

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

◆ getNumberFormatKeyByIndex()

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

Definition at line 301 of file CachedDataSequence.cxx.

◆ getNumericalData()

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

Definition at line 262 of file CachedDataSequence.cxx.

References comphelper::OMutexAndBroadcastHelper::GetMutex(), Impl_getNumericalData(), m_aNumericalSequence, m_eCurrentDataType, and NUMERICAL.

◆ getPropertySetInfo()

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

merge XInterface implementations

merge XTypeProvider implementations

See also
css::beans::XPropertySet

Definition at line 220 of file CachedDataSequence.cxx.

◆ getSourceRangeRepresentation()

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

Definition at line 290 of file CachedDataSequence.cxx.

References m_sRole.

◆ getSupportedServiceNames()

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

Definition at line 251 of file CachedDataSequence.cxx.

◆ getTextualData()

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

Definition at line 273 of file CachedDataSequence.cxx.

References comphelper::OMutexAndBroadcastHelper::GetMutex(), Impl_getTextualData(), m_aTextualSequence, m_eCurrentDataType, and TEXTUAL.

◆ Impl_getMixedData()

Sequence< Any > chart::CachedDataSequence::Impl_getMixedData ( ) const
private

is used by interface method getData().

Definition at line 185 of file CachedDataSequence.cxx.

References Any, m_aMixedSequence, m_aNumericalSequence, m_aTextualSequence, m_eCurrentDataType, MIXED, NUMERICAL, and TEXTUAL.

Referenced by getData().

◆ Impl_getNumericalData()

Sequence< double > chart::CachedDataSequence::Impl_getNumericalData ( ) const
private

is used by interface method getNumericalData().

Definition at line 124 of file CachedDataSequence.cxx.

References Any, m_aMixedSequence, m_aNumericalSequence, m_aTextualSequence, m_eCurrentDataType, MIXED, NUMERICAL, and TEXTUAL.

Referenced by getNumericalData().

◆ Impl_getTextualData()

Sequence< OUString > chart::CachedDataSequence::Impl_getTextualData ( ) const
private

is used by interface method getTextualData().

Definition at line 154 of file CachedDataSequence.cxx.

References Any, m_aMixedSequence, m_aNumericalSequence, m_aTextualSequence, m_eCurrentDataType, MIXED, NUMERICAL, and TEXTUAL.

Referenced by getTextualData().

◆ initialize()

void SAL_CALL chart::CachedDataSequence::initialize ( const css::uno::Sequence< css::uno::Any > &  aArguments)
overrideprivatevirtual

◆ registerProperties()

void chart::CachedDataSequence::registerProperties ( )
private

This method registers all properties.

It should be called by all constructors.

Definition at line 109 of file CachedDataSequence.cxx.

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

Referenced by CachedDataSequence().

◆ removeModifyListener()

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

Definition at line 316 of file CachedDataSequence.cxx.

References m_xModifyEventForwarder.

◆ supportsService()

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

Definition at line 246 of file CachedDataSequence.cxx.

References cppu::supportsService().

Member Data Documentation

◆ m_aMixedSequence

css::uno::Sequence< css::uno::Any > chart::CachedDataSequence::m_aMixedSequence
private

◆ m_aNumericalSequence

css::uno::Sequence< double > chart::CachedDataSequence::m_aNumericalSequence
private

◆ m_aTextualSequence

css::uno::Sequence< OUString > chart::CachedDataSequence::m_aTextualSequence
private

◆ m_eCurrentDataType

enum DataType chart::CachedDataSequence::m_eCurrentDataType
private

◆ m_nNumberFormatKey

sal_Int32 chart::CachedDataSequence::m_nNumberFormatKey
private

Definition at line 128 of file CachedDataSequence.hxx.

Referenced by registerProperties().

◆ m_sRole

OUString chart::CachedDataSequence::m_sRole
private

Definition at line 129 of file CachedDataSequence.hxx.

Referenced by getSourceRangeRepresentation(), and registerProperties().

◆ m_xModifyEventForwarder

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

Definition at line 159 of file CachedDataSequence.hxx.

Referenced by addModifyListener(), and removeModifyListener().


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