merge the formfield patch from ooo-build
[ooovba.git] / uui / source / secmacrowarnings.hrc
blobc77b7d53f65f27fffbc929284d983955cdb03d86
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  * 
5  * Copyright 2008 by Sun Microsystems, Inc.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * $RCSfile: secmacrowarnings.hrc,v $
10  * $Revision: 1.3 $
11  *
12  * This file is part of OpenOffice.org.
13  *
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.
17  *
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).
23  *
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.
28  *
29  ************************************************************************/
31 #ifndef _SECMACROWARNINGS_HRC
32 #define _SECMACROWARNINGS_HRC
34 #include <svtools/controldims.hrc>
36 // --------- general metrics ---------
38 #define SEP_FL_SPACE_Y                                  6
39 #define SEP_FL_ADJ_Y(val)                               (val-3)
40 #define DLGS_BOTTOM_BTN_L(dlgh)                 (dlgh-RSC_SP_DLG_INNERBORDER_BOTTOM)
41 #define DLGS_BOTTOM_BTN_Y(dlgh)                 (DLGS_BOTTOM_BTN_L(dlgh)-RSC_CD_PUSHBUTTON_HEIGHT)
42 #define DLGS_BOTTOM_FL_Y(dlgh)                  (DLGS_BOTTOM_BTN_Y(dlgh)-SEP_FL_SPACE_Y-5)
43 #define DLGS_BOTTOM_LAST_CTRL_L(dlgh)   (DLGS_BOTTOM_BTN_Y(dlgh)-2*SEP_FL_SPACE_Y-3)
44 #define DLGS_BOTTOM_HELP_X(dlgw)                (dlgw-RSC_SP_DLG_INNERBORDER_RIGHT-RSC_CD_PUSHBUTTON_WIDTH)
45 #define DLGS_BOTTOM_CANCEL_X(dlgw)              (DLGS_BOTTOM_HELP_X(dlgw)-RSC_SP_CTRL_X-RSC_CD_PUSHBUTTON_WIDTH)
46 #define DLGS_BOTTOM_OK_X(dlgw)          (DLGS_BOTTOM_CANCEL_X(dlgw)-RSC_SP_CTRL_GROUP_X-RSC_CD_PUSHBUTTON_WIDTH)
48 // --------- signed macro warning ---------
50 #define FI_DOCNAME                                              1
51 #define FI_DESCR1A                                              2
52 #define FI_SIGNS                                                3
53 #define PB_VIEWSIGNS                                    4
54 #define FI_DESCR2                                               5
55 #define CB_ALWAYSTRUST                                  6
56 #define PB_ENABLE                                               7
57 #define PB_DISABLE                                              8
58 #define FI_DESCR1B                                              9
59 #define FL_BOTTOM_SEP                                   10
60 #define BTN_HELP                                                11
61 #define IMG_SYMBOL                                              12
63 #define MW_WIDTH                        220
64 #define MW_HEIGHT                       190
66 #define MW_SYMBOL_WIDTH                                 (20)
67 #define MW_SYMBOL_HEIGHT                (20)
69 #define MW_COL_0                                                (RSC_SP_DLG_INNERBORDER_LEFT)
70 #define MW_COL_1                        (MW_COL_0+MW_SYMBOL_WIDTH+RSC_SP_CTRL_DESC_X)
72 #define MW_COL_4                        (MW_WIDTH-RSC_SP_DLG_INNERBORDER_RIGHT)
73 #define MW_COL_3                        (MW_COL_4-RSC_CD_PUSHBUTTON_WIDTH)
74 #define MW_COL_2                                                (MW_COL_3-RSC_SP_CTRL_DESC_X)
76 #define MW_COL_A                        (DLGS_BOTTOM_OK_X(MW_WIDTH))
77 #define MW_COL_C                                                (DLGS_BOTTOM_CANCEL_X(MW_WIDTH))
78 #define MW_COL_E                                                (DLGS_BOTTOM_HELP_X(MW_WIDTH))
80 #define MW_ROW_0                        (RSC_SP_DLG_INNERBORDER_TOP)
81 #define MW_ROW_1                        (MW_ROW_0+3*RSC_CD_FIXEDTEXT_HEIGHT+RSC_SP_CTRL_DESC_Y)
82 #define MW_ROW_2                        (MW_ROW_1+RSC_CD_FIXEDTEXT_HEIGHT+RSC_SP_CTRL_DESC_Y)
84 #define MW_ROW_7                        (MW_HEIGHT-RSC_SP_DLG_INNERBORDER_BOTTOM)
85 #define MW_ROW_6                        (MW_ROW_7-RSC_CD_PUSHBUTTON_HEIGHT)
86 #define MW_ROW_5                        (MW_ROW_6-RSC_SP_CTRL_DESC_Y-RSC_CD_FIXEDTEXT_HEIGHT)
87 #define MW_ROW_4                        (MW_ROW_5-RSC_SP_CTRL_DESC_Y-RSC_CD_CHECKBOX_HEIGHT)
88 #define MW_ROW_3                        (MW_ROW_4-RSC_SP_CTRL_DESC_Y-4*RSC_CD_FIXEDTEXT_HEIGHT)
90 #endif