incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 119735] SVG Export: missing implementation for com.sun.star.svg.SVGWriter when using GraphicProvider
Date Thu, 07 Jun 2012 12:29:39 GMT
https://issues.apache.org/ooo/show_bug.cgi?id=119735

--- Comment #3 from Ariel Constenla-Haile <arielch@apache.org> ---
Created attachment 78149
  --> https://issues.apache.org/ooo/attachment.cgi?id=78149&action=edit
File with macro to test export/import with GraphicProvider service

The test document has an image.
The macro tries to export the image to SVG using the GraphicProvider service,
then import the image back.

See
http://www.openoffice.org/api/docs/common/ref/com/sun/star/graphic/GraphicProvider.html
http://www.openoffice.org/api/docs/common/ref/com/sun/star/graphic/XGraphicProvider.html

The MimeType used is "image/svg+xml", not sure how correct is that, but this is
what the API documentation says:
http://www.openoffice.org/api/docs/common/ref/com/sun/star/graphic/MediaProperties.html#MimeType
See define MIMETYPE_SVG in main/svtools/source/graphic/descriptor.hxx and
GraphicProvider::storeGraphic in main/svtools/source/graphic/provider.cxx


It seems that you don't need a macro to reproduce it:

- Insert a picture in Writer
- Select the picture
- Right-click with the mouse, select from the context menu "Save Graphics..."
- In the "Graphics Export" dialog, from the list box "File type" choose "SVG -
Scalable Vector Graphics"
- Insert a File name
- Press "Save" button to export the graphics
- Open the graphic with a text editor: the file is empty, the file size is 0
(zero)

Expected result: there should be an XML file with the SVG graphic

-- 
You are receiving this mail because:
You are the assignee for the bug.

Mime
View raw message