LibreOffice Module extensions (master) 1
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
ScannerManager Class Referencefinal

#include <scanner.hxx>

Inheritance diagram for ScannerManager:
[legend]
Collaboration diagram for ScannerManager:
[legend]

Public Member Functions

 ScannerManager ()
 
virtual ~ScannerManager () override
 
virtual Sequence< ScannerContext > SAL_CALL getAvailableScanners () override
 
virtual sal_Bool SAL_CALL configureScanner (ScannerContext &scanner_context) override
 
virtual sal_Bool SAL_CALL configureScannerAndScan (ScannerContext &scanner_context, const Reference< css::lang::XEventListener > &rxListener) override
 
virtual void SAL_CALL startScan (const ScannerContext &scanner_context, const Reference< css::lang::XEventListener > &rxListener) override
 
virtual ScanError SAL_CALL getError (const ScannerContext &scanner_context) override
 
virtual Reference< css::awt::XBitmap > SAL_CALL getBitmap (const ScannerContext &scanner_context) override
 
virtual css::awt::Size SAL_CALL getSize () override
 
virtual Sequence< sal_Int8 > SAL_CALL getDIB () override
 
virtual Sequence< sal_Int8 > SAL_CALL getMaskDIB () override
 
OUString SAL_CALL getImplementationName () override
 
sal_Bool SAL_CALL supportsService (OUString const &ServiceName) override
 
css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual void SAL_CALL initialize (const css::uno::Sequence< css::uno::Any > &rArguments) override
 
void SetData (void *pData)
 

Private Member Functions

void ReleaseData ()
 

Static Private Member Functions

static void AcquireData ()
 

Private Attributes

osl::Mutex maProtector
 
css::uno::Reference< css::awt::XWindow > mxDialogParent
 
void * mpData
 

Detailed Description

Definition at line 39 of file scanner.hxx.

Constructor & Destructor Documentation

◆ ScannerManager()

ScannerManager::ScannerManager ( )

Definition at line 32 of file scanner.cxx.

References AcquireData().

◆ ~ScannerManager()

ScannerManager::~ScannerManager ( )
overridevirtual

Definition at line 39 of file scanner.cxx.

References ReleaseData().

Member Function Documentation

◆ AcquireData()

void ScannerManager::AcquireData ( )
staticprivate

Definition at line 186 of file scanunx.cxx.

Referenced by ScannerManager().

◆ configureScanner()

sal_Bool SAL_CALL ScannerManager::configureScanner ( ScannerContext &  scanner_context)
overridevirtual

Definition at line 69 of file scanner.cxx.

References configureScannerAndScan().

◆ configureScannerAndScan()

sal_Bool SAL_CALL ScannerManager::configureScannerAndScan ( ScannerContext &  scanner_context,
const Reference< css::lang::XEventListener > &  rxListener 
)
overridevirtual

◆ getAvailableScanners()

css::uno::Sequence< ScannerContext > SAL_CALL ScannerManager::getAvailableScanners ( )
overridevirtual

Definition at line 214 of file scanunx.cxx.

References Sane::IsSane().

◆ getBitmap()

css::uno::Reference< css::awt::XBitmap > SAL_CALL ScannerManager::getBitmap ( const ScannerContext &  scanner_context)
overridevirtual

Definition at line 321 of file scanunx.cxx.

References o3tl::make_unsigned().

◆ getDIB()

css::uno::Sequence< sal_Int8 > ScannerManager::getDIB ( )
overridevirtual

Definition at line 208 of file scanunx.cxx.

◆ getError()

ScanError SAL_CALL ScannerManager::getError ( const ScannerContext &  scanner_context)
overridevirtual

Definition at line 303 of file scanunx.cxx.

References o3tl::make_unsigned().

◆ getImplementationName()

OUString ScannerManager::getImplementationName ( )
override

Definition at line 51 of file scanner.cxx.

◆ getMaskDIB()

Sequence< sal_Int8 > SAL_CALL ScannerManager::getMaskDIB ( )
overridevirtual

Definition at line 45 of file scanner.cxx.

◆ getSize()

css::awt::Size ScannerManager::getSize ( )
overridevirtual

Definition at line 200 of file scanunx.cxx.

◆ getSupportedServiceNames()

css::uno::Sequence< OUString > ScannerManager::getSupportedServiceNames ( )
override

Definition at line 63 of file scanner.cxx.

◆ initialize()

void SAL_CALL ScannerManager::initialize ( const css::uno::Sequence< css::uno::Any > &  rArguments)
overridevirtual

Definition at line 74 of file scanner.cxx.

References aProperties, and mxDialogParent.

◆ ReleaseData()

void ScannerManager::ReleaseData ( )
private

Definition at line 193 of file scanunx.cxx.

Referenced by SetData(), and ~ScannerManager().

◆ SetData()

void ScannerManager::SetData ( void *  pData)
inline

Definition at line 79 of file scanner.hxx.

References mpData, pData, and ReleaseData().

◆ startScan()

void SAL_CALL ScannerManager::startScan ( const ScannerContext &  scanner_context,
const Reference< css::lang::XEventListener > &  rxListener 
)
overridevirtual

Definition at line 275 of file scanunx.cxx.

References o3tl::make_unsigned(), and SAL_INFO.

Referenced by configureScannerAndScan().

◆ supportsService()

sal_Bool ScannerManager::supportsService ( OUString const &  ServiceName)
override

Definition at line 57 of file scanner.cxx.

References ServiceName, and cppu::supportsService().

Member Data Documentation

◆ maProtector

osl::Mutex ScannerManager::maProtector
private

Definition at line 43 of file scanner.hxx.

◆ mpData

void* ScannerManager::mpData
private

Definition at line 45 of file scanner.hxx.

Referenced by SetData().

◆ mxDialogParent

css::uno::Reference<css::awt::XWindow> ScannerManager::mxDialogParent
private

Definition at line 44 of file scanner.hxx.

Referenced by configureScannerAndScan(), and initialize().


The documentation for this class was generated from the following files: