summaryrefslogtreecommitdiff
path: root/oox/source/helper
diff options
context:
space:
mode:
authorThorsten Behrens <tbehrens@novell.com>2011-03-18 22:54:11 +0100
committerThorsten Behrens <tbehrens@novell.com>2011-03-18 22:54:53 +0100
commit48b7ae25d490230ecb4cad6545d40098b81d7992 (patch)
tree6032ffbfe5be7bbbc2c4821d8824bb626bfd3be6 /oox/source/helper
parentcc8ca7aa5cd088449607c91790979c0fa7e21b13 (diff)
Put dump() back into headers in oox
Code was still there in cxx, so put back the method decls
Diffstat (limited to 'oox/source/helper')
-rw-r--r--oox/source/helper/propertymap.cxx14
-rw-r--r--oox/source/helper/propertyset.cxx7
2 files changed, 19 insertions, 2 deletions
diff --git a/oox/source/helper/propertymap.cxx b/oox/source/helper/propertymap.cxx
index e54b02919d4d..ab6f96f05e9a 100644
--- a/oox/source/helper/propertymap.cxx
+++ b/oox/source/helper/propertymap.cxx
@@ -28,6 +28,16 @@
#include "oox/helper/propertymap.hxx"
+#if OSL_DEBUG_LEVEL > 0
+# include <cstdio>
+# include <com/sun/star/style/LineSpacing.hpp>
+# include <com/sun/star/style/LineSpacingMode.hpp>
+# include <com/sun/star/text/WritingMode.hpp>
+# define USS(x) OUStringToOString( x, RTL_TEXTENCODING_UTF8 ).getStr()
+using ::com::sun::star::style::LineSpacing;
+using ::com::sun::star::text::WritingMode;
+#endif
+
#include <com/sun/star/beans/PropertyValue.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/beans/XPropertySetInfo.hpp>
@@ -196,7 +206,7 @@ Sequence< PropertyValue > PropertyMap::makePropertyValueSequence() const
OSL_ENSURE( (0 <= aIt->first) && (aIt->first < PROP_COUNT), "PropertyMap::makePropertyValueSequence - invalid property identifier" );
pValues->Name = (*mpPropNames)[ aIt->first ];
pValues->Value = aIt->second;
- pValues->State = ::com::sun::star::beans::PropertyState_DIRECT_VALUE;
+ pValues->State = PropertyState_DIRECT_VALUE;
}
}
return aSeq;
@@ -323,7 +333,7 @@ static void lclDumpAnyValue( Any value)
void PropertyMap::dump( Reference< XPropertySet > rXPropSet )
{
Reference< XPropertySetInfo > info = rXPropSet->getPropertySetInfo ();
- Sequence< beans::Property > props = info->getProperties ();
+ Sequence< Property > props = info->getProperties ();
OSL_TRACE("dump props, len: %d", props.getLength ());
diff --git a/oox/source/helper/propertyset.cxx b/oox/source/helper/propertyset.cxx
index fbb94ccebdd3..18989a047069 100644
--- a/oox/source/helper/propertyset.cxx
+++ b/oox/source/helper/propertyset.cxx
@@ -173,6 +173,13 @@ void PropertySet::setAnyProperty( const OUString& rPropName, const Any& rValue )
}
}
+#if OSL_DEBUG_LEVEL > 0
+void PropertySet::dump()
+{
+ PropertyMap::dump( Reference< XPropertySet >( getXPropertySet(), UNO_QUERY ) );
+}
+#endif
+
// ============================================================================
} // namespace oox