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.

58 lines
2.3 KiB

  1. /*
  2. * t r i u t i l . c p p
  3. *
  4. * Purpose:
  5. * Trident utilities
  6. *
  7. * History
  8. *
  9. * Copyright (C) Microsoft Corp. 1995, 1996.
  10. */
  11. #ifndef _TRIUTIL_H
  12. #define _TRIUTIL_H
  13. interface IHTMLDocument2;
  14. interface IHTMLElement;
  15. interface IHTMLBodyElement;
  16. HRESULT HrCreateSyncTridentFromStream(LPSTREAM pstm, REFIID riid, LPVOID *ppv);
  17. HRESULT HrSetMember(LPUNKNOWN pUnk, BSTR bstrMember, BSTR bstrValue);
  18. HRESULT HrGetCollectionOf(IHTMLDocument2 *pDoc, BSTR bstrTagName, IHTMLElementCollection **ppCollect);
  19. HRESULT HrGetCollectionItem(IHTMLElementCollection *pCollect, ULONG uIndex, REFIID riid, LPVOID *ppvObj);
  20. ULONG UlGetCollectionCount(IHTMLElementCollection *pCollect);
  21. HRESULT HrGetMember(LPUNKNOWN pUnk, BSTR bstrMember,LONG lFlags, BSTR *pbstr);
  22. HRESULT GetBodyStream(IUnknown *pUnkTrident, BOOL fHtml, LPSTREAM *ppstm);
  23. HRESULT HrBindToUrl(LPCSTR pszUrl, LPSTREAM *ppstm);
  24. // style sheets
  25. HRESULT HrGetStyleTag(IHTMLDocument2 *pDoc, BSTR *pbstr);
  26. HRESULT HrCopyStyleSheets(IHTMLDocument2 *pDocSrc, IHTMLDocument2 *pDocDest);
  27. HRESULT HrCopyBackground(IHTMLDocument2 *pDocSrc, IHTMLDocument2 *pDocDest);
  28. HRESULT HrRemoveStyleSheets(IHTMLDocument2 *pDoc);
  29. HRESULT HrRemoveBackground(IHTMLDocument2 *pDoc);
  30. HRESULT FindStyleRule(IHTMLDocument2 *pDoc, LPCWSTR pszSelectorW, IHTMLRuleStyle **ppRuleStyle);
  31. #define FINDURL_SEARCH_RELATED_ONLY 0x01
  32. HRESULT HrFindUrlInMsg(LPMIMEMESSAGE pMsg, LPSTR lpszUrl, DWORD dwFlags, LPSTREAM *ppstm);
  33. HRESULT HrSniffStreamFileExt(LPSTREAM pstm, LPSTR *lplpszExt);
  34. // background images
  35. HRESULT GetBackgroundImage(IHTMLDocument2 *pDoc, BSTR *pbstrUrl);
  36. HRESULT SetBackgroundImage(IHTMLDocument2 *pDoc, BSTR bstrUrl);
  37. // background sound
  38. HRESULT GetBackgroundSound(IHTMLDocument2 *pDoc, int *pcRepeat, BSTR *pbstrUrl);
  39. HRESULT SetBackgroundSound(IHTMLDocument2 *pDoc, int cRepeat, BSTR bstrUrl);
  40. HRESULT UnWrapStyleSheetUrl(BSTR bstrStyleUrl, BSTR *pbstrUrl);
  41. HRESULT WrapStyleSheetUrl(BSTR bstrUrl, BSTR *pbstrStyleUrl);
  42. HRESULT FindNearestBaseUrl(IHTMLDocument2 *pDoc, IHTMLElement *pElemTag, BSTR *pbstrBaseUrl);
  43. HRESULT SniffStreamForMimeType(LPSTREAM pstm, LPWSTR *ppszType);
  44. // cache functions
  45. HRESULT CreateCacheFileFromStream(LPSTR pszUrl, LPSTREAM pstm);
  46. #endif //_TRIUTIL_H