24#include <osl/diagnose.h>
32 sal_Int32 nPasswordHash = rAttribs.
getIntegerHex( nElement, 0 );
33 OSL_ENSURE( (0 <= nPasswordHash) && (nPasswordHash <=
SAL_MAX_UINT16),
"CodecHelper::getPasswordHash - invalid password hash" );
34 return static_cast< sal_uInt16
>( ((0 <= nPasswordHash) && (nPasswordHash <=
SAL_MAX_UINT16)) ? nPasswordHash : 0 );
Provides access to attribute values of an element.
std::optional< sal_Int32 > getIntegerHex(sal_Int32 nAttrToken) const
Returns the 32-bit signed integer value of the specified attribute (hexadecimal).
OOX_DLLPUBLIC sal_uInt16 getPasswordHash(const AttributeList &rAttribs, sal_Int32 nElement)
Returns the password hash if it is in the required 16-bit limit.