Writer: how to convert all embedded Draw objects to SVG ?

I used Draw to create images that I inserted into a Writer document.

I would like to export all these images to SVG files.

If possible, I would like to replace the embedded Draw image with the corresponding SVG image or at least with the path of the image.

Is it possible to do this using macro and how ?