Kaydet (Commit) ebf98688 authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane

Revert "xmloff: dead code gives MSVC fits"

This reverts commit 29e1b2f1
in preparation for reverting 2d4b87f0
üst f1ffba89
...@@ -1155,6 +1155,36 @@ namespace xmloff ...@@ -1155,6 +1155,36 @@ namespace xmloff
} }
} }
// the string properties
{
static const sal_Int32 nStringPropertyAttributeIds[] =
{ // attribute flags
};
static const OUString pStringPropertyNames[] =
{ // property names
};
static const sal_Int32 nIdCount = sizeof( nStringPropertyAttributeIds ) / sizeof( nStringPropertyAttributeIds[0] );
#if OSL_DEBUG_LEVEL > 0
static const sal_Int32 nNameCount = sizeof( pStringPropertyNames ) / sizeof( pStringPropertyNames[0] );
OSL_ENSURE( ( nIdCount == nNameCount ),
"OControlExport::exportSpecialAttributes: somebody tampered with the maps (2)!" );
#endif
for ( i = 0; i < nIdCount; ++i )
if ( nStringPropertyAttributeIds[i] & m_nIncludeSpecial )
{
exportStringPropertyAttribute(
OAttributeMetaData::getSpecialAttributeNamespace( nStringPropertyAttributeIds[i] ),
OAttributeMetaData::getSpecialAttributeName( nStringPropertyAttributeIds[i] ),
pStringPropertyNames[i]
);
#if OSL_DEBUG_LEVEL > 0
// reset the bit for later checking
m_nIncludeSpecial = m_nIncludeSpecial & ~nStringPropertyAttributeIds[i];
#endif
}
}
if ((SCA_MIN_VALUE | SCA_MAX_VALUE) & m_nIncludeSpecial) if ((SCA_MIN_VALUE | SCA_MAX_VALUE) & m_nIncludeSpecial)
{ {
// need to export the min value and the max value as attributes // need to export the min value and the max value as attributes
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment