Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

121 lines
2.9 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corporation, 1997 - 1999 **/
  4. /**********************************************************************/
  5. /*
  6. Servpp.h
  7. Server properties header file
  8. FILE HISTORY:
  9. */
  10. #if !defined(AFX_SERVPP_H__037BF46A_6E87_11D1_93B6_00C04FC3358A__INCLUDED_)
  11. #define AFX_SERVPP_H__037BF46A_6E87_11D1_93B6_00C04FC3358A__INCLUDED_
  12. #ifndef _SPDDB_H
  13. #include "spddb.h"
  14. #endif
  15. #if _MSC_VER >= 1000
  16. #pragma once
  17. #endif // _MSC_VER >= 1000
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CFilterGenProp dialog
  20. class CFilterGenProp : public CPropertyPageBase
  21. {
  22. DECLARE_DYNCREATE(CFilterGenProp)
  23. // Construction
  24. public:
  25. CFilterGenProp();
  26. ~CFilterGenProp();
  27. // Dialog Data
  28. //{{AFX_DATA(CFilterGenProp)
  29. enum { IDD = IDP_FILTER_GENERAL };
  30. CListCtrl m_listSpecificFilters;
  31. //}}AFX_DATA
  32. virtual BOOL OnPropertyChange(BOOL bScope, LONG_PTR *ChangeMask);
  33. // Context Help Support
  34. virtual DWORD * GetHelpMap() { return (DWORD *) &g_aHelpIDs_IDP_FILTER_GENERAL[0]; }
  35. // Overrides
  36. // ClassWizard generate virtual function overrides
  37. //{{AFX_VIRTUAL(CFilterGenProp)
  38. public:
  39. virtual BOOL OnApply();
  40. protected:
  41. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  42. //}}AFX_VIRTUAL
  43. // Implementation
  44. protected:
  45. // Generated message map functions
  46. //{{AFX_MSG(CFilterGenProp)
  47. virtual BOOL OnInitDialog();
  48. //}}AFX_MSG
  49. DECLARE_MESSAGE_MAP()
  50. void LoadSpecificFilters();
  51. void PopulateFilterInfo();
  52. };
  53. class CFilterProperties : public CPropertyPageHolderBase
  54. {
  55. friend class CFilterGenProp;
  56. public:
  57. CFilterProperties(ITFSNode * pNode,
  58. IComponentData * pComponentData,
  59. ITFSComponentData * pTFSCompData,
  60. CFilterInfo * pFltrInfo,
  61. ISpdInfo * pSpdInfo,
  62. LPCTSTR pszSheetName);
  63. virtual ~CFilterProperties();
  64. ITFSComponentData * GetTFSCompData()
  65. {
  66. if (m_spTFSCompData)
  67. m_spTFSCompData->AddRef();
  68. return m_spTFSCompData;
  69. }
  70. HRESULT GetFilterInfo(CFilterInfo **ppFltrInfo)
  71. {
  72. Assert(ppFltrInfo);
  73. *ppFltrInfo = &m_FltrInfo;
  74. return hrOK;
  75. }
  76. HRESULT GetSpdInfo(ISpdInfo ** ppSpdInfo)
  77. {
  78. Assert(ppSpdInfo);
  79. *ppSpdInfo = NULL;
  80. SetI((LPUNKNOWN *) ppSpdInfo, m_spSpdInfo);
  81. return hrOK;
  82. }
  83. public:
  84. CFilterGenProp m_pageGeneral;
  85. protected:
  86. SPITFSComponentData m_spTFSCompData;
  87. CFilterInfo m_FltrInfo;
  88. SPISpdInfo m_spSpdInfo;
  89. BOOL m_fSpdInfoLoaded;
  90. };
  91. #endif // !defined(AFX_SERVPP_H__037BF46A_6E87_11D1_93B6_00C04FC3357A__INCLUDED_)