Tag: cws_src680_dba25
User: oj      
Date: 05/03/04 00:04:56

Modified:
 /dba/dbaccess/source/ui/app/
  AppController.cxx, AppDetailPageHelper.cxx

Log:
 #i43915# only open a connection when preview is needed

File Changes:

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

File [changed]: AppController.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/app/AppController.cxx?r1=1.15.2.1&r2=1.15.2.2
Delta lines:  +14 -3
--------------------
--- AppController.cxx   4 Mar 2005 07:19:25 -0000       1.15.2.1
+++ AppController.cxx   4 Mar 2005 08:04:52 -0000       1.15.2.2
@@ -2,9 +2,9 @@
  *
  *  $RCSfile: AppController.cxx,v $
  *
- *  $Revision: 1.15.2.1 $
+ *  $Revision: 1.15.2.2 $
  *
- *  last change: $Author: oj $ $Date: 2005/03/04 07:19:25 $
+ *  last change: $Author: oj $ $Date: 2005/03/04 08:04:52 $
  *
  *  The Contents of this file are made available subject to the terms of
  *  either of the following licenses
@@ -2027,7 +2027,6 @@
 // 
-----------------------------------------------------------------------------
 void OApplicationController::onEntryDeSelect(SvTreeListBox* _pTree)
 {
-       getContainer()->showPreview(NULL);
        InvalidateAll();
 }
 // 
-----------------------------------------------------------------------------
@@ -2059,6 +2058,18 @@
                                                }
                                                break;
                                        case E_QUERY:
+                        {
+                            ::rtl::OUString sName = pView->getQualifiedName( 
_pEntry,NULL);
+                            if ( pView->isPreviewEnabled() )
+                            {
+                                Reference<XConnection> xConnection;
+                                                           
ensureConnection(xConnection);
+                                                           if ( 
xConnection.is() )
+                                                               
pView->showPreview(getDatabaseName(),xConnection,sName,sal_False);
+                            }
+                                                       return;
+                        }
+                        break;
                                        case E_TABLE:
                                                {
                                                        Reference<XConnection> 
xConnection;

File [changed]: AppDetailPageHelper.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/app/AppDetailPageHelper.cxx?r1=1.5&r2=1.5.38.1
Delta lines:  +4 -4
-------------------
--- AppDetailPageHelper.cxx     21 Jan 2005 17:06:18 -0000      1.5
+++ AppDetailPageHelper.cxx     4 Mar 2005 08:04:54 -0000       1.5.38.1
@@ -2,9 +2,9 @@
  *
  *  $RCSfile: AppDetailPageHelper.cxx,v $
  *
- *  $Revision: 1.5 $
+ *  $Revision: 1.5.38.1 $
  *
- *  last change: $Author: kz $ $Date: 2005/01/21 17:06:18 $
+ *  last change: $Author: oj $ $Date: 2005/03/04 08:04:54 $
  *
  *  The Contents of this file are made available subject to the terms of
  *  either of the following licenses
@@ -711,7 +711,7 @@
        _pTreeView->SetDoubleClickHdl(LINK(this, OAppDetailPageHelper, 
OnEntryDoubleClick));
        _pTreeView->SetEnterKeyHdl(LINK(this, OAppDetailPageHelper, 
OnEntryDoubleClick));
        _pTreeView->SetSelectHdl(LINK(this, OAppDetailPageHelper, 
OnEntrySelectHdl));
-       //      _pTreeView->SetDeselectHdl(LINK(this, OAppDetailPageHelper, 
OnDeSelectHdl));
+       _pTreeView->SetDeselectHdl(LINK(this, OAppDetailPageHelper, 
OnDeSelectHdl));
 
        _pTreeView->setCutHandler(LINK(this, OAppDetailPageHelper, OnCutEntry));
        _pTreeView->setCopyHandler(LINK(this, OAppDetailPageHelper, 
OnCopyEntry));




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

Reply via email to