19#include <com/sun/star/beans/PropertyAttribute.hpp>
20#include <com/sun/star/uno/XComponentContext.hpp>
21#include <com/sun/star/drawing/FillStyle.hpp>
32 DataTableProperty_HorizontalBorder,
33 DataTableProperty_VerticalBorder,
34 DataTableProperty_Outilne,
35 DataTableProperty_Keys,
38void lcl_AddPropertiesToVector(std::vector<beans::Property>& rProps)
40 auto const nBound = beans::PropertyAttribute::BOUND;
41 auto const nMaybeDefault = beans::PropertyAttribute::MAYBEDEFAULT;
44 nBound | nMaybeDefault);
46 nBound | nMaybeDefault);
48 nBound | nMaybeDefault);
50 nBound | nMaybeDefault);
72 aMap, ::chart::FillProperties::PROP_FILL_STYLE, drawing::FillStyle_NONE);
74 float fDefaultCharHeight = 10.0;
83 return aStaticDefaults;
90 lcl_AddPropertiesToVector(aProperties);
159 auto aFound = rStaticDefaults.find(
nHandle);
160 if (aFound == rStaticDefaults.end())
163 rAny = (*aFound).second;
168 return StaticDataTableInfoHelper();
176 return xPropertySetInfo;
182 return "com.sun.star.comp.chart2.DataTable";
192 return {
"com.sun.star.chart2.DataTable",
"com.sun.star.beans.PropertySet",
193 "com.sun.star.drawing.FillProperties",
"com.sun.star.drawing.LineProperties",
194 "com.sun.star.style.CharacterProperties" };
202extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
204 css::uno::XComponentContext* , uno::Sequence<uno::Any>
const& )
206 return cppu::acquire(new ::chart::DataTable);
SAL_DLLPUBLIC_EXPORT uno::XInterface * com_sun_star_comp_chart2_DataTable_get_implementation(css::uno::XComponentContext *, uno::Sequence< uno::Any > const &)
PropertiesInfo aProperties
Data table implementation.
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
rtl::Reference< ModifyEventForwarder > m_xModifyEventForwarder
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper() override
The InfoHelper table contains all property names and types of this object.
virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone() override
virtual void firePropertyChangeEvent() override
implement this method in derived classes to get called when properties change.
virtual OUString SAL_CALL getImplementationName() override
XServiceInfo declarations.
virtual void SAL_CALL removeModifyListener(const css::uno::Reference< css::util::XModifyListener > &aListener) override
virtual void SAL_CALL modified(const css::lang::EventObject &aEvent) override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() 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 ~DataTable() override
virtual void SAL_CALL addModifyListener(const css::uno::Reference< css::util::XModifyListener > &aListener) override
This helper class serves as forwarder of modify events.
static css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL createPropertySetInfo(IPropertyArrayHelper &rProperties)
void SAL_CALL disposing()
OOO_DLLPUBLIC_CHARTTOOLS void AddDefaultsToMap(::chart::tPropertyValueMap &rOutMap)
@ PROP_CHAR_COMPLEX_CHAR_HEIGHT
@ PROP_CHAR_ASIAN_CHAR_HEIGHT
OOO_DLLPUBLIC_CHARTTOOLS void AddPropertiesToVector(std::vector< css::beans::Property > &rOutProperties)
void setPropertyValueDefault(tPropertyValueMap &rOutMap, tPropertyValueMapKey key, const Value &value)
Calls setPropertyValue() but asserts that the given property hasn't been set before.
void setPropertyValue(tPropertyValueMap &rOutMap, tPropertyValueMapKey key, const Value &value)
Set a property to a certain value in the given map.
std::unordered_map< tPropertyValueMapKey, css::uno::Any > tPropertyValueMap
cppu::WeakImplHelper< css::chart2::XDataTable, css::lang::XServiceInfo, css::util::XCloneable, css::util::XModifyBroadcaster, css::util::XModifyListener > DataTable_Base
css::uno::Sequence< DstElementType > containerToSequence(const SrcType &i_Container)
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
IMPLEMENT_FORWARD_XTYPEPROVIDER2(ChildWindowPane, ChildWindowPaneInterfaceBase, Pane)
IMPLEMENT_FORWARD_XINTERFACE2(ChildWindowPane, ChildWindowPaneInterfaceBase, Pane)
HashMap_OWString_Interface aMap