#80754# find alternative data source

This commit is contained in:
Oliver Specht
2000-11-27 13:19:19 +00:00
parent 7712216738
commit 36ce981a00

View File

@@ -2,9 +2,9 @@
*
* $RCSfile: bibload.cxx,v $
*
* $Revision: 1.6 $
* $Revision: 1.7 $
*
* last change: $Author: os $ $Date: 2000-11-15 15:54:56 $
* last change: $Author: os $ $Date: 2000-11-27 14:19:19 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -412,6 +412,14 @@ void BibliographyLoader::loadView(const Reference< frame::XFrame > & rFrame, con
m_xDatMan = m_pDatMan;
BibDBDescriptor aBibDesc = BibModul::GetConfig()->GetBibliographyURL();
if(!aBibDesc.sDataSource.getLength());
{
DBChangeDialogConfig_Impl aConfig;
const Sequence<OUString> aSources = aConfig.GetDataSourceNames();
if(aSources.getLength())
aBibDesc.sDataSource = aSources.getConstArray()[0];
}
Reference< form::XForm > xForm = pDatMan->createDatabaseForm(aBibDesc);
if(xForm.is())