LCOV - code coverage report
Current view: top level - extensions/source/scanner - scanner.cxx (source / functions) Hit Total Coverage
Test: commit 0e63ca4fde4e446f346e35849c756a30ca294aab Lines: 24 28 85.7 %
Date: 2014-04-11 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          70 : Reference< XInterface > SAL_CALL ScannerManager_CreateInstance( const Reference< com::sun::star::lang::XMultiServiceFactory >& /*rxFactory*/ ) throw ( Exception )
      27             : {
      28          70 :     return *( new ScannerManager() );
      29             : }
      30             : 
      31             : 
      32             : 
      33          70 : ScannerManager::ScannerManager() :
      34          70 :     mpData( NULL )
      35             : {
      36          70 :     AcquireData();
      37          70 : }
      38             : 
      39             : 
      40             : 
      41         210 : ScannerManager::~ScannerManager()
      42             : {
      43          70 :     ReleaseData();
      44         140 : }
      45             : 
      46             : 
      47             : 
      48          69 : 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          69 :                                           static_cast< css::awt::XBitmap* >( this ) ) );
      53             : 
      54          69 :     return( aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType ) );
      55             : }
      56             : 
      57             : 
      58             : 
      59         417 : void SAL_CALL ScannerManager::acquire() throw()
      60             : {
      61         417 :     OWeakObject::acquire();
      62         417 : }
      63             : 
      64             : 
      65             : 
      66         417 : void SAL_CALL ScannerManager::release() throw()
      67             : {
      68         417 :     OWeakObject::release();
      69         417 : }
      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          22 : OUString ScannerManager::getImplementationName_Static() throw()
      81             : {
      82          22 :     return OUString( "com.sun.star.scanner.ScannerManager" );
      83             : }
      84             : 
      85             : 
      86             : 
      87          11 : Sequence< OUString > ScannerManager::getSupportedServiceNames_Static() throw ()
      88             : {
      89          11 :     Sequence< OUString > aSNS( 1 );
      90             : 
      91          11 :     aSNS.getArray()[0] = "com.sun.star.scanner.ScannerManager";
      92             : 
      93          11 :     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