1*cdf0e10cSrcweir/************************************************************************* 2*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3*cdf0e10cSrcweir * 4*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 5*cdf0e10cSrcweir * 6*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 7*cdf0e10cSrcweir * 8*cdf0e10cSrcweir * This file is part of OpenOffice.org. 9*cdf0e10cSrcweir * 10*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 11*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 12*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 13*cdf0e10cSrcweir * 14*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 15*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 16*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 18*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 19*cdf0e10cSrcweir * 20*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 21*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 22*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 23*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 24*cdf0e10cSrcweir * 25*cdf0e10cSrcweir************************************************************************/ 26*cdf0e10cSrcweir 27*cdf0e10cSrcweir#include "AutoControls.hrc" 28*cdf0e10cSrcweir#include "dbu_dlg.hrc" 29*cdf0e10cSrcweir#include "admincontrols.hrc" 30*cdf0e10cSrcweir 31*cdf0e10cSrcweir#define LINE_HEIGHT ( EDIT_HEIGHT + RELATED_CONTROLS ) 32*cdf0e10cSrcweir#define SETTINGS_CONTROL_WIDTH ( WIZARD_PAGE_X - 2 * START_X ) 33*cdf0e10cSrcweir#define COLUMN_WIDTH_1 80 34*cdf0e10cSrcweir#define COLUMN_WIDTH_2 ( SETTINGS_CONTROL_WIDTH - COLUMN_WIDTH_1 ) 35*cdf0e10cSrcweir 36*cdf0e10cSrcweirControl RID_MYSQL_NATIVE_SETTINGS 37*cdf0e10cSrcweir{ 38*cdf0e10cSrcweir DialogControl = TRUE; 39*cdf0e10cSrcweir Size = MAP_APPFONT( SETTINGS_CONTROL_WIDTH, 5 * LINE_HEIGHT ); 40*cdf0e10cSrcweir Hide = FALSE; 41*cdf0e10cSrcweir 42*cdf0e10cSrcweir FixedText FT_MYSQL_DATABASE_NAME 43*cdf0e10cSrcweir { 44*cdf0e10cSrcweir Pos = MAP_APPFONT ( 0, 2 ); 45*cdf0e10cSrcweir Size = MAP_APPFONT ( COLUMN_WIDTH_1 - UNRELATED_CONTROLS, FIXEDTEXT_HEIGHT ); 46*cdf0e10cSrcweir Text[ en-US ] = "~Database name"; 47*cdf0e10cSrcweir }; 48*cdf0e10cSrcweir 49*cdf0e10cSrcweir Edit ED_MYSQL_DATABASE_NAME 50*cdf0e10cSrcweir { 51*cdf0e10cSrcweir Pos = MAP_APPFONT ( COLUMN_WIDTH_1, 0 ); 52*cdf0e10cSrcweir Size = MAP_APPFONT ( COLUMN_WIDTH_2, EDIT_HEIGHT ); 53*cdf0e10cSrcweir Border = TRUE; 54*cdf0e10cSrcweir }; 55*cdf0e10cSrcweir 56*cdf0e10cSrcweir RadioButton RB_MYSQL_HOST_PORT 57*cdf0e10cSrcweir { 58*cdf0e10cSrcweir Pos = MAP_APPFONT ( 0, LINE_HEIGHT ); 59*cdf0e10cSrcweir Size = MAP_APPFONT ( COLUMN_WIDTH_1, FIXEDTEXT_HEIGHT ) ; 60*cdf0e10cSrcweir Text [ en-US ] = "Se~rver / Port" ; 61*cdf0e10cSrcweir Group = TRUE; 62*cdf0e10cSrcweir }; 63*cdf0e10cSrcweir 64*cdf0e10cSrcweir#define OPTION_GROUP_START ( LINE_HEIGHT + FIXEDTEXT_HEIGHT + RELATED_CONTROLS ) 65*cdf0e10cSrcweir 66*cdf0e10cSrcweir FixedText FT_COMMON_HOST_NAME 67*cdf0e10cSrcweir { 68*cdf0e10cSrcweir Pos = MAP_APPFONT ( INDENT_BELOW_RADIO, OPTION_GROUP_START + 2 ); 69*cdf0e10cSrcweir Size = MAP_APPFONT ( COLUMN_WIDTH_1 - RELATED_CONTROLS - INDENT_BELOW_RADIO, FIXEDTEXT_HEIGHT ); 70*cdf0e10cSrcweir Text [ en-US ] = "~Server" ; 71*cdf0e10cSrcweir }; 72*cdf0e10cSrcweir 73*cdf0e10cSrcweir Edit ED_COMMON_HOST_NAME 74*cdf0e10cSrcweir { 75*cdf0e10cSrcweir Pos = MAP_APPFONT ( COLUMN_WIDTH_1, OPTION_GROUP_START ); 76*cdf0e10cSrcweir Size = MAP_APPFONT ( COLUMN_WIDTH_2, EDIT_HEIGHT ); 77*cdf0e10cSrcweir Border = TRUE; 78*cdf0e10cSrcweir }; 79*cdf0e10cSrcweir 80*cdf0e10cSrcweir FixedText FT_COMMON_PORT 81*cdf0e10cSrcweir { 82*cdf0e10cSrcweir Pos = MAP_APPFONT ( INDENT_BELOW_RADIO, OPTION_GROUP_START + LINE_HEIGHT + 2 ); 83*cdf0e10cSrcweir Size = MAP_APPFONT ( COLUMN_WIDTH_1 - RELATED_CONTROLS - INDENT_BELOW_RADIO, FIXEDTEXT_HEIGHT ) ; 84*cdf0e10cSrcweir Text [ en-US ] = "~Port" ; 85*cdf0e10cSrcweir Group = TRUE; 86*cdf0e10cSrcweir }; 87*cdf0e10cSrcweir 88*cdf0e10cSrcweir NumericField NF_COMMON_PORT 89*cdf0e10cSrcweir { 90*cdf0e10cSrcweir Pos = MAP_APPFONT ( COLUMN_WIDTH_1, OPTION_GROUP_START + LINE_HEIGHT ); 91*cdf0e10cSrcweir Size = MAP_APPFONT ( 25, EDIT_HEIGHT ); 92*cdf0e10cSrcweir Border = TRUE; 93*cdf0e10cSrcweir NoThousandSep = TRUE; 94*cdf0e10cSrcweir Value = 3306; 95*cdf0e10cSrcweir }; 96*cdf0e10cSrcweir 97*cdf0e10cSrcweir FixedText FT_COMMON_PORT_DEFAULT 98*cdf0e10cSrcweir { 99*cdf0e10cSrcweir Pos = MAP_APPFONT ( COLUMN_WIDTH_1 + 25 + RELATED_CONTROLS, OPTION_GROUP_START + LINE_HEIGHT + 2 ); 100*cdf0e10cSrcweir Size = MAP_APPFONT ( COLUMN_WIDTH_2 - 25 - RELATED_CONTROLS, FIXEDTEXT_HEIGHT ); 101*cdf0e10cSrcweir Text[ en-US ] = "Default: 3306"; 102*cdf0e10cSrcweir }; 103*cdf0e10cSrcweir 104*cdf0e10cSrcweir RadioButton RB_MYSQL_SOCKET 105*cdf0e10cSrcweir { 106*cdf0e10cSrcweir Pos = MAP_APPFONT ( 0, OPTION_GROUP_START + 2 * LINE_HEIGHT + 2 ); 107*cdf0e10cSrcweir Size = MAP_APPFONT ( COLUMN_WIDTH_1 - RELATED_CONTROLS, FIXEDTEXT_HEIGHT ); 108*cdf0e10cSrcweir Text [ en-US ] = "So~cket"; 109*cdf0e10cSrcweir }; 110*cdf0e10cSrcweir 111*cdf0e10cSrcweir Edit ED_MYSQL_SOCKET 112*cdf0e10cSrcweir { 113*cdf0e10cSrcweir Pos = MAP_APPFONT ( COLUMN_WIDTH_1, OPTION_GROUP_START + 2 * LINE_HEIGHT ); 114*cdf0e10cSrcweir Size = MAP_APPFONT ( COLUMN_WIDTH_2, EDIT_HEIGHT ); 115*cdf0e10cSrcweir Border = TRUE ; 116*cdf0e10cSrcweir }; 117*cdf0e10cSrcweir 118*cdf0e10cSrcweir RadioButton RB_MYSQL_NAMED_PIPE 119*cdf0e10cSrcweir { 120*cdf0e10cSrcweir Pos = MAP_APPFONT ( 0, OPTION_GROUP_START + 2 * LINE_HEIGHT + 2 ); 121*cdf0e10cSrcweir Size = MAP_APPFONT ( COLUMN_WIDTH_1 - RELATED_CONTROLS, FIXEDTEXT_HEIGHT ); 122*cdf0e10cSrcweir Text [ en-US ] = "Named p~ipe"; 123*cdf0e10cSrcweir }; 124*cdf0e10cSrcweir 125*cdf0e10cSrcweir Edit ED_MYSQL_NAMED_PIPE 126*cdf0e10cSrcweir { 127*cdf0e10cSrcweir Pos = MAP_APPFONT ( COLUMN_WIDTH_1, OPTION_GROUP_START + 2 * LINE_HEIGHT ); 128*cdf0e10cSrcweir Size = MAP_APPFONT ( COLUMN_WIDTH_2, EDIT_HEIGHT ); 129*cdf0e10cSrcweir Border = TRUE ; 130*cdf0e10cSrcweir }; 131*cdf0e10cSrcweir}; 132