26#include <com/sun/star/lang/XTypeProvider.hpp>
27#include <com/sun/star/beans/XPropertyState.hpp>
28#include <com/sun/star/beans/XMultiPropertyStates.hpp>
29#include <com/sun/star/style/XStyleSupplier.hpp>
32#include <unordered_map>
44 public css::lang::XTypeProvider,
45 public css::beans::XPropertyState,
46 public css::beans::XMultiPropertyStates,
47 public css::style::XStyleSupplier
56 void SetNewValuesExplicitlyEvenIfTheyEqualDefault();
78 virtual ::cppu::IPropertyArrayHelper & SAL_CALL
getInfoHelper()
override = 0;
104 virtual sal_Bool SAL_CALL convertFastPropertyValue
105 ( css::uno::Any & rConvertedValue,
106 css::uno::Any & rOldValue,
108 const css::uno::Any& rValue )
override final;
127 virtual void SAL_CALL setFastPropertyValue_NoBroadcast
129 const css::uno::Any& rValue )
override;
137 virtual void SAL_CALL getFastPropertyValue
138 ( css::uno::Any& rValue,
139 sal_Int32 nHandle )
const override;
144 virtual void firePropertyChangeEvent();
148 using ::cppu::OPropertySetHelper::getFastPropertyValue;
153 virtual css::uno::Any SAL_CALL
queryInterface(
const css::uno::Type& aType )
override;
156 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
158 virtual css::uno::Sequence< sal_Int8 > SAL_CALL
159 getImplementationId()
override;
162 virtual css::beans::PropertyState SAL_CALL
163 getPropertyState(
const OUString& PropertyName )
override final;
164 virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL
165 getPropertyStates(
const css::uno::Sequence< OUString >& aPropertyName )
override final;
166 virtual void SAL_CALL
167 setPropertyToDefault(
const OUString& PropertyName )
override final;
168 virtual css::uno::Any SAL_CALL
169 getPropertyDefault(
const OUString& aPropertyName )
override final;
174 virtual void SAL_CALL
175 setAllPropertiesToDefault() override final;
176 virtual
void SAL_CALL
177 setPropertiesToDefault( const css::
uno::Sequence< OUString >& aPropertyNames ) override final;
178 virtual css::
uno::Sequence< css::
uno::Any > SAL_CALL
179 getPropertyDefaults( const css::
uno::Sequence< OUString >& aPropertyNames ) override final;
182 virtual css::
uno::Reference< css::style::XStyle > SAL_CALL getStyle() override final;
183 virtual
void SAL_CALL setStyle( const css::
uno::Reference< css::style::XStyle >& xStyle ) override final;
186 virtual
void SAL_CALL setPropertyValues(
187 const css::
uno::Sequence< OUString >& PropertyNames,
188 const css::
uno::Sequence< css::
uno::Any >& Values ) override final;
191 virtual
void SAL_CALL setFastPropertyValue( sal_Int32 nHandle, const css::
uno::Any& rValue ) override final;
199 css::beans::PropertyState
200 GetPropertyStateByHandle( sal_Int32 nHandle ) const;
202 css::
uno::Sequence< css::beans::PropertyState >
203 GetPropertyStatesByHandle( const
std::vector< sal_Int32 > & aHandles ) const;
205 void SetPropertyToDefault( sal_Int32 nHandle );
206 void SetPropertiesToDefault( const
std::vector< sal_Int32 > & aHandles );
207 void SetAllPropertiesToDefault();
217 bool GetPropertyValueByHandle(
218 css::
uno::Any & rValue,
219 sal_Int32 nHandle ) const;
221 void SetPropertyValueByHandle( sal_Int32 nHandle,
222 const css::
uno::Any & rValue );
224 bool SetStyle( const css::
uno::Reference< css::style::XStyle > & xStyle );
226 bool m_bSetNewValuesExplicitlyEvenIfTheyEqualDefault;
227 std::unordered_map< sal_Int32, css::
uno::Any > m_aProperties;
228 css::
uno::Reference< css::style::XStyle > m_xStyle;
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper() override=0
The InfoHelper table contains all property names and types of this object.
virtual void GetDefaultValue(sal_Int32 nHandle, css::uno::Any &rAny) const =0
implement this method to provide default values for all properties supporting defaults.
css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType, Interface1 *p1)