1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_VCL_INC_UNITS_HRC
21 #define INCLUDED_VCL_INC_UNITS_HRC
23 #include <tools/fldunit.hxx>
24 #include <unotools/resmgr.hxx>
26 #define NC_(Context, String) TranslateId(Context, u8##String)
28 std::pair<TranslateId, FieldUnit> SV_FUNIT_STRINGS[] =
30 // To translators: This is the first entry of a sequence of measurement unit names
31 { NC_("SV_FUNIT_STRINGS", "mm"), FieldUnit::MM },
32 { NC_("SV_FUNIT_STRINGS", "cm"), FieldUnit::CM },
33 { NC_("SV_FUNIT_STRINGS", "m"), FieldUnit::M },
34 { NC_("SV_FUNIT_STRINGS", "km"), FieldUnit::KM },
35 { NC_("SV_FUNIT_STRINGS", "twips"), FieldUnit::TWIP },
36 { NC_("SV_FUNIT_STRINGS", "twip"), FieldUnit::TWIP },
37 { NC_("SV_FUNIT_STRINGS", "pt"), FieldUnit::POINT },
38 { NC_("SV_FUNIT_STRINGS", "pc"), FieldUnit::PICA },
39 /* To translators: double prime symbol for inch */
40 { NC_("SV_FUNIT_STRINGS", "″"), FieldUnit::INCH },
41 { NC_("SV_FUNIT_STRINGS", "\""), FieldUnit::INCH },
42 { NC_("SV_FUNIT_STRINGS", "in"), FieldUnit::INCH },
43 { NC_("SV_FUNIT_STRINGS", "inch"), FieldUnit::INCH },
44 /* To translators: prime symbol for foot */
45 { NC_("SV_FUNIT_STRINGS", "′"), FieldUnit::FOOT },
46 { NC_("SV_FUNIT_STRINGS", "'"), FieldUnit::FOOT },
47 { NC_("SV_FUNIT_STRINGS", "ft"), FieldUnit::FOOT },
48 { NC_("SV_FUNIT_STRINGS", "foot"), FieldUnit::FOOT },
49 { NC_("SV_FUNIT_STRINGS", "feet"), FieldUnit::FOOT },
50 { NC_("SV_FUNIT_STRINGS", "miles"), FieldUnit::MILE },
51 { NC_("SV_FUNIT_STRINGS", "mile"), FieldUnit::MILE },
52 { NC_("SV_FUNIT_STRINGS", "ch"), FieldUnit::CHAR },
53 { NC_("SV_FUNIT_STRINGS", "line"), FieldUnit::LINE },
54 { NC_("SV_FUNIT_STRINGS", "pixels"), FieldUnit::PIXEL },
55 { NC_("SV_FUNIT_STRINGS", "pixel"), FieldUnit::PIXEL },
56 /* To translators: degree */
57 { NC_("SV_FUNIT_STRINGS", "°"), FieldUnit::DEGREE },
58 { NC_("SV_FUNIT_STRINGS", "sec"), FieldUnit::SECOND },
59 { NC_("SV_FUNIT_STRINGS", "ms"), FieldUnit::MILLISECOND },
60 /* To translators: standard typographical metric 'em' */
61 { NC_("SV_FUNIT_STRINGS", "em"), FieldUnit::FONT_EM },
62 // To translators: This is the last entry of the sequence of measurement unit names
63 /* To translators: CSS unit 'ic'; CJK full-width advance in the current font */
64 { NC_("SV_FUNIT_STRINGS", "ic"), FieldUnit::FONT_CJK_ADVANCE }
67 #endif // INCLUDED_VCL_INC_UNITS_HRC
69 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */