home *** CD-ROM | disk | FTP | other *** search
/ Using Visual Basic 5 (Platinum Edition) / vb5.iso / ACTIVEX / SRDVID / DATA.Z / svdoc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-10  |  2.1 KB  |  75 lines

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. //    SVDoc.h : Interface of the CSVViewerDoc class
  4. //
  5. /////////////////////////////////////////////////////////////////////////////
  6. //
  7. //  (C) Copyright Black Diamond Consulting, Inc 1996. All rights reserved.
  8. //
  9. //    You have a royalty-free right to use, modify, reproduce and 
  10. //    distribute the Sample Files (and/or any modified version) in 
  11. //    any way you find useful, provided that you agree that Black 
  12. //    Diamond Consulting has no warranty obligations or liability
  13. //    for any Sample Application Files which are modified. 
  14. //
  15. //    Revision History:
  16. //
  17. /////////////////////////////////////////////////////////////////////////////
  18.  
  19. #define __SVDOC_H__
  20.  
  21. #ifndef _Surround_H_
  22.     #include "Surround.h"
  23. #endif
  24.  
  25. #ifndef __CHOTSPOT_H__
  26.     #include "CHotspot.h"
  27. #endif
  28.  
  29. class CSVViewerDoc : public CDocument
  30. {
  31. private:
  32.     ISurround*        m_pISurround;        // SV object
  33.     IStorage*        m_pIStorage;
  34.     CHotspotList    m_hotspots;            // Hotspot list
  35.  
  36. protected: // create from serialization only
  37.     CSVViewerDoc();
  38.     DECLARE_DYNCREATE(CSVViewerDoc)
  39.     BOOL IsOverwriteable( LPCTSTR pszPathName );
  40.     HRESULT OpenStorage( LPCTSTR pszPathName, LPSTORAGE* ppIStorage, BOOL bCreate );
  41.     CView* GetSVView(void);
  42.  
  43. public:    // Accessors
  44.     ISurround* GetISurround()        { return m_pISurround; }
  45.     CHotspotList* GetHotspotList()    { return &m_hotspots; }
  46.  
  47. public:    // Operations
  48.  
  49. // Overrides       
  50.     // ClassWizard generated virtual function overrides
  51.     //{{AFX_VIRTUAL(CSVViewerDoc)
  52.     public:
  53.     virtual void DeleteContents();
  54.     virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
  55.     virtual void OnCloseDocument();
  56.     virtual BOOL OnSaveDocument(LPCTSTR lpszPathName);
  57.     //}}AFX_VIRTUAL
  58.  
  59. // Implementation
  60. public:
  61. #ifdef _DEBUG
  62.     virtual void AssertValid() const;
  63.     virtual void Dump(CDumpContext& dc) const;
  64. #endif
  65.  
  66. protected:
  67. // Generated message map functions
  68.     //{{AFX_MSG(CSVViewerDoc)
  69.     //}}AFX_MSG
  70.     DECLARE_MESSAGE_MAP()
  71. };
  72.  
  73. ////////////////////////////////////////////////////////////////////////////
  74.  
  75.