Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: 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 Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

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