summaryrefslogtreecommitdiff
path: root/sw/inc/dbmgr.hxx
diff options
context:
space:
mode:
authorOliver Specht <os@openoffice.org>2001-08-15 07:20:44 +0000
committerOliver Specht <os@openoffice.org>2001-08-15 07:20:44 +0000
commitfca027b0bd76a76b50f4d6d667d2d479417a74a6 (patch)
tree0641ab0813ab8188fa8f719245343af526693386 /sw/inc/dbmgr.hxx
parent894ff1ac969a5f2b4c5ecf63176881e27c350fb3 (diff)
#89762# connections now pooled at the SwNewDBMgr
Diffstat (limited to 'sw/inc/dbmgr.hxx')
-rw-r--r--sw/inc/dbmgr.hxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/sw/inc/dbmgr.hxx b/sw/inc/dbmgr.hxx
index 26e54a816ebf..1bb1f8ea21fb 100644
--- a/sw/inc/dbmgr.hxx
+++ b/sw/inc/dbmgr.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: dbmgr.hxx,v $
*
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: os $ $Date: 2001-07-10 13:49:54 $
+ * last change: $Author: os $ $Date: 2001-08-15 08:20:44 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -206,6 +206,7 @@ class SwNewDBMgr
SwMailMergeDlg* pMergeDialog;
SwDSParam* FindDSData(const SwDBData& rData, BOOL bCreate);
+ SwDSParam* FindDSConnection(const ::rtl::OUString& rSource, BOOL bCreate);
DECL_LINK( PrtCancelHdl, Button * );
@@ -301,6 +302,10 @@ public:
BOOL GetColumnCnt(const String& rSourceName, const String& rTableName,
const String& rColumnName, sal_uInt32 nAbsRecordId, long nLanguage,
String& rResult, double* pNumber);
+ //create and store or find an already stored connection to a data source for use
+ //in SwFldMgr and SwDBTreeList
+ ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection>
+ RegisterConnection(::rtl::OUString& rSource);
const SwDSParam* CreateDSData(const SwDBData& rData)
{return FindDSData(rData, TRUE);}