// HnrTextView.h : interface of the CHnrTextView class // ///////////////////////////////////////////////////////////////////////////// #if !defined(AFX_HNRTEXTVIEW_H__5310E04E_451E_4DAC_9D4B_778053CD2A3D__INCLUDED_) #define AFX_HNRTEXTVIEW_H__5310E04E_451E_4DAC_9D4B_778053CD2A3D__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 class CHnrTextView : public CScrollView { protected: // create from serialization only CHnrTextView(); DECLARE_DYNCREATE(CHnrTextView) // Attributes public: CHnrTextDoc* GetDocument(); void CleanOpenDlgParam(LPOPENDLGPARAMS pFOParam); void UpdateScrollView(); void Reset(); // Operations public: BITMAPHANDLE m_LEADBitmap; L_HDOC m_hDoc; L_BOOL m_bPageAdded; L_BOOL m_bZones; L_BOOL m_bRecog; HPEN m_hZonePen; HPEN m_hSelZonePen; HPALETTE m_hPalette; CString m_csImagesPath; // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CHnrTextView) public: virtual void OnDraw(CDC* pDC); // overridden to draw this view virtual BOOL PreCreateWindow(CREATESTRUCT& cs); protected: virtual void OnInitialUpdate(); // called first time after construct 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 afx_msg LRESULT OnDoRealize(WPARAM wParam, LPARAM lParam); // user message // Implementation public: virtual ~CHnrTextView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: // Generated message map functions protected: //{{AFX_MSG(CHnrTextView) afx_msg BOOL OnEraseBkgnd(CDC* pDC); afx_msg void OnDestroy(); afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg void OnFileOpen(); afx_msg void OnFileSave(); afx_msg void OnUpdateFileSave(CCmdUI* pCmdUI); afx_msg void OnOcrAddpage(); afx_msg void OnUpdateOcrAddpage(CCmdUI* pCmdUI); afx_msg void OnOcrInsertzone(); afx_msg void OnUpdateOcrInsertzone(CCmdUI* pCmdUI); afx_msg void OnOcrRecognize(); afx_msg void OnUpdateOcrRecognize(CCmdUI* pCmdUI); afx_msg void OnOcrSaveresults(); afx_msg void OnUpdateOcrSaveresults(CCmdUI* pCmdUI); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; #ifndef _DEBUG // debug version in HnrTextView.cpp inline CHnrTextDoc* CHnrTextView::GetDocument() { return (CHnrTextDoc*)m_pDocument; } #endif ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_HNRTEXTVIEW_H__5310E04E_451E_4DAC_9D4B_778053CD2A3D__INCLUDED_)