update credits
[LibreOffice.git] / dbaccess / source / ext / macromigration / macromigration.src
blobc081d9d97a5411c5a6d0ab9cebed393f536c2d30
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 #include "dbmm_global.hrc"
21 #include "macromigration.hrc"
23 // -----------------------------------------------------------------------------
24 ModalDialog DLG_MACRO_MIGRATION
26     HelpID = "dbaccess:ModalDialog:DLG_MACRO_MIGRATION";
27     OutputSize = TRUE ;
28     Moveable = TRUE;
29     Closeable = TRUE ;
30     Hide = TRUE;
32     Text[ en-US ]  = "Database Document Macro Migration" ;
34     String STR_STATE_CLOSE_SUB_DOCS
35     {
36         Text [ en-US ] = "Prepare";
37     };
39     String STR_STATE_BACKUP_DBDOC
40     {
41         Text [ en-US ] = "Backup Document";
42     };
44     String STR_STATE_MIGRATE
45     {
46         Text [ en-US ] = "Migrate";
47     };
49     String STR_STATE_SUMMARY
50     {
51         Text [ en-US ] = "Summary";
52     };
55 //========================================================================
56 //= PreparationPage
57 //========================================================================
59 TabPage TP_PREPARE
61     HelpID = "dbaccess:TabPage:TP_PREPARE";
62     Pos = MAP_APPFONT( 40, 130 );
63     Size = MAP_APPFONT( TAB_PAGE_WIDTH, TAB_PAGE_HEIGHT );
65     Hide = TRUE;
67     FixedText FT_HEADER
68     {
69         Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, TAB_PAGE_CONTENT_MARGIN );
70         Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN, FIXED_TEXT_HEIGHT );
72         Text [ en-US ] = "Welcome to the Database Macro Migration Wizard";
73     };
75     FixedText FT_INTRODUCTION
76     {
77         Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, CONTENT_POS_X );
78         Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN,
79                             TAB_PAGE_HEIGHT - CONTENT_POS_X - TAB_PAGE_CONTENT_MARGIN - ( 2 * FIXED_TEXT_HEIGHT - SPACING_UNRELATED ) );
80         WordBreak = TRUE;
82         Text [ en-US ] = "This wizard will guide you through the task of migrating your macros.\n\n"
84             "After you finished it, all macros which were formerly embedded into the forms and reports of "
85             "the current database document will have been moved to the document itself. In this course, "
86             "libraries will be renamed as needed.\n\n"
88             "If your forms and reports contain references to those macros, they will be adjusted, where "
89             "possible.\n\n"
91             "Before the migration can start, all forms, reports, queries and tables belonging to the document must be closed. "
92             "Press 'Next' to do so.";
93     };
95     FixedText FT_CLOSE_DOC_ERROR
96     {
97         Pos = MAP_APPFONT ( TAB_PAGE_CONTENT_MARGIN,
98                             TAB_PAGE_HEIGHT - TAB_PAGE_CONTENT_MARGIN - ( 2 * FIXED_TEXT_HEIGHT - SPACING_UNRELATED ) );
99         Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN,
100                             2 * FIXED_TEXT_HEIGHT - SPACING_UNRELATED );
101         Text [ en-US ] = "Not all objects could be closed. Please close them manually, and re-start the wizard.";
102         hide = TRUE;
103     };
106 //========================================================================
107 //= SaveDBDocPage
108 //========================================================================
110 TabPage TP_SAVE_DBDOC_AS
112     HelpID = "dbaccess:TabPage:TP_SAVE_DBDOC_AS";
113     Pos = MAP_APPFONT( 40, 130 );
114     Size = MAP_APPFONT( TAB_PAGE_WIDTH, TAB_PAGE_HEIGHT );
116     Hide = TRUE;
118     FixedText FT_HEADER
119     {
120         Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, TAB_PAGE_CONTENT_MARGIN );
121         Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN, FIXED_TEXT_HEIGHT );
123         Text [ en-US ] = "Backup your Document";
124     };
126     FixedText FT_EXPLANATION
127     {
128         Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, CONTENT_POS_X );
129         Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN, 5 * FIXED_TEXT_HEIGHT );
131         WordBreak = TRUE;
133         Text [ en-US ] = "To allow you to go back to the state before the migration, the database "
134             "document will be backed up to a location of your choice. Every change done by the wizard will "
135             "be made to the original document, the backup will stay untouched.";
136     };
138     FixedText FT_SAVE_AS_LABEL
139     {
140         Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, CONTENT_POS_X + 5 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED );
141         Size = MAP_APPFONT( 60, INPUT_HEIGHT );
143         VCenter = TRUE;
145         Text [ en-US ] = "Save To:";
146     };
148     ComboBox ED_SAVE_AS_LOCATION
149     {
150         HelpID = "dbaccess:ComboBox:TP_SAVE_DBDOC_AS:ED_SAVE_AS_LOCATION";
151         Pos = MAP_APPFONT(  TAB_PAGE_CONTENT_MARGIN + 60 + SPACING_RELATED,
152                             CONTENT_POS_X + 5 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED );
153         Size = MAP_APPFONT( TAB_PAGE_WIDTH - ( TAB_PAGE_CONTENT_MARGIN + 60 + SPACING_RELATED ) - TAB_PAGE_CONTENT_MARGIN,
154                             INPUT_HEIGHT );
156         Border = TRUE;
157         DropDown = TRUE ;
158     };
160     PushButton PB_BROWSE_SAVE_AS_LOCATION
161     {
162         HelpID = "dbaccess:PushButton:TP_SAVE_DBDOC_AS:PB_BROWSE_SAVE_AS_LOCATION";
163         Pos = MAP_APPFONT(  TAB_PAGE_WIDTH - BUTTON_WIDTH - TAB_PAGE_CONTENT_MARGIN,
164                             CONTENT_POS_X + 5 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED + INPUT_HEIGHT + SPACING_RELATED );
165         Size = MAP_APPFONT( BUTTON_WIDTH, BUTTON_HEIGHT );
167         Text [ en-US ] = "Browse ...";
168     };
170     FixedText FT_START_MIGRATION
171     {
172         Pos = MAP_APPFONT(  TAB_PAGE_CONTENT_MARGIN,
173                             TAB_PAGE_HEIGHT - TAB_PAGE_CONTENT_MARGIN - 3 * FIXED_TEXT_HEIGHT );
174         Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN,
175                             3 * FIXED_TEXT_HEIGHT );
177         WordBreak = TRUE;
179         Text [ en-US ] = "Press 'Next' to save a copy of your document, and to begin the migration.";
180     };
183 //========================================================================
184 //= ProgressPage
185 //========================================================================
187 TabPage TP_MIGRATE
189     HelpID = "dbaccess:TabPage:TP_MIGRATE";
190     Pos = MAP_APPFONT( 40, 130 );
191     Size = MAP_APPFONT( TAB_PAGE_WIDTH, TAB_PAGE_HEIGHT );
193     Hide = TRUE;
195     FixedText FT_HEADER
196     {
197         Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, TAB_PAGE_CONTENT_MARGIN );
198         Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN, FIXED_TEXT_HEIGHT );
200         Text [ en-US ] = "Migration Progress";
201     };
203     FixedText FT_OBJECT_COUNT
204     {
205         Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, CONTENT_POS_X );
206         Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN, 2 * FIXED_TEXT_HEIGHT );
208         Text [ en-US ] = "The database document contains $forms$ form(s) and $reports$ report(s), which are currently being processed:";
210         WordBreak = TRUE;
211     };
213     FixedText FT_CURRENT_OBJECT_LABEL
214     {
215         Pos = MAP_APPFONT(  TAB_PAGE_CONTENT_MARGIN,
216                             CONTENT_POS_X + 2 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED );
217         Size = MAP_APPFONT( 60, FIXED_TEXT_HEIGHT );
219         Text [ en-US ] = "Current object:";
220     };
222     FixedText FT_CURRENT_OBJECT
223     {
224         Pos = MAP_APPFONT(  TAB_PAGE_CONTENT_MARGIN + 60,
225                             CONTENT_POS_X + 2 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED );
226         Size = MAP_APPFONT( TAB_PAGE_WIDTH - ( TAB_PAGE_CONTENT_MARGIN + 60 ), FIXED_TEXT_HEIGHT );
227     };
229     FixedText FT_CURRENT_PROGRESS_LABEL
230     {
231         Pos = MAP_APPFONT(  TAB_PAGE_CONTENT_MARGIN,
232                             CONTENT_POS_X + 2 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_UNRELATED );
233         Size = MAP_APPFONT( 60, FIXED_TEXT_HEIGHT );
235         Text [ en-US ] = "Current progress:";
236     };
238     FixedText FT_CURRENT_PROGRESS
239     {
240         Pos = MAP_APPFONT(  TAB_PAGE_CONTENT_MARGIN + 60,
241                             CONTENT_POS_X + 2 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_UNRELATED );
242         Size = MAP_APPFONT( TAB_PAGE_WIDTH - ( TAB_PAGE_CONTENT_MARGIN + 60 ), FIXED_TEXT_HEIGHT );
243     };
245     Window WND_CURRENT_PROGRESS
246     {
247         Pos = MAP_APPFONT(  TAB_PAGE_CONTENT_MARGIN + 60,
248                             CONTENT_POS_X + 2 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_RELATED );
249         Size = MAP_APPFONT( TAB_PAGE_WIDTH - ( TAB_PAGE_CONTENT_MARGIN + 60 ) - TAB_PAGE_CONTENT_MARGIN, PROGRESS_HEIGHT );
251         Border = TRUE;
252         BorderStyle = WINDOW_BORDER_MONO;
253     };
255     FixedText FT_ALL_PROGRESS_LABEL
256     {
257         Pos = MAP_APPFONT(  TAB_PAGE_CONTENT_MARGIN,
258                             CONTENT_POS_X + 2 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_RELATED + PROGRESS_HEIGHT + SPACING_UNRELATED );
259         Size = MAP_APPFONT( 60, FIXED_TEXT_HEIGHT );
261         VCenter = TRUE;
263         Text [ en-US ] = "Overall progress:";
264     };
266     FixedText FT_OBJECT_COUNT_PROGRESS
267     {
268         Pos = MAP_APPFONT(  TAB_PAGE_CONTENT_MARGIN + 60,
269                             CONTENT_POS_X + 2 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_RELATED + PROGRESS_HEIGHT + SPACING_UNRELATED );
270         Size = MAP_APPFONT( TAB_PAGE_WIDTH - ( TAB_PAGE_CONTENT_MARGIN + 60 ) - TAB_PAGE_CONTENT_MARGIN, FIXED_TEXT_HEIGHT );
272         Text [ en-US ] = "document $current$ of $overall$";
273     };
275     Window WND_ALL_PROGRESS
276     {
277         Pos = MAP_APPFONT(  TAB_PAGE_CONTENT_MARGIN + 60,
278                             CONTENT_POS_X + 2 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_RELATED + PROGRESS_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_RELATED );
279         Size = MAP_APPFONT( TAB_PAGE_WIDTH - ( TAB_PAGE_CONTENT_MARGIN + 60 ) - TAB_PAGE_CONTENT_MARGIN, PROGRESS_HEIGHT );
281         Border = TRUE;
282         BorderStyle = WINDOW_BORDER_MONO;
283     };
285     FixedText FT_MIGRATION_DONE
286     {
287         Pos = MAP_APPFONT(  TAB_PAGE_CONTENT_MARGIN, TAB_PAGE_HEIGHT - TAB_PAGE_CONTENT_MARGIN - 2 * FIXED_TEXT_HEIGHT );
288         Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN, 2 * FIXED_TEXT_HEIGHT );
290         WordBreak = TRUE;
291         Hide = TRUE;
293         Text [ en-US ] = "All forms and reports have been successfully processed. Press 'Next' to show a detailed summary.";
294     };
297 //========================================================================
298 //= ResultPage
299 //========================================================================
301 TabPage TP_SUMMARY
303     HelpID = "dbaccess:TabPage:TP_SUMMARY";
304     Pos = MAP_APPFONT( 40, 130 );
305     Size = MAP_APPFONT( TAB_PAGE_WIDTH, TAB_PAGE_HEIGHT );
307     Hide = TRUE;
309     FixedText FT_HEADER
310     {
311         Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, TAB_PAGE_CONTENT_MARGIN );
312         Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN, FIXED_TEXT_HEIGHT );
314         Text [ en-US ] = "Summary";
315     };
317     FixedText FT_CHANGES_LABEL
318     {
319         Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, CONTENT_POS_X );
320         Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN, FIXED_TEXT_HEIGHT );
322         WordBreak = TRUE;
323     };
325     MultiLineEdit ED_CHANGES
326     {
327         HelpID = "dbaccess:MultiLineEdit:TP_SUMMARY:ED_CHANGES";
328         Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, CONTENT_POS_X + FIXED_TEXT_HEIGHT + SPACING_RELATED );
329         Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN,
330                             TAB_PAGE_HEIGHT - ( CONTENT_POS_X + FIXED_TEXT_HEIGHT + SPACING_RELATED ) - TAB_PAGE_CONTENT_MARGIN );
332         ReadOnly = TRUE;
333         AutoVScroll = TRUE;
334         Border = TRUE;
335         BorderStyle = WINDOW_BORDER_MONO;
336     };
338     String STR_SUCCESSFUL
339     {
340         Text [ en-US ] = "The migration was successful. Below is a log of the actions which have been taken to your document.";
341     };
343     String STR_UNSUCCESSFUL
344     {
345         Text [ en-US ] = "The migration was not successful. Examine the migration log below for details.";
346     };
349 String STR_FORM
351     Text [ en-US ] = "Form '$name$'";
352     Text [ x-comment ] = "This refers to a form document inside a database document.";
355 String STR_REPORT
357     Text [ en-US ] = "Report '$name$'";
358     Text [ x-comment ] = "This refers to a report document inside a database document.";
361 String STR_OVERALL_PROGRESS
363     Text [ en-US ] = "document $current$ of $overall$";
366 String STR_DATABASE_DOCUMENT
368     Text[ en-US ] = "Database Document";
371 String STR_SAVED_COPY_TO
373     Text[ en-US ] = "saved copy to $location$";
376 String STR_MOVED_LIBRARY
378     Text[ en-US ] = "migrated $type$ library '$old$' to '$new$'";
381 String STR_LIBRARY_TYPE_AND_NAME
383     Text [ en-US ] = "$type$ library '$library$'";
386 String STR_MIGRATING_LIBS
388     Text [ en-US ] = "migrating libraries ...";
391 String STR_OOO_BASIC
393     Text[ en-US ] = "%PRODUCTNAME Basic";
396 String STR_JAVA_SCRIPT
398     Text[ en-US ] = "JavaScript";
401 String STR_BEAN_SHELL
403     Text[ en-US ] = "BeanShell";
406 String STR_JAVA
408     Text[ en-US ] = "Java";
411 String STR_PYTHON
413     Text[ en-US ] = "Python";
416 String STR_DIALOG
418     Text[ en-US ] = "dialog";
421 String STR_ERRORS
423     Text [ en-US ] = "Error(s)";
426 String STR_WARNINGS
428     Text [ en-US ] = "Warnings";
431 String STR_EXCEPTION
433     Text [ en-US ] = "caught exception:";
437 ErrorBox ERR_INVALID_BACKUP_LOCATION
439     Buttons = WB_OK;
440     Message [ en-US ] = "You need to choose a backup location other than the document location itself.";
443 String STR_INVALID_NUMBER_ARGS
445     Text [ en-US ] = "Invalid number of initialization arguments. Expected 1.";
448 String STR_NO_DATABASE
450     Text [ en-US ] = "No database document found in the initialization arguments.";
453 String STR_NOT_READONLY
455     Text [ en-US ] = "Not applicable to read-only documents.";
458 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */