1/************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 28#include "dbmm_global.hrc" 29#include "macromigration.hrc" 30 31// ----------------------------------------------------------------------------- 32ModalDialog DLG_MACRO_MIGRATION 33{ 34 HelpID = "dbaccess:ModalDialog:DLG_MACRO_MIGRATION"; 35 OutputSize = TRUE ; 36 Moveable = TRUE; 37 Closeable = TRUE ; 38 Hide = TRUE; 39 40 Text[ en-US ] = "Database Document Macro Migration" ; 41 42 String STR_STATE_CLOSE_SUB_DOCS 43 { 44 Text [ en-US ] = "Prepare"; 45 }; 46 47 String STR_STATE_BACKUP_DBDOC 48 { 49 Text [ en-US ] = "Backup Document"; 50 }; 51 52 String STR_STATE_MIGRATE 53 { 54 Text [ en-US ] = "Migrate"; 55 }; 56 57 String STR_STATE_SUMMARY 58 { 59 Text [ en-US ] = "Summary"; 60 }; 61}; 62 63//======================================================================== 64//= PreparationPage 65//======================================================================== 66 67TabPage TP_PREPARE 68{ 69 HelpID = "dbaccess:TabPage:TP_PREPARE"; 70 Pos = MAP_APPFONT( 40, 130 ); 71 Size = MAP_APPFONT( TAB_PAGE_WIDTH, TAB_PAGE_HEIGHT ); 72 73 Hide = TRUE; 74 75 FixedText FT_HEADER 76 { 77 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, TAB_PAGE_CONTENT_MARGIN ); 78 Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN, FIXED_TEXT_HEIGHT ); 79 80 Text [ en-US ] = "Welcome to the Database Macro Migration Wizard"; 81 }; 82 83 FixedText FT_INTRODUCTION 84 { 85 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, CONTENT_POS_X ); 86 Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN, 87 TAB_PAGE_HEIGHT - CONTENT_POS_X - TAB_PAGE_CONTENT_MARGIN - ( 2 * FIXED_TEXT_HEIGHT - SPACING_UNRELATED ) ); 88 WordBreak = TRUE; 89 90 Text [ en-US ] = "This wizard will guide you through the task of migrating your macros.\n\n" 91 92 "After you finished it, all macros which were formerly embedded into the forms and reports of " 93 "the current database document will have been moved to the document itself. In this course, " 94 "libraries will be renamed as needed.\n\n" 95 96 "If your forms and reports contain references to those macros, they will be adjusted, where " 97 "possible.\n\n" 98 99 "Before the migration can start, all forms, reports, queries and tables belonging to the document must be closed. " 100 "Press 'Next' to do so."; 101 }; 102 103 FixedText FT_CLOSE_DOC_ERROR 104 { 105 Pos = MAP_APPFONT ( TAB_PAGE_CONTENT_MARGIN, 106 TAB_PAGE_HEIGHT - TAB_PAGE_CONTENT_MARGIN - ( 2 * FIXED_TEXT_HEIGHT - SPACING_UNRELATED ) ); 107 Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN, 108 2 * FIXED_TEXT_HEIGHT - SPACING_UNRELATED ); 109 Text [ en-US ] = "Not all objects could be closed. Please close them manually, and re-start the wizard."; 110 hide = TRUE; 111 }; 112}; 113 114//======================================================================== 115//= SaveDBDocPage 116//======================================================================== 117 118TabPage TP_SAVE_DBDOC_AS 119{ 120 HelpID = "dbaccess:TabPage:TP_SAVE_DBDOC_AS"; 121 Pos = MAP_APPFONT( 40, 130 ); 122 Size = MAP_APPFONT( TAB_PAGE_WIDTH, TAB_PAGE_HEIGHT ); 123 124 Hide = TRUE; 125 126 FixedText FT_HEADER 127 { 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 ); 130 131 Text [ en-US ] = "Backup your Document"; 132 }; 133 134 FixedText FT_EXPLANATION 135 { 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 ); 138 139 WordBreak = TRUE; 140 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."; 144 }; 145 146 FixedText FT_SAVE_AS_LABEL 147 { 148 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, CONTENT_POS_X + 5 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED ); 149 Size = MAP_APPFONT( 60, INPUT_HEIGHT ); 150 151 VCenter = TRUE; 152 153 Text [ en-US ] = "Save To:"; 154 }; 155 156 ComboBox ED_SAVE_AS_LOCATION 157 { 158 HelpID = "dbaccess:ComboBox:TP_SAVE_DBDOC_AS:ED_SAVE_AS_LOCATION"; 159 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN + 60 + SPACING_RELATED, 160 CONTENT_POS_X + 5 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED ); 161 Size = MAP_APPFONT( TAB_PAGE_WIDTH - ( TAB_PAGE_CONTENT_MARGIN + 60 + SPACING_RELATED ) - TAB_PAGE_CONTENT_MARGIN, 162 INPUT_HEIGHT ); 163 164 Border = TRUE; 165 DropDown = TRUE ; 166 }; 167 168 PushButton PB_BROWSE_SAVE_AS_LOCATION 169 { 170 HelpID = "dbaccess:PushButton:TP_SAVE_DBDOC_AS:PB_BROWSE_SAVE_AS_LOCATION"; 171 Pos = MAP_APPFONT( TAB_PAGE_WIDTH - BUTTON_WIDTH - TAB_PAGE_CONTENT_MARGIN, 172 CONTENT_POS_X + 5 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED + INPUT_HEIGHT + SPACING_RELATED ); 173 Size = MAP_APPFONT( BUTTON_WIDTH, BUTTON_HEIGHT ); 174 175 Text [ en-US ] = "Browse ..."; 176 }; 177 178 FixedText FT_START_MIGRATION 179 { 180 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, 181 TAB_PAGE_HEIGHT - TAB_PAGE_CONTENT_MARGIN - 3 * FIXED_TEXT_HEIGHT ); 182 Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN, 183 3 * FIXED_TEXT_HEIGHT ); 184 185 WordBreak = TRUE; 186 187 Text [ en-US ] = "Press 'Next' to save a copy of your document, and to begin the migration."; 188 }; 189}; 190 191//======================================================================== 192//= ProgressPage 193//======================================================================== 194 195TabPage TP_MIGRATE 196{ 197 HelpID = "dbaccess:TabPage:TP_MIGRATE"; 198 Pos = MAP_APPFONT( 40, 130 ); 199 Size = MAP_APPFONT( TAB_PAGE_WIDTH, TAB_PAGE_HEIGHT ); 200 201 Hide = TRUE; 202 203 FixedText FT_HEADER 204 { 205 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, TAB_PAGE_CONTENT_MARGIN ); 206 Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN, FIXED_TEXT_HEIGHT ); 207 208 Text [ en-US ] = "Migration Progress"; 209 }; 210 211 FixedText FT_OBJECT_COUNT 212 { 213 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, CONTENT_POS_X ); 214 Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN, 2 * FIXED_TEXT_HEIGHT ); 215 216 Text [ en-US ] = "The database document contains $forms$ form(s) and $reports$ report(s), which are currently being processed:"; 217 218 WordBreak = TRUE; 219 }; 220 221 FixedText FT_CURRENT_OBJECT_LABEL 222 { 223 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, 224 CONTENT_POS_X + 2 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED ); 225 Size = MAP_APPFONT( 60, FIXED_TEXT_HEIGHT ); 226 227 Text [ en-US ] = "Current object:"; 228 }; 229 230 FixedText FT_CURRENT_OBJECT 231 { 232 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN + 60, 233 CONTENT_POS_X + 2 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED ); 234 Size = MAP_APPFONT( TAB_PAGE_WIDTH - ( TAB_PAGE_CONTENT_MARGIN + 60 ), FIXED_TEXT_HEIGHT ); 235 }; 236 237 FixedText FT_CURRENT_PROGRESS_LABEL 238 { 239 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, 240 CONTENT_POS_X + 2 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_UNRELATED ); 241 Size = MAP_APPFONT( 60, FIXED_TEXT_HEIGHT ); 242 243 Text [ en-US ] = "Current progress:"; 244 }; 245 246 FixedText FT_CURRENT_PROGRESS 247 { 248 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN + 60, 249 CONTENT_POS_X + 2 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_UNRELATED ); 250 Size = MAP_APPFONT( TAB_PAGE_WIDTH - ( TAB_PAGE_CONTENT_MARGIN + 60 ), FIXED_TEXT_HEIGHT ); 251 }; 252 253 Window WND_CURRENT_PROGRESS 254 { 255 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN + 60, 256 CONTENT_POS_X + 2 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_RELATED ); 257 Size = MAP_APPFONT( TAB_PAGE_WIDTH - ( TAB_PAGE_CONTENT_MARGIN + 60 ) - TAB_PAGE_CONTENT_MARGIN, PROGRESS_HEIGHT ); 258 259 Border = TRUE; 260 BorderStyle = WINDOW_BORDER_MONO; 261 }; 262 263 FixedText FT_ALL_PROGRESS_LABEL 264 { 265 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, 266 CONTENT_POS_X + 2 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_RELATED + PROGRESS_HEIGHT + SPACING_UNRELATED ); 267 Size = MAP_APPFONT( 60, FIXED_TEXT_HEIGHT ); 268 269 VCenter = TRUE; 270 271 Text [ en-US ] = "Overall progress:"; 272 }; 273 274 FixedText FT_OBJECT_COUNT_PROGRESS 275 { 276 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN + 60, 277 CONTENT_POS_X + 2 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_RELATED + PROGRESS_HEIGHT + SPACING_UNRELATED ); 278 Size = MAP_APPFONT( TAB_PAGE_WIDTH - ( TAB_PAGE_CONTENT_MARGIN + 60 ) - TAB_PAGE_CONTENT_MARGIN, FIXED_TEXT_HEIGHT ); 279 280 Text [ en-US ] = "document $current$ of $overall$"; 281 }; 282 283 Window WND_ALL_PROGRESS 284 { 285 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN + 60, 286 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 ); 287 Size = MAP_APPFONT( TAB_PAGE_WIDTH - ( TAB_PAGE_CONTENT_MARGIN + 60 ) - TAB_PAGE_CONTENT_MARGIN, PROGRESS_HEIGHT ); 288 289 Border = TRUE; 290 BorderStyle = WINDOW_BORDER_MONO; 291 }; 292 293 FixedText FT_MIGRATION_DONE 294 { 295 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, TAB_PAGE_HEIGHT - TAB_PAGE_CONTENT_MARGIN - 2 * FIXED_TEXT_HEIGHT ); 296 Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN, 2 * FIXED_TEXT_HEIGHT ); 297 298 WordBreak = TRUE; 299 Hide = TRUE; 300 301 Text [ en-US ] = "All forms and reports have been successfully processed. Press 'Next' to show a detailed summary."; 302 }; 303}; 304 305//======================================================================== 306//= ResultPage 307//======================================================================== 308 309TabPage TP_SUMMARY 310{ 311 HelpID = "dbaccess:TabPage:TP_SUMMARY"; 312 Pos = MAP_APPFONT( 40, 130 ); 313 Size = MAP_APPFONT( TAB_PAGE_WIDTH, TAB_PAGE_HEIGHT ); 314 315 Hide = TRUE; 316 317 FixedText FT_HEADER 318 { 319 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, TAB_PAGE_CONTENT_MARGIN ); 320 Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN, FIXED_TEXT_HEIGHT ); 321 322 Text [ en-US ] = "Summary"; 323 }; 324 325 FixedText FT_CHANGES_LABEL 326 { 327 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, CONTENT_POS_X ); 328 Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN, FIXED_TEXT_HEIGHT ); 329 330 WordBreak = TRUE; 331 }; 332 333 MultiLineEdit ED_CHANGES 334 { 335 HelpID = "dbaccess:MultiLineEdit:TP_SUMMARY:ED_CHANGES"; 336 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, CONTENT_POS_X + FIXED_TEXT_HEIGHT + SPACING_RELATED ); 337 Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN, 338 TAB_PAGE_HEIGHT - ( CONTENT_POS_X + FIXED_TEXT_HEIGHT + SPACING_RELATED ) - TAB_PAGE_CONTENT_MARGIN ); 339 340 ReadOnly = TRUE; 341 AutoVScroll = TRUE; 342 Border = TRUE; 343 BorderStyle = WINDOW_BORDER_MONO; 344 }; 345 346 String STR_SUCCESSFUL 347 { 348 Text [ en-US ] = "The migration was successful. Below is a log of the actions which have been taken to your document."; 349 }; 350 String STR_UNSUCCESSFUL 351 { 352 Text [ en-US ] = "The migration was not successful. Examine the migration log below for details."; 353 }; 354}; 355 356String STR_FORM 357{ 358 Text [ en-US ] = "Form '$name$'"; 359 Text [ x-comment ] = "This refers to a form document inside a database document."; 360}; 361 362String STR_REPORT 363{ 364 Text [ en-US ] = "Report '$name$'"; 365 Text [ x-comment ] = "This refers to a report document inside a database document."; 366}; 367 368String STR_OVERALL_PROGRESS 369{ 370 Text [ en-US ] = "document $current$ of $overall$"; 371}; 372 373String STR_DATABASE_DOCUMENT 374{ 375 Text[ en-US ] = "Database Document"; 376}; 377 378String STR_SAVED_COPY_TO 379{ 380 Text[ en-US ] = "saved copy to $location$"; 381}; 382 383String STR_MOVED_LIBRARY 384{ 385 Text[ en-US ] = "migrated $type$ library '$old$' to '$new$'"; 386}; 387 388String STR_LIBRARY_TYPE_AND_NAME 389{ 390 Text [ en-US ] = "$type$ library '$library$'"; 391}; 392 393String STR_MIGRATING_LIBS 394{ 395 Text [ en-US ] = "migrating libraries ..."; 396}; 397 398String STR_OOO_BASIC 399{ 400 Text[ en-US ] = "%PRODUCTNAME Basic"; 401}; 402 403String STR_JAVA_SCRIPT 404{ 405 Text[ en-US ] = "JavaScript"; 406}; 407 408String STR_BEAN_SHELL 409{ 410 Text[ en-US ] = "BeanShell"; 411}; 412 413String STR_JAVA 414{ 415 Text[ en-US ] = "Java"; 416}; 417 418String STR_PYTHON 419{ 420 Text[ en-US ] = "Python"; 421}; 422 423String STR_DIALOG 424{ 425 Text[ en-US ] = "dialog"; 426}; 427 428String STR_ERRORS 429{ 430 Text [ en-US ] = "Error(s)"; 431}; 432 433String STR_WARNINGS 434{ 435 Text [ en-US ] = "Warnings"; 436}; 437 438String STR_EXCEPTION 439{ 440 Text [ en-US ] = "caught exception: "; 441}; 442 443 444ErrorBox ERR_INVALID_BACKUP_LOCATION 445{ 446 Buttons = WB_OK; 447 Message [ en-US ] = "You need to choose a backup location other than the document location itself."; 448}; 449 450String STR_INVALID_NUMBER_ARGS 451{ 452 Text [ en-US ] = "Invalid number of initialization arguments. Expected 1."; 453}; 454String STR_NO_DATABASE 455{ 456 Text [ en-US ] = "No database document found in the initialization arguments."; 457}; 458String STR_NOT_READONLY 459{ 460 Text [ en-US ] = "Not applicable to read-only documents."; 461}; 462