25#include <com/sun/star/beans/PropertyAttribute.hpp>
26#include <com/sun/star/uno/Sequence.hxx>
34using ::com::sun::star::uno::Reference;
35using ::com::sun::star::uno::Sequence;
36using ::com::sun::star::beans::Property;
46void lcl_AddPropertiesToVector(
47 std::vector< Property > & rOutProperties )
49 rOutProperties.emplace_back(
"Show",
52 beans::PropertyAttribute::BOUND
53 | beans::PropertyAttribute::MAYBEDEFAULT );
66 ::chart::PropertyHelper::setPropertyValue< sal_Int32 >(
70 return aStaticDefaults;
75 static ::cppu::OPropertyArrayHelper aPropHelper = []()
78 lcl_AddPropertiesToVector( aProperties );
113 tPropertyValueMap::const_iterator aFound( rStaticDefaults.find(
nHandle ) );
114 if( aFound == rStaticDefaults.end() )
117 rAny = (*aFound).second;
122 return StaticGridInfoHelper();
130 return xPropertySetInfo;
171 return "com.sun.star.comp.chart2.GridProperties";
182 "com.sun.star.chart2.GridProperties",
183 "com.sun.star.beans.PropertySet" };
194extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface *
196 css::uno::Sequence<css::uno::Any>
const &)
198 return cppu::acquire(new ::chart::GridProperties);
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_comp_chart2_GridProperties_get_implementation(css::uno::XComponentContext *, css::uno::Sequence< css::uno::Any > const &)
PropertiesInfo aProperties
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) 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 void SAL_CALL addModifyListener(const css::uno::Reference< css::util::XModifyListener > &aListener) 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 modified(const css::lang::EventObject &aEvent) override
virtual ~GridProperties() override
virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone() override
virtual void SAL_CALL removeModifyListener(const css::uno::Reference< css::util::XModifyListener > &aListener) override
rtl::Reference< ModifyEventForwarder > m_xModifyEventForwarder
virtual void GetDefaultValue(sal_Int32 nHandle, css::uno::Any &rAny) const override
merge XInterface implementations
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() 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)
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.
::cppu::WeakImplHelper< css::lang::XServiceInfo, css::util::XCloneable, css::util::XModifyBroadcaster, css::util::XModifyListener > GridProperties_Base
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)
IMPLEMENT_FORWARD_XTYPEPROVIDER2(ChildWindowPane, ChildWindowPaneInterfaceBase, Pane)
IMPLEMENT_FORWARD_XINTERFACE2(ChildWindowPane, ChildWindowPaneInterfaceBase, Pane)