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.

56 lines
942 B

  1. // DocWrap.h : Declaration of the CDocWrap
  2. #ifndef __DOCWRAP_H_
  3. #define __DOCWRAP_H_
  4. #include "resource.h" // main symbols
  5. /////////////////////////////////////////////////////////////////////////////
  6. // CDocWrap
  7. class IWrapMgr;
  8. class ATL_NO_VTABLE CDocWrap :
  9. public CComObjectRootEx<CComSingleThreadModel>,
  10. public CComCoClass<CDocWrap, &CLSID_DocWrap>,
  11. public IDocWrap
  12. {
  13. public:
  14. DECLARE_REGISTRY_RESOURCEID(IDR_DOCWRAP)
  15. DECLARE_PROTECT_FINAL_CONSTRUCT()
  16. BEGIN_COM_MAP(CDocWrap)
  17. COM_INTERFACE_ENTRY(IDocWrap)
  18. END_COM_MAP()
  19. CDocWrap();
  20. ~CDocWrap();
  21. // IDocWrap
  22. HRESULT STDMETHODCALLTYPE SetDoc (
  23. REFIID riid,
  24. IUnknown * punk
  25. );
  26. HRESULT STDMETHODCALLTYPE GetWrappedDoc (
  27. REFIID riid,
  28. IUnknown ** ppunk
  29. );
  30. private:
  31. IID m_iid;
  32. IUnknown * m_punkDoc;
  33. IWrapMgr * m_pWrapMgr;
  34. void _Clear();
  35. };
  36. #endif //__DOCWRAP_H_