1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
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.
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).
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.
26 ************************************************************************/
28 #ifndef DBAUI_WIZARD_PAGES_HRC
29 #include "WizardPages.hrc"
31 #ifndef _DBU_MISC_HRC_
32 #include "dbu_misc.hrc"
34 #ifndef _DBA_DBACCESS_HELPID_HRC_
35 #include "dbaccess_helpid.hrc"
38 #include "dbaccess_slotid.hrc"
40 #define WINDOW_SIZE_X 276
41 #define WINDOW_SIZE_Y 185
43 #define WINDOW_BORDER_X 12
44 #define WINDOW_BORDER_Y 14
46 #define BUTTON_SIZE_X 50
47 #define BUTTON_SIZE_Y 14
49 String STR_WIZ_COLUMN_SELECT_TITEL
51 Text [ en-US ] = "Apply columns";
54 String STR_WIZ_TYPE_SELECT_TITEL
56 Text [ en-US ] = "Type formatting";
59 String STR_WIZ_PKEY_ALREADY_DEFINED
61 Text [ en-US ] = "The following fields have already been set as primary keys:\n";
64 String STR_WIZ_NAME_MATCHING_TITEL
66 Text [ en-US ] = "Assign columns" ;
69 ModalDialog WIZ_RTFCOPYTABLE
71 HelpID = "dbaccess:ModalDialog:WIZ_RTFCOPYTABLE";
73 Text [ en-US ] = "Copy RTF Table" ;
84 Size = MAP_APPFONT ( BUTTON_SIZE_X , BUTTON_SIZE_Y ) ;
85 Text [ en-US ] = "~Help";
87 CancelButton PB_CANCEL
90 Size = MAP_APPFONT ( BUTTON_SIZE_X , BUTTON_SIZE_Y ) ;
91 Text [ en-US ] = "~Cancel";
95 HelpID = "dbaccess:PushButton:WIZ_RTFCOPYTABLE:PB_PREV";
97 Size = MAP_APPFONT ( BUTTON_SIZE_X , BUTTON_SIZE_Y ) ;
98 Text [ en-US ] = "< ~Back";
102 HelpID = "dbaccess:PushButton:WIZ_RTFCOPYTABLE:PB_NEXT";
104 Size = MAP_APPFONT ( BUTTON_SIZE_X , BUTTON_SIZE_Y ) ;
105 Text [ en-US ] = "~Next>";
110 Size = MAP_APPFONT ( BUTTON_SIZE_X , BUTTON_SIZE_Y ) ;
111 Text [ en-US ] = "C~reate";
116 //==================================================================
117 // TAB_WIZ_COLUMN_SELECT
118 //==================================================================
119 TabPage TAB_WIZ_COLUMN_SELECT
122 Size = MAP_APPFONT ( WINDOW_SIZE_X , WINDOW_SIZE_Y ) ;
124 HelpId = HID_TAB_WIZ_COLUMN_SELECT;
127 FixedLine FL_COLUMN_SELECT
129 Pos = MAP_APPFONT ( 6 , 3 ) ;
130 Size = MAP_APPFONT ( WINDOW_SIZE_X - 12 , 8 ) ;
131 Text [ en-US ] = "Existing columns" ;
133 MultiListBox LB_ORG_COLUMN_NAMES
135 HelpID = "dbaccess:MultiListBox:TAB_WIZ_COLUMN_SELECT:LB_ORG_COLUMN_NAMES";
137 Pos = MAP_APPFONT ( WINDOW_BORDER_X , WINDOW_BORDER_Y ) ;
138 Size = MAP_APPFONT ( 95 , WINDOW_SIZE_Y - 23 ) ;
146 ImageButton IB_COLUMN_RH
148 HelpID = "dbaccess:ImageButton:TAB_WIZ_COLUMN_SELECT:IB_COLUMN_RH";
149 Pos = MAP_APPFONT ( WINDOW_BORDER_X + 116 , WINDOW_BORDER_Y + 25 ) ;
150 Size = MAP_APPFONT ( 20 , 14 ) ;
156 File = "one_right.png" ;
166 ImageButton IB_COLUMNS_RH
168 HelpID = "dbaccess:ImageButton:TAB_WIZ_COLUMN_SELECT:IB_COLUMNS_RH";
169 Pos = MAP_APPFONT ( WINDOW_BORDER_X + 116 , WINDOW_BORDER_Y + 45 ) ;
170 Size = MAP_APPFONT ( 20 , 14 ) ;
177 File = "all_right.png" ;
187 ImageButton IB_COLUMN_LH
189 HelpID = "dbaccess:ImageButton:TAB_WIZ_COLUMN_SELECT:IB_COLUMN_LH";
190 Pos = MAP_APPFONT ( WINDOW_BORDER_X + 116 , WINDOW_BORDER_Y + 65) ;
191 Size = MAP_APPFONT ( 20 , 14 ) ;
197 File = "one_left.png1" ;
207 ImageButton IB_COLUMNS_LH
209 HelpID = "dbaccess:ImageButton:TAB_WIZ_COLUMN_SELECT:IB_COLUMNS_LH";
210 Pos = MAP_APPFONT ( WINDOW_BORDER_X + 116 , WINDOW_BORDER_Y + 85) ;
211 Size = MAP_APPFONT ( 20 , 14 ) ;
217 File = "all_left.png" ;
228 MultiListBox LB_NEW_COLUMN_NAMES
230 HelpID = "dbaccess:MultiListBox:TAB_WIZ_COLUMN_SELECT:LB_NEW_COLUMN_NAMES";
232 Pos = MAP_APPFONT ( WINDOW_BORDER_X + 157, WINDOW_BORDER_Y) ;
233 Size = MAP_APPFONT ( 95 , WINDOW_SIZE_Y - 23 ) ;
243 //==================================================================
244 // TAB_WIZ_TYPE_SELECT
245 //==================================================================
246 TabPage TAB_WIZ_TYPE_SELECT
249 Size = MAP_APPFONT ( WINDOW_SIZE_X , WINDOW_SIZE_Y ) ;
251 HelpId = HID_TAB_WIZ_TYPE_SELECT;
254 MultiListBox LB_NEW_COLUMN_NAMES
256 HelpID = "dbaccess:MultiListBox:TAB_WIZ_TYPE_SELECT:LB_NEW_COLUMN_NAMES";
258 Pos = MAP_APPFONT ( 6 , 6 ) ;
259 Size = MAP_APPFONT ( 87 , WINDOW_SIZE_Y - 12 ) ;
267 FixedLine FL_COLUMN_NAME
269 Pos = MAP_APPFONT ( 99 , 3 ) ;
270 Size = MAP_APPFONT ( WINDOW_SIZE_X - 105, 8 ) ;
271 Text [ en-US ] = "Column information" ;
274 TabPage CONTROL_CONTAINER
276 HelpID = "dbaccess:TabPage:CONTROL_CONTAINER";
277 Pos = MAP_APPFONT ( 102 , WINDOW_BORDER_Y ) ;
278 Size = MAP_APPFONT ( WINDOW_SIZE_X - 111, WINDOW_SIZE_Y - WINDOW_BORDER_Y - 67 );
280 DialogControl = TRUE;
283 FixedLine FL_AUTO_TYPE
285 Pos = MAP_APPFONT ( 99 , WINDOW_SIZE_Y - WINDOW_BORDER_Y - 41 ) ;
286 Size = MAP_APPFONT ( WINDOW_SIZE_X - 105, 8 ) ;
287 Text [ en-US ] = "Automatic type recognition" ;
292 Pos = MAP_APPFONT ( 105 , WINDOW_SIZE_Y - WINDOW_BORDER_Y - 28 ) ;
293 Size = MAP_APPFONT ( 40 , 8 ) ;
294 Text [ en-US ] = "Lines (ma~x)";
299 HelpID = "dbaccess:NumericField:TAB_WIZ_TYPE_SELECT:ET_AUTO";
301 Pos = MAP_APPFONT ( 151 , WINDOW_SIZE_Y - WINDOW_BORDER_Y - 29) ;
302 Size = MAP_APPFONT ( 40 , 12 ) ;
308 HelpID = "dbaccess:PushButton:TAB_WIZ_TYPE_SELECT:PB_AUTO";
309 Pos = MAP_APPFONT ( WINDOW_SIZE_X - 62 , WINDOW_SIZE_Y - WINDOW_BORDER_Y - 30 ) ;
310 Size = MAP_APPFONT ( BUTTON_SIZE_X , BUTTON_SIZE_Y ) ;
316 Menu RID_SBA_RTF_PKEYPOPUP
322 Identifier = SID_TABLEDESIGN_TABED_PRIMARYKEY ;
323 HelpID = HID_TABLEDESIGN_TABED_PRIMARYKEY ;
325 Text [ en-US ] = "Primary Key" ;
330 //==================================================================
331 // TAB_WIZ_NAME_MATCHING
332 //==================================================================
333 TabPage TAB_WIZ_NAME_MATCHING
335 HelpID = "dbaccess:TabPage:TAB_WIZ_NAME_MATCHING";
337 Size = MAP_APPFONT ( WINDOW_SIZE_X , WINDOW_SIZE_Y ) ;
341 FixedText FT_TABLE_LEFT
343 Pos = MAP_APPFONT ( 52 , 6 ) ;
344 Size = MAP_APPFONT ( 75 , 20) ;
345 Text [ en-US ] = "Source table: \n";
348 FixedText FT_TABLE_RIGHT
350 Pos = MAP_APPFONT ( 144, 6 ) ;
351 Size = MAP_APPFONT ( 75 , 20) ;
352 Text [ en-US ] = "Destination table: \n";
358 Pos = MAP_APPFONT ( 52, 28) ;
359 Size = MAP_APPFONT ( 82 , WINDOW_SIZE_Y - 34 ) ;
361 HelpId = HID_TAB_NAMEMATCHING_COLS_AVAIL;
362 /*DialogControl = TRUE;*/
368 Pos = MAP_APPFONT ( 144, 28) ;
369 Size = MAP_APPFONT ( 82 , WINDOW_SIZE_Y - 34 ) ;
371 HelpId = HID_TAB_NAMEMATCHING_COLS_ASSIGN;
372 /*DialogControl = TRUE;*/
375 ImageButton IB_COLUMN_UP
377 HelpID = "dbaccess:ImageButton:TAB_WIZ_NAME_MATCHING:IB_COLUMN_UP";
378 Pos = MAP_APPFONT ( 19 , 45 ) ;
379 Size = MAP_APPFONT ( 14 , 14 ) ;
386 File = "sortup.png" ;
396 ImageButton IB_COLUMN_DOWN
398 HelpID = "dbaccess:ImageButton:TAB_WIZ_NAME_MATCHING:IB_COLUMN_DOWN";
399 Pos = MAP_APPFONT ( 19 , 63 ) ;
400 Size = MAP_APPFONT ( 14 , 14 ) ;
406 File = "sortdown.png" ;
416 ImageButton IB_COLUMN_UP_RIGHT
418 HelpID = "dbaccess:ImageButton:TAB_WIZ_NAME_MATCHING:IB_COLUMN_UP_RIGHT";
419 Pos = MAP_APPFONT ( WINDOW_SIZE_X - 33, 45 ) ;
420 Size = MAP_APPFONT ( 14 , 14 ) ;
427 File = "sortup.png" ;
437 ImageButton IB_COLUMN_DOWN_RIGHT
439 HelpID = "dbaccess:ImageButton:TAB_WIZ_NAME_MATCHING:IB_COLUMN_DOWN_RIGHT";
440 Pos = MAP_APPFONT ( WINDOW_SIZE_X - 33, 63) ;
441 Size = MAP_APPFONT ( 14 , 14 ) ;
447 File = "sortdown.png" ;
460 HelpID = "dbaccess:PushButton:TAB_WIZ_NAME_MATCHING:PB_ALL";
461 Pos = MAP_APPFONT ( 6, 83) ;
462 Size = MAP_APPFONT ( 40 , 14 ) ;
464 Text [ en-US ] = "~All" ;
469 HelpID = "dbaccess:PushButton:TAB_WIZ_NAME_MATCHING:PB_NONE";
470 Pos = MAP_APPFONT ( 6, 103) ;
471 Size = MAP_APPFONT ( 40 , 14 ) ;
473 Text [ en-US ] = "Non~e" ;
477 TabPage TAB_WIZ_COPYTABLE
480 Size = MAP_APPFONT ( WINDOW_SIZE_X, WINDOW_SIZE_Y ) ;
482 HelpId = HID_TAB_WIZ_COPYTABLE;
485 FixedText FT_TABLENAME
487 Pos = MAP_APPFONT ( 12 , 11) ;
488 Size = MAP_APPFONT ( 60 , 8 ) ;
489 Text [ en-US ] = "Ta~ble name";
494 HelpId = HID_TAB_WIZ_TABLENAME_EDIT;
496 Pos = MAP_APPFONT ( 80 , 9) ;
497 Size = MAP_APPFONT ( WINDOW_SIZE_X - 92 , 12 ) ;
503 Pos = MAP_APPFONT ( 6 , 24 ) ;
504 Size = MAP_APPFONT ( WINDOW_SIZE_X - 12 , 8 ) ;
505 Text [ en-US ] = "Options" ;
507 RadioButton RB_DEFDATA
509 HelpID = "dbaccess:RadioButton:TAB_WIZ_COPYTABLE:RB_DEFDATA";
510 Pos = MAP_APPFONT ( 12 , 35 ) ;
511 Size = MAP_APPFONT ( 73 , 10 ) ;
512 Text [ en-US ] = "De~finition and data" ;
516 HelpID = "dbaccess:RadioButton:TAB_WIZ_COPYTABLE:RB_DEF";
517 Pos = MAP_APPFONT ( 12, 49 ) ;
518 Size = MAP_APPFONT ( 73 , 10 ) ;
519 Text [ en-US ] = "Def~inition" ;
524 HelpID = "dbaccess:RadioButton:TAB_WIZ_COPYTABLE:RB_VIEW";
525 Pos = MAP_APPFONT ( 12, 63 ) ;
526 Size = MAP_APPFONT ( 73 , 10 ) ;
527 Text [ en-US ] = "A~s table view";
530 RadioButton RB_APPENDDATA
532 HelpID = "dbaccess:RadioButton:TAB_WIZ_COPYTABLE:RB_APPENDDATA";
533 Pos = MAP_APPFONT ( 12, 77 ) ;
534 Size = MAP_APPFONT ( 73 , 10 ) ;
535 Text [ en-US ] = "Append ~data" ;
538 CheckBox CB_USEHEADERLINE
540 HelpID = "dbaccess:CheckBox:TAB_WIZ_COPYTABLE:CB_USEHEADERLINE";
541 Pos = MAP_APPFONT ( 12, 93 ) ;
542 Size = MAP_APPFONT ( WINDOW_SIZE_X - 18, 10 ) ;
543 Text [ en-US ] = "Use first ~line as column names" ;
546 CheckBox CB_PRIMARY_COLUMN
548 HelpID = "dbaccess:CheckBox:TAB_WIZ_COPYTABLE:CB_PRIMARY_COLUMN";
549 Pos = MAP_APPFONT ( 12, 107 ) ;
550 Size = MAP_APPFONT ( 90 , 10 ) ;
551 Text [ en-US ] = "Crea~te primary key";
555 Pos = MAP_APPFONT ( 21 , 122 ) ;
556 Size = MAP_APPFONT ( 39 , 8 ) ;
557 Text [ en-US ] = "Name";
562 HelpID = "dbaccess:Edit:TAB_WIZ_COPYTABLE:ET_KEYNAME";
563 Pos = MAP_APPFONT ( 80, 120 ) ;
564 Size = MAP_APPFONT ( 65 , 12 ) ;
570 String STR_WIZ_TABLE_COPY
572 Text [ en-US ] = "Copy table" ;
575 String STR_COPYTABLE_TITLE_COPY
577 Text [ en-US ] = "Copy table" ;
580 String STR_INVALID_TABLE_NAME
582 Text [ en-US ] = "This table name is not valid in the current database.";
584 String STR_SUGGEST_APPEND_TABLE_DATA
586 Text [ en-US ] = "Choose the option 'Append data' on the first page to append data to an existing table.";
589 String STR_INVALID_TABLE_NAME_LENGTH
591 Text [ en-US ] = "Please change the table name. It is too long.";