00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #pragma once
00026
00027 class CharImg
00028 {
00029 public:
00030 CString m_str;
00031
00032 CSize m_size;
00033 CAutoVectorPtr<BYTE> m_p;
00034
00035
00036 int m_topbottom;
00037
00038 CharImg(DWORD* p, int pitch, CRect r, int* left, int* right, int topbottom, CString str = _T(""));
00039 CharImg(FILE* f);
00040 ~CharImg();
00041
00042 bool Match(CharImg* img);
00043
00044 bool Write(FILE* f);
00045 bool Read(FILE* f);
00046 };
00047
00048 class CharSegment
00049 {
00050 public:
00051 int* left;
00052 int* right;
00053 int h, srow, erow;
00054
00055 CharSegment(int* left, int* right, int h, int srow, int erow);
00056 ~CharSegment();
00057 };
00058
00059
00060 class CSubresyncDlg : public CDialog
00061 {
00062
00063 public:
00064 CSubresyncDlg(CString fn, CWnd* pParent = NULL);
00065 virtual ~CSubresyncDlg();
00066
00067 bool Open(CString fn, int CharSet = DEFAULT_CHARSET, bool fAppend = false, int timeoff = 0);
00068 bool Save(CString fn, exttype et, CTextFile::enc e, bool fClearImgLetterDb = false, bool fOcrDll = false);
00069
00070
00071 enum { IDD = IDD_SUBRESYNC_DIALOG };
00072 CListCtrl m_list;
00073 CButton m_saveasbtn;
00074 CButton m_resetbtn;
00075 CButton m_editbtn;
00076 CButton m_exitbtn;
00077 BOOL m_fRender;
00078 CButton m_previewchk;
00079 BOOL m_fUnlink;
00080 CButton m_unlinkchk;
00081 CComboBox m_vslangs;
00082
00083 protected:
00084 virtual void DoDataExchange(CDataExchange* pDX);
00085
00086
00087
00088 protected:
00089 HICON m_hIcon;
00090
00091
00092 virtual BOOL OnInitDialog();
00093 afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
00094 afx_msg void OnPaint();
00095 afx_msg HCURSOR OnQueryDragIcon();
00096 DECLARE_MESSAGE_MAP()
00097 };