1 /*************************************************************************
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * Copyright 2009 by Sun Microsystems, Inc.
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.
24 ************************************************************************/
26 #include "AutoControls.hrc"
27 #include "dbu_dlg.hrc"
28 #include "admincontrols.hrc"
30 #define LINE_HEIGHT ( EDIT_HEIGHT + RELATED_CONTROLS )
31 #define SETTINGS_CONTROL_WIDTH ( WIZARD_PAGE_X - 2 * START_X )
32 #define COLUMN_WIDTH_1 80
33 #define COLUMN_WIDTH_2 ( SETTINGS_CONTROL_WIDTH - COLUMN_WIDTH_1 )
35 Control RID_MYSQL_NATIVE_SETTINGS
38 Size = MAP_APPFONT( SETTINGS_CONTROL_WIDTH, 5 * LINE_HEIGHT );
41 FixedText FT_MYSQL_DATABASE_NAME
43 Pos = MAP_APPFONT ( 0, 2 );
44 Size = MAP_APPFONT ( COLUMN_WIDTH_1 - UNRELATED_CONTROLS, FIXEDTEXT_HEIGHT );
45 Text[ en-US ] = "~Database name";
48 Edit ED_MYSQL_DATABASE_NAME
50 Pos = MAP_APPFONT ( COLUMN_WIDTH_1, 0 );
51 Size = MAP_APPFONT ( COLUMN_WIDTH_2, EDIT_HEIGHT );
55 RadioButton RB_MYSQL_HOST_PORT
57 Pos = MAP_APPFONT ( 0, LINE_HEIGHT );
58 Size = MAP_APPFONT ( COLUMN_WIDTH_1, FIXEDTEXT_HEIGHT ) ;
59 Text [ en-US ] = "Se~rver / Port" ;
63 #define OPTION_GROUP_START ( LINE_HEIGHT + FIXEDTEXT_HEIGHT + RELATED_CONTROLS )
65 FixedText FT_COMMON_HOST_NAME
67 Pos = MAP_APPFONT ( INDENT_BELOW_RADIO, OPTION_GROUP_START + 2 );
68 Size = MAP_APPFONT ( COLUMN_WIDTH_1 - RELATED_CONTROLS - INDENT_BELOW_RADIO, FIXEDTEXT_HEIGHT );
69 Text [ en-US ] = "~Server" ;
72 Edit ED_COMMON_HOST_NAME
74 Pos = MAP_APPFONT ( COLUMN_WIDTH_1, OPTION_GROUP_START );
75 Size = MAP_APPFONT ( COLUMN_WIDTH_2, EDIT_HEIGHT );
79 FixedText FT_COMMON_PORT
81 Pos = MAP_APPFONT ( INDENT_BELOW_RADIO, OPTION_GROUP_START + LINE_HEIGHT + 2 );
82 Size = MAP_APPFONT ( COLUMN_WIDTH_1 - RELATED_CONTROLS - INDENT_BELOW_RADIO, FIXEDTEXT_HEIGHT ) ;
83 Text [ en-US ] = "~Port" ;
87 NumericField NF_COMMON_PORT
89 Pos = MAP_APPFONT ( COLUMN_WIDTH_1, OPTION_GROUP_START + LINE_HEIGHT );
90 Size = MAP_APPFONT ( 25, EDIT_HEIGHT );
96 FixedText FT_COMMON_PORT_DEFAULT
98 Pos = MAP_APPFONT ( COLUMN_WIDTH_1 + 25 + RELATED_CONTROLS, OPTION_GROUP_START + LINE_HEIGHT + 2 );
99 Size = MAP_APPFONT ( COLUMN_WIDTH_2 - 25 - RELATED_CONTROLS, FIXEDTEXT_HEIGHT );
100 Text[ en-US ] = "Default: 3306";
103 RadioButton RB_MYSQL_SOCKET
105 Pos = MAP_APPFONT ( 0, OPTION_GROUP_START + 2 * LINE_HEIGHT + 2 );
106 Size = MAP_APPFONT ( COLUMN_WIDTH_1 - RELATED_CONTROLS, FIXEDTEXT_HEIGHT );
107 Text [ en-US ] = "So~cket";
112 Pos = MAP_APPFONT ( COLUMN_WIDTH_1, OPTION_GROUP_START + 2 * LINE_HEIGHT );
113 Size = MAP_APPFONT ( COLUMN_WIDTH_2, EDIT_HEIGHT );
117 RadioButton RB_MYSQL_NAMED_PIPE
119 Pos = MAP_APPFONT ( 0, OPTION_GROUP_START + 2 * LINE_HEIGHT + 2 );
120 Size = MAP_APPFONT ( COLUMN_WIDTH_1 - RELATED_CONTROLS, FIXEDTEXT_HEIGHT );
121 Text [ en-US ] = "Named p~ipe";
124 Edit ED_MYSQL_NAMED_PIPE
126 Pos = MAP_APPFONT ( COLUMN_WIDTH_1, OPTION_GROUP_START + 2 * LINE_HEIGHT );
127 Size = MAP_APPFONT ( COLUMN_WIDTH_2, EDIT_HEIGHT );