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