28#include <com/sun/star/chart2/AxisType.hpp>
33using ::com::sun::star::beans::Property;
34using ::com::sun::star::uno::Sequence;
35using ::com::sun::star::uno::Reference;
54 if( DimensionCount != 2 )
55 throw lang::IllegalArgumentException(
56 "NetChart must be two-dimensional",
65 ScaleData aScaleData = xAxis->getScaleData();
67 aScaleData.AxisType = AxisType::CATEGORY;
68 aScaleData.Orientation = AxisOrientation_MATHEMATICAL;
69 xAxis->setScaleData( aScaleData );
75 ScaleData aScaleData = xAxis->getScaleData();
76 aScaleData.Orientation = AxisOrientation_MATHEMATICAL;
77 aScaleData.AxisType = AxisType::REALNUMBER;
78 xAxis->setScaleData( aScaleData );
99uno::Reference< beans::XPropertySetInfo >& StaticNetChartTypeInfo()
101 static uno::Reference< beans::XPropertySetInfo > xPropertySetInfo(
103 return xPropertySetInfo;
111 return StaticNetChartTypeInfoHelper();
117 return StaticNetChartTypeInfo();
150 return "com.sun.star.comp.chart.NetChartType";
162 "com.sun.star.chart2.ChartType",
163 "com.sun.star.beans.PropertySet" };
168extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface *
170 css::uno::Sequence<css::uno::Any>
const &)
172 return cppu::acquire(new ::chart::NetChartType);
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_comp_chart_NetChartType_get_implementation(css::uno::XComponentContext *, css::uno::Sequence< css::uno::Any > const &)
static css::uno::Reference< css::chart2::XScaling > createLinearScaling()
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper() override
The InfoHelper table contains all property names and types of this object.
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 ~NetChartType_Base() override
virtual rtl::Reference< ::chart::BaseCoordinateSystem > createCoordinateSystem2(sal_Int32 DimensionCount) override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone() override
virtual ~NetChartType() override
virtual rtl::Reference< ChartType > cloneChartType() const override
virtual OUString SAL_CALL getImplementationName() override
virtual OUString SAL_CALL getChartType() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
static css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL createPropertySetInfo(IPropertyArrayHelper &rProperties)
const sal_Int32 MAIN_AXIS_INDEX
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
constexpr OUStringLiteral CHART2_SERVICE_NAME_CHARTTYPE_NET