check if XUNOTunnel is supported

This commit is contained in:
Ocke Janssen 2000-12-12 14:51:01 +00:00
parent 8367b3ff7c
commit 925c690e21

View file

@ -2,9 +2,9 @@
*
* $RCSfile: column.cxx,v $
*
* $Revision: 1.10 $
* $Revision: 1.11 $
*
* last change: $Author: oj $ $Date: 2000-12-12 12:19:01 $
* last change: $Author: oj $ $Date: 2000-12-12 15:51:01 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@ -620,6 +620,7 @@ void OColumns::storeSettings(const OConfigurationNode& _rLocation)
// set the name
Reference< ::com::sun::star::lang::XUnoTunnel> xTunnel((*aIter)->second.get(),UNO_QUERY);
if(xTunnel.is())
{
pCurrent = (OColumn*)xTunnel->getSomething(OColumn::getUnoTunnelImplementationId());
OSL_ENSHURE(pCurrent,"OColumns::storeSettings: No column from unotunnelhelper!");
@ -659,6 +660,7 @@ void OColumns::storeSettings(const OConfigurationNode& _rLocation)
// let the column write itself
pCurrentSettings->writeUITo(aColumnNode);
}
}
// delete all description keys where we have no columns for
for ( ConstMapName2NodeIterator aRemove = aObjectKeys.begin();