Revision: 21075
http://inkscape.svn.sourceforge.net/inkscape/?rev=21075&view=rev
Author: pjrm
Date: 2009-04-07 05:31:32 +0000 (Tue, 07 Apr 2009)
Log Message:
-----------
Move Inkscape::IO::fixupHrefs to Inkscape::XML::rebase_hrefs in new file xml/rebase-hrefs.*. Give it the old and new base directory, so that it can change hrefs without relying on sodipodi:absref.
Also create a new function sp_repr_save_rebased_file that changes all xlink:href attributes as it writes them, so that we don't need to modify the owning document. (Especially useful for "Save a copy" or exporting.)
extension/system.cpp: (Inkscape::Extension::save): Don't call sp_document_set_uri even temporarily other than at the same time as calling rebase_hrefs. (Otherwise, existing relative hrefs will point nowhere.)
When exporting plain SVG, change the relative hrefs according to the destination filename.
Modified Paths:
--------------
inkscape/trunk/src/extension/implementation/xslt.cpp
inkscape/trunk/src/extension/internal/gdkpixbuf-input.cpp
inkscape/trunk/src/extension/internal/svg.cpp
inkscape/trunk/src/extension/system.cpp
inkscape/trunk/src/file.cpp
inkscape/trunk/src/file.h
inkscape/trunk/src/main.cpp
inkscape/trunk/src/xml/Makefile_insert
inkscape/trunk/src/xml/repr-io.cpp
inkscape/trunk/src/xml/repr.h
Added Paths:
-----------
inkscape/trunk/src/xml/rebase-hrefs.cpp
inkscape/trunk/src/xml/rebase-hrefs.h
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|