XTPSyntaxEditPropertiesDlg.cpp
上传用户:szled88
上传日期:2015-04-09
资源大小:43957k
文件大小:3k
源码类别:

对话框与窗口

开发平台:

Visual C++

  1. // XTPSyntaxEditPropertiesDlg.cpp : implementation file
  2. //
  3. // This file is a part of the XTREME TOOLKIT PRO MFC class library.
  4. // (c)1998-2008 Codejock Software, All Rights Reserved.
  5. //
  6. // THIS SOURCE FILE IS THE PROPERTY OF CODEJOCK SOFTWARE AND IS NOT TO BE
  7. // RE-DISTRIBUTED BY ANY MEANS WHATSOEVER WITHOUT THE EXPRESSED WRITTEN
  8. // CONSENT OF CODEJOCK SOFTWARE.
  9. //
  10. // THIS SOURCE CODE CAN ONLY BE USED UNDER THE TERMS AND CONDITIONS OUTLINED
  11. // IN THE XTREME SYNTAX EDIT LICENSE AGREEMENT. CODEJOCK SOFTWARE GRANTS TO
  12. // YOU (ONE SOFTWARE DEVELOPER) THE LIMITED RIGHT TO USE THIS SOFTWARE ON A
  13. // SINGLE COMPUTER.
  14. //
  15. // CONTACT INFORMATION:
  16. // support@codejock.com
  17. // http://www.codejock.com
  18. //
  19. /////////////////////////////////////////////////////////////////////////////
  20. #include "stdafx.h"
  21. #include "Resource.h"
  22. // common includes
  23. #include "Common/XTPNotifyConnection.h"
  24. #include "Common/XTPSmartPtrInternalT.h"
  25. #include "Common/XTPResourceManager.h"
  26. // syntax editor includes
  27. #include "XTPSyntaxEditDefines.h"
  28. #include "XTPSyntaxEditStruct.h"
  29. #include "XTPSyntaxEditLexPtrs.h"
  30. #include "XTPSyntaxEditLexClassSubObjT.h"
  31. #include "XTPSyntaxEditTextIterator.h"
  32. #include "XTPSyntaxEditSectionManager.h"
  33. #include "XTPSyntaxEditLexCfgFileReader.h"
  34. #include "XTPSyntaxEditLexClassSubObjDef.h"
  35. #include "XTPSyntaxEditLexClass.h"
  36. #include "XTPSyntaxEditLexParser.h"
  37. #include "XTPSyntaxEditCtrl.h"
  38. #include "XTPSyntaxEditColorSampleText.h"
  39. #include "XTPSyntaxEditColorComboBox.h"
  40. #include "XTPSyntaxEditPropertiesPage.h"
  41. #include "XTPSyntaxEditPropertiesDlg.h"
  42. #ifdef _DEBUG
  43. #undef THIS_FILE
  44. static char BASED_CODE THIS_FILE[] = __FILE__;
  45. #endif
  46. /////////////////////////////////////////////////////////////////////////////
  47. // CXTPSyntaxEditPropertiesDlg
  48. IMPLEMENT_DYNAMIC(CXTPSyntaxEditPropertiesDlg, CPropertySheet)
  49. CXTPSyntaxEditPropertiesDlg::CXTPSyntaxEditPropertiesDlg(CXTPSyntaxEditView* pEditView/*=NULL*/)
  50. : CPropertySheet(XTPResourceManager()->LoadString(XTP_IDD_EDIT_OPTIONS), (CWnd*)pEditView)
  51. , m_Page1(pEditView)
  52. , m_Page2(pEditView)
  53. , m_Page3(pEditView)
  54. {
  55. // Add all of the property pages here.  Note that
  56. // the order that they appear in here will be
  57. // the order they appear in on screen.  By default,
  58. // the first page of the set is the active one.
  59. // One way to make a different property page the
  60. // active one is to call SetActivePage().
  61. AddPage(&m_Page1);
  62. AddPage(&m_Page2);
  63. AddPage(&m_Page3);
  64. }
  65. CXTPSyntaxEditPropertiesDlg::~CXTPSyntaxEditPropertiesDlg()
  66. {
  67. }
  68. BEGIN_MESSAGE_MAP(CXTPSyntaxEditPropertiesDlg, CPropertySheet)
  69. //{{AFX_MSG_MAP(CXTPSyntaxEditPropertiesDlg)
  70. // NOTE - the ClassWizard will add and remove mapping macros here.
  71. //}}AFX_MSG_MAP
  72. END_MESSAGE_MAP()
  73. /////////////////////////////////////////////////////////////////////////////
  74. // CXTPSyntaxEditPropertiesDlg message handlers