summaryrefslogtreecommitdiff
path: root/xmloff/inc/xexptran.hxx
diff options
context:
space:
mode:
authorThorsten Behrens <tbehrens@suse.com>2012-06-05 05:03:06 +0200
committerThorsten Behrens <tbehrens@suse.com>2012-06-05 05:11:42 +0200
commit3fb24e6307e0ec3e09b1e48e9a4ce5f6787d2cc9 (patch)
tree54bc1974bf6a255948793302bd3ae53c21a50ca5 /xmloff/inc/xexptran.hxx
parentd3c189fa742f0b21f99a8f3b1ebafe71c130d8d5 (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/xexptran.hxx')
-rw-r--r--xmloff/inc/xexptran.hxx9
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; }