1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: dbadminsetup.src,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _DBAUI_DBADMINSETUP_HRC_
32 #include "dbadminsetup.hrc"
35 #ifndef _DBAUI_AUTOCONTROLS_HRC_
36 #include "AutoControls.hrc"
40 #define CHECKBOX_HEIGHT 8
41 #define FIXEDTEXT_HEIGHT 8
42 #define RELATED_CONTROLS 4
43 #define UNRELATED_CONTROLS 7
44 #define EDIT_HEIGHT 12
48 // -----------------------------------------------------------------------------
49 ModalDialog DLG_DATABASE_WIZARD
54 HelpId = HID_DLG_DATABASE_WIZARD;
56 Text[ en-US ] = "Database Wizard" ;
61 HelpId = HID_DSADMIN_TABCONTROL;
65 String STR_DBWIZARDTITLE
67 Text[ en-US ] = "Database Wizard" ;
70 String STR_PAGETITLE_INTROPAGE
72 Text[ en-US ] = "Select database" ;
75 String STR_PAGETITLE_DBASE
77 Text[ en-US ] = "Set up dBASE connection" ;
81 String STR_PAGETITLE_TEXT
83 Text[ en-US ] = "Set up a connection to text files" ;
87 String STR_PAGETITLE_MSACCESS
89 Text[ en-US ] = "Set up Microsoft Access connection" ;
92 String STR_PAGETITLE_LDAP
94 Text[ en-US ] = "Set up LDAP connection" ;
97 String STR_PAGETITLE_ADABAS
99 Text[ en-US ] = "Set up Adabas D connection" ;
102 String STR_PAGETITLE_ADO
104 Text[ en-US ] = "Set up ADO connection" ;
107 String STR_PAGETITLE_JDBC
109 Text[ en-US ] = "Set up JDBC connection" ;
112 String STR_PAGETITLE_ORACLE
114 Text[ en-US ] = "Set up Oracle database connection" ;
117 String STR_PAGETITLE_MYSQL
119 Text[ en-US ] = "Set up MySQL connection" ;
122 String STR_PAGETITLE_ODBC
124 Text[ en-US ] = "Set up ODBC connection" ;
127 String STR_PAGETITLE_SPREADSHEET
129 Text[ en-US ] = "Set up Spreadsheet connection" ;
132 String STR_PAGETITLE_AUTHENTIFICATION
134 Text[ en-US ] = "Set up user authentication" ;
137 String STR_PAGETITLE_MYSQL_NATIVE
139 Text [ en-US ] = "Set up MySQL server data";
142 String STR_PAGETITLE_FINAL
144 Text[ en-US ] = "Save and proceed" ;
149 String STR_DATABASEDEFAULTNAME
151 Text[ en-US ] = "New Database" ;
155 TabPage PAGE_DBWIZARD_MYSQL_INTRO
158 Pos = MAP_APPFONT ( 0 , 0 ) ;
159 Size = MAP_APPFONT ( WIZARD_PAGE_X , WIZARD_PAGE_Y ) ;
162 FixedText FT_MYSQL_HEADERTEXT
164 Pos = MAP_APPFONT ( START_X , 8 ) ;
165 Size = MAP_APPFONT ( (WIZARD_PAGE_X - START_X) - 12 , 2 * FIXEDTEXT_HEIGHT ) ;
166 Text[ en-US ] = "Set up a connection to a MySQL database";
171 FixedText FT_MYSQL_HELPTEXT
173 Pos = MAP_APPFONT (START_X , 27 ) ;
174 Size = MAP_APPFONT ( 213 , 48 ) ;
175 Text[ en-US ] = "You can connect to a MySQL database using either ODBC or JDBC.\nPlease contact your system administrator if you are unsure about the following settings.";
179 FixedText FT_MYSQLCONNECTIONMODE
181 Pos = MAP_APPFONT (START_X , 79 ) ;
182 Size = MAP_APPFONT ( 209 , 8 ) ;
183 Text[ en-US ] = "How do you want to connect to your MySQL database?" ;
186 RadioButton RB_CONNECTVIAODBC
188 HelpId = HID_PAGE_DBWIZARD_MYSQL_RB_CONNECTVIAODBC ;
189 Pos = MAP_APPFONT (START_X + 6 , 91 ) ;
190 Size = MAP_APPFONT ( 205 , 9 ) ;
191 Text[ en-US ] = "Connect using ODBC (Open Database Connectivity)" ;
194 RadioButton RB_CONNECTVIAJDBC
196 HelpId = HID_PAGE_DBWIZARD_MYSQL_RB_CONNECTVIAJDBC ;
197 Pos = MAP_APPFONT (START_X + 6, 103 ) ;
198 Size = MAP_APPFONT ( 208 , 8 ) ;
199 Text[ en-US ] = "Connect using JDBC (Java Database Connectivity)" ;
201 RadioButton RB_CONNECTVIANATIVE
203 Pos = MAP_APPFONT (START_X + 6 , 115 ) ;
204 Size = MAP_APPFONT ( 205 , 9 ) ;
205 Text[ en-US ] = "Connect directly" ;
211 #define AUTHENTEDIT_X (EDIT_X - 10)
213 TabPage PAGE_DBWIZARD_AUTHENTIFICATION
216 Pos = MAP_APPFONT ( 0 , 0 ) ;
217 Size = MAP_APPFONT ( WIZARD_PAGE_X , WIZARD_PAGE_Y ) ;
220 FixedText FT_AUTHENTIFICATIONHEADERTEXT
222 Pos = MAP_APPFONT ( START_X , 8 ) ;
223 Size = MAP_APPFONT ( (WIZARD_PAGE_X - START_X) - 12 , 2 * FIXEDTEXT_HEIGHT ) ;
224 Text[ en-US ] = "Set up the user authentication";
229 FixedText FT_AUTHENTIFICATIONHELPTEXT\
231 Pos = MAP_APPFONT (START_X , 27 ) ;
232 Size = MAP_APPFONT ( WIZARD_PAGE_X - START_X - 6, 3*FIXEDTEXT_HEIGHT ) ;
233 Text[ en-US ] = "Some databases require you to enter a user name." ;\
237 FixedText FT_GENERALUSERNAME
239 Pos = MAP_APPFONT (START_X , 62 ) ;
240 Size = MAP_APPFONT ( AUTHENTEDIT_X - START_X , FIXEDTEXT_HEIGHT ) ;
241 Text[ en-US ] = "~User name" ;
244 Edit ET_GENERALUSERNAME
247 HelpId = HID_PAGE_DBWIZARD_AUTHENTIFICATION_ET_GENERALUSERNAME ;
248 Pos = MAP_APPFONT (AUTHENTEDIT_X , 60 ) ;
249 Size = MAP_APPFONT ( (WIZARD_PAGE_X - AUTHENTEDIT_X - 6), EDIT_HEIGHT ) ;
252 CheckBox CB_GENERALPASSWORDREQUIRED
254 HelpId = HID_PAGE_DBWIZARD_AUTHENTIFICATION_CB_GENERALPASSWORDREQUIRED ;
255 Pos = MAP_APPFONT (AUTHENTEDIT_X , 76 );
256 Size = MAP_APPFONT ( 93 , CHECKBOX_HEIGHT );
257 Text[ en-US ] = "Password re~quired" ;
260 PushButton PB_TESTCONNECTION
262 HelpId = HID_PAGE_DBWIZARD_AUTHENTIFICATION_PB_TESTCONNECTION ;
263 Pos = MAP_APPFONT (WIZARD_PAGE_X - BUTTON_WIDTH - UNRELATED_CONTROLS , WIZARD_PAGE_Y - 18 ) ;
264 Size = MAP_APPFONT ( BUTTON_WIDTH , BUTTON_HEIGHT ) ;
265 Text[ en-US ] = "~Test Connection" ;
271 TabPage PAGE_DBWIZARD_FINAL
274 Pos = MAP_APPFONT ( 0 , 0 ) ;
275 Size = MAP_APPFONT ( WIZARD_PAGE_X , WIZARD_PAGE_Y ) ;
279 FixedText FT_FINALHEADER
281 Pos = MAP_APPFONT ( START_X , 8 ) ;
282 Size = MAP_APPFONT ( WIZARD_PAGE_X - START_X - 6 , 2* FIXEDTEXT_HEIGHT ) ;
283 Text[ en-US ] = "Decide how to proceed after saving the database";
287 FixedText FT_FINALHELPTEXT
289 Pos = MAP_APPFONT (START_X , 27 ) ;
290 Size = MAP_APPFONT ( WIZARD_PAGE_X - START_X - 6, 2*FIXEDTEXT_HEIGHT ) ;
291 Text[ en-US ] = "Do you want the wizard to register the database in %PRODUCTNAME?" ;
296 RadioButton RB_REGISTERDATASOURCE
298 HelpId = HID_PAGE_DBWIZARD_FINAL_RB_REGISTERDATASOURCE;
299 Pos = MAP_APPFONT (START_X + 6 , 45 ) ;
300 Size = MAP_APPFONT ( 205 , 9 ) ;
302 Text[ en-US ] = "~Yes, register the database for me" ;
306 RadioButton RB_DONTREGISTERDATASOURCE
308 HelpId = HID_PAGE_DBWIZARD_FINAL_RB_DONTREGISTERDATASOURCE ;
309 Pos = MAP_APPFONT (START_X + 6, 57 ) ;
310 Size = MAP_APPFONT ( 208 , 8 ) ;
311 Text[ en-US ] = "N~o, do not register the database" ;
314 FixedText FT_ADDITIONALSETTINGS
316 Pos = MAP_APPFONT (START_X , 100 ) ;
317 Size = MAP_APPFONT ( WIZARD_PAGE_X - START_X - 6 , 8 ) ;
318 Text[ en-US ] = "~After the database file has been saved, what do you want to do?" ;
321 CheckBox CB_OPENAFTERWARDS
323 HelpId = HID_PAGE_DBWIZARD_FINAL_CB_OPENAFTERWARDS ;
324 Pos = MAP_APPFONT (START_X + 6, 118 ) ;
325 Size = MAP_APPFONT ( WIZARD_PAGE_X - START_X , 8 ) ;
326 Text[ en-US ] = "Open the database for editing" ;
329 CheckBox CB_STARTTABLEWIZARD
331 HelpId = HID_PAGE_DBWIZARD_FINAL_CB_STARTTABLEWIZARD ;
332 Pos = MAP_APPFONT (START_X + 6, 130 ) ;
333 Size = MAP_APPFONT ( WIZARD_PAGE_X - START_X - 12 , 8 ) ;
334 Text[ en-US ] = "Create tables using the table wizard" ;
338 FixedText FT_FINALTEXT
340 Pos = MAP_APPFONT ( START_X , 173 ) ;
341 Size = MAP_APPFONT ( WIZARD_PAGE_X - START_X - 6 , 2* FIXEDTEXT_HEIGHT ) ;
342 Text[ en-US ] = "Click 'Finish' to save the database.";
347 TabPage PAGE_DBWIZARD_MYSQL_JDBC
350 Pos = MAP_APPFONT ( 0 , 0 ) ;
351 Size = MAP_APPFONT ( WIZARD_PAGE_X , WIZARD_PAGE_Y ) ;
355 String STR_MYSQLJDBC_HEADERTEXT
357 Text[ en-US ] = "Set up connection to a MySQL database using JDBC" ;
360 String STR_MYSQLJDBC_HELPTEXT
362 Text[ en-US ] = "Please enter the required information to connect to a MySQL database using JDBC. Note that a JDBC driver class must be installed on your system and registered with %PRODUCTNAME.\nPlease contact your system administrator if you are unsure about the following settings.";
365 String STR_MYSQL_DRIVERCLASSTEXT
367 Text [ en-US ] = "MySQL JDBC d~river class:";
371 String STR_MYSQL_DEFAULT
373 Text[ en-US ] = "Default: 3306";
376 AUTOHELP_JDBCCONTROLGROUP(HID_PAGE_DBWIZARD_JDBC_ET_MYSQLDBNAME)
379 TabPage PAGE_DBWIZARD_MYSQL_NATIVE
382 Pos = MAP_APPFONT ( 0, 0 ) ;
383 Size = MAP_APPFONT ( WIZARD_PAGE_X , WIZARD_PAGE_Y ) ;
386 FixedText FT_SETUP_WIZARD_HEADER
388 Pos = MAP_APPFONT ( START_X , 8 ) ;
389 Size = MAP_APPFONT ( WIZARD_PAGE_X - START_X - 12 , 2 * FIXEDTEXT_HEIGHT ) ;
390 Text[ en-US ] = "Set up connection to a MySQL database" ;
394 FixedText FT_SETUP_WIZARD_HELP
396 Pos = MAP_APPFONT ( START_X , INIT_Y ) ;
397 Size = MAP_APPFONT ( WIZARD_PAGE_X - START_X - 12 , 3 * FIXEDTEXT_HEIGHT ) ;
398 Text [ en-US ] = "Please enter the required information to connect to a MySQL database.";
404 TabPage PAGE_DBWIZARD_DBASE
407 Pos = MAP_APPFONT ( 0 , 0 ) ;
408 Size = MAP_APPFONT ( WIZARD_PAGE_X , WIZARD_PAGE_Y ) ;
411 String STR_DBASE_HEADERTEXT
413 Text[ en-US ] = "Set up a connection to dBASE files" ;
417 String STR_DBASE_HELPTEXT
419 Text[ en-US ] = "Select the folder where the dBASE files are stored." ;
422 AUTO_HELP_BROWSECONTROLGROUP( 3, HID_PAGE_DBWIZARD_DBASE_ET_DBASELOCATION)
426 TabPage PAGE_DBWIZARD_TEXT
429 String STR_TEXT_HEADERTEXT
431 Text[ en-US ] = "Set up a connection to text files" ;
435 String STR_TEXT_HELPTEXT
437 Text[ en-US ] = "Select the folder where the CSV (Comma Separated Values) text files are stored. %PRODUCTNAME Base will open these files in read-only mode." ;
441 String STR_TEXT_PATH_OR_FILE{
442 Text[ en-US ] = "Path to text files";
446 AUTO_HELP_BROWSECONTROLGROUP(3, HID_PAGE_DBWIZARD_TEXT_ET_LOCATIONTEXTFILE)
447 AUTO_SEPARATORCONTROLGROUP(82, WIZARD_PAGE_X)
452 TabPage PAGE_DBWIZARD_MSACCESS
455 Pos = MAP_APPFONT ( 0 , 0 ) ;
456 Size = MAP_APPFONT ( WIZARD_PAGE_X , WIZARD_PAGE_Y ) ;
459 String STR_MSACCESS_HEADERTEXT
461 Text[ en-US ] = "Set up a connection to a Microsoft Access database" ;
465 String STR_MSACCESS_HELPTEXT
467 Text[ en-US ] = "Please select the Microsoft Access file you want to access.";
470 AUTO_HELP_BROWSECONTROLGROUP(3, HID_PAGE_DBWIZARD_MSACCESS_ET_MSACCESSLOCATION)
471 // FT_MSACCESS_MDB_FILE
475 TabPage PAGE_DBWIZARD_LDAP
478 Pos = MAP_APPFONT ( 0 , 0 ) ;
479 Size = MAP_APPFONT ( WIZARD_PAGE_X , WIZARD_PAGE_Y ) ;
482 FixedText FT_LDAP_HEADERTEXT
484 Pos = MAP_APPFONT ( START_X , 8 ) ;
485 Size = MAP_APPFONT ( (WIZARD_PAGE_X - START_X) - 12 , 2 * FIXEDTEXT_HEIGHT ) ;
486 Text[ en-US ] = "Set up a connection to an LDAP directory";
491 FixedText FT_LDAP_HELPTEXT
493 Pos = MAP_APPFONT (START_X , 27 ) ;
494 Size = MAP_APPFONT (WIZARD_PAGE_X - START_X - 6, 5 * FIXEDTEXT_HEIGHT ) ;
495 Text[ en-US ] = "Please enter the required information to connect to an LDAP directory.\nPlease contact your system administrator if you are unsure about the following settings." ;
498 AUTO_HOSTCONTROLGROUP( INIT_Y + 7 * FIXEDTEXT_HEIGHT + UNRELATED_CONTROLS, HID_PAGE_DBWIZARD_LDAP_ET_HOSTSERVER)
499 AUTO_BASEDNCONTROLGROUP(INIT_Y + 7 * FIXEDTEXT_HEIGHT + UNRELATED_CONTROLS + EDIT_HEIGHT + RELATED_CONTROLS, HID_PAGE_DBWIZARD_LDAP_ET_BASEDN)
500 AUTO_PORTCONTROLGROUP( INIT_Y + 7 * FIXEDTEXT_HEIGHT + UNRELATED_CONTROLS + 2 * EDIT_HEIGHT + 2 * RELATED_CONTROLS, HID_PAGE_DBWIZARD_LDAP_ET_PORTNUMBER)
502 String STR_LDAP_DEFAULT{
503 Text[ en-US ] = "Default: 389" ;
506 CheckBox CB_WIZ_USESSL
508 HelpId = HID_PAGE_DBWIZARD_LDAP_CB_USESSL ;
509 Pos = MAP_APPFONT (START_X , INIT_Y + 7 * FIXEDTEXT_HEIGHT + UNRELATED_CONTROLS + 3 * EDIT_HEIGHT + 4 * RELATED_CONTROLS ) ;
510 Size = MAP_APPFONT ( 212 , 8 ) ;
511 Text[ en-US ] = "Use ~secure connection (SSL)" ;
516 TabPage PAGE_DBWIZARD_ADABAS
519 Pos = MAP_APPFONT ( 0 , 0 ) ;
520 Size = MAP_APPFONT ( WIZARD_PAGE_X , WIZARD_PAGE_Y ) ;
523 String STR_ADABAS_HEADERTEXT
525 Text[ en-US ] = "Set up a connection to an Adabas D database" ;
529 String STR_ADABAS_HELPTEXT{
530 Text[ en-US ] = "Enter the name of the Adabas D database you want to connect to.\nClick 'Browse...' to select an Adabas D database that is already registered in %PRODUCTNAME." ;
533 AUTO_HELP_BROWSECONTROLGROUP(4, HID_PAGE_DBWIZARD_ADABAS_ET_ADABASNAME)
537 TabPage PAGE_DBWIZARD_ADO
540 Pos = MAP_APPFONT ( 0 , 0 ) ;
541 Size = MAP_APPFONT ( WIZARD_PAGE_X , WIZARD_PAGE_Y ) ;
544 String STR_ADO_HEADERTEXT
546 Text[ en-US ] = "Set up a connection to an ADO database" ;
549 String STR_ADO_HELPTEXT{
550 Text[ en-US ] = "Please enter the URL of the ADO data source you want to connect to.\nClick 'Browse' to configure provider-specific settings.\nPlease contact your system administrator if you are unsure about the following settings." ;
553 AUTO_HELP_BROWSECONTROLGROUP(5, HID_PAGE_DBWIZARD_ADO_ET_ADOURL)
558 TabPage PAGE_DBWIZARD_ODBC
561 Pos = MAP_APPFONT ( 0 , 0 ) ;
562 Size = MAP_APPFONT ( WIZARD_PAGE_X , WIZARD_PAGE_Y ) ;
565 String STR_ODBC_HEADERTEXT
567 Text[ en-US ] = "Set up a connection to an ODBC database" ;
570 String STR_ODBC_HELPTEXT{
571 Text[ en-US ] = "Enter the name of the ODBC database you want to connect to.\nClick 'Browse...' to select an ODBC database that is already registered in %PRODUCTNAME.\nPlease contact your system administrator if you are unsure about the following settings." ;
574 AUTO_HELP_BROWSECONTROLGROUP(6, HID_PAGE_DBWIZARD_ODBC_ET_NAMEOFODBCDATASOURCE)
577 TabPage PAGE_DBWIZARD_USERDEFINED
580 Pos = MAP_APPFONT ( 0 , 0 ) ;
581 Size = MAP_APPFONT ( WIZARD_PAGE_X , WIZARD_PAGE_Y ) ;
584 AUTO_HELP_BROWSECONTROLGROUP(6, HID_PAGE_DBWIZARD_USERDEFINED_ET_BROWSE)
589 TabPage PAGE_DBWIZARD_JDBC
592 Pos = MAP_APPFONT ( 0 , 0 ) ;
593 Size = MAP_APPFONT ( WIZARD_PAGE_X , WIZARD_PAGE_Y ) ;
596 String STR_JDBC_HEADERTEXT
598 Text[ en-US ] = "Set up a connection to a JDBC database" ;
601 String STR_JDBC_HELPTEXT{
602 Text[ en-US ] = "Please enter the required information to connect to a JDBC database.\nPlease contact your system administrator if you are unsure about the following settings." ;
605 AUTO_HELP_BROWSECONTROLGROUP(4, HID_PAGE_DBWIZARD_JDBC_ET_JDBCURL)
606 AUTO_JDBCDRIVERCLASSGROUP(119, HID_PAGE_DBWIZARD_JDBC_ET_JDBCCLASS)
611 TabPage PAGE_DBWIZARD_ORACLE
614 Pos = MAP_APPFONT ( 0 , 0 ) ;
615 Size = MAP_APPFONT ( WIZARD_PAGE_X , WIZARD_PAGE_Y ) ;
618 String STR_ORACLE_HEADERTEXT
620 Text[ en-US ] = "Set up a connection to an Oracle database";
623 String STR_ORACLE_DEFAULT
625 Text[ en-US ] = "Default: 1521" ;
629 String STR_ORACLE_DRIVERCLASSTEXT{
630 Text [ en-US ] = "Oracle JDBC ~driver class";
634 String STR_ORACLE_HELPTEXT{
635 Text[ en-US ] = "Please enter the required information to connect to an Oracle database.Note that a JDBC Driver Class must be installed on your system and registered with %PRODUCTNAME.\nPlease contact your system administrator if you are unsure about the following settings." ;
638 AUTOHELP_JDBCCONTROLGROUP(HID_PAGE_DBWIZARD_ORACLE_ET_ORACLEDBNAME)
642 TabPage PAGE_DBWIZARD_SPREADSHEET
645 Pos = MAP_APPFONT ( 0 , 0 ) ;
646 Size = MAP_APPFONT ( WIZARD_PAGE_X , WIZARD_PAGE_Y ) ;
649 String STR_SPREADSHEET_HEADERTEXT
651 Text[ en-US ] = "Set up a connection to spreadsheets";
655 String STR_SPREADSHEET_HELPTEXT{
656 Text[ en-US ] = "Click 'Browse...' to select a %PRODUCTNAME spreadsheet or Microsoft Excel workbook.\n%PRODUCTNAME will open this file in read-only mode." ;
660 AUTO_HELP_BROWSECONTROLGROUP(3, HID_PAGE_DBWIZARD_SPREADSHEET_ET_SPREADSHEETPATH )
662 String STR_SPREADSHEETPATH{
663 Text[ en-US ] = "~Location and file name" ;
667 CheckBox CB_SPREADSHEETPASSWORDREQUIRED
669 HelpId = HID_PAGE_DBWIZARD_SPREADSHEET_CB_SPREADSHEETPASSWORDREQUIRED ;
670 Pos = MAP_APPFONT (START_X + UNRELATED_CONTROLS , 83 ) ;
671 Size = MAP_APPFONT ( 93 , 11 ) ;
672 Text[ en-US ] = "~Password required" ;