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