23#include <com/sun/star/beans/PropertyAttribute.hpp>
29using ::com::sun::star::uno::Sequence;
30using ::com::sun::star::beans::Property;
37 PROP_BARCHARTTYPE_OVERLAP_SEQUENCE,
38 PROP_BARCHARTTYPE_GAPWIDTH_SEQUENCE
41void lcl_AddPropertiesToVector(
42 std::vector< Property > & rOutProperties )
44 rOutProperties.emplace_back(
"OverlapSequence",
45 PROP_BARCHARTTYPE_OVERLAP_SEQUENCE,
47 beans::PropertyAttribute::BOUND
48 | beans::PropertyAttribute::MAYBEDEFAULT );
50 rOutProperties.emplace_back(
"GapwidthSequence",
51 PROP_BARCHARTTYPE_GAPWIDTH_SEQUENCE,
53 beans::PropertyAttribute::BOUND
54 | beans::PropertyAttribute::MAYBEDEFAULT );
59 static ::cppu::OPropertyArrayHelper aPropHelper = []()
62 lcl_AddPropertiesToVector( aProperties );
107 return {
"FillColor",
"BorderColor" };
122 tPropertyValueMap::const_iterator aFound( aStaticDefaults.find(
nHandle ) );
123 if( aFound == aStaticDefaults.end() )
126 rAny = (*aFound).second;
131 return StaticColumnChartTypeInfoHelper();
139 return xPropertySetInfo;
144 return "com.sun.star.comp.chart.ColumnChartType";
156 "com.sun.star.chart2.ChartType" };
161extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface *
163 css::uno::Sequence<css::uno::Any>
const &)
165 return cppu::acquire(new ::chart::ColumnChartType());
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_comp_chart_ColumnChartType_get_implementation(css::uno::XComponentContext *, css::uno::Sequence< css::uno::Any > const &)
PropertiesInfo aProperties
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 sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual rtl::Reference< ChartType > cloneChartType() const override
virtual ~ColumnChartType() override
virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone() override
virtual OUString SAL_CALL getChartType() override
virtual OUString SAL_CALL getImplementationName() override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedPropertyRoles() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
static css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL createPropertySetInfo(IPropertyArrayHelper &rProperties)
Sequence< sal_Int8 > aSeq
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
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_COLUMN