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

  1. // mygridvw.h : interface of the CMyGridView class
  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.  
  16. #ifndef _MYGRIDVW_H_
  17. #define _MYGRIDVW_H_
  18.  
  19. #ifndef _GXRESRC_H_
  20. #include "gxresrc.h"
  21. #endif
  22.  
  23. #ifndef _GXVW_H_
  24. #include "gxvw.h"
  25. #endif
  26.  
  27. #ifndef _GXCTRL_H_
  28. #include "gxctrl.h"
  29. #endif
  30.  
  31. #ifndef _GXEXT_H_
  32. #include "gxext.h"
  33. #endif
  34.  
  35. #ifndef _GXRTF_H_
  36. #include "gxrtf.h"
  37. #endif
  38.  
  39. #ifndef _GXOLE_H_
  40. #include "gxole.h"
  41. #endif
  42.  
  43. class CMyGridView : public CGXGridView
  44. {
  45. protected: // create from serialization only
  46.     CMyGridView();
  47.     DECLARE_DYNCREATE(CMyGridView)
  48.  
  49. // Attributes
  50. public:
  51. #if _MFC_VER >= 0x0400
  52.     CGXGridDropTarget m_objDndDropTarget;
  53. #endif
  54.  
  55. // Operations
  56. public:
  57.     BOOL NeedStyle(const CGXStyle& styleNeeded, BOOL& bRet);
  58.     void SetStyle(const CGXStyle& style, GXModifyType mt = gxOverride);
  59.     void SetStyle(const CGXStyle* pStyle, GXModifyType mt, BOOL bExpandRange = FALSE);
  60.  
  61. // Overrides
  62.     // virtual CGXStyle* CreateStyle();
  63.     // ClassWizard generated virtual function overrides
  64.     //{{AFX_VIRTUAL(CMyGridView)
  65.     virtual void OnInitialUpdate();
  66.     //}}AFX_VIRTUAL
  67.  
  68. // Implementation
  69. public:
  70.     virtual ~CMyGridView();
  71. #ifdef _DEBUG
  72.     virtual void AssertValid() const;
  73.     virtual void Dump(CDumpContext& dc) const;
  74. #endif
  75.  
  76. protected:
  77.  
  78. // Generated message map functions
  79. protected:
  80.     //{{AFX_MSG(CMyGridView)
  81.     afx_msg void OnFileHeaderfooter();
  82.     afx_msg void OnFilePageSetup();
  83.     afx_msg void OnEditInsertcol();
  84.     afx_msg void OnEditInsertrow();
  85.     afx_msg void OnEditRemovecols();
  86.     afx_msg void OnEditRemoverows();
  87.     afx_msg void OnView100();
  88.     afx_msg void OnViewProperties();
  89.     afx_msg void OnViewReadonly();
  90.     afx_msg void OnViewZoomin();
  91.     afx_msg void OnViewZoomout();
  92.     afx_msg void OnFormatAlignCenter();
  93.     afx_msg void OnFormatAlignLeft();
  94.     afx_msg void OnFormatAlignRight();
  95.     afx_msg void OnFormatCells();
  96.     afx_msg void OnFormatCovercells();
  97.     afx_msg void OnFormatFreezecols();
  98.     afx_msg void OnFormatFreezerows();
  99.     afx_msg void OnFormatLookup();
  100.     afx_msg void OnFormatRemovecover();
  101.     afx_msg void OnFormatStyleBold();
  102.     afx_msg void OnFormatStyleItalic();
  103.     afx_msg void OnFormatStyleUnderline();
  104.     afx_msg void OnFormatStyles();
  105.     afx_msg void OnFormatUnfreezecols();
  106.     afx_msg void OnFormatUnfreezerows();
  107.     afx_msg void OnUpdateEditRemovecols(CCmdUI* pCmdUI);
  108.     afx_msg void OnUpdateEditRemoverows(CCmdUI* pCmdUI);
  109.     afx_msg void OnUpdateFormatAlignCenter(CCmdUI* pCmdUI);
  110.     afx_msg void OnUpdateFormatAlignLeft(CCmdUI* pCmdUI);
  111.     afx_msg void OnUpdateFormatAlignRight(CCmdUI* pCmdUI);
  112.     afx_msg void OnUpdateFormatCells(CCmdUI* pCmdUI);
  113.     afx_msg void OnUpdateFormatCovercells(CCmdUI* pCmdUI);
  114.     afx_msg void OnUpdateFormatFreezecols(CCmdUI* pCmdUI);
  115.     afx_msg void OnUpdateFormatFreezerows(CCmdUI* pCmdUI);
  116.     afx_msg void OnUpdateFormatLookup(CCmdUI* pCmdUI);
  117.     afx_msg void OnUpdateFormatRemovecover(CCmdUI* pCmdUI);
  118.     afx_msg void OnUpdateFormatStyleBold(CCmdUI* pCmdUI);
  119.     afx_msg void OnUpdateFormatStyleItalic(CCmdUI* pCmdUI);
  120.     afx_msg void OnUpdateFormatStyleUnderline(CCmdUI* pCmdUI);
  121.     afx_msg void OnUpdateFormatUnfreezecols(CCmdUI* pCmdUI);
  122.     afx_msg void OnUpdateFormatUnfreezerows(CCmdUI* pCmdUI);
  123.     afx_msg void OnUpdateViewReadonly(CCmdUI* pCmdUI);
  124.     afx_msg void OnUpdateViewZoomin(CCmdUI* pCmdUI);
  125.     afx_msg void OnUpdateViewZoomout(CCmdUI* pCmdUI);
  126.     afx_msg void OnEditClear();
  127.     afx_msg void OnUpdateEditClear(CCmdUI* pCmdUI);
  128.     afx_msg void OnUpdateFileSave(CCmdUI* pCmdUI);
  129.     afx_msg void OnFormatResizecols();
  130.     afx_msg void OnUpdateFormatResizecols(CCmdUI* pCmdUI);
  131.     afx_msg void OnFormatResizerows();
  132.     afx_msg void OnUpdateFormatResizerows(CCmdUI* pCmdUI);
  133.     afx_msg void OnViewWysiwig();
  134.     afx_msg void OnUpdateViewWysiwig(CCmdUI* pCmdUI);
  135.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  136.     //}}AFX_MSG
  137.     DECLARE_MESSAGE_MAP()
  138. };
  139.  
  140. /////////////////////////////////////////////////////////////////////////////
  141.  
  142.  
  143. #endif // _MYGRIDVW_H_
  144.