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