Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
fix-broken-links.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Manages external resources such as image and css files.
4 *
5 * Copyright 2011 Jon A. Cruz <jon@joncruz.org>
6 *
7 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
8 */
9
10#include <string>
11#include <vector>
12
13class SPDocument;
14
15namespace Inkscape {
16
17std::vector<std::string> splitPath( std::string const &path );
18
19std::string optimizePath(std::string const &path, std::string const &base, unsigned int parents = 2);
20bool fixBrokenLinks(SPDocument *doc);
21
22}
23
24/*
25 Local Variables:
26 mode:c++
27 c-file-style:"stroustrup"
28 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
29 indent-tabs-mode:nil
30 fill-column:99
31 End:
32*/
33// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
Typed SVG document implementation.
Definition document.h:101
Helper class to stream background task notifications as a series of messages.
std::vector< std::string > splitPath(std::string const &path)
bool fixBrokenLinks(SPDocument *doc)
std::string 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.