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)
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)
392 "OAttribute2Property::implAdd: already have this attribute!");
void addInt16Property(sal_Int32 nAttributeToken, const OUString &_rPropertyName)
add an attribute assignment referring to an int16 property to the map
void addStringProperty(sal_Int32 nAttributeToken, const OUString &_rPropertyName)
add an attribute assignment referring to a string 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
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
void addInt32Property(sal_Int32 nAttributeToken, const OUString &_rPropertyName)
add an attribute assignment referring to an int32 property to the map
std::map< sal_Int32, AttributeAssignment > m_aKnownProperties
void addEnumPropertyImpl(sal_Int32 nAttributeToken, const OUString &_rPropertyName, const SvXMLEnumMapEntry< sal_uInt16 > *_pValueMap, const css::uno::Type *_pType)
const AttributeAssignment * getAttributeTranslation(sal_Int32 nAttributeToken)
return the AttributeAssignment which corresponds to the given attribute
Handling of tokens in XML:
XMLTokenEnum
The enumeration of all XML tokens.
@ XML_CONVERT_EMPTY_TO_NULL
@ XML_CONTROL_IMPLEMENTATION
FormAttributes
attributes in the xml tag representing a form
const SvXMLEnumMapEntry< sal_uInt16 > * pEnumMap
css::uno::Type aPropertyType
constexpr sal_Int32 TOKEN_MASK
constexpr sal_uInt16 XML_NAMESPACE_XLINK
constexpr sal_uInt16 XML_NAMESPACE_FORM
constexpr sal_uInt16 XML_NAMESPACE_FORMX
constexpr sal_uInt16 XML_NAMESPACE_OFFICE