xref: /AOO42X/main/dbaccess/source/ui/dlg/admincontrols.src (revision b575adceb6f0684e5c6487d3ae59ce7b5b5f778a)
181d089aeSAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
381d089aeSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
481d089aeSAndrew Rist * or more contributor license agreements.  See the NOTICE file
581d089aeSAndrew Rist * distributed with this work for additional information
681d089aeSAndrew Rist * regarding copyright ownership.  The ASF licenses this file
781d089aeSAndrew Rist * to you under the Apache License, Version 2.0 (the
881d089aeSAndrew Rist * "License") ; you may not use this file except in compliance
981d089aeSAndrew Rist * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir *
1181d089aeSAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir *
1381d089aeSAndrew Rist * Unless required by applicable law or agreed to in writing,
1481d089aeSAndrew Rist * software distributed under the License is distributed on an
1581d089aeSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
1681d089aeSAndrew Rist * KIND, either express or implied.  See the License for the
1781d089aeSAndrew Rist * specific language governing permissions and limitations
1881d089aeSAndrew Rist * under the License.
19cdf0e10cSrcweir *
2081d089aeSAndrew Rist *************************************************************/
2181d089aeSAndrew Rist
22cdf0e10cSrcweir#include "AutoControls.hrc"
23cdf0e10cSrcweir#include "dbu_dlg.hrc"
24cdf0e10cSrcweir#include "admincontrols.hrc"
25cdf0e10cSrcweir
26cdf0e10cSrcweir#define LINE_HEIGHT             ( EDIT_HEIGHT + RELATED_CONTROLS )
27cdf0e10cSrcweir#define SETTINGS_CONTROL_WIDTH  ( WIZARD_PAGE_X - 2 * START_X )
28cdf0e10cSrcweir#define COLUMN_WIDTH_1          80
29cdf0e10cSrcweir#define COLUMN_WIDTH_2          ( SETTINGS_CONTROL_WIDTH - COLUMN_WIDTH_1 )
30cdf0e10cSrcweir
31cdf0e10cSrcweirControl RID_MYSQL_NATIVE_SETTINGS
32cdf0e10cSrcweir{
33cdf0e10cSrcweir    DialogControl = TRUE ;
34cdf0e10cSrcweir    Size = MAP_APPFONT ( SETTINGS_CONTROL_WIDTH, 5 * LINE_HEIGHT ) ;
35cdf0e10cSrcweir    Hide = FALSE ;
36cdf0e10cSrcweir
37cdf0e10cSrcweir    FixedText FT_MYSQL_DATABASE_NAME
38cdf0e10cSrcweir    {
39cdf0e10cSrcweir        Pos = MAP_APPFONT ( 0, 2 ) ;
40cdf0e10cSrcweir        Size = MAP_APPFONT ( COLUMN_WIDTH_1 - UNRELATED_CONTROLS, FIXEDTEXT_HEIGHT ) ;
41cdf0e10cSrcweir        Text [ en-US ] = "~Database name" ;
42cdf0e10cSrcweir    };
43cdf0e10cSrcweir
44cdf0e10cSrcweir    Edit ED_MYSQL_DATABASE_NAME
45cdf0e10cSrcweir    {
46cdf0e10cSrcweir        Pos = MAP_APPFONT ( COLUMN_WIDTH_1, 0 ) ;
47cdf0e10cSrcweir        Size = MAP_APPFONT ( COLUMN_WIDTH_2, EDIT_HEIGHT ) ;
48cdf0e10cSrcweir        Border = TRUE ;
49cdf0e10cSrcweir    };
50cdf0e10cSrcweir
51cdf0e10cSrcweir    RadioButton RB_MYSQL_HOST_PORT
52cdf0e10cSrcweir    {
53cdf0e10cSrcweir        Pos = MAP_APPFONT ( 0, LINE_HEIGHT ) ;
54cdf0e10cSrcweir        Size = MAP_APPFONT ( COLUMN_WIDTH_1, FIXEDTEXT_HEIGHT ) ;
55cdf0e10cSrcweir        Text [ en-US ] = "Se~rver / Port" ;
56cdf0e10cSrcweir        Group = TRUE ;
57cdf0e10cSrcweir    };
58cdf0e10cSrcweir
59cdf0e10cSrcweir#define OPTION_GROUP_START ( LINE_HEIGHT + FIXEDTEXT_HEIGHT + RELATED_CONTROLS )
60cdf0e10cSrcweir
61cdf0e10cSrcweir    FixedText FT_COMMON_HOST_NAME
62cdf0e10cSrcweir    {
63cdf0e10cSrcweir        Pos = MAP_APPFONT ( INDENT_BELOW_RADIO, OPTION_GROUP_START + 2 ) ;
64cdf0e10cSrcweir        Size = MAP_APPFONT ( COLUMN_WIDTH_1 - RELATED_CONTROLS - INDENT_BELOW_RADIO, FIXEDTEXT_HEIGHT ) ;
65cdf0e10cSrcweir        Text [ en-US ] = "~Server" ;
66cdf0e10cSrcweir    };
67cdf0e10cSrcweir
68cdf0e10cSrcweir    Edit ED_COMMON_HOST_NAME
69cdf0e10cSrcweir    {
70cdf0e10cSrcweir        Pos = MAP_APPFONT ( COLUMN_WIDTH_1, OPTION_GROUP_START ) ;
71cdf0e10cSrcweir        Size = MAP_APPFONT ( COLUMN_WIDTH_2, EDIT_HEIGHT ) ;
72cdf0e10cSrcweir        Border = TRUE ;
73cdf0e10cSrcweir    };
74cdf0e10cSrcweir
75cdf0e10cSrcweir    FixedText FT_COMMON_PORT
76cdf0e10cSrcweir    {
77cdf0e10cSrcweir        Pos = MAP_APPFONT ( INDENT_BELOW_RADIO, OPTION_GROUP_START + LINE_HEIGHT + 2 ) ;
78cdf0e10cSrcweir        Size = MAP_APPFONT ( COLUMN_WIDTH_1 - RELATED_CONTROLS - INDENT_BELOW_RADIO, FIXEDTEXT_HEIGHT ) ;
79cdf0e10cSrcweir        Text [ en-US ] = "~Port" ;
80cdf0e10cSrcweir        Group = TRUE ;
81cdf0e10cSrcweir    };
82cdf0e10cSrcweir
83cdf0e10cSrcweir    NumericField NF_COMMON_PORT
84cdf0e10cSrcweir    {
85cdf0e10cSrcweir        Pos = MAP_APPFONT ( COLUMN_WIDTH_1, OPTION_GROUP_START + LINE_HEIGHT ) ;
86cdf0e10cSrcweir        Size = MAP_APPFONT ( 25, EDIT_HEIGHT ) ;
87cdf0e10cSrcweir        Border = TRUE ;
88cdf0e10cSrcweir        NoThousandSep = TRUE ;
89cdf0e10cSrcweir        Value = 3306 ;
90cdf0e10cSrcweir    };
91cdf0e10cSrcweir
92cdf0e10cSrcweir    FixedText FT_COMMON_PORT_DEFAULT
93cdf0e10cSrcweir    {
94cdf0e10cSrcweir        Pos = MAP_APPFONT ( COLUMN_WIDTH_1 + 25 + RELATED_CONTROLS, OPTION_GROUP_START + LINE_HEIGHT + 2 ) ;
95cdf0e10cSrcweir        Size = MAP_APPFONT ( COLUMN_WIDTH_2 - 25 - RELATED_CONTROLS, FIXEDTEXT_HEIGHT ) ;
96cdf0e10cSrcweir        Text [ en-US ] = "Default: 3306" ;
97cdf0e10cSrcweir    };
98cdf0e10cSrcweir
99cdf0e10cSrcweir    RadioButton RB_MYSQL_SOCKET
100cdf0e10cSrcweir    {
101cdf0e10cSrcweir        Pos = MAP_APPFONT ( 0, OPTION_GROUP_START + 2 * LINE_HEIGHT + 2 ) ;
102cdf0e10cSrcweir        Size = MAP_APPFONT ( COLUMN_WIDTH_1 - RELATED_CONTROLS, FIXEDTEXT_HEIGHT ) ;
103cdf0e10cSrcweir        Text [ en-US ] = "So~cket" ;
104cdf0e10cSrcweir    };
105cdf0e10cSrcweir
106cdf0e10cSrcweir    Edit ED_MYSQL_SOCKET
107cdf0e10cSrcweir    {
108cdf0e10cSrcweir        Pos = MAP_APPFONT ( COLUMN_WIDTH_1, OPTION_GROUP_START + 2 * LINE_HEIGHT ) ;
109cdf0e10cSrcweir        Size = MAP_APPFONT ( COLUMN_WIDTH_2, EDIT_HEIGHT ) ;
110cdf0e10cSrcweir        Border = TRUE ;
111cdf0e10cSrcweir    };
112cdf0e10cSrcweir
113cdf0e10cSrcweir    RadioButton RB_MYSQL_NAMED_PIPE
114cdf0e10cSrcweir    {
115cdf0e10cSrcweir        Pos = MAP_APPFONT ( 0, OPTION_GROUP_START + 2 * LINE_HEIGHT + 2 ) ;
116cdf0e10cSrcweir        Size = MAP_APPFONT ( COLUMN_WIDTH_1 - RELATED_CONTROLS, FIXEDTEXT_HEIGHT ) ;
117cdf0e10cSrcweir        Text [ en-US ] = "Named p~ipe" ;
118cdf0e10cSrcweir    };
119cdf0e10cSrcweir
120cdf0e10cSrcweir    Edit ED_MYSQL_NAMED_PIPE
121cdf0e10cSrcweir    {
122cdf0e10cSrcweir        Pos = MAP_APPFONT ( COLUMN_WIDTH_1, OPTION_GROUP_START + 2 * LINE_HEIGHT ) ;
123cdf0e10cSrcweir        Size = MAP_APPFONT ( COLUMN_WIDTH_2, EDIT_HEIGHT ) ;
124cdf0e10cSrcweir        Border = TRUE ;
125cdf0e10cSrcweir    };
126cdf0e10cSrcweir};
127*acae980eSmseidel
128*acae980eSmseidel// ********************************************************************** EOF
129