27#include <unonames.hxx>
30#include <com/sun/star/beans/PropertyAttribute.hpp>
31#include <com/sun/star/chart2/AxisType.hpp>
32#include <com/sun/star/chart2/CurveStyle.hpp>
36using ::com::sun::star::beans::Property;
37using ::com::sun::star::uno::Sequence;
38using ::com::sun::star::uno::Reference;
45 PROP_SCATTERCHARTTYPE_CURVE_STYLE,
46 PROP_SCATTERCHARTTYPE_CURVE_RESOLUTION,
47 PROP_SCATTERCHARTTYPE_SPLINE_ORDER
57 ::chart::PropertyHelper::setPropertyValueDefault< sal_Int32 >( aOutMap, PROP_SCATTERCHARTTYPE_CURVE_RESOLUTION, 20 );
61 ::chart::PropertyHelper::setPropertyValueDefault< sal_Int32 >( aOutMap, PROP_SCATTERCHARTTYPE_SPLINE_ORDER, 3 );
64 return aStaticDefaults;
69 static ::cppu::OPropertyArrayHelper aPropHelper(
74 PROP_SCATTERCHARTTYPE_CURVE_STYLE,
76 beans::PropertyAttribute::BOUND
77 | beans::PropertyAttribute::MAYBEDEFAULT },
79 PROP_SCATTERCHARTTYPE_CURVE_RESOLUTION,
81 beans::PropertyAttribute::BOUND
82 | beans::PropertyAttribute::MAYBEDEFAULT },
84 PROP_SCATTERCHARTTYPE_SPLINE_ORDER,
86 beans::PropertyAttribute::BOUND
87 | beans::PropertyAttribute::MAYBEDEFAULT } };
95const uno::Reference< beans::XPropertySetInfo >& StaticScatterChartTypeInfo()
97 static uno::Reference< beans::XPropertySetInfo > xPropertySetInfo(
99 return xPropertySetInfo;
137 for( sal_Int32
i=0;
i<DimensionCount; ++
i )
142 OSL_FAIL(
"a created coordinate system should have an axis for each dimension");
146 chart2::ScaleData aScaleData = xAxis->getScaleData();
147 aScaleData.Orientation = chart2::AxisOrientation_MATHEMATICAL;
151 aScaleData.AxisType = chart2::AxisType::SERIES;
153 aScaleData.AxisType = chart2::AxisType::REALNUMBER;
155 xAxis->setScaleData( aScaleData );
168 return {
"label",
"values-x",
"values-y" };
175 tPropertyValueMap::const_iterator aFound( rStaticDefaults.find(
nHandle ) );
176 if( aFound == rStaticDefaults.end() )
179 rAny = (*aFound).second;
185 return StaticScatterChartTypeInfoHelper();
191 return StaticScatterChartTypeInfo();
196 return "com.sun.star.comp.chart.ScatterChartType";
208 "com.sun.star.chart2.ChartType",
209 "com.sun.star.beans.PropertySet" };
214extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface *
216 css::uno::Sequence<css::uno::Any>
const &)
218 return cppu::acquire(new ::chart::ScatterChartType);
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_comp_chart_ScatterChartType_get_implementation(css::uno::XComponentContext *, css::uno::Sequence< css::uno::Any > const &)
PropertiesInfo aProperties
static css::uno::Reference< css::chart2::XScaling > createLinearScaling()
virtual rtl::Reference< ::chart::BaseCoordinateSystem > createCoordinateSystem2(sal_Int32 DimensionCount) override
virtual OUString SAL_CALL getImplementationName() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual OUString SAL_CALL getChartType() override
virtual ~ScatterChartType() override
virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone() override
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 css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual rtl::Reference< ChartType > cloneChartType() const override
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper() override
The InfoHelper table contains all property names and types of this object.
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedMandatoryRoles() override
static css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL createPropertySetInfo(IPropertyArrayHelper &rProperties)
css::uno::Type const & get()
void setPropertyValueDefault(tPropertyValueMap &rOutMap, tPropertyValueMapKey key, const Value &value)
Calls setPropertyValue() but asserts that the given property hasn't been set before.
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_SCATTER
constexpr OUStringLiteral CHART_UNONAME_SPLINE_ORDER
constexpr OUStringLiteral CHART_UNONAME_CURVE_STYLE
constexpr OUStringLiteral CHART_UNONAME_CURVE_RESOLUTION