2 * Copyright 2005 Jacek Caban
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 /*****************************************************************************
27 * IDocHostUIHandler interface
31 uuid(BD3F23C0
-D43E
-11CF
-893B
-00AA00BDCE1A
),
32 pointer_default(unique),
35 interface IDocHostUIHandler
: IUnknown
37 typedef struct _DOCHOSTUIINFO
46 HRESULT ShowContextMenu
(
49 [in] IUnknown
*pcmdtReserved
,
50 [in] IDispatch
*pdispReserved
);
52 HRESULT GetHostInfo
([in, out] DOCHOSTUIINFO
*pInfo
);
56 [in] IOleInPlaceActiveObject
*pActiveObject
,
57 [in] IOleCommandTarget
*pCommandTarget
,
58 [in] IOleInPlaceFrame
*pFrame
,
59 [in] IOleInPlaceUIWindow
*pDoc
);
65 HRESULT EnableModeless
([in] BOOL fEnable
);
67 HRESULT OnDocWindowActivate
([in] BOOL fActivate
);
69 HRESULT OnFrameWindowActivate
([in] BOOL fActivate
);
72 [in] LPCRECT prcBorder
,
73 [in] IOleInPlaceUIWindow
*pUIWindow
,
74 [in] BOOL fRameWindow
);
76 HRESULT TranslateAccelerator
(
78 [in] const GUID
*pguidCmdGroup
,
81 HRESULT GetOptionKeyPath
(
82 [out] LPOLESTR
*pchKey
,
85 HRESULT GetDropTarget
(
86 [in] IDropTarget
*pDropTarget
,
87 [out] IDropTarget
**ppDropTarget
);
89 HRESULT GetExternal
([out] IDispatch
**ppDispatch
);
92 [in] DWORD dwTranslate
,
93 [in] OLECHAR
*pchURLIn
,
94 [out] OLECHAR
**ppchURLOut
);
96 HRESULT FilterDataObject
(
98 [out]IDataObject
**ppDORet
);