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.

83 lines
1.9 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1999 - 1999
  6. //
  7. // File: hhcwrap.h
  8. //
  9. //--------------------------------------------------------------------------
  10. // hhcwrap.h : Declaration of the class CHHCollectionWrapper
  11. #ifndef __HHCWRAP_H_
  12. #define __HHCWRAP_H_
  13. #include "mmcshext.h" // main symbols
  14. #include "hcolwrap.h" // idl generated header
  15. #include <collect.h>
  16. #ifdef ASSERT
  17. #undef ASSERT
  18. #endif
  19. #define ASSERT(e) // get rid of the assert symbol.
  20. /////////////////////////////////////////////////////////////////////////////
  21. // CHHCollectionWrapper
  22. class ATL_NO_VTABLE CHHCollectionWrapper :
  23. public CComObjectRootEx<CComSingleThreadModel>,
  24. public CComCoClass<CHHCollectionWrapper, &CLSID_HHCollectionWrapper>,
  25. public IHHCollectionWrapper
  26. {
  27. public:
  28. CHHCollectionWrapper()
  29. {
  30. }
  31. STDMETHOD(Open) (LPCOLESTR FileName);
  32. STDMETHOD(Save)();
  33. STDMETHOD(Close)();
  34. STDMETHOD(RemoveCollection) (BOOL bRemoveLocalFiles);
  35. STDMETHOD(SetFindMergedCHMS) (BOOL bFind);
  36. STDMETHOD(AddFolder) (
  37. LPCOLESTR szName,
  38. DWORD Order,
  39. DWORD *pDWORD,
  40. LANGID LangId
  41. );
  42. STDMETHOD(AddTitle) (
  43. LPCOLESTR Id,
  44. LPCOLESTR FileName,
  45. LPCOLESTR IndexFile,
  46. LPCOLESTR Query,
  47. LPCOLESTR SampleLocation,
  48. LANGID Lang,
  49. UINT uiFlags,
  50. ULONG_PTR pLocation,
  51. DWORD *pDWORD,
  52. BOOL bSupportsMerge,
  53. LPCOLESTR QueryLocation
  54. );
  55. DECLARE_REGISTRY_RESOURCEID(IDR_HHCOLLECTIONWRAPPER)
  56. DECLARE_PROTECT_FINAL_CONSTRUCT()
  57. BEGIN_COM_MAP(CHHCollectionWrapper)
  58. COM_INTERFACE_ENTRY_IID(IID_IHHCollectionWrapper, IHHCollectionWrapper)
  59. END_COM_MAP()
  60. private:
  61. CCollection m_collection;
  62. };
  63. #endif //__HHCWRAP_H_