Version 3.6.0.4, tag libreoffice-3.6.0.4
[LibreOffice.git] / uui / source / secmacrowarnings.hrc
blob38e8974a3d2c7d2ce19fb1e18c4bb9fd93a382e2
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
28 #ifndef _SECMACROWARNINGS_HRC
29 #define _SECMACROWARNINGS_HRC
31 #include <svtools/controldims.hrc>
33 // --------- general metrics ---------
35 #define SEP_FL_SPACE_Y                  6
36 #define SEP_FL_ADJ_Y(val)               (val-3)
37 #define DLGS_BOTTOM_BTN_L(dlgh)         (dlgh-RSC_SP_DLG_INNERBORDER_BOTTOM)
38 #define DLGS_BOTTOM_BTN_Y(dlgh)         (DLGS_BOTTOM_BTN_L(dlgh)-RSC_CD_PUSHBUTTON_HEIGHT)
39 #define DLGS_BOTTOM_FL_Y(dlgh)          (DLGS_BOTTOM_BTN_Y(dlgh)-SEP_FL_SPACE_Y-5)
40 #define DLGS_BOTTOM_LAST_CTRL_L(dlgh)   (DLGS_BOTTOM_BTN_Y(dlgh)-2*SEP_FL_SPACE_Y-3)
41 #define DLGS_BOTTOM_HELP_X(dlgw)        (dlgw-RSC_SP_DLG_INNERBORDER_RIGHT-RSC_CD_PUSHBUTTON_WIDTH)
42 #define DLGS_BOTTOM_CANCEL_X(dlgw)      (DLGS_BOTTOM_HELP_X(dlgw)-RSC_SP_CTRL_X-RSC_CD_PUSHBUTTON_WIDTH)
43 #define DLGS_BOTTOM_OK_X(dlgw)          (DLGS_BOTTOM_CANCEL_X(dlgw)-RSC_SP_CTRL_GROUP_X-RSC_CD_PUSHBUTTON_WIDTH)
45 // --------- signed macro warning ---------
47 #define FI_DOCNAME                      1
48 #define FI_DESCR1A                      2
49 #define FI_SIGNS                        3
50 #define PB_VIEWSIGNS                    4
51 #define FI_DESCR2                       5
52 #define CB_ALWAYSTRUST                  6
53 #define PB_ENABLE                       7
54 #define PB_DISABLE                      8
55 #define FI_DESCR1B                      9
56 #define FL_BOTTOM_SEP                   10
57 #define BTN_HELP                        11
58 #define IMG_SYMBOL                      12
60 #define MW_WIDTH                        220
61 #define MW_HEIGHT                       190
63 #define MW_SYMBOL_WIDTH                 (20)
64 #define MW_SYMBOL_HEIGHT                (20)
66 #define MW_COL_0                        (RSC_SP_DLG_INNERBORDER_LEFT)
67 #define MW_COL_1                        (MW_COL_0+MW_SYMBOL_WIDTH+RSC_SP_CTRL_DESC_X)
69 #define MW_COL_4                        (MW_WIDTH-RSC_SP_DLG_INNERBORDER_RIGHT)
70 #define MW_COL_3                        (MW_COL_4-RSC_CD_PUSHBUTTON_WIDTH)
71 #define MW_COL_2                        (MW_COL_3-RSC_SP_CTRL_DESC_X)
73 #define MW_COL_A                        (DLGS_BOTTOM_OK_X(MW_WIDTH))
74 #define MW_COL_C                        (DLGS_BOTTOM_CANCEL_X(MW_WIDTH))
75 #define MW_COL_E                        (DLGS_BOTTOM_HELP_X(MW_WIDTH))
77 #define MW_ROW_0                        (RSC_SP_DLG_INNERBORDER_TOP)
78 #define MW_ROW_1                        (MW_ROW_0+3*RSC_CD_FIXEDTEXT_HEIGHT+RSC_SP_CTRL_DESC_Y)
79 #define MW_ROW_2                        (MW_ROW_1+RSC_CD_FIXEDTEXT_HEIGHT+RSC_SP_CTRL_DESC_Y)
81 #define MW_ROW_7                        (MW_HEIGHT-RSC_SP_DLG_INNERBORDER_BOTTOM)
82 #define MW_ROW_6                        (MW_ROW_7-RSC_CD_PUSHBUTTON_HEIGHT)
83 #define MW_ROW_5                        (MW_ROW_6-RSC_SP_CTRL_DESC_Y-RSC_CD_FIXEDTEXT_HEIGHT)
84 #define MW_ROW_4                        (MW_ROW_5-RSC_SP_CTRL_DESC_Y-RSC_CD_CHECKBOX_HEIGHT)
85 #define MW_ROW_3                        (MW_ROW_4-RSC_SP_CTRL_DESC_Y-4*RSC_CD_FIXEDTEXT_HEIGHT)
87 #endif