📄 modi_tlb.h
字号:
VARIANT_BOOL MatchMinus/*[in,def,opt]*/,
VARIANT_BOOL MatchFullHalfWidthForm/*[in,def,opt]*/,
VARIANT_BOOL MatchHiraganaKatakana/*[in,def,opt]*/,
VARIANT_BOOL IgnoreSpace/*[in,def,opt]*/) = 0;
// [2] method Search
virtual HRESULT STDMETHODCALLTYPE Search(Modi_tlb::IMiSearchCallback* pSearchCallback,
Modi_tlb::IMiSelectableItem** ppiSearchResult) = 0;
#if !defined(__TLB_NO_INTERFACE_WRAPPERS)
#endif // __TLB_NO_INTERFACE_WRAPPERS
};
#if !defined(__TLB_NO_INTERFACE_WRAPPERS)
// *********************************************************************//
// SmartIntf: TCOMIMiFont
// Interface: IMiFont
// *********************************************************************//
template <class T /* IMiFont */ >
class TCOMIMiFontT : public TComInterface<IMiFont>, public TComInterfaceBase<IUnknown>
{
public:
TCOMIMiFontT() {}
TCOMIMiFontT(IMiFont *intf, bool addRef = false) : TComInterface<IMiFont>(intf, addRef) {}
TCOMIMiFontT(const TCOMIMiFontT& src) : TComInterface<IMiFont>(src) {}
TCOMIMiFontT& operator=(const TCOMIMiFontT& src) { Bind(src, true); return *this;}
HRESULT __fastcall get_Family(Modi_tlb::MiFONT_FAMILY* pVal/*[out,retval]*/);
Modi_tlb::MiFONT_FAMILY __fastcall get_Family(void);
HRESULT __fastcall get_FaceStyle(Modi_tlb::MiFONT_FACE_STYLE* pVal/*[out,retval]*/);
Modi_tlb::MiFONT_FACE_STYLE __fastcall get_FaceStyle(void);
HRESULT __fastcall get_SerifStyle(Modi_tlb::MiFONT_SERIF_STYLE* pVal/*[out,retval]*/);
Modi_tlb::MiFONT_SERIF_STYLE __fastcall get_SerifStyle(void);
HRESULT __fastcall get_FontSize(short* pVal/*[out,retval]*/);
short __fastcall get_FontSize(void);
__property Modi_tlb::MiFONT_FAMILY Family = {read = get_Family};
__property Modi_tlb::MiFONT_FACE_STYLE FaceStyle = {read = get_FaceStyle};
__property Modi_tlb::MiFONT_SERIF_STYLE SerifStyle = {read = get_SerifStyle};
__property short FontSize = {read = get_FontSize};
};
typedef TCOMIMiFontT<IMiFont> TCOMIMiFont;
// *********************************************************************//
// DispIntf: IMiFont
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {1FFC9A7B-7606-4C97-8119-78673E9D4821}
// *********************************************************************//
template<class T>
class IMiFontDispT : public TAutoDriver<IMiFont>
{
public:
IMiFontDispT(){}
IMiFontDispT(IMiFont *pintf)
{
TAutoDriver<IMiFont>::Bind(pintf, false);
}
IMiFontDispT(IMiFontPtr pintf)
{
TAutoDriver<IMiFont>::Bind(pintf, true);
}
IMiFontDispT& operator=(IMiFont *pintf)
{
TAutoDriver<IMiFont>::Bind(pintf, false);
return *this;
}
IMiFontDispT& operator=(IMiFontPtr pintf)
{
TAutoDriver<IMiFont>::Bind(pintf, true);
return *this;
}
HRESULT BindDefault()
{
return OLECHECK(Bind(CLSID_MiFont));
}
HRESULT BindRunning()
{
return BindToActive(CLSID_MiFont);
}
HRESULT __fastcall get_Family(Modi_tlb::MiFONT_FAMILY* pVal/*[out,retval]*/);
Modi_tlb::MiFONT_FAMILY __fastcall get_Family(void);
HRESULT __fastcall get_FaceStyle(Modi_tlb::MiFONT_FACE_STYLE* pVal/*[out,retval]*/);
Modi_tlb::MiFONT_FACE_STYLE __fastcall get_FaceStyle(void);
HRESULT __fastcall get_SerifStyle(Modi_tlb::MiFONT_SERIF_STYLE* pVal/*[out,retval]*/);
Modi_tlb::MiFONT_SERIF_STYLE __fastcall get_SerifStyle(void);
HRESULT __fastcall get_FontSize(short* pVal/*[out,retval]*/);
short __fastcall get_FontSize(void);
__property Modi_tlb::MiFONT_FAMILY Family = {read = get_Family};
__property Modi_tlb::MiFONT_FACE_STYLE FaceStyle = {read = get_FaceStyle};
__property Modi_tlb::MiFONT_SERIF_STYLE SerifStyle = {read = get_SerifStyle};
__property short FontSize = {read = get_FontSize};
};
typedef IMiFontDispT<IMiFont> IMiFontDisp;
// *********************************************************************//
// SmartIntf: TCOMIMiRect
// Interface: IMiRect
// *********************************************************************//
template <class T /* IMiRect */ >
class TCOMIMiRectT : public TComInterface<IMiRect>, public TComInterfaceBase<IUnknown>
{
public:
TCOMIMiRectT() {}
TCOMIMiRectT(IMiRect *intf, bool addRef = false) : TComInterface<IMiRect>(intf, addRef) {}
TCOMIMiRectT(const TCOMIMiRectT& src) : TComInterface<IMiRect>(src) {}
TCOMIMiRectT& operator=(const TCOMIMiRectT& src) { Bind(src, true); return *this;}
HRESULT __fastcall get_Top(long* pVal/*[out,retval]*/);
long __fastcall get_Top(void);
HRESULT __fastcall get_Left(long* pVal/*[out,retval]*/);
long __fastcall get_Left(void);
HRESULT __fastcall get_Right(long* pVal/*[out,retval]*/);
long __fastcall get_Right(void);
HRESULT __fastcall get_Bottom(long* pVal/*[out,retval]*/);
long __fastcall get_Bottom(void);
__property long Top = {read = get_Top};
__property long Left = {read = get_Left};
__property long Right = {read = get_Right};
__property long Bottom = {read = get_Bottom};
};
typedef TCOMIMiRectT<IMiRect> TCOMIMiRect;
// *********************************************************************//
// DispIntf: IMiRect
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {87D6FB47-7CFA-4DB3-82CD-E8DCC5BDA7AB}
// *********************************************************************//
template<class T>
class IMiRectDispT : public TAutoDriver<IMiRect>
{
public:
IMiRectDispT(){}
IMiRectDispT(IMiRect *pintf)
{
TAutoDriver<IMiRect>::Bind(pintf, false);
}
IMiRectDispT(IMiRectPtr pintf)
{
TAutoDriver<IMiRect>::Bind(pintf, true);
}
IMiRectDispT& operator=(IMiRect *pintf)
{
TAutoDriver<IMiRect>::Bind(pintf, false);
return *this;
}
IMiRectDispT& operator=(IMiRectPtr pintf)
{
TAutoDriver<IMiRect>::Bind(pintf, true);
return *this;
}
HRESULT BindDefault()
{
return OLECHECK(Bind(CLSID_MiRect));
}
HRESULT BindRunning()
{
return BindToActive(CLSID_MiRect);
}
HRESULT __fastcall get_Top(long* pVal/*[out,retval]*/);
long __fastcall get_Top(void);
HRESULT __fastcall get_Left(long* pVal/*[out,retval]*/);
long __fastcall get_Left(void);
HRESULT __fastcall get_Right(long* pVal/*[out,retval]*/);
long __fastcall get_Right(void);
HRESULT __fastcall get_Bottom(long* pVal/*[out,retval]*/);
long __fastcall get_Bottom(void);
__property long Top = {read = get_Top};
__property long Left = {read = get_Left};
__property long Right = {read = get_Right};
__property long Bottom = {read = get_Bottom};
};
typedef IMiRectDispT<IMiRect> IMiRectDisp;
// *********************************************************************//
// SmartIntf: TCOMIMiRects
// Interface: IMiRects
// *********************************************************************//
template <class T /* IMiRects */ >
class TCOMIMiRectsT : public TComInterface<IMiRects>, public TComInterfaceBase<IUnknown>
{
public:
TCOMIMiRectsT() {}
TCOMIMiRectsT(IMiRects *intf, bool addRef = false) : TComInterface<IMiRects>(intf, addRef) {}
TCOMIMiRectsT(const TCOMIMiRectsT& src) : TComInterface<IMiRects>(src) {}
TCOMIMiRectsT& operator=(const TCOMIMiRectsT& src) { Bind(src, true); return *this;}
HRESULT __fastcall get_Count(long* pVal/*[out,retval]*/);
long __fastcall get_Count(void);
HRESULT __fastcall get__NewEnum(LPUNKNOWN* pVal/*[out,retval]*/);
LPUNKNOWN __fastcall get__NewEnum(void);
HRESULT __fastcall get_Item(long Index/*[in]*/, LPDISPATCH* pVal/*[out,retval]*/);
LPDISPATCH __fastcall get_Item(long Index/*[in]*/);
__property long Count = {read = get_Count};
__property LPUNKNOWN _NewEnum = {read = get__NewEnum};
};
typedef TCOMIMiRectsT<IMiRects> TCOMIMiRects;
// *********************************************************************//
// DispIntf: IMiRects
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {895C88A9-8598-44CC-91C4-8010AE2475EB}
// *********************************************************************//
template<class T>
class IMiRectsDispT : public TAutoDriver<IMiRects>
{
public:
IMiRectsDispT(){}
IMiRectsDispT(IMiRects *pintf)
{
TAutoDriver<IMiRects>::Bind(pintf, false);
}
IMiRectsDispT(IMiRectsPtr pintf)
{
TAutoDriver<IMiRects>::Bind(pintf, true);
}
IMiRectsDispT& operator=(IMiRects *pintf)
{
TAutoDriver<IMiRects>::Bind(pintf, false);
return *this;
}
IMiRectsDispT& operator=(IMiRectsPtr pintf)
{
TAutoDriver<IMiRects>::Bind(pintf, true);
return *this;
}
HRESULT BindDefault()
{
return OLECHECK(Bind(CLSID_MiRects));
}
HRESULT BindRunning()
{
return BindToActive(CLSID_MiRects);
}
HRESULT __fastcall get_Count(long* pVal/*[out,retval]*/);
long __fastcall get_Count(void);
HRESULT __fastcall get__NewEnum(LPUNKNOWN* pVal/*[out,retval]*/);
LPUNKNOWN __fastcall get__NewEnum(void);
HRESULT __fastcall get_Item(long Index/*[in]*/, LPDISPATCH* pVal/*[out,retval]*/);
LPDISPATCH __fastcall get_Item(long Index/*[in]*/);
__property long Count = {read = get_Count};
__property LPUNKNOWN _NewEnum = {read = get__NewEnum};
};
typedef IMiRectsDispT<IMiRects> IMiRectsDisp;
// *********************************************************************//
// SmartIntf: TCOMIWord
// Interface: IWord
// *********************************************************************//
template <class T /* IWord */ >
class TCOMIWordT : public TComInterface<IWord>, public TComInterfaceBase<IUnknown>
{
public:
TCOMIWordT() {}
TCOMIWordT(IWord *intf, bool addRef = false) : TComInterface<IWord>(intf, addRef) {}
TCOMIWordT(const TCOMIWordT& src) : TComInterface<IWord>(src) {}
TCOMIWordT& operator=(const TCOMIWordT& src) { Bind(src, true); return *this;}
HRESULT __fastcall get_RecognitionConfidence(short* pVal/*[out,retval]*/);
short __fastcall get_RecognitionConfidence(void);
HRESULT __fastcall get_FontId(long* pVal/*[out,retval]*/);
long __fastcall get_FontId(void);
HRESULT __fastcall get_LineId(long* pVal/*[out,retval]*/);
long __fastcall get_LineId(void);
HRESULT __fastcall get_RegionId(long* pVal/*[out,retval]*/);
long __fastcall get_RegionId(void);
HRESULT __fastcall get_Text(BSTR* pVal/*[out,retval]*/);
BSTR __fastcall get_Text(void);
HRESULT __fastcall get_Font(Modi_tlb::IMiFont** pVal/*[out,retval]*/);
HRESULT __fastcall get_Font(Modi_tlb::IMiFontPtr* pVal/*[out,retval]*/);
Modi_tlb::IMiFontPtr __fastcall get_Font(void);
HRESULT __fastcall get_Id(long* pVal/*[out,retval]*/);
long __fastcall get_Id(void);
HRESULT __fastcall get_Rects(Modi_tlb::IMiRects** ppVal/*[out,retval]*/);
HRESULT __fastcall get_Rects(Modi_tlb::IMiRectsPtr* ppVal/*[out,retval]*/);
Modi_tlb::IMiRectsPtr __fastcall get_Rects(void);
__property short RecognitionConfidence = {read = get_RecognitionConfidence};
__property long FontId = {read = get_FontId};
__property long LineId = {read = get_LineId};
__property long RegionId = {read = get_RegionId};
__property BSTR Text = {read = get_Text};
__property Modi_tlb::IMiFontPtr Font = {read = get_Font};
__property long Id = {read = get_Id};
__property Modi_tlb::IMiRectsPtr Rects = {read = get_Rects};
};
typedef TCOMIWordT<IWord> TCOMIWord;
// *********************************************************************//
// DispIntf: IWord
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {5612275B-B4F1-42AF-B696-360D40DF041D}
// *********************************************************************//
template<class T>
class IWordDispT : public TAutoDriver<IWord>
{
public:
IWordDispT(){}
IWordDispT(IWord *pintf)
{
TAutoDriver<IWord>::Bind(pintf, false);
}
IWordDispT(IWordPtr pintf)
{
TAutoDriver<IWord>::Bind(pintf, true);
}
IWordDispT& operator=(IWord *pintf)
{
TAutoDriver<IWord>::Bind(pintf, false);
return *this;
}
IWordDispT& operator=(IWordPtr pintf)
{
TAutoDriver<IWord>::Bind(pintf, true);
return *this;
}
HRESULT BindDefault()
{
return OLECHECK(Bind(CLSID_Word));
}
HRESULT BindRunning()
{
return BindToActive(CLSID_Word);
}
HRESULT __fastcall get_RecognitionConfidence(short* pVal/*[out,retval]*/);
short __fastcall get_RecognitionC
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -