Tag: cws_src680_dba201b User: fs Date: 05/07/20 03:10:06 Modified: /dba/dbaccess/source/ui/inc/ unodatbr.hxx
Log: #i51255# XConnection replaced with SharedConnection File Changes: Directory: /dba/dbaccess/source/ui/inc/ ======================================= File [changed]: unodatbr.hxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/inc/unodatbr.hxx?r1=1.60.2.1&r2=1.60.2.2 Delta lines: +30 -15 --------------------- --- unodatbr.hxx 15 Jul 2005 06:06:58 -0000 1.60.2.1 +++ unodatbr.hxx 20 Jul 2005 10:10:03 -0000 1.60.2.2 @@ -2,9 +2,9 @@ * * $RCSfile: unodatbr.hxx,v $ * - * $Revision: 1.60.2.1 $ + * $Revision: 1.60.2.2 $ * - * last change: $Author: oj $ $Date: 2005/07/15 06:06:58 $ + * last change: $Author: fs $ $Date: 2005/07/20 10:10:03 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -86,7 +86,9 @@ #ifndef _COM_SUN_STAR_VIEW_XSELECTIONSUPPLIER_HPP_ #include <com/sun/star/view/XSelectionSupplier.hpp> #endif +#ifndef _COM_SUN_STAR_AWT_XWINDOW_HPP_ #include <com/sun/star/awt/XWindow.hpp> +#endif #ifndef _CPPUHELPER_IMPLBASE2_HXX_ #include <cppuhelper/implbase2.hxx> #endif @@ -108,6 +110,9 @@ #ifndef DBUI_TABLECOPYHELPER_HXX #include "TableCopyHelper.hxx" #endif +#ifndef _DBAUI_COMMON_TYPES_HXX_ +#include "commontypes.hxx" +#endif // ========================================================================= class SvLBoxEntry; @@ -182,7 +187,6 @@ sal_Bool m_bShowMenu; // if TRUE the menu should be visible otherwise not sal_Bool m_bInSuspend; sal_Bool m_bEnableBrowser; - sal_Bool m_bOwnConnection; /** updateTitle will be called when a new frame is attached @@ -338,8 +342,8 @@ */ void implAddDatasource(const String& _rDbName, Image& _rDbImage, String& _rQueryName, Image& _rQueryImage, - String& _rTableName, Image& _rTableImage - ,const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _rxConnection + String& _rTableName, Image& _rTableImage, + const SharedConnection& _rxConnection ); /// clears the tree list box @@ -368,8 +372,8 @@ */ SvLBoxEntry* getEntryFromContainer(const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess>& _rxNameAccess); // return true when there is connection available - sal_Bool ensureConnection(SvLBoxEntry* _pDSEntry,void * pDSData,::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection>& _xConnection); - sal_Bool ensureConnection(SvLBoxEntry* _pAnyEntry, ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection>& _xConnection); + sal_Bool ensureConnection(SvLBoxEntry* _pDSEntry, void * pDSData, SharedConnection& _rConnection ); + sal_Bool ensureConnection(SvLBoxEntry* _pAnyEntry, SharedConnection& _rConnection ); void implAdministrate( SvLBoxEntry* _pApplyTo ); void implDirectSQL( SvLBoxEntry* _pApplyTo ); @@ -414,13 +418,18 @@ sal_Bool implSelect(const ::svx::ODataAccessDescriptor& _rDescriptor,sal_Bool _bSelectDirect = sal_False); /// selects the entry given and loads the grid control with the object's data - sal_Bool implSelect(const ::rtl::OUString& _rDataSourceName, const ::rtl::OUString& _rCommand, - const sal_Int32 _nCommandType, const sal_Bool _bEscapeProcessing,const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection>& _rxConnection=NULL - ,sal_Bool _bSelectDirect = sal_False); + sal_Bool implSelect( + const ::rtl::OUString& _rDataSourceName, + const ::rtl::OUString& _rCommand, + const sal_Int32 _nCommandType, + const sal_Bool _bEscapeProcessing, + const SharedConnection& _rxConnection, + sal_Bool _bSelectDirect = sal_False + ); /// loads the grid control with the data object specified (which may be a table, a query or a command) sal_Bool implLoadAnything(const ::rtl::OUString& _rDataSourceName, const ::rtl::OUString& _rCommand, - const sal_Int32 _nCommandType, const sal_Bool _bEscapeProcessing, const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection>& _rxConnection = NULL); + const sal_Int32 _nCommandType, const sal_Bool _bEscapeProcessing, const SharedConnection& _rxConnection = SharedConnection() ); /** retrieves the tree entry for the object described by <arg>_rDescriptor</arg> @param _rDescriptor @@ -456,7 +465,7 @@ const ::rtl::OUString& _rDataSource, const ::rtl::OUString& _rCommand, sal_Int32 _nCommandType, SvLBoxEntry** _ppDataSourceEntry = NULL, SvLBoxEntry** _ppContainerEntry = NULL, sal_Bool _bExpandAncestors = sal_True, - const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _rxConnection = NULL + const SharedConnection& _rxConnection = SharedConnection() ); /// checks if m_aDocumentDataSource describes a known object @@ -475,6 +484,13 @@ // sets a frame title void setDefaultTitle(); + // checks whether the given tree entry denotes a data source + bool impl_isDataSourceEntry( SvLBoxEntry* _pEntry ) const; + + /// retrieves the database document to which a given connection belongs + ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > + impl_nf_getDBDocumentForConnection( const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _rxConnection ); + /// retrieves the data source URL/name for the given entry representing a data source String getDataSourceAcessor( SvLBoxEntry* _pDataSourceEntry ) const; @@ -489,7 +505,6 @@ void copyEntry(SvLBoxEntry* _pEntry); - void ensureObjectExists(SvLBoxEntry* _pApplyTo); // remove all grid columns and dispose them void clearGridColumns(const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >& _xColContainer); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
