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_SW_INC_DBUI_HRC
21 #define INCLUDED_SW_INC_DBUI_HRC
24 #include <unotools/resmgr.hxx>
27 #define NC_(Context, String) TranslateId(Context, reinterpret_cast<char const *>(u8##String))
29 // Elements -----------------------------------------------------------------
30 #define MM_PART_TITLE 0
31 #define MM_PART_FIRSTNAME 1
32 #define MM_PART_LASTNAME 2
33 #define MM_PART_COMPANY 3
34 #define MM_PART_ADDRESS_1 4
35 #define MM_PART_ADDRESS_2 5
36 #define MM_PART_CITY 6
37 #define MM_PART_REGION 7
39 #define MM_PART_COUNTRY 9
40 #define MM_PART_PHONE_PRIVATE 10
41 #define MM_PART_PHONE_BUSINESS 11
42 #define MM_PART_E_MAIL 12
43 #define MM_PART_GENDER 13
45 const std::pair<TranslateId, int> SA_ADDRESS_HEADER[] =
47 { NC_("SA_ADDRESS_HEADER", "Title") , MM_PART_TITLE },
48 { NC_("SA_ADDRESS_HEADER", "First Name") , MM_PART_FIRSTNAME },
49 { NC_("SA_ADDRESS_HEADER", "Last Name") , MM_PART_LASTNAME },
50 { NC_("SA_ADDRESS_HEADER", "Company Name") , MM_PART_COMPANY },
51 { NC_("SA_ADDRESS_HEADER", "Address Line 1") , MM_PART_ADDRESS_1 },
52 { NC_("SA_ADDRESS_HEADER", "Address Line 2") , MM_PART_ADDRESS_2 },
53 { NC_("SA_ADDRESS_HEADER", "City") , MM_PART_CITY },
54 { NC_("SA_ADDRESS_HEADER", "State") , MM_PART_REGION },
55 { NC_("SA_ADDRESS_HEADER", "ZIP") , MM_PART_ZIP },
56 { NC_("SA_ADDRESS_HEADER", "Country") , MM_PART_COUNTRY },
57 { NC_("SA_ADDRESS_HEADER", "Telephone private") , MM_PART_PHONE_PRIVATE },
58 { NC_("SA_ADDRESS_HEADER", "Telephone business") , MM_PART_PHONE_BUSINESS },
59 { NC_("SA_ADDRESS_HEADER", "Email Address") , MM_PART_E_MAIL },
60 { NC_("SA_ADDRESS_HEADER", "Gender"), MM_PART_GENDER }
65 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */