LibreOfficeDev
LibreOfficeDev 27.2 SDK API Reference
Loading...
Searching...
No Matches
Public Member Functions | List of all members
XSvgParser Interface Reference

XSvgParser interface. More...

Inheritance diagram for XSvgParser:
XInterface SvgTools

Public Member Functions

sequence< XPrimitive2D > getDecomposition ([in] io::XInputStream xSvgStream, [in] string aAbsolutePath)
 Retrieve decomposed list of simpler primitives.
 
any getDrawCommands ([in] io::XInputStream xSvgStream, [in] string aAbsolutePath)
 Get the "draw command" graph that is created from the SVG content.
 
sequence< string > getExternalImageUrls ([in] io::XInputStream xSvgStream, [in] string aAbsolutePath)
 List the pictures outside the SVG that its image and feImage elements refer to.
 
- Public Member Functions inherited from XInterface
any queryInterface ([in] type aType)
 queries for a new interface to an existing UNO object.
 
void acquire ()
 increases the reference counter by one.
 
void release ()
 decreases the reference counter by one.
 

Detailed Description

XSvgParser interface.

This interface allows to parse a SVG stream in form of a sequence of bytes to be parsed into a sequence of XPrimitive2Ds

Member Function Documentation

◆ getDecomposition()

sequence< XPrimitive2D > getDecomposition ( [in] io::XInputStream  xSvgStream,
[in] string  aAbsolutePath 
)

Retrieve decomposed list of simpler primitives.

Parameters
xSvgStreamThe file containing the SVG XML data
aAbsolutePathThe path containing the SVG XML data

◆ getDrawCommands()

any getDrawCommands ( [in] io::XInputStream  xSvgStream,
[in] string  aAbsolutePath 
)

Get the "draw command" graph that is created from the SVG content.

Parameters
xSvgStreamThe file containing the SVG XML data
aAbsolutePathThe path containing the SVG XML data
Since
LibreOffice 6.3

◆ getExternalImageUrls()

sequence< string > getExternalImageUrls ( [in] io::XInputStream  xSvgStream,
[in] string  aAbsolutePath 
)

List the pictures outside the SVG that its image and feImage elements refer to.

Nothing is opened. A picture held in the SVG as a data URL, or a reference to an element of the SVG itself, is not listed.

Parameters
xSvgStreamThe file containing the SVG XML data
aAbsolutePathThe path containing the SVG XML data. Relative references are resolved against it.
Returns
The absolute URL of each picture outside the SVG, resolved against aAbsolutePath

The documentation for this interface was generated from the following file: