⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 modi_tlb.h

📁 微软的虚拟打印组件
💻 H
📖 第 1 页 / 共 5 页
字号:

  BSTR __fastcall get_Text(void)
  {
    BSTR pVal = 0;
    OLECHECK(this->get_Text((BSTR*)&pVal));
    return pVal;
  }

  Modi_tlb::IWords* __fastcall get_Words(void)
  {
    Modi_tlb::IWords* pVal;
    OLECHECK(this->get_Words((Modi_tlb::IWords**)&pVal));
    return pVal;
  }


  __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::IWords* Words = {read = get_Words};

#endif //   __TLB_NO_INTERFACE_WRAPPERS

};

// *********************************************************************//
// Interface: IImage
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {AC0D48A6-886D-4EB5-A8A1-093D60B9A84A}
// *********************************************************************//
interface IImage  : public IDispatch
{
public:
  // [1] property Layout
  virtual HRESULT STDMETHODCALLTYPE get_Layout(Modi_tlb::ILayout** pVal/*[out,retval]*/) = 0;
  // [2] property PixelWidth
  virtual HRESULT STDMETHODCALLTYPE get_PixelWidth(long* pVal/*[out,retval]*/) = 0;
  // [3] property PixelHeight
  virtual HRESULT STDMETHODCALLTYPE get_PixelHeight(long* pVal/*[out,retval]*/) = 0;
  // [4] property XDPI
  virtual HRESULT STDMETHODCALLTYPE get_XDPI(long* pVal/*[out,retval]*/) = 0;
  // [5] property YDPI
  virtual HRESULT STDMETHODCALLTYPE get_YDPI(long* pVal/*[out,retval]*/) = 0;
  // [6] property BitsPerPixel
  virtual HRESULT STDMETHODCALLTYPE get_BitsPerPixel(long* pVal/*[out,retval]*/) = 0;
  // [7] property Thumbnail
  virtual HRESULT STDMETHODCALLTYPE get_Thumbnail(Modi_tlb::MiTHUMBNAIL_SIZE ThumbSize/*[in,def,opt]*/, 
                                                  IPictureDisp** pVal/*[out,retval]*/) = 0;
  // [8] property Picture
  virtual HRESULT STDMETHODCALLTYPE get_Picture(IPictureDisp** pVal/*[out,retval]*/) = 0;
  // [9] property Compression
  virtual HRESULT STDMETHODCALLTYPE get_Compression(Modi_tlb::MiCOMP_TYPE* pVal/*[out,retval]*/) = 0;
  // [10] method OCR
  virtual HRESULT STDMETHODCALLTYPE OCR(Modi_tlb::MiLANGUAGES LangId/*[in,def,opt]*/, 
                                        VARIANT_BOOL OCROrientImage/*[in,def,opt]*/, 
                                        VARIANT_BOOL OCRStraightenImage/*[in,def,opt]*/) = 0;
  // [11] method Rotate
  virtual HRESULT STDMETHODCALLTYPE Rotate(long Angle/*[in]*/) = 0;

#if !defined(__TLB_NO_INTERFACE_WRAPPERS)

  Modi_tlb::ILayout* __fastcall get_Layout(void)
  {
    Modi_tlb::ILayout* pVal;
    OLECHECK(this->get_Layout((Modi_tlb::ILayout**)&pVal));
    return pVal;
  }

  long __fastcall get_PixelWidth(void)
  {
    long pVal;
    OLECHECK(this->get_PixelWidth((long*)&pVal));
    return pVal;
  }

  long __fastcall get_PixelHeight(void)
  {
    long pVal;
    OLECHECK(this->get_PixelHeight((long*)&pVal));
    return pVal;
  }

  long __fastcall get_XDPI(void)
  {
    long pVal;
    OLECHECK(this->get_XDPI((long*)&pVal));
    return pVal;
  }

  long __fastcall get_YDPI(void)
  {
    long pVal;
    OLECHECK(this->get_YDPI((long*)&pVal));
    return pVal;
  }

  long __fastcall get_BitsPerPixel(void)
  {
    long pVal;
    OLECHECK(this->get_BitsPerPixel((long*)&pVal));
    return pVal;
  }

  IPictureDisp* __fastcall get_Thumbnail(Modi_tlb::MiTHUMBNAIL_SIZE ThumbSize/*[in,def,opt]*/)
  {
    IPictureDisp* pVal;
    OLECHECK(this->get_Thumbnail(ThumbSize, (IPictureDisp**)&pVal));
    return pVal;
  }

  IPictureDisp* __fastcall get_Picture(void)
  {
    IPictureDisp* pVal;
    OLECHECK(this->get_Picture((IPictureDisp**)&pVal));
    return pVal;
  }

  Modi_tlb::MiCOMP_TYPE __fastcall get_Compression(void)
  {
    Modi_tlb::MiCOMP_TYPE pVal;
    OLECHECK(this->get_Compression((Modi_tlb::MiCOMP_TYPE*)&pVal));
    return pVal;
  }


  __property   Modi_tlb::ILayout* 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   IPictureDisp*   Picture = {read = get_Picture};
  __property   Modi_tlb::MiCOMP_TYPE Compression = {read = get_Compression};

#endif //   __TLB_NO_INTERFACE_WRAPPERS

};

// *********************************************************************//
// Interface: IImages
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {77096557-54CA-45C8-81C9-E70C2ABAA0FB}
// *********************************************************************//
interface IImages  : public IDispatch
{
public:
  // [1] property Count
  virtual HRESULT STDMETHODCALLTYPE get_Count(long* pVal/*[out,retval]*/) = 0;
  // [2] method Add
  virtual HRESULT STDMETHODCALLTYPE Add(LPDISPATCH Page/*[in]*/, LPDISPATCH BeforePage/*[in]*/) = 0;
  // [-4] property _NewEnum
  virtual HRESULT STDMETHODCALLTYPE get__NewEnum(LPUNKNOWN* pVal/*[out,retval]*/) = 0;
  // [0] property Item
  virtual HRESULT STDMETHODCALLTYPE get_Item(long Index/*[in]*/, LPDISPATCH* pVal/*[out,retval]*/) = 0;
  // [5] method Remove
  virtual HRESULT STDMETHODCALLTYPE Remove(LPDISPATCH Page/*[in]*/) = 0;

#if !defined(__TLB_NO_INTERFACE_WRAPPERS)

  long __fastcall get_Count(void)
  {
    long pVal;
    OLECHECK(this->get_Count((long*)&pVal));
    return pVal;
  }

  LPUNKNOWN __fastcall get__NewEnum(void)
  {
    LPUNKNOWN pVal;
    OLECHECK(this->get__NewEnum((LPUNKNOWN*)&pVal));
    return pVal;
  }

  LPDISPATCH __fastcall get_Item(long Index/*[in]*/)
  {
    LPDISPATCH pVal;
    OLECHECK(this->get_Item(Index, (LPDISPATCH*)&pVal));
    return pVal;
  }


  __property   long            Count = {read = get_Count};
  __property   LPUNKNOWN       _NewEnum = {read = get__NewEnum};

#endif //   __TLB_NO_INTERFACE_WRAPPERS

};

// *********************************************************************//
// Interface: IDocument
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {D4073843-A58A-469A-A8E2-CFF3FF77EE4E}
// *********************************************************************//
interface IDocument  : public IDispatch
{
public:
  // [2] method Save
  virtual HRESULT STDMETHODCALLTYPE Save(void) = 0;
  // [3] method Close
  virtual HRESULT STDMETHODCALLTYPE Close(VARIANT_BOOL SaveChanges/*[in,def,opt]*/) = 0;
  // [4] method SaveAs
  virtual HRESULT STDMETHODCALLTYPE SaveAs(BSTR FileName/*[in]*/, 
                                           Modi_tlb::MiFILE_FORMAT FileFormat/*[in,def,opt]*/, 
                                           Modi_tlb::MiCOMP_LEVEL CompLevel/*[in,def,opt]*/) = 0;
  // [5] property Images
  virtual HRESULT STDMETHODCALLTYPE get_Images(Modi_tlb::IImages** pVal/*[out,retval]*/) = 0;
  // [6] property BuiltInDocumentProperties
  virtual HRESULT STDMETHODCALLTYPE get_BuiltInDocumentProperties(LPDISPATCH* pVal/*[out,retval]*/) = 0;
  // [7] property CustomDocumentProperties
  virtual HRESULT STDMETHODCALLTYPE get_CustomDocumentProperties(LPDISPATCH* pVal/*[out,retval]*/) = 0;
  // [8] method Create
  virtual HRESULT STDMETHODCALLTYPE Create(BSTR FileOpen/*[in,def,opt]*/) = 0;
  // [9] property Dirty
  virtual HRESULT STDMETHODCALLTYPE get_Dirty(VARIANT_BOOL* pVal/*[out,retval]*/) = 0;
  // [10] method OCR
  virtual HRESULT STDMETHODCALLTYPE OCR(Modi_tlb::MiLANGUAGES LangId/*[in,def,opt]*/, 
                                        VARIANT_BOOL OCROrientImage/*[in,def,opt]*/, 
                                        VARIANT_BOOL OCRStraightenImage/*[in,def,opt]*/) = 0;
  // [11] method PrintOut
  virtual HRESULT STDMETHODCALLTYPE 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]*/) = 0;

