Update ooo320-m1
[ooovba.git] / dbaccess / source / ui / dlg / finteraction.cxx
blob7da1e1ddfaf0341669ee47e382eb28581e1d3191
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: finteraction.cxx,v $
10 * $Revision: 1.5 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 // MARKER(update_precomp.py): autogen include statement, do not remove
32 #include "precompiled_dbaccess.hxx"
34 #ifndef DBAUI_FILEPICKER_INTERACTION_HXX
35 #include "finteraction.hxx"
36 #endif
37 #ifndef _TOOLS_DEBUG_HXX
38 #include <tools/debug.hxx>
39 #endif
40 #ifndef _COM_SUN_STAR_UCB_INTERACTIVEIOEXCEPTION_HPP_
41 #include <com/sun/star/ucb/InteractiveIOException.hpp>
42 #endif
44 //........................................................................
45 namespace dbaui
47 //........................................................................
48 using namespace ::com::sun::star::uno;
49 using namespace ::com::sun::star::task;
50 using namespace ::com::sun::star::ucb;
52 //====================================================================
53 //= OFilePickerInteractionHandler
54 //====================================================================
55 DBG_NAME( OFilePickerInteractionHandler )
56 //--------------------------------------------------------------------
57 OFilePickerInteractionHandler::OFilePickerInteractionHandler( const Reference< XInteractionHandler >& _rxMaster )
58 :m_xMaster( _rxMaster )
59 ,m_bDoesNotExist(sal_False)
61 DBG_CTOR( OFilePickerInteractionHandler, NULL );
62 DBG_ASSERT( m_xMaster.is(), "OFilePickerInteractionHandler::OFilePickerInteractionHandler: invalid master handler!" );
65 //--------------------------------------------------------------------
66 OFilePickerInteractionHandler::~OFilePickerInteractionHandler( )
68 DBG_DTOR( OFilePickerInteractionHandler, NULL );
71 //--------------------------------------------------------------------
72 void SAL_CALL OFilePickerInteractionHandler::handle( const Reference< XInteractionRequest >& _rxRequest ) throw (RuntimeException)
74 InteractiveIOException aIoException;
75 if ( _rxRequest->getRequest() >>= aIoException )
77 if ( IOErrorCode_NOT_EXISTING == aIoException.Code )
79 m_bDoesNotExist = sal_True;
80 return;
84 if ( m_xMaster.is() )
85 m_xMaster->handle( _rxRequest );
88 //........................................................................
89 } // namespace svt
90 //........................................................................