26#include <osl/thread.h>
27#include <osl/module.h>
32#include <com/sun/star/awt/XBitmap.hpp>
33#include <com/sun/star/uno/Sequence.hxx>
48 virtual css::awt::Size SAL_CALL
getSize()
override;
65 static SANE_Status (*
p_init)( SANE_Int*,
70 static SANE_Status (*
p_open)( SANE_String_Const, SANE_Handle );
72 static const SANE_Option_Descriptor* (*p_get_option_descriptor)(
73 SANE_Handle, SANE_Int );
79 static SANE_Status (*
p_start)( SANE_Handle );
80 static SANE_Status (*
p_read)( SANE_Handle, SANE_Byte*, SANE_Int,
91 std::unique_ptr<const SANE_Option_Descriptor*[]>
mppOptions;
98 static inline oslGenericFunction
140 {
return const_cast<const char**
>(
mppOptions[
n]->constraint.string_list); }
141 int GetRange(
int, std::unique_ptr<
double[]>& );
160 bool Open(
const char* );
virtual css::awt::Size SAL_CALL getSize() override
virtual Sequence< sal_Int8 > SAL_CALL getDIB() override
virtual ~BitmapTransporter() override
SvMemoryStream & getStream()
virtual Sequence< sal_Int8 > SAL_CALL getMaskDIB() override
static OUString GetVendor(int n)
SANE_Unit GetOptionUnit(int n)
static SANE_Status(* p_get_devices)(const SANE_Device ***, SANE_Bool)
bool CheckConsistency(const char *, bool bInit=false)
bool GetOptionValue(int, bool &)
static SANE_Status(* p_get_select_fd)(SANE_Handle, SANE_Int *)
bool ActivateButtonOption(int)
SANE_Constraint_Type GetOptionConstraintType(int n)
OUString GetOptionUnitName(int n)
Link< Sane &, void > maReloadOptionsLink
int GetOptionByName(const char *)
static SANE_Status(* p_start)(SANE_Handle)
bool Start(BitmapTransporter &)
SANE_Int GetOptionCap(int n)
OUString GetOptionName(int n)
int GetOptionElements(int n)
int GetRange(int, std::unique_ptr< double[]> &)
static SANE_Status(* p_read)(SANE_Handle, SANE_Byte *, SANE_Int, SANE_Int *)
static SANE_Status(* p_init)(SANE_Int *, SANE_Auth_Callback)
SANE_Value_Type GetOptionType(int n)
static SANE_Device ** ppDevices
static void(* p_close)(SANE_Handle)
static SANE_Status(* p_control_option)(SANE_Handle, SANE_Int, SANE_Action, void *, SANE_Int *)
Link< Sane &, void > SetReloadOptionsHdl(const Link< Sane &, void > &rLink)
std::unique_ptr< const SANE_Option_Descriptor *[]> mppOptions
static OUString GetModel(int n)
SANE_Status ControlOption(int, SANE_Action, void *)
static OUString GetName(int n)
static SANE_String_Const(* p_strstatus)(SANE_Status)
static SANE_Status(* p_set_io_mode)(SANE_Handle, SANE_Bool)
static SANE_Status(* p_get_parameters)(SANE_Handle, SANE_Parameters *)
static SANE_Status(* p_open)(SANE_String_Const, SANE_Handle)
static oslGenericFunction LoadSymbol(const char *)
void SetOptionValue(int, bool)
static void(* p_cancel)(SANE_Handle)
int GetDeviceNumber() const
static OUString GetType(int n)
static oslModule pSaneLib
static int CountDevices()
const char ** GetStringConstraint(int n)
OUString GetOptionTitle(int n)