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\nAfter you finished it, all macros which were formerly embedded into the forms and reports of the current database document will have been moved to the document itself. In this course, libraries will be renamed as needed.\n\nIf your forms and reports contain references to those macros, they will be adjusted, where possible.\n\nBefore the migration can start, all forms, reports, queries and tables belonging to the document must be closed. Press 'Next' to do so."; 87 }; 88 89 FixedText FT_CLOSE_DOC_ERROR 90 { 91 Pos = MAP_APPFONT ( TAB_PAGE_CONTENT_MARGIN, 92 TAB_PAGE_HEIGHT - TAB_PAGE_CONTENT_MARGIN - ( 2 * FIXED_TEXT_HEIGHT - SPACING_UNRELATED ) ); 93 Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN, 94 2 * FIXED_TEXT_HEIGHT - SPACING_UNRELATED ); 95 Text [ en-US ] = "Not all objects could be closed. Please close them manually, and re-start the wizard."; 96 hide = TRUE; 97 }; 98}; 99 100//======================================================================== 101//= SaveDBDocPage 102//======================================================================== 103 104TabPage TP_SAVE_DBDOC_AS 105{ 106 HelpID = "dbaccess:TabPage:TP_SAVE_DBDOC_AS"; 107 Pos = MAP_APPFONT( 40, 130 ); 108 Size = MAP_APPFONT( TAB_PAGE_WIDTH, TAB_PAGE_HEIGHT ); 109 110 Hide = TRUE; 111 112 FixedText FT_HEADER 113 { 114 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, TAB_PAGE_CONTENT_MARGIN ); 115 Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN, FIXED_TEXT_HEIGHT ); 116 117 Text [ en-US ] = "Backup your Document"; 118 }; 119 120 FixedText FT_EXPLANATION 121 { 122 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, CONTENT_POS_X ); 123 Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN, 5 * FIXED_TEXT_HEIGHT ); 124 125 WordBreak = TRUE; 126 127 Text [ en-US ] = "To allow you to go back to the state before the migration, the database document will be backed up to a location of your choice. Every change done by the wizard will be made to the original document, the backup will stay untouched."; 128 }; 129 130 FixedText FT_SAVE_AS_LABEL 131 { 132 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, CONTENT_POS_X + 5 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED ); 133 Size = MAP_APPFONT( 60, INPUT_HEIGHT ); 134 135 VCenter = TRUE; 136 137 Text [ en-US ] = "Save To:"; 138 }; 139 140 ComboBox ED_SAVE_AS_LOCATION 141 { 142 HelpID = "dbaccess:ComboBox:TP_SAVE_DBDOC_AS:ED_SAVE_AS_LOCATION"; 143 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN + 60 + SPACING_RELATED, 144 CONTENT_POS_X + 5 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED ); 145 Size = MAP_APPFONT( TAB_PAGE_WIDTH - ( TAB_PAGE_CONTENT_MARGIN + 60 + SPACING_RELATED ) - TAB_PAGE_CONTENT_MARGIN, 146 INPUT_HEIGHT ); 147 148 Border = TRUE; 149 DropDown = TRUE ; 150 }; 151 152 PushButton PB_BROWSE_SAVE_AS_LOCATION 153 { 154 HelpID = "dbaccess:PushButton:TP_SAVE_DBDOC_AS:PB_BROWSE_SAVE_AS_LOCATION"; 155 Pos = MAP_APPFONT( TAB_PAGE_WIDTH - BUTTON_WIDTH - TAB_PAGE_CONTENT_MARGIN, 156 CONTENT_POS_X + 5 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED + INPUT_HEIGHT + SPACING_RELATED ); 157 Size = MAP_APPFONT( BUTTON_WIDTH, BUTTON_HEIGHT ); 158 159 Text [ en-US ] = "Browse ..."; 160 }; 161 162 FixedText FT_START_MIGRATION 163 { 164 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, 165 TAB_PAGE_HEIGHT - TAB_PAGE_CONTENT_MARGIN - 3 * FIXED_TEXT_HEIGHT ); 166 Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN, 167 3 * FIXED_TEXT_HEIGHT ); 168 169 WordBreak = TRUE; 170 171 Text [ en-US ] = "Press 'Next' to save a copy of your document, and to begin the migration."; 172 }; 173}; 174 175//======================================================================== 176//= ProgressPage 177//======================================================================== 178 179TabPage TP_MIGRATE 180{ 181 HelpID = "dbaccess:TabPage:TP_MIGRATE"; 182 Pos = MAP_APPFONT( 40, 130 ); 183 Size = MAP_APPFONT( TAB_PAGE_WIDTH, TAB_PAGE_HEIGHT ); 184 185 Hide = TRUE; 186 187 FixedText FT_HEADER 188 { 189 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, TAB_PAGE_CONTENT_MARGIN ); 190 Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN, FIXED_TEXT_HEIGHT ); 191 192 Text [ en-US ] = "Migration Progress"; 193 }; 194 195 FixedText FT_OBJECT_COUNT 196 { 197 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, CONTENT_POS_X ); 198 Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN, 2 * FIXED_TEXT_HEIGHT ); 199 200 Text [ en-US ] = "The database document contains $forms$ form(s) and $reports$ report(s), which are currently being processed:"; 201 202 WordBreak = TRUE; 203 }; 204 205 FixedText FT_CURRENT_OBJECT_LABEL 206 { 207 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, 208 CONTENT_POS_X + 2 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED ); 209 Size = MAP_APPFONT( 60, FIXED_TEXT_HEIGHT ); 210 211 Text [ en-US ] = "Current object:"; 212 }; 213 214 FixedText FT_CURRENT_OBJECT 215 { 216 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN + 60, 217 CONTENT_POS_X + 2 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED ); 218 Size = MAP_APPFONT( TAB_PAGE_WIDTH - ( TAB_PAGE_CONTENT_MARGIN + 60 ), FIXED_TEXT_HEIGHT ); 219 }; 220 221 FixedText FT_CURRENT_PROGRESS_LABEL 222 { 223 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, 224 CONTENT_POS_X + 2 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_UNRELATED ); 225 Size = MAP_APPFONT( 60, FIXED_TEXT_HEIGHT ); 226 227 Text [ en-US ] = "Current progress:"; 228 }; 229 230 FixedText FT_CURRENT_PROGRESS 231 { 232 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN + 60, 233 CONTENT_POS_X + 2 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_UNRELATED ); 234 Size = MAP_APPFONT( TAB_PAGE_WIDTH - ( TAB_PAGE_CONTENT_MARGIN + 60 ), FIXED_TEXT_HEIGHT ); 235 }; 236 237 Window WND_CURRENT_PROGRESS 238 { 239 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN + 60, 240 CONTENT_POS_X + 2 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_RELATED ); 241 Size = MAP_APPFONT( TAB_PAGE_WIDTH - ( TAB_PAGE_CONTENT_MARGIN + 60 ) - TAB_PAGE_CONTENT_MARGIN, PROGRESS_HEIGHT ); 242 243 Border = TRUE; 244 BorderStyle = WINDOW_BORDER_MONO; 245 }; 246 247 FixedText FT_ALL_PROGRESS_LABEL 248 { 249 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, 250 CONTENT_POS_X + 2 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_RELATED + PROGRESS_HEIGHT + SPACING_UNRELATED ); 251 Size = MAP_APPFONT( 60, FIXED_TEXT_HEIGHT ); 252 253 VCenter = TRUE; 254 255 Text [ en-US ] = "Overall progress:"; 256 }; 257 258 FixedText FT_OBJECT_COUNT_PROGRESS 259 { 260 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN + 60, 261 CONTENT_POS_X + 2 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_RELATED + PROGRESS_HEIGHT + SPACING_UNRELATED ); 262 Size = MAP_APPFONT( TAB_PAGE_WIDTH - ( TAB_PAGE_CONTENT_MARGIN + 60 ) - TAB_PAGE_CONTENT_MARGIN, FIXED_TEXT_HEIGHT ); 263 264 Text [ en-US ] = "document $current$ of $overall$"; 265 }; 266 267 Window WND_ALL_PROGRESS 268 { 269 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN + 60, 270 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 ); 271 Size = MAP_APPFONT( TAB_PAGE_WIDTH - ( TAB_PAGE_CONTENT_MARGIN + 60 ) - TAB_PAGE_CONTENT_MARGIN, PROGRESS_HEIGHT ); 272 273 Border = TRUE; 274 BorderStyle = WINDOW_BORDER_MONO; 275 }; 276 277 FixedText FT_MIGRATION_DONE 278 { 279 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, TAB_PAGE_HEIGHT - TAB_PAGE_CONTENT_MARGIN - 2 * FIXED_TEXT_HEIGHT ); 280 Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN, 2 * FIXED_TEXT_HEIGHT ); 281 282 WordBreak = TRUE; 283 Hide = TRUE; 284 285 Text [ en-US ] = "All forms and reports have been successfully processed. Press 'Next' to show a detailed summary."; 286 }; 287}; 288 289//======================================================================== 290//= ResultPage 291//======================================================================== 292 293TabPage TP_SUMMARY 294{ 295 HelpID = "dbaccess:TabPage:TP_SUMMARY"; 296 Pos = MAP_APPFONT( 40, 130 ); 297 Size = MAP_APPFONT( TAB_PAGE_WIDTH, TAB_PAGE_HEIGHT ); 298 299 Hide = TRUE; 300 301 FixedText FT_HEADER 302 { 303 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, TAB_PAGE_CONTENT_MARGIN ); 304 Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN, FIXED_TEXT_HEIGHT ); 305 306 Text [ en-US ] = "Summary"; 307 }; 308 309 FixedText FT_CHANGES_LABEL 310 { 311 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, CONTENT_POS_X ); 312 Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN, FIXED_TEXT_HEIGHT ); 313 314 WordBreak = TRUE; 315 }; 316 317 MultiLineEdit ED_CHANGES 318 { 319 HelpID = "dbaccess:MultiLineEdit:TP_SUMMARY:ED_CHANGES"; 320 Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, CONTENT_POS_X + FIXED_TEXT_HEIGHT + SPACING_RELATED ); 321 Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN, 322 TAB_PAGE_HEIGHT - ( CONTENT_POS_X + FIXED_TEXT_HEIGHT + SPACING_RELATED ) - TAB_PAGE_CONTENT_MARGIN ); 323 324 ReadOnly = TRUE; 325 AutoVScroll = TRUE; 326 Border = TRUE; 327 BorderStyle = WINDOW_BORDER_MONO; 328 }; 329 330 String STR_SUCCESSFUL 331 { 332 Text [ en-US ] = "The migration was successful. Below is a log of the actions which have been taken to your document."; 333 }; 334 String STR_UNSUCCESSFUL 335 { 336 Text [ en-US ] = "The migration was not successful. Examine the migration log below for details."; 337 }; 338}; 339 340String STR_FORM 341{ 342 Text [ en-US ] = "Form '$name$'"; 343}; 344 345String STR_REPORT 346{ 347 Text [ en-US ] = "Report '$name$'"; 348}; 349 350String STR_OVERALL_PROGRESS 351{ 352 Text [ en-US ] = "document $current$ of $overall$"; 353}; 354 355String STR_DATABASE_DOCUMENT 356{ 357 Text[ en-US ] = "Database Document"; 358}; 359 360String STR_SAVED_COPY_TO 361{ 362 Text[ en-US ] = "saved copy to $location$"; 363}; 364 365String STR_MOVED_LIBRARY 366{ 367 Text[ en-US ] = "migrated $type$ library '$old$' to '$new$'"; 368}; 369 370String STR_LIBRARY_TYPE_AND_NAME 371{ 372 Text [ en-US ] = "$type$ library '$library$'"; 373}; 374 375String STR_MIGRATING_LIBS 376{ 377 Text [ en-US ] = "migrating libraries ..."; 378}; 379 380String STR_OOO_BASIC 381{ 382 Text[ en-US ] = "%PRODUCTNAME Basic"; 383}; 384 385String STR_JAVA_SCRIPT 386{ 387 Text[ en-US ] = "JavaScript"; 388}; 389 390String STR_BEAN_SHELL 391{ 392 Text[ en-US ] = "BeanShell"; 393}; 394 395String STR_JAVA 396{ 397 Text[ en-US ] = "Java"; 398}; 399 400String STR_PYTHON 401{ 402 Text[ en-US ] = "Python"; 403}; 404 405String STR_DIALOG 406{ 407 Text[ en-US ] = "dialog"; 408}; 409 410String STR_ERRORS 411{ 412 Text [ en-US ] = "Error(s)"; 413}; 414 415String STR_WARNINGS 416{ 417 Text [ en-US ] = "Warnings"; 418}; 419 420String STR_EXCEPTION 421{ 422 Text [ en-US ] = "caught exception: "; 423}; 424 425 426ErrorBox ERR_INVALID_BACKUP_LOCATION 427{ 428 Buttons = WB_OK; 429 Message [ en-US ] = "You need to choose a backup location other than the document location itself."; 430}; 431 432String STR_INVALID_NUMBER_ARGS 433{ 434 Text [ en-US ] = "Invalid number of initialization arguments. Expected 1."; 435}; 436String STR_NO_DATABASE 437{ 438 Text [ en-US ] = "No database document found in the initialization arguments."; 439}; 440String STR_NOT_READONLY 441{ 442 Text [ en-US ] = "Not applicable to read-only documents."; 443}; 444