Send various state changes to LOK
[LibreOffice.git] / svx / inc / spacing.hrc
blobb8ca2661c5289f20b9e0da23e5576389aac56951
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  */
9 #ifndef INCLUDED_SVX_INC_SPACING_HRC
10 #define INCLUDED_SVX_INC_SPACING_HRC
12 #include <utility>
14 #define NC_(Context, String) reinterpret_cast<char const *>(Context "\004" u8##String)
16 struct measurement
18     const char* key;
19     int twips;
20     int human;
23 // To translators: this is a listbox labelled by "Spacing:", inch units
24 const measurement RID_SVXSTRARY_SPACING_INCH[] =
26     { NC_("RID_SVXSTRARY_SPACING_INCH", "None"),                   0, 0 },
27     { NC_("RID_SVXSTRARY_SPACING_INCH", "Extra Small (1/16″)"),   91, 0 },
28     { NC_("RID_SVXSTRARY_SPACING_INCH", "Small (1/8″)"),         181, 0 },
29     { NC_("RID_SVXSTRARY_SPACING_INCH", "Small Medium (1/4″)"),  363, 0 },
30     { NC_("RID_SVXSTRARY_SPACING_INCH", "Medium (3/8″)"),        539, 0 },
31     { NC_("RID_SVXSTRARY_SPACING_INCH", "Medium Large (1/2″)"),  720, 0 },
32     { NC_("RID_SVXSTRARY_SPACING_INCH", "Large (3/4″)"),        1077, 0 },
33     { NC_("RID_SVXSTRARY_SPACING_INCH", "Extra Large (1″)"),    1440, 0 },
34     { nullptr, 0, 0 }
37 // To translators: this is a listbox labelled by "Spacing:", cm units
38 const measurement RID_SVXSTRARY_SPACING_CM[] =
40     { NC_("RID_SVXSTRARY_SPACING_CM", "None"),                0,   0 },
41     // Extra Small (0.16 cm)
42     { NC_("RID_SVXSTRARY_SPACING_CM", "Extra Small (%1)"),   91,  16 },
43     // Small (0.32 cm)
44     { NC_("RID_SVXSTRARY_SPACING_CM", "Small (%1)"),        181,  32 },
45     // Small Medium (0.64 cm)
46     { NC_("RID_SVXSTRARY_SPACING_CM", "Small Medium (%1)"), 363,  64 },
47     // Medium (0.95 cm)
48     { NC_("RID_SVXSTRARY_SPACING_CM", "Medium (%1)"),       539,  95 },
49     // Medium Large (1.27 cm)
50     { NC_("RID_SVXSTRARY_SPACING_CM", "Medium Large (%1)"), 720, 127 },
51     // Large (1.9 cm)
52     { NC_("RID_SVXSTRARY_SPACING_CM", "Large (%1)"),       1077, 190 },
53     // Extra Large (2.54 cm)
54     { NC_("RID_SVXSTRARY_SPACING_CM", "Extra Large (%1)"), 1440, 254 },
55     { nullptr, 0, 0 }
58 // To translators: this is a listbox labelled by "Margins:", inch units
59 const measurement RID_SVXSTRARY_MARGINS_INCH[] =
61     { NC_("RID_SVXSTRARY_MARGINS_INCH", "None"),                   0, 0 },
62     { NC_("RID_SVXSTRARY_MARGINS_INCH", "Extra Small (1/16″)"),   91, 0 },
63     { NC_("RID_SVXSTRARY_MARGINS_INCH", "Small (1/8″)"),         181, 0 },
64     { NC_("RID_SVXSTRARY_MARGINS_INCH", "Small Medium (1/4″)"),  363, 0 },
65     { NC_("RID_SVXSTRARY_MARGINS_INCH", "Medium (3/8″)"),        539, 0 },
66     { NC_("RID_SVXSTRARY_MARGINS_INCH", "Medium Large (1/2″)"),  720, 0 },
67     { NC_("RID_SVXSTRARY_MARGINS_INCH", "Large (3/4″)"),        1077, 0 },
68     { NC_("RID_SVXSTRARY_MARGINS_INCH", "Extra Large (1″)"),    1440, 0 },
69     { nullptr, 0, 0 }
72 // To translators: this is a listbox labelled by "Margins:", cm units
73 const measurement RID_SVXSTRARY_MARGINS_CM[] =
75     { NC_("RID_SVXSTRARY_MARGINS_CM", "None"),                0,   0 },
76     // Extra Small (0.16 cm)
77     { NC_("RID_SVXSTRARY_MARGINS_CM", "Extra Small (%1)"),   91,  16 },
78     // Small (0.32 cm)
79     { NC_("RID_SVXSTRARY_MARGINS_CM", "Small (%1)"),        181,  32 },
80     // Small Medium (0.64 cm)
81     { NC_("RID_SVXSTRARY_MARGINS_CM", "Small Medium (%1)"), 363,  64 },
82     // Medium (0.95 cm)
83     { NC_("RID_SVXSTRARY_MARGINS_CM", "Medium (%1)"),       539,  95 },
84     // Medium Large (1.27 cm)
85     { NC_("RID_SVXSTRARY_MARGINS_CM", "Medium Large (%1)"), 720, 127 },
86     // Large (1.9 cm)
87     { NC_("RID_SVXSTRARY_MARGINS_CM", "Large (%1)"),       1077, 190 },
88     // Extra Large (2.54 cm)
89     { NC_("RID_SVXSTRARY_MARGINS_CM", "Extra Large (%1)"), 1440, 254 },
90     { nullptr, 0, 0 }
93 #endif
95 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */