home *** CD-ROM | disk | FTP | other *** search
- // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
-
- // NOTE: Do not modify the contents of this file. If this class is regenerated by
- // Microsoft Visual C++, your modifications will be overwritten.
-
-
- #include "stdafx.h"
- #include "leadocr.h"
-
- /////////////////////////////////////////////////////////////////////////////
- // CLeadOcr
-
- IMPLEMENT_DYNCREATE(CLeadOcr, CWnd)
-
- /////////////////////////////////////////////////////////////////////////////
- // CLeadOcr properties
-
- long CLeadOcr::GetPreprocessingMode()
- {
- long result;
- GetProperty(0x1, VT_I4, (void*)&result);
- return result;
- }
-
- void CLeadOcr::SetPreprocessingMode(long propVal)
- {
- SetProperty(0x1, VT_I4, propVal);
- }
-
- long CLeadOcr::GetRecognitionMode()
- {
- long result;
- GetProperty(0x2, VT_I4, (void*)&result);
- return result;
- }
-
- void CLeadOcr::SetRecognitionMode(long propVal)
- {
- SetProperty(0x2, VT_I4, propVal);
- }
-
- long CLeadOcr::GetVerifierMode()
- {
- long result;
- GetProperty(0x3, VT_I4, (void*)&result);
- return result;
- }
-
- void CLeadOcr::SetVerifierMode(long propVal)
- {
- SetProperty(0x3, VT_I4, propVal);
- }
-
- long CLeadOcr::GetMinPointSize()
- {
- long result;
- GetProperty(0x4, VT_I4, (void*)&result);
- return result;
- }
-
- void CLeadOcr::SetMinPointSize(long propVal)
- {
- SetProperty(0x4, VT_I4, propVal);
- }
-
- long CLeadOcr::GetMaxPointSize()
- {
- long result;
- GetProperty(0x5, VT_I4, (void*)&result);
- return result;
- }
-
- void CLeadOcr::SetMaxPointSize(long propVal)
- {
- SetProperty(0x5, VT_I4, propVal);
- }
-
- CString CLeadOcr::GetDocumentName()
- {
- CString result;
- GetProperty(0x6, VT_BSTR, (void*)&result);
- return result;
- }
-
- void CLeadOcr::SetDocumentName(LPCTSTR propVal)
- {
- SetProperty(0x6, VT_BSTR, propVal);
- }
-
- CString CLeadOcr::GetQuestionable()
- {
- CString result;
- GetProperty(0x7, VT_BSTR, (void*)&result);
- return result;
- }
-
- void CLeadOcr::SetQuestionable(LPCTSTR propVal)
- {
- SetProperty(0x7, VT_BSTR, propVal);
- }
-
- CString CLeadOcr::GetUnrecognized()
- {
- CString result;
- GetProperty(0x8, VT_BSTR, (void*)&result);
- return result;
- }
-
- void CLeadOcr::SetUnrecognized(LPCTSTR propVal)
- {
- SetProperty(0x8, VT_BSTR, propVal);
- }
-
- CString CLeadOcr::GetLeftSingleQuote()
- {
- CString result;
- GetProperty(0x9, VT_BSTR, (void*)&result);
- return result;
- }
-
- void CLeadOcr::SetLeftSingleQuote(LPCTSTR propVal)
- {
- SetProperty(0x9, VT_BSTR, propVal);
- }
-
- CString CLeadOcr::GetRightSingleQuote()
- {
- CString result;
- GetProperty(0xa, VT_BSTR, (void*)&result);
- return result;
- }
-
- void CLeadOcr::SetRightSingleQuote(LPCTSTR propVal)
- {
- SetProperty(0xa, VT_BSTR, propVal);
- }
-
- CString CLeadOcr::GetLeftDoubleQuote()
- {
- CString result;
- GetProperty(0xb, VT_BSTR, (void*)&result);
- return result;
- }
-
- void CLeadOcr::SetLeftDoubleQuote(LPCTSTR propVal)
- {
- SetProperty(0xb, VT_BSTR, propVal);
- }
-
- CString CLeadOcr::GetRightDoubleQuote()
- {
- CString result;
- GetProperty(0xc, VT_BSTR, (void*)&result);
- return result;
- }
-
- void CLeadOcr::SetRightDoubleQuote(LPCTSTR propVal)
- {
- SetProperty(0xc, VT_BSTR, propVal);
- }
-
- CString CLeadOcr::GetDecimal()
- {
- CString result;
- GetProperty(0xd, VT_BSTR, (void*)&result);
- return result;
- }
-
- void CLeadOcr::SetDecimal(LPCTSTR propVal)
- {
- SetProperty(0xd, VT_BSTR, propVal);
- }
-
- CString CLeadOcr::GetThousands()
- {
- CString result;
- GetProperty(0xe, VT_BSTR, (void*)&result);
- return result;
- }
-
- void CLeadOcr::SetThousands(LPCTSTR propVal)
- {
- SetProperty(0xe, VT_BSTR, propVal);
- }
-
- CString CLeadOcr::GetLexicon()
- {
- CString result;
- GetProperty(0xf, VT_BSTR, (void*)&result);
- return result;
- }
-
- void CLeadOcr::SetLexicon(LPCTSTR propVal)
- {
- SetProperty(0xf, VT_BSTR, propVal);
- }
-
- CString CLeadOcr::GetTraining()
- {
- CString result;
- GetProperty(0x10, VT_BSTR, (void*)&result);
- return result;
- }
-
- void CLeadOcr::SetTraining(LPCTSTR propVal)
- {
- SetProperty(0x10, VT_BSTR, propVal);
- }
-
- long CLeadOcr::GetLanguage()
- {
- long result;
- GetProperty(0x11, VT_I4, (void*)&result);
- return result;
- }
-
- void CLeadOcr::SetLanguage(long propVal)
- {
- SetProperty(0x11, VT_I4, propVal);
- }
-
- BOOL CLeadOcr::GetHeaderFooterProcess()
- {
- BOOL result;
- GetProperty(0x12, VT_BOOL, (void*)&result);
- return result;
- }
-
- void CLeadOcr::SetHeaderFooterProcess(BOOL propVal)
- {
- SetProperty(0x12, VT_BOOL, propVal);
- }
-
- BOOL CLeadOcr::GetSloppyManual()
- {
- BOOL result;
- GetProperty(0x13, VT_BOOL, (void*)&result);
- return result;
- }
-
- void CLeadOcr::SetSloppyManual(BOOL propVal)
- {
- SetProperty(0x13, VT_BOOL, propVal);
- }
-
- long CLeadOcr::GetTextOrientLimit()
- {
- long result;
- GetProperty(0x14, VT_I4, (void*)&result);
- return result;
- }
-
- void CLeadOcr::SetTextOrientLimit(long propVal)
- {
- SetProperty(0x14, VT_I4, propVal);
- }
-
- BOOL CLeadOcr::GetEnableRecognizeEvent()
- {
- BOOL result;
- GetProperty(0x15, VT_BOOL, (void*)&result);
- return result;
- }
-
- void CLeadOcr::SetEnableRecognizeEvent(BOOL propVal)
- {
- SetProperty(0x15, VT_BOOL, propVal);
- }
-
- short CLeadOcr::GetPolygonSize()
- {
- short result;
- GetProperty(0x16, VT_I2, (void*)&result);
- return result;
- }
-
- void CLeadOcr::SetPolygonSize(short propVal)
- {
- SetProperty(0x16, VT_I2, propVal);
- }
-
- long CLeadOcr::GetBitmap()
- {
- long result;
- GetProperty(0x17, VT_I4, (void*)&result);
- return result;
- }
-
- void CLeadOcr::SetBitmap(long propVal)
- {
- SetProperty(0x17, VT_I4, propVal);
- }
-
- long CLeadOcr::GetVerifierThreshold()
- {
- long result;
- GetProperty(0x18, VT_I4, (void*)&result);
- return result;
- }
-
- void CLeadOcr::SetVerifierThreshold(long propVal)
- {
- SetProperty(0x18, VT_I4, propVal);
- }
-
- short CLeadOcr::GetStatusRecognizeEvent()
- {
- short result;
- GetProperty(0x19, VT_I2, (void*)&result);
- return result;
- }
-
- void CLeadOcr::SetStatusRecognizeEvent(short propVal)
- {
- SetProperty(0x19, VT_I2, propVal);
- }
-
- BOOL CLeadOcr::GetEnableMethodErrors()
- {
- BOOL result;
- GetProperty(0x1a, VT_BOOL, (void*)&result);
- return result;
- }
-
- void CLeadOcr::SetEnableMethodErrors(BOOL propVal)
- {
- SetProperty(0x1a, VT_BOOL, propVal);
- }
-
- CString CLeadOcr::GetTextRecognizeEvent()
- {
- CString result;
- GetProperty(0x1b, VT_BSTR, (void*)&result);
- return result;
- }
-
- void CLeadOcr::SetTextRecognizeEvent(LPCTSTR propVal)
- {
- SetProperty(0x1b, VT_BSTR, propVal);
- }
-
- /////////////////////////////////////////////////////////////////////////////
- // CLeadOcr operations
-
- short CLeadOcr::SaveDoc(LPCTSTR pszFile, short nFormat)
- {
- short result;
- static BYTE parms[] =
- VTS_BSTR VTS_I2;
- InvokeHelper(0x1c, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
- pszFile, nFormat);
- return result;
- }
-
- short CLeadOcr::EditDoc()
- {
- short result;
- InvokeHelper(0x1d, DISPATCH_METHOD, VT_I2, (void*)&result, NULL);
- return result;
- }
-
- long CLeadOcr::GetPolygonX(short nIndex)
- {
- long result;
- static BYTE parms[] =
- VTS_I2;
- InvokeHelper(0x26, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, parms,
- nIndex);
- return result;
- }
-
- void CLeadOcr::SetPolygonX(short nIndex, long nNewValue)
- {
- static BYTE parms[] =
- VTS_I2 VTS_I4;
- InvokeHelper(0x26, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
- nIndex, nNewValue);
- }
-
- long CLeadOcr::GetPolygonY(short nIndex)
- {
- long result;
- static BYTE parms[] =
- VTS_I2;
- InvokeHelper(0x27, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, parms,
- nIndex);
- return result;
- }
-
- void CLeadOcr::SetPolygonY(short nIndex, long nNewValue)
- {
- static BYTE parms[] =
- VTS_I2 VTS_I4;
- InvokeHelper(0x27, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
- nIndex, nNewValue);
- }
-
- void CLeadOcr::ClearDoc()
- {
- InvokeHelper(0x1e, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
-
- short CLeadOcr::InfoDoc(short* nNbPages)
- {
- short result;
- static BYTE parms[] =
- VTS_PI2;
- InvokeHelper(0x1f, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
- nNbPages);
- return result;
- }
-
- short CLeadOcr::InfoPage(short nPage, short* nNbZones)
- {
- short result;
- static BYTE parms[] =
- VTS_I2 VTS_PI2;
- InvokeHelper(0x20, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
- nPage, nNbZones);
- return result;
- }
-
- short CLeadOcr::InfoZone(short nPage, short nZone, short* nType, short* nLeft, short* nTop, short* nWidth, short* nHeight)
- {
- short result;
- static BYTE parms[] =
- VTS_I2 VTS_I2 VTS_PI2 VTS_PI2 VTS_PI2 VTS_PI2 VTS_PI2;
- InvokeHelper(0x21, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
- nPage, nZone, nType, nLeft, nTop, nWidth, nHeight);
- return result;
- }
-
- short CLeadOcr::SetZone(short nZone, short nType, long nLanguage, long nLexiconClass, long nUserLexicon, short nLexiconMode, short nStacking)
- {
- short result;
- static BYTE parms[] =
- VTS_I2 VTS_I2 VTS_I4 VTS_I4 VTS_I4 VTS_I2 VTS_I2;
- InvokeHelper(0x22, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
- nZone, nType, nLanguage, nLexiconClass, nUserLexicon, nLexiconMode, nStacking);
- return result;
- }
-
- void CLeadOcr::UnlockSupport(short iType, LPCTSTR pszKey)
- {
- static BYTE parms[] =
- VTS_I2 VTS_BSTR;
- InvokeHelper(0x23, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- iType, pszKey);
- }
-
- BOOL CLeadOcr::IsSupportLocked(short iType)
- {
- BOOL result;
- static BYTE parms[] =
- VTS_I2;
- InvokeHelper(0x24, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
- iType);
- return result;
- }
-
- short CLeadOcr::RecognizeOCR(short nFlags)
- {
- short result;
- static BYTE parms[] =
- VTS_I2;
- InvokeHelper(0x25, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
- nFlags);
- return result;
- }
-
- void CLeadOcr::AboutBox()
- {
- InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
-