diff options
author | Mark Hung <marklh9@gmail.com> | 2016-11-19 10:56:40 +0800 |
---|---|---|
committer | Mark Hung <marklh9@gmail.com> | 2016-11-19 17:27:18 +0000 |
commit | afc37372c1e1e8a865a4ad91a4b998e861ad9f02 (patch) | |
tree | ddd7a65bd9d1fa187e3bb5ae5c855d7d27b3be7d /include/oox/export | |
parent | dfee3a97a0bd30e461974af4ecb09f67bded584d (diff) |
tdf#92076 oox - export PolyPolygonShape and PolyLineShape.
1. Export PolyPolygonShape and PolyLineShape.
2. Rename WriteBezierShape to WritePolyPolygonShape because
ClosedBezierShape, OpenBezierShape, PolyPolygonShape,and
PolyLineShape share the function and all use
EscherPropertyContainer::GetPolyPolygon to get PolyPolygon
structure and use WritePolyPolygon to write xml tags.
Change-Id: I9ffdc26cf1f6fe8ea3b91b7b218d67f9e5585617
Reviewed-on: https://gerrit.libreoffice.org/30972
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mark Hung <marklh9@gmail.com>
Diffstat (limited to 'include/oox/export')
-rw-r--r-- | include/oox/export/shapes.hxx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/include/oox/export/shapes.hxx b/include/oox/export/shapes.hxx index d6ae6151b7bc..fad36643b4c6 100644 --- a/include/oox/export/shapes.hxx +++ b/include/oox/export/shapes.hxx @@ -134,9 +134,9 @@ public: static bool NonEmptyText( const css::uno::Reference< css::uno::XInterface >& xIface ); ShapeExport& - WriteBezierShape( const css::uno::Reference< css::drawing::XShape >& xShape, bool bClosed ); + WritePolyPolygonShape( const css::uno::Reference< css::drawing::XShape >& xShape, bool bClosed ); ShapeExport& - WriteClosedBezierShape( const css::uno::Reference< css::drawing::XShape >& xShape ); + WriteClosedPolyPolygonShape( const css::uno::Reference< css::drawing::XShape >& xShape ); ShapeExport& WriteConnectorShape( const css::uno::Reference< css::drawing::XShape >& xShape ); ShapeExport& @@ -154,7 +154,7 @@ public: virtual ShapeExport& WriteNonVisualProperties( const css::uno::Reference< css::drawing::XShape >& xShape ); ShapeExport& - WriteOpenBezierShape( const css::uno::Reference< css::drawing::XShape >& xShape ); + WriteOpenPolyPolygonShape( const css::uno::Reference< css::drawing::XShape >& xShape ); ShapeExport& WriteRectangleShape( const css::uno::Reference< css::drawing::XShape >& xShape ); @@ -171,12 +171,14 @@ public: * * <table> * <tr><th>Shape Type</th><th>Method</th></tr> - * <tr><td><tt>com.sun.star.drawing.ClosedBezierShape</tt></td> <td>ShapeExport::WriteClosedBezierShape</td></tr> + * <tr><td><tt>com.sun.star.drawing.ClosedBezierShape</tt></td> <td>ShapeExport::WriteClosedPolyPolygonShape</td></tr> * <tr><td><tt>com.sun.star.drawing.CustomShape</tt></td> <td>ShapeExport::WriteCustomShape</td></tr> * <tr><td><tt>com.sun.star.drawing.EllipseShape</tt></td> <td>ShapeExport::WriteEllipseShape</td></tr> * <tr><td><tt>com.sun.star.drawing.GraphicObjectShape</tt></td> <td>ShapeExport::WriteGraphicObjectShape</td></tr> * <tr><td><tt>com.sun.star.drawing.LineShape</tt></td> <td>ShapeExport::WriteLineShape</td></tr> - * <tr><td><tt>com.sun.star.drawing.OpenBezierShape</tt></td> <td>ShapeExport::WriteOpenBezierShape</td></tr> + * <tr><td><tt>com.sun.star.drawing.OpenBezierShape</tt></td> <td>ShapeExport::WriteOpenPolyPolygonShape</td></tr> + * <tr><td><tt>com.sun.star.drawing.PolyPolygonShape</tt></td> <td>ShapeExport::WriteClosedPolyPolygonShape</td></tr> + * <tr><td><tt>com.sun.star.drawing.PolyLineShape</tt></td> <td>ShapeExport::WriteOpenPolyPolygonShape</td></tr> * <tr><td><tt>com.sun.star.drawing.RectangleShape</tt></td> <td>ShapeExport::WriteRectangleShape</td></tr> * <tr><td><tt>com.sun.star.drawing.TableShape</tt></td> <td>ShapeExport::WriteTableShape</td></tr> * <tr><td><tt>com.sun.star.drawing.TextShape</tt></td> <td>ShapeExport::WriteTextShape</td></tr> |