home *** CD-ROM | disk | FTP | other *** search
/ ftp.funduc.com / 2014.08.ftp.funduc.com.tar / ftp.funduc.com / fshedcode-072212.zip / fshedDoc.h < prev    next >
C/C++ Source or Header  |  2010-09-13  |  3KB  |  85 lines

  1. /////////////////////////////////////////////////////////////////////////////
  2. //    License (GPLv2+):
  3. //    This program is free software; you can redistribute it and/or modify
  4. //    it under the terms of the GNU General Public License as published by
  5. //    the Free Software Foundation; either version 2 of the License, or
  6. //    (at your option) any later version.
  7. //
  8. //    This program is distributed in the hope that it will be useful, but
  9. //    WITHOUT ANY WARRANTY; without even the implied warranty of
  10. //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  11. //    General Public License for more details.
  12. //
  13. //    You should have received a copy of the GNU General Public License
  14. //    along with this program; if not, write to the Free Software
  15. //    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. /////////////////////////////////////////////////////////////////////////////
  17.  
  18. // fshedDoc.h : interface of the CFshedDoc class
  19. //
  20. /////////////////////////////////////////////////////////////////////////////
  21.  
  22. #if !defined(AFX_FSHEDDOC_H__BD87E551_34CD_11D5_B4F0_00B0D0719D70__INCLUDED_)
  23. #define AFX_FSHEDDOC_H__BD87E551_34CD_11D5_B4F0_00B0D0719D70__INCLUDED_
  24.  
  25. #if _MSC_VER > 1000
  26. #pragma once
  27. #endif // _MSC_VER > 1000
  28.  
  29. #include "simparr.h"
  30.  
  31. class CFshedDoc : public CDocument
  32. {
  33. protected: // create from serialization only
  34.     CFshedDoc();
  35.     DECLARE_DYNCREATE(CFshedDoc)
  36.  
  37. // Attributes
  38. public:
  39.  
  40. // Operations
  41. public:
  42.  
  43. // Overrides
  44.     // ClassWizard generated virtual function overrides
  45.     //{{AFX_VIRTUAL(CFshedDoc)
  46.     public:
  47.     virtual BOOL OnNewDocument();
  48.     virtual void Serialize(CArchive& ar);
  49.     virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
  50.     virtual BOOL OnSaveDocument(LPCTSTR lpszPathName);
  51.     //}}AFX_VIRTUAL
  52.  
  53.     int load_file (LPCTSTR fname);
  54.     int file_is_loadable (LPCTSTR fname);
  55.     int bReadOnly;
  56.     SimpleArray<unsigned char> DataArray;
  57.     TCHAR *filename;
  58.     int bFileNeverSaved, bPartialOpen;
  59.     int bFilestatusChanged;
  60.     int iPartialOffset;
  61.  
  62. // Implementation
  63. public:
  64.     virtual ~CFshedDoc();
  65. #ifdef _DEBUG
  66.     virtual void AssertValid() const;
  67.     virtual void Dump(CDumpContext& dc) const;
  68. #endif
  69.  
  70. protected:
  71.  
  72. // Generated message map functions
  73. protected:
  74.     //{{AFX_MSG(CFshedDoc)
  75.     //}}AFX_MSG
  76.     DECLARE_MESSAGE_MAP()
  77. };
  78.  
  79. /////////////////////////////////////////////////////////////////////////////
  80.  
  81. //{{AFX_INSERT_LOCATION}}
  82. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  83.  
  84. #endif // !defined(AFX_FSHEDDOC_H__BD87E551_34CD_11D5_B4F0_00B0D0719D70__INCLUDED_)
  85.