summaryrefslogtreecommitdiffstats
path: root/src/xml/rebase-hrefs.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-02-20Give more descriptive names to document file related variables and functions.Tavmjong Bah1-2/+2
Makes searching through code for them easier.
2018-12-24rebase_hrefs: store IRI (UTF-8), not URI (ASCII)Thomas Holder1-0/+2
2018-11-08Clarify licensesMax Gaukler1-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
2018-11-07fix clipboard URL rebasingThomas Holder1-35/+6
2018-11-07Refactor rebase_hrefs with new URI APIThomas Holder1-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.
2018-10-15fix vi modelines: encoding -> fileencodingThomas Holder1-1/+1
2018-10-13Move some files to 'io' directory.Tavmjong Bah1-1/+1
2018-10-01Use _WIN32 instead of WIN32Eduard Braun1-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
2018-06-18Run clang-tidy’s modernize-use-nullptr pass.Emmanuel Gil Peyrot1-2/+2
This replaces all NULL or 0 with nullptr when assigned to or returned as a pointer.
2018-01-30Move classes derived from SPObject to own directory.Tavmjong Bah1-7/+12
A lot of header clean-up.
2017-11-07Misc. typosUnknown1-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 ```
2017-10-18Refactor Util::ptr_sharedJan Lingscheid1-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.
2017-01-29[Bug #1659347] Windows: '/' in relative image links rewritten as '\' on save.Nicolas Dufour1-1/+1
Fixed bugs: - https://launchpad.net/bugs/1659347 (bzr r15459)
2016-08-03Removed unused includes, decreased compilation time. Once againAdrian Boguszewski1-3/+0
(bzr r15034)
2016-07-28Reverted changes to r15024 after many building problemsAdrian Boguszewski1-0/+3
(bzr r15027)
2016-07-28Removed unused includes, decrease compilation timeAdrian Boguszewski1-3/+0
(bzr r15025)
2016-05-21Fix regression: restore order in resources (e.g. pattern list)Marc Jeanmougin1-2/+2
(bzr r14907)
2015-12-07cppification : GHashMaps replaced by stl maps. getResouceList now gives a ↵Marc Jeanmougin1-3/+3
std::set<SPObject *>. Should give some performance improvements (quite a few linear lookups are now logarithmic) (bzr r14504.1.6)
2011-12-08Switch to top-level glib headers. Thanks to DimStar for patchAlex Valavanis1-3/+1
Fixed bugs: - https://launchpad.net/bugs/898538 (bzr r10762)
2011-05-07Fix windows build.Jon A. Cruz1-5/+4
(bzr r10199)
2011-05-06Adding initial cut of resource manager.Jon A. Cruz1-122/+109
(bzr r10198)
2011-03-22Path. Fix for Bug #170225 (relative image paths instead of absolute).Nicolas Dufour1-3/+43
Fixed bugs: - https://launchpad.net/bugs/170225 (bzr r10124)
2011-02-22Finished cleanup of outdated SP_OBJECT_REPR C macro.Jon A. Cruz1-1/+1
(bzr r10067)
2010-07-01C++fied SPDocument addedAbhishek Sharma Public1-1/+1
(bzr r9546.1.2)
2009-08-23patch from 416549bulia byak1-0/+3
(bzr r8522)
2009-08-06Revert recent refactoring changes by johnce because they break the build, ↵Maximilian Albert1-4/+4
which cannot be fixed easily. (bzr r8422)
2009-08-05xml/Document -> DocumentTreejohnce1-4/+4
(bzr r8417)
2009-08-05SPDocument->Documentjohnce1-1/+1
(bzr r8405)
2009-04-18Fix #358704 that I introduced with r21075.Peter Moulder1-1/+1
(bzr r7733)
2009-04-07Move Inkscape::IO::fixupHrefs to Inkscape::XML::rebase_hrefs in new file ↵Peter Moulder1-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)