The Free and Open Productivity Suite
QA Volunteers Needed -- Help us test OpenOffice

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for Apache OpenOffice version 3.4.

:: com :: sun :: star :: scanner ::

interface XScannerManager

Methods' Summary
getAvailableScanners returns all avilable scanner devices  
configureScanner produce some kind of User Interface to let the user have a preview, configure the scan area, etc., it returns FALSE if user cancelled this process  
startScan start the scanning process listener will be called when scan is complete the EventObject of the disposing call will contain the ScannerManager if the scan was successfull, an empty interface otherwise  
getError get the state of scanning after completion of scan  
getBitmap get the image after completion of scan  
Methods' Details
getAvailableScanners
sequence< ScannerContext >
getAvailableScanners();

Description
returns all avilable scanner devices
configureScanner
boolean
configureScanner( [inout] ScannerContext  scanner_context )
raises( ScannerException );

Description
produce some kind of User Interface to let the user have a preview, configure the scan area, etc., it returns FALSE if user cancelled this process
startScan
void
startScan( [in] ScannerContext  scanner_context,
[in] ::com::sun::star::lang::XEventListener  listener )
raises( ScannerException );

Description
start the scanning process listener will be called when scan is complete the EventObject of the disposing call will contain the ScannerManager if the scan was successfull, an empty interface otherwise
getError
ScanError
getError( [in] ScannerContext  scanner_context )
raises( ScannerException );

Description
get the state of scanning after completion of scan
getBitmap
::com::sun::star::awt::XBitmap
getBitmap( [in] ScannerContext  scanner_context )
raises( ScannerException );

Description
get the image after completion of scan
Top of Page

Apache Feather

Copyright & License | Privacy | Contact Us | Donate

Apache, the Apache feather logo, and OpenOffice are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.