summaryrefslogtreecommitdiff
path: root/xmloff/source/forms/propertyimport.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-11-16 09:11:20 +0000
committerOliver Bolte <obo@openoffice.org>2004-11-16 09:11:20 +0000
commit9d35502f643effa4d5fc9c405333a313e4a87408 (patch)
tree5930fa9ec1660608b26677dfce2bc91a82b54712 /xmloff/source/forms/propertyimport.cxx
parentf86cd121d2f374f7ab790c7402864bad19a27b06 (diff)
INTEGRATION: CWS eforms2 (1.18.20); FILE MERGED
2004/08/06 11:35:30 fs 1.18.20.4: refined an assertion 2004/07/27 12:14:08 fs 1.18.20.3: RESYNC: (1.19-1.20); FILE MERGED 2004/06/25 09:56:31 dvo 1.18.20.2: RESYNC: (1.18-1.19); FILE MERGED 2004/01/28 14:50:25 dvo 1.18.20.1: #114856# explicitly down-cast integers to eliminate compiler warnings
Diffstat (limited to 'xmloff/source/forms/propertyimport.cxx')
-rw-r--r--xmloff/source/forms/propertyimport.cxx21
1 files changed, 18 insertions, 3 deletions
diff --git a/xmloff/source/forms/propertyimport.cxx b/xmloff/source/forms/propertyimport.cxx
index 1b75264ed2e8..6d6df90ed7be 100644
--- a/xmloff/source/forms/propertyimport.cxx
+++ b/xmloff/source/forms/propertyimport.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: propertyimport.cxx,v $
*
- * $Revision: 1.20 $
+ * $Revision: 1.21 $
*
- * last change: $Author: rt $ $Date: 2004-07-13 08:15:07 $
+ * last change: $Author: obo $ $Date: 2004-11-16 10:11:20 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -105,6 +105,12 @@
#include <unotools/datetime.hxx>
#endif
+#if OSL_DEBUG_LEVEL > 0
+ #ifndef _OSL_THREAD_H_
+ #include <osl/thread.h>
+ #endif
+#endif
+
//.........................................................................
namespace xmloff
{
@@ -205,8 +211,17 @@ namespace xmloff
aNewValue.Value = convertString(m_rContext.getGlobalContext(), pProperty->aPropertyType, _rValue, pProperty->pEnumMap, pProperty->bInverseSemantics);
implPushBackPropertyValue( aNewValue );
}
+#if OSL_DEBUG_LEVEL > 0
else
- OSL_ENSURE( sal_False, "OPropertyImport::handleAttribute: can't handle attributes which do not describe properties!" );
+ {
+ ::rtl::OString sMessage( "OPropertyImport::handleAttribute: Can't handle the following:\n" );
+ sMessage += ::rtl::OString( " Attribute name: " );
+ sMessage += ::rtl::OString( _rLocalName.getStr(), _rLocalName.getLength(), osl_getThreadTextEncoding() );
+ sMessage += ::rtl::OString( "\n value: " );
+ sMessage += ::rtl::OString( _rValue.getStr(), _rValue.getLength(), osl_getThreadTextEncoding() );
+ OSL_ENSURE( sal_False, sMessage.getStr() );
+ }
+#endif
}
//---------------------------------------------------------------------