diff options
Diffstat (limited to 'dbaccess/source/ui/browser/dbexchange.cxx')
-rw-r--r-- | dbaccess/source/ui/browser/dbexchange.cxx | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/dbaccess/source/ui/browser/dbexchange.cxx b/dbaccess/source/ui/browser/dbexchange.cxx index 97e9aa41e..8ecdabc65 100644 --- a/dbaccess/source/ui/browser/dbexchange.cxx +++ b/dbaccess/source/ui/browser/dbexchange.cxx @@ -2,13 +2,10 @@ * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * - * Copyright 2008 by Sun Microsystems, Inc. + * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite * - * $RCSfile: dbexchange.cxx,v $ - * $Revision: 1.28 $ - * * This file is part of OpenOffice.org. * * OpenOffice.org is free software: you can redistribute it and/or modify @@ -160,18 +157,18 @@ namespace dbaui getDescriptor()[daCursor] <<= _rxResultSet; addCompatibleSelectionDescription( _rSelectedRows ); - if ( xConnection.is() && _rxORB.is() )
- {
- Reference< XNumberFormatter > xFormatter( getNumberFormatter( xConnection, _rxORB ) );
- if ( xFormatter.is() )
- {
- m_pHtml = new OHTMLImportExport( getDescriptor(),_rxORB, xFormatter );
- m_aEventListeners.push_back( m_pHtml );
-
- m_pRtf = new ORTFImportExport( getDescriptor(),_rxORB, xFormatter );
- m_aEventListeners.push_back( m_pRtf );
- }
- }
+ if ( xConnection.is() && _rxORB.is() ) + { + Reference< XNumberFormatter > xFormatter( getNumberFormatter( xConnection, _rxORB ) ); + if ( xFormatter.is() ) + { + m_pHtml = new OHTMLImportExport( getDescriptor(),_rxORB, xFormatter ); + m_aEventListeners.push_back( m_pHtml ); + + m_pRtf = new ORTFImportExport( getDescriptor(),_rxORB, xFormatter ); + m_aEventListeners.push_back( m_pRtf ); + } + } osl_decrementInterlockedCount( &m_refCount ); |