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#ifndef DBAUI_WIZARD_PAGES_HRC 25#include "WizardPages.hrc" 26#endif 27#ifndef _DBU_MISC_HRC_ 28#include "dbu_misc.hrc" 29#endif 30#ifndef _DBA_DBACCESS_HELPID_HRC_ 31#include "dbaccess_helpid.hrc" 32#endif 33 34#include "dbaccess_slotid.hrc" 35 36#define WINDOW_SIZE_X 276 37#define WINDOW_SIZE_Y 185 38 39#define WINDOW_BORDER_X 12 40#define WINDOW_BORDER_Y 14 41 42#define BUTTON_SIZE_X 50 43#define BUTTON_SIZE_Y 14 44 45String STR_WIZ_COLUMN_SELECT_TITEL 46{ 47 Text [ en-US ] = "Apply columns"; 48}; 49 50String STR_WIZ_TYPE_SELECT_TITEL 51{ 52 Text [ en-US ] = "Type formatting"; 53}; 54 55String STR_WIZ_PKEY_ALREADY_DEFINED 56{ 57 Text [ en-US ] = "The following fields have already been set as primary keys:\n"; 58}; 59 60String STR_WIZ_NAME_MATCHING_TITEL 61{ 62 Text [ en-US ] = "Assign columns" ; 63}; 64 65ModalDialog WIZ_RTFCOPYTABLE 66{ 67 HelpID = "dbaccess:ModalDialog:WIZ_RTFCOPYTABLE"; 68 69 Text [ en-US ] = "Copy RTF Table" ; 70 71 72 OutputSize = TRUE ; 73 SVLook = TRUE ; 74 Moveable = TRUE ; 75 Closeable = TRUE ; 76 Hide = TRUE; 77 78 HelpButton PB_HELP 79 { 80 TabStop = TRUE ; 81 Size = MAP_APPFONT ( BUTTON_SIZE_X , BUTTON_SIZE_Y ) ; 82 Text [ en-US ] = "~Help"; 83 }; 84 CancelButton PB_CANCEL 85 { 86 TabStop = TRUE ; 87 Size = MAP_APPFONT ( BUTTON_SIZE_X , BUTTON_SIZE_Y ) ; 88 Text [ en-US ] = "~Cancel"; 89 }; 90 PushButton PB_PREV 91 { 92 HelpID = "dbaccess:PushButton:WIZ_RTFCOPYTABLE:PB_PREV"; 93 TabStop = TRUE ; 94 Size = MAP_APPFONT ( BUTTON_SIZE_X , BUTTON_SIZE_Y ) ; 95 Text [ en-US ] = "< ~Back"; 96 }; 97 PushButton PB_NEXT 98 { 99 HelpID = "dbaccess:PushButton:WIZ_RTFCOPYTABLE:PB_NEXT"; 100 TabStop = TRUE ; 101 Size = MAP_APPFONT ( BUTTON_SIZE_X , BUTTON_SIZE_Y ) ; 102 Text [ en-US ] = "~Next>"; 103 }; 104 OKButton PB_OK 105 { 106 TabStop = TRUE ; 107 Size = MAP_APPFONT ( BUTTON_SIZE_X , BUTTON_SIZE_Y ) ; 108 Text [ en-US ] = "C~reate"; 109 }; 110 111}; 112 113//================================================================== 114 // TAB_WIZ_COLUMN_SELECT 115 //================================================================== 116TabPage TAB_WIZ_COLUMN_SELECT 117{ 118 SVLook = TRUE ; 119 Size = MAP_APPFONT ( WINDOW_SIZE_X , WINDOW_SIZE_Y ) ; 120 121 HelpId = HID_TAB_WIZ_COLUMN_SELECT; 122 Hide = TRUE; 123 124 FixedLine FL_COLUMN_SELECT 125 { 126 Pos = MAP_APPFONT ( 6 , 3 ) ; 127 Size = MAP_APPFONT ( WINDOW_SIZE_X - 12 , 8 ) ; 128 Text [ en-US ] = "Existing columns" ; 129 }; 130 131 MultiListBox LB_ORG_COLUMN_NAMES 132 { 133 HelpID = "dbaccess:MultiListBox:TAB_WIZ_COLUMN_SELECT:LB_ORG_COLUMN_NAMES"; 134 Border = TRUE ; 135 Pos = MAP_APPFONT ( WINDOW_BORDER_X , WINDOW_BORDER_Y ) ; 136 Size = MAP_APPFONT ( 95 , WINDOW_SIZE_Y - 23 ) ; 137 TabStop = TRUE ; 138 HScroll = TRUE; 139 VScroll = TRUE; 140 AutoHScroll = TRUE; 141 SimpleMode = TRUE; 142 Sort = FALSE; 143 }; 144 ImageButton IB_COLUMN_RH 145 { 146 HelpID = "dbaccess:ImageButton:TAB_WIZ_COLUMN_SELECT:IB_COLUMN_RH"; 147 Pos = MAP_APPFONT ( WINDOW_BORDER_X + 116 , WINDOW_BORDER_Y + 25 ) ; 148 Size = MAP_APPFONT ( 20 , 14 ) ; 149 TabStop = TRUE ; 150 ButtonImage = Image 151 { 152 ImageBitmap = Bitmap 153 { 154 File = "one_right.png" ; 155 }; 156 MaskColor = Color 157 { 158 Red = 0xFFFF; 159 Green = 0x0000; 160 Blue = 0xFFFF; 161 }; 162 }; 163 }; 164 ImageButton IB_COLUMNS_RH 165 { 166 HelpID = "dbaccess:ImageButton:TAB_WIZ_COLUMN_SELECT:IB_COLUMNS_RH"; 167 Pos = MAP_APPFONT ( WINDOW_BORDER_X + 116 , WINDOW_BORDER_Y + 45 ) ; 168 Size = MAP_APPFONT ( 20 , 14 ) ; 169 TabStop = TRUE; 170 DefButton = TRUE; 171 ButtonImage = Image 172 { 173 ImageBitmap = Bitmap 174 { 175 File = "all_right.png" ; 176 }; 177 MaskColor = Color 178 { 179 Red = 0xFFFF; 180 Green = 0x0000; 181 Blue = 0xFFFF; 182 }; 183 }; 184 }; 185 ImageButton IB_COLUMN_LH 186 { 187 HelpID = "dbaccess:ImageButton:TAB_WIZ_COLUMN_SELECT:IB_COLUMN_LH"; 188 Pos = MAP_APPFONT ( WINDOW_BORDER_X + 116 , WINDOW_BORDER_Y + 65) ; 189 Size = MAP_APPFONT ( 20 , 14 ) ; 190 TabStop = TRUE ; 191 ButtonImage = Image 192 { 193 ImageBitmap = Bitmap 194 { 195 File = "one_left.png" ; 196 }; 197 MaskColor = Color 198 { 199 Red = 0xFFFF; 200 Green = 0x0000; 201 Blue = 0xFFFF; 202 }; 203 }; 204 }; 205 ImageButton IB_COLUMNS_LH 206 { 207 HelpID = "dbaccess:ImageButton:TAB_WIZ_COLUMN_SELECT:IB_COLUMNS_LH"; 208 Pos = MAP_APPFONT ( WINDOW_BORDER_X + 116 , WINDOW_BORDER_Y + 85) ; 209 Size = MAP_APPFONT ( 20 , 14 ) ; 210 TabStop = TRUE ; 211 ButtonImage = Image 212 { 213 ImageBitmap = Bitmap 214 { 215 File = "all_left.png" ; 216 }; 217 MaskColor = Color 218 { 219 Red = 0xFFFF; 220 Green = 0x0000; 221 Blue = 0xFFFF; 222 }; 223 }; 224 }; 225 226 MultiListBox LB_NEW_COLUMN_NAMES 227 { 228 HelpID = "dbaccess:MultiListBox:TAB_WIZ_COLUMN_SELECT:LB_NEW_COLUMN_NAMES"; 229 Border = TRUE ; 230 Pos = MAP_APPFONT ( WINDOW_BORDER_X + 157, WINDOW_BORDER_Y) ; 231 Size = MAP_APPFONT ( 95 , WINDOW_SIZE_Y - 23 ) ; 232 TabStop = TRUE ; 233 HScroll = TRUE; 234 VScroll = TRUE; 235 AutoHScroll = TRUE; 236 SimpleMode = TRUE; 237 Sort = FALSE; 238 }; 239}; 240 241//================================================================== 242 // TAB_WIZ_TYPE_SELECT 243 //================================================================== 244TabPage TAB_WIZ_TYPE_SELECT 245{ 246 SVLook = TRUE ; 247 Size = MAP_APPFONT ( WINDOW_SIZE_X , WINDOW_SIZE_Y ) ; 248 249 HelpId = HID_TAB_WIZ_TYPE_SELECT; 250 Hide = TRUE; 251 252 MultiListBox LB_NEW_COLUMN_NAMES 253 { 254 HelpID = "dbaccess:MultiListBox:TAB_WIZ_TYPE_SELECT:LB_NEW_COLUMN_NAMES"; 255 Border = TRUE ; 256 Pos = MAP_APPFONT ( 6 , 6 ) ; 257 Size = MAP_APPFONT ( 87 , WINDOW_SIZE_Y - 12 ) ; 258 TabStop = TRUE ; 259 HScroll = TRUE; 260 VScroll = TRUE; 261 AutoHScroll = TRUE; 262 SimpleMode = TRUE; 263 }; 264 265 FixedLine FL_COLUMN_NAME 266 { 267 Pos = MAP_APPFONT ( 99 , 3 ) ; 268 Size = MAP_APPFONT ( WINDOW_SIZE_X - 105, 8 ) ; 269 Text [ en-US ] = "Column information" ; 270 }; 271 272 TabPage CONTROL_CONTAINER 273 { 274 HelpID = "dbaccess:TabPage:CONTROL_CONTAINER"; 275 Pos = MAP_APPFONT ( 102 , WINDOW_BORDER_Y ) ; 276 Size = MAP_APPFONT ( WINDOW_SIZE_X - 111, WINDOW_SIZE_Y - WINDOW_BORDER_Y - 67 ); 277 SVLook = TRUE; 278 DialogControl = TRUE; 279 }; 280 281 FixedLine FL_AUTO_TYPE 282 { 283 Pos = MAP_APPFONT ( 99 , WINDOW_SIZE_Y - WINDOW_BORDER_Y - 41 ) ; 284 Size = MAP_APPFONT ( WINDOW_SIZE_X - 105, 8 ) ; 285 Text [ en-US ] = "Automatic type recognition" ; 286 }; 287 288 FixedText FT_AUTO 289 { 290 Pos = MAP_APPFONT ( 105 , WINDOW_SIZE_Y - WINDOW_BORDER_Y - 28 ) ; 291 Size = MAP_APPFONT ( 40 , 8 ) ; 292 Text [ en-US ] = "Lines (ma~x)"; 293 }; 294 295 NumericField ET_AUTO 296 { 297 HelpID = "dbaccess:NumericField:TAB_WIZ_TYPE_SELECT:ET_AUTO"; 298 Border = TRUE ; 299 Pos = MAP_APPFONT ( 151 , WINDOW_SIZE_Y - WINDOW_BORDER_Y - 29) ; 300 Size = MAP_APPFONT ( 40 , 12 ) ; 301 TabStop = TRUE ; 302 }; 303 304 PushButton PB_AUTO 305 { 306 HelpID = "dbaccess:PushButton:TAB_WIZ_TYPE_SELECT:PB_AUTO"; 307 Pos = MAP_APPFONT ( WINDOW_SIZE_X - 62 , WINDOW_SIZE_Y - WINDOW_BORDER_Y - 30 ) ; 308 Size = MAP_APPFONT ( BUTTON_SIZE_X , BUTTON_SIZE_Y ) ; 309 TabStop = TRUE ; 310 Text = "~Auto" ; 311 }; 312}; 313 314Menu RID_SBA_RTF_PKEYPOPUP 315{ 316 ItemList = 317 { 318 MenuItem 319 { 320 Identifier = SID_TABLEDESIGN_TABED_PRIMARYKEY ; 321 HelpID = HID_TABLEDESIGN_TABED_PRIMARYKEY ; 322 Checkable = TRUE ; 323 Text [ en-US ] = "Primary Key" ; 324 }; 325 }; 326}; 327//================================================================== 328 // TAB_WIZ_NAME_MATCHING 329 //================================================================== 330TabPage TAB_WIZ_NAME_MATCHING 331{ 332 HelpID = "dbaccess:TabPage:TAB_WIZ_NAME_MATCHING"; 333 SVLook = TRUE ; 334 Size = MAP_APPFONT ( WINDOW_SIZE_X , WINDOW_SIZE_Y ) ; 335 336 Hide = TRUE; 337 338 FixedText FT_TABLE_LEFT 339 { 340 Pos = MAP_APPFONT ( 52 , 6 ) ; 341 Size = MAP_APPFONT ( 75 , 20) ; 342 Text [ en-US ] = "Source table: \n"; 343 }; 344 345 FixedText FT_TABLE_RIGHT 346 { 347 Pos = MAP_APPFONT ( 144, 6 ) ; 348 Size = MAP_APPFONT ( 75 , 20) ; 349 Text [ en-US ] = "Destination table: \n"; 350 }; 351 352 Control CTRL_LEFT 353 { 354 Border = TRUE; 355 Pos = MAP_APPFONT ( 52, 28) ; 356 Size = MAP_APPFONT ( 82 , WINDOW_SIZE_Y - 34 ) ; 357 TabStop = TRUE; 358 HelpId = HID_TAB_NAMEMATCHING_COLS_AVAIL; 359 /*DialogControl = TRUE;*/ 360 }; 361 362 Control CTRL_RIGHT 363 { 364 Border = TRUE ; 365 Pos = MAP_APPFONT ( 144, 28) ; 366 Size = MAP_APPFONT ( 82 , WINDOW_SIZE_Y - 34 ) ; 367 TabStop = TRUE; 368 HelpId = HID_TAB_NAMEMATCHING_COLS_ASSIGN; 369 /*DialogControl = TRUE;*/ 370 }; 371 372 ImageButton IB_COLUMN_UP 373 { 374 HelpID = "dbaccess:ImageButton:TAB_WIZ_NAME_MATCHING:IB_COLUMN_UP"; 375 Pos = MAP_APPFONT ( 19 , 45 ) ; 376 Size = MAP_APPFONT ( 14 , 14 ) ; 377 TabStop = TRUE; 378 DefButton = TRUE; 379 ButtonImage = Image 380 { 381 ImageBitmap = Bitmap 382 { 383 File = "sortup.png" ; 384 }; 385 MaskColor = Color 386 { 387 Red = 0xFFFF ; 388 Green = 0x0000 ; 389 Blue = 0xFFFF ; 390 }; 391 }; 392 }; 393 ImageButton IB_COLUMN_DOWN 394 { 395 HelpID = "dbaccess:ImageButton:TAB_WIZ_NAME_MATCHING:IB_COLUMN_DOWN"; 396 Pos = MAP_APPFONT ( 19 , 63 ) ; 397 Size = MAP_APPFONT ( 14 , 14 ) ; 398 TabStop = TRUE; 399 ButtonImage = Image 400 { 401 ImageBitmap = Bitmap 402 { 403 File = "sortdown.png" ; 404 }; 405 MaskColor = Color 406 { 407 Red = 0xFFFF ; 408 Green = 0x0000 ; 409 Blue = 0xFFFF ; 410 }; 411 }; 412 }; 413 ImageButton IB_COLUMN_UP_RIGHT 414 { 415 HelpID = "dbaccess:ImageButton:TAB_WIZ_NAME_MATCHING:IB_COLUMN_UP_RIGHT"; 416 Pos = MAP_APPFONT ( WINDOW_SIZE_X - 33, 45 ) ; 417 Size = MAP_APPFONT ( 14 , 14 ) ; 418 TabStop = TRUE; 419 DefButton = TRUE; 420 ButtonImage = Image 421 { 422 ImageBitmap = Bitmap 423 { 424 File = "sortup.png" ; 425 }; 426 MaskColor = Color 427 { 428 Red = 0xFFFF ; 429 Green = 0x0000 ; 430 Blue = 0xFFFF ; 431 }; 432 }; 433 }; 434 ImageButton IB_COLUMN_DOWN_RIGHT 435 { 436 HelpID = "dbaccess:ImageButton:TAB_WIZ_NAME_MATCHING:IB_COLUMN_DOWN_RIGHT"; 437 Pos = MAP_APPFONT ( WINDOW_SIZE_X - 33, 63) ; 438 Size = MAP_APPFONT ( 14 , 14 ) ; 439 TabStop = TRUE ; 440 ButtonImage = Image 441 { 442 ImageBitmap = Bitmap 443 { 444 File = "sortdown.png" ; 445 }; 446 MaskColor = Color 447 { 448 Red = 0xFFFF ; 449 Green = 0x0000 ; 450 Blue = 0xFFFF ; 451 }; 452 }; 453 }; 454 455 PushButton PB_ALL 456 { 457 HelpID = "dbaccess:PushButton:TAB_WIZ_NAME_MATCHING:PB_ALL"; 458 Pos = MAP_APPFONT ( 6, 83) ; 459 Size = MAP_APPFONT ( 40 , 14 ) ; 460 TabStop = TRUE ; 461 Text [ en-US ] = "~All" ; 462 }; 463 464 PushButton PB_NONE 465 { 466 HelpID = "dbaccess:PushButton:TAB_WIZ_NAME_MATCHING:PB_NONE"; 467 Pos = MAP_APPFONT ( 6, 103) ; 468 Size = MAP_APPFONT ( 40 , 14 ) ; 469 TabStop = TRUE ; 470 Text [ en-US ] = "Non~e" ; 471 }; 472}; 473TabPage TAB_WIZ_COPYTABLE 474{ 475 SVLook = TRUE ; 476 Size = MAP_APPFONT ( WINDOW_SIZE_X, WINDOW_SIZE_Y ) ; 477 478 HelpId = HID_TAB_WIZ_COPYTABLE; 479 Hide = TRUE; 480 481 FixedText FT_TABLENAME 482 { 483 Pos = MAP_APPFONT ( 12 , 11) ; 484 Size = MAP_APPFONT ( 60 , 8 ) ; 485 Text [ en-US ] = "Ta~ble name"; 486 }; 487 488 Edit ET_TABLENAME 489 { 490 HelpId = HID_TAB_WIZ_TABLENAME_EDIT; 491 Border = TRUE ; 492 Pos = MAP_APPFONT ( 80 , 9) ; 493 Size = MAP_APPFONT ( WINDOW_SIZE_X - 92 , 12 ) ; 494 TabStop = TRUE ; 495 }; 496 497 FixedLine FL_OPTIONS 498 { 499 Pos = MAP_APPFONT ( 6 , 24 ) ; 500 Size = MAP_APPFONT ( WINDOW_SIZE_X - 12 , 8 ) ; 501 Text [ en-US ] = "Options" ; 502 }; 503 RadioButton RB_DEFDATA 504 { 505 HelpID = "dbaccess:RadioButton:TAB_WIZ_COPYTABLE:RB_DEFDATA"; 506 Pos = MAP_APPFONT ( 12 , 35 ) ; 507 Size = MAP_APPFONT ( 73 , 10 ) ; 508 Text [ en-US ] = "De~finition and data" ; 509 }; 510 RadioButton RB_DEF 511 { 512 HelpID = "dbaccess:RadioButton:TAB_WIZ_COPYTABLE:RB_DEF"; 513 Pos = MAP_APPFONT ( 12, 49 ) ; 514 Size = MAP_APPFONT ( 73 , 10 ) ; 515 Text [ en-US ] = "Def~inition" ; 516 }; 517 518 RadioButton RB_VIEW 519 { 520 HelpID = "dbaccess:RadioButton:TAB_WIZ_COPYTABLE:RB_VIEW"; 521 Pos = MAP_APPFONT ( 12, 63 ) ; 522 Size = MAP_APPFONT ( 73 , 10 ) ; 523 Text [ en-US ] = "A~s table view"; 524 }; 525 526 RadioButton RB_APPENDDATA 527 { 528 HelpID = "dbaccess:RadioButton:TAB_WIZ_COPYTABLE:RB_APPENDDATA"; 529 Pos = MAP_APPFONT ( 12, 77 ) ; 530 Size = MAP_APPFONT ( 73 , 10 ) ; 531 Text [ en-US ] = "Append ~data" ; 532 }; 533 534 CheckBox CB_USEHEADERLINE 535 { 536 HelpID = "dbaccess:CheckBox:TAB_WIZ_COPYTABLE:CB_USEHEADERLINE"; 537 Pos = MAP_APPFONT ( 12, 93 ) ; 538 Size = MAP_APPFONT ( WINDOW_SIZE_X - 18, 10 ) ; 539 Text [ en-US ] = "Use first ~line as column names" ; 540 }; 541 542 CheckBox CB_PRIMARY_COLUMN 543 { 544 HelpID = "dbaccess:CheckBox:TAB_WIZ_COPYTABLE:CB_PRIMARY_COLUMN"; 545 Pos = MAP_APPFONT ( 12, 107 ) ; 546 Size = MAP_APPFONT ( 90 , 10 ) ; 547 Text [ en-US ] = "Crea~te primary key"; 548 }; 549 FixedText FT_KEYNAME 550 { 551 Pos = MAP_APPFONT ( 21 , 122 ) ; 552 Size = MAP_APPFONT ( 39 , 8 ) ; 553 Text [ en-US ] = "Name"; 554 }; 555 556 Edit ET_KEYNAME 557 { 558 HelpID = "dbaccess:Edit:TAB_WIZ_COPYTABLE:ET_KEYNAME"; 559 Pos = MAP_APPFONT ( 80, 120 ) ; 560 Size = MAP_APPFONT ( 65 , 12 ) ; 561 TabStop = TRUE ; 562 Border = TRUE ; 563 }; 564}; 565 566String STR_WIZ_TABLE_COPY 567{ 568 Text [ en-US ] = "Copy table" ; 569}; 570 571String STR_COPYTABLE_TITLE_COPY 572{ 573 Text [ en-US ] = "Copy table" ; 574}; 575 576String STR_INVALID_TABLE_NAME 577{ 578 Text [ en-US ] = "This table name is not valid in the current database."; 579}; 580String STR_SUGGEST_APPEND_TABLE_DATA 581{ 582 Text [ en-US ] = "Choose the option 'Append data' on the first page to append data to an existing table."; 583}; 584 585String STR_INVALID_TABLE_NAME_LENGTH 586{ 587 Text [ en-US ] = "Please change the table name. It is too long."; 588}; 589 590Image IMG_SORTUP_H 591{ 592 ImageBitmap = Bitmap 593 { 594 File = "sortup_h.png" ; 595 }; 596 MaskColor = Color 597 { 598 Red = 0xFFFF ; 599 Green = 0x0000 ; 600 Blue = 0xFFFF ; 601 }; 602}; 603 604Image IMG_SORTDOWN_H 605{ 606 ImageBitmap = Bitmap 607 { 608 File = "sortdown_h.png" ; 609 }; 610 MaskColor = Color 611 { 612 Red = 0xFFFF ; 613 Green = 0x0000 ; 614 Blue = 0xFFFF ; 615 }; 616}; 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655