27#include <com/sun/star/chart2/AxisType.hpp>
32using ::com::sun::star::beans::Property;
33using ::com::sun::star::uno::Sequence;
34using ::com::sun::star::uno::Reference;
41 static ::cppu::OPropertyArrayHelper aPropHelper = []()
86 for( sal_Int32
i=0;
i<DimensionCount; ++
i )
91 OSL_FAIL(
"a created coordinate system should have an axis for each dimension");
95 chart2::ScaleData aScaleData = xAxis->getScaleData();
96 aScaleData.Orientation = chart2::AxisOrientation_MATHEMATICAL;
100 aScaleData.AxisType = chart2::AxisType::SERIES;
102 aScaleData.AxisType = chart2::AxisType::REALNUMBER;
104 xAxis->setScaleData( aScaleData );
117 return {
"label",
"values-x",
"values-y",
"values-size" };
122 return {
"FillColor",
"BorderColor" };
127 return "values-size";
134 tPropertyValueMap::const_iterator aFound( aStaticDefaults.find(
nHandle ) );
135 if( aFound == aStaticDefaults.end() )
138 rAny = (*aFound).second;
144 return StaticBubbleChartTypeInfoHelper();
152 return xPropertySetInfo;
157 return "com.sun.star.comp.chart.BubbleChartType";
169 "com.sun.star.chart2.ChartType",
170 "com.sun.star.beans.PropertySet" };
175extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface *
177 css::uno::Sequence<css::uno::Any>
const &)
179 return cppu::acquire(new ::chart::BubbleChartType);
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_comp_chart_BubbleChartType_get_implementation(css::uno::XComponentContext *, css::uno::Sequence< css::uno::Any > const &)
PropertiesInfo aProperties
static css::uno::Reference< css::chart2::XScaling > createLinearScaling()
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual OUString SAL_CALL getRoleOfSequenceForSeriesLabel() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual rtl::Reference< ChartType > cloneChartType() const override
virtual OUString SAL_CALL getChartType() override
virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedPropertyRoles() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedMandatoryRoles() override
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 ~BubbleChartType() override
virtual rtl::Reference< ::chart::BaseCoordinateSystem > createCoordinateSystem2(sal_Int32 DimensionCount) override
virtual OUString SAL_CALL getImplementationName() override
static css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL createPropertySetInfo(IPropertyArrayHelper &rProperties)
std::unordered_map< tPropertyValueMapKey, css::uno::Any > tPropertyValueMap
const sal_Int32 MAIN_AXIS_INDEX
css::uno::Sequence< DstElementType > containerToSequence(const SrcType &i_Container)
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
constexpr OUStringLiteral CHART2_SERVICE_NAME_CHARTTYPE_BUBBLE