bump product version to 6.3.0.0.beta1
[LibreOffice.git] / extensions / source / scanner / scanner.cxx
blobe03cf30e97371141b802171bda1db0de7fd155ab
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #include "scanner.hxx"
22 #include <cppuhelper/supportsservice.hxx>
25 Reference< XInterface > ScannerManager_CreateInstance( const Reference< css::lang::XMultiServiceFactory >& /*rxFactory*/ )
27 return *( new ScannerManager() );
31 ScannerManager::ScannerManager() :
32 mpData( nullptr )
34 AcquireData();
38 ScannerManager::~ScannerManager()
40 ReleaseData();
44 Sequence< sal_Int8 > SAL_CALL ScannerManager::getMaskDIB()
46 return Sequence< sal_Int8 >();
50 OUString ScannerManager::getImplementationName()
52 return getImplementationName_Static();
56 sal_Bool ScannerManager::supportsService(OUString const & ServiceName)
58 return cppu::supportsService(this, ServiceName);
62 css::uno::Sequence<OUString> ScannerManager::getSupportedServiceNames()
64 return getSupportedServiceNames_Static();
68 OUString ScannerManager::getImplementationName_Static() throw()
70 return OUString( "com.sun.star.scanner.ScannerManager" );
74 Sequence< OUString > ScannerManager::getSupportedServiceNames_Static() throw ()
76 Sequence< OUString > aSNS { "com.sun.star.scanner.ScannerManager" };
77 return aSNS;
81 sal_Bool SAL_CALL ScannerManager::configureScanner( ScannerContext& rContext )
83 return configureScannerAndScan( rContext, nullptr );
86 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */