Kaydet (Commit) 071d8aff authored tarafından Mark Hung's avatar Mark Hung

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: 's avatarMark Hung <marklh9@gmail.com>
üst 65245437
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment