29#include <com/sun/star/chart2/AxisType.hpp>
30#include <com/sun/star/container/NoSuchElementException.hpp>
35using ::com::sun::star::beans::Property;
36using ::com::sun::star::uno::Sequence;
37using ::com::sun::star::uno::Reference;
44 m_bNotifyChanges( true )
51 m_bNotifyChanges( true )
80 for( sal_Int32
i=0;
i<DimensionCount; ++
i )
85 OSL_FAIL(
"a created coordinate system should have an axis for each dimension");
89 chart2::ScaleData aScaleData = xAxis->getScaleData();
90 aScaleData.Orientation = chart2::AxisOrientation_MATHEMATICAL;
95 case 0: aScaleData.AxisType = chart2::AxisType::CATEGORY;
break;
96 case 2: aScaleData.AxisType = chart2::AxisType::SERIES;
break;
97 default: aScaleData.AxisType = chart2::AxisType::REALNUMBER;
break;
100 xAxis->setScaleData( aScaleData );
108 return {
"label",
"values-y" };
131 throw lang::IllegalArgumentException(
"dataseries not found",
static_cast<cppu::OWeakObject*
>(
this), 1);
162 if( !xDataSeries.is())
163 throw container::NoSuchElementException();
170 throw container::NoSuchElementException(
171 "The given series is no element of this charttype",
172 static_cast< uno::XWeak *
>(
this ));
183 return comphelper::containerToSequence< Reference< chart2::XDataSeries > >(
m_aDataSeries );
188 std::vector< rtl::Reference<DataSeries> > aTmp;
189 for (
auto const & i : aDataSeries)
209 for(
auto const & i : aDataSeries )
241 return StaticChartTypeInfoHelper();
249 return xPropertySetInfo;
259 catch(
const uno::Exception & )
271 catch(
const uno::Exception & )
static css::uno::Reference< css::chart2::XScaling > createLinearScaling()
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedOptionalRoles() override
rtl::Reference< ModifyEventForwarder > m_xModifyEventForwarder
merge XTypeProvider implementations
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual void SAL_CALL setDataSeries(const css::uno::Sequence< css::uno::Reference< css::chart2::XDataSeries > > &aDataSeries) override
virtual void SAL_CALL modified(const css::lang::EventObject &aEvent) override
void impl_addDataSeriesWithoutNotification(const rtl::Reference< ::chart::DataSeries > &aDataSeries)
virtual void SAL_CALL removeDataSeries(const css::uno::Reference< css::chart2::XDataSeries > &aDataSeries) override
virtual css::uno::Sequence< css::uno::Reference< css::chart2::XDataSeries > > SAL_CALL getDataSeries() override
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper() override
The InfoHelper table contains all property names and types of this object.
virtual rtl::Reference< ::chart::BaseCoordinateSystem > createCoordinateSystem2(sal_Int32 DimensionCount)
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedPropertyRoles() override
virtual void SAL_CALL addDataSeries(const css::uno::Reference< css::chart2::XDataSeries > &aDataSeries) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedMandatoryRoles() override
virtual OUString SAL_CALL getRoleOfSequenceForSeriesLabel() override
tDataSeriesContainerType m_aDataSeries
virtual void GetDefaultValue(sal_Int32 nHandle, css::uno::Any &rAny) const override
implement this method to provide default values for all properties supporting defaults.
virtual ~ChartType() override
virtual void SAL_CALL addModifyListener(const css::uno::Reference< css::util::XModifyListener > &aListener) override
virtual css::uno::Reference< css::chart2::XCoordinateSystem > SAL_CALL createCoordinateSystem(::sal_Int32 DimensionCount) final override
virtual void firePropertyChangeEvent() override
implement this method in derived classes to get called when properties change.
virtual void SAL_CALL removeModifyListener(const css::uno::Reference< css::util::XModifyListener > &aListener) override
This helper class serves as forwarder of modify events.
static css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL createPropertySetInfo(IPropertyArrayHelper &rProperties)
void SAL_CALL disposing()
#define DBG_UNHANDLED_EXCEPTION(...)
void CloneRefVector(const std::vector< css::uno::Reference< Interface > > &rSource, std::vector< css::uno::Reference< Interface > > &rDestination)
clones a vector of UNO-References
void removeListener(const InterfaceRef &xObject, const css::uno::Reference< css::util::XModifyListener > &xListener)
void removeListenerFromAllElements(const Container &rContainer, const css::uno::Reference< css::util::XModifyListener > &xListener)
void addListenerToAllElements(const Container &rContainer, const css::uno::Reference< css::util::XModifyListener > &xListener)
void addListener(const InterfaceRef &xObject, const css::uno::Reference< css::util::XModifyListener > &xListener)
::cppu::WeakImplHelper< css::lang::XServiceInfo, css::chart2::XChartType, css::chart2::XDataSeriesContainer, css::util::XCloneable, css::util::XModifyBroadcaster, css::util::XModifyListener > ChartType_Base
const sal_Int32 MAIN_AXIS_INDEX
IMPLEMENT_FORWARD_XTYPEPROVIDER2(ChildWindowPane, ChildWindowPaneInterfaceBase, Pane)
IMPLEMENT_FORWARD_XINTERFACE2(ChildWindowPane, ChildWindowPaneInterfaceBase, Pane)