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" ;
82 String STR_PAGETITLE_TEXT
84 Text[ en-US ] = "Set up a connection to text files" ;
88 String STR_PAGETITLE_MSACCESS
90 Text[ en-US ] = "Set up Microsoft Access connection" ;
93 String STR_PAGETITLE_LDAP
95 Text[ en-US ] = "Set up LDAP connection" ;
98 String STR_PAGETITLE_ADABAS
100 Text[ en-US ] = "Set up Adabas D connection" ;
103 String STR_PAGETITLE_ADO
105 Text[ en-US ] = "Set up ADO connection" ;
108 String STR_PAGETITLE_JDBC
110 Text[ en-US ] = "Set up JDBC connection" ;
113 String STR_PAGETITLE_ORACLE
115 Text[ en-US ] = "Set up Oracle database connection" ;
118 String STR_PAGETITLE_MYSQL
120 Text[ en-US ] = "Set up MySQL connection" ;
123 String STR_PAGETITLE_ODBC
125 Text[ en-US ] = "Set up ODBC connection" ;
128 String STR_PAGETITLE_SPREADSHEET
130 Text[ en-US ] = "Set up Spreadsheet connection" ;
133 String STR_PAGETITLE_AUTHENTIFICATION
135 Text[ en-US ] = "Set up user authentication" ;
138 String STR_PAGETITLE_FINAL
140 Text[ en-US ] = "Save and proceed" ;
145 String STR_DATABASEDEFAULTNAME
147 Text[ en-US ] = "New Database" ;
151 TabPage PAGE_DBWIZARD_MYSQL_INTRO
154 Pos = MAP_APPFONT ( 0 , 0 ) ;
155 Size = MAP_APPFONT ( WIZARD_PAGE_X , WIZARD_PAGE_Y ) ;
158 FixedText FT_MYSQL_HEADERTEXT
160 Pos = MAP_APPFONT ( START_X , 8 ) ;
161 Size = MAP_APPFONT ( (WIZARD_PAGE_X - START_X) - 12 , 2 * FIXEDTEXT_HEIGHT ) ;
162 Text[ en-US ] = "Set up a connection to a MySQL database";
167 FixedText FT_MYSQL_HELPTEXT
169 Pos = MAP_APPFONT (START_X , 27 ) ;
170 Size = MAP_APPFONT ( 213 , 48 ) ;
171 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.";
175 FixedText FT_MYSQLCONNECTIONMODE
177 Pos = MAP_APPFONT (START_X , 79 ) ;
178 Size = MAP_APPFONT ( 209 , 8 ) ;
179 Text[ en-US ] = "How do you want to connect to your MySQL database?" ;
182 RadioButton RB_CONNECTVIAODBC
184 HelpId = HID_PAGE_DBWIZARD_MYSQL_RB_CONNECTVIAODBC ;
185 Pos = MAP_APPFONT (START_X + 6 , 91 ) ;
186 Size = MAP_APPFONT ( 205 , 9 ) ;
187 Text[ en-US ] = "Connect using ODBC (Open Database Connectivity)" ;
190 RadioButton RB_CONNECTVIAJDBC
192 HelpId = HID_PAGE_DBWIZARD_MYSQL_RB_CONNECTVIAJDBC ;
193 Pos = MAP_APPFONT (START_X + 6, 103 ) ;
194 Size = MAP_APPFONT ( 208 , 8 ) ;
195 Text[ en-US ] = "Connect using JDBC (Java Database Connectivity)" ;
197 RadioButton RB_CONNECTVIANATIVE
199 Pos = MAP_APPFONT (START_X + 6 , 115 ) ;
200 Size = MAP_APPFONT ( 205 , 9 ) ;
201 Text[ en-US ] = "Connect native" ;
207 #define AUTHENTEDIT_X (EDIT_X - 10)
209 TabPage PAGE_DBWIZARD_AUTHENTIFICATION
212 Pos = MAP_APPFONT ( 0 , 0 ) ;
213 Size = MAP_APPFONT ( WIZARD_PAGE_X , WIZARD_PAGE_Y ) ;
216 FixedText FT_AUTHENTIFICATIONHEADERTEXT
218 Pos = MAP_APPFONT ( START_X , 8 ) ;
219 Size = MAP_APPFONT ( (WIZARD_PAGE_X - START_X) - 12 , 2 * FIXEDTEXT_HEIGHT ) ;
220 Text[ en-US ] = "Set up the user authentication";
225 FixedText FT_AUTHENTIFICATIONHELPTEXT\
227 Pos = MAP_APPFONT (START_X , 27 ) ;
228 Size = MAP_APPFONT ( WIZARD_PAGE_X - START_X - 6, 3*FIXEDTEXT_HEIGHT ) ;
229 Text[ en-US ] = "Some databases require you to enter a user name." ;\
233 FixedText FT_GENERALUSERNAME
235 Pos = MAP_APPFONT (START_X , 62 ) ;
236 Size = MAP_APPFONT ( AUTHENTEDIT_X - START_X , FIXEDTEXT_HEIGHT ) ;
237 Text[ en-US ] = "~User name" ;
240 Edit ET_GENERALUSERNAME
243 HelpId = HID_PAGE_DBWIZARD_AUTHENTIFICATION_ET_GENERALUSERNAME ;
244 Pos = MAP_APPFONT (AUTHENTEDIT_X , 60 ) ;
245 Size = MAP_APPFONT ( (WIZARD_PAGE_X - AUTHENTEDIT_X - 6), EDIT_HEIGHT ) ;
248 CheckBox CB_GENERALPASSWORDREQUIRED
250 HelpId = HID_PAGE_DBWIZARD_AUTHENTIFICATION_CB_GENERALPASSWORDREQUIRED ;
251 Pos = MAP_APPFONT (AUTHENTEDIT_X , 76 );
252 Size = MAP_APPFONT ( 93 , CHECKBOX_HEIGHT );
253 Text[ en-US ] = "Password re~quired" ;
256 PushButton PB_TESTCONNECTION
258 HelpId = HID_PAGE_DBWIZARD_AUTHENTIFICATION_PB_TESTCONNECTION ;
259 Pos = MAP_APPFONT (WIZARD_PAGE_X - BUTTON_WIDTH - UNRELATED_CONTROLS , WIZARD_PAGE_Y - 18 ) ;
260 Size = MAP_APPFONT ( BUTTON_WIDTH , BUTTON_HEIGHT ) ;
261 Text[ en-US ] = "~Test Connection" ;
267 TabPage PAGE_DBWIZARD_FINAL
270 Pos = MAP_APPFONT ( 0 , 0 ) ;
271 Size = MAP_APPFONT ( WIZARD_PAGE_X , WIZARD_PAGE_Y ) ;
275 FixedText FT_FINALHEADER
277 Pos = MAP_APPFONT ( START_X , 8 ) ;
278 Size = MAP_APPFONT ( WIZARD_PAGE_X - START_X - 6 , 2* FIXEDTEXT_HEIGHT ) ;
279 Text[ en-US ] = "Decide how to proceed after saving the database";
283 FixedText FT_FINALHELPTEXT
285 Pos = MAP_APPFONT (START_X , 27 ) ;
286 Size = MAP_APPFONT ( WIZARD_PAGE_X - START_X - 6, 2*FIXEDTEXT_HEIGHT ) ;
287 Text[ en-US ] = "Do you want the wizard to register the database in %PRODUCTNAME?" ;
292 RadioButton RB_REGISTERDATASOURCE
294 HelpId = HID_PAGE_DBWIZARD_FINAL_RB_REGISTERDATASOURCE;
295 Pos = MAP_APPFONT (START_X + 6 , 45 ) ;
296 Size = MAP_APPFONT ( 205 , 9 ) ;
298 Text[ en-US ] = "~Yes, register the database for me" ;
302 RadioButton RB_DONTREGISTERDATASOURCE
304 HelpId = HID_PAGE_DBWIZARD_FINAL_RB_DONTREGISTERDATASOURCE ;
305 Pos = MAP_APPFONT (START_X + 6, 57 ) ;
306 Size = MAP_APPFONT ( 208 , 8 ) ;
307 Text[ en-US ] = "N~o, do not register the database" ;
310 FixedText FT_ADDITIONALSETTINGS
312 Pos = MAP_APPFONT (START_X , 100 ) ;
313 Size = MAP_APPFONT ( WIZARD_PAGE_X - START_X - 6 , 8 ) ;
314 Text[ en-US ] = "~After the database file has been saved, what do you want to do?" ;
317 CheckBox CB_OPENAFTERWARDS
319 HelpId = HID_PAGE_DBWIZARD_FINAL_CB_OPENAFTERWARDS ;
320 Pos = MAP_APPFONT (START_X + 6, 118 ) ;
321 Size = MAP_APPFONT ( WIZARD_PAGE_X - START_X , 8 ) ;
322 Text[ en-US ] = "Open the database for editing" ;
325 CheckBox CB_STARTTABLEWIZARD
327 HelpId = HID_PAGE_DBWIZARD_FINAL_CB_STARTTABLEWIZARD ;
328 Pos = MAP_APPFONT (START_X + 6, 130 ) ;
329 Size = MAP_APPFONT ( WIZARD_PAGE_X - START_X - 12 , 8 ) ;
330 Text[ en-US ] = "Create tables using the table wizard" ;
334 FixedText FT_FINALTEXT
336 Pos = MAP_APPFONT ( START_X , 173 ) ;
337 Size = MAP_APPFONT ( WIZARD_PAGE_X - START_X - 6 , 2* FIXEDTEXT_HEIGHT ) ;
338 Text[ en-US ] = "Click 'Finish' to save the database.";
348 TabPage PAGE_DBWIZARD_MYSQL_JDBC
351 Pos = MAP_APPFONT ( 0 , 0 ) ;
352 Size = MAP_APPFONT ( WIZARD_PAGE_X , WIZARD_PAGE_Y ) ;
356 String STR_MYSQLJDBC_HEADERTEXT
358 Text[ en-US ] = "Set up connection to a MySQL database using JDBC" ;
361 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{
366 Text [ en-US ] = "MySQL JDBC d~river class:";
370 String STR_MYSQL_DEFAULT{
371 Text[ en-US ] = "Default: 3306";
374 AUTOHELP_JDBCCONTROLGROUP(HID_PAGE_DBWIZARD_JDBC_ET_MYSQLDBNAME)
377 TabPage PAGE_DBWIZARD_MYSQL_NATIVE
380 Pos = MAP_APPFONT ( 0 , 0 ) ;
381 Size = MAP_APPFONT ( WIZARD_PAGE_X , WIZARD_PAGE_Y ) ;
385 String STR_MYSQLJDBC_HEADERTEXT
387 Text[ en-US ] = "Set up connection to a MySQL database" ;
390 String STR_MYSQLJDBC_HELPTEXT{
391 Text[ en-US ] = "Please enter the required information to connect to a MySQL database.";
394 String STR_MYSQL_DEFAULT{
395 Text[ en-US ] = "Default: 3306";
398 AUTOHELP_JDBCCONTROLGROUP(HID_PAGE_DBWIZARD_JDBC_ET_MYSQLDBNAME)
402 TabPage PAGE_DBWIZARD_DBASE
405 Pos = MAP_APPFONT ( 0 , 0 ) ;
406 Size = MAP_APPFONT ( WIZARD_PAGE_X , WIZARD_PAGE_Y ) ;
409 String STR_DBASE_HEADERTEXT
411 Text[ en-US ] = "Set up a connection to dBASE files" ;
415 String STR_DBASE_HELPTEXT
417 Text[ en-US ] = "Select the folder where the dBASE files are stored." ;
420 AUTO_HELP_BROWSECONTROLGROUP( 3, HID_PAGE_DBWIZARD_DBASE_ET_DBASELOCATION)
424 TabPage PAGE_DBWIZARD_TEXT
427 String STR_TEXT_HEADERTEXT
429 Text[ en-US ] = "Set up a connection to text files" ;
433 String STR_TEXT_HELPTEXT
435 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." ;
439 String STR_TEXT_PATH_OR_FILE{
440 Text[ en-US ] = "Path to text files";
444 AUTO_HELP_BROWSECONTROLGROUP(3, HID_PAGE_DBWIZARD_TEXT_ET_LOCATIONTEXTFILE)
445 AUTO_SEPARATORCONTROLGROUP(82, WIZARD_PAGE_X)
450 TabPage PAGE_DBWIZARD_MSACCESS
453 Pos = MAP_APPFONT ( 0 , 0 ) ;
454 Size = MAP_APPFONT ( WIZARD_PAGE_X , WIZARD_PAGE_Y ) ;
457 String STR_MSACCESS_HEADERTEXT
459 Text[ en-US ] = "Set up a connection to a Microsoft Access database" ;
463 String STR_MSACCESS_HELPTEXT
465 Text[ en-US ] = "Please select the Microsoft Access file you want to access.";
468 AUTO_HELP_BROWSECONTROLGROUP(3, HID_PAGE_DBWIZARD_MSACCESS_ET_MSACCESSLOCATION)
469 // FT_MSACCESS_MDB_FILE
473 TabPage PAGE_DBWIZARD_LDAP
476 Pos = MAP_APPFONT ( 0 , 0 ) ;
477 Size = MAP_APPFONT ( WIZARD_PAGE_X , WIZARD_PAGE_Y ) ;
480 FixedText FT_LDAP_HEADERTEXT
482 Pos = MAP_APPFONT ( START_X , 8 ) ;
483 Size = MAP_APPFONT ( (WIZARD_PAGE_X - START_X) - 12 , 2 * FIXEDTEXT_HEIGHT ) ;
484 Text[ en-US ] = "Set up a connection to an LDAP directory";
489 FixedText FT_LDAP_HELPTEXT
491 Pos = MAP_APPFONT (START_X , 27 ) ;
492 Size = MAP_APPFONT (WIZARD_PAGE_X - START_X - 6, 5 * FIXEDTEXT_HEIGHT ) ;
493 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." ;
496 AUTO_HOSTCONTROLGROUP( INIT_Y + 7 * FIXEDTEXT_HEIGHT + UNRELATED_CONTROLS, HID_PAGE_DBWIZARD_LDAP_ET_HOSTSERVER)
497 AUTO_BASEDNCONTROLGROUP(INIT_Y + 7 * FIXEDTEXT_HEIGHT + UNRELATED_CONTROLS + EDIT_HEIGHT + RELATED_CONTROLS, HID_PAGE_DBWIZARD_LDAP_ET_BASEDN)
498 AUTO_PORTCONTROLGROUP( INIT_Y + 7 * FIXEDTEXT_HEIGHT + UNRELATED_CONTROLS + 2 * EDIT_HEIGHT + 2 * RELATED_CONTROLS, HID_PAGE_DBWIZARD_LDAP_ET_PORTNUMBER)
500 String STR_LDAP_DEFAULT{
501 Text[ en-US ] = "Default: 389" ;
504 CheckBox CB_WIZ_USESSL
506 HelpId = HID_PAGE_DBWIZARD_LDAP_CB_USESSL ;
507 Pos = MAP_APPFONT (START_X , INIT_Y + 7 * FIXEDTEXT_HEIGHT + UNRELATED_CONTROLS + 3 * EDIT_HEIGHT + 4 * RELATED_CONTROLS ) ;
508 Size = MAP_APPFONT ( 212 , 8 ) ;
509 Text[ en-US ] = "Use ~secure connection (SSL)" ;
514 TabPage PAGE_DBWIZARD_ADABAS
517 Pos = MAP_APPFONT ( 0 , 0 ) ;
518 Size = MAP_APPFONT ( WIZARD_PAGE_X , WIZARD_PAGE_Y ) ;
521 String STR_ADABAS_HEADERTEXT
523 Text[ en-US ] = "Set up a connection to an Adabas D database" ;
527 String STR_ADABAS_HELPTEXT{
528 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." ;
531 AUTO_HELP_BROWSECONTROLGROUP(4, HID_PAGE_DBWIZARD_ADABAS_ET_ADABASNAME)
535 TabPage PAGE_DBWIZARD_ADO
538 Pos = MAP_APPFONT ( 0 , 0 ) ;
539 Size = MAP_APPFONT ( WIZARD_PAGE_X , WIZARD_PAGE_Y ) ;
542 String STR_ADO_HEADERTEXT
544 Text[ en-US ] = "Set up a connection to an ADO database" ;
547 String STR_ADO_HELPTEXT{
548 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." ;
551 AUTO_HELP_BROWSECONTROLGROUP(5, HID_PAGE_DBWIZARD_ADO_ET_ADOURL)
556 TabPage PAGE_DBWIZARD_ODBC
559 Pos = MAP_APPFONT ( 0 , 0 ) ;
560 Size = MAP_APPFONT ( WIZARD_PAGE_X , WIZARD_PAGE_Y ) ;
563 String STR_ODBC_HEADERTEXT
565 Text[ en-US ] = "Set up a connection to an ODBC database" ;
568 String STR_ODBC_HELPTEXT{
569 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." ;
572 AUTO_HELP_BROWSECONTROLGROUP(6, HID_PAGE_DBWIZARD_ODBC_ET_NAMEOFODBCDATASOURCE)
575 TabPage PAGE_DBWIZARD_USERDEFINED
578 Pos = MAP_APPFONT ( 0 , 0 ) ;
579 Size = MAP_APPFONT ( WIZARD_PAGE_X , WIZARD_PAGE_Y ) ;
582 AUTO_HELP_BROWSECONTROLGROUP(6, HID_PAGE_DBWIZARD_USERDEFINED_ET_BROWSE)
587 TabPage PAGE_DBWIZARD_JDBC
590 Pos = MAP_APPFONT ( 0 , 0 ) ;
591 Size = MAP_APPFONT ( WIZARD_PAGE_X , WIZARD_PAGE_Y ) ;
594 String STR_JDBC_HEADERTEXT
596 Text[ en-US ] = "Set up a connection to a JDBC database" ;
599 String STR_JDBC_HELPTEXT{
600 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." ;
603 AUTO_HELP_BROWSECONTROLGROUP(4, HID_PAGE_DBWIZARD_JDBC_ET_JDBCURL)
604 AUTO_JDBCDRIVERCLASSGROUP(119, HID_PAGE_DBWIZARD_JDBC_ET_JDBCCLASS)
609 TabPage PAGE_DBWIZARD_ORACLE
612 Pos = MAP_APPFONT ( 0 , 0 ) ;
613 Size = MAP_APPFONT ( WIZARD_PAGE_X , WIZARD_PAGE_Y ) ;
616 String STR_ORACLE_HEADERTEXT
618 Text[ en-US ] = "Set up a connection to an Oracle database";
621 String STR_ORACLE_DEFAULT
623 Text[ en-US ] = "Default: 1521" ;
627 String STR_ORACLE_DRIVERCLASSTEXT{
628 Text [ en-US ] = "Oracle JDBC ~driver class";
632 String STR_ORACLE_HELPTEXT{
633 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." ;
636 AUTOHELP_JDBCCONTROLGROUP(HID_PAGE_DBWIZARD_ORACLE_ET_ORACLEDBNAME)
640 TabPage PAGE_DBWIZARD_SPREADSHEET
643 Pos = MAP_APPFONT ( 0 , 0 ) ;
644 Size = MAP_APPFONT ( WIZARD_PAGE_X , WIZARD_PAGE_Y ) ;
647 String STR_SPREADSHEET_HEADERTEXT
649 Text[ en-US ] = "Set up a connection to spreadsheets";
653 String STR_SPREADSHEET_HELPTEXT{
654 Text[ en-US ] = "Click 'Browse...' to select a %PRODUCTNAME spreadsheet or Microsoft Excel workbook.\n%PRODUCTNAME will open this file in read-only mode." ;
658 AUTO_HELP_BROWSECONTROLGROUP(3, HID_PAGE_DBWIZARD_SPREADSHEET_ET_SPREADSHEETPATH )
660 String STR_SPREADSHEETPATH{
661 Text[ en-US ] = "~Location and file name" ;
665 CheckBox CB_SPREADSHEETPASSWORDREQUIRED
667 HelpId = HID_PAGE_DBWIZARD_SPREADSHEET_CB_SPREADSHEETPASSWORDREQUIRED ;
668 Pos = MAP_APPFONT (START_X + UNRELATED_CONTROLS , 83 ) ;
669 Size = MAP_APPFONT ( 93 , 11 ) ;
670 Text[ en-US ] = "~Password required" ;