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.

66 lines
1.5 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1998.
  5. //
  6. // File: addprop.hxx
  7. //
  8. // Contents: Adds properties to the search key repository
  9. //
  10. // Classes: CSearchAddProp
  11. //
  12. // History: 7-21-96 srikants Created
  13. //
  14. //----------------------------------------------------------------------------
  15. #pragma once
  16. #include <spropmap.hxx>
  17. class CPropertyEnum;
  18. class CDataRepository;
  19. //+---------------------------------------------------------------------------
  20. //
  21. // Class: CSearchAddProp
  22. //
  23. // Purpose: A class to add generic and ole properties to the search data
  24. // repository.
  25. //
  26. // History: 7-23-96 srikants Created
  27. //
  28. // Notes:
  29. //
  30. //----------------------------------------------------------------------------
  31. class CSearchAddProp
  32. {
  33. public:
  34. CSearchAddProp( CDataRepository & drep,
  35. ICiCOpenedDoc & openedDoc,
  36. BOOL fAddOleProps )
  37. : _drep(drep),
  38. _openedDoc(openedDoc),
  39. _fAddOleProps(fAddOleProps)
  40. {
  41. }
  42. void DoIt();
  43. private:
  44. void AddProperties( CPropertyEnum & propEnum );
  45. void AddProperty( CStorageVariant const & var,
  46. CFullPropSpec & ps,
  47. CDataRepository & drep );
  48. CDataRepository & _drep;
  49. ICiCOpenedDoc & _openedDoc;
  50. NTSTATUS _status;
  51. BOOL _fAddOleProps;
  52. };