33using ::com::sun::star::uno::Sequence;
34using ::com::sun::star::uno::Reference;
35using ::com::sun::star::uno::Any;
36using ::osl::MutexGuard;
39using ::comphelper::OPropertyContainer;
44constexpr OUStringLiteral lcl_aServiceName =
u"com.sun.star.comp.chart.UncachedDataSequence";
48 PROP_NUMBERFORMAT_KEY,
59 OUString aRangeRepresentation )
60 : OPropertyContainer( GetBroadcastHelper()),
62 m_nNumberFormatKey(0),
63 m_xDataProvider(
std::move( xIntDataProv )),
64 m_aSourceRepresentation(
std::move( aRangeRepresentation )),
72 OUString aRangeRepresentation,
73 const OUString & rRole )
74 : OPropertyContainer( GetBroadcastHelper()),
76 m_nNumberFormatKey(0),
77 m_xDataProvider(
std::move( xIntDataProv )),
78 m_aSourceRepresentation(
std::move( aRangeRepresentation )),
86 : OPropertyContainer( GetBroadcastHelper()),
88 m_nNumberFormatKey( rSource.m_nNumberFormatKey ),
89 m_sRole( rSource.m_sRole ),
90 m_xDataProvider( rSource.m_xDataProvider ),
91 m_aSourceRepresentation( rSource.m_aSourceRepresentation ),
103 PROP_NUMBERFORMAT_KEY,
127 return createPropertySetInfo( getInfoHelper() );
143 return new ::cppu::OPropertyArrayHelper( aProps );
148 return lcl_aServiceName;
160 "com.sun.star.chart2.data.DataSequence",
161 "com.sun.star.chart2.data.NumericalDataSequence",
162 "com.sun.star.chart2.data.TextualDataSequence"
174 aResult.realloc( aValues.getLength());
175 std::transform( aValues.begin(), aValues.end(),
189 aResult.realloc( aValues.getLength());
190 std::transform( aValues.begin(), aValues.end(),
215 static constexpr OUStringLiteral aReplacementStr(
u"%NUMBER");
216 sal_Int32
nIndex = aResString.indexOf(aReplacementStr);
219 aName = aResString.replaceAt(
nIndex, aReplacementStr.getLength(), OUString::number(nSeries));
245 OSL_FAIL(
"Implement!" );
251 OSL_FAIL(
"Implement!" );
This helper class serves as forwarder of modify events.
This sequence object does NOT store actual sequence data.
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual css::uno::Sequence< OUString > SAL_CALL generateLabel(css::chart2::data::LabelOrigin nLabelOrigin) override
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 th...
virtual OUString SAL_CALL getName() override
virtual void SAL_CALL setName(const OUString &aName) override
void registerProperties()
This method registers all properties.
virtual void SAL_CALL addModifyListener(const css::uno::Reference< css::util::XModifyListener > &aListener) override
virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone() override
sal_Int32 m_nNumberFormatKey
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper() override
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getData() override
virtual css::uno::Sequence< OUString > SAL_CALL getTextualData() override
virtual css::uno::Sequence< double > SAL_CALL getNumericalData() override
virtual ~UncachedDataSequence() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual css::uno::Type SAL_CALL getElementType() override
virtual css::uno::Any SAL_CALL getByIndex(::sal_Int32 Index) override
virtual sal_Bool SAL_CALL isModified() override
OUString m_aSourceRepresentation
virtual ::sal_Int32 SAL_CALL getCount() override
virtual ::sal_Int32 SAL_CALL getNumberFormatKeyByIndex(::sal_Int32 nIndex) override
virtual void SAL_CALL removeModifyListener(const css::uno::Reference< css::util::XModifyListener > &aListener) override
virtual void SAL_CALL replaceByIndex(::sal_Int32 Index, const css::uno::Any &Element) override
virtual sal_Bool SAL_CALL hasElements() override
virtual void SAL_CALL setModified(sal_Bool bModified) override
rtl::Reference< InternalDataProvider > m_xDataProvider
rtl::Reference< ModifyEventForwarder > m_xModifyEventForwarder
virtual ::cppu::IPropertyArrayHelper * createArrayHelper() const override
virtual OUString SAL_CALL getImplementationName() override
declare XServiceInfo methods
virtual OUString SAL_CALL getSourceRangeRepresentation() override
::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)
virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, const css::uno::Any &rValue) override
css::uno::Type const & get()
constexpr OUStringLiteral aData
::cppu::WeakComponentImplHelper< css::chart2::data::XDataSequence, css::chart2::data::XNumericalDataSequence, css::chart2::data::XTextualDataSequence, css::util::XCloneable, css::util::XModifiable, css::container::XIndexReplace, css::container::XNamed, css::lang::XServiceInfo > UncachedDataSequence_Base
OUString OOO_DLLPUBLIC_CHARTTOOLS SchResId(TranslateId aId)
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
IMPLEMENT_FORWARD_XTYPEPROVIDER2(ChildWindowPane, ChildWindowPaneInterfaceBase, Pane)
IMPLEMENT_FORWARD_XINTERFACE2(ChildWindowPane, ChildWindowPaneInterfaceBase, Pane)
unary function to convert css::uno::Any into a double number.
unary function to convert css::uno::Any into an OUString.