diff options
author | Ocke Janssen <oj@openoffice.org> | 2001-07-18 07:51:19 +0000 |
---|---|---|
committer | Ocke Janssen <oj@openoffice.org> | 2001-07-18 07:51:19 +0000 |
commit | 8c5d7b3919a681258da9c01c61628d15951e525c (patch) | |
tree | 451fd6320def0e93843212c6d273bde85c267e4e /dbaccess/source/ui/misc/UITools.cxx | |
parent | 99286fceaeb7fbf2adba8498c680a3a4d45b6e30 (diff) |
#89772# set new configurationnode when datasource was renamed
Diffstat (limited to 'dbaccess/source/ui/misc/UITools.cxx')
-rw-r--r-- | dbaccess/source/ui/misc/UITools.cxx | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/dbaccess/source/ui/misc/UITools.cxx b/dbaccess/source/ui/misc/UITools.cxx index e13bb94bd117d..25ddaa5c7b4be 100644 --- a/dbaccess/source/ui/misc/UITools.cxx +++ b/dbaccess/source/ui/misc/UITools.cxx @@ -2,9 +2,9 @@ * * $RCSfile: UITools.cxx,v $ * - * $Revision: 1.12 $ + * $Revision: 1.13 $ * - * last change: $Author: oj $ $Date: 2001-07-16 07:53:20 $ + * last change: $Author: oj $ $Date: 2001-07-18 08:51:12 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -555,6 +555,15 @@ void setColumnProperties(const Reference<XPropertySet>& _rxColumn,const OFieldDe } return sDefaultName; } +// ----------------------------------------------------------------------------- +sal_Bool checkDataSourceAvailable(const ::rtl::OUString& _sDataSourceName,const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _xORB) +{ + sal_Bool bRet = sal_False; + Reference< XNameAccess > xDataBaseContext(_xORB->createInstance(SERVICE_SDB_DATABASECONTEXT), UNO_QUERY); + if(xDataBaseContext.is()) + bRet = xDataBaseContext->hasByName(_sDataSourceName); + return bRet; +} // ......................................................................... } |