blob: ec76bf0dbd3d7389d344f643f43caf92030ddce7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* This is the code that moves all of the SVG loading and saving into
* the module format. Really Sodipodi is built to handle these formats
* internally, so this is just calling those internal functions.
*
* Authors:
* Lauris Kaplinski <lauris@kaplinski.com>
* Ted Gould <ted@gould.cx>
*
* Copyright (C) 2002-2003 Authors
*
* Released under GNU GPL v2+, read the file 'COPYING' for more information.
*/
#ifndef __SVG_H__
#define __SVG_H__
#include "../implementation/implementation.h"
// clang-format off
#define SVG_COMMON_INPUT_PARAMS \
"<param name='import_mode_svg' type='optiongroup' gui-text='" N_("SVG Image Import Type:") "' >\n" \
"<option value='include' >" N_("Include SVG image as editable object(s) in the current file") "</option>\n" \
"<option value='pages' >" N_("Add SVG as new page(s) in the current file") "</option>\n" \
"<option value='embed' >" N_("Embed the SVG file in an image tag (not editable in this document)") "</option>\n" \
"<option value='link' >" N_("Link the SVG file in an image tag (not editable in this document).") "</option>\n" \
"<option value='new' >" N_("Open SVG image as separate document") "</option>\n" \
"</param>\n" \
"<param name='svgdpi' type='float' precision='2' min='1' max='999999' gui-text='" N_("DPI for rendered SVG") "'>96.00</param>\n" \
"<param name='scale' appearance='combo' type='optiongroup' gui-text='" N_("Image Rendering Mode:") "' gui-description='" N_("When an image is upscaled, apply smoothing or keep blocky (pixelated). (Will not work in all browsers.)") "' >\n" \
"<option value='auto' >" N_("None (auto)") "</option>\n" \
"<option value='optimizeQuality' >" N_("Smooth (optimizeQuality)") "</option>\n" \
"<option value='optimizeSpeed' >" N_("Blocky (optimizeSpeed)") "</option>\n" \
"</param>\n" \
"<param name=\"do_not_ask\" gui-description='" N_("Hide the dialog next time and always apply the same actions.") "' gui-text=\"" N_("Don't ask again") "\" type=\"bool\" >false</param>\n"
// clang-format on
namespace Inkscape {
namespace Extension {
namespace Internal {
class Svg : public Inkscape::Extension::Implementation::Implementation {
bool m_detachbase = false;
public:
void setDetachBase(bool detach) override { m_detachbase = detach; }
void save( Inkscape::Extension::Output *mod,
SPDocument *doc,
gchar const *filename ) override;
SPDocument *open( Inkscape::Extension::Input *mod,
const gchar *uri ) override;
static void init( );
};
} } } /* namespace Inkscape, Extension, Implementation */
#endif /* __SVG_H__ */
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :
|