Tag: cws_src680_os63
User: os      
Date: 05/11/16 02:29:23

Modified:
 /dba/dbaccess/source/ui/dlg/
  ConnectionPage.cxx

Log:
 RESYNC: (1.11-1.12); FILE MERGED

File Changes:

Directory: /dba/dbaccess/source/ui/dlg/
=======================================

File [changed]: ConnectionPage.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/dlg/ConnectionPage.cxx?r1=1.10.48.2&r2=1.10.48.3
Delta lines:  +6 -2
-------------------
--- ConnectionPage.cxx  15 Sep 2005 22:41:39 -0000      1.10.48.2
+++ ConnectionPage.cxx  16 Nov 2005 10:29:20 -0000      1.10.48.3
@@ -243,6 +243,7 @@
         m_eType = m_pAdminDialog->getDatasourceType(_rSet);
         OConnectionHelper::implInitControls( _rSet, _bSaveValue);
 
+        sal_Bool bShowUser = sal_True;
                OLocalResourceAccess aLocRes( PAGE_CONNECTION, RSC_TABPAGE );
                switch( m_eType )
                {
@@ -257,6 +258,7 @@
                        case DST_CALC:
                 
m_aFT_Connection.SetText(String(ModuleRes(STR_CALC_PATH_OR_FILE)));
                                
m_aET_Connection.SetHelpId(HID_DSADMIN_CALC_PATH);
+                bShowUser = sal_False;
                                break;
                        case DST_ADABAS:
                 
m_aFT_Connection.SetText(String(ModuleRes(STR_ADABAS_DATABASE_NAME)));
@@ -318,9 +320,11 @@
         m_aPB_Connection.SetHelpId(HID_DSADMIN_BROWSECONN);
         BOOL bShowUserAuthenfication = 
m_pCollection->hasAuthentication(m_eType);
                m_aFL2.Show(bShowUserAuthenfication);
-               m_aUserNameLabel.Show(bShowUserAuthenfication);
-               m_aUserName.Show(bShowUserAuthenfication);
+               m_aUserNameLabel.Show(bShowUser && bShowUserAuthenfication);
+               m_aUserName.Show(bShowUser && bShowUserAuthenfication);
                m_aPasswordRequired.Show(bShowUserAuthenfication);
+        if ( !bShowUser && bShowUserAuthenfication )
+            m_aPasswordRequired.SetPosPixel(m_aUserNameLabel.GetPosPixel());
 
                // collect the items
                SFX_ITEMSET_GET(_rSet, pUidItem, SfxStringItem, DSID_USER, 
sal_True);




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to