diff options
Diffstat (limited to 'oox/source/helper/propertymap.cxx')
-rw-r--r-- | oox/source/helper/propertymap.cxx | 19 |
1 files changed, 19 insertions, 0 deletions
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 |