home *** CD-ROM | disk | FTP | other *** search
/ Using Visual C++ 4 (Special Edition) / Using_Visual_C_4_Special_Edition_QUE_1996.iso / ch08 / oserver / oserve~1.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-09-22  |  1.2 KB  |  51 lines

  1. // OServerDoc.h : interface of the COServerDoc class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class COServerSrvrItem;
  6.  
  7. class COServerDoc : public COleServerDoc
  8. {
  9. protected: // create from serialization only
  10.     COServerDoc();
  11.     DECLARE_DYNCREATE(COServerDoc)
  12.  
  13. // Attributes
  14. public:
  15.     COServerSrvrItem* GetEmbeddedItem()
  16.         { return (COServerSrvrItem*)COleServerDoc::GetEmbeddedItem(); }
  17.  
  18. // Operations
  19. public:
  20.  
  21. // Overrides
  22.     // ClassWizard generated virtual function overrides
  23.     //{{AFX_VIRTUAL(COServerDoc)
  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 ~COServerDoc();
  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(COServerDoc)
  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.  
  50. /////////////////////////////////////////////////////////////////////////////
  51.