Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
template-other.cpp
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Contain internal sizes of paper which can be used in various
4 * functions to make and size pages.
5 *
6 * Authors:
7 * Martin Owens <doctormo@geek-2.com>
8 *
9 * Copyright (C) 2022 Authors
10 *
11 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
12 */
13
14#include "template-other.h"
15
16#include "clear-n_.h"
17#include "extension/system.h"
18#include "extension/template.h"
19
21
30
32{
33 // clang-format off
35 "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">"
36 "<id>org.inkscape.template.other</id>"
37 "<name>" N_("Other Sizes") "</name>"
38 "<description>" N_("Miscellaneous document formats") "</description>"
39 "<category>" NC_("TemplateCategory", "Other") "</category>"
40
41 "<param name='unit' gui-text='" N_("Unit") "' type='string'>px</param>"
42 "<param name='size' gui-text='" N_("Size") "' type='float' min='1.0' max='100000.0'>32.0</param>"
43
44 "<template icon='icon_square' unit='px' priority='-10' visibility='icon,search'>"
45 "<preset name='" N_("Icon 16x16") "' label='16 × 16 px' size='16'/>"
46 "<preset name='" N_("Icon 32x32") "' label='32 × 32 px' size='32'/>"
47 "<preset name='" N_("Icon 48x48") "' label='48 × 48 px' size='48'/>"
48 "<preset name='" N_("Icon 120x120") "' label='120 × 120 px' size='120'/>"
49 "<preset name='" N_("Icon 180x180") "' label='180 × 180 px' size='180'/>"
50 "<preset name='" N_("Icon 512x512") "' label='512 × 512 px' size='512'/>"
51 "</template>"
52 "</inkscape-extension>",
53 std::make_unique<TemplateOther>());
54 // clang-format on
55}
56
57} // namespace Inkscape::Extension::Internal
58
59/*
60 Local Variables:
61 mode:c++
62 c-file-style:"stroustrup"
63 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
64 indent-tabs-mode:nil
65 fill-column:99
66 End:
67*/
68// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
Two-dimensional point that doubles as a vector.
Definition point.h:66
double get_param_float(char const *name) const
Gets a float parameter identified by name with the double placed in value.
Geom::Point get_template_size(Inkscape::Extension::Template *tmod) const override
Return the width and height of the new page, the default is a fixed orientation.
A way to clear the N_ macro, which is defined as an inline function.
void build_from_mem(gchar const *buffer, std::unique_ptr< Implementation::Implementation > in_imp)
Create a module from a buffer holding an XML description.
Definition system.cpp:459