summaryrefslogtreecommitdiff
path: root/include/basegfx/polygon
diff options
context:
space:
mode:
authorMark Hung <marklh9@gmail.com>2018-08-10 22:15:36 +0800
committerMark Hung <marklh9@gmail.com>2018-08-14 18:23:14 +0200
commit071d8aff7cbe38c0522c5a87ee77dd1b0d2da91f (patch)
tree06573ad518a95d6d7e0126eb195b80e079db5d4a /include/basegfx/polygon
parent652454378c5e77e11d9fb9cc399ccb74387a0229 (diff)
tdf#118825 Implement OOXMLMotionPath in exportToSvgD of basegfx.
Powerpoint only allows M,L,C,Z,E,m,l,c,z,e , i.e. V,H,S ( and their corresponding relative command ) must not be used and ending E is mandatory. Command and space delimiters also can not be skipped. Change-Id: Icad38ec2eed3e49143eb9a03aa56cc178baae99d Reviewed-on: https://gerrit.libreoffice.org/58848 Tested-by: Jenkins Reviewed-by: Mark Hung <marklh9@gmail.com>
Diffstat (limited to 'include/basegfx/polygon')
-rw-r--r--include/basegfx/polygon/b2dpolypolygontools.hxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/basegfx/polygon/b2dpolypolygontools.hxx b/include/basegfx/polygon/b2dpolypolygontools.hxx
index 8de5e6c90cc3..b14d003be4a4 100644
--- a/include/basegfx/polygon/b2dpolypolygontools.hxx
+++ b/include/basegfx/polygon/b2dpolypolygontools.hxx
@@ -228,6 +228,12 @@ namespace basegfx
polygon is kept; this is needed to read odf files.
If false, pure svg is used; this is needed for svg import.
+ @param bOOXMLMotionPath
+ If set to true, export string format that is acceptable for
+ for animation motion path for PowerPoint: always space delimited,
+ never neglect command char, always end with E, and do not export
+ H or V.
+
@return the generated SVG-D statement (the XML d attribute
value alone, without any "<path ...>" or "d="...")
*/
@@ -235,7 +241,8 @@ namespace basegfx
const B2DPolyPolygon& rPolyPoly,
bool bUseRelativeCoordinates,
bool bDetectQuadraticBeziers,
- bool bHandleRelativeNextPointCompatible);
+ bool bHandleRelativeNextPointCompatible,
+ bool bOOXMLMotionPath = false);
// #i76891# Try to remove existing curve segments if they are simply edges
BASEGFX_DLLPUBLIC B2DPolyPolygon simplifyCurveSegments(const B2DPolyPolygon& rCandidate);