#if !defined(__TLB_NO_INTERFACE_WRAPPERS)

  Modi_tlb::IImages* __fastcall get_Images(void)
  {
    Modi_tlb::IImages* pVal;
    OLECHECK(this->get_Images((Modi_tlb::IImages**)&pVal));
    return pVal;
  }

  LPDISPATCH __fastcall get_BuiltInDocumentProperties(void)
  {
    LPDISPATCH pVal;
    OLECHECK(this->get_BuiltInDocumentProperties((LPDISPATCH*)&pVal));
    return pVal;
  }

  LPDISPATCH __fastcall get_CustomDocumentProperties(void)
  {
    LPDISPATCH pVal;
    OLECHECK(this->get_CustomDocumentProperties((LPDISPATCH*)&pVal));
    return pVal;
  }

  VARIANT_BOOL __fastcall get_Dirty(void)
  {
    VARIANT_BOOL pVal;
    OLECHECK(this->get_Dirty((VARIANT_BOOL*)&pVal));
    return pVal;
  }


  __property   Modi_tlb::IImages* Images = {read = get_Images};
  __property   LPDISPATCH      BuiltInDocumentProperties = {read = get_BuiltInDocumentProperties};
  __property   LPDISPATCH      CustomDocumentProperties = {read = get_CustomDocumentProperties};
  __property   VARIANT_BOOL    Dirty = {read = get_Dirty};

#endif //   __TLB_NO_INTERFACE_WRAPPERS

};

// *********************************************************************//
// Interface: _IDocumentEvents
// Flags:     (4096) Dispatchable
// GUID:      {0CF31963-5E4D-4772-AE8D-82FE5A082B26}
// *********************************************************************//
interface _IDocumentEvents : public TDispWrapper<IDispatch>
{
  HRESULT __fastcall OnOCRProgress(int Progress/*[in]*/, VARIANT_BOOL* Cancel/*[in,out]*/)
  {
    _TDispID _dispid(/* OnOCRProgress */ DISPID(1));
    TAutoArgs<2> _args;
    _args[1] = Progress /*[VT_INT:0]*/;
    _args[2] = Cancel /*[VT_BOOL:1]*/;
    return OleFunction(_dispid, _args);
  }


};
// *********************************************************************//
// Interface: _IImageEvents
// Flags:     (4096) Dispatchable
// GUID:      {99F3A122-448F-4D36-8243-48BFE32D50B2}
// *********************************************************************//
interface _IImageEvents : public TDispWrapper<IDispatch>
{

};
// *********************************************************************//
// Interface: IMiSelectRect
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {EA280C3C-E4B7-42BF-ACC8-FE3AD3581638}
// *********************************************************************//
interface IMiSelectRect  : public IDispatch
{
public:
  // [1] property PageNumber
  virtual HRESULT STDMETHODCALLTYPE get_PageNumber(long* pVal/*[out,retval]*/) = 0;
  // [2] property Left
  virtual HRESULT STDMETHODCALLTYPE get_Left(long* pVal/*[out,retval]*/) = 0;
  // [3] property Top
  virtual HRESULT STDMETHODCALLTYPE get_Top(long* pVal/*[out,retval]*/) = 0;
  // [4] property Right
  virtual HRESULT STDMETHODCALLTYPE get_Right(long* pVal/*[out,retval]*/) = 0;
  // [5] property Bottom
  virtual HRESULT STDMETHODCALLTYPE get_Bottom(long* pVal/*[out,retval]*/) = 0;

#if !defined(__TLB_NO_INTERFACE_WRAPPERS)

  long __fastcall get_PageNumber(void)
  {
    long pVal;
    OLECHECK(this->get_PageNumber((long*)&pVal));
    return pVal;
  }

  long __fastcall get_Left(void)
  {
    long pVal;
    OLECHECK(this->get_Left((long*)&pVal));
    return pVal;
  }

  long __fastcall get_Top(void)
  {
    long pVal;
    OLECHECK(this->get_Top((long*)&pVal));
    return pVal;
  }

  long __fastcall get_Right(void)
  {
    long pVal;
    OLECHECK(this->get_Right((long*)&pVal));
    return pVal;
  }

  long __fastcall get_Bottom(void)
  {
    long pVal;
    OLECHECK(this->get_Bottom((long*)&pVal));
    return pVal;
  }


  __property   long            PageNumber = {read = get_PageNumber};
  __property   long            Left = {read = get_Left};
  __property   long            Top = {read = get_Top};
  __property   long            Right = {read = get_Right};
  __property   long            Bottom = {read = get_Bottom};

#endif //   __TLB_NO_INTERFACE_WRAPPERS

};

// *********************************************************************//
// Interface: IMiSelectRects

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -