Removed shell.h. Cleaned up the nested includes mess in wine/obj_*.h.
[wine] / include / wine / obj_shellbrowser.h
1 /************************************************************
2  *    IShellBrowser
3  */
4
5 #ifndef __WINE_WINE_OBJ_SHELLBROWSER_H
6 #define __WINE_WINE_OBJ_SHELLBROWSER_H
7
8 #ifdef __cplusplus
9 extern "C" {
10 #endif /* defined(__cplusplus) */
11
12 /* it's ok commented out, see obj_shellview.h
13    typedef struct IShellBrowser IShellBrowser, *LPSHELLBROWSER;
14 */
15
16 #define SID_SShellBrowser IID_IShellBrowser
17
18 /* targets for GetWindow/SendControlMsg */
19 #define FCW_STATUS              0x0001
20 #define FCW_TOOLBAR             0x0002
21 #define FCW_TREE                0x0003
22 #define FCW_INTERNETBAR         0x0006
23 #define FCW_PROGRESS            0x0008
24
25 /* wFlags for BrowseObject*/
26 #define SBSP_DEFBROWSER         0x0000
27 #define SBSP_SAMEBROWSER        0x0001
28 #define SBSP_NEWBROWSER         0x0002
29
30 #define SBSP_DEFMODE            0x0000
31 #define SBSP_OPENMODE           0x0010
32 #define SBSP_EXPLOREMODE        0x0020
33
34 #define SBSP_ABSOLUTE           0x0000
35 #define SBSP_RELATIVE           0x1000
36 #define SBSP_PARENT             0x2000
37 #define SBSP_NAVIGATEBACK       0x4000
38 #define SBSP_NAVIGATEFORWARD    0x8000
39
40 #define SBSP_ALLOW_AUTONAVIGATE         0x10000
41
42 #define SBSP_INITIATEDBYHLINKFRAME      0x80000000
43 #define SBSP_REDIRECT                   0x40000000
44 #define SBSP_WRITENOHISTORY             0x08000000
45
46 /* uFlage for SetToolbarItems */
47 #define FCT_MERGE       0x0001
48 #define FCT_CONFIGABLE  0x0002
49 #define FCT_ADDTOEND    0x0004
50
51 #define ICOM_INTERFACE IShellBrowser
52 #define IShellBrowser_METHODS \
53         ICOM_METHOD2(HRESULT, InsertMenusSB, HMENU, hmenuShared, LPOLEMENUGROUPWIDTHS, lpMenuWidths) \
54         ICOM_METHOD3(HRESULT, SetMenuSB, HMENU, hmenuShared, HOLEMENU, holemenuReserved, HWND, hwndActiveObject) \
55         ICOM_METHOD1(HRESULT, RemoveMenusSB, HMENU, hmenuShared) \
56         ICOM_METHOD1(HRESULT, SetStatusTextSB, LPCOLESTR, lpszStatusText) \
57         ICOM_METHOD1(HRESULT, EnableModelessSB, BOOL, fEnable) \
58         ICOM_METHOD2(HRESULT, TranslateAcceleratorSB, LPMSG, lpmsg, WORD, wID) \
59         ICOM_METHOD2(HRESULT, BrowseObject, LPCITEMIDLIST, pidl, UINT, wFlags) \
60         ICOM_METHOD2(HRESULT, GetViewStateStream, DWORD, grfMode, LPSTREAM*, ppStrm) \
61         ICOM_METHOD2(HRESULT, GetControlWindow, UINT, id, HWND*, lphwnd) \
62         ICOM_METHOD5(HRESULT, SendControlMsg, UINT, id, UINT, uMsg, WPARAM, wParam, LPARAM, lParam, LRESULT*, pret) \
63         ICOM_METHOD1(HRESULT, QueryActiveShellView, IShellView**, IShellView) \
64         ICOM_METHOD1(HRESULT, OnViewWindowActive, IShellView*, IShellView) \
65         ICOM_METHOD3(HRESULT, SetToolbarItems, LPTBBUTTON, lpButtons, UINT, nButtons, UINT, uFlags)
66 #define IShellBrowser_IMETHODS \
67         IOleWindow_IMETHODS \
68         IShellBrowser_METHODS
69 ICOM_DEFINE(IShellBrowser,IOleWindow)
70 #undef ICOM_INTERFACE
71
72 /*** IUnknown methods ***/
73 #define IShellBrowser_QueryInterface(p,a,b)             ICOM_CALL2(QueryInterface,p,a,b)
74 #define IShellBrowser_AddRef(p)                         ICOM_CALL(AddRef,p)
75 #define IShellBrowser_Release(p)                        ICOM_CALL(Release,p)
76 /*** IShellBrowser methods ***/
77 #define IShellBrowser_GetWindow(p,a)                    ICOM_CALL1(GetWindow,p,a)
78 #define IShellBrowser_ContextSensitiveHelp(p,a)         ICOM_CALL1(ContextSensitiveHelp,p,a)
79 #define IShellBrowser_InsertMenusSB(p,a,b)              ICOM_CALL2(InsertMenusSB,p,a,b)
80 #define IShellBrowser_SetMenuSB(p,a,b,c)                ICOM_CALL3(SetMenuSB,p,a,b,c)
81 #define IShellBrowser_RemoveMenusSB(p,a)                ICOM_CALL1(RemoveMenusSB,p,a)
82 #define IShellBrowser_SetStatusTextSB(p,a)              ICOM_CALL1(SetStatusTextSB,p,a)
83 #define IShellBrowser_EnableModelessSB(p,a)             ICOM_CALL1(EnableModelessSB,p,a)
84 #define IShellBrowser_TranslateAcceleratorSB(p,a,b)     ICOM_CALL2(TranslateAcceleratorSB,p,a,b)
85 #define IShellBrowser_BrowseObject(p,a,b)               ICOM_CALL2(BrowseObject,p,a,b)
86 #define IShellBrowser_GetViewStateStream(p,a,b)         ICOM_CALL2(GetViewStateStream,p,a,b)
87 #define IShellBrowser_GetControlWindow(p,a,b)           ICOM_CALL2(GetControlWindow,p,a,b)
88 #define IShellBrowser_SendControlMsg(p,a,b,c,d,e)       ICOM_CALL5(SendControlMsg,p,a,b,c,d,e)
89 #define IShellBrowser_QueryActiveShellView(p,a)         ICOM_CALL1(QueryActiveShellView,p,a)
90 #define IShellBrowser_OnViewWindowActive(p,a)           ICOM_CALL1(OnViewWindowActive,p,a)
91 #define IShellBrowser_SetToolbarItems(p,a,b,c)          ICOM_CALL3(SetToolbarItems,p,a,b,c)
92
93 #ifdef __cplusplus
94 } /* extern "C" */
95 #endif /* defined(__cplusplus) */
96
97 #endif /* __WINE_WINE_OBJ_SHELLBROWSER_H */