summaryrefslogtreecommitdiff
path: root/offapi
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2019-02-24 18:08:38 +0100
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2019-03-11 12:12:56 +0100
commitef5acdeedcc226cc2e2db462529abed091af3bff (patch)
tree5c6841fcf722c6dd9a3c8e132bd88ebeedd30a35 /offapi
parenta448f2e3b96e6341526194d6a3ba1281cab56b46 (diff)
svgio visitor, add draw commands and create the from svg
Adds a visitor for svgio for visiting svg nodes and create something useful from them. Basic draw commands - a tree of draw commands (with sub-pixel precision support) just to store a simple definition for drawing. Adds a svg draw visitor and create draw commands from the svg structure and expose the commands through UNO API. Change-Id: I073e891a2cffdd76d4e3b838590e3a19c998e9bf Reviewed-on: https://gerrit.libreoffice.org/68770 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> (cherry picked from commit 7894fd2b442eff45ecf14088ebd17ee9f8678752)
Diffstat (limited to 'offapi')
-rw-r--r--offapi/com/sun/star/graphic/XSvgParser.idl14
1 files changed, 14 insertions, 0 deletions
diff --git a/offapi/com/sun/star/graphic/XSvgParser.idl b/offapi/com/sun/star/graphic/XSvgParser.idl
index 742fce4bcd3e..7410a9d7947f 100644
--- a/offapi/com/sun/star/graphic/XSvgParser.idl
+++ b/offapi/com/sun/star/graphic/XSvgParser.idl
@@ -45,6 +45,20 @@ interface XSvgParser : ::com::sun::star::uno::XInterface
sequence< XPrimitive2D > getDecomposition(
[in] io::XInputStream xSvgStream,
[in] string aAbsolutePath);
+
+ /** Get the "draw command" graph that is created from the SVG content
+
+ @param xSvgStream
+ The file containing the SVG XML data
+
+ @param aAbsolutePath
+ The path containing the SVG XML data
+
+ @since LibreOffice 6.3
+ */
+ any getDrawCommands(
+ [in] io::XInputStream xSvgStream,
+ [in] string aAbsolutePath);
};
}; }; }; };