29using ::com::sun::star::uno::Reference;
30using ::com::sun::star::uno::Sequence;
41 m_xData(
std::move( xValues )),
48 uno::Reference< chart2::data::XDataSequence > xValues,
49 uno::Reference< chart2::data::XDataSequence > xLabel ) :
50 m_xData(
std::move( xValues )),
52 m_xModifyEventForwarder( new ModifyEventForwarder() )
66 if( xLabelCloneable.is())
67 xNewLabel.set( xLabelCloneable->createClone(), uno::UNO_QUERY );
70 if( xValuesCloneable.is())
71 xNewValues.set( xValuesCloneable->createClone(), uno::UNO_QUERY );
131 if( xLabelCloneable.is())
132 xNewLabel.set( xLabelCloneable->createClone(), uno::UNO_QUERY );
135 if( xValuesCloneable.is())
136 xNewValues.set( xValuesCloneable->createClone(), uno::UNO_QUERY );
155 return "com.sun.star.comp.chart2.LabeledDataSequence";
165 return {
"com.sun.star.chart2.data.LabeledDataSequence" };
170extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface *
172 css::uno::Sequence<css::uno::Any>
const &)
174 return cppu::acquire(new ::chart::LabeledDataSequence );
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_comp_chart2_LabeledDataSequence_get_implementation(css::uno::XComponentContext *, css::uno::Sequence< css::uno::Any > const &)
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual css::uno::Reference< css::chart2::data::XDataSequence > SAL_CALL getLabel() override
css::uno::Reference< css::chart2::data::XDataSequence > m_xLabel
virtual void SAL_CALL setLabel(const css::uno::Reference< css::chart2::data::XDataSequence > &xSequence) override
virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone() override
virtual OUString SAL_CALL getImplementationName() override
declare XServiceInfo methods
virtual void SAL_CALL setValues(const css::uno::Reference< css::chart2::data::XDataSequence > &xSequence) override
virtual css::uno::Reference< css::chart2::data::XDataSequence > SAL_CALL getValues() override
virtual void SAL_CALL addModifyListener(const css::uno::Reference< css::util::XModifyListener > &aListener) override
css::uno::Reference< css::chart2::data::XDataSequence > m_xData
virtual void SAL_CALL removeModifyListener(const css::uno::Reference< css::util::XModifyListener > &aListener) override
rtl::Reference< ModifyEventForwarder > m_xModifyEventForwarder
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual ~LabeledDataSequence() override
This helper class serves as forwarder of modify events.
std::unique_ptr< weld::Label > m_xLabel
void removeListener(const InterfaceRef &xObject, const css::uno::Reference< css::util::XModifyListener > &xListener)
void addListener(const InterfaceRef &xObject, const css::uno::Reference< css::util::XModifyListener > &xListener)
cppu::WeakImplHelper< css::chart2::data::XLabeledDataSequence2, css::lang::XServiceInfo > LabeledDataSequence_Base
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)