xref: /aoo42x/main/svx/source/dialog/docrecovery.hrc (revision cdf0e10c)
1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *
9 * This file is part of OpenOffice.org.
10 *
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
14 *
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
20 *
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org.  If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
25 *
26 ************************************************************************/
27
28#ifndef _SVX_DOCRECOVERY_HRC
29#define _SVX_DOCRECOVERY_HRC
30
31#include <svtools/controldims.hrc>
32
33// general
34
35#define PROGR_HEIGHT                (RSC_CD_PUSHBUTTON_HEIGHT)
36
37// TabDialog
38#define TABDLG_WIDTH                290
39#define TABDLG_HEIGHT               238
40
41// TabPage CrashSave
42
43#define WIN_SAVE_TITLE				1
44#define FT_SAVE_TITLE               2
45#define FL_SAVE_TITLE               3
46#define FT_SAVE_DESCR               4
47#define FT_SAVE_FILELIST            5
48#define LB_SAVE_FILELIST            6
49#define CB_SAVE_LAUNCHAUTO          7
50#define FL_SAVE_BOTTOM              8
51#define BT_SAVE_OK                  9
52
53
54#define SAVE_WIDTH                  290
55#define SAVE_HEIGHT                 238
56#define SAVE_TITLEWINHEIGHT         36
57#define SAVE_DESCRHEIGHT            48
58#define SAVE_COL0					(RSC_SP_DLG_INNERBORDER_LEFT)
59#define SAVE_COL2					(SAVE_WIDTH-RSC_SP_DLG_INNERBORDER_RIGHT)
60#define SAVE_COL1					(SAVE_COL2-RSC_CD_PUSHBUTTON_WIDTH)
61#define SAVE_ROW0					((SAVE_TITLEWINHEIGHT-RSC_CD_FIXEDTEXT_HEIGHT)/2)
62#define SAVE_ROW1					(SAVE_TITLEWINHEIGHT)
63#define SAVE_ROW2					(SAVE_ROW1+RSC_SP_CTRL_Y)
64#define SAVE_ROW3                   (SAVE_ROW2+3*RSC_CD_FIXEDTEXT_HEIGHT+RSC_SP_CTRL_DESC_Y)
65#define SAVE_ROW4					(SAVE_ROW3+RSC_CD_FIXEDTEXT_HEIGHT+RSC_SP_CTRL_DESC_Y)
66#define SAVE_ROW9					(SAVE_HEIGHT-RSC_SP_DLG_INNERBORDER_BOTTOM)
67#define SAVE_ROW8					(SAVE_ROW9-RSC_CD_PUSHBUTTON_HEIGHT)
68#define SAVE_ROW7                   (SAVE_ROW8-RSC_SP_CTRL_GROUP_Y-RSC_CD_FIXEDLINE_HEIGHT)
69#define SAVE_ROW6                   (SAVE_ROW7-RSC_SP_CTRL_GROUP_Y-RSC_CD_CHECKBOX_HEIGHT)
70#define SAVE_ROW5					(SAVE_ROW6-RSC_SP_CTRL_Y)
71#define SAVE_FILELISTHEIGHT			(SAVE_ROW5-SAVE_ROW4)
72#define SAVE_CONTROLWIDTH			(SAVE_COL2-SAVE_COL0)
73
74// Save Progress Dialog
75
76#define FT_SAVEPROGR_HINT			1
77#define FT_SAVEPROGR_PROGR			2
78#define WIN_SAVEPROGR_PROGR			3
79
80#define SAVEPROGR_WIDTH				240
81#define SAVEPROGR_COL0				(RSC_SP_DLG_INNERBORDER_LEFT)
82#define SAVEPROGR_COL1				(SAVEPROGR_WIDTH-RSC_SP_DLG_INNERBORDER_RIGHT)
83#define SAVEPROGR_ROW0				(RSC_SP_DLG_INNERBORDER_TOP)
84#define SAVEPROGR_ROW1				(SAVEPROGR_ROW0+2*RSC_CD_FIXEDTEXT_HEIGHT+RSC_SP_CTRL_Y)
85#define SAVEPROGR_ROW2				(SAVEPROGR_ROW1+RSC_CD_FIXEDTEXT_HEIGHT+RSC_SP_CTRL_DESC_Y)
86#define SAVEPROGR_ROW3				(SAVEPROGR_ROW2+PROGR_HEIGHT)
87#define SAVEPROGR_CONTROLWIDTH		(SAVEPROGR_COL1-SAVEPROGR_COL0)
88#define SAVEPROGR_HEIGHT			(SAVEPROGR_ROW3+RSC_SP_DLG_INNERBORDER_BOTTOM)
89
90// TabPage Recovery
91
92#define WIN_RECOV_TITLE				1
93#define FT_RECOV_TITLE              2
94#define FL_RECOV_TITLE              3
95#define FT_RECOV_DESCR              4
96#define FT_RECOV_PROGR              5
97#define WIN_RECOV_PROGR             6
98#define FT_RECOV_FILELIST           7
99#define LB_RECOV_FILELIST           8
100#define FL_RECOV_BOTTOM             9
101#define BTN_RECOV_PREV              10
102#define BTN_RECOV_NEXT              11
103#define BTN_RECOV_CANCEL            12
104#define STR_HEADERBAR               13
105#define IMG_GREENCHECK              14
106#define IMG_YELLOWCHECK             15
107#define IMG_REDCROSS                16
108#define IMG_GREENCHECK_HC           17
109#define IMG_YELLOWCHECK_HC          18
110#define IMG_REDCROSS_HC             19
111#define STR_SUCCESSRECOV            20
112#define STR_ORIGDOCRECOV            21
113#define STR_RECOVFAILED             22
114#define STR_RECOVINPROGR            23
115#define STR_NOTRECOVYET             24
116#define STR_RECOVERY_NEXT           25
117#define STR_RECOVERY_INPROGRESS     26
118#define STR_RECOVERY_REPORT         27
119#define STR_RECOVERYONLY_FINISH_DESCR 28
120#define STR_RECOVERYONLY_FINISH     29
121
122#define RECOV_WIDTH					SAVE_WIDTH
123#define RECOV_HEIGHT				SAVE_HEIGHT
124#define RECOV_TITLEWINHEIGHT		SAVE_TITLEWINHEIGHT
125#define RECOV_DESCRHEIGHT           6*RSC_CD_FIXEDTEXT_HEIGHT
126#define RECOV_COL1					(RSC_SP_DLG_INNERBORDER_LEFT)
127#define RECOV_COL2					40
128#define RECOV_COL3					(RECOV_WIDTH-RSC_SP_DLG_INNERBORDER_RIGHT)
129#define RECOV_COL_A					(RECOV_COL1)
130#define RECOV_COL_B					(COL_1+RSC_CD_PUSHBUTTON_WIDTH)
131#define RECOV_COL_G					(RECOV_COL3)
132#define RECOV_COL_F					(RECOV_COL_G-RSC_CD_PUSHBUTTON_WIDTH)
133#define RECOV_COL_E					(RECOV_COL_F-RSC_SP_CTRL_X)
134#define RECOV_COL_D					(RECOV_COL_E-RSC_CD_PUSHBUTTON_WIDTH)
135#define RECOV_COL_C					(RECOV_COL_D-RSC_CD_PUSHBUTTON_WIDTH)
136#define RECOV_ROW0					((RECOV_TITLEWINHEIGHT-RSC_CD_FIXEDTEXT_HEIGHT)/2)
137#define RECOV_ROW1					(RECOV_TITLEWINHEIGHT)
138#define RECOV_ROW2					(RECOV_ROW1+RSC_SP_CTRL_Y)
139#define RECOV_ROW3                  (RECOV_ROW2+RECOV_DESCRHEIGHT+RSC_SP_CTRL_DESC_Y)
140#define RECOV_ROW4					(RECOV_ROW3+RSC_CD_FIXEDTEXT_HEIGHT+RSC_SP_CTRL_DESC_Y)
141#define RECOV_ROW5					(RECOV_ROW4+PROGR_HEIGHT+RSC_SP_CTRL_GROUP_Y)
142#define RECOV_ROW6					(RECOV_ROW5+RSC_CD_FIXEDTEXT_HEIGHT+RSC_SP_CTRL_DESC_Y)
143#define RECOV_ROW10					(RECOV_HEIGHT-RSC_SP_DLG_INNERBORDER_BOTTOM)
144#define RECOV_ROW9					(RECOV_ROW10-RSC_CD_PUSHBUTTON_HEIGHT)
145#define RECOV_ROW8                  (RECOV_ROW9-RSC_SP_CTRL_GROUP_Y-RSC_CD_FIXEDLINE_HEIGHT)
146#define RECOV_ROW7                  (RECOV_ROW8-RSC_SP_CTRL_GROUP_Y)
147#define RECOV_FILELISTHEIGHT		(RECOV_ROW7-RECOV_ROW6)
148#define RECOV_CONTROLWIDTH			(SAVE_COL2-SAVE_COL0)
149
150// TabPage Broken Recovery
151
152#define FT_BROKEN_DESCR				1
153#define FT_BROKEN_FILELIST			2
154#define LB_BROKEN_FILELIST			3
155#define FT_BROKEN_SAVEDIR           4
156#define ED_BROKEN_SAVEDIR           5
157#define BTN_BROKEN_SAVEDIR          6
158#define FL_BROKEN_BOTTOM            7
159#define BTN_BROKEN_OK               8
160#define BTN_BROKEN_CANCEL           9
161
162#define BROKEN_WIDTH                210
163#define BROKEN_HEIGHT               160
164#define BROKEN_COL0					(RSC_SP_DLG_INNERBORDER_LEFT)
165#define BROKEN_COL4                 (BROKEN_WIDTH-RSC_SP_DLG_INNERBORDER_RIGHT)
166#define BROKEN_COL3                 (BROKEN_COL4-RSC_CD_PUSHBUTTON_WIDTH)
167#define BROKEN_COL2                 (BROKEN_COL3-RSC_SP_CTRL_GROUP_X)
168#define BROKEN_COL1                 (BROKEN_COL2-RSC_CD_PUSHBUTTON_WIDTH)
169
170#define BROKEN_ROW0					(RSC_SP_DLG_INNERBORDER_TOP)
171#define BROKEN_ROW1                 (BROKEN_ROW0+5*RSC_CD_FIXEDTEXT_HEIGHT+RSC_SP_CTRL_GROUP_Y)
172#define BROKEN_ROW2                 (BROKEN_ROW1+RSC_CD_FIXEDTEXT_HEIGHT+RSC_SP_CTRL_GROUP_Y)
173#define BROKEN_ROW8                 (BROKEN_HEIGHT-RSC_SP_DLG_INNERBORDER_BOTTOM)
174#define BROKEN_ROW7					(BROKEN_ROW8-RSC_CD_PUSHBUTTON_HEIGHT)
175#define BROKEN_ROW6                 (BROKEN_ROW7-RSC_SP_FLGR_INNERBORDER_BOTTOM-RSC_CD_FIXEDLINE_HEIGHT)
176#define BROKEN_ROW5                 (BROKEN_ROW6-RSC_SP_FLGR_INNERBORDER_TOP-RSC_CD_PUSHBUTTON_HEIGHT)
177#define BROKEN_ROW4                 (BROKEN_ROW5-RSC_SP_CTRL_GROUP_Y-RSC_CD_FIXEDTEXT_HEIGHT)
178#define BROKEN_ROW3                 (BROKEN_ROW4-RSC_SP_CTRL_GROUP_Y)
179
180#define BROKEN_CONTROLWIDTH         (BROKEN_COL4-BROKEN_COL0)
181
182// TabPage Error Report Welcome
183// most defines equal to TabPage Recovery
184
185#define RECOV_DESCR_HEIGHT			(RECOV_ROW7-RECOV_ROW2)
186
187// TabPage Error Report Send
188// borrow basic metrics from TabPage Recovery
189
190#define FT_ERRSEND_DOCTYPE			20
191#define ED_ERRSEND_DOCTYPE			21
192#define FT_ERRSEND_USING			22
193#define ML_ERRSEND_USING			23
194#define BTN_ERRSEND_SHOWREP			24
195#define BTN_ERRSEND_OPT				25
196#define CB_ERRSEND_CONTACT			26
197#define FT_ERRSEND_EMAILADDR		27
198#define ED_ERRSEND_EMAILADDR		28
199
200#define ERRSEND_WIDTH				(RECOV_WIDTH)
201#define ERRSEND_HEIGHT				(RECOV_HEIGHT)
202#define ERRSEND_TITLEWINHEIGHT      SAVE_TITLEWINHEIGHT
203
204#define ERRSEND_COL0				(RSC_SP_DLG_INNERBORDER_LEFT)
205#define ERRSEND_COL1				(ERRSEND_COL0+RSC_SP_CHK_TEXTINDENT)
206
207#define ERRSEND_COL4                (ERRSEND_WIDTH-RSC_SP_DLG_INNERBORDER_RIGHT)
208#define ERRSEND_COL3				(ERRSEND_COL4-RSC_CD_PUSHBUTTON_WIDTH)
209#define ERRSEND_COL2                (ERRSEND_COL3-RSC_SP_CTRL_X)
210
211#define ERRSEND_COL6                (ERRSEND_COL3-RSC_SP_CTRL_GROUP_X-RSC_CD_PUSHBUTTON_WIDTH)
212#define ERRSEND_COL5                (ERRSEND_COL6-RSC_SP_CTRL_X-RSC_CD_PUSHBUTTON_WIDTH)
213
214#define ERRSEND_CONTROLWIDTH1       (ERRSEND_COL4-ERRSEND_COL0)
215#define ERRSEND_CONTROLWIDTH2       (ERRSEND_COL2-ERRSEND_COL0)
216#define ERRSEND_CONTROLWIDTH3       (ERRSEND_COL2-ERRSEND_COL1)
217
218#define ERRSEND_ROW0                ((ERRSEND_TITLEWINHEIGHT-RSC_CD_FIXEDTEXT_HEIGHT)/2)
219#define ERRSEND_ROW1                (ERRSEND_TITLEWINHEIGHT)
220#define ERRSEND_ROW2                (ERRSEND_ROW1+RSC_SP_CTRL_Y)
221#define ERRSEND_ROW3                (ERRSEND_ROW2+3*RSC_CD_FIXEDTEXT_HEIGHT)
222#define ERRSEND_ROW4                (ERRSEND_ROW3+RSC_SP_CTRL_GROUP_Y)
223#define ERRSEND_ROW5                (ERRSEND_ROW4+2*RSC_CD_FIXEDTEXT_HEIGHT+RSC_SP_CTRL_GROUP_Y)
224#define ERRSEND_ROW6				(ERRSEND_ROW5+RSC_CD_TEXTBOX_HEIGHT)
225#define ERRSEND_ROW7				(ERRSEND_ROW6+RSC_SP_CTRL_Y)
226#define ERRSEND_ROW8                (ERRSEND_ROW7+RSC_CD_FIXEDTEXT_HEIGHT+RSC_SP_CTRL_GROUP_Y)
227#define ERRSEND_ROW9                (ERRSEND_ROW8+RSC_CD_PUSHBUTTON_HEIGHT)
228#define ERRSEND_ROW10				(ERRSEND_ROW9+RSC_SP_CTRL_GROUP_Y)
229#define ERRSEND_ROW11               (ERRSEND_ROW10+RSC_CD_PUSHBUTTON_HEIGHT)
230
231#define ERRSEND_ROW16               (ERRSEND_HEIGHT-RSC_SP_DLG_INNERBORDER_RIGHT-RSC_CD_PUSHBUTTON_HEIGHT)
232#define ERRSEND_ROW15               (ERRSEND_ROW16-RSC_SP_CTRL_GROUP_Y-RSC_CD_FIXEDLINE_HEIGHT)
233#define ERRSEND_ROW14               (ERRSEND_ROW15-RSC_SP_CTRL_GROUP_Y-RSC_CD_TEXTBOX_HEIGHT)
234#define ERRSEND_ROW13               (ERRSEND_ROW14-RSC_SP_CTRL_GROUP_Y-RSC_CD_FIXEDTEXT_HEIGHT)
235#define ERRSEND_ROW12               (ERRSEND_ROW13-RSC_SP_CTRL_GROUP_Y-RSC_CD_CHECKBOX_HEIGHT)
236
237// Error Report Options Dialog
238
239#define ERROPT_WIDTH    220
240#define ERROPT_HEIGHT   180
241
242#define FL_ERROPT_PROXY         1
243#define BTN_ERROPT_SYSTEM		2
244#define BTN_ERROPT_DIRECT		3
245#define BTN_ERROPT_MANUAL		4
246#define FT_ERROPT_PROXYSERVER	5
247#define ED_ERROPT_PROXYSERVER	6
248#define FT_ERROPT_PROXYPORT		7
249#define ED_ERROPT_PROXYPORT		8
250#define FT_ERROPT_DESCRIPTION	9
251#define FL_ERROPT_BUTTONS       10
252#define BTN_ERROPT_OK           11
253#define BTN_ERROPT_CANCEL       12
254
255#define ERROPT_COLA				(RSC_SP_DLG_INNERBORDER_LEFT)
256#define ERROPT_COLB             (ERROPT_COLA + RSC_SP_CTRL_X)
257#define ERROPT_COLC             (ERROPT_COLB + RSC_SP_CHK_TEXTINDENT)
258
259#define ERROPT_COLF             (ERROPT_WIDTH - RSC_SP_DLG_INNERBORDER_RIGHT)
260#define ERROPT_COLE             (ERROPT_COLF - RSC_CD_PUSHBUTTON_WIDTH)
261#define ERROPT_COLD             (ERROPT_COLE - RSC_SP_CTRL_DESC_X - RSC_CD_PUSHBUTTON_WIDTH)
262
263#define ERROPT_ROW0             (RSC_SP_DLG_INNERBORDER_TOP)
264#define ERROPT_ROW1             (ERROPT_ROW0 + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_CTRL_Y)
265#define ERROPT_ROW2				(ERROPT_ROW1 + RSC_CD_RADIOBUTTON_HEIGHT + RSC_SP_CTRL_GROUP_Y)
266#define ERROPT_ROW3				(ERROPT_ROW2 + RSC_CD_RADIOBUTTON_HEIGHT + RSC_SP_CTRL_GROUP_Y)
267#define ERROPT_ROW4             (ERROPT_ROW3 + RSC_CD_RADIOBUTTON_HEIGHT + RSC_SP_CTRL_GROUP_Y)
268#define ERROPT_ROW5				(ERROPT_ROW4 + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y)
269#define ERROPT_ROW6				(ERROPT_ROW5 + RSC_CD_TEXTBOX_HEIGHT + RSC_SP_CTRL_Y)
270
271#define ERROPT_ROW9             (ERROPT_HEIGHT - RSC_SP_DLG_INNERBORDER_BOTTOM - RSC_CD_PUSHBUTTON_HEIGHT)
272#define ERROPT_ROW8             (ERROPT_ROW9 - RSC_SP_CTRL_DESC_Y - RSC_CD_FIXEDLINE_HEIGHT)
273#define ERROPT_ROW7             (ERROPT_ROW8 - RSC_SP_CTRL_DESC_Y)
274
275#define ERROPT_SERVER_WIDTH     150
276#define ERROPT_PORT_WIDTH       (ERROPT_COLF-ERROPT_COLC-RSC_SP_CTRL_GROUP_X-ERROPT_SERVER_WIDTH)
277
278// Error Report Preview Dialog
279
280#define ERRPREVIEW_WIDTH    300
281#define ERRPREVIEW_HEIGHT   200
282
283#define ML_ERRPREVIEW_CONTENT	1
284#define BTN_ERRPREVIEW_OK		2
285#define ERRPREVIEW_COLA			(RSC_SP_DLG_INNERBORDER_LEFT)
286#define ERRPREVIEW_COLB			(ERRPREVIEW_WIDTH - RSC_SP_DLG_INNERBORDER_RIGHT - RSC_CD_PUSHBUTTON_WIDTH)
287#define ERRPREVIEW_COLC			(ERRPREVIEW_WIDTH - RSC_SP_DLG_INNERBORDER_RIGHT)
288#define ERRPREVIEW_ROW0			(RSC_SP_DLG_INNERBORDER_TOP)
289#define ERRPREVIEW_ROW1			(ERRPREVIEW_ROW2 - RSC_SP_CTRL_Y)
290#define ERRPREVIEW_ROW2			(ERRPREVIEW_HEIGHT - RSC_SP_DLG_INNERBORDER_BOTTOM - RSC_CD_PUSHBUTTON_HEIGHT)
291
292#endif
293