diff options
author | Thorsten Behrens <tbehrens@suse.com> | 2012-06-05 05:03:06 +0200 |
---|---|---|
committer | Thorsten Behrens <tbehrens@suse.com> | 2012-06-05 05:11:42 +0200 |
commit | 3fb24e6307e0ec3e09b1e48e9a4ce5f6787d2cc9 (patch) | |
tree | 54bc1974bf6a255948793302bd3ae53c21a50ca5 /xmloff/inc | |
parent | d3c189fa742f0b21f99a8f3b1ebafe71c130d8d5 (diff) |
Fix fdo#50704 Default to absolute svg:d paths for ODF1.2 compat-mode
This writes out absolute paths, to side-step buggy odf consumers'
wrong handling of the 'z' statement (i.e. they ignore it for current
positions).
Diffstat (limited to 'xmloff/inc')
-rw-r--r-- | xmloff/inc/xexptran.hxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/xmloff/inc/xexptran.hxx b/xmloff/inc/xexptran.hxx index 86883cfc7e4e..b38860a6a466 100644 --- a/xmloff/inc/xexptran.hxx +++ b/xmloff/inc/xexptran.hxx @@ -36,7 +36,6 @@ #include <com/sun/star/awt/Size.hpp> #include <com/sun/star/drawing/HomogenMatrix.hpp> #include <tools/mapunit.hxx> -#include <xmloff/xmlimp.hxx> #include <vector> @@ -46,6 +45,8 @@ struct ImpSdXMLExpTransObj2DBase; struct ImpSdXMLExpTransObj3DBase; class SvXMLUnitConverter; +class SvXMLImport; +class SvXMLExport; namespace basegfx { @@ -160,14 +161,14 @@ class SdXMLImExSvgDElement const SdXMLImExViewBox& mrViewBox; bool mbIsClosed; bool mbIsCurve; - + bool mbRelative; sal_Int32 mnLastX; sal_Int32 mnLastY; com::sun::star::drawing::PolyPolygonBezierCoords maPoly; public: - SdXMLImExSvgDElement(const SdXMLImExViewBox& rViewBox); + SdXMLImExSvgDElement(const SdXMLImExViewBox& rViewBox, const SvXMLExport& rExport); SdXMLImExSvgDElement(const rtl::OUString& rNew, const SdXMLImExViewBox& rViewBox, const com::sun::star::awt::Point& rObjectPos, @@ -179,7 +180,7 @@ public: com::sun::star::drawing::FlagSequence* pFlags, const com::sun::star::awt::Point& rObjectPos, const com::sun::star::awt::Size& rObjectSize, - bool bClosed = false, bool bRelative = true); + bool bClosed = false); const rtl::OUString& GetExportString() const { return msString; } bool IsClosed() const { return mbIsClosed; } |