19#ifndef INCLUDED_SVL_ITEMPROP_HXX
20#define INCLUDED_SVL_ITEMPROP_HXX
22#include <com/sun/star/beans/XPropertySetInfo.hpp>
23#include <com/sun/star/beans/PropertyState.hpp>
34#define PROPERTY_NONE 0
58 assert(_nFlags <= 0x1ff );
59 assert( (_nMemberId & 0x40) == 0 );
62 assert(!(_nMoreFlags & PropertyMoreFlags::METRIC_ITEM) ||
63 ( (
aType.getTypeClass() == css::uno::TypeClass_BYTE)
64 || (
aType.getTypeClass() == css::uno::TypeClass_SHORT)
65 || (
aType.getTypeClass() == css::uno::TypeClass_UNSIGNED_SHORT)
66 || (
aType.getTypeClass() == css::uno::TypeClass_LONG)
67 || (
aType.getTypeClass() == css::uno::TypeClass_UNSIGNED_LONG)
82 mutable css::uno::Sequence< css::beans::Property >
m_aPropSeq;
89 css::uno::Sequence< css::beans::Property >
const & getProperties()
const;
91 css::beans::Property getPropertyByName(
const OUString & rName )
const;
92 bool hasPropertyByName( std::u16string_view rName )
const;
100 mutable css::uno::Reference<css::beans::XPropertySetInfo>
m_xInfo;
110 css::uno::Any& rAny)
const;
115 css::uno::Any& rAny)
const;
124 const css::uno::Any& aVal,
130 const css::uno::Any& aVal,
134 css::beans::PropertyState
135 getPropertyState(
const OUString& rName,
const SfxItemSet& rSet)
const;
136 css::beans::PropertyState
140 css::uno::Reference<css::beans::XPropertySetInfo>
const &
141 getPropertySetInfo()
const;
157 virtual css::uno::Sequence< css::beans::Property > SAL_CALL
158 getProperties( )
override;
160 virtual css::beans::Property SAL_CALL
161 getPropertyByName(
const OUString& aName )
override;
164 hasPropertyByName(
const OUString& Name )
override;
184 const css::uno::Sequence<css::beans::Property>& rPropSeq );
187 virtual css::uno::Sequence< css::beans::Property > SAL_CALL
188 getProperties( )
override;
190 virtual css::beans::Property SAL_CALL
191 getPropertyByName(
const OUString&
aName )
override;
194 hasPropertyByName(
const OUString&
Name )
override;
199 mutable css::uno::Sequence< css::beans::Property >
m_aPropSeq;
css::uno::Sequence< css::beans::Property > m_aPropSeq
o3tl::sorted_vector< SfxItemPropertyMapEntry, SfxItemPropertyMapCompare2 > maMap
css::uno::Sequence< css::beans::Property > m_aPropSeq
SfxItemPropertyMap(const SfxItemPropertyMap &rSource)
const o3tl::sorted_vector< const SfxItemPropertyMapEntry *, SfxItemPropertyMapCompare > & getPropertyEntries() const
o3tl::sorted_vector< const SfxItemPropertyMapEntry *, SfxItemPropertyMapCompare > m_aMap
SfxItemPropertyMap m_aOwnMap
SfxItemPropertySet(o3tl::span< const SfxItemPropertyMapEntry > pMap)
css::uno::Reference< css::beans::XPropertySetInfo > m_xInfo
void setPropertyValue(const SfxItemPropertyMapEntry &rEntry, const css::uno::Any &aVal, SfxItemSet &rSet) const
SfxItemPropertyMap m_aMap
const SfxItemPropertyMap & getPropertyMap() const
void getPropertyValue(const OUString &rName, const SfxItemSet &rSet, css::uno::Any &rAny) const
void getPropertyValue(const SfxItemPropertyMapEntry &rEntry, const SfxItemSet &rSet, css::uno::Any &rAny) const
void setPropertyValue(const OUString &rPropertyName, const css::uno::Any &aVal, SfxItemSet &rSet) const
bool getPropertyValue(ValueType &rValue, css::uno::Reference< css::beans::XPropertySet > const &xPropSet, OUString const &propName)
bool operator()(const SfxItemPropertyMapEntry &lhs, const SfxItemPropertyMapEntry &rhs) const
bool operator()(const SfxItemPropertyMapEntry *lhs, const SfxItemPropertyMapEntry *rhs) const
map a property between beans::XPropertySet and SfxPoolItem
SfxItemPropertyMapEntry(OUString _aName, sal_uInt16 _nWID, css::uno::Type const &_rType, sal_Int16 _nFlags, sal_uInt8 const _nMemberId, PropertyMoreFlags _nMoreFlags=PropertyMoreFlags::NONE)
PropertyMoreFlags nMoreFlags
sal_uInt8 nMemberId
"member ID" to tell QueryValue/PutValue which property it is (when multiple properties map to the sam...
OUString aName
name of property
sal_uInt16 nWID
WhichId of SfxPoolItem.
css::uno::Type aType
UNO type of property.
sal_Int16 nFlags
flag bitmap,