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 / browsevw.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-27  |  2.2 KB  |  80 lines

  1. // browsevw.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 _BROWSEVW_H_
  16. #define _BROWSEVW_H_
  17.  
  18. #ifndef _MYGRIDVW_H_
  19. #include "mygridvw.h"
  20. #endif
  21. #ifndef _BROWSDOC_H_
  22. #include "browsdoc.h"
  23. #endif
  24.  
  25. /////////////////////////////////////////////////////////////////////////////
  26. // CDBaseBrowserView view
  27.  
  28. class CDBaseBrowserView : public CMyGridView
  29. {
  30. protected:
  31.     CDBaseBrowserView();           // protected constructor used by dynamic creation
  32.     DECLARE_DYNCREATE(CDBaseBrowserView)
  33.  
  34. // Attributes
  35. public:
  36.     CDBaseBrowserDoc* GetDocument()
  37.         { ASSERT_VALID(m_pDocument); return (CDBaseBrowserDoc*) m_pDocument; }
  38.  
  39.     CField* GetField(ROWCOL nCol);
  40.     int GetFieldId(ROWCOL nCol);
  41.  
  42. // Operations
  43. public:
  44.     virtual ROWCOL GetRowCount();
  45.     virtual ROWCOL GetColCount();
  46.  
  47.     virtual BOOL   GetStyleRowCol(ROWCOL nRow, ROWCOL nCol, CGXStyle& style, GXModifyType mt, int nType = 0);
  48.     virtual BOOL   StoreStyleRowCol(ROWCOL nRow, ROWCOL nCol, const CGXStyle* pStyle, GXModifyType mt, int nType);
  49.  
  50.     virtual int   GetColWidth(ROWCOL nCol);
  51.     virtual BOOL   StoreColWidth(ROWCOL nCol, int nWidth = 0);
  52.  
  53.     virtual BOOL   StoreMoveCols(ROWCOL nFromCol, ROWCOL nToCol, ROWCOL nDestCol, BOOL bProcessed = FALSE);
  54.  
  55. // Overrides
  56.     // ClassWizard generated virtual function overrides
  57.     //{{AFX_VIRTUAL(CDBaseBrowserView)
  58.     public:
  59.     virtual void OnInitialUpdate();
  60.     //}}AFX_VIRTUAL
  61.  
  62. // Implementation
  63. protected:
  64.     virtual ~CDBaseBrowserView();
  65. #ifdef _DEBUG
  66.     virtual void AssertValid() const;
  67.     virtual void Dump(CDumpContext& dc) const;
  68. #endif
  69.  
  70.     // Generated message map functions
  71. protected:
  72.     //{{AFX_MSG(CDBaseBrowserView)
  73.         // NOTE - the ClassWizard will add and remove member functions here.
  74.     //}}AFX_MSG
  75.     DECLARE_MESSAGE_MAP()
  76. };
  77.  
  78. /////////////////////////////////////////////////////////////////////////////
  79. #endif // _BROWSEVW_H_
  80.