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