bump product version to 4.1.6.2
[LibreOffice.git] / dbaccess / source / ui / dlg / finteraction.cxx
blob3b08159b58b9ae7ba5d7469f89e6c7d524b610e3
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
21 #include "finteraction.hxx"
22 #include <tools/debug.hxx>
23 #include <osl/diagnose.h>
24 #include <com/sun/star/ucb/InteractiveIOException.hpp>
26 //........................................................................
27 namespace dbaui
29 //........................................................................
30 using namespace ::com::sun::star::uno;
31 using namespace ::com::sun::star::task;
32 using namespace ::com::sun::star::ucb;
34 //====================================================================
35 //= OFilePickerInteractionHandler
36 //====================================================================
37 DBG_NAME( OFilePickerInteractionHandler )
38 //--------------------------------------------------------------------
39 OFilePickerInteractionHandler::OFilePickerInteractionHandler( const Reference< XInteractionHandler >& _rxMaster )
40 :m_xMaster( _rxMaster )
41 ,m_bDoesNotExist(sal_False)
43 DBG_CTOR( OFilePickerInteractionHandler, NULL );
44 OSL_ENSURE( m_xMaster.is(), "OFilePickerInteractionHandler::OFilePickerInteractionHandler: invalid master handler!" );
47 //--------------------------------------------------------------------
48 OFilePickerInteractionHandler::~OFilePickerInteractionHandler( )
50 DBG_DTOR( OFilePickerInteractionHandler, NULL );
53 //--------------------------------------------------------------------
54 void SAL_CALL OFilePickerInteractionHandler::handle( const Reference< XInteractionRequest >& _rxRequest ) throw (RuntimeException)
56 InteractiveIOException aIoException;
57 if ( _rxRequest->getRequest() >>= aIoException )
59 if ( IOErrorCode_NOT_EXISTING == aIoException.Code )
61 m_bDoesNotExist = sal_True;
62 return;
66 if ( m_xMaster.is() )
67 m_xMaster->handle( _rxRequest );
70 //........................................................................
71 } // namespace svt
72 //........................................................................
74 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */