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.

40 lines
863 B

  1. // Copyright (C) 1996-1997 Microsoft Corporation. All rights reserved.
  2. //
  3. // HIGHLITE.H
  4. //
  5. #if _MSC_VER > 1000
  6. #pragma once
  7. #endif
  8. #ifndef __HIGHLITE_H__
  9. #define __HIGHLITE_H__
  10. // Trident includes
  11. //
  12. #include <mshtml.h>
  13. #include "web.h"
  14. void DoF1Lookup(IWebBrowserAppImpl* pWBApp);
  15. WCHAR * GetSelectionText(LPDISPATCH lpDispatch);
  16. // CSearchHighlight class
  17. //
  18. class CSearchHighlight
  19. {
  20. public:
  21. CSearchHighlight(CExCollection *pTitleCollection);
  22. ~CSearchHighlight();
  23. void EnableHighlight(BOOL bStatus);
  24. HRESULT JumpFirst(void);
  25. HRESULT JumpNext(void);
  26. int HighlightDocument(LPDISPATCH lpDispatch);
  27. BOOL HighlightTerm(IHTMLDocument2* pHTMLDocument2, WCHAR *pTerm);
  28. WCHAR *m_pTermList;
  29. BOOL m_bHighlightEnabled;
  30. protected:
  31. int m_iJumpIndex;
  32. BOOL m_Initialized;
  33. CExCollection *m_pTitleCollection;
  34. };
  35. #endif // __HIGHLITE_H__