30#include <osl/diagnose.h>
33#include <unordered_map>
58 return s_propertyMetaData;
71 typedef std::unordered_map< OUString, const PropertyDescription* > DescriptionsByName;
73 const DescriptionsByName& lcl_getPropertyDescriptions()
76 static DescriptionsByName s_propertyDescriptionsByName;
77 if ( s_propertyDescriptionsByName.empty() )
82 s_propertyDescriptionsByName[ desc->
propertyName ] = desc;
86 return s_propertyDescriptionsByName;
89 typedef std::unordered_map< OUString, XMLTokenEnum > ReverseTokenLookup;
102 typedef std::unordered_map< AttributeDescription, PropertyGroups, AttributeHash > AttributesWithoutGroup;
104 const AttributesWithoutGroup& lcl_getAttributesWithoutGroups()
107 static AttributesWithoutGroup s_attributesWithoutGroup;
108 if ( s_attributesWithoutGroup.empty() )
114 singleElementList.push_back( desc );
116 s_attributesWithoutGroup[ desc->
attribute ].push_back( singleElementList );
120 return s_attributesWithoutGroup;
126 const DescriptionsByName& rAllDescriptions( lcl_getPropertyDescriptions() );
127 DescriptionsByName::const_iterator
pos = rAllDescriptions.find( i_propertyName );
128 if (
pos != rAllDescriptions.end() )
137 const AttributesWithoutGroup& attributesWithoutGroups( lcl_getAttributesWithoutGroups() );
138 const AttributesWithoutGroup::const_iterator
pos = attributesWithoutGroups.find( i_attribute );
139 if (
pos != attributesWithoutGroups.end() )
140 o_propertyGroups =
pos->second;
#define DBG_TESTSOLARMUTEX()
std::enable_if_t<(sizeof(N)==4)> hash_combine(N &nSeed, T const *pValue, size_t nCount)
Handling of tokens in XML:
XMLTokenEnum
The enumeration of all XML tokens.
constexpr OUStringLiteral PROPERTY_DATE
constexpr OUStringLiteral PROPERTY_TIME_MAX
constexpr OUStringLiteral PROPERTY_TIME
constexpr OUStringLiteral PROPERTY_DEFAULT_TIME
::std::vector< PropertyDescriptionList > PropertyGroups
constexpr OUStringLiteral PROPERTY_DATE_MAX
constexpr OUStringLiteral PROPERTY_TIME_MIN
constexpr OUStringLiteral PROPERTY_DATE_MIN
::std::vector< const PropertyDescription * > PropertyDescriptionList
constexpr OUStringLiteral PROPERTY_DEFAULT_DATE
::xmloff::token::XMLTokenEnum attributeToken
sal_uInt16 namespacePrefix
const OUString propertyName
is the name of the property
const AttributeDescription attribute
constexpr sal_Int32 TOKEN_MASK
constexpr size_t NMSP_SHIFT
constexpr sal_uInt16 XML_NAMESPACE_FORM