28#include <com/sun/star/beans/PropertyAttribute.hpp>
29#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;
50 return aStaticDefaults;
55 static ::cppu::OPropertyArrayHelper aPropHelper(
62 beans::PropertyAttribute::BOUND
63 | beans::PropertyAttribute::MAYBEDEFAULT },
67 beans::PropertyAttribute::MAYBEVOID }
77uno::Reference< beans::XPropertySetInfo >& StaticPieChartTypeInfo()
79 static uno::Reference< beans::XPropertySetInfo > xPropertySetInfo(
81 return xPropertySetInfo;
124 for( sal_Int32
i=0;
i<DimensionCount; ++
i )
129 OSL_FAIL(
"a created coordinate system should have an axis for each dimension");
135 chart2::ScaleData aScaleData = xAxis->getScaleData();
137 aScaleData.AxisType = chart2::AxisType::REALNUMBER;
140 aScaleData.Orientation = chart2::AxisOrientation_REVERSE;
142 aScaleData.Orientation = chart2::AxisOrientation_MATHEMATICAL;
147 xAxis->setScaleData( aScaleData );
155 return {
"FillColor",
"BorderColor" };
162 tPropertyValueMap::const_iterator aFound( rStaticDefaults.find(
nHandle ) );
163 if( aFound == rStaticDefaults.end() )
166 rAny = (*aFound).second;
172 return StaticPieChartTypeInfoHelper();
178 return StaticPieChartTypeInfo();
183 return "com.sun.star.comp.chart.PieChartType";
195 "com.sun.star.chart2.ChartType",
196 "com.sun.star.beans.PropertySet" };
201extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface *
203 css::uno::Sequence<css::uno::Any>
const &)
205 return cppu::acquire(new ::chart::PieChartType);
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_comp_chart_PieChartType_get_implementation(css::uno::XComponentContext *, css::uno::Sequence< css::uno::Any > const &)
PropertiesInfo aProperties
static css::uno::Reference< css::chart2::XScaling > createLinearScaling()
static void removeExplicitScaling(css::chart2::ScaleData &rScaleData)
virtual rtl::Reference< ChartType > cloneChartType() const 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::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone() override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper() override
The InfoHelper table contains all property names and types of this object.
virtual ~PieChartType() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedPropertyRoles() override
virtual rtl::Reference< ::chart::BaseCoordinateSystem > createCoordinateSystem2(sal_Int32 DimensionCount) override
virtual OUString SAL_CALL getChartType() override
virtual OUString SAL_CALL getImplementationName() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) 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
@ PROP_PIECHARTTYPE_3DRELATIVEHEIGHT
@ PROP_PIECHARTTYPE_USE_RINGS
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_PIE