LCOV - code coverage report
Current view: top level - comphelper/source/misc - ihwrapnofilter.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 29 0.0 %
Date: 2012-08-25 Functions: 0 10 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 38 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 "comphelper/ihwrapnofilter.hxx"
      22                 :            : #include <com/sun/star/document/NoSuchFilterRequest.hpp>
      23                 :            : 
      24                 :            : //.........................................................................
      25                 :            : namespace comphelper
      26                 :            : {
      27                 :            : //.........................................................................
      28                 :            : 
      29                 :            :     using namespace ::com::sun::star;
      30                 :            : 
      31                 :            :     //----------------------------------------------------------------------------------------------------
      32                 :          0 :     OIHWrapNoFilterDialog::OIHWrapNoFilterDialog( uno::Reference< task::XInteractionHandler > xInteraction )
      33                 :          0 :         :m_xInter( xInteraction )
      34                 :            :     {
      35                 :          0 :     }
      36                 :            : 
      37                 :          0 :     OIHWrapNoFilterDialog::~OIHWrapNoFilterDialog()
      38                 :            :     {
      39         [ #  # ]:          0 :     }
      40                 :            : 
      41                 :            :     //----------------------------------------------------------------------------------------------------
      42                 :          0 :     uno::Sequence< ::rtl::OUString > SAL_CALL OIHWrapNoFilterDialog::impl_staticGetSupportedServiceNames()
      43                 :            :     {
      44                 :          0 :         uno::Sequence< ::rtl::OUString > aRet(1);
      45 [ #  # ][ #  # ]:          0 :         aRet[0] = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.task.InteractionHandlerWrapper"));
      46                 :          0 :         return aRet;
      47                 :            :     }
      48                 :            : 
      49                 :          0 :     ::rtl::OUString SAL_CALL OIHWrapNoFilterDialog::impl_staticGetImplementationName()
      50                 :            :     {
      51                 :          0 :         return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.comp.task.InteractionHandlerWrapper"));
      52                 :            :     }
      53                 :            : 
      54                 :            :     //----------------------------------------------------------------------------------------------------
      55                 :            :     // XInteractionHandler
      56                 :            :     //----------------------------------------------------------------------------------------------------
      57                 :          0 :     void SAL_CALL OIHWrapNoFilterDialog::handle( const uno::Reference< task::XInteractionRequest >& xRequest)
      58                 :            :             throw( com::sun::star::uno::RuntimeException )
      59                 :            :     {
      60         [ #  # ]:          0 :         if( !m_xInter.is() )
      61                 :            :             return;
      62                 :            : 
      63 [ #  # ][ #  # ]:          0 :         uno::Any aRequest = xRequest->getRequest();
      64         [ #  # ]:          0 :         document::NoSuchFilterRequest aNoSuchFilterRequest;
      65 [ #  # ][ #  # ]:          0 :         if ( aRequest >>= aNoSuchFilterRequest )
      66                 :            :             return;
      67                 :            :         else
      68 [ #  # ][ #  # ]:          0 :             m_xInter->handle( xRequest );
         [ #  # ][ #  # ]
                 [ #  # ]
      69                 :            :     }
      70                 :            : 
      71                 :            :     //----------------------------------------------------------------------------------------------------
      72                 :            :     // XInitialization
      73                 :            :     //----------------------------------------------------------------------------------------------------
      74                 :          0 :     void SAL_CALL OIHWrapNoFilterDialog::initialize( const uno::Sequence< uno::Any >& )
      75                 :            :         throw ( uno::Exception,
      76                 :            :         uno::RuntimeException,
      77                 :            :         frame::DoubleInitializationException )
      78                 :            :     {
      79                 :          0 :     }
      80                 :            : 
      81                 :            :     //----------------------------------------------------------------------------------------------------
      82                 :            :     // XServiceInfo
      83                 :            :     //----------------------------------------------------------------------------------------------------
      84                 :            : 
      85                 :          0 :     ::rtl::OUString SAL_CALL OIHWrapNoFilterDialog::getImplementationName()
      86                 :            :         throw ( uno::RuntimeException )
      87                 :            :     {
      88                 :          0 :         return impl_staticGetImplementationName();
      89                 :            :     }
      90                 :            : 
      91                 :          0 :     ::sal_Bool SAL_CALL OIHWrapNoFilterDialog::supportsService( const ::rtl::OUString& ServiceName )
      92                 :            :         throw ( uno::RuntimeException )
      93                 :            :     {
      94         [ #  # ]:          0 :         uno::Sequence< ::rtl::OUString > aSeq = impl_staticGetSupportedServiceNames();
      95                 :            : 
      96         [ #  # ]:          0 :         for ( sal_Int32 nInd = 0; nInd < aSeq.getLength(); nInd++ )
      97 [ #  # ][ #  # ]:          0 :             if ( ServiceName.compareTo( aSeq[nInd] ) == 0 )
      98                 :          0 :                 return sal_True;
      99                 :            : 
     100         [ #  # ]:          0 :         return sal_False;
     101                 :            :     }
     102                 :            : 
     103                 :          0 :     uno::Sequence< ::rtl::OUString > SAL_CALL OIHWrapNoFilterDialog::getSupportedServiceNames()
     104                 :            :         throw ( uno::RuntimeException )
     105                 :            :     {
     106                 :          0 :         return impl_staticGetSupportedServiceNames();
     107                 :            :     }
     108                 :            : }
     109                 :            : 
     110                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10