pluginst.hxx
Upload User: caisha3
Upload Date: 2013-09-21
Package Size: 208739k
Code Size: 2k
Category:

Windows Develop

Development Platform:

Visual C++

  1. //+---------------------------------------------------------------------------
  2. //
  3. //  Microsoft Forms
  4. //  Copyright (C) Microsoft Corporation, 1994-1996
  5. //
  6. //  File:       pluginst.hxx
  7. //
  8. //  Contents:   CPluginSite
  9. //
  10. //  This class encapsulates a Netscape Plugin element.  It works very much
  11. //  like the COleSite stuff, but happens to know exactly what the classID
  12. //  of the ocx is and a few other custom behaviors in its dealing with the
  13. //  plugin.ocx.  The plugin.ocx is an ActiveX control which actually loads
  14. //  and communicates with the plugin code according to the Netscape plugin
  15. //  architecture.
  16. //
  17. //----------------------------------------------------------------------------
  18. #ifndef I_PLUGINST_HXX_
  19. #define I_PLUGINST_HXX_
  20. #pragma INCMSG("--- Beg 'pluginst.hxx'")
  21. #ifndef X_OLESITE_HXX_
  22. #define X_OLESITE_HXX_
  23. #include "olesite.hxx"
  24. #endif
  25. #define _hxx_
  26. #include "pluginst.hdl"
  27. MtExtern(CPluginSite)
  28. //+---------------------------------------------------------------------------
  29. //
  30. // CPluginSite
  31. //
  32. //----------------------------------------------------------------------------
  33. class CPluginSite : public COleSite
  34. {
  35.     DECLARE_CLASS_TYPES(CPluginSite, COleSite)
  36. public:
  37.     DECLARE_MEMCLEAR_NEW_DELETE(Mt(CPluginSite))
  38.     CPluginSite (CDoc *pDoc)
  39.       : super(ETAG_EMBED, pDoc) {}
  40.     //
  41.     // CElement/CSite overrides.
  42.     //
  43.     
  44.     static  HRESULT CreateElement(CHtmTag *pht,
  45.                               CDoc *pDoc, CElement **ppElementResult);
  46.     virtual HRESULT Save(CStreamWriteBuff * pStreamWrBuff, BOOL fEnd);
  47.     //
  48.     // Misc. helpers.
  49.     //
  50.     HRESULT CreateObject();
  51.     virtual void Passivate();
  52.     virtual HRESULT OnPropertyChange(DISPID dispid, DWORD dwFlags);
  53.     virtual HRESULT PostLoad();
  54.     
  55.     #define _CPluginSite_
  56.     #include "pluginst.hdl"
  57. protected:
  58.     DECLARE_CLASSDESC_MEMBERS;
  59. private:
  60.     LPTSTR      _pszFullUrl;
  61.     BOOL        _fUsingActiveXControl;
  62.     NO_COPY(CPluginSite);
  63. };
  64. #pragma INCMSG("--- End 'pluginst.hxx'")
  65. #else
  66. #pragma INCMSG("*** Dup 'pluginst.hxx'")
  67. #endif