1 Star 0 Fork 6

jee/img2text

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
mdivwctl.cpp 21.20 KB
一键复制 编辑 原始数据 按行查看 历史
Si MaWei 提交于 2018-02-01 18:17 . add
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886
// Machine generated IDispatch wrapper class(es) created with ClassWizard
#include "stdafx.h"
#include "mdivwctl.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// IMiFont properties
/////////////////////////////////////////////////////////////////////////////
// IMiFont operations
long IMiFont::GetFamily()
{
long result;
InvokeHelper(0x1, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
long IMiFont::GetFaceStyle()
{
long result;
InvokeHelper(0x3, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
long IMiFont::GetSerifStyle()
{
long result;
InvokeHelper(0x4, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
short IMiFont::GetFontSize()
{
short result;
InvokeHelper(0x5, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL);
return result;
}
/////////////////////////////////////////////////////////////////////////////
// IMiRect properties
/////////////////////////////////////////////////////////////////////////////
// IMiRect operations
long IMiRect::GetTop()
{
long result;
InvokeHelper(0x1, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
long IMiRect::GetLeft()
{
long result;
InvokeHelper(0x2, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
long IMiRect::GetRight()
{
long result;
InvokeHelper(0x3, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
long IMiRect::GetBottom()
{
long result;
InvokeHelper(0x4, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
/////////////////////////////////////////////////////////////////////////////
// IMiRects properties
/////////////////////////////////////////////////////////////////////////////
// IMiRects operations
long IMiRects::GetCount()
{
long result;
InvokeHelper(0x1, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
LPUNKNOWN IMiRects::Get_NewEnum()
{
LPUNKNOWN result;
InvokeHelper(0xfffffffc, DISPATCH_PROPERTYGET, VT_UNKNOWN, (void*)&result, NULL);
return result;
}
LPDISPATCH IMiRects::GetItem(long Index)
{
LPDISPATCH result;
static BYTE parms[] =
VTS_I4;
InvokeHelper(0x0, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, parms,
Index);
return result;
}
/////////////////////////////////////////////////////////////////////////////
// IWord properties
/////////////////////////////////////////////////////////////////////////////
// IWord operations
short IWord::GetRecognitionConfidence()
{
short result;
InvokeHelper(0x1, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL);
return result;
}
long IWord::GetFontId()
{
long result;
InvokeHelper(0x2, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
long IWord::GetLineId()
{
long result;
InvokeHelper(0x3, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
long IWord::GetRegionId()
{
long result;
InvokeHelper(0x4, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
CString IWord::GetText()
{
CString result;
InvokeHelper(0x6, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
return result;
}
LPDISPATCH IWord::GetFont()
{
LPDISPATCH result;
InvokeHelper(0x7, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
return result;
}
long IWord::GetId()
{
long result;
InvokeHelper(0x8, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
LPDISPATCH IWord::GetRects()
{
LPDISPATCH result;
InvokeHelper(0x9, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
return result;
}
/////////////////////////////////////////////////////////////////////////////
// IWords properties
/////////////////////////////////////////////////////////////////////////////
// IWords operations
long IWords::GetCount()
{
long result;
InvokeHelper(0x1, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
LPUNKNOWN IWords::Get_NewEnum()
{
LPUNKNOWN result;
InvokeHelper(0xfffffffc, DISPATCH_PROPERTYGET, VT_UNKNOWN, (void*)&result, NULL);
return result;
}
LPDISPATCH IWords::GetItem(long Index)
{
LPDISPATCH result;
static BYTE parms[] =
VTS_I4;
InvokeHelper(0x0, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, parms,
Index);
return result;
}
/////////////////////////////////////////////////////////////////////////////
// ILayout properties
/////////////////////////////////////////////////////////////////////////////
// ILayout operations
long ILayout::GetLanguage()
{
long result;
InvokeHelper(0x1, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
long ILayout::GetNumChars()
{
long result;
InvokeHelper(0x2, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
long ILayout::GetNumWords()
{
long result;
InvokeHelper(0x3, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
long ILayout::GetNumFonts()
{
long result;
InvokeHelper(0x4, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
CString ILayout::GetText()
{
CString result;
InvokeHelper(0x5, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
return result;
}
LPDISPATCH ILayout::GetWords()
{
LPDISPATCH result;
InvokeHelper(0x6, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
return result;
}
/////////////////////////////////////////////////////////////////////////////
// IImage properties
/////////////////////////////////////////////////////////////////////////////
// IImage operations
LPDISPATCH IImage::GetLayout()
{
LPDISPATCH result;
InvokeHelper(0x1, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
return result;
}
long IImage::GetPixelWidth()
{
long result;
InvokeHelper(0x2, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
long IImage::GetPixelHeight()
{
long result;
InvokeHelper(0x3, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
long IImage::GetXdpi()
{
long result;
InvokeHelper(0x4, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
long IImage::GetYdpi()
{
long result;
InvokeHelper(0x5, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
long IImage::GetBitsPerPixel()
{
long result;
InvokeHelper(0x6, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
LPDISPATCH IImage::GetThumbnail(long ThumbSize)
{
LPDISPATCH result;
static BYTE parms[] =
VTS_I4;
InvokeHelper(0x7, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, parms,
ThumbSize);
return result;
}
LPDISPATCH IImage::GetPicture()
{
LPDISPATCH result;
InvokeHelper(0x8, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
return result;
}
long IImage::GetCompression()
{
long result;
InvokeHelper(0x9, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
void IImage::OCR(long LangId, BOOL OCROrientImage, BOOL OCRStraightenImage)
{
static BYTE parms[] =
VTS_I4 VTS_BOOL VTS_BOOL;
InvokeHelper(0xa, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
LangId, OCROrientImage, OCRStraightenImage);
}
void IImage::Rotate(long Angle)
{
static BYTE parms[] =
VTS_I4;
InvokeHelper(0xb, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
Angle);
}
/////////////////////////////////////////////////////////////////////////////
// IImages properties
/////////////////////////////////////////////////////////////////////////////
// IImages operations
long IImages::GetCount()
{
long result;
InvokeHelper(0x1, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
void IImages::Add(LPDISPATCH Page, LPDISPATCH BeforePage)
{
static BYTE parms[] =
VTS_DISPATCH VTS_DISPATCH;
InvokeHelper(0x2, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
Page, BeforePage);
}
LPUNKNOWN IImages::Get_NewEnum()
{
LPUNKNOWN result;
InvokeHelper(0xfffffffc, DISPATCH_PROPERTYGET, VT_UNKNOWN, (void*)&result, NULL);
return result;
}
LPDISPATCH IImages::GetItem(long Index)
{
LPDISPATCH result;
static BYTE parms[] =
VTS_I4;
InvokeHelper(0x0, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, parms,
Index);
return result;
}
void IImages::Remove(LPDISPATCH Page)
{
static BYTE parms[] =
VTS_DISPATCH;
InvokeHelper(0x5, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
Page);
}
/////////////////////////////////////////////////////////////////////////////
// IDocument properties
/////////////////////////////////////////////////////////////////////////////
// IDocument operations
void IDocument::Save()
{
InvokeHelper(0x2, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void IDocument::Close(BOOL SaveChanges)
{
static BYTE parms[] =
VTS_BOOL;
InvokeHelper(0x3, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
SaveChanges);
}
void IDocument::SaveAs(LPCTSTR FileName, long FileFormat, long CompLevel)
{
static BYTE parms[] =
VTS_BSTR VTS_I4 VTS_I4;
InvokeHelper(0x4, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
FileName, FileFormat, CompLevel);
}
LPDISPATCH IDocument::GetImages()
{
LPDISPATCH result;
InvokeHelper(0x5, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
return result;
}
LPDISPATCH IDocument::GetBuiltInDocumentProperties()
{
LPDISPATCH result;
InvokeHelper(0x6, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
return result;
}
LPDISPATCH IDocument::GetCustomDocumentProperties()
{
LPDISPATCH result;
InvokeHelper(0x7, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
return result;
}
void IDocument::Create(LPCTSTR FileOpen)
{
static BYTE parms[] =
VTS_BSTR;
InvokeHelper(0x8, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
FileOpen);
}
BOOL IDocument::GetDirty()
{
BOOL result;
InvokeHelper(0x9, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
return result;
}
void IDocument::OCR(long LangId, BOOL OCROrientImage, BOOL OCRStraightenImage)
{
static BYTE parms[] =
VTS_I4 VTS_BOOL VTS_BOOL;
InvokeHelper(0xa, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
LangId, OCROrientImage, OCRStraightenImage);
}
void IDocument::PrintOut(long From, long To, long Copies, LPCTSTR PrinterName, LPCTSTR PrintToFileName, BOOL PrintAnnotation, long FitMode)
{
static BYTE parms[] =
VTS_I4 VTS_I4 VTS_I4 VTS_BSTR VTS_BSTR VTS_BOOL VTS_I4;
InvokeHelper(0xb, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
From, To, Copies, PrinterName, PrintToFileName, PrintAnnotation, FitMode);
}
/////////////////////////////////////////////////////////////////////////////
// _IDocumentEvents properties
/////////////////////////////////////////////////////////////////////////////
// _IDocumentEvents operations
/////////////////////////////////////////////////////////////////////////////
// _IImageEvents properties
/////////////////////////////////////////////////////////////////////////////
// _IImageEvents operations
/////////////////////////////////////////////////////////////////////////////
// IMiSelectRect properties
/////////////////////////////////////////////////////////////////////////////
// IMiSelectRect operations
long IMiSelectRect::GetPageNumber()
{
long result;
InvokeHelper(0x1, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
long IMiSelectRect::GetLeft()
{
long result;
InvokeHelper(0x2, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
long IMiSelectRect::GetTop()
{
long result;
InvokeHelper(0x3, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
long IMiSelectRect::GetRight()
{
long result;
InvokeHelper(0x4, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
long IMiSelectRect::GetBottom()
{
long result;
InvokeHelper(0x5, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
/////////////////////////////////////////////////////////////////////////////
// IMiSelectRects properties
/////////////////////////////////////////////////////////////////////////////
// IMiSelectRects operations
long IMiSelectRects::GetCount()
{
long result;
InvokeHelper(0x1, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
LPUNKNOWN IMiSelectRects::Get_NewEnum()
{
LPUNKNOWN result;
InvokeHelper(0xfffffffc, DISPATCH_PROPERTYGET, VT_UNKNOWN, (void*)&result, NULL);
return result;
}
LPDISPATCH IMiSelectRects::GetItem(long Index)
{
LPDISPATCH result;
static BYTE parms[] =
VTS_I4;
InvokeHelper(0x0, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, parms,
Index);
return result;
}
/////////////////////////////////////////////////////////////////////////////
// IMiSelectableItem properties
/////////////////////////////////////////////////////////////////////////////
// IMiSelectableItem operations
void IMiSelectableItem::CopyToClipboard()
{
InvokeHelper(0x1, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
CString IMiSelectableItem::GetText()
{
CString result;
InvokeHelper(0x2, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
return result;
}
LPDISPATCH IMiSelectableItem::GetWords()
{
LPDISPATCH result;
InvokeHelper(0x3, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
return result;
}
LPDISPATCH IMiSelectableItem::GetSelectRects()
{
LPDISPATCH result;
InvokeHelper(0x4, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, NULL);
return result;
}
/////////////////////////////////////////////////////////////////////////////
// IMiSelectableImage properties
/////////////////////////////////////////////////////////////////////////////
// IMiSelectableImage operations
void IMiSelectableImage::CopyToClipboard(long CopyAnnotation, long AlwaysKeepAnnotationColor)
{
static BYTE parms[] =
VTS_I4 VTS_I4;
InvokeHelper(0x1, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
CopyAnnotation, AlwaysKeepAnnotationColor);
}
LPDISPATCH IMiSelectableImage::ExportToPicture(long CopyAnnotation, long AlwaysKeepAnnotationColor)
{
LPDISPATCH result;
static BYTE parms[] =
VTS_I4 VTS_I4;
InvokeHelper(0x2, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
CopyAnnotation, AlwaysKeepAnnotationColor);
return result;
}
void IMiSelectableImage::GetBoundingRect(long* plPageNum, long* Left, long* Top, long* Right, long* Bottom)
{
static BYTE parms[] =
VTS_PI4 VTS_PI4 VTS_PI4 VTS_PI4 VTS_PI4;
InvokeHelper(0x3, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
plPageNum, Left, Top, Right, Bottom);
}
/////////////////////////////////////////////////////////////////////////////
// IMiDocView properties
/////////////////////////////////////////////////////////////////////////////
// IMiDocView operations
LPUNKNOWN IMiDocView::GetDocument()
{
LPUNKNOWN result;
InvokeHelper(0x1, DISPATCH_PROPERTYGET, VT_UNKNOWN, (void*)&result, NULL);
return result;
}
void IMiDocView::SetDocument(LPUNKNOWN newValue)
{
static BYTE parms[] =
VTS_UNKNOWN;
InvokeHelper(0x1, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
newValue);
}
CString IMiDocView::GetFileName()
{
CString result;
InvokeHelper(0x2, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
return result;
}
void IMiDocView::SetFileName(LPCTSTR lpszNewValue)
{
static BYTE parms[] =
VTS_BSTR;
InvokeHelper(0x2, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
lpszNewValue);
}
long IMiDocView::GetNumPages()
{
long result;
InvokeHelper(0x4, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
void IMiDocView::ClientToDocument(long* plX, long* plY)
{
static BYTE parms[] =
VTS_PI4 VTS_PI4;
InvokeHelper(0x30, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
plX, plY);
}
void IMiDocView::DocumentToClient(long* plX, long* plY)
{
static BYTE parms[] =
VTS_PI4 VTS_PI4;
InvokeHelper(0x31, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
plX, plY);
}
void IMiDocView::ClientToImage(long lSX, long lSY, long* pnPage, long* plX, long* plY)
{
static BYTE parms[] =
VTS_I4 VTS_I4 VTS_PI4 VTS_PI4 VTS_PI4;
InvokeHelper(0x34, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
lSX, lSY, pnPage, plX, plY);
}
void IMiDocView::ImageToClient(long nPage, long lX, long lY, long* plSX, long* plSY)
{
static BYTE parms[] =
VTS_I4 VTS_I4 VTS_I4 VTS_PI4 VTS_PI4;
InvokeHelper(0x35, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
nPage, lX, lY, plSX, plSY);
}
void IMiDocView::GetVisibleRect(long* Left, long* Top, long* Right, long* Bottom)
{
static BYTE parms[] =
VTS_PI4 VTS_PI4 VTS_PI4 VTS_PI4;
InvokeHelper(0x32, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
Left, Top, Right, Bottom);
}
void IMiDocView::MoveRectIntoView(long Left, long Top, long Right, long Bottom)
{
static BYTE parms[] =
VTS_I4 VTS_I4 VTS_I4 VTS_I4;
InvokeHelper(0x33, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
Left, Top, Right, Bottom);
}
long IMiDocView::GetDocViewMode()
{
long result;
InvokeHelper(0x17, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
void IMiDocView::SetDocViewMode(long nNewValue)
{
static BYTE parms[] =
VTS_I4;
InvokeHelper(0x17, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
nNewValue);
}
long IMiDocView::GetPageNum()
{
long result;
InvokeHelper(0x3, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
void IMiDocView::SetPageNum(long nNewValue)
{
static BYTE parms[] =
VTS_I4;
InvokeHelper(0x3, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
nNewValue);
}
void IMiDocView::GetScale(double* pdScaleX, double* pdScaleY)
{
static BYTE parms[] =
VTS_PR8 VTS_PR8;
InvokeHelper(0x8, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
pdScaleX, pdScaleY);
}
void IMiDocView::SetScale(double dScaleX, double dScaleY)
{
static BYTE parms[] =
VTS_R8 VTS_R8;
InvokeHelper(0x9, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
dScaleX, dScaleY);
}
long IMiDocView::GetFitMode()
{
long result;
InvokeHelper(0xa, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
void IMiDocView::SetFitMode(long nNewValue)
{
static BYTE parms[] =
VTS_I4;
InvokeHelper(0xa, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
nNewValue);
}
long IMiDocView::GetActionState()
{
long result;
InvokeHelper(0xb, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
void IMiDocView::SetActionState(long nNewValue)
{
static BYTE parms[] =
VTS_I4;
InvokeHelper(0xb, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
nNewValue);
}
LPDISPATCH IMiDocView::GetTextSelection()
{
LPDISPATCH result;
InvokeHelper(0xc, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
return result;
}
void IMiDocView::SetTextSelection(LPDISPATCH newValue)
{
static BYTE parms[] =
VTS_DISPATCH;
InvokeHelper(0xc, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
newValue);
}
LPDISPATCH IMiDocView::GetImageSelection()
{
LPDISPATCH result;
InvokeHelper(0x2f, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
return result;
}
void IMiDocView::SetImageSelection(LPDISPATCH newValue)
{
static BYTE parms[] =
VTS_DISPATCH;
InvokeHelper(0x2f, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
newValue);
}
void IMiDocView::SelectAll(long nPage)
{
static BYTE parms[] =
VTS_I4;
InvokeHelper(0x21, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
nPage);
}
void IMiDocView::MoveSelectionToView(LPDISPATCH pdispSelection)
{
static BYTE parms[] =
VTS_DISPATCH;
InvokeHelper(0xd, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
pdispSelection);
}
void IMiDocView::SetLayerVisible(long Index, BOOL bNewValue)
{
static BYTE parms[] =
VTS_I4 VTS_BOOL;
InvokeHelper(0x1d, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
Index, bNewValue);
}
BOOL IMiDocView::GetLayerVisible(long Index)
{
BOOL result;
static BYTE parms[] =
VTS_I4;
InvokeHelper(0x1d, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, parms,
Index);
return result;
}
/////////////////////////////////////////////////////////////////////////////
// _IMiDocViewEvents properties
/////////////////////////////////////////////////////////////////////////////
// _IMiDocViewEvents operations
/////////////////////////////////////////////////////////////////////////////
// IMiDocSearch properties
/////////////////////////////////////////////////////////////////////////////
// IMiDocSearch operations
void IMiDocSearch::Initialize(LPUNKNOWN piDoc, LPCTSTR strPattern, VARIANT* PageNum, VARIANT* WordIndex, VARIANT* StartAfterIndex, VARIANT* Backward, BOOL MatchMinus, BOOL MatchFullHalfWidthForm, BOOL MatchHiraganaKatakana, BOOL IgnoreSpace)
{
static BYTE parms[] =
VTS_UNKNOWN VTS_BSTR VTS_PVARIANT VTS_PVARIANT VTS_PVARIANT VTS_PVARIANT VTS_BOOL VTS_BOOL VTS_BOOL VTS_BOOL;
InvokeHelper(0x1, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
piDoc, strPattern, PageNum, WordIndex, StartAfterIndex, Backward, MatchMinus, MatchFullHalfWidthForm, MatchHiraganaKatakana, IgnoreSpace);
}
void IMiDocSearch::Search(LPUNKNOWN pSearchCallback, LPDISPATCH* ppiSearchResult)
{
static BYTE parms[] =
VTS_UNKNOWN VTS_PDISPATCH;
InvokeHelper(0x2, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
pSearchCallback, ppiSearchResult);
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jempson/img2text.git
git@gitee.com:jempson/img2text.git
jempson
img2text
img2text
master

搜索帮助