summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
Diffstat (limited to 'oox')
-rw-r--r--oox/source/drawingml/customshapeproperties.cxx3
-rw-r--r--oox/source/helper/propertymap.cxx19
2 files changed, 22 insertions, 0 deletions
diff --git a/oox/source/drawingml/customshapeproperties.cxx b/oox/source/drawingml/customshapeproperties.cxx
index 4886912ac054..cfaec25460dd 100644
--- a/oox/source/drawingml/customshapeproperties.cxx
+++ b/oox/source/drawingml/customshapeproperties.cxx
@@ -351,6 +351,9 @@ void CustomShapeProperties::pushToPropSet( const ::oox::core::FilterBase& /* rFi
SAL_INFO("oox.cscode", "==cscode== begin");
aPropertyMap.dumpCode();
SAL_INFO("oox.cscode", "==cscode== end");
+ SAL_INFO("oox.csdata", "==csdata== begin");
+ aPropertyMap.dumpData();
+ SAL_INFO("oox.csdata", "==csdata== end");
#endif
// converting the vector to a sequence
Sequence< PropertyValue > aSeq = aPropertyMap.makePropertyValueSequence();
diff --git a/oox/source/helper/propertymap.cxx b/oox/source/helper/propertymap.cxx
index 05c3b135ea54..1e5af51263b5 100644
--- a/oox/source/helper/propertymap.cxx
+++ b/oox/source/helper/propertymap.cxx
@@ -27,6 +27,8 @@
# include <com/sun/star/text/WritingMode.hpp>
using ::com::sun::star::style::LineSpacing;
using ::com::sun::star::text::WritingMode;
+#include <comphelper/anytostring.hxx>
+#include <iostream>
#endif
#include <com/sun/star/beans/PropertyValue.hpp>
@@ -929,10 +931,27 @@ void PropertyMap::dumpCode( Reference< XPropertySet > rXPropSet )
}
}
+void PropertyMap::dumpData(Reference<XPropertySet> xPropertySet)
+{
+ Reference<XPropertySetInfo> xPropertySetInfo = xPropertySet->getPropertySetInfo();
+ Sequence<Property> aProperties = xPropertySetInfo->getProperties();
+
+ for (int i = 0; i < aProperties.getLength(); ++i)
+ {
+ std::cerr << aProperties[i].Name << std::endl;
+ std::cerr << comphelper::anyToString(xPropertySet->getPropertyValue(aProperties[i].Name)) << std::endl;
+ }
+}
+
void PropertyMap::dumpCode()
{
dumpCode( Reference< XPropertySet >( makePropertySet(), UNO_QUERY ) );
}
+
+void PropertyMap::dumpData()
+{
+ dumpData( Reference< XPropertySet >( makePropertySet(), UNO_QUERY ) );
+}
#endif
} // namespace oox