1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: macropg.hrc,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
34 #ifndef _SVT_CONTROLDIMS_HRC_
35 #include <svtools/controldims.hrc>
42 #define STR_ASSMACRO 5
44 #define PB_ASSIGN_COMPONENT 7
46 // Starting new IDs with 30 as eventdlg.hrc also includes this file
48 #define IMG_COMPONENT 31
49 #define IMG_MACRO_H 32
50 #define IMG_COMPONENT_H 33
53 #define RID_PB_CANCEL 42
54 #define RID_PB_HELP 43
56 #define EDIT_METHOD 45
59 // COL0<---------------WIDTH_1_2--------------->COL3<->COL4<----WIDTH4---->COL5
60 // <--WIDTH1-->COL1<-SPACE1->COL2<--WIDTH2->
62 #define WIDTH_TP 260 // of whole tabpage
63 #define COL5 (WIDTH_TP-RSC_SP_DLG_INNERBORDER_RIGHT)
64 #define COL4 (COL5-RSC_CD_PUSHBUTTON_WIDTH)
65 #define COL3 (COL4-RSC_SP_CTRL_X)
66 #define COL0 (RSC_SP_TBPG_INNERBORDER_LEFT)
67 #define WIDTH1_2 (COL3-COL0) // width of upper listbox
68 #define SPACE1 4 // space between lower listboxes
69 #define WIDTH1 ((WIDTH1_2-SPACE1)/2) // width of lower left listbox
70 #define WIDTH2 (WIDTH1_2-WIDTH1-SPACE1) // width of lower right listbox
71 #define COL1 (COL0+WIDTH1)
72 #define COL2 (COL1+SPACE1)
74 #define HEIGHT0 158 // of upper listbox
75 #define HEIGHT_TP (HEIGHT0+6) // of whole tabpage
76 #define ROW0 6 // more than RSC_SP_FLGR_INNERBORDER_TOP cause of bad design
77 #define ROW0A (ROW0+RSC_CD_FIXEDTEXT_HEIGHT+SPACE1)
78 #define ROW1 (ROW0A+RSC_CD_PUSHBUTTON_HEIGHT) // Assign button
79 #define ROW2 (ROW1+RSC_SP_CTRL_GROUP_Y)
80 #define ROW3 (ROW2+RSC_CD_PUSHBUTTON_HEIGHT) // Assign component button
81 #define ROW4 (ROW3+RSC_SP_CTRL_GROUP_Y)
82 #define ROW5_REMOVE (ROW4+RSC_SP_CTRL_GROUP_Y) // Remove button
83 #define ROW5 (ROW4+RSC_CD_DROPDOWN_HEIGHT) // script type listbox (hidden)
84 #define ROW6 (ROW0+HEIGHT0)
85 #define ROW7 (ROW6+RSC_SP_CTRL_Y)
86 #define HEIGHT_EXTRA7 (RSC_CD_FIXEDTEXT_HEIGHT) // additional height for FT_LABEL4LB_MACROS
87 #define ROW7A (ROW7+HEIGHT_EXTRA7)
88 #define ROW8 (ROW7+RSC_CD_FIXEDTEXT_HEIGHT+HEIGHT_EXTRA7)// label for lower listboxes (2 lines!)
89 #define ROW9 (HEIGHT_TP-RSC_SP_TBPG_INNERBORDER_BOTTOM)
90 #define HEIGHT8 (ROW9-ROW8) // of lower listboxes
92 #define COMP_EDIT_WIDTH 100
94 #define COMP_WIDTH (COMP_EDIT_WIDTH+RSC_CD_PUSHBUTTON_WIDTH+3*COMP_DIST_Y)
95 #define COMP_COL0 COMP_DIST_Y
96 #define COMP_COL1 (COMP_COL0+COMP_EDIT_WIDTH+COMP_DIST_Y)
98 #define COMP_ROW1 (COMP_ROW0+RSC_CD_PUSHBUTTON_HEIGHT+RSC_SP_CTRL_GROUP_Y)
99 #define COMP_ROW2 (COMP_ROW1+RSC_CD_PUSHBUTTON_HEIGHT+2*RSC_SP_CTRL_GROUP_Y)
100 #define COMP_ROWEDIT (COMP_ROW0+RSC_CD_FIXEDTEXT_HEIGHT+2)
101 #define COMP_HEIGHT (COMP_ROW2+RSC_CD_PUSHBUTTON_HEIGHT+2*RSC_SP_CTRL_GROUP_Y)