diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2019-02-24 18:08:38 +0100 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2019-03-06 16:33:06 +0100 |
commit | 7894fd2b442eff45ecf14088ebd17ee9f8678752 (patch) | |
tree | cf1525a0c7118b6c84a0abd555a36277f8d8e91b /offapi | |
parent | de5dc664fc923b9704860f51267c438cad28cbe4 (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>
Diffstat (limited to 'offapi')
-rw-r--r-- | offapi/com/sun/star/graphic/XSvgParser.idl | 14 |
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); }; }; }; }; }; |