📄 modi_ocx.h
字号:
// ************************************************************************ //
// WARNING
// -------
// The types declared in this file were generated from data read from a
// Type Library. If this type library is explicitly or indirectly (via
// another type library referring to this type library) re-imported, or the
// 'Refresh' command of the Type Library Editor activated while editing the
// Type Library, the contents of this file will be regenerated and all
// manual modifications will be lost.
// ************************************************************************ //
// C++ TLBWRTR : $Revision: 1.151.1.0.1.27 $
// File generated on 2006-4-17 15:33:26 from Type Library described below.
// ************************************************************************ //
// Type Lib: C:\Program Files\Common Files\Microsoft Shared\MODI\11.0\MDIVWCTL.DLL (1)
// LIBID: {A5EDEDF4-2BBC-45F3-822B-E60C278A1A79}
// LCID: 0
// Helpfile:
// HelpString: Microsoft Office Document Imaging 11.0 Type Library
// DepndLst:
// (1) v2.0 stdole, (C:\WINDOWS\system32\stdole2.tlb)
// ************************************************************************ //
#ifndef MODI_OCXH
#define MODI_OCXH
#pragma option push -b -w-inl
#include <olectrls.hpp>
#include <oleserver.hpp>
#include <utilcls.h>
#if !defined(__UTILCLS_H_VERSION) || (__UTILCLS_H_VERSION < 0x0600)
//
// The code generated by the TLIBIMP utility or the Import|TypeLibrary
// and Import|ActiveX feature of C++Builder rely on specific versions of
// the header file UTILCLS.H found in the INCLUDE\VCL directory. If an
// older version of the file is detected, you probably need an update/patch.
//
#error "This file requires a newer version of the header UTILCLS.H" \
"You need to apply an update/patch to your copy of C++Builder"
#endif
#include <olectl.h>
#include <ocidl.h>
#if !defined(_NO_VCL)
#include <stdvcl.hpp>
#endif // _NO_VCL
#include <ocxproxy.h>
#include "MODI_TLB.h"
namespace Modi_tlb
{
// *********************************************************************//
// HelpString: Microsoft Office Document Imaging 11.0 Type Library
// Version: 11.0
// *********************************************************************//
// *********************************************************************//
// COM Component Proxy Class Declaration
// Component Name : TDocument
// Help String : Document Class
// Default Interface: IDocument
// Def. Intf. Object: IDocumentPtr
// Def. Intf. DISP? : No
// Event Interface: _IDocumentEvents
// TypeFlags : (2) CanCreate
// *********************************************************************//
typedef void __fastcall (__closure * TDocumentOnOCRProgress)(System::TObject * Sender,
int Progress/*[in]*/,
VARIANT_BOOL* Cancel/*[in,out]*/);
class PACKAGE TDocument : public Oleserver::TOleServer
{
IDocumentPtr m_DefaultIntf;
_di_IUnknown __fastcall GetDunk();
public:
__fastcall TDocument(TComponent* owner) : Oleserver::TOleServer(owner)
{}
IDocumentPtr& GetDefaultInterface();
void __fastcall InitServerData();
void __fastcall Connect();
void __fastcall Disconnect();
void __fastcall BeforeDestruction();
void __fastcall ConnectTo(IDocumentPtr intf);
virtual void __fastcall InvokeEvent(int DispID, Oleserver::TVariantArray& params);
Modi_tlb::IImagesPtr __fastcall get_Images(void)
{
return GetDefaultInterface()->get_Images();
}
LPDISPATCH __fastcall get_BuiltInDocumentProperties(void)
{
return GetDefaultInterface()->get_BuiltInDocumentProperties();
}
LPDISPATCH __fastcall get_CustomDocumentProperties(void)
{
return GetDefaultInterface()->get_CustomDocumentProperties();
}
TOLEBOOL __fastcall get_Dirty(void)
{
return GetDefaultInterface()->get_Dirty();
}
void __fastcall Save(void)
{
GetDefaultInterface()->Save();
}
void __fastcall Close(VARIANT_BOOL SaveChanges/*[in,def,opt]*/)
{
GetDefaultInterface()->Close(SaveChanges/*[in,def,opt]*/);
}
void __fastcall SaveAs(BSTR FileName/*[in]*/, Modi_tlb::MiFILE_FORMAT FileFormat/*[in,def,opt]*/,
Modi_tlb::MiCOMP_LEVEL CompLevel/*[in,def,opt]*/)
{
GetDefaultInterface()->SaveAs(FileName/*[in]*/, FileFormat/*[in,def,opt]*/,
CompLevel/*[in,def,opt]*/);
}
void __fastcall Create(BSTR FileOpen/*[in,def,opt]*/)
{
GetDefaultInterface()->Create(FileOpen/*[in,def,opt]*/);
}
void __fastcall OCR(Modi_tlb::MiLANGUAGES LangId/*[in,def,opt]*/,
VARIANT_BOOL OCROrientImage/*[in,def,opt]*/,
VARIANT_BOOL OCRStraightenImage/*[in,def,opt]*/)
{
GetDefaultInterface()->OCR(LangId/*[in,def,opt]*/, OCROrientImage/*[in,def,opt]*/,
OCRStraightenImage/*[in,def,opt]*/);
}
void __fastcall PrintOut(long From/*[in,def,opt]*/, long To/*[in,def,opt]*/,
long Copies/*[in,def,opt]*/, BSTR PrinterName/*[in,def,opt]*/,
BSTR PrintToFileName/*[in,def,opt]*/,
VARIANT_BOOL PrintAnnotation/*[in,def,opt]*/,
Modi_tlb::MiPRINT_FITMODES FitMode/*[in,def,opt]*/)
{
GetDefaultInterface()->PrintOut(From/*[in,def,opt]*/, To/*[in,def,opt]*/, Copies/*[in,def,opt]*/,
PrinterName/*[in,def,opt]*/, PrintToFileName/*[in,def,opt]*/,
PrintAnnotation/*[in,def,opt]*/, FitMode/*[in,def,opt]*/);
}
__property Modi_tlb::IImagesPtr Images={ read=get_Images };
__property LPDISPATCH BuiltInDocumentProperties={ read=get_BuiltInDocumentProperties };
__property LPDISPATCH CustomDocumentProperties={ read=get_CustomDocumentProperties };
__property TOLEBOOL Dirty={ read=get_Dirty };
private:
TDocumentOnOCRProgress FOnOCRProgress;
__published:
__property TDocumentOnOCRProgress OnOCRProgress={ read=FOnOCRProgress, write=FOnOCRProgress };
};
// *********************************************************************//
// COM Component Proxy Class Declaration
// Component Name : TLayout
// Help String : Layout Class
// Default Interface: ILayout
// Def. Intf. Object: ILayoutPtr
// Def. Intf. DISP? : No
// Event Interface:
// TypeFlags : (2) CanCreate
// *********************************************************************//
class PACKAGE TLayout : public Oleserver::TOleServer
{
ILayoutPtr m_DefaultIntf;
_di_IUnknown __fastcall GetDunk();
public:
__fastcall TLayout(TComponent* owner) : Oleserver::TOleServer(owner)
{}
ILayoutPtr& GetDefaultInterface();
void __fastcall InitServerData();
void __fastcall Connect();
void __fastcall Disconnect();
void __fastcall BeforeDestruction();
void __fastcall ConnectTo(ILayoutPtr intf);
long __fastcall get_Language(void)
{
return GetDefaultInterface()->get_Language();
}
long __fastcall get_NumChars(void)
{
return GetDefaultInterface()->get_NumChars();
}
long __fastcall get_NumWords(void)
{
return GetDefaultInterface()->get_NumWords();
}
long __fastcall get_NumFonts(void)
{
return GetDefaultInterface()->get_NumFonts();
}
BSTR __fastcall get_Text(void)
{
return GetDefaultInterface()->get_Text();
}
Modi_tlb::IWordsPtr __fastcall get_Words(void)
{
return GetDefaultInterface()->get_Words();
}
__property long Language={ read=get_Language };
__property long NumChars={ read=get_NumChars };
__property long NumWords={ read=get_NumWords };
__property long NumFonts={ read=get_NumFonts };
__property BSTR Text={ read=get_Text };
__property Modi_tlb::IWordsPtr Words={ read=get_Words };
};
// *********************************************************************//
// COM Component Proxy Class Declaration
// Component Name : TMODI_Image
// Help String : Image Class
// Default Interface: IImage
// Def. Intf. Object: IImagePtr
// Def. Intf. DISP? : No
// Event Interface: _IImageEvents
// TypeFlags : (2) CanCreate
// *********************************************************************//
class PACKAGE TMODI_Image: public Oleserver::TOleServer
{
IImagePtr m_DefaultIntf;
_di_IUnknown __fastcall GetDunk();
public:
__fastcall TMODI_Image(TComponent* owner) : Oleserver::TOleServer(owner)
{}
IImagePtr& GetDefaultInterface();
void __fastcall InitServerData();
void __fastcall Connect();
void __fastcall Disconnect();
void __fastcall BeforeDestruction();
void __fastcall ConnectTo(IImagePtr intf);
virtual void __fastcall InvokeEvent(int DispID, Oleserver::TVariantArray& params);
Modi_tlb::ILayoutPtr __fastcall get_Layout(void)
{
return GetDefaultInterface()->get_Layout();
}
long __fastcall get_PixelWidth(void)
{
return GetDefaultInterface()->get_PixelWidth();
}
long __fastcall get_PixelHeight(void)
{
return GetDefaultInterface()->get_PixelHeight();
}
long __fastcall get_XDPI(void)
{
return GetDefaultInterface()->get_XDPI();
}
long __fastcall get_YDPI(void)
{
return GetDefaultInterface()->get_YDPI();
}
long __fastcall get_BitsPerPixel(void)
{
return GetDefaultInterface()->get_BitsPerPixel();
}
IPictureDispPtr __fastcall get_Thumbnail(Modi_tlb::MiTHUMBNAIL_SIZE ThumbSize/*[in,def,opt]*/)
{
return GetDefaultInterface()->get_Thumbnail(ThumbSize/*[in,def,opt]*/);
}
IPictureDispPtr __fastcall get_Picture(void)
{
return GetDefaultInterface()->get_Picture();
}
Modi_tlb::MiCOMP_TYPE __fastcall get_Compression(void)
{
return GetDefaultInterface()->get_Compression();
}
void __fastcall OCR(Modi_tlb::MiLANGUAGES LangId/*[in,def,opt]*/,
VARIANT_BOOL OCROrientImage/*[in,def,opt]*/,
VARIANT_BOOL OCRStraightenImage/*[in,def,opt]*/)
{
GetDefaultInterface()->OCR(LangId/*[in,def,opt]*/, OCROrientImage/*[in,def,opt]*/,
OCRStraightenImage/*[in,def,opt]*/);
}
void __fastcall Rotate(long Angle/*[in]*/)
{
GetDefaultInterface()->Rotate(Angle/*[in]*/);
}
__property Modi_tlb::ILayoutPtr Layout={ read=get_Layout };
__property long PixelWidth={ read=get_PixelWidth };
__property long PixelHeight={ read=get_PixelHeight };
__property long XDPI={ read=get_XDPI };
__property long YDPI={ read=get_YDPI };
__property long BitsPerPixel={ read=get_BitsPerPixel };
__property IPictureDispPtr Thumbnail[Modi_tlb::MiTHUMBNAIL_SIZE ThumbSize]={ read=get_Thumbnail };
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -