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.

205 lines
4.9 KiB

  1. //============================================================================
  2. // Copyright (C) Microsoft Corporation, 1997 - 1999
  3. //
  4. // File: sapprop.h
  5. //
  6. // History:
  7. // 07/22/97 Kenn M. Takara Created.
  8. //
  9. // IP Summary property sheet and property pages
  10. //
  11. //============================================================================
  12. #ifndef _SAPPROP_H
  13. #define _SAPPROP_H
  14. #ifndef _INFO_H
  15. #include "info.h"
  16. #endif
  17. #ifndef _RTRSHEET_H
  18. #include "rtrsheet.h"
  19. #endif
  20. #ifndef __IPCTRL_H
  21. #include "ipctrl.h"
  22. #endif
  23. /*---------------------------------------------------------------------------
  24. Forward declarations
  25. ---------------------------------------------------------------------------*/
  26. class IPXConnection;
  27. class SapProperties;
  28. class SapInterfaceProperties;
  29. /*---------------------------------------------------------------------------
  30. Class: SapPageGeneral
  31. This class handles the General page of the Sap sheet.
  32. ---------------------------------------------------------------------------*/
  33. class SapPageGeneral :
  34. public RtrPropertyPage
  35. {
  36. public:
  37. SapPageGeneral(UINT nIDTemplate, UINT nIDCaption = 0)
  38. : RtrPropertyPage(nIDTemplate, nIDCaption)
  39. {};
  40. HRESULT Init(SapProperties * pIPPropSheet);
  41. protected:
  42. // Override the OnApply() so that we can grab our data from the
  43. // controls in the dialog.
  44. virtual BOOL OnApply();
  45. SapProperties * m_pSapPropSheet;
  46. void SetErrorLevelButtons(DWORD dwErrorLevel);
  47. DWORD QueryErrorLevelButtons();
  48. //{{AFX_VIRTUAL(SapPageGeneral)
  49. protected:
  50. virtual VOID DoDataExchange(CDataExchange *pDX);
  51. //}}AFX_VIRTUAL
  52. //{{AFX_MSG(SapPageGeneral)
  53. virtual BOOL OnInitDialog();
  54. afx_msg void OnButtonClicked();
  55. //}}AFX_MSG
  56. DECLARE_MESSAGE_MAP()
  57. };
  58. /*---------------------------------------------------------------------------
  59. Class: SapProperties
  60. This is the property sheet support class for the properties page of
  61. the Sap node.
  62. ---------------------------------------------------------------------------*/
  63. class SapProperties :
  64. public RtrPropertySheet
  65. {
  66. public:
  67. SapProperties(ITFSNode *pNode,
  68. IComponentData *pComponentData,
  69. ITFSComponentData *pTFSCompData,
  70. LPCTSTR pszSheetName,
  71. CWnd *pParent = NULL,
  72. UINT iPage=0,
  73. BOOL fScopePane = TRUE);
  74. HRESULT Init(IRtrMgrInfo *pRm);
  75. virtual BOOL SaveSheetData();
  76. // Loads the infobase for this interface.
  77. HRESULT LoadInfoBase(IPXConnection *pIPXConn);
  78. HRESULT GetInfoBase(IInfoBase **ppInfoBase);
  79. protected:
  80. SPIRtrMgrInfo m_spRm;
  81. SPIRtrMgrInterfaceInfo m_spRmIf;
  82. SPIInterfaceInfo m_spIf;
  83. SapPageGeneral m_pageGeneral;
  84. SPITFSNode m_spNode;
  85. SPIInfoBase m_spInfoBase;
  86. };
  87. /*---------------------------------------------------------------------------
  88. Class: SapInterfacePageGeneral
  89. This class handles the General page of the Sap sheet.
  90. ---------------------------------------------------------------------------*/
  91. class SapInterfacePageGeneral :
  92. public RtrPropertyPage
  93. {
  94. public:
  95. SapInterfacePageGeneral(UINT nIDTemplate, UINT nIDCaption = 0)
  96. : RtrPropertyPage(nIDTemplate, nIDCaption)
  97. {};
  98. HRESULT Init(SapInterfaceProperties * pIPPropSheet, IInterfaceInfo *pIf);
  99. protected:
  100. // Override the OnApply() so that we can grab our data from the
  101. // controls in the dialog.
  102. virtual BOOL OnApply();
  103. // Brings up either the input or output filters
  104. void ShowFilter(BOOL fOutputFilter);
  105. SapInterfaceProperties * m_pSapIfPropSheet;
  106. SPIInterfaceInfo m_spIf;
  107. CSpinButtonCtrl m_spinInterval;
  108. CSpinButtonCtrl m_spinMultiplier;
  109. //{{AFX_VIRTUAL(SapInterfacePageGeneral)
  110. protected:
  111. virtual VOID DoDataExchange(CDataExchange *pDX);
  112. //}}AFX_VIRTUAL
  113. //{{AFX_MSG(SapInterfacePageGeneral)
  114. virtual BOOL OnInitDialog();
  115. afx_msg void OnButtonClicked();
  116. afx_msg void OnUpdateButtonClicked();
  117. afx_msg void OnChangeEdit();
  118. afx_msg void OnInputFilter();
  119. afx_msg void OnOutputFilter();
  120. //}}AFX_MSG
  121. DECLARE_MESSAGE_MAP()
  122. };
  123. /*---------------------------------------------------------------------------
  124. Class: SapInterfaceProperties
  125. This is the property sheet support class for the properties page of
  126. the SAP node.
  127. ---------------------------------------------------------------------------*/
  128. class SapInterfaceProperties :
  129. public RtrPropertySheet
  130. {
  131. public:
  132. SapInterfaceProperties(ITFSNode *pNode,
  133. IComponentData *pComponentData,
  134. ITFSComponentData *pTFSCompData,
  135. LPCTSTR pszSheetName,
  136. CWnd *pParent = NULL,
  137. UINT iPage=0,
  138. BOOL fScopePane = TRUE);
  139. HRESULT Init(IInterfaceInfo *pIf, IRtrMgrInfo *pRm);
  140. virtual BOOL SaveSheetData();
  141. virtual void CancelSheetData();
  142. // Loads the infobase for this interface.
  143. HRESULT LoadInfoBase(IPXConnection *pIPXConn);
  144. HRESULT GetInfoBase(IInfoBase **ppInfoBase);
  145. BOOL m_bNewInterface;
  146. protected:
  147. SPIRtrMgrInfo m_spRm;
  148. SPIRtrMgrInterfaceInfo m_spRmIf;
  149. SPIInterfaceInfo m_spIf;
  150. SapInterfacePageGeneral m_pageGeneral;
  151. SPITFSNode m_spNode;
  152. SPIInfoBase m_spInfoBase;
  153. BOOL m_bClientInfoBase;
  154. };
  155. #endif _SAPPROP_H