25 #include <osl/diagnose.h>
67 OSL_FAIL(
"OAttributeMetaData::getCommonControlAttributeName: invalid id (maybe you or-ed two flags?)!");
102 assert(
false &&
"OAttributeMetaData::getCommonControlAttributeName: invalid id (maybe you or-ed two flags?)!");
122 case faName:
return "name";
142 OSL_FAIL(
"OAttributeMetaData::getFormAttributeName: invalid id!");
171 assert(
false &&
"OAttributeMetaData::getFormAttributeName: invalid id!");
195 OSL_FAIL(
"OAttributeMetaData::getDatabaseAttributeName: invalid id (maybe you or-ed two flags?)!");
211 assert(
false &&
"OAttributeMetaData::getDatabaseAttributeName: invalid id (maybe you or-ed two flags?)!");
224 OSL_FAIL(
"OAttributeMetaData::getBindingAttributeName: invalid id (maybe you or-ed two flags?)!");
237 assert(
false &&
"OAttributeMetaData::getBindingAttributeName: invalid id (maybe you or-ed two flags?)!");
265 OSL_FAIL(
"OAttributeMetaData::getSpecialAttributeName: invalid id (maybe you or-ed two flags?)!");
293 assert(
false &&
"OAttributeMetaData::getSpecialAttributeName: invalid id (maybe you or-ed two flags?)!");
315 OSL_FAIL(
"OAttributeMetaData::getOfficeFormsAttributeName: invalid id!");
327 assert(
false &&
"OAttributeMetaData::getOfficeFormsAttributeName: invalid id!");
342 sal_Int32 nAttributeToken)
344 auto aPos = m_aKnownProperties.find(nAttributeToken &
TOKEN_MASK);
345 if (m_aKnownProperties.end() != aPos)
346 return &aPos->second;
351 sal_Int32 nAttributeToken,
const OUString& _rPropertyName)
357 sal_Int32 nAttributeToken,
const OUString& _rPropertyName,
358 const bool ,
const bool _bInverseSemantics)
365 sal_Int32 nAttributeToken,
const OUString& _rPropertyName)
371 sal_Int32 nAttributeToken,
const OUString& _rPropertyName)
377 sal_Int32 nAttributeToken,
const OUString& _rPropertyName,
379 const css::uno::Type* _pType)
387 sal_Int32 nAttributeToken,
const OUString& _rPropertyName,
388 const css::uno::Type& _rType)
391 OSL_ENSURE(m_aKnownProperties.end() == m_aKnownProperties.find(nAttributeToken),
392 "OAttribute2Property::implAdd: already have this attribute!");
396 aAssignment.aPropertyType = _rType;
399 m_aKnownProperties[nAttributeToken] = aAssignment;
400 return m_aKnownProperties[nAttributeToken];
constexpr sal_uInt16 XML_NAMESPACE_OFFICE
const SvXMLEnumMapEntry< sal_uInt16 > * pEnumMap
void addEnumPropertyImpl(sal_Int32 nAttributeToken, const OUString &_rPropertyName, const SvXMLEnumMapEntry< sal_uInt16 > *_pValueMap, const css::uno::Type *_pType)
constexpr sal_uInt16 XML_NAMESPACE_FORMX
constexpr sal_uInt16 XML_NAMESPACE_XLINK
FormAttributes
attributes in the xml tag representing a form
void addBooleanProperty(sal_Int32 nAttributeToken, const OUString &_rPropertyName, const bool _bAttributeDefault, const bool _bInverseSemantics=false)
add an attribute assignment referring to a boolean property to the map
const BorderLinePrimitive2D *pCandidateB assert(pCandidateA)
constexpr sal_uInt16 XML_NAMESPACE_FORM
XMLTokenEnum
The enumeration of all XML tokens.
void addInt16Property(sal_Int32 nAttributeToken, const OUString &_rPropertyName)
add an attribute assignment referring to an int16 property to the map
AttributeAssignment & implAdd(sal_Int32 nAttributeToken, const OUString &_rPropertyName, const css::uno::Type &_rType)
some common code for the various add*Property methods
const AttributeAssignment * getAttributeTranslation(sal_Int32 nAttributeToken)
return the AttributeAssignment which corresponds to the given attribute
void addInt32Property(sal_Int32 nAttributeToken, const OUString &_rPropertyName)
add an attribute assignment referring to an int32 property to the map
Handling of tokens in XML:
constexpr sal_Int32 TOKEN_MASK
void addStringProperty(sal_Int32 nAttributeToken, const OUString &_rPropertyName)
add an attribute assignment referring to a string property to the map