23using ::comphelper::PropertyInfo;
24using ::comphelper::MasterPropertySetInfo;
25using ::com::sun::star::uno::Sequence;
26using ::com::sun::star::beans::Property;
27using ::com::sun::star::beans::UnknownPropertyException;
29MasterPropertySetInfo::MasterPropertySetInfo(
PropertyInfo const * pMap )
31 for ( ; !pMap->
maName.isEmpty(); ++pMap )
34 maMap.find(pMap->
maName) != maMap.end(),
35 "comphelper",
"Duplicate property name \"" << pMap->
maName <<
"\"");
40MasterPropertySetInfo::~MasterPropertySetInfo()
43 for(
const auto& rObj : maMap )
52 for(
const auto& rObj : rHash )
55 maMap.find(rObj.first) != maMap.end(),
56 "comphelper",
"Duplicate property name \"" << rObj.first <<
"\"");
57 maMap[rObj.first] =
new PropertyData ( nMapId, rObj.second );
61Sequence< ::Property > SAL_CALL MasterPropertySetInfo::getProperties()
63 sal_Int32 nSize = maMap.size();
69 for (
auto const& elem : maMap)
73 pProperties->Name = pInfo->
maName;
74 pProperties->Handle = pInfo->
mnHandle;
75 pProperties->Type = pInfo->
maType;
83Property SAL_CALL MasterPropertySetInfo::getPropertyByName(
const OUString& rName )
85 PropertyDataHash::iterator aIter = maMap.find( rName );
87 if ( maMap.end() == aIter )
88 throw UnknownPropertyException( rName, *
this );
92 aProperty.Name = pInfo->
maName;
94 aProperty.Type = pInfo->
maType;
100sal_Bool SAL_CALL MasterPropertySetInfo::hasPropertyByName(
const OUString& rName )
102 return maMap.find ( rName ) != maMap.end();
std::unordered_map< OUString, ::comphelper::PropertyInfo const * > PropertyInfoHash
#define SAL_WARN_IF(condition, area, stream)
SvGenericNameContainerMapImpl maProperties