LCOV - code coverage report
Current view: top level - dbaccess/source/ui/dlg - finteraction.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 13 0.0 %
Date: 2012-08-25 Functions: 0 4 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 24 0.0 %

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*
       3                 :            :  * This file is part of the LibreOffice project.
       4                 :            :  *
       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/.
       8                 :            :  *
       9                 :            :  * This file incorporates work covered by the following license notice:
      10                 :            :  *
      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 .
      18                 :            :  */
      19                 :            : 
      20                 :            : 
      21                 :            : #include "finteraction.hxx"
      22                 :            : #include <tools/debug.hxx>
      23                 :            : #include <osl/diagnose.h>
      24                 :            : #include <com/sun/star/ucb/InteractiveIOException.hpp>
      25                 :            : 
      26                 :            : //........................................................................
      27                 :            : namespace dbaui
      28                 :            : {
      29                 :            : //........................................................................
      30                 :            :     using namespace ::com::sun::star::uno;
      31                 :            :     using namespace ::com::sun::star::task;
      32                 :            :     using namespace ::com::sun::star::ucb;
      33                 :            : 
      34                 :            :     //====================================================================
      35                 :            :     //= OFilePickerInteractionHandler
      36                 :            :     //====================================================================
      37                 :            :     DBG_NAME( OFilePickerInteractionHandler )
      38                 :            :     //--------------------------------------------------------------------
      39                 :          0 :     OFilePickerInteractionHandler::OFilePickerInteractionHandler( const Reference< XInteractionHandler >& _rxMaster )
      40                 :            :         :m_xMaster( _rxMaster )
      41                 :          0 :         ,m_bDoesNotExist(sal_False)
      42                 :            :     {
      43                 :            :         DBG_CTOR( OFilePickerInteractionHandler, NULL );
      44                 :            :         OSL_ENSURE( m_xMaster.is(), "OFilePickerInteractionHandler::OFilePickerInteractionHandler: invalid master handler!" );
      45                 :          0 :     }
      46                 :            : 
      47                 :            :     //--------------------------------------------------------------------
      48                 :          0 :     OFilePickerInteractionHandler::~OFilePickerInteractionHandler( )
      49                 :            :     {
      50                 :            :         DBG_DTOR( OFilePickerInteractionHandler, NULL );
      51         [ #  # ]:          0 :     }
      52                 :            : 
      53                 :            :     //--------------------------------------------------------------------
      54                 :          0 :     void SAL_CALL OFilePickerInteractionHandler::handle( const Reference< XInteractionRequest >& _rxRequest ) throw (RuntimeException)
      55                 :            :     {
      56         [ #  # ]:          0 :         InteractiveIOException aIoException;
      57 [ #  # ][ #  # ]:          0 :         if ( _rxRequest->getRequest() >>= aIoException )
         [ #  # ][ #  # ]
      58                 :            :         {
      59         [ #  # ]:          0 :             if ( IOErrorCode_NOT_EXISTING == aIoException.Code )
      60                 :            :             {
      61                 :          0 :                 m_bDoesNotExist = sal_True;
      62                 :          0 :                 return;
      63                 :            :             }
      64                 :            :         }
      65                 :            : 
      66         [ #  # ]:          0 :         if ( m_xMaster.is() )
      67 [ #  # ][ #  # ]:          0 :             m_xMaster->handle( _rxRequest );
         [ #  # ][ #  # ]
      68                 :            :     }
      69                 :            : 
      70                 :            : //........................................................................
      71                 :            : }   // namespace svt
      72                 :            : //........................................................................
      73                 :            : 
      74                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10