xref: /core/svx/inc/spacing.hrc (revision dcea29c2)
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
11
12#include <unotools/resmgr.hxx>
13
14#define NC_(Context, String) TranslateId(Context, u8##String)
15
16struct measurement
17{
18    TranslateId key;
19    int twips;
20    int human;
21};
22
23// To translators: this is a listbox labelled by "Spacing:", inch units
24const measurement RID_SVXSTRARY_SPACING_INCH[] =
25{
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    { {}, 0, 0 }
35};
36
37// To translators: this is a listbox labelled by "Spacing:", cm units
38const measurement RID_SVXSTRARY_SPACING_CM[] =
39{
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    { {}, 0, 0 }
56};
57
58// To translators: this is a listbox labelled by "Margins:", inch units
59const measurement RID_SVXSTRARY_MARGINS_INCH[] =
60{
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    { {}, 0, 0 }
70};
71
72// To translators: this is a listbox labelled by "Margins:", cm units
73const measurement RID_SVXSTRARY_MARGINS_CM[] =
74{
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    { {}, 0, 0 }
91};
92
93#endif
94
95/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
96