use boost flat_map for faster map
[LibreOffice.git] / cui / inc / twolines.hrc
blobc0e46d70144eea2c7ef33b6d42d8e15ff8d13313
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  */
10 #pragma once
12 #include <sal/types.h>
14 #include <utility>
16 #define NC_(Context, String) TranslateId(Context, reinterpret_cast<char const *>(u8##String))
18 #define CHRDLG_ENCLOSE_NONE                 0
19 #define CHRDLG_ENCLOSE_ROUND                1
20 #define CHRDLG_ENCLOSE_SQUARE               2
21 #define CHRDLG_ENCLOSE_POINTED              3
22 #define CHRDLG_ENCLOSE_CURVED               4
23 #define CHRDLG_ENCLOSE_SPECIAL_CHAR         5
25 const std::pair<TranslateId, sal_uInt16> TWOLINE_OPEN[] =
27     { NC_("twolinespage|liststore1", "(None)"), CHRDLG_ENCLOSE_NONE },
28     { NC_("twolinespage|liststore1", "("), CHRDLG_ENCLOSE_ROUND },
29     { NC_("twolinespage|liststore1", "["), CHRDLG_ENCLOSE_SQUARE },
30     { NC_("twolinespage|liststore1", "<"), CHRDLG_ENCLOSE_POINTED },
31     { NC_("twolinespage|liststore1", "{"), CHRDLG_ENCLOSE_CURVED },
32     { NC_("twolinespage|liststore1", "Other Characters..."), CHRDLG_ENCLOSE_SPECIAL_CHAR }
35 const std::pair<TranslateId, sal_uInt16> TWOLINE_CLOSE[] =
37     { NC_("twolinespage|liststore2", "(None)"), CHRDLG_ENCLOSE_NONE },
38     { NC_("twolinespage|liststore2", ")"), CHRDLG_ENCLOSE_ROUND },
39     { NC_("twolinespage|liststore2", "]"), CHRDLG_ENCLOSE_SQUARE },
40     { NC_("twolinespage|liststore2", ">"), CHRDLG_ENCLOSE_POINTED },
41     { NC_("twolinespage|liststore2", "}"), CHRDLG_ENCLOSE_CURVED },
42     { NC_("twolinespage|liststore2", "Other Characters..."), CHRDLG_ENCLOSE_SPECIAL_CHAR }
45 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */