1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23
24#ifndef _SECMACROWARNINGS_HRC
25#define _SECMACROWARNINGS_HRC
26
27#include <svtools/controldims.hrc>
28
29// --------- general metrics ---------
30
31#define SEP_FL_SPACE_Y					6
32#define SEP_FL_ADJ_Y(val)				(val-3)
33#define DLGS_BOTTOM_BTN_L(dlgh)			(dlgh-RSC_SP_DLG_INNERBORDER_BOTTOM)
34#define DLGS_BOTTOM_BTN_Y(dlgh)			(DLGS_BOTTOM_BTN_L(dlgh)-RSC_CD_PUSHBUTTON_HEIGHT)
35#define DLGS_BOTTOM_FL_Y(dlgh)			(DLGS_BOTTOM_BTN_Y(dlgh)-SEP_FL_SPACE_Y-5)
36#define DLGS_BOTTOM_LAST_CTRL_L(dlgh)	(DLGS_BOTTOM_BTN_Y(dlgh)-2*SEP_FL_SPACE_Y-3)
37#define DLGS_BOTTOM_HELP_X(dlgw)		(dlgw-RSC_SP_DLG_INNERBORDER_RIGHT-RSC_CD_PUSHBUTTON_WIDTH)
38#define DLGS_BOTTOM_CANCEL_X(dlgw)		(DLGS_BOTTOM_HELP_X(dlgw)-RSC_SP_CTRL_X-RSC_CD_PUSHBUTTON_WIDTH)
39#define DLGS_BOTTOM_OK_X(dlgw)          (DLGS_BOTTOM_CANCEL_X(dlgw)-RSC_SP_CTRL_GROUP_X-RSC_CD_PUSHBUTTON_WIDTH)
40
41// --------- signed macro warning ---------
42
43#define FI_DOCNAME						1
44#define FI_DESCR1A						2
45#define FI_SIGNS						3
46#define PB_VIEWSIGNS					4
47#define FI_DESCR2						5
48#define CB_ALWAYSTRUST					6
49#define PB_ENABLE						7
50#define PB_DISABLE						8
51#define FI_DESCR1B						9
52#define FL_BOTTOM_SEP					10
53#define BTN_HELP						11
54#define IMG_SYMBOL						12
55
56#define MW_WIDTH                        220
57#define MW_HEIGHT                       190
58
59#define MW_SYMBOL_WIDTH					(20)
60#define MW_SYMBOL_HEIGHT                (20)
61
62#define MW_COL_0						(RSC_SP_DLG_INNERBORDER_LEFT)
63#define MW_COL_1                        (MW_COL_0+MW_SYMBOL_WIDTH+RSC_SP_CTRL_DESC_X)
64
65#define MW_COL_4                        (MW_WIDTH-RSC_SP_DLG_INNERBORDER_RIGHT)
66#define MW_COL_3                        (MW_COL_4-RSC_CD_PUSHBUTTON_WIDTH)
67#define MW_COL_2						(MW_COL_3-RSC_SP_CTRL_DESC_X)
68
69#define MW_COL_A                        (DLGS_BOTTOM_OK_X(MW_WIDTH))
70#define MW_COL_C						(DLGS_BOTTOM_CANCEL_X(MW_WIDTH))
71#define MW_COL_E						(DLGS_BOTTOM_HELP_X(MW_WIDTH))
72
73#define MW_ROW_0                        (RSC_SP_DLG_INNERBORDER_TOP)
74#define MW_ROW_1                        (MW_ROW_0+3*RSC_CD_FIXEDTEXT_HEIGHT+RSC_SP_CTRL_DESC_Y)
75#define MW_ROW_2                        (MW_ROW_1+RSC_CD_FIXEDTEXT_HEIGHT+RSC_SP_CTRL_DESC_Y)
76
77#define MW_ROW_7                        (MW_HEIGHT-RSC_SP_DLG_INNERBORDER_BOTTOM)
78#define MW_ROW_6                        (MW_ROW_7-RSC_CD_PUSHBUTTON_HEIGHT)
79#define MW_ROW_5                        (MW_ROW_6-RSC_SP_CTRL_DESC_Y-RSC_CD_FIXEDTEXT_HEIGHT)
80#define MW_ROW_4                        (MW_ROW_5-RSC_SP_CTRL_DESC_Y-RSC_CD_CHECKBOX_HEIGHT)
81#define MW_ROW_3                        (MW_ROW_4-RSC_SP_CTRL_DESC_Y-4*RSC_CD_FIXEDTEXT_HEIGHT)
82
83#endif
84
85