xref: /trunk/main/xmlsecurity/source/dialogs/dialogs.hrc (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
1*cdf0e10cSrcweir/*************************************************************************
2*cdf0e10cSrcweir *
3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir *
5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir *
7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir *
9*cdf0e10cSrcweir * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir *
11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir *
15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir *
21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir *
26*cdf0e10cSrcweir ************************************************************************/
27*cdf0e10cSrcweir
28*cdf0e10cSrcweir#ifndef _DIALOGS_HRC
29*cdf0e10cSrcweir#define _DIALOGS_HRC
30*cdf0e10cSrcweir
31*cdf0e10cSrcweir#include <svtools/controldims.hrc>
32*cdf0e10cSrcweir#include <xmlsecurity/global.hrc>
33*cdf0e10cSrcweir
34*cdf0e10cSrcweir#define STD_MASKCOLOR                   Color{Red=0xffff;Green=0x0000;Blue=0xffff;}
35*cdf0e10cSrcweir
36*cdf0e10cSrcweir#define FL_BOTTOM_SEP                   50
37*cdf0e10cSrcweir#define BTN_OK                          51
38*cdf0e10cSrcweir#define BTN_CANCEL                      52
39*cdf0e10cSrcweir#define BTN_HELP                        53
40*cdf0e10cSrcweir#define LB_SIGNATURES                   54
41*cdf0e10cSrcweir#define BTN_VIEWCERT                    55
42*cdf0e10cSrcweir#define STR_HEADERBAR                   56
43*cdf0e10cSrcweir#define BTN_RESET                       57
44*cdf0e10cSrcweir#define STR_VALID_SIGNATURE             58
45*cdf0e10cSrcweir#define STR_NO_INFO_TO_VERIFY           59
46*cdf0e10cSrcweir#define STR_INVALID_SIGNATURE           60
47*cdf0e10cSrcweir
48*cdf0e10cSrcweir// --------- general metrics ---------
49*cdf0e10cSrcweir#define DLGS_WIDTH                      287
50*cdf0e10cSrcweir#define DLGS_HEIGHT                     195
51*cdf0e10cSrcweir// --------- ... for tab dialogs -----
52*cdf0e10cSrcweir#define TP_WIDTH                        260
53*cdf0e10cSrcweir#define TP_HEIGHT                       185
54*cdf0e10cSrcweir#define RIDDER_HEIGHT                   (RSC_CD_PUSHBUTTON_HEIGHT)
55*cdf0e10cSrcweir#define TD_SP_INNERBORDER_LEFT          3
56*cdf0e10cSrcweir#define TD_SP_INNERBORDER_RIGHT         3
57*cdf0e10cSrcweir#define TD_SP_INNERBORDER_TOP           3
58*cdf0e10cSrcweir#define TD_SP_INNERBORDER_BOTTOM        3
59*cdf0e10cSrcweir#define TD_WIDTH                        (TP_WIDTH+RSC_SP_DLG_INNERBORDER_LEFT+RSC_SP_DLG_INNERBORDER_RIGHT)
60*cdf0e10cSrcweir#define TD_HEIGHT                       (TP_HEIGHT+TD_SP_INNERBORDER_TOP+2*TD_SP_INNERBORDER_BOTTOM+RSC_CD_PUSHBUTTON_HEIGHT+RIDDER_HEIGHT)
61*cdf0e10cSrcweir
62*cdf0e10cSrcweir#define SEP_FL_SPACE_Y                  6
63*cdf0e10cSrcweir#define SEP_FL_ADJ_Y(val)               (val-3)
64*cdf0e10cSrcweir#define DLGS_BOTTOM_BTN_L(dlgh)         (dlgh-RSC_SP_DLG_INNERBORDER_BOTTOM)
65*cdf0e10cSrcweir#define DLGS_BOTTOM_BTN_Y(dlgh)         (DLGS_BOTTOM_BTN_L(dlgh)-RSC_CD_PUSHBUTTON_HEIGHT)
66*cdf0e10cSrcweir#define DLGS_BOTTOM_FL_Y(dlgh)          (DLGS_BOTTOM_BTN_Y(dlgh)-SEP_FL_SPACE_Y-5)
67*cdf0e10cSrcweir#define DLGS_BOTTOM_LAST_CTRL_L(dlgh)   (DLGS_BOTTOM_BTN_Y(dlgh)-2*SEP_FL_SPACE_Y-3)
68*cdf0e10cSrcweir#define DLGS_BOTTOM_HELP_X(dlgw)        (dlgw-RSC_SP_DLG_INNERBORDER_RIGHT-RSC_CD_PUSHBUTTON_WIDTH)
69*cdf0e10cSrcweir#define DLGS_BOTTOM_CANCEL_X(dlgw)      (DLGS_BOTTOM_HELP_X(dlgw)-RSC_SP_CTRL_X-RSC_CD_PUSHBUTTON_WIDTH)
70*cdf0e10cSrcweir#define DLGS_BOTTOM_OK_X(dlgw)          (DLGS_BOTTOM_CANCEL_X(dlgw)-RSC_SP_CTRL_DESC_X-RSC_CD_PUSHBUTTON_WIDTH)
71*cdf0e10cSrcweir
72*cdf0e10cSrcweir
73*cdf0e10cSrcweir// --------- dialog Digital Signatures ---------
74*cdf0e10cSrcweir#define BTN_ADDCERT                     2
75*cdf0e10cSrcweir#define BTN_REMOVECERT                  3
76*cdf0e10cSrcweir#define FT_HINT_DOC                     4
77*cdf0e10cSrcweir#define FT_HINT_BASIC                   5
78*cdf0e10cSrcweir#define FT_HINT_PACK                    6
79*cdf0e10cSrcweir#define IMG_STATE_VALID                 7
80*cdf0e10cSrcweir#define FI_STATE_VALID                  8
81*cdf0e10cSrcweir#define IMG_STATE_BROKEN                9
82*cdf0e10cSrcweir#define FI_STATE_BROKEN                 10
83*cdf0e10cSrcweir#define IMG_STATE_NOTVALIDATED          11
84*cdf0e10cSrcweir#define FI_STATE_NOTVALIDATED           12
85*cdf0e10cSrcweir#define IMG_STATE_VALID_HC              13
86*cdf0e10cSrcweir#define IMG_STATE_BROKEN_HC             14
87*cdf0e10cSrcweir#define IMG_STATE_NOTVALIDATED_HC       15
88*cdf0e10cSrcweir#define FI_STATE_OLDSIGNATURE           16
89*cdf0e10cSrcweir
90*cdf0e10cSrcweir//#define DS_WIDTH                      DLGS_WIDTH
91*cdf0e10cSrcweir//#define DS_HEIGHT                     DLGS_HEIGHT
92*cdf0e10cSrcweir#define DS_BTNWIDTH_1                   70
93*cdf0e10cSrcweir#define DS_BTNSPACE_X                   RSC_SP_CTRL_X
94*cdf0e10cSrcweir#define DS_WIDTH                        (RSC_SP_DLG_INNERBORDER_LEFT+RSC_SP_DLG_INNERBORDER_RIGHT+2*DS_BTNSPACE_X+3*DS_BTNWIDTH_1)
95*cdf0e10cSrcweir#define DS_HEIGHT                       (DLGS_WIDTH*2/3)
96*cdf0e10cSrcweir
97*cdf0e10cSrcweir#define DS_COL_0                        RSC_SP_DLG_INNERBORDER_LEFT
98*cdf0e10cSrcweir//#define DS_COL_MID                        (DS_WIDTH/2)
99*cdf0e10cSrcweir//#define DS_COL_3                      (DS_COL_MID-(DS_BTNWIDTH_1/2))
100*cdf0e10cSrcweir//#define DS_COL_4                      (DS_COL_2+DS_BTNWIDTH_1)
101*cdf0e10cSrcweir//#define DS_COL_2                      (DS_COL_3-DS_BTNSPACE_X)
102*cdf0e10cSrcweir//#define DS_COL_1                      (DS_COL_2-DS_BTNWIDTH_1)
103*cdf0e10cSrcweir#define DS_COL_1                        DS_COL_0
104*cdf0e10cSrcweir#define DS_COL_2                        (DS_COL_1+DS_BTNWIDTH_1)
105*cdf0e10cSrcweir#define DS_COL_3                        (DS_COL_2+DS_BTNSPACE_X)
106*cdf0e10cSrcweir#define DS_COL_4                        (DS_COL_3+DS_BTNWIDTH_1)
107*cdf0e10cSrcweir#define DS_COL_5                        (DS_COL_4+DS_BTNSPACE_X)
108*cdf0e10cSrcweir//#define   DS_COL_6                        (DS_COL_5+DS_BTNWIDTH_1)
109*cdf0e10cSrcweir#define DS_COL_7                        (DS_WIDTH-RSC_SP_DLG_INNERBORDER_RIGHT)
110*cdf0e10cSrcweir#define DS_COL_6                        DS_COL_7
111*cdf0e10cSrcweir
112*cdf0e10cSrcweir#define DS_ROW_0                        RSC_SP_DLG_INNERBORDER_TOP
113*cdf0e10cSrcweir#define DS_ROW_1                        (DS_ROW_0+RSC_CD_FIXEDTEXT_HEIGHT+RSC_SP_CTRL_DESC_X)
114*cdf0e10cSrcweir#define DS_ROW_7                        DLGS_BOTTOM_BTN_L(DS_HEIGHT)
115*cdf0e10cSrcweir#define DS_ROW_6                        DLGS_BOTTOM_BTN_Y(DS_HEIGHT)
116*cdf0e10cSrcweir#define DS_ROW_5                        DLGS_BOTTOM_FL_Y(DS_HEIGHT)
117*cdf0e10cSrcweir#define DS_ROW_4                        DLGS_BOTTOM_LAST_CTRL_L(DS_HEIGHT)
118*cdf0e10cSrcweir#define DS_ROW_3                        (DS_ROW_4-RSC_CD_PUSHBUTTON_HEIGHT)
119*cdf0e10cSrcweir#define DS_ROW_2A                       (DS_ROW_3-RSC_CD_FIXEDTEXT_HEIGHT-RSC_SP_CTRL_Y)
120*cdf0e10cSrcweir#define DS_ROW_2                        (DS_ROW_2A-RSC_SP_CTRL_GROUP_Y)
121*cdf0e10cSrcweir
122*cdf0e10cSrcweir#define DS_LB_WIDTH                     (DS_COL_7-DS_COL_0)
123*cdf0e10cSrcweir
124*cdf0e10cSrcweir// --------- dialog Ceritficate chooser ---------
125*cdf0e10cSrcweir#define FT_HINT_SELECT                  1
126*cdf0e10cSrcweir
127*cdf0e10cSrcweir#define CS_WIDTH                        DLGS_WIDTH
128*cdf0e10cSrcweir#define CS_HEIGHT                       DLGS_HEIGHT
129*cdf0e10cSrcweir#define CS_BTNWIDTH_1                   DS_BTNWIDTH_1
130*cdf0e10cSrcweir
131*cdf0e10cSrcweir#define CS_COL_0                        RSC_SP_DLG_INNERBORDER_LEFT
132*cdf0e10cSrcweir#define CS_COL_2                        (CS_WIDTH-RSC_SP_DLG_INNERBORDER_RIGHT)
133*cdf0e10cSrcweir#define CS_COL_1                        (CS_COL_2-CS_BTNWIDTH_1)
134*cdf0e10cSrcweir
135*cdf0e10cSrcweir#define CS_ROW_0                        RSC_SP_DLG_INNERBORDER_TOP
136*cdf0e10cSrcweir#define CS_ROW_1                        (CS_ROW_0+RSC_CD_FIXEDTEXT_HEIGHT+RSC_SP_CTRL_DESC_X)
137*cdf0e10cSrcweir#define CS_ROW_4                        DLGS_BOTTOM_LAST_CTRL_L(CS_HEIGHT)
138*cdf0e10cSrcweir#define CS_ROW_3                        (CS_ROW_4-RSC_CD_PUSHBUTTON_HEIGHT)
139*cdf0e10cSrcweir#define CS_ROW_2                        (CS_ROW_3-RSC_SP_CTRL_Y)
140*cdf0e10cSrcweir
141*cdf0e10cSrcweir#define CS_LB_WIDTH                     (CS_COL_2-CS_COL_0)
142*cdf0e10cSrcweir
143*cdf0e10cSrcweir// --------- tab dialog Certificate viewer ---------
144*cdf0e10cSrcweir
145*cdf0e10cSrcweir#define CV_COL_0                        TD_SP_INNERBORDER_LEFT
146*cdf0e10cSrcweir#define CV_COL_1                        (TP_WIDTH-RSC_SP_TBPG_INNERBORDER_RIGHT)
147*cdf0e10cSrcweir#define CV_ROW_0                        RSC_SP_TBPG_INNERBORDER_TOP
148*cdf0e10cSrcweir#define CV_ROW_3                        (TP_HEIGHT-RSC_SP_TBPG_INNERBORDER_BOTTOM)
149*cdf0e10cSrcweir#define CV_CONT_WIDTH                   (CV_COL_1-CV_COL_0)
150*cdf0e10cSrcweir#define CV_CONT_HEIGHT                  (CV_ROW_3-CV_ROW_0)
151*cdf0e10cSrcweir#define CV_ROW_1                        (CV_ROW_0+2*CV_CONT_HEIGHT/3)
152*cdf0e10cSrcweir#define CV_ROW_2                        (CV_ROW_1+RSC_SP_CTRL_GROUP_Y)
153*cdf0e10cSrcweir
154*cdf0e10cSrcweir#define CV_COL_D                        (TD_WIDTH-TD_SP_INNERBORDER_RIGHT)
155*cdf0e10cSrcweir#define CV_COL_C                        (CV_COL_D-RSC_CD_PUSHBUTTON_WIDTH)
156*cdf0e10cSrcweir#define CV_COL_B                        (CV_COL_C-RSC_SP_CTRL_X)
157*cdf0e10cSrcweir#define CV_COL_A                        (CV_COL_B-RSC_CD_PUSHBUTTON_WIDTH)
158*cdf0e10cSrcweir
159*cdf0e10cSrcweir#define CV_ROW_B                        (TD_HEIGHT-TD_SP_INNERBORDER_BOTTOM)
160*cdf0e10cSrcweir#define CV_ROW_A                        (CV_ROW_B-RSC_CD_PUSHBUTTON_HEIGHT)
161*cdf0e10cSrcweir
162*cdf0e10cSrcweir// --------- tab page Certificate viewer - General ---------
163*cdf0e10cSrcweir#define WIN_FRAME                       2
164*cdf0e10cSrcweir#define IMG_CERT                        3
165*cdf0e10cSrcweir#define FI_CERTINFO                     4
166*cdf0e10cSrcweir#define FL_SEP1                         5
167*cdf0e10cSrcweir#define FI_HINTNOTTRUST                 6
168*cdf0e10cSrcweir#define FL_SEP2                         7
169*cdf0e10cSrcweir#define FI_ISSTOLABEL                   8
170*cdf0e10cSrcweir#define FI_ISSTO                        9
171*cdf0e10cSrcweir#define FI_ISSBYLABEL                   10
172*cdf0e10cSrcweir#define FI_ISSBY                        11
173*cdf0e10cSrcweir#define FI_VALIDDATE                    12
174*cdf0e10cSrcweir#define IMG_KEY                         13
175*cdf0e10cSrcweir#define FI_CORRPRIVKEY                  14
176*cdf0e10cSrcweir#define STR_CERTIFICATE_NOT_VALIDATED   15
177*cdf0e10cSrcweir#define IMG_STATE_NOT_VALIDATED         16
178*cdf0e10cSrcweir#define IMG_STATE_CERIFICATED_HC        17
179*cdf0e10cSrcweir#define IMG_STATE_NOT_VALIDATED_HC      18
180*cdf0e10cSrcweir#define IMG_KEY_HC                      19
181*cdf0e10cSrcweir
182*cdf0e10cSrcweir#define IMG1_WIDTH                      33
183*cdf0e10cSrcweir#define IMG1_HEIGHT                     22
184*cdf0e10cSrcweir#define IMG2_WIDTH                      20
185*cdf0e10cSrcweir#define IMG2_HEIGHT                     20
186*cdf0e10cSrcweir#define DATE_WIDTH                      30
187*cdf0e10cSrcweir#define CW_COL_0                        (CV_COL_0+RSC_SP_GRP_INNERBORDER_LEFT)
188*cdf0e10cSrcweir#define CW_COL_1                        (CW_COL_0+RSC_SP_FLGR_SPACE_X)
189*cdf0e10cSrcweir#define CW_COL_1a                       (CW_COL_0+IMG2_WIDTH+1)
190*cdf0e10cSrcweir#define CW_COL_2                        (CW_COL_0+IMG1_WIDTH)
191*cdf0e10cSrcweir#define CW_COL_3                        (CW_COL_2+RSC_SP_CTRL_GROUP_X)
192*cdf0e10cSrcweir#define CW_COL_4                        (CW_COL_1+40)
193*cdf0e10cSrcweir#define CW_COL_5                        (CV_CONT_WIDTH-RSC_SP_GRP_INNERBORDER_RIGHT)
194*cdf0e10cSrcweir#define CW_COL_5a                       (CW_COL_5-RSC_SP_GRP_INNERBORDER_RIGHT)
195*cdf0e10cSrcweir#define CW_COL_4a                       (CW_COL_1+38)
196*cdf0e10cSrcweir#define CW_COL_4b                       (CW_COL_4a+DATE_WIDTH)
197*cdf0e10cSrcweir#define CW_COL_4c                       (CW_COL_4b+3)
198*cdf0e10cSrcweir#define CW_COL_4d                       (CW_COL_4c+8)
199*cdf0e10cSrcweir#define CW_COL_4e                       (CW_COL_4d+3)
200*cdf0e10cSrcweir#define CW_ROW_0                        (CV_ROW_0+RSC_SP_GRP_INNERBORDER_TOP)
201*cdf0e10cSrcweir#define CW_ROW_1                        (CW_ROW_0+RSC_SP_GRP_INNERBORDER_TOP)
202*cdf0e10cSrcweir#define CW_ROW_2                        (CW_ROW_0+IMG1_HEIGHT)
203*cdf0e10cSrcweir#define CW_ROW_3                        (CW_ROW_2+3)
204*cdf0e10cSrcweir#define CW_ROW_4                        (CW_ROW_3+RSC_SP_CTRL_Y+RSC_CD_FIXEDLINE_HEIGHT)
205*cdf0e10cSrcweir#define CW_ROW_4a                       (CW_ROW_4+35)
206*cdf0e10cSrcweir#define CW_ROW_5                        (CW_ROW_4a+3)
207*cdf0e10cSrcweir#define CW_ROW_6                        (CW_ROW_5+RSC_SP_CTRL_Y+RSC_CD_FIXEDLINE_HEIGHT)
208*cdf0e10cSrcweir#define CW_ROW_7                        (CW_ROW_6+RSC_SP_CTRL_Y+RSC_CD_FIXEDTEXT_HEIGHT)
209*cdf0e10cSrcweir#define CW_ROW_8                        (CW_ROW_7+RSC_SP_CTRL_Y+RSC_CD_FIXEDTEXT_HEIGHT)
210*cdf0e10cSrcweir#define CW_ROW_9                        (CW_ROW_8+RSC_SP_CTRL_Y+RSC_CD_FIXEDTEXT_HEIGHT)
211*cdf0e10cSrcweir#define CW_ROW_10                       (CW_ROW_9+2)
212*cdf0e10cSrcweir#define CW_ROW_11                       (CW_ROW_9+IMG2_HEIGHT)
213*cdf0e10cSrcweir
214*cdf0e10cSrcweir// --------- tab page Certificate viewer - Details ---------
215*cdf0e10cSrcweir
216*cdf0e10cSrcweir#define LB_ELEMENTS                     1
217*cdf0e10cSrcweir#define ML_ELEMENT                      2
218*cdf0e10cSrcweir
219*cdf0e10cSrcweir#define STR_VERSION                     1
220*cdf0e10cSrcweir#define STR_SERIALNUM                   2
221*cdf0e10cSrcweir#define STR_SIGALGORITHM                3
222*cdf0e10cSrcweir#define STR_ISSUER                      4
223*cdf0e10cSrcweir#define STR_ISSUER_ID                   5
224*cdf0e10cSrcweir#define STR_VALIDFROM                   6
225*cdf0e10cSrcweir#define STR_VALIDTO                     7
226*cdf0e10cSrcweir#define STR_SUBJECT                     8
227*cdf0e10cSrcweir#define STR_SUBJECT_ID                  9
228*cdf0e10cSrcweir#define STR_SUBJECT_PUBKEY_ALGO         10
229*cdf0e10cSrcweir#define STR_SUBJECT_PUBKEY_VAL          11
230*cdf0e10cSrcweir#define STR_SIGNATURE_ALGO              12
231*cdf0e10cSrcweir#define STR_THUMBPRINT_SHA1             13
232*cdf0e10cSrcweir#define STR_THUMBPRINT_MD5              14
233*cdf0e10cSrcweir
234*cdf0e10cSrcweir// --------- tab page Certificate viewer - Certification Path ---------
235*cdf0e10cSrcweir
236*cdf0e10cSrcweir#define FT_CERTPATH                     1
237*cdf0e10cSrcweir#define FT_CERTSTATUS                   2
238*cdf0e10cSrcweir#define ML_CERTSTATUS                   3
239*cdf0e10cSrcweir#define IMG_CERT_SMALL                  4
240*cdf0e10cSrcweir#define IMG_CERT_SMALL_HC               5
241*cdf0e10cSrcweir#define IMG_CERT_NOTVALIDATED_SMALL     6
242*cdf0e10cSrcweir#define IMG_CERT_NOTVALIDATED_SMALL_HC  7
243*cdf0e10cSrcweir#define STR_PATH_CERT_OK                8
244*cdf0e10cSrcweir#define STR_PATH_CERT_NOT_VALIDATED     9
245*cdf0e10cSrcweir
246*cdf0e10cSrcweir#define CVP_ROW_0                       RSC_SP_TBPG_INNERBORDER_TOP
247*cdf0e10cSrcweir#define CVP_ROW_1                       (CVP_ROW_0+RSC_CD_FIXEDTEXT_HEIGHT+RSC_SP_CTRL_DESC_Y)
248*cdf0e10cSrcweir#define REST_HEIGHT                     (TP_HEIGHT-CVP_ROW_1-2*RSC_SP_GRP_SPACE_Y-RSC_CD_FIXEDTEXT_HEIGHT-RSC_CD_PUSHBUTTON_HEIGHT)
249*cdf0e10cSrcweir#define CVP_ROW_2                       (CVP_ROW_1+REST_HEIGHT/3*2+RSC_SP_CTRL_DESC_Y)
250*cdf0e10cSrcweir#define CVP_ROW_3                       (CVP_ROW_2+RSC_CD_PUSHBUTTON_HEIGHT)
251*cdf0e10cSrcweir#define CVP_ROW_4                       (CVP_ROW_3+RSC_CD_FIXEDTEXT_HEIGHT+RSC_SP_CTRL_DESC_Y)
252*cdf0e10cSrcweir
253*cdf0e10cSrcweir//#define CV_ROW_0A                      (CV_ROW_0+RSC_SP_CTRL_DESC_Y+RSC_CD_FIXEDTEXT_HEIGHT)
254*cdf0e10cSrcweir//#define CV_ROW_2A                      (CV_ROW_2+RSC_SP_CTRL_DESC_Y+RSC_CD_FIXEDTEXT_HEIGHT)
255*cdf0e10cSrcweir
256*cdf0e10cSrcweir// --------- tab dialog macro security ---------
257*cdf0e10cSrcweir
258*cdf0e10cSrcweir#define MS_COL_A                        (TD_WIDTH-RSC_SP_DLG_INNERBORDER_LEFT)
259*cdf0e10cSrcweir#define MS_COL_B                        (MS_COL_A-RSC_CD_PUSHBUTTON_WIDTH)
260*cdf0e10cSrcweir#define MS_COL_C                        (MS_COL_B-RSC_SP_CTRL_X)
261*cdf0e10cSrcweir#define MS_COL_D                        (MS_COL_C-RSC_CD_PUSHBUTTON_WIDTH)
262*cdf0e10cSrcweir#define MS_COL_E                        (MS_COL_D-RSC_SP_CTRL_X)
263*cdf0e10cSrcweir#define MS_COL_F                        (MS_COL_E-RSC_CD_PUSHBUTTON_WIDTH)
264*cdf0e10cSrcweir#define MS_COL_G                        (MS_COL_F-RSC_SP_CTRL_X)
265*cdf0e10cSrcweir#define MS_COL_H                        (MS_COL_G-RSC_CD_PUSHBUTTON_WIDTH)
266*cdf0e10cSrcweir
267*cdf0e10cSrcweir// --------- tab page security level ---------
268*cdf0e10cSrcweir
269*cdf0e10cSrcweir#define FL_SECLEVEL                     1
270*cdf0e10cSrcweir#define RB_VERYHIGH                     2
271*cdf0e10cSrcweir#define RB_HIGH                         3
272*cdf0e10cSrcweir#define RB_MEDIUM                       4
273*cdf0e10cSrcweir#define RB_LOW                          5
274*cdf0e10cSrcweir#define FI_SEC_READONLY                 6
275*cdf0e10cSrcweir
276*cdf0e10cSrcweir#define RSC_BIG_RADIOBUTTON             40
277*cdf0e10cSrcweir#define SL_RB_DIST_Y                    (RSC_SP_FLGR_SPACE_Y+RSC_BIG_RADIOBUTTON)
278*cdf0e10cSrcweir#define SL_COL_0                        RSC_SP_TBPG_INNERBORDER_LEFT
279*cdf0e10cSrcweir#define SL_COL_1                        (SL_COL_0+RSC_SP_FLGR_SPACE_X)
280*cdf0e10cSrcweir#define SL_COL_3                        (TP_WIDTH-RSC_SP_TBPG_INNERBORDER_RIGHT)
281*cdf0e10cSrcweir#define SL_COL_2                        ((SL_COL_3-SL_COL_1)*100/105)
282*cdf0e10cSrcweir#define SL_ROW_0                        RSC_SP_TBPG_INNERBORDER_TOP
283*cdf0e10cSrcweir#define SL_ROW_1                        (SL_ROW_0+SL_RB_DIST_Y)
284*cdf0e10cSrcweir#define SL_ROW_2                        (SL_ROW_1+SL_RB_DIST_Y)
285*cdf0e10cSrcweir#define SL_ROW_3                        (SL_ROW_2+SL_RB_DIST_Y)
286*cdf0e10cSrcweir#define SL_ROW_4                        (TP_HEIGHT-RSC_SP_TBPG_INNERBORDER_BOTTOM)
287*cdf0e10cSrcweir
288*cdf0e10cSrcweir// --------- tab page trusted sources ---------
289*cdf0e10cSrcweir
290*cdf0e10cSrcweir#define FL_TRUSTCERT                    1
291*cdf0e10cSrcweir#define LB_TRUSTCERT                    2
292*cdf0e10cSrcweir#define PB_ADD_TRUSTCERT                3
293*cdf0e10cSrcweir#define PB_VIEW_TRUSTCERT               4
294*cdf0e10cSrcweir#define PB_REMOVE_TRUSTCERT             5
295*cdf0e10cSrcweir#define FL_TRUSTFILELOC                 6
296*cdf0e10cSrcweir#define FI_TRUSTFILELOC                 7
297*cdf0e10cSrcweir#define LB_TRUSTFILELOC                 8
298*cdf0e10cSrcweir#define FL_ADD_TRUSTFILELOC             9
299*cdf0e10cSrcweir#define FL_REMOVE_TRUSTFILELOC          10
300*cdf0e10cSrcweir#define FI_TRUSTCERT_RO                 11
301*cdf0e10cSrcweir#define FI_TRUSTFILE_RO                 12
302*cdf0e10cSrcweir
303*cdf0e10cSrcweir#define TS_COL_0                        RSC_SP_TBPG_INNERBORDER_LEFT
304*cdf0e10cSrcweir#define TS_COL_1                        (TS_COL_0+RSC_SP_FLGR_SPACE_X)
305*cdf0e10cSrcweir#define TS_COL_8                        (TP_WIDTH-RSC_SP_TBPG_INNERBORDER_RIGHT)
306*cdf0e10cSrcweir#define TS_COL_7                        (TS_COL_8-RSC_SP_FLGR_SPACE_X)
307*cdf0e10cSrcweir#define TS_COL_6                        (TS_COL_7-RSC_CD_PUSHBUTTON_WIDTH)
308*cdf0e10cSrcweir#define TS_COL_5                        (TS_COL_6-RSC_SP_CTRL_GROUP_X)
309*cdf0e10cSrcweir#define TS_COL_4                        (TS_COL_5-RSC_CD_PUSHBUTTON_WIDTH)
310*cdf0e10cSrcweir#define TS_COL_3                        (TS_COL_4-RSC_SP_CTRL_GROUP_X)
311*cdf0e10cSrcweir#define TS_COL_2                        (TS_COL_3-RSC_CD_PUSHBUTTON_WIDTH)
312*cdf0e10cSrcweir
313*cdf0e10cSrcweir#define RSC_CD_TABLISTBOX_HEIGHT        6*RSC_BS_CHARHEIGHT
314*cdf0e10cSrcweir#define TS_ROW_0                        RSC_SP_TBPG_INNERBORDER_TOP
315*cdf0e10cSrcweir#define TS_ROW_1                        (TS_ROW_0+RSC_CD_FIXEDLINE_HEIGHT+RSC_SP_FLGR_SPACE_Y)
316*cdf0e10cSrcweir#define TS_ROW_2                        (TS_ROW_1+RSC_CD_TABLISTBOX_HEIGHT+RSC_SP_FLGR_SPACE_Y)
317*cdf0e10cSrcweir#define TS_ROW_3                        (TS_ROW_2+RSC_CD_PUSHBUTTON_HEIGHT+RSC_SP_FLGR_SPACE_Y)
318*cdf0e10cSrcweir#define TS_ROW_4                        (TS_ROW_3+RSC_CD_FIXEDLINE_HEIGHT+RSC_SP_FLGR_SPACE_Y)
319*cdf0e10cSrcweir#define TS_ROW_5                        (TS_ROW_4+3*RSC_CD_FIXEDTEXT_HEIGHT+RSC_SP_FLGR_SPACE_Y)
320*cdf0e10cSrcweir
321*cdf0e10cSrcweir#define TS_ROW_8                        (TP_HEIGHT-RSC_SP_TBPG_INNERBORDER_BOTTOM)
322*cdf0e10cSrcweir#define TS_ROW_7                        (TS_ROW_8-RSC_CD_PUSHBUTTON_HEIGHT)
323*cdf0e10cSrcweir#define TS_ROW_6                        (TS_ROW_7-RSC_SP_FLGR_SPACE_Y)
324*cdf0e10cSrcweir
325*cdf0e10cSrcweir// --------- signed macro warning ---------
326*cdf0e10cSrcweir
327*cdf0e10cSrcweir#define FI_DOCNAME                      1
328*cdf0e10cSrcweir#define FI_DESCR1A                      2
329*cdf0e10cSrcweir#define FI_SIGNS                        3
330*cdf0e10cSrcweir#define PB_VIEWSIGNS                    4
331*cdf0e10cSrcweir#define FI_DESCR2                       5
332*cdf0e10cSrcweir#define CB_ALWAYSTRUST                  6
333*cdf0e10cSrcweir#define PB_ENABLE                       7
334*cdf0e10cSrcweir#define PB_DISABLE                      8
335*cdf0e10cSrcweir#define FI_DESCR1B                      9
336*cdf0e10cSrcweir
337*cdf0e10cSrcweir#define MW_WIDTH                        DLGS_WIDTH
338*cdf0e10cSrcweir#define MW_HEIGHT                       DLGS_HEIGHT
339*cdf0e10cSrcweir
340*cdf0e10cSrcweir#define MW_SYMBOL_WIDTH                 (20)
341*cdf0e10cSrcweir
342*cdf0e10cSrcweir#define MW_COL_0                        (RSC_SP_DLG_INNERBORDER_LEFT)
343*cdf0e10cSrcweir#define MW_COL_1                        (MW_COL_0+MW_SYMBOL_WIDTH)
344*cdf0e10cSrcweir#define MW_COL_4                        (MW_WIDTH-RSC_SP_DLG_INNERBORDER_RIGHT)
345*cdf0e10cSrcweir#define MW_COL_3                        (MW_COL_4-RSC_CD_PUSHBUTTON_WIDTH)
346*cdf0e10cSrcweir#define MW_COL_2                        (MW_COL_3-RSC_SP_CTRL_DESC_X)
347*cdf0e10cSrcweir#define MW_COL_A                        (DLGS_BOTTOM_OK_X(MW_WIDTH))
348*cdf0e10cSrcweir#define MW_COL_C                        (DLGS_BOTTOM_CANCEL_X(MW_WIDTH))
349*cdf0e10cSrcweir#define MW_COL_E                        (DLGS_BOTTOM_HELP_X(MW_WIDTH))
350*cdf0e10cSrcweir#define MW_ROW_0                        (RSC_SP_DLG_INNERBORDER_TOP)
351*cdf0e10cSrcweir#define MW_ROW_1                        (MW_ROW_0+3*RSC_CD_FIXEDTEXT_HEIGHT+RSC_SP_CTRL_Y)
352*cdf0e10cSrcweir#define MW_ROW_2                        (MW_ROW_1+RSC_CD_FIXEDTEXT_HEIGHT+RSC_SP_CTRL_Y)
353*cdf0e10cSrcweir#define MW_ROW_7                        (MW_HEIGHT-RSC_SP_DLG_INNERBORDER_BOTTOM)
354*cdf0e10cSrcweir#define MW_ROW_6                        (DLGS_BOTTOM_BTN_Y(MW_HEIGHT))
355*cdf0e10cSrcweir#define MW_ROW_5                        (DLGS_BOTTOM_FL_Y(MW_HEIGHT))
356*cdf0e10cSrcweir#define MW_ROW_4                        (MW_ROW_5-RSC_CD_CHECKBOX_HEIGHT-RSC_SP_CTRL_Y)
357*cdf0e10cSrcweir#define MW_ROW_3                        (MW_ROW_4-4*RSC_CD_FIXEDTEXT_HEIGHT+RSC_SP_CTRL_Y)
358*cdf0e10cSrcweir
359*cdf0e10cSrcweir#endif
360*cdf0e10cSrcweir
361