Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
fix-broken-links.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  Inkscape
 Helper class to stream background task notifications as a series of messages.
 

Functions

std::vector< std::string > Inkscape::splitPath (std::string const &path)
 
std::string Inkscape::optimizePath (std::string const &path, std::string const &base, unsigned int parents)
 Convert an absolute path into a relative one if possible to do in the given number of parent steps.
 
bool Inkscape::fixBrokenLinks (SPDocument *doc)
 
static std::vector< Glib::ustring > Inkscape::findBrokenLinks (SPDocument *doc)
 Walk all links in a document and create a listing of unique broken links.
 
static std::map< Glib::ustring, Glib::ustring > Inkscape::locateLinks (Glib::ustring const &docbase, std::vector< Glib::ustring > const &brokenLinks)
 Resolve broken links as a whole and return a map for those that can be found.
 
static bool Inkscape::extractFilepath (Glib::ustring const &href, std::string &filename)
 Try to parse href into a local filename using standard methods.
 
static bool Inkscape::reconstructFilepath (Glib::ustring const &href, std::string &filename)
 Try to parse href into a local filename using some non-standard methods.
 
static bool Inkscape::searchUpwards (std::string const &base, std::string const &subpath, std::string &dest)