1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: macromigration.src,v $
10 * $Revision: 1.3.2.8 $
12 * This file is part of OpenOffice.org.
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.
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).
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.
29 ************************************************************************/
31 #include "dbmm_global.hrc"
32 #include "macromigration.hrc"
34 // -----------------------------------------------------------------------------
35 ModalDialog DLG_MACRO_MIGRATION
42 Text[ en-US ] = "Database Document Macro Migration" ;
44 String STR_STATE_CLOSE_SUB_DOCS
46 Text [ en-US ] = "Prepare";
49 String STR_STATE_BACKUP_DBDOC
51 Text [ en-US ] = "Backup Document";
54 String STR_STATE_MIGRATE
56 Text [ en-US ] = "Migrate";
59 String STR_STATE_SUMMARY
61 Text [ en-US ] = "Summary";
65 //========================================================================
67 //========================================================================
71 Pos = MAP_APPFONT( 40, 130 );
72 Size = MAP_APPFONT( TAB_PAGE_WIDTH, TAB_PAGE_HEIGHT );
78 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, TAB_PAGE_CONTENT_MARGIN );
79 Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN, FIXED_TEXT_HEIGHT );
81 Text [ en-US ] = "Welcome to the Database Macro Migration Wizard";
84 FixedText FT_INTRODUCTION
86 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, CONTENT_POS_X );
87 Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN,
88 TAB_PAGE_HEIGHT - CONTENT_POS_X - TAB_PAGE_CONTENT_MARGIN - ( 2 * FIXED_TEXT_HEIGHT - SPACING_UNRELATED ) );
91 Text [ en-US ] = "This wizard will guide you through the task of migrating your macros.\n\n"
93 "After you finished it, all macros which were formerly embedded into the forms and reports of "
94 "the current database document will have been moved to the document itself. In this course, "
95 "libraries will be renamed as needed.\n\n"
97 "If your forms and reports contain references to those macros, they will be adjusted, where "
100 "Before the migration can start, all forms, reports, queries and tables belonging to the document must be closed. "
101 "Press 'Next' to do so.";
104 FixedText FT_CLOSE_DOC_ERROR
106 Pos = MAP_APPFONT ( TAB_PAGE_CONTENT_MARGIN,
107 TAB_PAGE_HEIGHT - TAB_PAGE_CONTENT_MARGIN - ( 2 * FIXED_TEXT_HEIGHT - SPACING_UNRELATED ) );
108 Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN,
109 2 * FIXED_TEXT_HEIGHT - SPACING_UNRELATED );
110 Text [ en-US ] = "Not all objects could be closed. Please close them manually, and re-start the wizard.";
115 //========================================================================
117 //========================================================================
119 TabPage TP_SAVE_DBDOC_AS
121 Pos = MAP_APPFONT( 40, 130 );
122 Size = MAP_APPFONT( TAB_PAGE_WIDTH, TAB_PAGE_HEIGHT );
128 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, TAB_PAGE_CONTENT_MARGIN );
129 Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN, FIXED_TEXT_HEIGHT );
131 Text [ en-US ] = "Backup your Document";
134 FixedText FT_EXPLANATION
136 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, CONTENT_POS_X );
137 Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN, 5 * FIXED_TEXT_HEIGHT );
141 Text [ en-US ] = "To allow you to go back to the state before the migration, the database "
142 "document will be backed up to a location of your choice. Every change done by the wizard will "
143 "be made to the original document, the backup will stay untouched.";
146 FixedText FT_SAVE_AS_LABEL
148 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, CONTENT_POS_X + 5 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED );
149 Size = MAP_APPFONT( 60, INPUT_HEIGHT );
153 Text [ en-US ] = "Save To:";
156 ComboBox ED_SAVE_AS_LOCATION
158 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN + 60 + SPACING_RELATED,
159 CONTENT_POS_X + 5 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED );
160 Size = MAP_APPFONT( TAB_PAGE_WIDTH - ( TAB_PAGE_CONTENT_MARGIN + 60 + SPACING_RELATED ) - TAB_PAGE_CONTENT_MARGIN,
167 PushButton PB_BROWSE_SAVE_AS_LOCATION
169 Pos = MAP_APPFONT( TAB_PAGE_WIDTH - BUTTON_WIDTH - TAB_PAGE_CONTENT_MARGIN,
170 CONTENT_POS_X + 5 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED + INPUT_HEIGHT + SPACING_RELATED );
171 Size = MAP_APPFONT( BUTTON_WIDTH, BUTTON_HEIGHT );
173 Text [ en-US ] = "Browse ...";
176 FixedText FT_START_MIGRATION
178 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN,
179 TAB_PAGE_HEIGHT - TAB_PAGE_CONTENT_MARGIN - 3 * FIXED_TEXT_HEIGHT );
180 Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN,
181 3 * FIXED_TEXT_HEIGHT );
185 Text [ en-US ] = "Press 'Next' to save a copy of your document, and to begin the migration.";
189 //========================================================================
191 //========================================================================
195 Pos = MAP_APPFONT( 40, 130 );
196 Size = MAP_APPFONT( TAB_PAGE_WIDTH, TAB_PAGE_HEIGHT );
202 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, TAB_PAGE_CONTENT_MARGIN );
203 Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN, FIXED_TEXT_HEIGHT );
205 Text [ en-US ] = "Migration Progress";
208 FixedText FT_OBJECT_COUNT
210 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, CONTENT_POS_X );
211 Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN, 2 * FIXED_TEXT_HEIGHT );
213 Text [ en-US ] = "The database document contains $forms$ form(s) and $reports$ report(s), which are currently being processed:";
218 FixedText FT_CURRENT_OBJECT_LABEL
220 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN,
221 CONTENT_POS_X + 2 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED );
222 Size = MAP_APPFONT( 60, FIXED_TEXT_HEIGHT );
224 Text [ en-US ] = "Current object:";
227 FixedText FT_CURRENT_OBJECT
229 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN + 60,
230 CONTENT_POS_X + 2 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED );
231 Size = MAP_APPFONT( TAB_PAGE_WIDTH - ( TAB_PAGE_CONTENT_MARGIN + 60 ), FIXED_TEXT_HEIGHT );
234 FixedText FT_CURRENT_PROGRESS_LABEL
236 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN,
237 CONTENT_POS_X + 2 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_UNRELATED );
238 Size = MAP_APPFONT( 60, FIXED_TEXT_HEIGHT );
240 Text [ en-US ] = "Current progress:";
243 FixedText FT_CURRENT_PROGRESS
245 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN + 60,
246 CONTENT_POS_X + 2 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_UNRELATED );
247 Size = MAP_APPFONT( TAB_PAGE_WIDTH - ( TAB_PAGE_CONTENT_MARGIN + 60 ), FIXED_TEXT_HEIGHT );
250 Window WND_CURRENT_PROGRESS
252 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN + 60,
253 CONTENT_POS_X + 2 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_RELATED );
254 Size = MAP_APPFONT( TAB_PAGE_WIDTH - ( TAB_PAGE_CONTENT_MARGIN + 60 ) - TAB_PAGE_CONTENT_MARGIN, PROGRESS_HEIGHT );
257 BorderStyle = WINDOW_BORDER_MONO;
260 FixedText FT_ALL_PROGRESS_LABEL
262 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN,
263 CONTENT_POS_X + 2 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_RELATED + PROGRESS_HEIGHT + SPACING_UNRELATED );
264 Size = MAP_APPFONT( 60, FIXED_TEXT_HEIGHT );
268 Text [ en-US ] = "Overall progress:";
271 FixedText FT_OBJECT_COUNT_PROGRESS
273 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN + 60,
274 CONTENT_POS_X + 2 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_RELATED + PROGRESS_HEIGHT + SPACING_UNRELATED );
275 Size = MAP_APPFONT( TAB_PAGE_WIDTH - ( TAB_PAGE_CONTENT_MARGIN + 60 ) - TAB_PAGE_CONTENT_MARGIN, FIXED_TEXT_HEIGHT );
277 Text [ en-US ] = "document $current$ of $overall$";
280 Window WND_ALL_PROGRESS
282 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN + 60,
283 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 );
284 Size = MAP_APPFONT( TAB_PAGE_WIDTH - ( TAB_PAGE_CONTENT_MARGIN + 60 ) - TAB_PAGE_CONTENT_MARGIN, PROGRESS_HEIGHT );
287 BorderStyle = WINDOW_BORDER_MONO;
290 FixedText FT_MIGRATION_DONE
292 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, TAB_PAGE_HEIGHT - TAB_PAGE_CONTENT_MARGIN - 2 * FIXED_TEXT_HEIGHT );
293 Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN, 2 * FIXED_TEXT_HEIGHT );
298 Text [ en-US ] = "All forms and reports have been successfully processed. Press 'Next' to show a detailed summary.";
302 //========================================================================
304 //========================================================================
308 Pos = MAP_APPFONT( 40, 130 );
309 Size = MAP_APPFONT( TAB_PAGE_WIDTH, TAB_PAGE_HEIGHT );
315 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, TAB_PAGE_CONTENT_MARGIN );
316 Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN, FIXED_TEXT_HEIGHT );
318 Text [ en-US ] = "Summary";
321 FixedText FT_CHANGES_LABEL
323 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, CONTENT_POS_X );
324 Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN, FIXED_TEXT_HEIGHT );
329 MultiLineEdit ED_CHANGES
331 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, CONTENT_POS_X + FIXED_TEXT_HEIGHT + SPACING_RELATED );
332 Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN,
333 TAB_PAGE_HEIGHT - ( CONTENT_POS_X + FIXED_TEXT_HEIGHT + SPACING_RELATED ) - TAB_PAGE_CONTENT_MARGIN );
338 BorderStyle = WINDOW_BORDER_MONO;
341 String STR_SUCCESSFUL
343 Text [ en-US ] = "The migration was successful. Below is a log of the actions which have been taken to your document.";
345 String STR_UNSUCCESSFUL
347 Text [ en-US ] = "The migration was not successful. Examine the migration log below for details.";
353 Text [ en-US ] = "Form '$name$'";
354 Text [ x-comment ] = "This refers to a form document inside a database document.";
359 Text [ en-US ] = "Report '$name$'";
360 Text [ x-comment ] = "This refers to a report document inside a database document.";
363 String STR_OVERALL_PROGRESS
365 Text [ en-US ] = "document $current$ of $overall$";
368 String STR_DATABASE_DOCUMENT
370 Text[ en-US ] = "Database Document";
373 String STR_SAVED_COPY_TO
375 Text[ en-US ] = "saved copy to $location$";
378 String STR_MOVED_LIBRARY
380 Text[ en-US ] = "migrated $type$ library '$old$' to '$new$'";
383 String STR_LIBRARY_TYPE_AND_NAME
385 Text [ en-US ] = "$type$ library '$library$'";
388 String STR_MIGRATING_LIBS
390 Text [ en-US ] = "migrating libraries ...";
395 Text[ en-US ] = "%PRODUCTNAME Basic";
398 String STR_JAVA_SCRIPT
400 Text[ en-US ] = "JavaScript";
403 String STR_BEAN_SHELL
405 Text[ en-US ] = "BeanShell";
410 Text[ en-US ] = "Java";
415 Text[ en-US ] = "Python";
420 Text[ en-US ] = "dialog";
425 Text [ en-US ] = "Error(s)";
430 Text [ en-US ] = "Warnings";
435 Text [ en-US ] = "caught exception: ";
439 ErrorBox ERR_INVALID_BACKUP_LOCATION
442 Message [ en-US ] = "You need to choose a backup location other than the document location itself.";