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