From 9837015df43611f566526d76bed76c94b91808e6 Mon Sep 17 00:00:00 2001 From: Niklas Nebel Date: Fri, 27 Oct 2000 12:13:07 +0000 Subject: old (sba) implementation of StartQuerySh removed --- sc/source/ui/view/dbfunc.cxx | 44 +++++--------------------------------------- 1 file changed, 5 insertions(+), 39 deletions(-) (limited to 'sc/source/ui/view/dbfunc.cxx') diff --git a/sc/source/ui/view/dbfunc.cxx b/sc/source/ui/view/dbfunc.cxx index 5b523d2c1473..6a88143d06d9 100644 --- a/sc/source/ui/view/dbfunc.cxx +++ b/sc/source/ui/view/dbfunc.cxx @@ -2,9 +2,9 @@ * * $RCSfile: dbfunc.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: nn $ $Date: 2000-09-22 18:34:19 $ + * last change: $Author: nn $ $Date: 2000-10-27 13:13:07 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -69,8 +69,6 @@ #include "scitems.hxx" #include -#include -#include #include #include @@ -445,42 +443,10 @@ void ScDBFunc::HideAutoFilter() void ScDBFunc::StartQuerySh( const ScImportParam& rParam ) { - SbaObject* pSbaObject = OFF_APP()->GetSbaObject(); - DBG_ASSERT(pSbaObject != NULL,"ScDBFunc::StartQuerySh: pSbaObject == NULL"); + //! show the database beamer, with the database from rParam if one is set + //! this will be handled by a uno service in the future - String aDBName; - String aLogicName; // Tabellen-/Query-Name - String aStatement; // SQL-String - BOOL bSql = FALSE; - BOOL bNative = FALSE; - DBObject eObj = dbTable; - - if (rParam.bImport) // alte Abfrage wieder anzeigen - { - aDBName = rParam.aDBName; -//! bNative = rParam.bNative; //! Native gibt momentan Aerger ??!??!?! - bSql = rParam.bSql; - if ( bSql ) - aStatement = rParam.aStatement; // Statement direkt - else - aLogicName = rParam.aStatement; // Name (Tabelle/Abfrage) - - eObj = (DBObject) rParam.nType; // Unterscheidung Tabelle/Abfrage - } - else // war nix im Parameter -> Adressbuch - { - aDBName = pSbaObject->GetAddrDBName(); - aLogicName = pSbaObject->GetAddrTableName(); - } - - SbaDatabaseRef pDatabase = pSbaObject->GetDatabase(aDBName, TRUE); // TRUE: Fehlermeldungen - if (pDatabase.Is()) - { - if ( bSql ) - pDatabase->ShowStatement(aStatement, bNative); - else - pDatabase->ShowDBDef(eObj, aLogicName); - } + DBG_ERROR("Database beamer integration is not implemented yet"); } // Re-Import -- cgit