diff options
author | Artur Dorda <artur.dorda+libo@gmail.com> | 2012-07-04 14:14:38 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-07-12 03:10:17 +0200 |
commit | e6238a9cd793c7d86b1290b1a09448a1547e37fc (patch) | |
tree | 1b539000e8199a8a0b81117f934b964c081bc142 /drawinglayer | |
parent | 30b646a4cf8fc9a455b52f9b83ec08c68928adfc (diff) |
Added dumping of EnhancedCustomShapeHandle service
Change-Id: I0b9d2b7abd966bf4d8e1cf579fdc0cf319978a6e
Diffstat (limited to 'drawinglayer')
-rw-r--r-- | drawinglayer/inc/drawinglayer/EnhancedShapeDumper.hxx | 7 | ||||
-rw-r--r-- | drawinglayer/source/dumper/EnhancedShapeDumper.cxx | 8 | ||||
-rw-r--r-- | drawinglayer/source/dumper/XShapeDumper.cxx | 5 |
3 files changed, 18 insertions, 2 deletions
diff --git a/drawinglayer/inc/drawinglayer/EnhancedShapeDumper.hxx b/drawinglayer/inc/drawinglayer/EnhancedShapeDumper.hxx index d58299a076ad..c4786ac0a856 100644 --- a/drawinglayer/inc/drawinglayer/EnhancedShapeDumper.hxx +++ b/drawinglayer/inc/drawinglayer/EnhancedShapeDumper.hxx @@ -89,8 +89,8 @@ public: void dumpEnhancedCustomShapeGeometryService(com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet > xPropSet); void dumpTypeAsAttribute(rtl::OUString sType); void dumpViewBoxAsElement(com::sun::star::awt::Rectangle aViewBox); - void dumpMirroredXAsAttribute(sal_Bool bMirroredX); - void dumpMirroredYAsAttribute(sal_Bool bMirroredY); + void dumpMirroredXAsAttribute(sal_Bool bMirroredX); // also used in EnhancedCustomShapeHandle + void dumpMirroredYAsAttribute(sal_Bool bMirroredY); // also used in EnhancedCustomShapeHandle void dumpTextRotateAngleAsAttribute(double aTextRotateAngle); void dumpAdjustmentValuesAsElement(com::sun::star::uno::Sequence< com::sun::star::drawing::EnhancedCustomShapeAdjustmentValue> aAdjustmentValues); void dumpExtrusionAsElement(com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue > aExtrusion); @@ -99,6 +99,9 @@ public: void dumpEquationsAsElement(com::sun::star::uno::Sequence< rtl::OUString > aEquations); void dumpHandlesAsElement(com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValues > aHandles); + // EnhancedCustomShapeHandle.idl + void dumpEnhancedCustomShapeHandleService(com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet > xPropSet); + private: xmlTextWriterPtr xmlWriter; }; diff --git a/drawinglayer/source/dumper/EnhancedShapeDumper.cxx b/drawinglayer/source/dumper/EnhancedShapeDumper.cxx index 8556b3a61866..698dcd1e89cd 100644 --- a/drawinglayer/source/dumper/EnhancedShapeDumper.cxx +++ b/drawinglayer/source/dumper/EnhancedShapeDumper.cxx @@ -632,3 +632,11 @@ void EnhancedShapeDumper::dumpHandlesAsElement(uno::Sequence< beans::PropertyVal xmlTextWriterEndElement( xmlWriter ); } +// ------------------------------------------------------ +// ---------- EnhancedCustomShapeHandle.idl ----------- +// ------------------------------------------------------ + +void EnhancedShapeDumper::dumpEnhancedCustomShapeHandleService(uno::Reference< beans::XPropertySet > xPropSet) +{ + +} diff --git a/drawinglayer/source/dumper/XShapeDumper.cxx b/drawinglayer/source/dumper/XShapeDumper.cxx index 24b9d12c75ea..c0dc89e6cd00 100644 --- a/drawinglayer/source/dumper/XShapeDumper.cxx +++ b/drawinglayer/source/dumper/XShapeDumper.cxx @@ -1823,6 +1823,11 @@ namespace { EnhancedShapeDumper enhancedDumper(xmlWriter); enhancedDumper.dumpEnhancedCustomShapeGeometryService(xPropSet); } + if(xServiceInfo->supportsService("com.sun.star.drawing.EnhancedCustomShapeHandle")) + { + EnhancedShapeDumper enhancedDumper(xmlWriter); + enhancedDumper.dumpEnhancedCustomShapeHandleService(xPropSet); + } } // end of the 'try' block catch (com::sun::star::beans::UnknownPropertyException &e) { |