ImpTwain Class Reference

#include <twain.hxx>

Collaboration diagram for ImpTwain:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ImpTwain (ScannerManager &rMgr, const Link &rNotifyLink)
 ~ImpTwain ()
void Destroy ()
bool SelectSource ()
bool InitXfer ()
BOOL ImplHandleMsg (void *pMsg)
 ImpTwain (const Link &rNotifyLink)
 ~ImpTwain ()
void Destroy ()
BOOL SelectSource ()
BOOL InitXfer ()
Bitmap GetXferBitmap ()

Private Member Functions

 NAMESPACE_VOS (OModule)*pMod
bool ImplHandleMsg (void *pMsg)
void ImplCreate ()
void ImplOpenSourceManager ()
void ImplOpenSource ()
bool ImplEnableSource ()
void ImplXfer ()
void ImplFallback (ULONG nEvent)
void ImplSendCloseEvent ()
void ImplDeregisterCloseListener ()
void ImplRegisterCloseListener ()
uno::Reference< frame::XFrame > ImplGetActiveFrame ()
uno::Reference< util::XCloseBroadcaster > ImplGetActiveFrameCloseBroadcaster ()
 DECL_LINK (ImplFallbackHdl, void *)
 DECL_LINK (ImplDestroyHdl, void *)
virtual void SAL_CALL queryClosing (const lang::EventObject &Source, sal_Bool GetsOwnership) throw (util::CloseVetoException, uno::RuntimeException)
virtual void SAL_CALL notifyClosing (const lang::EventObject &Source) throw (uno::RuntimeException)
virtual void SAL_CALL disposing (const lang::EventObject &Source) throw (uno::RuntimeException)
 NAMESPACE_VOS (OModule)*pMod
void ImplCreate ()
void ImplOpenSourceManager ()
void ImplOpenSource ()
BOOL ImplEnableSource ()
void ImplXfer ()
void ImplFallback (ULONG nEvent)
 DECL_LINK (ImplFallbackHdl, void *)
 DECL_LINK (ImplDestroyHdl, void *)

Private Attributes

uno::Reference< uno::XInterface > mxSelfRef
uno::Reference< scanner::XScannerManager > mxMgr
ScannerManagermrMgr
TW_IDENTITY aAppIdent
TW_IDENTITY aSrcIdent
Link aNotifyLink
DSMENTRYPROC pDSM
ULONG nCurState
HWND hTwainWnd
HHOOK hTwainHook
bool mbCloseFrameOnExit
Bitmap aBitmap

Friends

LRESULT CALLBACK TwainMsgProc (int nCode, WPARAM wParam, LPARAM lParam)

Detailed Description

Definition at line 139 of file scanwin.cxx.


Constructor & Destructor Documentation

ImpTwain::ImpTwain ( ScannerManager rMgr,
const Link &  rNotifyLink 
)

Definition at line 225 of file scanwin.cxx.

References aAppIdent, hTwainHook, hTwainWnd, mxSelfRef, pImpTwainInstance, TwainMsgProc, and TwainWndProc().

ImpTwain::~ImpTwain (  ) 

Definition at line 268 of file scanwin.cxx.

References ImplSendCloseEvent(), and mbCloseFrameOnExit.

ImpTwain::ImpTwain ( const Link &  rNotifyLink  ) 

Definition at line 132 of file twain.cxx.

References aAppIdent, hTwainHook, hTwainWnd, ImplFallback(), pImpTwainInstance, TWAIN_EVENT_QUIT, TwainMsgProc, and TwainWndProc().

ImpTwain::~ImpTwain (  ) 


Member Function Documentation

ImpTwain::NAMESPACE_VOS ( OModule   )  [private]

BOOL ImpTwain::ImplHandleMsg ( void *  pMsg  )  [private]

Definition at line 408 of file scanwin.cxx.

References aAppIdent, aSrcIdent, ScannerManager::GetData(), ImplFallback(), ImplXfer(), mrMgr, nCurState, PFUNC, PTWAINMSG, TWAIN_EVENT_QUIT, and TWAIN_EVENT_XFER.

