home *** CD-ROM | disk | FTP | other *** search
/ C/C++ User's Journal & Wi…eveloper's Journal Tools / C-C__Users_Journal_and_Windows_Developers_Journal_Tools_1997.iso / stingray / browsdoc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-27  |  1.9 KB  |  81 lines

  1. // browsdoc.h : header file
  2. //
  3.  
  4. // This is a part of the Objective Grid C++ Library.
  5. // Copyright (C) 1995,1996 ClassWorks, Stefan Hoenig.
  6. // All rights reserved.
  7. //
  8. // This source code is only intended as a supplement to
  9. // the Objective Grid Classes Reference and related
  10. // electronic documentation provided with the library.
  11. // See these sources for detailed information regarding
  12. // the Objective Grid product.
  13. //
  14.  
  15. #ifndef _BROWSEDOC_H_
  16. #define _BROWSEDOC_H_
  17.  
  18. #ifndef _DBFILE_H_
  19. #include "dbfile.h"
  20. #endif
  21. #ifndef _GXPARAM_H_
  22. #include "gxcore.h"
  23. #endif
  24. #ifndef _GXSTYLES_H_
  25. #include "gxstyles.h"
  26. #endif
  27.  
  28. /////////////////////////////////////////////////////////////////////////////
  29. // CDBaseBrowserDoc document
  30.  
  31. class CDBaseBrowserDoc : public CDocument
  32. {
  33. protected:
  34.     CDBaseBrowserDoc();           // protected constructor used by dynamic creation
  35.     DECLARE_DYNCREATE(CDBaseBrowserDoc)
  36.  
  37. // Attributes
  38. public:
  39.     CDBaseFile m_dbfile;
  40.     CGXGridParam m_param;
  41.     CGXStylesMap m_stylesMap;
  42.     CGXProperties m_properties;
  43.     CGXMapDWordToLong m_columnIdMap;
  44.  
  45.     WORD m_wStyleNumeric,
  46.          m_wStyleText,
  47.          m_wStyleDate,
  48.          m_wStyleLogical;
  49.  
  50. // Operations
  51. public:
  52.  
  53. // Overrides
  54.     // ClassWizard generated virtual function overrides
  55.     //{{AFX_VIRTUAL(CDBaseBrowserDoc)
  56.     public:
  57.     virtual BOOL OnSaveDocument(LPCTSTR lpszPathName);
  58.     virtual BOOL CanCloseFrame(CFrameWnd* pFrame);
  59.     protected:
  60.     virtual BOOL OnNewDocument();
  61.     //}}AFX_VIRTUAL
  62.  
  63. // Implementation
  64. public:
  65.     virtual ~CDBaseBrowserDoc();
  66.     virtual void Serialize(CArchive& ar);   // overridden for document i/o
  67. #ifdef _DEBUG
  68.     virtual void AssertValid() const;
  69.     virtual void Dump(CDumpContext& dc) const;
  70. #endif
  71.  
  72.     // Generated message map functions
  73. protected:
  74.     //{{AFX_MSG(CDBaseBrowserDoc)
  75.         // NOTE - the ClassWizard will add and remove member functions here.
  76.     //}}AFX_MSG
  77.     DECLARE_MESSAGE_MAP()
  78. };
  79.  
  80. #endif // _BROWSEDOC_H_
  81.