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