1 /*************************************************************************
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 * OpenOffice.org - a multi-platform office productivity suite
8 * This file is part of OpenOffice.org.
10 * OpenOffice.org is free software: you can redistribute it and/or modify
11 * it under the terms of the GNU Lesser General Public License version 3
12 * only, as published by the Free Software Foundation.
14 * OpenOffice.org is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU Lesser General Public License version 3 for more details
18 * (a copy is included in the LICENSE file that accompanied this code).
20 * You should have received a copy of the GNU Lesser General Public License
21 * version 3 along with OpenOffice.org. If not, see
22 * <http://www.openoffice.org/license.html>
23 * for a copy of the LGPLv3 License.
25 ************************************************************************/
27 #include "AutoControls.hrc"
28 #include "dbu_dlg.hrc"
29 #include "admincontrols.hrc"
31 #define LINE_HEIGHT ( EDIT_HEIGHT + RELATED_CONTROLS )
32 #define SETTINGS_CONTROL_WIDTH ( WIZARD_PAGE_X - 2 * START_X )
33 #define COLUMN_WIDTH_1 80
34 #define COLUMN_WIDTH_2 ( SETTINGS_CONTROL_WIDTH - COLUMN_WIDTH_1 )
36 Control RID_MYSQL_NATIVE_SETTINGS
39 Size = MAP_APPFONT( SETTINGS_CONTROL_WIDTH, 5 * LINE_HEIGHT );
42 FixedText FT_MYSQL_DATABASE_NAME
44 Pos = MAP_APPFONT ( 0, 2 );
45 Size = MAP_APPFONT ( COLUMN_WIDTH_1 - UNRELATED_CONTROLS, FIXEDTEXT_HEIGHT );
46 Text[ en-US ] = "~Database name";
49 Edit ED_MYSQL_DATABASE_NAME
51 Pos = MAP_APPFONT ( COLUMN_WIDTH_1, 0 );
52 Size = MAP_APPFONT ( COLUMN_WIDTH_2, EDIT_HEIGHT );
56 RadioButton RB_MYSQL_HOST_PORT
58 Pos = MAP_APPFONT ( 0, LINE_HEIGHT );
59 Size = MAP_APPFONT ( COLUMN_WIDTH_1, FIXEDTEXT_HEIGHT ) ;
60 Text [ en-US ] = "Se~rver / Port" ;
64 #define OPTION_GROUP_START ( LINE_HEIGHT + FIXEDTEXT_HEIGHT + RELATED_CONTROLS )
66 FixedText FT_COMMON_HOST_NAME
68 Pos = MAP_APPFONT ( INDENT_BELOW_RADIO, OPTION_GROUP_START + 2 );
69 Size = MAP_APPFONT ( COLUMN_WIDTH_1 - RELATED_CONTROLS - INDENT_BELOW_RADIO, FIXEDTEXT_HEIGHT );
70 Text [ en-US ] = "~Server" ;
73 Edit ED_COMMON_HOST_NAME
75 Pos = MAP_APPFONT ( COLUMN_WIDTH_1, OPTION_GROUP_START );
76 Size = MAP_APPFONT ( COLUMN_WIDTH_2, EDIT_HEIGHT );
80 FixedText FT_COMMON_PORT
82 Pos = MAP_APPFONT ( INDENT_BELOW_RADIO, OPTION_GROUP_START + LINE_HEIGHT + 2 );
83 Size = MAP_APPFONT ( COLUMN_WIDTH_1 - RELATED_CONTROLS - INDENT_BELOW_RADIO, FIXEDTEXT_HEIGHT ) ;
84 Text [ en-US ] = "~Port" ;
88 NumericField NF_COMMON_PORT
90 Pos = MAP_APPFONT ( COLUMN_WIDTH_1, OPTION_GROUP_START + LINE_HEIGHT );
91 Size = MAP_APPFONT ( 25, EDIT_HEIGHT );
97 FixedText FT_COMMON_PORT_DEFAULT
99 Pos = MAP_APPFONT ( COLUMN_WIDTH_1 + 25 + RELATED_CONTROLS, OPTION_GROUP_START + LINE_HEIGHT + 2 );
100 Size = MAP_APPFONT ( COLUMN_WIDTH_2 - 25 - RELATED_CONTROLS, FIXEDTEXT_HEIGHT );
101 Text[ en-US ] = "Default: 3306";
104 RadioButton RB_MYSQL_SOCKET
106 Pos = MAP_APPFONT ( 0, OPTION_GROUP_START + 2 * LINE_HEIGHT + 2 );
107 Size = MAP_APPFONT ( COLUMN_WIDTH_1 - RELATED_CONTROLS, FIXEDTEXT_HEIGHT );
108 Text [ en-US ] = "So~cket";
113 Pos = MAP_APPFONT ( COLUMN_WIDTH_1, OPTION_GROUP_START + 2 * LINE_HEIGHT );
114 Size = MAP_APPFONT ( COLUMN_WIDTH_2, EDIT_HEIGHT );
118 RadioButton RB_MYSQL_NAMED_PIPE
120 Pos = MAP_APPFONT ( 0, OPTION_GROUP_START + 2 * LINE_HEIGHT + 2 );
121 Size = MAP_APPFONT ( COLUMN_WIDTH_1 - RELATED_CONTROLS, FIXEDTEXT_HEIGHT );
122 Text [ en-US ] = "Named p~ipe";
125 Edit ED_MYSQL_NAMED_PIPE
127 Pos = MAP_APPFONT ( COLUMN_WIDTH_1, OPTION_GROUP_START + 2 * LINE_HEIGHT );
128 Size = MAP_APPFONT ( COLUMN_WIDTH_2, EDIT_HEIGHT );