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.

44 lines
1.9 KiB

  1. #ifndef _DHUIHAND_H
  2. #define _DHUIHAND_H
  3. class CDocHostUIHandler :
  4. public IDocHostUIHandler
  5. {
  6. public:
  7. // *** IUnknown methods ***
  8. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID *ppv) PURE;
  9. STDMETHOD_(ULONG,AddRef)(THIS) PURE;
  10. STDMETHOD_(ULONG,Release)(THIS) PURE;
  11. // IDocHostUIHandler
  12. virtual HRESULT STDMETHODCALLTYPE ShowContextMenu(
  13. DWORD dwID, POINT *ppt, IUnknown *pcmdtReserved, IDispatch *pdispReserved);
  14. virtual HRESULT STDMETHODCALLTYPE GetHostInfo(DOCHOSTUIINFO *pInfo);
  15. virtual HRESULT STDMETHODCALLTYPE ShowUI(
  16. DWORD dwID, IOleInPlaceActiveObject *pActiveObject,
  17. IOleCommandTarget *pCommandTarget, IOleInPlaceFrame *pFrame,
  18. IOleInPlaceUIWindow *pDoc);
  19. virtual HRESULT STDMETHODCALLTYPE HideUI(void);
  20. virtual HRESULT STDMETHODCALLTYPE UpdateUI(void);
  21. virtual HRESULT STDMETHODCALLTYPE EnableModeless(BOOL fEnable);
  22. virtual HRESULT STDMETHODCALLTYPE OnDocWindowActivate(BOOL fActivate);
  23. virtual HRESULT STDMETHODCALLTYPE OnFrameWindowActivate(BOOL fActivate);
  24. virtual HRESULT STDMETHODCALLTYPE ResizeBorder(
  25. LPCRECT prcBorder, IOleInPlaceUIWindow *pUIWindow, BOOL fRameWindow);
  26. virtual HRESULT STDMETHODCALLTYPE TranslateAccelerator(
  27. LPMSG lpMsg, const GUID *pguidCmdGroup, DWORD nCmdID);
  28. virtual HRESULT STDMETHODCALLTYPE GetOptionKeyPath(BSTR *pbstrKey, DWORD dw);
  29. virtual HRESULT STDMETHODCALLTYPE GetDropTarget(
  30. IDropTarget *pDropTarget, IDropTarget **ppDropTarget);
  31. virtual HRESULT STDMETHODCALLTYPE GetExternal(IDispatch **ppDisp);
  32. virtual HRESULT STDMETHODCALLTYPE TranslateUrl(DWORD dwTranslate, OLECHAR *pchURLIn, OLECHAR **ppchURLOut);
  33. virtual HRESULT STDMETHODCALLTYPE FilterDataObject(IDataObject *pDO, IDataObject **ppDORet);
  34. protected:
  35. HRESULT GetAltExternal(IDispatch **ppDisp);
  36. };
  37. #endif _DHUIHAND_H