bump product version to 4.1.6.2
[LibreOffice.git] / cui / source / customize / macropg.hrc
blob2b9150eff3236b481ca2c786eff49fbc8126a4bf
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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  * This file incorporates work covered by the following license notice:
10  *
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 .
18  */
20 #ifndef _MACROPG_HRC
21 #define _MACROPG_HRC
23 #include <svtools/controldims.hrc>
25 #define     LB_EVENT                1
26 #define     PB_ASSIGN               2
27 #define     PB_DELETE               3
28 #define     STR_EVENT               4
29 #define     STR_ASSMACRO            5
30 #define     FT_ASSIGN               6
31 #define     PB_ASSIGN_COMPONENT     7
33 // Starting new IDs with 30 as eventdlg.hrc also includes this file
34 #define     IMG_MACRO               30
35 #define     IMG_COMPONENT           31
37 #define     RID_PB_OK               41
38 #define     RID_PB_CANCEL           42
39 #define     RID_PB_HELP             43
40 #define     FT_METHOD               44
41 #define     EDIT_METHOD             45
44 // COL0<---------------WIDTH_1_2--------------->COL3<->COL4<----WIDTH4---->COL5
45 //     <--WIDTH1-->COL1<-SPACE1->COL2<--WIDTH2->
47 #define WIDTH_TP        260                                     // of whole tabpage
48 #define COL5            (WIDTH_TP-RSC_SP_DLG_INNERBORDER_RIGHT)
49 #define COL4            (COL5-RSC_CD_PUSHBUTTON_WIDTH)
50 #define COL3            (COL4-RSC_SP_CTRL_X)
51 #define COL0            (RSC_SP_TBPG_INNERBORDER_LEFT)
52 #define WIDTH1_2        (COL3-COL0)                             // width of upper listbox
53 #define SPACE1          4                                       // space between lower listboxes
54 #define WIDTH1          ((WIDTH1_2-SPACE1)/2)                   // width of lower left listbox
55 #define WIDTH2          (WIDTH1_2-WIDTH1-SPACE1)                // width of lower right listbox
56 #define COL1            (COL0+WIDTH1)
57 #define COL2            (COL1+SPACE1)
59 #define HEIGHT0         158                                     // of upper listbox
60 #define HEIGHT_TP       (HEIGHT0+6)                             // of whole tabpage
61 #define ROW0            6                                       // more than RSC_SP_FLGR_INNERBORDER_TOP cause of bad design
62 #define ROW0A           (ROW0+RSC_CD_FIXEDTEXT_HEIGHT+SPACE1)
63 #define ROW1            (ROW0A+RSC_CD_PUSHBUTTON_HEIGHT)        // Assign button
64 #define ROW2            (ROW1+RSC_SP_CTRL_GROUP_Y)
65 #define ROW3            (ROW2+RSC_CD_PUSHBUTTON_HEIGHT)         // Assign component button
66 #define ROW4            (ROW3+RSC_SP_CTRL_GROUP_Y)
67 #define ROW5_REMOVE     (ROW4+RSC_SP_CTRL_GROUP_Y)              // Remove button
68 #define ROW5            (ROW4+RSC_CD_DROPDOWN_HEIGHT)           // script type listbox (hidden)
69 #define ROW6            (ROW0+HEIGHT0)
70 #define ROW7            (ROW6+RSC_SP_CTRL_Y)
71 #define HEIGHT_EXTRA7   (RSC_CD_FIXEDTEXT_HEIGHT)               // additional height for FT_LABEL4LB_MACROS
72 #define ROW7A           (ROW7+HEIGHT_EXTRA7)
73 #define ROW8            (ROW7+RSC_CD_FIXEDTEXT_HEIGHT+HEIGHT_EXTRA7)// label for lower listboxes (2 lines!)
74 #define ROW9            (HEIGHT_TP-RSC_SP_TBPG_INNERBORDER_BOTTOM)
75 #define HEIGHT8         (ROW9-ROW8)                             // of lower listboxes
77 #define COMP_EDIT_WIDTH 100
78 #define COMP_DIST_Y     6
79 #define COMP_WIDTH      (COMP_EDIT_WIDTH+RSC_CD_PUSHBUTTON_WIDTH+3*COMP_DIST_Y)
80 #define COMP_COL0       COMP_DIST_Y
81 #define COMP_COL1       (COMP_COL0+COMP_EDIT_WIDTH+COMP_DIST_Y)
82 #define COMP_ROW0       6
83 #define COMP_ROW1       (COMP_ROW0+RSC_CD_PUSHBUTTON_HEIGHT+RSC_SP_CTRL_GROUP_Y)
84 #define COMP_ROW2       (COMP_ROW1+RSC_CD_PUSHBUTTON_HEIGHT+2*RSC_SP_CTRL_GROUP_Y)
85 #define COMP_ROWEDIT    (COMP_ROW0+RSC_CD_FIXEDTEXT_HEIGHT+2)
86 #define COMP_HEIGHT     (COMP_ROW2+RSC_CD_PUSHBUTTON_HEIGHT+2*RSC_SP_CTRL_GROUP_Y)
88 #endif
90 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */