Leaked source code of windows server 2003
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.

101 lines
2.9 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corporation, 1997 - 2002 **/
  4. /**********************************************************************/
  5. /*
  6. FltrNode.h
  7. FILE HISTORY:
  8. */
  9. #ifndef _MMSPFLTR_H
  10. #define _MMSPFLTR_H
  11. #ifndef _IPSMHAND_H
  12. #include "ipsmhand.h"
  13. #endif
  14. #ifndef _SPDDB_H
  15. #include "spddb.h"
  16. #endif
  17. #include "SrchMFlt.h"
  18. /*---------------------------------------------------------------------------
  19. Class: CMmSpFilterHandler
  20. ---------------------------------------------------------------------------*/
  21. class CMmSpFilterHandler : public CIpsmHandler
  22. {
  23. public:
  24. CMmSpFilterHandler(ITFSComponentData* pTFSComponentData);
  25. virtual ~CMmSpFilterHandler();
  26. // Interface
  27. public:
  28. // base handler functionality we override
  29. OVERRIDE_NodeHandler_HasPropertyPages();
  30. OVERRIDE_NodeHandler_CreatePropertyPages();
  31. OVERRIDE_NodeHandler_OnAddMenuItems();
  32. OVERRIDE_NodeHandler_OnCommand();
  33. OVERRIDE_NodeHandler_GetString()
  34. { return (nCol == 0) ? GetDisplayName() : NULL; }
  35. // Base handler notifications we handle
  36. OVERRIDE_BaseHandlerNotify_OnExpand();
  37. OVERRIDE_BaseHandlerNotify_OnDelete();
  38. OVERRIDE_BaseHandlerNotify_OnPropertyChange();
  39. // Result handler functionality we override
  40. OVERRIDE_BaseResultHandlerNotify_OnResultSelect();
  41. OVERRIDE_BaseResultHandlerNotify_OnResultUpdateView();
  42. OVERRIDE_ResultHandler_OnGetResultViewType();
  43. OVERRIDE_ResultHandler_GetVirtualString();
  44. OVERRIDE_ResultHandler_GetVirtualImage();
  45. OVERRIDE_ResultHandler_AddMenuItems();
  46. OVERRIDE_ResultHandler_Command();
  47. OVERRIDE_ResultHandler_HasPropertyPages();
  48. OVERRIDE_ResultHandler_CreatePropertyPages();
  49. STDMETHODIMP CacheHint(int nStartIndex, int nEndIndex);
  50. STDMETHODIMP SortItems(int nColumn,
  51. DWORD dwSortOptions,
  52. LPARAM lUserParam);
  53. // base handler overrides
  54. virtual HRESULT LoadColumns(ITFSComponent *, MMC_COOKIE, LPARAM, LPARAM);
  55. // CHandler overridden
  56. virtual HRESULT OnRefresh(ITFSNode *, LPDATAOBJECT, DWORD, LPARAM, LPARAM);
  57. // multi select support
  58. virtual const GUID * GetVirtualGuid(int nIndex)
  59. {
  60. return &GUID_IpsmMmFilterNodeType;
  61. }
  62. public:
  63. // CMTIpsmHandler functionality
  64. virtual HRESULT InitializeNode(ITFSNode * pNode);
  65. virtual int GetImageIndex(BOOL bOpenImage);
  66. ITFSQueryObject* OnCreateQuery(ITFSNode * pNode);
  67. public:
  68. // implementation specific
  69. HRESULT InitData(ISpdInfo * pSpdInfo);
  70. HRESULT UpdateStatus(ITFSNode * pNode);
  71. // Implementation
  72. private:
  73. // Command handlers
  74. HRESULT OnDelete(ITFSNode * pNode);
  75. private:
  76. SPISpdInfo m_spSpdInfo;
  77. CSearchMMFilters * m_pDlgSrchFltr;
  78. };
  79. #endif _LINES_H