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 BASCTL_MANAGELANG_HRC
21 #define BASCTL_MANAGELANG_HRC
23 // Include -----------------------------------------------------------------------
25 #include <svtools/controldims.hrc>
27 // Dialog Control Id's -----------------------------------------------------------
33 #define PB_MAKE_DEFAULT 5
38 #define STR_DEF_LANG 10
40 #define STR_CREATE_LANG 12
42 #define FT_DEF_LANGUAGE 1
43 #define LB_DEF_LANGUAGE 2
44 #define LB_ADD_LANGUAGE 3
46 #define FL_DEF_BUTTONS 5
48 #define PB_DEF_CANCEL 7
50 #define STR_ADDLANG_TITLE 9
51 #define STR_ADDLANG_LABEL 10
52 #define STR_ADDLANG_INFO 11
54 // Metrics -----------------------------------------------------------------------
56 #define MANAGE_DLG_WIDTH 240
57 #define MANAGE_DLG_HEIGHT 180
58 #define INFO_LINES_COUNT 3
60 #define MANAGE_COL1 RSC_SP_DLG_INNERBORDER_LEFT
61 #define MANAGE_COL2 (MANAGE_DLG_WIDTH - RSC_SP_DLG_INNERBORDER_RIGHT - 2*RSC_CD_PUSHBUTTON_WIDTH - RSC_SP_CTRL_X)
62 #define MANAGE_COL3 (MANAGE_COL2 + RSC_CD_PUSHBUTTON_WIDTH + RSC_SP_CTRL_X)
64 #define MANAGE_ROW1 RSC_SP_DLG_INNERBORDER_TOP
65 #define MANAGE_ROW2 (MANAGE_ROW1 + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y)
66 #define MANAGE_ROW3 (MANAGE_ROW2 + RSC_CD_PUSHBUTTON_HEIGHT + RSC_SP_CTRL_GROUP_Y)
68 #define MANAGE_ROW7 (MANAGE_DLG_HEIGHT - RSC_SP_DLG_INNERBORDER_BOTTOM - RSC_CD_PUSHBUTTON_HEIGHT)
69 #define MANAGE_ROW6 (MANAGE_ROW7 - RSC_SP_FLGR_SPACE_Y - RSC_CD_FIXEDLINE_HEIGHT)
70 #define MANAGE_ROW5 (MANAGE_ROW6 - RSC_SP_FLGR_SPACE_Y - INFO_LINES_COUNT*RSC_CD_FIXEDTEXT_HEIGHT)
71 #define MANAGE_ROW4 (MANAGE_ROW5 - RSC_SP_CTRL_GROUP_Y - RSC_CD_PUSHBUTTON_HEIGHT)
72 #define MANAGE_ROW4A (MANAGE_ROW4 + RSC_CD_PUSHBUTTON_HEIGHT)
74 #define MANAGE_LB_WIDTH (MANAGE_COL3 - RSC_SP_CTRL_X - RSC_SP_DLG_INNERBORDER_LEFT)
75 #define MANAGE_LB_HEIGHT (MANAGE_ROW4A - MANAGE_ROW2)
77 #define SETDEF_DLG_WIDTH 180
78 #define SETDEF_DLG_HEIGHT 165
80 #define SETDEF_COL1 RSC_SP_DLG_INNERBORDER_LEFT
81 #define SETDEF_COL2 (SETDEF_DLG_WIDTH - RSC_SP_DLG_INNERBORDER_RIGHT - 3*RSC_CD_PUSHBUTTON_WIDTH - RSC_SP_CTRL_GROUP_X - RSC_SP_CTRL_X)
82 #define SETDEF_COL3 (SETDEF_COL2 + RSC_CD_PUSHBUTTON_WIDTH + RSC_SP_CTRL_GROUP_X)
83 #define SETDEF_COL4 (SETDEF_COL3 + RSC_CD_PUSHBUTTON_WIDTH + RSC_SP_CTRL_X)
84 #define SETDEF_COL4A (SETDEF_COL4 + RSC_CD_PUSHBUTTON_WIDTH)
86 #define SETDEF_ROW1 RSC_SP_DLG_INNERBORDER_TOP
87 #define SETDEF_ROW2 (SETDEF_ROW1 + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y)
89 #define SETDEF_ROW5 (SETDEF_DLG_HEIGHT - RSC_SP_DLG_INNERBORDER_BOTTOM - RSC_CD_PUSHBUTTON_HEIGHT)
90 #define SETDEF_ROW4 (SETDEF_ROW5 - RSC_SP_FLGR_SPACE_Y - RSC_CD_FIXEDLINE_HEIGHT)
91 #define SETDEF_ROW3 (SETDEF_ROW4 - RSC_SP_FLGR_SPACE_Y - INFO_LINES_COUNT*RSC_CD_FIXEDTEXT_HEIGHT)
92 #define SETDEF_ROW3A (SETDEF_ROW3 - RSC_SP_CTRL_GROUP_Y)
94 #define SETDEF_LB_WIDTH (SETDEF_COL4A - SETDEF_COL1)
95 #define SETDEF_LB_HEIGHT (SETDEF_ROW3A - SETDEF_ROW2)
97 #endif // BASCTL_MANAGELANG_HRC
99 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */