summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2015-02-05 21:43:14 +0100
committerLionel Elie Mamane <lionel@mamane.lu>2015-02-05 21:46:25 +0100
commitebf98688efab6dbfb0111e40cb18a7a9d1012ac9 (patch)
tree3e12c2e4ac444f0402f915dc77bb8076f7b14542 /xmloff
parentf1ffba89214e3250a5781feb90e4c100d04038b9 (diff)
Revert "xmloff: dead code gives MSVC fits"
This reverts commit 29e1b2f1ca6e2dcbf9a04c63a3ac1d554cfdcb52 in preparation for reverting 2d4b87f0c1bfd97185a89c18d5b7680d11a958d6
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/forms/elementexport.cxx30
1 files changed, 30 insertions, 0 deletions
diff --git a/xmloff/source/forms/elementexport.cxx b/xmloff/source/forms/elementexport.cxx
index 7ac919139dd1..bd1d7e27d462 100644
--- a/xmloff/source/forms/elementexport.cxx
+++ b/xmloff/source/forms/elementexport.cxx
@@ -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)
{
// need to export the min value and the max value as attributes