LCOV - code coverage report
Current view: top level - extensions/source/scanner - scanner.cxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 24 28 85.7 %
Date: 2014-11-03 Functions: 9 11 81.8 %
Legend: Lines: hit not hit

          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             : #include <scanner.hxx>
      21             : 
      22             : 
      23             : // - ScannerManager -
      24             : 
      25             : 
      26         198 : Reference< XInterface > SAL_CALL ScannerManager_CreateInstance( const Reference< com::sun::star::lang::XMultiServiceFactory >& /*rxFactory*/ ) throw ( Exception )
      27             : {
      28         198 :     return *( new ScannerManager() );
      29             : }
      30             : 
      31             : 
      32             : 
      33         198 : ScannerManager::ScannerManager() :
      34         198 :     mpData( NULL )
      35             : {
      36         198 :     AcquireData();
      37         198 : }
      38             : 
      39             : 
      40             : 
      41         594 : ScannerManager::~ScannerManager()
      42             : {
      43         198 :     ReleaseData();
      44         396 : }
      45             : 
      46             : 
      47             : 
      48         198 : Any SAL_CALL ScannerManager::queryInterface( const Type& rType ) throw( RuntimeException, std::exception )
      49             : {
      50             :     const Any aRet( cppu::queryInterface( rType,
      51             :                                           static_cast< XScannerManager2* >( this ),
      52         198 :                                           static_cast< css::awt::XBitmap* >( this ) ) );
      53             : 
      54         198 :     return( aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType ) );
      55             : }
      56             : 
      57             : 
      58             : 
      59        1182 : void SAL_CALL ScannerManager::acquire() throw()
      60             : {
      61        1182 :     OWeakObject::acquire();
      62        1182 : }
      63             : 
      64             : 
      65             : 
      66        1182 : void SAL_CALL ScannerManager::release() throw()
      67             : {
      68        1182 :     OWeakObject::release();
      69        1182 : }
      70             : 
      71             : 
      72             : 
      73           0 : Sequence< sal_Int8 > SAL_CALL ScannerManager::getMaskDIB() throw(std::exception)
      74             : {
      75           0 :     return Sequence< sal_Int8 >();
      76             : }
      77             : 
      78             : 
      79             : 
      80          44 : OUString ScannerManager::getImplementationName_Static() throw()
      81             : {
      82          44 :     return OUString( "com.sun.star.scanner.ScannerManager" );
      83             : }
      84             : 
      85             : 
      86             : 
      87          22 : Sequence< OUString > ScannerManager::getSupportedServiceNames_Static() throw ()
      88             : {
      89          22 :     Sequence< OUString > aSNS( 1 );
      90             : 
      91          22 :     aSNS.getArray()[0] = "com.sun.star.scanner.ScannerManager";
      92             : 
      93          22 :     return aSNS;
      94             : }
      95             : 
      96           0 : sal_Bool SAL_CALL ScannerManager::configureScanner( ScannerContext& rContext )
      97             :     throw( ScannerException, std::exception )
      98             : {
      99           0 :     return configureScannerAndScan( rContext, NULL );
     100             : }
     101             : 
     102             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10