Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
2.1 KiB

  1. //+----------------------------------------------------------------------------
  2. //
  3. // File:
  4. // olepres.h
  5. //
  6. // Contents:
  7. // IOlePresObj declaration
  8. //
  9. // Classes:
  10. //
  11. // Functions:
  12. //
  13. // History:
  14. // 01-Jan-95 t-ScottH add Dump method to the interface (_DEBUG only)
  15. // 11/11/93 - ChrisWe - fix type qualifier problems on
  16. // IOlePresObj::Draw; replace define of LPOLEPRESOBJECT
  17. // with a typedef
  18. // 11/10/93 - ChrisWe - file inspection and cleanup
  19. //
  20. //-----------------------------------------------------------------------------
  21. #ifndef _OLEPRES_H_
  22. #define _OLEPRES_H_
  23. #undef INTERFACE
  24. #define INTERFACE IOlePresObj
  25. #ifdef MAC_REVIEW
  26. Does this need to be made A5 aware?
  27. #endif
  28. DECLARE_INTERFACE_(IOlePresObj, IUnknown)
  29. {
  30. // *** IUnknown methods ***
  31. STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE;
  32. STDMETHOD_(ULONG,AddRef) (THIS) PURE;
  33. STDMETHOD_(ULONG,Release) (THIS) PURE;
  34. // *** IOlePresObj methods ***
  35. // NOTE: these methods match similarly named methods in IDataObject,
  36. // IViewObject and IOleObject
  37. STDMETHOD(GetData)(THIS_ LPFORMATETC pformatetcIn,
  38. LPSTGMEDIUM pmedium ) PURE;
  39. STDMETHOD(GetDataHere)(THIS_ LPFORMATETC pformatetcIn,
  40. LPSTGMEDIUM pmedium ) PURE;
  41. STDMETHOD(SetDataWDO)(THIS_ LPFORMATETC pformatetc,
  42. STGMEDIUM FAR * pmedium, BOOL fRelease, IDataObject * pdo) PURE;
  43. STDMETHOD(Draw)(THIS_ void FAR* pvAspect, HDC hicTargetDev,
  44. HDC hdcDraw, LPCRECTL lprcBounds,
  45. LPCRECTL lprcWBounds,
  46. BOOL (CALLBACK * pfnContinue)(ULONG_PTR),
  47. ULONG_PTR dwContinue) PURE;
  48. STDMETHOD(GetExtent)(THIS_ DWORD dwAspect, LPSIZEL lpsizel) PURE;
  49. STDMETHOD(Load)(THIS_ LPSTREAM pstm, BOOL fReadHeaderOnly) PURE;
  50. STDMETHOD(Save)(THIS_ LPSTREAM pstm) PURE;
  51. STDMETHOD(GetColorSet)(THIS_ void FAR* pvAspect,
  52. HDC hicTargetDev,
  53. LPLOGPALETTE FAR* ppColorSet) PURE;
  54. STDMETHOD_(BOOL, IsBlank)(THIS) PURE;
  55. STDMETHOD_(void, DiscardHPRES)(THIS) PURE;
  56. #ifdef _DEBUG
  57. STDMETHOD(Dump)(THIS_ char **ppszDumpOA, ULONG ulFlag, int nIndentLevel) PURE;
  58. #endif // _DEBUG
  59. };
  60. typedef IOlePresObj FAR *LPOLEPRESOBJECT;
  61. #endif //_OLEPRES_H_
  62.