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