summaryrefslogtreecommitdiffstats
path: root/src/xml/rebase-hrefs.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Give more descriptive names to document file related variables and functions.Tavmjong Bah2019-02-201-2/+2
| | | | Makes searching through code for them easier.
* rebase_hrefs: store IRI (UTF-8), not URI (ASCII)Thomas Holder2018-12-241-0/+2
|
* Clarify licensesMax Gaukler2018-11-081-0/+9
| | | | | | - add license headers to everything - convert a few files from public domain or LGPL2.1+ to GPL2+ - some archaeology to clarify which files are from which library
* fix clipboard URL rebasingThomas Holder2018-11-071-35/+6
|
* Refactor rebase_hrefs with new URI APIThomas Holder2018-11-071-119/+48
| | | | | | | - eliminates calls to Glib::path_is_absolute and Glib::build_filename with URI arguments. Those functions are only valid for filenames, not for URIs. - Adds support for constructing relative URIs into parent directories.
* fix vi modelines: encoding -> fileencodingThomas Holder2018-10-151-1/+1
|
* Move some files to 'io' directory.Tavmjong Bah2018-10-131-1/+1
|
* Use _WIN32 instead of WIN32Eduard Braun2018-10-011-2/+2
| | | | | | | | The former is guaranteed to be set for any compiler targeting win32, the latter is implementation dependent (but works for gcc) See also http://nadeausoftware.com/articles/2012/01/c_c_tip_how_use_compiler_predefined_macros_detect_operating_system
* Run clang-tidy’s modernize-use-nullptr pass.Emmanuel Gil Peyrot2018-06-181-2/+2
| | | | | This replaces all NULL or 0 with nullptr when assigned to or returned as a pointer.
* Move classes derived from SPObject to own directory.Tavmjong Bah2018-01-301-7/+12
| | | | A lot of header clean-up.
* Misc. typosUnknown2017-11-071-1/+1
| | | | | | | | | | | | Found using `codespell -q 3 -w --skip="*.svg,*.po,*.ts,./share/tutorials,./src/libavoid,./packaging/win32/languages,./man,./src/2geom" -I ../inkscape-whitelist.txt` whereby whitelist file contained: ``` dum iff glight substract te upto ```
* Refactor Util::ptr_sharedJan Lingscheid2017-10-181-2/+2
| | | | | Util::ptr_shared<T> was only used in its <char> specialization, so it is now refactored into a non-template class. Using it with arbitary classes was dangerous anyway.
* [Bug #1659347] Windows: '/' in relative image links rewritten as '\' on save.Nicolas Dufour2017-01-291-1/+1
| | | | | | Fixed bugs: - https://launchpad.net/bugs/1659347 (bzr r15459)
* Removed unused includes, decreased compilation time. Once againAdrian Boguszewski2016-08-031-3/+0
| | | (bzr r15034)
* Reverted changes to r15024 after many building problemsAdrian Boguszewski2016-07-281-0/+3
| | | (bzr r15027)
* Removed unused includes, decrease compilation timeAdrian Boguszewski2016-07-281-3/+0
| | | (bzr r15025)
* Fix regression: restore order in resources (e.g. pattern list)Marc Jeanmougin2016-05-211-2/+2
| | | (bzr r14907)
* cppification : GHashMaps replaced by stl maps. getResouceList now gives a ↵Marc Jeanmougin2015-12-071-3/+3
| | | | | | | std::set<SPObject *>. Should give some performance improvements (quite a few linear lookups are now logarithmic) (bzr r14504.1.6)
* Switch to top-level glib headers. Thanks to DimStar for patchAlex Valavanis2011-12-081-3/+1
| | | | | | Fixed bugs: - https://launchpad.net/bugs/898538 (bzr r10762)
* Fix windows build.Jon A. Cruz2011-05-071-5/+4
| | | (bzr r10199)
* Adding initial cut of resource manager.Jon A. Cruz2011-05-061-122/+109
| | | (bzr r10198)
* Path. Fix for Bug #170225 (relative image paths instead of absolute).Nicolas Dufour2011-03-221-3/+43
| | | | | | Fixed bugs: - https://launchpad.net/bugs/170225 (bzr r10124)
* Finished cleanup of outdated SP_OBJECT_REPR C macro.Jon A. Cruz2011-02-221-1/+1
| | | (bzr r10067)
* Merge and cleanup of GSoC C++-ification project.Jon A. Cruz2010-12-121-3/+4
|\ | | | | (bzr r9945.1.1)
| * C++fied SPDocument addedAbhishek Sharma Public2010-07-011-1/+1
|/ | | (bzr r9546.1.2)
* patch from 416549bulia byak2009-08-231-0/+3
| | | (bzr r8522)
* Revert recent refactoring changes by johnce because they break the build, ↵Maximilian Albert2009-08-061-4/+4
| | | | | which cannot be fixed easily. (bzr r8422)
* xml/Document -> DocumentTreejohnce2009-08-051-4/+4
| | | (bzr r8417)
* SPDocument->Documentjohnce2009-08-051-1/+1
| | | (bzr r8405)
* Fix #358704 that I introduced with r21075.Peter Moulder2009-04-181-1/+1
| | | (bzr r7733)
* Move Inkscape::IO::fixupHrefs to Inkscape::XML::rebase_hrefs in new file ↵Peter Moulder2009-04-071-0/+281
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. (bzr r7643)