blob: c8d4cae5c0c0ca03975c0ad53bb6a7c3e0f52dd3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef _DIALOGS_HRC
#define _DIALOGS_HRC
#include <svtools/controldims.hrc>
#include <xmlsecurity/global.hrc>
#define STD_MASKCOLOR Color{Red=0xffff;Green=0x0000;Blue=0xffff;}
#define FL_BOTTOM_SEP 50
#define BTN_OK 51
#define BTN_HELP 53
#define LB_SIGNATURES 54
#define BTN_VIEWCERT 55
#define STR_HEADERBAR 56
#define BTN_RESET 57
#define STR_VALID_SIGNATURE 58
#define STR_NO_INFO_TO_VERIFY 59
#define STR_INVALID_SIGNATURE 60
// --------- general metrics ---------
#define DLGS_WIDTH 287
#define DLGS_HEIGHT 195
// --------- ... for tab dialogs -----
#define TP_WIDTH 260
#define TP_HEIGHT 185
#define RIDDER_HEIGHT (RSC_CD_PUSHBUTTON_HEIGHT)
#define TD_SP_INNERBORDER_LEFT 3
#define TD_SP_INNERBORDER_RIGHT 3
#define TD_SP_INNERBORDER_TOP 3
#define TD_SP_INNERBORDER_BOTTOM 3
#define TD_WIDTH (TP_WIDTH+RSC_SP_DLG_INNERBORDER_LEFT+RSC_SP_DLG_INNERBORDER_RIGHT)
#define TD_HEIGHT (TP_HEIGHT+TD_SP_INNERBORDER_TOP+2*TD_SP_INNERBORDER_BOTTOM+RSC_CD_PUSHBUTTON_HEIGHT+RIDDER_HEIGHT)
#define SEP_FL_SPACE_Y 6
#define SEP_FL_ADJ_Y(val) (val-3)
#define DLGS_BOTTOM_BTN_L(dlgh) (dlgh-RSC_SP_DLG_INNERBORDER_BOTTOM)
#define DLGS_BOTTOM_BTN_Y(dlgh) (DLGS_BOTTOM_BTN_L(dlgh)-RSC_CD_PUSHBUTTON_HEIGHT)
#define DLGS_BOTTOM_FL_Y(dlgh) (DLGS_BOTTOM_BTN_Y(dlgh)-SEP_FL_SPACE_Y-5)
#define DLGS_BOTTOM_LAST_CTRL_L(dlgh) (DLGS_BOTTOM_BTN_Y(dlgh)-2*SEP_FL_SPACE_Y-3)
#define DLGS_BOTTOM_HELP_X(dlgw) (dlgw-RSC_SP_DLG_INNERBORDER_RIGHT-RSC_CD_PUSHBUTTON_WIDTH)
#define DLGS_BOTTOM_CANCEL_X(dlgw) (DLGS_BOTTOM_HELP_X(dlgw)-RSC_SP_CTRL_X-RSC_CD_PUSHBUTTON_WIDTH)
#define DLGS_BOTTOM_OK_X(dlgw) (DLGS_BOTTOM_CANCEL_X(dlgw)-RSC_SP_CTRL_DESC_X-RSC_CD_PUSHBUTTON_WIDTH)
// --------- tab dialog Certificate viewer ---------
#define CS_COL_0 RSC_SP_DLG_INNERBORDER_LEFT
#define CS_COL_2 (DLGS_WIDTH-RSC_SP_DLG_INNERBORDER_RIGHT)
#define CS_LB_WIDTH (CS_COL_2-CS_COL_0)
#define CV_COL_0 TD_SP_INNERBORDER_LEFT
#define CV_COL_1 (TP_WIDTH-RSC_SP_TBPG_INNERBORDER_RIGHT)
#define CV_ROW_0 RSC_SP_TBPG_INNERBORDER_TOP
#define CV_ROW_3 (TP_HEIGHT-RSC_SP_TBPG_INNERBORDER_BOTTOM)
#define CV_CONT_WIDTH (CV_COL_1-CV_COL_0)
#define CV_CONT_HEIGHT (CV_ROW_3-CV_ROW_0)
#define CV_ROW_1 (CV_ROW_0+2*CV_CONT_HEIGHT/3)
#define CV_ROW_2 (CV_ROW_1+RSC_SP_CTRL_GROUP_Y)
#define CV_COL_D (TD_WIDTH-TD_SP_INNERBORDER_RIGHT)
#define CV_COL_C (CV_COL_D-RSC_CD_PUSHBUTTON_WIDTH)
#define CV_COL_B (CV_COL_C-RSC_SP_CTRL_X)
#define CV_COL_A (CV_COL_B-RSC_CD_PUSHBUTTON_WIDTH)
#define CV_ROW_B (TD_HEIGHT-TD_SP_INNERBORDER_BOTTOM)
#define CV_ROW_A (CV_ROW_B-RSC_CD_PUSHBUTTON_HEIGHT)
// --------- tab page Certificate viewer - General ---------
#define WIN_FRAME 2
#define IMG_CERT 3
#define FI_CERTINFO 4
#define FL_SEP1 5
#define FI_HINTNOTTRUST 6
#define FL_SEP2 7
#define FI_ISSTOLABEL 8
#define FI_ISSTO 9
#define FI_ISSBYLABEL 10
#define FI_ISSBY 11
#define FI_VALIDDATE 12
#define IMG_KEY 13
#define FI_CORRPRIVKEY 14
#define STR_CERTIFICATE_NOT_VALIDATED 15
#define IMG_STATE_NOT_VALIDATED 16
#define IMG1_WIDTH 33
#define IMG1_HEIGHT 22
#define IMG2_WIDTH 20
#define IMG2_HEIGHT 20
#define CW_COL_0 (CV_COL_0+RSC_SP_GRP_INNERBORDER_LEFT)
#define CW_COL_1 (CW_COL_0+RSC_SP_FLGR_SPACE_X)
#define CW_COL_1a (CW_COL_0+IMG2_WIDTH+1)
#define CW_COL_2 (CW_COL_0+IMG1_WIDTH)
#define CW_COL_3 (CW_COL_2+RSC_SP_CTRL_GROUP_X)
#define CW_COL_4 (CW_COL_1+40)
#define CW_COL_5 (CV_CONT_WIDTH-RSC_SP_GRP_INNERBORDER_RIGHT)
#define CW_COL_5a (CW_COL_5-RSC_SP_GRP_INNERBORDER_RIGHT)
#define CW_ROW_0 (CV_ROW_0+RSC_SP_GRP_INNERBORDER_TOP)
#define CW_ROW_1 (CW_ROW_0+RSC_SP_GRP_INNERBORDER_TOP)
#define CW_ROW_2 (CW_ROW_0+IMG1_HEIGHT)
#define CW_ROW_3 (CW_ROW_2+3)
#define CW_ROW_4 (CW_ROW_3+RSC_SP_CTRL_Y+RSC_CD_FIXEDLINE_HEIGHT)
#define CW_ROW_4a (CW_ROW_4+35)
#define CW_ROW_5 (CW_ROW_4a+3)
#define CW_ROW_6 (CW_ROW_5+RSC_SP_CTRL_Y+RSC_CD_FIXEDLINE_HEIGHT)
#define CW_ROW_7 (CW_ROW_6+RSC_SP_CTRL_Y+RSC_CD_FIXEDTEXT_HEIGHT)
#define CW_ROW_8 (CW_ROW_7+RSC_SP_CTRL_Y+RSC_CD_FIXEDTEXT_HEIGHT)
#define CW_ROW_9 (CW_ROW_8+RSC_SP_CTRL_Y+RSC_CD_FIXEDTEXT_HEIGHT)
#define CW_ROW_10 (CW_ROW_9+2)
// --------- tab page Certificate viewer - Details ---------
#define LB_ELEMENTS 1
#define ML_ELEMENT 2
#define STR_VERSION 1
#define STR_SERIALNUM 2
#define STR_SIGALGORITHM 3
#define STR_ISSUER 4
#define STR_ISSUER_ID 5
#define STR_VALIDFROM 6
#define STR_VALIDTO 7
#define STR_SUBJECT 8
#define STR_SUBJECT_ID 9
#define STR_SUBJECT_PUBKEY_ALGO 10
#define STR_SUBJECT_PUBKEY_VAL 11
#define STR_SIGNATURE_ALGO 12
#define STR_THUMBPRINT_SHA1 13
#define STR_THUMBPRINT_MD5 14
// --------- tab page Certificate viewer - Certification Path ---------
#define FT_CERTPATH 1
#define FT_CERTSTATUS 2
#define ML_CERTSTATUS 3
#define IMG_CERT_SMALL 4
#define IMG_CERT_NOTVALIDATED_SMALL 6
#define STR_PATH_CERT_OK 8
#define STR_PATH_CERT_NOT_VALIDATED 9
#define CVP_ROW_0 RSC_SP_TBPG_INNERBORDER_TOP
#define CVP_ROW_1 (CVP_ROW_0+RSC_CD_FIXEDTEXT_HEIGHT+RSC_SP_CTRL_DESC_Y)
#define REST_HEIGHT (TP_HEIGHT-CVP_ROW_1-2*RSC_SP_GRP_SPACE_Y-RSC_CD_FIXEDTEXT_HEIGHT-RSC_CD_PUSHBUTTON_HEIGHT)
#define CVP_ROW_2 (CVP_ROW_1+REST_HEIGHT/3*2+RSC_SP_CTRL_DESC_Y)
#define CVP_ROW_3 (CVP_ROW_2+RSC_CD_PUSHBUTTON_HEIGHT)
#define CVP_ROW_4 (CVP_ROW_3+RSC_CD_FIXEDTEXT_HEIGHT+RSC_SP_CTRL_DESC_Y)
// --------- tab dialog macro security ---------
#define MS_COL_A (TD_WIDTH-RSC_SP_DLG_INNERBORDER_LEFT)
#define MS_COL_B (MS_COL_A-RSC_CD_PUSHBUTTON_WIDTH)
#define MS_COL_C (MS_COL_B-RSC_SP_CTRL_X)
#define MS_COL_D (MS_COL_C-RSC_CD_PUSHBUTTON_WIDTH)
#define MS_COL_E (MS_COL_D-RSC_SP_CTRL_X)
#define MS_COL_F (MS_COL_E-RSC_CD_PUSHBUTTON_WIDTH)
#define MS_COL_G (MS_COL_F-RSC_SP_CTRL_X)
#define MS_COL_H (MS_COL_G-RSC_CD_PUSHBUTTON_WIDTH)
// --------- signed macro warning ---------
#define FI_DOCNAME 1
#define FI_DESCR1A 2
#define FI_SIGNS 3
#define PB_VIEWSIGNS 4
#define FI_DESCR2 5
#define CB_ALWAYSTRUST 6
#define PB_ENABLE 7
#define PB_DISABLE 8
#define FI_DESCR1B 9
#define MW_WIDTH DLGS_WIDTH
#define MW_HEIGHT DLGS_HEIGHT
#define MW_SYMBOL_WIDTH (20)
#define MW_COL_0 (RSC_SP_DLG_INNERBORDER_LEFT)
#define MW_COL_1 (MW_COL_0+MW_SYMBOL_WIDTH)
#define MW_COL_4 (MW_WIDTH-RSC_SP_DLG_INNERBORDER_RIGHT)
#define MW_COL_3 (MW_COL_4-RSC_CD_PUSHBUTTON_WIDTH)
#define MW_COL_2 (MW_COL_3-RSC_SP_CTRL_DESC_X)
#define MW_COL_A (DLGS_BOTTOM_OK_X(MW_WIDTH))
#define MW_COL_C (DLGS_BOTTOM_CANCEL_X(MW_WIDTH))
#define MW_COL_E (DLGS_BOTTOM_HELP_X(MW_WIDTH))
#define MW_ROW_0 (RSC_SP_DLG_INNERBORDER_TOP)
#define MW_ROW_1 (MW_ROW_0+3*RSC_CD_FIXEDTEXT_HEIGHT+RSC_SP_CTRL_Y)
#define MW_ROW_2 (MW_ROW_1+RSC_CD_FIXEDTEXT_HEIGHT+RSC_SP_CTRL_Y)
#define MW_ROW_7 (MW_HEIGHT-RSC_SP_DLG_INNERBORDER_BOTTOM)
#define MW_ROW_6 (DLGS_BOTTOM_BTN_Y(MW_HEIGHT))
#define MW_ROW_5 (DLGS_BOTTOM_FL_Y(MW_HEIGHT))
#define MW_ROW_4 (MW_ROW_5-RSC_CD_CHECKBOX_HEIGHT-RSC_SP_CTRL_Y)
#define MW_ROW_3 (MW_ROW_4-4*RSC_CD_FIXEDTEXT_HEIGHT+RSC_SP_CTRL_Y)
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|