diff options
author | Eilidh McAdam <eilidh@lanedo.com> | 2012-09-19 09:51:08 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2012-09-19 14:03:03 +0000 |
commit | 6cf41d047a65c40d34745f497482f88d5ec93acb (patch) | |
tree | 96ffefc29fa20d86b76cae6d60d057386aa00435 /oox/inc/oox/vml/vmlformatting.hxx | |
parent | 8aae567dc66c271fe3211f2847b48afbf02473b5 (diff) |
Add VML path parsing to .docx import filter.
Change-Id: Ibb90ff437f6de1cab98b64deeccfa38e0e30756b
Reviewed-on: https://gerrit.libreoffice.org/648
Reviewed-by: Miklos Vajna <vmiklos@suse.cz>
Tested-by: Miklos Vajna <vmiklos@suse.cz>
Diffstat (limited to 'oox/inc/oox/vml/vmlformatting.hxx')
-rw-r--r-- | oox/inc/oox/vml/vmlformatting.hxx | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/oox/inc/oox/vml/vmlformatting.hxx b/oox/inc/oox/vml/vmlformatting.hxx index 33f466223b65..1cbb3193d7f0 100644 --- a/oox/inc/oox/vml/vmlformatting.hxx +++ b/oox/inc/oox/vml/vmlformatting.hxx @@ -22,6 +22,8 @@ #include "oox/helper/helper.hxx" #include "oox/dllapi.h" +#include <com/sun/star/awt/Point.hpp> +#include <com/sun/star/drawing/PolyPolygonBezierCoords.hpp> namespace oox { class GraphicHelper; @@ -135,6 +137,23 @@ public: sal_Int32 nDefaultRgb, sal_Int32 nPrimaryRgb = API_RGB_TRANSPARENT ); + /** Converts VML path string into point and flag vectors. + + @param rPoints The point vector to fill with coordinates. + + @param rFlags The flag vector to fill. PolygonFlags_NORMAL indicates + a corresponding plain shape coordinate in rPoints and + PolygonFlags_CONTROL indicates a bezier curve control point. + + @param rPath The VML path string. + + @param rGraphicHelper See above. + */ + static void decodeVmlPath( + ::std::vector< ::std::vector< ::com::sun::star::awt::Point > >& rPoints, + ::std::vector< ::std::vector< ::com::sun::star::drawing::PolygonFlags > >& rFlags, + const OUString& rPath ); + private: ConversionHelper(); ~ConversionHelper(); |