summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2006-12-13 14:06:35 +0000
committerKurt Zenker <kz@openoffice.org>2006-12-13 14:06:35 +0000
commit31259c6191348a154ee2ab387e0377b64fdfcff5 (patch)
tree303414ecfb1e7533e323b04b143b9da558090153
parent7c358634720d44ec438709f02fbddc92f68641ef (diff)
INTEGRATION: CWS presfixes09 (1.14.10); FILE MERGED
2006/03/15 16:09:48 thb 1.14.10.1: #i49357# Added SVG-D export method for basegfx poly-polygons
-rw-r--r--basegfx/inc/basegfx/polygon/b2dpolypolygontools.hxx31
1 files changed, 29 insertions, 2 deletions
diff --git a/basegfx/inc/basegfx/polygon/b2dpolypolygontools.hxx b/basegfx/inc/basegfx/polygon/b2dpolypolygontools.hxx
index babefd93f190..b5b31c00f10c 100644
--- a/basegfx/inc/basegfx/polygon/b2dpolypolygontools.hxx
+++ b/basegfx/inc/basegfx/polygon/b2dpolypolygontools.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: b2dpolypolygontools.hxx,v $
*
- * $Revision: 1.14 $
+ * $Revision: 1.15 $
*
- * last change: $Author: kz $ $Date: 2005-11-02 13:53:57 $
+ * last change: $Author: kz $ $Date: 2006-12-13 15:06:35 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -181,6 +181,33 @@ namespace basegfx
*/
bool isRectangle( const B2DPolyPolygon& rPoly );
+ /** Export poly-polygon to SVG.
+
+ This function exports a poly-polygon into an SVG-D
+ statement. Currently, output of relative point sequences
+ is not yet supported (might cause slightly larger output)
+
+ @param rPolyPoly
+ The poly-polygon to export
+
+ @param bUseRelativeCoordinates
+ When true, all coordinate values are exported as relative
+ to the current position. This tends to save some space,
+ since fewer digits needs to be written.
+
+ @param bDetectQuadraticBeziers
+ When true, the export tries to detect cubic bezier
+ segments in the input polygon, which can be represented by
+ quadratic bezier segments. Note that the generated string
+ causes versions prior to OOo2.0 to crash.
+
+ @return the generated SVG-D statement (the XML d attribute
+ value alone, without any "<path ...>" or "d="...")
+ */
+ ::rtl::OUString exportToSvgD( const B2DPolyPolygon& rPolyPoly,
+ bool bUseRelativeCoordinates=true,
+ bool bDetectQuadraticBeziers=true );
+
} // end of namespace tools
} // end of namespace basegfx