1 /************************************************************
5 #ifndef __WINE_WINE_OBJ_ISHELLVIEW_H
6 #define __WINE_WINE_OBJ_ISHELLVIEW_H
10 #include "wine/obj_base.h"
11 #include "wine/obj_inplace.h"
12 #include "wine/obj_shellfolder.h"
13 #include "prsht.h" /* LPFNADDPROPSHEETPAGE */
15 /****************************************************************************
16 * IShellBrowser is here defined because of a cyclic dependance between
17 * IShellBrowser and IShellView
19 typedef struct IShellBrowser IShellBrowser, *LPSHELLBROWSER;
21 DEFINE_SHLGUID(IID_IShellView, 0x000214E3L, 0, 0);
22 typedef struct IShellView IShellView, *LPSHELLVIEW;
24 /* shellview select item flags*/
25 #define SVSI_DESELECT 0x0000
26 #define SVSI_SELECT 0x0001
27 #define SVSI_EDIT 0x0003 /* includes select */
28 #define SVSI_DESELECTOTHERS 0x0004
29 #define SVSI_ENSUREVISIBLE 0x0008
30 #define SVSI_FOCUSED 0x0010
32 /* shellview get item object flags */
33 #define SVGIO_BACKGROUND 0x00000000
34 #define SVGIO_SELECTION 0x00000001
35 #define SVGIO_ALLVIEW 0x00000002
37 /* The explorer dispatches WM_COMMAND messages based on the range of
38 command/menuitem IDs. All the IDs of menuitems that the view (right
39 pane) inserts must be in FCIDM_SHVIEWFIRST/LAST (otherwise, the explorer
40 won't dispatch them). The view should not deal with any menuitems
41 in FCIDM_BROWSERFIRST/LAST (otherwise, it won't work with the future
42 version of the shell).
44 FCIDM_SHVIEWFIRST/LAST for the right pane (IShellView)
45 FCIDM_BROWSERFIRST/LAST for the explorer frame (IShellBrowser)
46 FCIDM_GLOBAL/LAST for the explorer's submenu IDs
48 #define FCIDM_SHVIEWFIRST 0x0000
50 #define FCIDM_SHVIEW_ARRANGE 0x7001
51 #define FCIDM_SHVIEW_DELETE 0x7011
52 #define FCIDM_SHVIEW_PROPERTIES 0x7013
53 #define FCIDM_SHVIEW_CUT 0x7018
54 #define FCIDM_SHVIEW_COPY 0x7019
55 #define FCIDM_SHVIEW_INSERT 0x701A
56 #define FCIDM_SHVIEW_UNDO 0x701B
57 #define FCIDM_SHVIEW_INSERTLINK 0x701C
58 #define FCIDM_SHVIEW_SELECTALL 0x7021
59 #define FCIDM_SHVIEW_INVERTSELECTION 0x7022
60 #define FCIDM_SHVIEW_BIGICON 0x7029
61 #define FCIDM_SHVIEW_SMALLICON 0x702A
62 #define FCIDM_SHVIEW_LISTVIEW 0x702B
63 #define FCIDM_SHVIEW_REPORTVIEW 0x702C
64 #define FCIDM_SHVIEW_AUTOARRANGE 0x7031
65 #define FCIDM_SHVIEW_SNAPTOGRID 0x7032
66 #define FCIDM_SHVIEW_HELP 0x7041
68 #define FCIDM_SHVIEWLAST 0x7fff
69 #define FCIDM_BROWSERFIRST 0xA000
70 /* undocumented toolbar items from stddlg's*/
71 #define FCIDM_TB_SMALLICON 0xA003
72 #define FCIDM_TB_REPORTVIEW 0xA004
74 #define FCIDM_BROWSERLAST 0xbf00
75 #define FCIDM_GLOBALFIRST 0x8000
76 #define FCIDM_GLOBALLAST 0x9fff
79 * Global submenu IDs and separator IDs
81 #define FCIDM_MENU_FILE (FCIDM_GLOBALFIRST+0x0000)
82 #define FCIDM_MENU_EDIT (FCIDM_GLOBALFIRST+0x0040)
83 #define FCIDM_MENU_VIEW (FCIDM_GLOBALFIRST+0x0080)
84 #define FCIDM_MENU_VIEW_SEP_OPTIONS (FCIDM_GLOBALFIRST+0x0081)
85 #define FCIDM_MENU_TOOLS (FCIDM_GLOBALFIRST+0x00c0)
86 #define FCIDM_MENU_TOOLS_SEP_GOTO (FCIDM_GLOBALFIRST+0x00c1)
87 #define FCIDM_MENU_HELP (FCIDM_GLOBALFIRST+0x0100)
88 #define FCIDM_MENU_FIND (FCIDM_GLOBALFIRST+0x0140)
89 #define FCIDM_MENU_EXPLORE (FCIDM_GLOBALFIRST+0x0150)
90 #define FCIDM_MENU_FAVORITES (FCIDM_GLOBALFIRST+0x0170)
92 /* control IDs known to the view */
93 #define FCIDM_TOOLBAR (FCIDM_BROWSERFIRST + 0)
94 #define FCIDM_STATUS (FCIDM_BROWSERFIRST + 1)
96 /* uState values for IShellView::UIActivate */
98 { SVUIA_DEACTIVATE = 0,
99 SVUIA_ACTIVATE_NOFOCUS = 1,
100 SVUIA_ACTIVATE_FOCUS = 2,
101 SVUIA_INPLACEACTIVATE = 3 /* new flag for IShellView2 */
104 #define ICOM_INTERFACE IShellView
105 #define IShellView_METHODS \
106 ICOM_METHOD1(HRESULT, TranslateAccelerator, LPMSG, lpmsg) \
107 ICOM_METHOD1(HRESULT, EnableModeless, BOOL, fEnable) \
108 ICOM_METHOD1(HRESULT, UIActivate, UINT, uState) \
109 ICOM_METHOD(HRESULT, Refresh) \
110 ICOM_METHOD5(HRESULT, CreateViewWindow, IShellView*, lpPrevView, LPCFOLDERSETTINGS, lpfs, IShellBrowser*, psb, RECT*, prcView, HWND*, phWnd) \
111 ICOM_METHOD(HRESULT, DestroyViewWindow) \
112 ICOM_METHOD1(HRESULT, GetCurrentInfo, LPFOLDERSETTINGS, lpfs) \
113 ICOM_METHOD3(HRESULT, AddPropertySheetPages, DWORD, dwReserved, LPFNADDPROPSHEETPAGE, lpfn, LPARAM, lparam) \
114 ICOM_METHOD (HRESULT, SaveViewState) \
115 ICOM_METHOD2(HRESULT, SelectItem, LPCITEMIDLIST, pidlItem, UINT, uFlags) \
116 ICOM_METHOD3(HRESULT, GetItemObject, UINT, uItem, REFIID, riid, LPVOID*, ppv)
117 #define IShellView_IMETHODS \
118 IOleWindow_IMETHODS \
120 ICOM_DEFINE(IShellView,IOleWindow)
121 #undef ICOM_INTERFACE
123 #ifdef ICOM_CINTERFACE
124 #define IShellView_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
125 #define IShellView_AddRef(p) ICOM_CALL(AddRef,p)
126 #define IShellView_Release(p) ICOM_CALL(Release,p)
127 #define IShellView_GetWindow(p,a) ICOM_CALL1(GetWindow,p,a)
128 #define IShellView_ContextSensitiveHelp(p,a) ICOM_CALL1(ContextSensitiveHelp,p,a)
129 #define IShellView_TranslateAccelerator(p,a) ICOM_CALL1(TranslateAccelerator,p,a)
130 #define IShellView_EnableModeless(p,a) ICOM_CALL1(EnableModeless,p,a)
131 #define IShellView_UIActivate(p,a) ICOM_CALL1(UIActivate,p,a)
132 #define IShellView_Refresh(p) ICOM_CALL(Refresh,p)
133 #define IShellView_CreateViewWindow(p,a,b,c,d,e) ICOM_CALL5(CreateViewWindow,p,a,b,c,d,e)
134 #define IShellView_DestroyViewWindow(p) ICOM_CALL(DestroyViewWindow,p)
135 #define IShellView_GetCurrentInfo(p,a) ICOM_CALL1(GetCurrentInfo,p,a)
136 #define IShellView_AddPropertySheetPages(p,a,b,c) ICOM_CALL3(AddPropertySheetPages,p,a,b,c)
137 #define IShellView_SaveViewState(p) ICOM_CALL(SaveViewState,p)
138 #define IShellView_SelectItem(p,a,b) ICOM_CALL2(SelectItem,p,a,b)
139 #define IShellView_GetItemObject(p,a,b,c) ICOM_CALL3(GetItemObject,p,a,b,c)
143 #endif /* __WINE_WINE_OBJ_ISHELLVIEW_H */