26 "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI
"\">"
27 "<id>org.inkscape.template.digital</id>"
28 "<name>" N_(
"Screen Sizes")
"</name>"
29 "<description>" N_(
"Document formats using common screen resolutions")
"</description>"
30 "<category>" NC_(
"TemplateCategory",
"Screen")
"</category>"
32 "<param name='unit' gui-text='" N_(
"Unit")
"' type='string'>px</param>"
33 "<param name='width' gui-text='" N_(
"Width")
"' type='float' min='1.0' max='100000.0'>100.0</param>"
34 "<param name='height' gui-text='" N_(
"Height")
"' type='float' min='1.0' max='100000.0'>100.0</param>"
36 "<template icon='desktop_hd_landscape' unit='px' priority='-20' visibility='all'>"
38"<preset name='" N_(
"Desktop 1080p")
"' label='1920 × 1080 px' height='1080' width='1920'/>"
39"<preset name='" N_(
"Desktop 2K")
"' label='2560 × 1440 px' height='1440' width='2560'/>"
40"<preset name='" N_(
"Desktop 4K")
"' label='3840 × 2160 px' height='2160' width='3840'/>"
41"<preset name='" N_(
"Desktop 720p")
"' label='1366 × 768 px' height='768' width='1366'/>"
42"<preset name='" N_(
"Desktop SD")
"' label='1024 × 768 px' height='768' width='1024' icon='desktop_landscape'/>"
43"<preset name='" N_(
"iPhone 5")
"' label='640 × 1136 px' height='1136' width='640' icon='mobile_portrait' visibility='icon,search'/>"
44"<preset name='" N_(
"iPhone X")
"' label='1125 × 2436 px' height='2436' width='1125' icon='mobile_portrait' visibility='icon,search'/>"
45"<preset name='" N_(
"Mobile-smallest")
"' label='360 × 640 px' height='640' width='360' icon='mobile_portrait' visibility='icon,search'/>"
46"<preset name='" N_(
"iPad Pro")
"' label='2388 × 1668 px' height='1668' width='2388' icon='tablet_landscape' visibility='icon,search'/>"
47"<preset name='" N_(
"Tablet-smallest")
"' label='1024 × 768 px' height='768' width='1024' icon='tablet_landscape' visibility='icon,search'/>"
50 "</inkscape-extension>",
51 std::make_unique<TemplateScreen>());
A way to clear the N_ macro, which is defined as an inline function.
Inkscape::Extension::Extension: Frontend to certain, possibly pluggable, actions.
void build_from_mem(gchar const *buffer, std::unique_ptr< Implementation::Implementation > in_imp)
Create a module from a buffer holding an XML description.