1 | /*
|
---|
2 | * COM interfaces for shell objects
|
---|
3 | *
|
---|
4 | * Copyright (C) 2004 Maxime Bellengé
|
---|
5 | *
|
---|
6 | * This library is free software; you can redistribute it and/or
|
---|
7 | * modify it under the terms of the GNU Lesser General Public
|
---|
8 | * License as published by the Free Software Foundation; either
|
---|
9 | * version 2.1 of the License, or (at your option) any later version.
|
---|
10 | *
|
---|
11 | * This library is distributed in the hope that it will be useful,
|
---|
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
14 | * Lesser General Public License for more details.
|
---|
15 | *
|
---|
16 | * You should have received a copy of the GNU Lesser General Public
|
---|
17 | * License along with this library; if not, write to the Free Software
|
---|
18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
---|
19 | */
|
---|
20 |
|
---|
21 | /*
|
---|
22 | * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
23 | * other than GPL or LGPL is available it will apply instead, Sun elects to use only
|
---|
24 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
25 | * a choice of LGPL license versions is made available with the language indicating
|
---|
26 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
27 | * of the LGPL is applied is otherwise unspecified.
|
---|
28 | */
|
---|
29 |
|
---|
30 | import "objidl.idl";
|
---|
31 | import "oleidl.idl";
|
---|
32 | import "oaidl.idl";
|
---|
33 | import "shtypes.idl";
|
---|
34 | import "servprov.idl";
|
---|
35 | import "comcat.idl";
|
---|
36 |
|
---|
37 | #include <shdispid.h>
|
---|
38 |
|
---|
39 | /*****************************************************************************
|
---|
40 | * IAutoComplete interface
|
---|
41 | */
|
---|
42 | [
|
---|
43 | object,
|
---|
44 | uuid(00bb2762-6a77-11d0-a535-00c04fd7d062),
|
---|
45 | pointer_default(unique)
|
---|
46 | ]
|
---|
47 | interface IAutoComplete : IUnknown
|
---|
48 | {
|
---|
49 | typedef IAutoComplete *LPAUTOCOMPLETE;
|
---|
50 |
|
---|
51 | HRESULT Init( [in] HWND hwndEdit,
|
---|
52 | [in] IUnknown *punkACL,
|
---|
53 | [in] LPCOLESTR pwszRegKeyPath,
|
---|
54 | [in] LPCOLESTR pwszQuickComplete);
|
---|
55 |
|
---|
56 | HRESULT Enable( [in] BOOL fEnable );
|
---|
57 | }
|
---|
58 |
|
---|
59 | /*****************************************************************************
|
---|
60 | * IAutoComplete2 interface
|
---|
61 | */
|
---|
62 | [
|
---|
63 | object,
|
---|
64 | uuid(eac04bc0-3791-11d2-bb95-0060977b464c),
|
---|
65 | pointer_default(unique)
|
---|
66 | ]
|
---|
67 | interface IAutoComplete2 : IAutoComplete
|
---|
68 | {
|
---|
69 | typedef IAutoComplete2 *LPAUTOCOMPLETE2;
|
---|
70 |
|
---|
71 | typedef enum _tagAUTOCOMPLETEOPTIONS
|
---|
72 | {
|
---|
73 | ACO_NONE = 0x00, /* No AutoComplete */
|
---|
74 | ACO_AUTOSUGGEST = 0x01, /* enable autosuggest dropdown */
|
---|
75 | ACO_AUTOAPPEND = 0x02, /* enable autoappend */
|
---|
76 | ACO_SEARCH = 0x04, /* add search entry to completion list */
|
---|
77 | ACO_FILTERPREFIXES = 0x08, /* don't match common prefixes (www., http://, etc) */
|
---|
78 | ACO_USETAB = 0x10, /* use tab to select autosuggest entries */
|
---|
79 | ACO_UPDOWNKEYDROPSLIST = 0x20, /* up/down arrow key invokes autosuggest dropdown (if enabled) */
|
---|
80 | ACO_RTLREADING = 0x40, /* enable RTL reading order for dropdown */
|
---|
81 | } AUTOCOMPLETEOPTIONS;
|
---|
82 |
|
---|
83 | HRESULT SetOptions( [in] DWORD dwFlag);
|
---|
84 |
|
---|
85 | HRESULT GetOptions( [out] DWORD *pdwFlag);
|
---|
86 | }
|
---|
87 |
|
---|
88 | [
|
---|
89 | object,
|
---|
90 | uuid(9ba05970-f6a8-11cf-a442-00a0c90a8f39),
|
---|
91 | pointer_default(unique)
|
---|
92 | ]
|
---|
93 | interface IFolderViewOC : IDispatch
|
---|
94 | {
|
---|
95 | HRESULT SetFolderView( [in] IDispatch *pdisp );
|
---|
96 | }
|
---|
97 |
|
---|
98 | [
|
---|
99 | uuid(62112aa2-ebe4-11cf-a5fb-0020afe7292d)
|
---|
100 | ]
|
---|
101 | dispinterface DShellFolderViewEvents
|
---|
102 | {
|
---|
103 | properties:
|
---|
104 | methods:
|
---|
105 | [id(DISPID_SELECTIONCHANGED)]
|
---|
106 | void SelectionChanged();
|
---|
107 |
|
---|
108 | [id(DISPID_FILELISTENUMDONE)]
|
---|
109 | void EnumDone();
|
---|
110 |
|
---|
111 | [id(DISPID_VERBINVOKED)]
|
---|
112 | VARIANT_BOOL VerbInvoked();
|
---|
113 |
|
---|
114 | [id(DISPID_DEFAULTVERBINVOKED)]
|
---|
115 | VARIANT_BOOL DefaultVerbInvoked();
|
---|
116 |
|
---|
117 | [id(DISPID_BEGINDRAG)]
|
---|
118 | VARIANT_BOOL BeginDrag();
|
---|
119 | }
|
---|
120 |
|
---|
121 | [
|
---|
122 | uuid(9ba05971-f6a8-11cf-a442-00a0c90a8f39),
|
---|
123 | hidden
|
---|
124 | ]
|
---|
125 | coclass ShellFolderViewOC
|
---|
126 | {
|
---|
127 | [default] interface IFolderViewOC;
|
---|
128 | [default, source] dispinterface DShellFolderViewEvents;
|
---|
129 | }
|
---|