1*cdf0e10cSrcweir /************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir 28*cdf0e10cSrcweir #include <svtools/filedlg.hxx> 29*cdf0e10cSrcweir #include <vcl/msgbox.hxx> 30*cdf0e10cSrcweir #include "logindlg.hxx" 31*cdf0e10cSrcweir 32*cdf0e10cSrcweir #ifndef UUI_LOGINDLG_HRC 33*cdf0e10cSrcweir #include "logindlg.hrc" 34*cdf0e10cSrcweir #endif 35*cdf0e10cSrcweir #ifndef UUI_IDS_HRC 36*cdf0e10cSrcweir #include "ids.hrc" 37*cdf0e10cSrcweir #endif 38*cdf0e10cSrcweir #include <tools/resid.hxx> 39*cdf0e10cSrcweir 40*cdf0e10cSrcweir #ifdef UNX 41*cdf0e10cSrcweir #include <limits.h> 42*cdf0e10cSrcweir #define _MAX_PATH PATH_MAX 43*cdf0e10cSrcweir #endif 44*cdf0e10cSrcweir 45*cdf0e10cSrcweir // LoginDialog ------------------------------------------------------- 46*cdf0e10cSrcweir 47*cdf0e10cSrcweir //............................................................................ 48*cdf0e10cSrcweir //............................................................................ 49*cdf0e10cSrcweir 50*cdf0e10cSrcweir static void lcl_Move( Window &rWin, long nOffset ) 51*cdf0e10cSrcweir { 52*cdf0e10cSrcweir Point aTmp( rWin.GetPosPixel() ); 53*cdf0e10cSrcweir aTmp.Y() -= nOffset; 54*cdf0e10cSrcweir rWin.SetPosPixel( aTmp ); 55*cdf0e10cSrcweir } 56*cdf0e10cSrcweir 57*cdf0e10cSrcweir 58*cdf0e10cSrcweir void LoginDialog::HideControls_Impl( sal_uInt16 nFlags ) 59*cdf0e10cSrcweir { 60*cdf0e10cSrcweir bool bPathHide = sal_False; 61*cdf0e10cSrcweir bool bErrorHide = sal_False; 62*cdf0e10cSrcweir bool bAccountHide = sal_False; 63*cdf0e10cSrcweir bool bUseSysCredsHide = sal_False; 64*cdf0e10cSrcweir 65*cdf0e10cSrcweir if ( ( nFlags & LF_NO_PATH ) == LF_NO_PATH ) 66*cdf0e10cSrcweir { 67*cdf0e10cSrcweir aPathFT.Hide(); 68*cdf0e10cSrcweir aPathED.Hide(); 69*cdf0e10cSrcweir aPathBtn.Hide(); 70*cdf0e10cSrcweir bPathHide = sal_True; 71*cdf0e10cSrcweir } 72*cdf0e10cSrcweir else if ( ( nFlags & LF_PATH_READONLY ) == LF_PATH_READONLY ) 73*cdf0e10cSrcweir { 74*cdf0e10cSrcweir aPathED.Enable( sal_False ); 75*cdf0e10cSrcweir aPathBtn.Enable( sal_False ); 76*cdf0e10cSrcweir } 77*cdf0e10cSrcweir 78*cdf0e10cSrcweir if ( ( nFlags & LF_NO_USERNAME ) == LF_NO_USERNAME ) 79*cdf0e10cSrcweir { 80*cdf0e10cSrcweir aNameFT.Hide(); 81*cdf0e10cSrcweir aNameED.Hide(); 82*cdf0e10cSrcweir } 83*cdf0e10cSrcweir else if ( ( nFlags & LF_USERNAME_READONLY ) == LF_USERNAME_READONLY ) 84*cdf0e10cSrcweir { 85*cdf0e10cSrcweir aNameED.Enable( sal_False ); 86*cdf0e10cSrcweir } 87*cdf0e10cSrcweir 88*cdf0e10cSrcweir if ( ( nFlags & LF_NO_PASSWORD ) == LF_NO_PASSWORD ) 89*cdf0e10cSrcweir { 90*cdf0e10cSrcweir aPasswordFT.Hide(); 91*cdf0e10cSrcweir aPasswordED.Hide(); 92*cdf0e10cSrcweir } 93*cdf0e10cSrcweir 94*cdf0e10cSrcweir if ( ( nFlags & LF_NO_SAVEPASSWORD ) == LF_NO_SAVEPASSWORD ) 95*cdf0e10cSrcweir aSavePasswdBtn.Hide(); 96*cdf0e10cSrcweir 97*cdf0e10cSrcweir if ( ( nFlags & LF_NO_ERRORTEXT ) == LF_NO_ERRORTEXT ) 98*cdf0e10cSrcweir { 99*cdf0e10cSrcweir aErrorInfo.Hide(); 100*cdf0e10cSrcweir aErrorFT.Hide(); 101*cdf0e10cSrcweir aLogin1FL.Hide(); 102*cdf0e10cSrcweir bErrorHide = sal_True; 103*cdf0e10cSrcweir } 104*cdf0e10cSrcweir 105*cdf0e10cSrcweir if ( ( nFlags & LF_NO_ACCOUNT ) == LF_NO_ACCOUNT ) 106*cdf0e10cSrcweir { 107*cdf0e10cSrcweir aAccountFT.Hide(); 108*cdf0e10cSrcweir aAccountED.Hide(); 109*cdf0e10cSrcweir bAccountHide = sal_True; 110*cdf0e10cSrcweir } 111*cdf0e10cSrcweir 112*cdf0e10cSrcweir if ( ( nFlags & LF_NO_USESYSCREDS ) == LF_NO_USESYSCREDS ) 113*cdf0e10cSrcweir { 114*cdf0e10cSrcweir aUseSysCredsCB.Hide(); 115*cdf0e10cSrcweir bUseSysCredsHide = sal_True; 116*cdf0e10cSrcweir } 117*cdf0e10cSrcweir 118*cdf0e10cSrcweir if ( bErrorHide ) 119*cdf0e10cSrcweir { 120*cdf0e10cSrcweir long nOffset = aRequestInfo.GetPosPixel().Y() - 121*cdf0e10cSrcweir aErrorFT.GetPosPixel().Y(); 122*cdf0e10cSrcweir lcl_Move( aRequestInfo, nOffset ); 123*cdf0e10cSrcweir lcl_Move( aLogin2FL, nOffset ); 124*cdf0e10cSrcweir lcl_Move( aPathFT, nOffset ); 125*cdf0e10cSrcweir lcl_Move( aPathED, nOffset ); 126*cdf0e10cSrcweir lcl_Move( aPathBtn, nOffset ); 127*cdf0e10cSrcweir lcl_Move( aNameFT, nOffset ); 128*cdf0e10cSrcweir lcl_Move( aNameED, nOffset ); 129*cdf0e10cSrcweir lcl_Move( aPasswordFT, nOffset ); 130*cdf0e10cSrcweir lcl_Move( aPasswordED, nOffset ); 131*cdf0e10cSrcweir lcl_Move( aAccountFT, nOffset ); 132*cdf0e10cSrcweir lcl_Move( aAccountED, nOffset ); 133*cdf0e10cSrcweir lcl_Move( aSavePasswdBtn, nOffset ); 134*cdf0e10cSrcweir lcl_Move( aUseSysCredsCB, nOffset ); 135*cdf0e10cSrcweir lcl_Move( aButtonsFL, nOffset ); 136*cdf0e10cSrcweir lcl_Move( aOKBtn, nOffset ); 137*cdf0e10cSrcweir lcl_Move( aCancelBtn, nOffset ); 138*cdf0e10cSrcweir lcl_Move( aHelpBtn, nOffset ); 139*cdf0e10cSrcweir 140*cdf0e10cSrcweir Size aNewSiz = GetSizePixel(); 141*cdf0e10cSrcweir aNewSiz.Height() -= nOffset; 142*cdf0e10cSrcweir SetSizePixel( aNewSiz ); 143*cdf0e10cSrcweir } 144*cdf0e10cSrcweir 145*cdf0e10cSrcweir if ( bPathHide ) 146*cdf0e10cSrcweir { 147*cdf0e10cSrcweir long nOffset = aNameED.GetPosPixel().Y() - 148*cdf0e10cSrcweir aPathED.GetPosPixel().Y(); 149*cdf0e10cSrcweir lcl_Move( aNameFT, nOffset ); 150*cdf0e10cSrcweir lcl_Move( aNameED, nOffset ); 151*cdf0e10cSrcweir lcl_Move( aPasswordFT, nOffset ); 152*cdf0e10cSrcweir lcl_Move( aPasswordED, nOffset ); 153*cdf0e10cSrcweir lcl_Move( aAccountFT, nOffset ); 154*cdf0e10cSrcweir lcl_Move( aAccountED, nOffset ); 155*cdf0e10cSrcweir lcl_Move( aSavePasswdBtn, nOffset ); 156*cdf0e10cSrcweir lcl_Move( aUseSysCredsCB, nOffset ); 157*cdf0e10cSrcweir lcl_Move( aButtonsFL, nOffset ); 158*cdf0e10cSrcweir lcl_Move( aOKBtn, nOffset ); 159*cdf0e10cSrcweir lcl_Move( aCancelBtn, nOffset ); 160*cdf0e10cSrcweir lcl_Move( aHelpBtn, nOffset ); 161*cdf0e10cSrcweir 162*cdf0e10cSrcweir Size aNewSz = GetSizePixel(); 163*cdf0e10cSrcweir aNewSz.Height() -= nOffset; 164*cdf0e10cSrcweir SetSizePixel( aNewSz ); 165*cdf0e10cSrcweir } 166*cdf0e10cSrcweir 167*cdf0e10cSrcweir if ( bAccountHide ) 168*cdf0e10cSrcweir { 169*cdf0e10cSrcweir long nOffset = aAccountED.GetPosPixel().Y() - 170*cdf0e10cSrcweir aPasswordED.GetPosPixel().Y(); 171*cdf0e10cSrcweir lcl_Move( aSavePasswdBtn, nOffset ); 172*cdf0e10cSrcweir lcl_Move( aUseSysCredsCB, nOffset ); 173*cdf0e10cSrcweir lcl_Move( aButtonsFL, nOffset ); 174*cdf0e10cSrcweir lcl_Move( aOKBtn, nOffset ); 175*cdf0e10cSrcweir lcl_Move( aCancelBtn, nOffset ); 176*cdf0e10cSrcweir lcl_Move( aHelpBtn, nOffset ); 177*cdf0e10cSrcweir 178*cdf0e10cSrcweir Size aNewSz = GetSizePixel(); 179*cdf0e10cSrcweir aNewSz.Height() -= nOffset; 180*cdf0e10cSrcweir SetSizePixel( aNewSz ); 181*cdf0e10cSrcweir } 182*cdf0e10cSrcweir 183*cdf0e10cSrcweir if ( bUseSysCredsHide ) 184*cdf0e10cSrcweir { 185*cdf0e10cSrcweir long nOffset = aUseSysCredsCB.GetPosPixel().Y() - 186*cdf0e10cSrcweir aSavePasswdBtn.GetPosPixel().Y(); 187*cdf0e10cSrcweir lcl_Move( aButtonsFL, nOffset ); 188*cdf0e10cSrcweir lcl_Move( aOKBtn, nOffset ); 189*cdf0e10cSrcweir lcl_Move( aCancelBtn, nOffset ); 190*cdf0e10cSrcweir lcl_Move( aHelpBtn, nOffset ); 191*cdf0e10cSrcweir 192*cdf0e10cSrcweir Size aNewSz = GetSizePixel(); 193*cdf0e10cSrcweir aNewSz.Height() -= nOffset; 194*cdf0e10cSrcweir SetSizePixel( aNewSz ); 195*cdf0e10cSrcweir } 196*cdf0e10cSrcweir }; 197*cdf0e10cSrcweir 198*cdf0e10cSrcweir // ----------------------------------------------------------------------- 199*cdf0e10cSrcweir void LoginDialog::EnableUseSysCredsControls_Impl( sal_Bool bUseSysCredsEnabled ) 200*cdf0e10cSrcweir { 201*cdf0e10cSrcweir aErrorInfo.Enable( !bUseSysCredsEnabled ); 202*cdf0e10cSrcweir aErrorFT.Enable( !bUseSysCredsEnabled ); 203*cdf0e10cSrcweir aRequestInfo.Enable( !bUseSysCredsEnabled ); 204*cdf0e10cSrcweir aPathFT.Enable( !bUseSysCredsEnabled ); 205*cdf0e10cSrcweir aPathED.Enable( !bUseSysCredsEnabled ); 206*cdf0e10cSrcweir aPathBtn.Enable( !bUseSysCredsEnabled ); 207*cdf0e10cSrcweir aNameFT.Enable( !bUseSysCredsEnabled ); 208*cdf0e10cSrcweir aNameED.Enable( !bUseSysCredsEnabled ); 209*cdf0e10cSrcweir aPasswordFT.Enable( !bUseSysCredsEnabled ); 210*cdf0e10cSrcweir aPasswordED.Enable( !bUseSysCredsEnabled ); 211*cdf0e10cSrcweir aAccountFT.Enable( !bUseSysCredsEnabled ); 212*cdf0e10cSrcweir aAccountED.Enable( !bUseSysCredsEnabled ); 213*cdf0e10cSrcweir } 214*cdf0e10cSrcweir 215*cdf0e10cSrcweir // ----------------------------------------------------------------------- 216*cdf0e10cSrcweir 217*cdf0e10cSrcweir IMPL_LINK( LoginDialog, OKHdl_Impl, OKButton *, EMPTYARG ) 218*cdf0e10cSrcweir { 219*cdf0e10cSrcweir // trim the strings 220*cdf0e10cSrcweir aNameED.SetText( aNameED.GetText().EraseLeadingChars(). 221*cdf0e10cSrcweir EraseTrailingChars() ); 222*cdf0e10cSrcweir aPasswordED.SetText( aPasswordED.GetText().EraseLeadingChars(). 223*cdf0e10cSrcweir EraseTrailingChars() ); 224*cdf0e10cSrcweir EndDialog( RET_OK ); 225*cdf0e10cSrcweir return 1; 226*cdf0e10cSrcweir } 227*cdf0e10cSrcweir 228*cdf0e10cSrcweir // ----------------------------------------------------------------------- 229*cdf0e10cSrcweir 230*cdf0e10cSrcweir IMPL_LINK( LoginDialog, PathHdl_Impl, PushButton *, EMPTYARG ) 231*cdf0e10cSrcweir { 232*cdf0e10cSrcweir PathDialog* pDlg = new PathDialog( this, WB_3DLOOK ); 233*cdf0e10cSrcweir pDlg->SetPath( aPathED.GetText() ); 234*cdf0e10cSrcweir 235*cdf0e10cSrcweir if ( pDlg->Execute() == RET_OK ) 236*cdf0e10cSrcweir aPathED.SetText( pDlg->GetPath() ); 237*cdf0e10cSrcweir 238*cdf0e10cSrcweir delete pDlg; 239*cdf0e10cSrcweir return 1; 240*cdf0e10cSrcweir } 241*cdf0e10cSrcweir 242*cdf0e10cSrcweir // ----------------------------------------------------------------------- 243*cdf0e10cSrcweir 244*cdf0e10cSrcweir IMPL_LINK( LoginDialog, UseSysCredsHdl_Impl, CheckBox *, EMPTYARG ) 245*cdf0e10cSrcweir { 246*cdf0e10cSrcweir EnableUseSysCredsControls_Impl( aUseSysCredsCB.IsChecked() ); 247*cdf0e10cSrcweir return 1; 248*cdf0e10cSrcweir } 249*cdf0e10cSrcweir 250*cdf0e10cSrcweir // ----------------------------------------------------------------------- 251*cdf0e10cSrcweir 252*cdf0e10cSrcweir LoginDialog::LoginDialog 253*cdf0e10cSrcweir ( 254*cdf0e10cSrcweir Window* pParent, 255*cdf0e10cSrcweir sal_uInt16 nFlags, 256*cdf0e10cSrcweir const String& rServer, 257*cdf0e10cSrcweir const String* pRealm, 258*cdf0e10cSrcweir ResMgr* pResMgr 259*cdf0e10cSrcweir ) : 260*cdf0e10cSrcweir 261*cdf0e10cSrcweir ModalDialog( pParent, ResId( DLG_UUI_LOGIN, *pResMgr ) ), 262*cdf0e10cSrcweir 263*cdf0e10cSrcweir aErrorFT ( this, ResId( FT_LOGIN_ERROR, *pResMgr ) ), 264*cdf0e10cSrcweir aErrorInfo ( this, ResId( FT_INFO_LOGIN_ERROR, *pResMgr ) ), 265*cdf0e10cSrcweir aLogin1FL ( this, ResId( FL_LOGIN_1, *pResMgr ) ), 266*cdf0e10cSrcweir aRequestInfo ( this, ResId( FT_INFO_LOGIN_REQUEST, *pResMgr ) ), 267*cdf0e10cSrcweir aLogin2FL ( this, ResId( FL_LOGIN_2, *pResMgr ) ), 268*cdf0e10cSrcweir aPathFT ( this, ResId( FT_LOGIN_PATH, *pResMgr ) ), 269*cdf0e10cSrcweir aPathED ( this, ResId( ED_LOGIN_PATH, *pResMgr ) ), 270*cdf0e10cSrcweir aPathBtn ( this, ResId( BTN_LOGIN_PATH, *pResMgr ) ), 271*cdf0e10cSrcweir aNameFT ( this, ResId( FT_LOGIN_USERNAME, *pResMgr ) ), 272*cdf0e10cSrcweir aNameED ( this, ResId( ED_LOGIN_USERNAME, *pResMgr ) ), 273*cdf0e10cSrcweir aPasswordFT ( this, ResId( FT_LOGIN_PASSWORD, *pResMgr ) ), 274*cdf0e10cSrcweir aPasswordED ( this, ResId( ED_LOGIN_PASSWORD, *pResMgr ) ), 275*cdf0e10cSrcweir aAccountFT ( this, ResId( FT_LOGIN_ACCOUNT, *pResMgr ) ), 276*cdf0e10cSrcweir aAccountED ( this, ResId( ED_LOGIN_ACCOUNT, *pResMgr ) ), 277*cdf0e10cSrcweir aSavePasswdBtn ( this, ResId( CB_LOGIN_SAVEPASSWORD, *pResMgr ) ), 278*cdf0e10cSrcweir aUseSysCredsCB ( this, ResId( CB_LOGIN_USESYSCREDS, *pResMgr ) ), 279*cdf0e10cSrcweir aButtonsFL ( this, ResId( FL_BUTTONS, *pResMgr ) ), 280*cdf0e10cSrcweir aOKBtn ( this, ResId( BTN_LOGIN_OK, *pResMgr ) ), 281*cdf0e10cSrcweir aCancelBtn ( this, ResId( BTN_LOGIN_CANCEL, *pResMgr ) ), 282*cdf0e10cSrcweir aHelpBtn ( this, ResId( BTN_LOGIN_HELP, *pResMgr ) ) 283*cdf0e10cSrcweir 284*cdf0e10cSrcweir { 285*cdf0e10cSrcweir UniString aRequest; 286*cdf0e10cSrcweir if ((nFlags & LF_NO_ACCOUNT) != 0 && pRealm && pRealm->Len() != 0) 287*cdf0e10cSrcweir { 288*cdf0e10cSrcweir aRequest = ResId(STR_LOGIN_REALM, *pResMgr); 289*cdf0e10cSrcweir aRequest.SearchAndReplaceAscii("%2", *pRealm); 290*cdf0e10cSrcweir } 291*cdf0e10cSrcweir else 292*cdf0e10cSrcweir aRequest = aRequestInfo.GetText(); 293*cdf0e10cSrcweir 294*cdf0e10cSrcweir if ( !( ( nFlags & LF_NO_USESYSCREDS ) == LF_NO_USESYSCREDS ) ) 295*cdf0e10cSrcweir EnableUseSysCredsControls_Impl( aUseSysCredsCB.IsChecked() ); 296*cdf0e10cSrcweir 297*cdf0e10cSrcweir aRequest.SearchAndReplaceAscii("%1", rServer); 298*cdf0e10cSrcweir aRequestInfo.SetText(aRequest); 299*cdf0e10cSrcweir 300*cdf0e10cSrcweir FreeResource(); 301*cdf0e10cSrcweir 302*cdf0e10cSrcweir aPathED.SetMaxTextLen( _MAX_PATH ); 303*cdf0e10cSrcweir aNameED.SetMaxTextLen( _MAX_PATH ); 304*cdf0e10cSrcweir 305*cdf0e10cSrcweir aOKBtn.SetClickHdl( LINK( this, LoginDialog, OKHdl_Impl ) ); 306*cdf0e10cSrcweir aPathBtn.SetClickHdl( LINK( this, LoginDialog, PathHdl_Impl ) ); 307*cdf0e10cSrcweir aUseSysCredsCB.SetClickHdl( LINK( this, LoginDialog, UseSysCredsHdl_Impl ) ); 308*cdf0e10cSrcweir 309*cdf0e10cSrcweir HideControls_Impl( nFlags ); 310*cdf0e10cSrcweir }; 311*cdf0e10cSrcweir 312*cdf0e10cSrcweir // ----------------------------------------------------------------------- 313*cdf0e10cSrcweir 314*cdf0e10cSrcweir LoginDialog::~LoginDialog() 315*cdf0e10cSrcweir { 316*cdf0e10cSrcweir } 317*cdf0e10cSrcweir 318*cdf0e10cSrcweir // ----------------------------------------------------------------------- 319*cdf0e10cSrcweir 320*cdf0e10cSrcweir void LoginDialog::SetUseSystemCredentials( sal_Bool bUse ) 321*cdf0e10cSrcweir { 322*cdf0e10cSrcweir if ( aUseSysCredsCB.IsVisible() ) 323*cdf0e10cSrcweir { 324*cdf0e10cSrcweir aUseSysCredsCB.Check( bUse ); 325*cdf0e10cSrcweir EnableUseSysCredsControls_Impl( bUse ); 326*cdf0e10cSrcweir } 327*cdf0e10cSrcweir } 328*cdf0e10cSrcweir 329*cdf0e10cSrcweir // ----------------------------------------------------------------------- 330*cdf0e10cSrcweir 331*cdf0e10cSrcweir void LoginDialog::ClearPassword() 332*cdf0e10cSrcweir { 333*cdf0e10cSrcweir aPasswordED.SetText( String() ); 334*cdf0e10cSrcweir 335*cdf0e10cSrcweir if ( 0 == aNameED.GetText().Len() ) 336*cdf0e10cSrcweir aNameED.GrabFocus(); 337*cdf0e10cSrcweir else 338*cdf0e10cSrcweir aPasswordED.GrabFocus(); 339*cdf0e10cSrcweir }; 340*cdf0e10cSrcweir 341*cdf0e10cSrcweir // ----------------------------------------------------------------------- 342*cdf0e10cSrcweir 343*cdf0e10cSrcweir void LoginDialog::ClearAccount() 344*cdf0e10cSrcweir { 345*cdf0e10cSrcweir aAccountED.SetText( String() ); 346*cdf0e10cSrcweir aAccountED.GrabFocus(); 347*cdf0e10cSrcweir }; 348*cdf0e10cSrcweir 349*cdf0e10cSrcweir //............................................................................ 350*cdf0e10cSrcweir //............................................................................ 351