OLEOBJ.H
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:2k
源码类别:

Windows编程

开发平台:

Visual C++

  1. /**************************************************************************
  2.    THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  3.    ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
  4.    THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  5.    PARTICULAR PURPOSE.
  6.    Copyright 1997 Microsoft Corporation.  All Rights Reserved.
  7. **************************************************************************/
  8. /**************************************************************************
  9.    File:          OleObj.h
  10.    
  11.    Description:   COleObject definitions.
  12. **************************************************************************/
  13. #ifndef OLEOBJECT_H
  14. #define OLEOBJECT_H
  15. /**************************************************************************
  16.    #include statements
  17. **************************************************************************/
  18. #include "DOServer.h"
  19. /**************************************************************************
  20.    COleObject class definition
  21. **************************************************************************/
  22. class COleDocument;
  23. class COleObject : public IOleObject
  24. {
  25. private:
  26. COleDocument   *m_pOleDoc;
  27. BOOL           m_fOpen;
  28. public:
  29. COleObject::COleObject(COleDocument *pOleDoc);
  30. COleObject::~COleObject();
  31.    
  32. //IUnknown methods
  33. STDMETHODIMP QueryInterface(REFIID, LPVOID*);
  34. STDMETHODIMP_(ULONG) AddRef();
  35. STDMETHODIMP_(ULONG) Release();
  36. //IOleObject methods
  37. STDMETHODIMP SetClientSite(LPOLECLIENTSITE);
  38. STDMETHODIMP Advise(LPADVISESINK, LPDWORD);
  39. STDMETHODIMP SetHostNames(LPCOLESTR, LPCOLESTR);
  40. STDMETHODIMP DoVerb(LONG, LPMSG, LPOLECLIENTSITE, LONG, HWND, LPCRECT);
  41. STDMETHODIMP GetExtent(DWORD, LPSIZEL);
  42. STDMETHODIMP Update();
  43. STDMETHODIMP Close(DWORD);
  44. STDMETHODIMP Unadvise(DWORD);
  45. STDMETHODIMP EnumVerbs(LPENUMOLEVERB*);
  46. STDMETHODIMP GetClientSite(LPOLECLIENTSITE*);
  47. STDMETHODIMP SetMoniker(DWORD, LPMONIKER);
  48. STDMETHODIMP GetMoniker(DWORD, DWORD, LPMONIKER*);
  49. STDMETHODIMP InitFromData(LPDATAOBJECT, BOOL, DWORD);
  50. STDMETHODIMP GetClipboardData(DWORD, LPDATAOBJECT*);
  51. STDMETHODIMP IsUpToDate();
  52. STDMETHODIMP GetUserClassID(CLSID*);
  53. STDMETHODIMP GetUserType(DWORD, LPOLESTR*);
  54. STDMETHODIMP SetExtent(DWORD, LPSIZEL);
  55. STDMETHODIMP EnumAdvise(LPENUMSTATDATA*);
  56. STDMETHODIMP GetMiscStatus(DWORD, LPDWORD);
  57. STDMETHODIMP SetColorScheme(LPLOGPALETTE);
  58. };
  59. #endif   //OLEOBJECT_H