20#ifndef INCLUDED_COMPHELPER_PROPERTYSETINFO_HXX
21#define INCLUDED_COMPHELPER_PROPERTYSETINFO_HXX
25#include <com/sun/star/beans/XPropertySetInfo.hpp>
30#include <unordered_map>
64 assert( (_nMemberId & 0x40) == 0 );
68 ( (
maType.getTypeClass() == css::uno::TypeClass_BYTE)
69 || (
maType.getTypeClass() == css::uno::TypeClass_SHORT)
70 || (
maType.getTypeClass() == css::uno::TypeClass_UNSIGNED_SHORT)
71 || (
maType.getTypeClass() == css::uno::TypeClass_LONG)
72 || (
maType.getTypeClass() == css::uno::TypeClass_UNSIGNED_LONG)
78typedef std::unordered_map<OUString, PropertyMapEntry const *>
PropertyMap;
82 :
public ::cppu::WeakImplHelper< css::beans::XPropertySetInfo >
99 const
PropertyMap& getPropertyMap() const noexcept {
return maPropertyMap; }
107 void remove(
const OUString& aName )
noexcept;
109 virtual css::uno::Sequence< css::beans::Property > SAL_CALL
getProperties()
override;
this class implements a XPropertySetInfo that is initialized with arrays of PropertyMapEntry.
PropertySetInfo() noexcept
virtual css::uno::Sequence< css::beans::Property > SAL_CALL getProperties() override
virtual css::beans::Property SAL_CALL getPropertyByName(const OUString &aName) override
virtual sal_Bool SAL_CALL hasPropertyByName(const OUString &Name) override
PropertyMap maPropertyMap
css::uno::Sequence< css::beans::Property > maProperties
Cache the value we return in getProperties because it is expensive to construct.
#define COMPHELPER_DLLPUBLIC
OUStringBuffer & remove(OUStringBuffer &rIn, sal_Unicode c)
Removes all occurrences of a character from within the source string.
std::unordered_map< OUString, PropertyMapEntry const * > PropertyMap
sal_Int16 mnAttributes
flag bitmap,
PropertyMapEntry()=default
PropertyMapEntry(OUString _aName, sal_Int32 _nHandle, css::uno::Type const &_rType, sal_Int16 _nAttributes, sal_uInt8 _nMemberId, PropertyMoreFlags _nMoreFlags=PropertyMoreFlags::NONE)
PropertyMoreFlags mnMoreFlags