home *** CD-ROM | disk | FTP | other *** search
/ ActiveX Programming Unleashed CD / AXU.iso / source / chap04 / lst42 / lst42doc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-26  |  1.4 KB  |  58 lines

  1. // lst42Doc.h : interface of the CLst42Doc class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CLst42SrvrItem;
  6.  
  7. class CLst42Doc : public COleServerDoc
  8. {
  9. protected: // create from serialization only
  10.     CLst42Doc();
  11.     DECLARE_DYNCREATE(CLst42Doc)
  12.  
  13. // Attributes
  14. public:
  15.     CLst42SrvrItem* GetEmbeddedItem()
  16.         { return (CLst42SrvrItem*)COleServerDoc::GetEmbeddedItem(); }
  17.  
  18. // Operations
  19. public:
  20.  
  21. // Overrides
  22.     // ClassWizard generated virtual function overrides
  23.     //{{AFX_VIRTUAL(CLst42Doc)
  24.     protected:
  25.     virtual COleServerItem* OnGetEmbeddedItem();
  26.     public:
  27.     virtual BOOL OnNewDocument();
  28.     virtual void Serialize(CArchive& ar);
  29.     //}}AFX_VIRTUAL
  30.  
  31. // Implementation
  32. public:
  33.     virtual ~CLst42Doc();
  34. #ifdef _DEBUG
  35.     virtual void AssertValid() const;
  36.     virtual void Dump(CDumpContext& dc) const;
  37. #endif
  38.  
  39. protected:
  40.  
  41. // Generated message map functions
  42. protected:
  43.     //{{AFX_MSG(CLst42Doc)
  44.         // NOTE - the ClassWizard will add and remove member functions here.
  45.         //    DO NOT EDIT what you see in these blocks of generated code !
  46.     //}}AFX_MSG
  47.     DECLARE_MESSAGE_MAP()
  48.  
  49.     // Generated OLE dispatch map functions
  50.     //{{AFX_DISPATCH(CLst42Doc)
  51.     afx_msg BSTR GetMachineName();
  52.     //}}AFX_DISPATCH
  53.     DECLARE_DISPATCH_MAP()
  54.     DECLARE_INTERFACE_MAP()
  55. };
  56.  
  57. /////////////////////////////////////////////////////////////////////////////
  58.