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>"
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>"
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'/>"
52 "</inkscape-extension>",
53 std::make_unique<TemplateOther>());
Two-dimensional point that doubles as a vector.
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.