// MSVC5OCRView.h : interface of the CMSVC5OCRView class // ///////////////////////////////////////////////////////////////////////////// //{{AFX_INCLUDES() #include "leadrasterview.h" //}}AFX_INCLUDES #if !defined(AFX_MSVC5OCRVIEW_H__0493A164_A7D8_4ABC_8F80_C01CA6CA1FEF__INCLUDED_) #define AFX_MSVC5OCRVIEW_H__0493A164_A7D8_4ABC_8F80_C01CA6CA1FEF__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include "SampleZoneSink.h" #include "MSVC5OCRDoc.h" class CMSVC5OCRView : public CFormView { protected: // create from serialization only CMSVC5OCRView(); DECLARE_DYNCREATE(CMSVC5OCRView) //{{AFX_DATA(CMSVC5OCRView) enum { IDD = IDD_DEMO_FORM }; CLEADRasterView m_RasterView; //}}AFX_DATA // Attributes public: CMSVC5OCRDoc* GetDocument(); BOOL InitEngine(); BOOL AddPage(); void AddTwainPage(); void Free(BOOL bPaste = FALSE); CString GetMultiFileName(CString csFileName, int nFormat, int nPage, int nExpCount); void DoFit(); void UpdateView(); void ExportPages(CString csFileName, int nPage, int nCount, int nSaveFormat); BOOL ShowOCRErrMsg(BOOL bCheckPages = TRUE); void ShowSelectedZoneInfo(); // Operations public: BOOL m_bClose; INT m_nPageIndex; BOOL m_bFindZone; BOOL m_bShowZones; BOOL m_bAccpetAll; BOOL m_bRecognized; BOOL m_bScanStarted; BOOL m_bShowPage; BOOL m_bEnginStarted; int m_nSelZoneIndex; int m_bSelectZone; CString m_csRecogDataFileName; int m_nStartRecogIndex; int m_nEndRecogIndex; int m_nViewScale; ILTZoneData* m_pZoneData; ILEADRasterDocument* m_pLRasterDoc; IConnectionPoint *m_pOCRCP; DWORD m_dwOCRCookie; // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CMSVC5OCRView) public: virtual BOOL PreCreateWindow(CREATESTRUCT& cs); virtual void DoDataExchange(CDataExchange* pDX); protected: virtual void OnInitialUpdate(); virtual BOOL OnPreparePrinting(CPrintInfo* pInfo); virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo); virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo); virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView); //}}AFX_VIRTUAL // Implementation public: virtual ~CMSVC5OCRView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: // Generated message map functions protected: //{{AFX_MSG(CMSVC5OCRView) afx_msg void OnLanguageSelect(); afx_msg void OnPageInsert(); afx_msg void OnUpdatePageInsert(CCmdUI* pCmdUI); afx_msg void OnUpdateLanguageSelect(CCmdUI* pCmdUI); afx_msg void OnPageRemove(); afx_msg void OnUpdatePageRemove(CCmdUI* pCmdUI); afx_msg void OnPageExport(); afx_msg void OnUpdatePageExport(CCmdUI* pCmdUI); afx_msg void OnPageCount(); afx_msg void OnUpdatePageCount(CCmdUI* pCmdUI); afx_msg void OnPageShow(); afx_msg void OnUpdatePageShow(CCmdUI* pCmdUI); afx_msg void OnOcrRecognize(); afx_msg void OnUpdateOcrRecognize(CCmdUI* pCmdUI); afx_msg void OnOcrSavedocument(); afx_msg void OnUpdateOcrSavedocument(CCmdUI* pCmdUI); afx_msg void OnEditCopy(); afx_msg void OnUpdateEditCopy(CCmdUI* pCmdUI); afx_msg void OnZoneShow(); afx_msg void OnUpdateZoneShow(CCmdUI* pCmdUI); afx_msg void OnZoneRemove(); afx_msg void OnUpdateZoneRemove(CCmdUI* pCmdUI); afx_msg void OnZoneOptions(); afx_msg void OnUpdateZoneOptions(CCmdUI* pCmdUI); afx_msg void OnZoneLoad(); afx_msg void OnUpdateZoneLoad(CCmdUI* pCmdUI); afx_msg void OnZoneFind(); afx_msg void OnUpdateZoneFind(CCmdUI* pCmdUI); afx_msg void OnZoneExport(); afx_msg void OnUpdateZoneExport(CCmdUI* pCmdUI); afx_msg void OnZoneCount(); afx_msg void OnUpdateZoneCount(CCmdUI* pCmdUI); afx_msg void OnFileSaveAs(); afx_msg void OnUpdateFileSaveAs(CCmdUI* pCmdUI); afx_msg void OnFileClose(); afx_msg void OnUpdateFileClose(CCmdUI* pCmdUI); afx_msg BOOL OnEraseBkgnd(CDC* pDC); afx_msg void OnDestroy(); afx_msg void OnScanAcquiretwain(); afx_msg void OnUpdateScanAcquiretwain(CCmdUI* pCmdUI); afx_msg void OnScanSelecttwain(); afx_msg void OnUpdateScanSelecttwain(CCmdUI* pCmdUI); afx_msg void OnEngineShutdown(); afx_msg void OnUpdateEngineShutdown(CCmdUI* pCmdUI); afx_msg void OnEngineStartup(); afx_msg void OnUpdateEngineStartup(CCmdUI* pCmdUI); afx_msg void OnPageInsertcurrentpage(); afx_msg void OnUpdatePageInsertcurrentpage(CCmdUI* pCmdUI); afx_msg void OnSize(UINT nType, int cx, int cy); afx_msg void OnEditPaste(); afx_msg void OnUpdateEditPaste(CCmdUI* pCmdUI); afx_msg void OnDblClickLeadrasterview(); afx_msg void OnMouseDownLeadrasterview(short Button, short Shift, float x, float y); afx_msg void OnPageAutoorient(); afx_msg void OnUpdatePageAutoorient(CCmdUI* pCmdUI); afx_msg void OnOcrGetRecognizedWords(); afx_msg void OnUpdateOcrGetRecognizedWords(CCmdUI* pCmdUI); afx_msg void OnViewNormal(); afx_msg void OnUpdateViewNormal(CCmdUI* pCmdUI); afx_msg void OnViewScaletogray(); afx_msg void OnUpdateViewScaletogray(CCmdUI* pCmdUI); afx_msg void OnViewFavortoblack(); afx_msg void OnUpdateViewFavortoblack(CCmdUI* pCmdUI); DECLARE_EVENTSINK_MAP() //}}AFX_MSG DECLARE_MESSAGE_MAP() CSampleZoneSink * m_pZoneSink; }; #ifndef _DEBUG // debug version in MSVC5OCRView.cpp inline CMSVC5OCRDoc* CMSVC5OCRView::GetDocument() { return (CMSVC5OCRDoc*)m_pDocument; } #endif ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_MSVC5OCRVIEW_H__0493A164_A7D8_4ABC_8F80_C01CA6CA1FEF__INCLUDED_)