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