Referenced by TwainMsgProc().

void ImpTwain::ImplCreate (  )  [private]

void ImpTwain::ImplOpenSourceManager (  )  [private]

Definition at line 329 of file scanwin.cxx.

References aAppIdent, hTwainWnd, nCurState, pDSM, and PFUNC.

Referenced by InitXfer(), and SelectSource().

void ImpTwain::ImplOpenSource (  )  [private]

Definition at line 355 of file scanwin.cxx.

References aAppIdent, aSrcIdent, nCurState, and PFUNC.

Referenced by InitXfer().

BOOL ImpTwain::ImplEnableSource (  )  [private]

Definition at line 376 of file scanwin.cxx.

References aAppIdent, aNotifyLink, aSrcIdent, hTwainWnd, ImplDeregisterCloseListener(), ImplRegisterCloseListener(), nCurState, PFUNC, and TWAIN_EVENT_SCANNING.

Referenced by InitXfer().

void ImpTwain::ImplXfer (  )  [private]

Definition at line 453 of file scanwin.cxx.

References aAppIdent, aSrcIdent, FIXTOLONG, mrMgr, nCurState, PFUNC, and ScannerManager::SetData().

Referenced by ImplHandleMsg().

void ImpTwain::ImplFallback ( ULONG  nEvent  )  [private]

Definition at line 510 of file scanwin.cxx.

Referenced by Destroy(), ImplHandleMsg(), ImpTwain(), InitXfer(), and SelectSource().

void ImpTwain::ImplSendCloseEvent (  )  [private]

Definition at line 760 of file scanwin.cxx.

References ImplGetActiveFrame().

Referenced by ~ImpTwain().

void ImpTwain::ImplDeregisterCloseListener (  )  [private]

Definition at line 706 of file scanwin.cxx.

References ImplGetActiveFrameCloseBroadcaster().

Referenced by ImplEnableSource().

void ImpTwain::ImplRegisterCloseListener (  )  [private]

Definition at line 679 of file scanwin.cxx.

References ImplGetActiveFrameCloseBroadcaster().

Referenced by ImplEnableSource().

uno::Reference< frame::XFrame > ImpTwain::ImplGetActiveFrame (  )  [private]

Definition at line 609 of file scanwin.cxx.

Referenced by ImplGetActiveFrameCloseBroadcaster(), and ImplSendCloseEvent().

uno::Reference< util::XCloseBroadcaster > ImpTwain::ImplGetActiveFrameCloseBroadcaster (  )  [private]

Definition at line 663 of file scanwin.cxx.

References ImplGetActiveFrame().

Referenced by ImplDeregisterCloseListener(), and ImplRegisterCloseListener().

ImpTwain::DECL_LINK ( ImplFallbackHdl  ,
void *   
) [private]

ImpTwain::DECL_LINK ( ImplDestroyHdl  ,
void *   
) [private]

void SAL_CALL ImpTwain::queryClosing ( const lang::EventObject &  Source,
sal_Bool  GetsOwnership 
) throw (util::CloseVetoException, uno::RuntimeException) [private, virtual]

Definition at line 734 of file scanwin.cxx.

void SAL_CALL ImpTwain::notifyClosing ( const lang::EventObject &  Source  )  throw (uno::RuntimeException) [private, virtual]

Definition at line 745 of file scanwin.cxx.

void SAL_CALL ImpTwain::disposing ( const lang::EventObject &  Source  )  throw (uno::RuntimeException) [private, virtual]

Definition at line 753 of file scanwin.cxx.

void ImpTwain::Destroy (  ) 

Definition at line 277 of file scanwin.cxx.

References ImplFallback(), and TWAIN_EVENT_NONE.

Referenced by Twain::~Twain().

BOOL ImpTwain::SelectSource (  ) 

Definition at line 285 of file scanwin.cxx.

References aAppIdent, aNotifyLink, ImplFallback(), ImplOpenSourceManager(), nCurState, PFUNC, TWAIN_EVENT_QUIT, and TWAIN_EVENT_SCANNING.

