40 void remove(
const OUString&
aName )
throw();
56 PropertyMapImpl::PropertyMapImpl() throw()
62 while (!pMap->maName.isEmpty())
65 assert(maPropertyMap.find(pMap->maName) == maPropertyMap.end());
67 maPropertyMap[pMap->maName] = pMap;
77 maPropertyMap.erase(
aName );
82 std::vector< Property >
const & PropertyMapImpl::getProperties() throw()
92 for(
const auto& rProperty : maPropertyMap )
96 propIter->Name = pEntry->
maName;
98 propIter->Type = pEntry->
maType;
109 Property PropertyMapImpl::getPropertyByName(
const OUString& aName )
111 PropertyMap::iterator aIter = maPropertyMap.find( aName );
113 if( maPropertyMap.end() == aIter )
114 throw UnknownPropertyException( aName );
121 bool PropertyMapImpl::hasPropertyByName(
const OUString& aName )
throw()
123 return maPropertyMap.find(
aName ) != maPropertyMap.end();
127 PropertySetInfo::PropertySetInfo() throw()
138 PropertySetInfo::PropertySetInfo(uno::Sequence<beans::Property>
const& rProps)
throw()
143 for (
auto const& it : rProps)
145 pEntry->maName = it.Name;
146 pEntry->mnHandle = it.Handle;
147 pEntry->maType = it.Type;
148 pEntry->mnAttributes = it.Attributes;
149 pEntry->mnMemberId = 0;
152 pEntry->maName = OUString();
153 mpImpl->add(pEntries);
156 PropertySetInfo::~PropertySetInfo() throw()
167 mpImpl->remove(
aName );
170 Sequence< css::beans::Property > SAL_CALL PropertySetInfo::getProperties()
175 Property SAL_CALL PropertySetInfo::getPropertyByName(
const OUString& aName )
177 return mpImpl->getPropertyByName( aName );
180 sal_Bool SAL_CALL PropertySetInfo::hasPropertyByName(
const OUString& Name )
182 return mpImpl->hasPropertyByName( Name );
185 const PropertyMap& PropertySetInfo::getPropertyMap()
const throw()
187 return mpImpl->getPropertyMap();
void add(PropertyMapEntry const *pMap)
sal_Int16 mnAttributes
flag bitmap,
bool hasPropertyByName(const OUString &aName)
PropertyMap maPropertyMap
OUStringBuffer & remove(OUStringBuffer &rIn, sal_Unicode c)
Removes all occurrences of a character from within the source string.
std::map< OUString, PropertyMapEntry const * > PropertyMap
const BorderLinePrimitive2D *pCandidateB assert(pCandidateA)
SvGenericNameContainerMapImpl maProperties
std::vector< Property > maProperties
const PropertyMap & getPropertyMap() const
Property getPropertyByName(const OUString &aName)
css::uno::Sequence< DstElementType > containerToSequence(const SrcType &i_Container)
Copy from a container into a Sequence.
std::vector< Property > const & getProperties()