1/*************************************************************************
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3 *
4 * Copyright 2000, 2010 Oracle and/or its affiliates.
5 *
6 * OpenOffice.org - a multi-platform office productivity suite
7 *
8 * This file is part of OpenOffice.org.
9 *
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.
13 *
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).
19 *
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 *
25************************************************************************/
26
27#include "AutoControls.hrc"
28#include "dbu_dlg.hrc"
29#include "admincontrols.hrc"
30
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 )
35
36Control RID_MYSQL_NATIVE_SETTINGS
37{
38    DialogControl = TRUE;
39    Size = MAP_APPFONT( SETTINGS_CONTROL_WIDTH, 5 * LINE_HEIGHT );
40    Hide = FALSE;
41
42	FixedText FT_MYSQL_DATABASE_NAME
43	{
44		Pos = MAP_APPFONT ( 0, 2 );
45		Size = MAP_APPFONT ( COLUMN_WIDTH_1 - UNRELATED_CONTROLS, FIXEDTEXT_HEIGHT );
46 		Text[ en-US ]  = "~Database name";
47	};
48
49	Edit ED_MYSQL_DATABASE_NAME
50	{
51		Pos = MAP_APPFONT ( COLUMN_WIDTH_1, 0 );
52		Size = MAP_APPFONT ( COLUMN_WIDTH_2, EDIT_HEIGHT );
53		Border = TRUE;
54	};
55
56    RadioButton RB_MYSQL_HOST_PORT
57    {
58        Pos = MAP_APPFONT ( 0, LINE_HEIGHT );
59        Size = MAP_APPFONT ( COLUMN_WIDTH_1, FIXEDTEXT_HEIGHT ) ;
60        Text [ en-US ]  = "Se~rver / Port" ;
61        Group = TRUE;
62    };
63
64#define OPTION_GROUP_START  ( LINE_HEIGHT + FIXEDTEXT_HEIGHT + RELATED_CONTROLS )
65
66    FixedText FT_COMMON_HOST_NAME
67    {
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" ;
71    };
72
73    Edit ED_COMMON_HOST_NAME
74    {
75        Pos = MAP_APPFONT ( COLUMN_WIDTH_1, OPTION_GROUP_START );
76        Size = MAP_APPFONT ( COLUMN_WIDTH_2, EDIT_HEIGHT );
77		Border = TRUE;
78    };
79
80    FixedText FT_COMMON_PORT
81    {
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" ;
85        Group = TRUE;
86    };
87
88    NumericField NF_COMMON_PORT
89    {
90        Pos = MAP_APPFONT ( COLUMN_WIDTH_1, OPTION_GROUP_START + LINE_HEIGHT );
91        Size = MAP_APPFONT ( 25, EDIT_HEIGHT );
92		Border = TRUE;
93		NoThousandSep = TRUE;
94		Value = 3306;
95    };
96
97    FixedText FT_COMMON_PORT_DEFAULT
98    {
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";
102    };
103
104    RadioButton RB_MYSQL_SOCKET
105    {
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";
109    };
110
111    Edit ED_MYSQL_SOCKET
112    {
113        Pos = MAP_APPFONT ( COLUMN_WIDTH_1, OPTION_GROUP_START + 2 * LINE_HEIGHT );
114        Size = MAP_APPFONT ( COLUMN_WIDTH_2, EDIT_HEIGHT );
115		Border = TRUE ;
116    };
117
118    RadioButton RB_MYSQL_NAMED_PIPE
119    {
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";
123    };
124
125    Edit ED_MYSQL_NAMED_PIPE
126    {
127        Pos = MAP_APPFONT ( COLUMN_WIDTH_1, OPTION_GROUP_START + 2 * LINE_HEIGHT );
128        Size = MAP_APPFONT ( COLUMN_WIDTH_2, EDIT_HEIGHT );
129		Border = TRUE ;
130    };
131};
132