23using ::comphelper::PropertyInfo;
24using ::comphelper::ChainablePropertySetInfo;
25using ::com::sun::star::uno::Sequence;
26using ::com::sun::star::beans::Property;
27using ::com::sun::star::beans::UnknownPropertyException;
29ChainablePropertySetInfo::ChainablePropertySetInfo(
PropertyInfo const * pMap )
31 for( ; !pMap->
maName.isEmpty(); ++pMap )
34 maMap.find(pMap->
maName) != maMap.end(),
35 "comphelper",
"Duplicate property name \"" << pMap->
maName <<
"\"");
36 maMap[pMap->
maName] = pMap;
40ChainablePropertySetInfo::~ChainablePropertySetInfo()
47 maMap.erase (
aName );
52Sequence< ::Property > SAL_CALL ChainablePropertySetInfo::getProperties()
54 sal_Int32 nSize = maMap.size();
60 for (
auto const& elem : maMap)
64 pProperties->Name = pInfo->
maName;
65 pProperties->Handle = pInfo->
mnHandle;
66 pProperties->Type = pInfo->
maType;
74Property SAL_CALL ChainablePropertySetInfo::getPropertyByName(
const OUString& rName )
76 PropertyInfoHash::iterator aIter = maMap.find( rName );
78 if ( maMap.end() == aIter )
79 throw UnknownPropertyException( rName, *
this );
83 aProperty.Name = pInfo->
maName;
85 aProperty.Type = pInfo->
maType;
90sal_Bool SAL_CALL ChainablePropertySetInfo::hasPropertyByName(
const OUString& rName )
92 return maMap.find ( rName ) != maMap.end();
#define SAL_WARN_IF(condition, area, stream)
SvGenericNameContainerMapImpl maProperties
OUStringBuffer & remove(OUStringBuffer &rIn, sal_Unicode c)
Removes all occurrences of a character from within the source string.