23#include <unonames.hxx>
26#include <com/sun/star/beans/PropertyAttribute.hpp>
27#include <com/sun/star/chart2/CurveStyle.hpp>
33using ::com::sun::star::beans::Property;
34using ::com::sun::star::uno::Sequence;
41 PROP_LINECHARTTYPE_CURVE_STYLE,
42 PROP_LINECHARTTYPE_CURVE_RESOLUTION,
43 PROP_LINECHARTTYPE_SPLINE_ORDER
53 ::chart::PropertyHelper::setPropertyValueDefault< sal_Int32 >( aOutMap, PROP_LINECHARTTYPE_CURVE_RESOLUTION, 20 );
57 ::chart::PropertyHelper::setPropertyValueDefault< sal_Int32 >( aOutMap, PROP_LINECHARTTYPE_SPLINE_ORDER, 3 );
60 return aStaticDefaults;
65 static ::cppu::OPropertyArrayHelper aPropHelper(
70 PROP_LINECHARTTYPE_CURVE_STYLE,
72 beans::PropertyAttribute::BOUND
73 | beans::PropertyAttribute::MAYBEDEFAULT },
75 PROP_LINECHARTTYPE_CURVE_RESOLUTION,
77 beans::PropertyAttribute::BOUND
78 | beans::PropertyAttribute::MAYBEDEFAULT },
80 PROP_LINECHARTTYPE_SPLINE_ORDER,
82 beans::PropertyAttribute::BOUND
83 | beans::PropertyAttribute::MAYBEDEFAULT } };
93uno::Reference< beans::XPropertySetInfo >& StaticLineChartTypeInfo()
95 static uno::Reference< beans::XPropertySetInfo > xPropertySetInfo(
97 return xPropertySetInfo;
138 tPropertyValueMap::const_iterator aFound( rStaticDefaults.find(
nHandle ) );
139 if( aFound == rStaticDefaults.end() )
142 rAny = (*aFound).second;
147 return StaticLineChartTypeInfoHelper();
153 return StaticLineChartTypeInfo();
158 return "com.sun.star.comp.chart.LineChartType";
170 "com.sun.star.chart2.ChartType",
171 "com.sun.star.beans.PropertySet" };
176extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface *
178 css::uno::Sequence<css::uno::Any>
const &)
180 return cppu::acquire(new ::chart::LineChartType);
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_comp_chart_LineChartType_get_implementation(css::uno::XComponentContext *, css::uno::Sequence< css::uno::Any > const &)
PropertiesInfo aProperties
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() 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 OUString SAL_CALL getImplementationName() override
virtual OUString SAL_CALL getChartType() override
virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone() override
virtual ~LineChartType() override
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.
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
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_LINE
constexpr OUStringLiteral CHART_UNONAME_SPLINE_ORDER
constexpr OUStringLiteral CHART_UNONAME_CURVE_STYLE
constexpr OUStringLiteral CHART_UNONAME_CURVE_RESOLUTION