BOOL ImpTwain::InitXfer (  ) 

Definition at line 307 of file scanwin.cxx.

References ImplEnableSource(), ImplFallback(), ImplOpenSource(), ImplOpenSourceManager(), nCurState, and TWAIN_EVENT_QUIT.

Referenced by Twain::PerformTransfer().

ImpTwain::NAMESPACE_VOS ( OModule   )  [private]

void ImpTwain::ImplCreate (  )  [private]

void ImpTwain::ImplOpenSourceManager (  )  [private]

void ImpTwain::ImplOpenSource (  )  [private]

BOOL ImpTwain::ImplEnableSource (  )  [private]

void ImpTwain::ImplXfer (  )  [private]

void ImpTwain::ImplFallback ( ULONG  nEvent  )  [private]

ImpTwain::DECL_LINK ( ImplFallbackHdl  ,
void *   
) [private]

ImpTwain::DECL_LINK ( ImplDestroyHdl  ,
void *   
) [private]

BOOL ImpTwain::ImplHandleMsg ( void *  pMsg  ) 

void ImpTwain::Destroy (  ) 

BOOL ImpTwain::SelectSource (  ) 

BOOL ImpTwain::InitXfer (  ) 

Bitmap ImpTwain::GetXferBitmap (  ) 

Definition at line 240 of file twain.cxx.

References aBitmap.


Friends And Related Function Documentation

LRESULT CALLBACK TwainMsgProc ( int  nCode,
WPARAM  wParam,
LPARAM  lParam 
) [friend]

Definition at line 205 of file scanwin.cxx.

Referenced by ImpTwain().


Member Data Documentation

uno::Reference< uno::XInterface > ImpTwain::mxSelfRef [private]

Definition at line 143 of file scanwin.cxx.

Referenced by ImpTwain().

uno::Reference< scanner::XScannerManager > ImpTwain::mxMgr [private]

Definition at line 144 of file scanwin.cxx.

ScannerManager& ImpTwain::mrMgr [private]

Definition at line 145 of file scanwin.cxx.

Referenced by ImplHandleMsg(), and ImplXfer().

TW_IDENTITY ImpTwain::aAppIdent [private]

Definition at line 146 of file scanwin.cxx.

Referenced by ImplEnableSource(), ImplHandleMsg(), ImplOpenSource(), ImplOpenSourceManager(), ImplXfer(), ImpTwain(), and SelectSource().

TW_IDENTITY ImpTwain::aSrcIdent [private]

Definition at line 147 of file scanwin.cxx.

Referenced by ImplEnableSource(), ImplHandleMsg(), ImplOpenSource(), and ImplXfer().

Link ImpTwain::aNotifyLink [private]

Definition at line 148 of file scanwin.cxx.

Referenced by ImplEnableSource(), and SelectSource().

DSMENTRYPROC ImpTwain::pDSM [private]

Definition at line 149 of file scanwin.cxx.

Referenced by ImplOpenSourceManager().

ULONG ImpTwain::nCurState [private]

Definition at line 151 of file scanwin.cxx.

Referenced by ImplEnableSource(), ImplHandleMsg(), ImplOpenSource(), ImplOpenSourceManager(), ImplXfer(), InitXfer(), and SelectSource().

HWND ImpTwain::hTwainWnd [private]

Definition at line 152 of file scanwin.cxx.

Referenced by ImplEnableSource(), ImplOpenSourceManager(), ImpTwain(), and TwainMsgProc().

HHOOK ImpTwain::hTwainHook [private]

Definition at line 153 of file scanwin.cxx.

Referenced by ImpTwain(), and TwainMsgProc().

bool ImpTwain::mbCloseFrameOnExit [private]

Definition at line 154 of file scanwin.cxx.

Referenced by ~ImpTwain().

Bitmap ImpTwain::aBitmap [private]

Definition at line 66 of file twain.hxx.

Referenced by GetXferBitmap().


The documentation for this class was generated from the following files:
Generated on Thu Feb 28 17:53:33 2008 for AquaScanner by  doxygen 1.5.1