31using ::com::sun::star::uno::Sequence;
32using ::com::sun::star::uno::Reference;
33using ::com::sun::star::uno::Any;
34using ::osl::MutexGuard;
37using ::comphelper::OPropertyContainer;
42constexpr OUStringLiteral lcl_aServiceName =
u"com.sun.star.comp.chart.CachedDataSequence";
47 PROP_NUMBERFORMAT_KEY,
56 : OPropertyContainer( GetBroadcastHelper()),
58 m_eCurrentDataType( NUMERICAL ),
64 : OPropertyContainer( GetBroadcastHelper()),
66 m_eCurrentDataType(
MIXED ),
73 : OPropertyContainer( GetBroadcastHelper()),
75 m_eCurrentDataType( TEXTUAL ),
76 m_aTextualSequence({rSingleText}),
83 : OPropertyContainer( GetBroadcastHelper()),
85 m_nNumberFormatKey( rSource.m_nNumberFormatKey ),
86 m_sRole( rSource.m_sRole ),
87 m_eCurrentDataType( rSource.m_eCurrentDataType ),
112 PROP_NUMBERFORMAT_KEY,
134 double * pResultArray = aResult.getArray();
139 std::transform( pTextArray, pTextArray + nSize,
147 std::transform( pMixedArray, pMixedArray + nSize,
164 OUString * pResultArray = aResult.getArray();
169 std::transform( pTextArray, pTextArray + nSize,
177 std::transform( pMixedArray, pMixedArray + nSize,
195 Any * pResultArray = aResult.getArray();
200 std::transform( pTextArray, pTextArray + nSize,
208 std::transform( pMixedArray, pMixedArray + nSize,
222 return createPropertySetInfo( getInfoHelper() );
238 return new ::cppu::OPropertyArrayHelper( aProps );
243 return lcl_aServiceName;
255 "com.sun.star.chart2.data.DataSequence",
256 "com.sun.star.chart2.data.NumericalDataSequence",
257 "com.sun.star.chart2.data.TextualDataSequence"
343extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface *
345 css::uno::Sequence<css::uno::Any>
const &)
347 return cppu::acquire(new ::chart::CachedDataSequence(context));
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_comp_chart_CachedDataSequence_get_implementation(css::uno::XComponentContext *context, css::uno::Sequence< css::uno::Any > const &)
This sequence object does store actual values within, hence "cached".
virtual void SAL_CALL addModifyListener(const css::uno::Reference< css::util::XModifyListener > &aListener) override
rtl::Reference< ModifyEventForwarder > m_xModifyEventForwarder
css::uno::Sequence< css::uno::Any > m_aMixedSequence
virtual OUString SAL_CALL getSourceRangeRepresentation() override
virtual ::cppu::IPropertyArrayHelper * createArrayHelper() const override
virtual css::uno::Sequence< OUString > SAL_CALL getTextualData() override
virtual css::uno::Sequence< double > SAL_CALL getNumericalData() override
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &aArguments) override
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper() override
css::uno::Sequence< double > m_aNumericalSequence
css::uno::Sequence< css::uno::Any > Impl_getMixedData() const
is used by interface method getData().
CachedDataSequence()
constructs an empty sequence
enum DataType m_eCurrentDataType
virtual void SAL_CALL removeModifyListener(const css::uno::Reference< css::util::XModifyListener > &aListener) override
void registerProperties()
This method registers all properties.
virtual ~CachedDataSequence() override
virtual css::uno::Sequence< OUString > SAL_CALL generateLabel(css::chart2::data::LabelOrigin nLabelOrigin) override
css::uno::Sequence< OUString > Impl_getTextualData() const
is used by interface method getTextualData().
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getData() override
virtual ::sal_Int32 SAL_CALL getNumberFormatKeyByIndex(::sal_Int32 nIndex) override
virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone() override
virtual OUString SAL_CALL getImplementationName() override
declare XServiceInfo methods
css::uno::Sequence< double > Impl_getNumericalData() const
is used by interface method getNumericalData().
sal_Int32 m_nNumberFormatKey
css::uno::Sequence< OUString > m_aTextualSequence
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
This helper class serves as forwarder of modify events.
::osl::Mutex & GetMutex()
::cppu::IPropertyArrayHelper * getArrayHelper()
void describeProperties(css::uno::Sequence< css::beans::Property > &_rProps) const
void registerProperty(const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, void *_pPointerToMember, const css::uno::Type &_rMemberType)
::cppu::WeakComponentImplHelper< css::chart2::data::XDataSequence, css::chart2::data::XNumericalDataSequence, css::chart2::data::XTextualDataSequence, css::util::XCloneable, css::util::XModifyBroadcaster, css::lang::XInitialization, css::lang::XServiceInfo > CachedDataSequence_Base
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
IMPLEMENT_FORWARD_XTYPEPROVIDER2(ChildWindowPane, ChildWindowPaneInterfaceBase, Pane)
IMPLEMENT_FORWARD_XINTERFACE2(ChildWindowPane, ChildWindowPaneInterfaceBase, Pane)
HashMap_OWString_Interface aMap
unary function to convert css::uno::Any into a double number.
unary function to convert css::uno::Any into an OUString.
unary function to convert a double number into an OUString.
unary function to convert an OUString into a double number.
unary function to convert any type T into a css::uno::Any.