Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
template-social.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-social.h"
15
16#include "clear-n_.h"
17#include "extension/extension.h"
18#include "extension/system.h"
19
21
23{
24 // clang-format off
26 "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">"
27 "<id>org.inkscape.template.social</id>"
28 "<name>" N_("Social Sizes") "</name>"
29 "<description>" N_("Document formats for social media") "</description>"
30 "<category>" NC_("TemplateCategory", "Social") "</category>"
31
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>"
35
36 "<template icon='social_landscape' unit='px' priority='-30' visibility='icon,search'>"
37
38"<preset name='" N_("Facebook cover photo") "' label='820 × 462 px' height='462' width='820'/>"
39"<preset name='" N_("Facebook event image") "' label='1920 × 1080 px' height='1080' width='1920'/>"
40"<preset name='" N_("Facebook image post") "' label='1200 × 630 px' height='630' width='1200'/>"
41"<preset name='" N_("Facebook link image") "' label='1200 × 630 px' height='630' width='1200'/>"
42"<preset name='" N_("Facebook profile picture") "' label='180 × 180 px' height='180' width='180' icon='social_square'/>"
43"<preset name='" N_("Facebook video") "' label='1280 × 720 px' height='720' width='1280'/>"
44"<preset name='" N_("Instagram landscape") "' label='1080 × 608 px' height='608' width='1080'/>"
45"<preset name='" N_("Instagram portrait") "' label='1080 × 1350 px' height='1350' width='1080' icon='social_portrait'/>"
46"<preset name='" N_("Instagram square") "' label='1080 × 1080 px' height='1080' width='1080' icon='social_square'/>"
47"<preset name='" N_("LinkedIn business banner image") "' label='646 × 220 px' height='220' width='646'/>"
48"<preset name='" N_("LinkedIn company logo") "' label='300 × 300 px' height='300' width='300' icon='social_square'/>"
49"<preset name='" N_("LinkedIn cover photo") "' label='1536 × 768 px' height='768' width='1536'/>"
50"<preset name='" N_("LinkedIn dynamic ad") "' label='100 × 100 px' height='100' width='100' icon='social_square'/>"
51"<preset name='" N_("LinkedIn hero image") "' label='1128 × 376 px' height='376' width='1128'/>"
52"<preset name='" N_("LinkedIn sponsored content image") "' label='1200 × 627 px' height='627' width='1200'/>"
53"<preset name='" N_("Snapchat advertisement") "' label='1080 × 1920 px' height='1920' width='1080' icon='social_portrait'/>"
54"<preset name='" N_("Twitter card image") "' label='1200 × 628 px' height='628' width='1200'/>"
55"<preset name='" N_("Twitter header") "' label='1500 × 500 px' height='500' width='1500'/>"
56"<preset name='" N_("Twitter post image") "' label='1024 × 512 px' height='512' width='1024'/>"
57"<preset name='" N_("Twitter profile picture") "' label='400 × 400 px' height='400' width='400' icon='social_square'/>"
58"<preset name='" N_("Twitter video landscape") "' label='1280 × 720 px' height='720' width='1280'/>"
59"<preset name='" N_("Twitter video portrait") "' label='720 × 1280 px' height='1280' width='720' icon='social_portrait'/>"
60"<preset name='" N_("Twitter video square") "' label='720 × 720 px' height='720' width='720' icon='social_square'/>"
61
62 "</template>"
63 "</inkscape-extension>",
64 std::make_unique<TemplateSocial>());
65 // clang-format on
66}
67
68} // namespace Inkscape::Extension::Internal
69
70/*
71 Local Variables:
72 mode:c++
73 c-file-style:"stroustrup"
74 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
75 indent-tabs-mode:nil
76 fill-column:99
77 End:
78*/
79// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
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.
Definition system.cpp:459