1 | #ifndef _DTS_HH_INCLUDED_wpfolder
|
---|
2 | #define _DTS_HH_INCLUDED_wpfolder
|
---|
3 | /* Start Class WPFolder */
|
---|
4 |
|
---|
5 | // This file was generated by the IBM "DirectToSOM" emitter for C++ (V1.77)
|
---|
6 | // Generated at 11/02/96 09:11:43 EST
|
---|
7 | // This is class: WPFolder
|
---|
8 | // Mangled class name: WPFolder
|
---|
9 | // SE: May 19/94
|
---|
10 |
|
---|
11 | #include <som.hh>
|
---|
12 |
|
---|
13 | #pragma SOMAsDefault(on)
|
---|
14 | class SOMClass;
|
---|
15 | #pragma SOMAsDefault(pop)
|
---|
16 | #pragma SOMAsDefault(on)
|
---|
17 | class SOMObject;
|
---|
18 | #pragma SOMAsDefault(pop)
|
---|
19 | #pragma SOMAsDefault(on)
|
---|
20 | class WPFolder;
|
---|
21 | #pragma SOMAsDefault(pop)
|
---|
22 | #pragma SOMAsDefault(on)
|
---|
23 | class M_WPObject;
|
---|
24 | #pragma SOMAsDefault(pop)
|
---|
25 | #pragma SOMAsDefault(on)
|
---|
26 | class WPObject;
|
---|
27 | #pragma SOMAsDefault(pop)
|
---|
28 | #pragma SOMAsDefault(on)
|
---|
29 | class M_WPFileSystem;
|
---|
30 | #pragma SOMAsDefault(pop)
|
---|
31 | #pragma SOMAsDefault(on)
|
---|
32 | class M_WPFolder;
|
---|
33 | #pragma SOMAsDefault(pop)
|
---|
34 | #include <wpfsys.hh>
|
---|
35 | #pragma SOMNonDTS(on)
|
---|
36 |
|
---|
37 | /******************************************************/
|
---|
38 | /* Folder flags */
|
---|
39 |
|
---|
40 | #define FOI_POPULATEDWITHALL 0x0001
|
---|
41 | #define FOI_POPULATEDWITHFOLDERS 0x0002
|
---|
42 | #define FOI_WORKAREA 0x0004
|
---|
43 | #define FOI_CHANGEFONT 0x0008 /* anti-recursion flag */
|
---|
44 | #define FOI_WAMINIMIZED 0x0020
|
---|
45 | #define FOI_WASTARTONRESTORE 0x0040
|
---|
46 | #define FOI_NOREFRESHVIEWS 0x0080
|
---|
47 | #define FOI_ASYNCREFRESHONOPEN 0x0100
|
---|
48 | #define FOI_TREEPOPULATED 0x0200
|
---|
49 | #define FOI_POPULATEINPROGRESS 0x0400 /*DORM*/
|
---|
50 | #define FOI_REFRESHINPROGRESS 0x0800
|
---|
51 | #define FOI_FIRSTPOPULATE 0x1000 /* folder has no iconposdata */ //LD62414
|
---|
52 | #define FOI_WAMCRINPROGRESS 0x2000 /* Minimize, close, restore in progress ihs67096 */
|
---|
53 | #define FOI_CNRBKGNDOLDFORMAT 0x4000 /* CnrBkgnd saved in old format ihs77154 */
|
---|
54 | #define FOI_CHANGEICONBGNDCOLOR 0x8000 /* Icon Text Background Color changing ihs79998 */
|
---|
55 | #define FOI_CHANGEICONTEXTCOLOR 0x00010000 /* Icon Text Color changing ihs89146 */
|
---|
56 | #define FOI_DELETEINPROGRESS 0x00020000 /* To prevent wpFree from repopulating */
|
---|
57 |
|
---|
58 | /* Open views for the wpOpen() method */
|
---|
59 |
|
---|
60 | #define OPEN_TREE 101
|
---|
61 | #define OPEN_DETAILS 102
|
---|
62 |
|
---|
63 | /* Folder save-restore keys */
|
---|
64 |
|
---|
65 | #define IDKEY_FDRCONTENTATTR 2900
|
---|
66 | #define IDKEY_FDRTREEATTR 2901
|
---|
67 | #define IDKEY_FDRCVLFONT 2902
|
---|
68 | #define IDKEY_FDRCVNFONT 2903
|
---|
69 | #define IDKEY_FDRCVIFONT 2904
|
---|
70 | #define IDKEY_FDRTVLFONT 2905
|
---|
71 | #define IDKEY_FDRTVNFONT 2906
|
---|
72 | #define IDKEY_FDRDETAILSATTR 2907
|
---|
73 | #define IDKEY_FDRDVFONT 2908
|
---|
74 | #define IDKEY_FDRDETAILSCLASS 2909
|
---|
75 | #define IDKEY_FDRICONPOS 2910
|
---|
76 | #define IDKEY_FDRINVISCOLUMNS 2914
|
---|
77 | #define IDKEY_FDRINCCLASS 2920
|
---|
78 | #define IDKEY_FDRINCNAME 2921
|
---|
79 | #define IDKEY_FDRFSYSSEARCHINFO 2922
|
---|
80 | #define IDKEY_FILTERCONTENT 2923
|
---|
81 | #define IDKEY_CNRBACKGROUND 2924
|
---|
82 | #define IDKEY_FDRINCCRITERIA 2925
|
---|
83 | #define IDKEY_FDRICONVIEWPOS 2926
|
---|
84 | #define IDKEY_FDRSORTCLASS 2927
|
---|
85 | #define IDKEY_FDRSORTATTRIBS 2928
|
---|
86 | #define IDKEY_FDRSORTINFO 2929
|
---|
87 | #define IDKEY_FDRSNEAKYCOUNT 2930 /*SNK*/
|
---|
88 | #define IDKEY_FDRLONGARRAY 2931
|
---|
89 | #define IDKEY_FDRSTRARRAY 2932
|
---|
90 | #define IDKEY_FDRCNRBACKGROUND 2933 // This key was only used in
|
---|
91 | // internal drivers 8.117-8.139
|
---|
92 | #define IDKEY_FDRBKGNDIMAGEFILE 2934
|
---|
93 | #define IDKEY_FDRBACKGROUND 2935
|
---|
94 | #define IDKEY_FDRSELFCLOSE 2936
|
---|
95 |
|
---|
96 | /* Miscellaneous */
|
---|
97 |
|
---|
98 | #define PPFONTSTRSIZE 20
|
---|
99 |
|
---|
100 | #define ICONPOSSIZE(pI) ( sizeof(ICONPOS) + strlen(pI->szIdentity) )
|
---|
101 | #define PARTIAL_FILLFOLDER_SEM_TIMEOUT 5 /* avoid wasteful */ //LD62414
|
---|
102 | /* SEM_INDEFEINTE_WAIT */ //LD62414
|
---|
103 | #define GETATTR(View) (View == OPEN_CONTENTS ? _ContentAttr : \
|
---|
104 | (View == OPEN_TREE ? _TreeAttr : _DetailsAttr))
|
---|
105 | #define FOLDER_DEFATTRS (CV_ICON | CA_OWNERPAINTBACKGROUND | \
|
---|
106 | CA_MIXEDTARGETEMPH | CA_OWNERDRAW)
|
---|
107 | #define FOLDER_DEFTREEATTRS (CV_ICON | CA_OWNERPAINTBACKGROUND | \
|
---|
108 | CV_TREE | CA_TREELINE | CA_OWNERDRAW)
|
---|
109 | #define FOLDER_DEFDETAILS (CV_DETAIL | CA_OWNERPAINTBACKGROUND | \
|
---|
110 | CV_MINI | CA_DETAILSVIEWTITLES | CA_MIXEDTARGETEMPH)
|
---|
111 | #define FOLDER_DEFSORT NULL
|
---|
112 |
|
---|
113 | /* wpSearchFolder structures */
|
---|
114 | typedef struct _SEARCH_INFO {
|
---|
115 | M_WPObject *ClassToBeFound;
|
---|
116 | BOOL fSkipExtendedSearchCriteria;
|
---|
117 | PVOID pvoidExtendedCriteria;
|
---|
118 | } SEARCH_INFO;
|
---|
119 | typedef SEARCH_INFO *PSEARCH_INFO;
|
---|
120 |
|
---|
121 | #define MENUBAR_ON 1
|
---|
122 | #define MENUBAR_OFF 0
|
---|
123 | #define MENUBAR_DEFAULT 2
|
---|
124 |
|
---|
125 |
|
---|
126 | /*--------------Migration------------*/
|
---|
127 | #define WPFolder_classObj WPFolderClassData.classObject
|
---|
128 | #define _WPFolder WPFolder_classObj
|
---|
129 |
|
---|
130 |
|
---|
131 | /*
|
---|
132 | * Declare the class data structure
|
---|
133 | */
|
---|
134 | SOMEXTERN struct WPFolderClassDataStructure {
|
---|
135 | SOMClass *classObject;
|
---|
136 | somMToken wpSetFldrFlags;
|
---|
137 | somMToken wpQueryFldrFlags;
|
---|
138 | somMToken wpSetFldrFont;
|
---|
139 | somMToken wpQueryFldrFont;
|
---|
140 | somMToken wpSetNextIconPos;
|
---|
141 | somMToken wpQueryNextIconPos;
|
---|
142 | somMToken wpPopulate;
|
---|
143 | somMToken wpAddToContent;
|
---|
144 | somMToken wpQueryContent;
|
---|
145 | somMToken wpAddFolderView1Page;
|
---|
146 | somMToken wpAddFolderView2Page;
|
---|
147 | somMToken wpAddFolderView3Page;
|
---|
148 | somMToken wpAddFolderIncludePage;
|
---|
149 | somMToken wpAddFolderSortPage;
|
---|
150 | somMToken wpAddFolderBackgroundPage;
|
---|
151 | somMToken wpInitIconPosData;
|
---|
152 | somMToken wpFreeIconPosData;
|
---|
153 | somMToken wpQueryIconPosition;
|
---|
154 | somMToken wpStoreIconPosData;
|
---|
155 | somMToken wpDeleteFromContent;
|
---|
156 | somMToken wpSetFldrAttr;
|
---|
157 | somMToken wpQueryFldrAttr;
|
---|
158 | somMToken wpSetFldrSort;
|
---|
159 | somMToken wpQueryFldrSort;
|
---|
160 | somMToken wpRestoreFldrRunObjs;
|
---|
161 | somMToken wpStoreFldrRunObjs;
|
---|
162 | somMToken withdrawn30;
|
---|
163 | somMToken withdrawn31;
|
---|
164 | somMToken wpDeleteContents;
|
---|
165 | somMToken wpQueryOpenFolders;
|
---|
166 | somMToken wpFolderPrivate1;
|
---|
167 | somMToken wpSearchFolder;
|
---|
168 | somMToken wpSetFldrDetailsClass;
|
---|
169 | somMToken wpQueryFldrDetailsClass;
|
---|
170 | somMToken wpRefresh;
|
---|
171 | somMToken wpSetDetailsColumnVisibility;
|
---|
172 | somMToken wpIsDetailsColumnVisible;
|
---|
173 | somMToken wpFolderPrivate2;
|
---|
174 | somMToken wpFolderPrivate3;
|
---|
175 | somMToken wpFolderPrivate4;
|
---|
176 | somMToken wpFolderPrivate5;
|
---|
177 | somMToken wpSetFldrSortClass;
|
---|
178 | somMToken wpQueryFldrSortClass;
|
---|
179 | somMToken wpSetSortAttribAvailable;
|
---|
180 | somMToken wpIsSortAttribAvailable;
|
---|
181 | somMToken wpFolderPrivate6;
|
---|
182 | somMToken wpContainsFolders;
|
---|
183 | somMToken wpFolderPrivate7;
|
---|
184 | somMToken wpQueryIconViewPos;
|
---|
185 | somMToken wpQueryDefaultView;
|
---|
186 | somMToken wpAddFirstChild;
|
---|
187 | somMToken wpFolderPrivate8;
|
---|
188 | somMToken wpHideFldrRunObjs;
|
---|
189 | somMToken wpFolderPrivate9;
|
---|
190 | somMToken wpFolderPrivate10;
|
---|
191 | somMToken wpFolderPrivate11;
|
---|
192 | somMToken wpFolderPrivate12;
|
---|
193 | somMToken wpFolderPrivate13;
|
---|
194 | somMToken wpFolderPrivate14;
|
---|
195 | somMToken wpFolderPrivate15;
|
---|
196 | somMToken wpFolderPrivate16;
|
---|
197 | somMToken wpFolderPrivate17;
|
---|
198 | somMToken wpFolderPrivate18;
|
---|
199 | somMToken wpFolderPrivate19;
|
---|
200 | somMToken wpFolderPrivate20;
|
---|
201 | somMToken wpFolderPrivate21;
|
---|
202 | somMToken wpFolderPrivate22;
|
---|
203 | somMToken wpFolderPrivate23;
|
---|
204 | somMToken wpModifyFldrFlags;
|
---|
205 | somMToken wpFolderPrivate24;
|
---|
206 | somMToken wpFolderPrivate25;
|
---|
207 | somMToken wpFolderPrivate26;
|
---|
208 | somMToken wpFolderPrivate27;
|
---|
209 | somMToken wpFolderPrivate28;
|
---|
210 | somMToken wpQueryIconTextBackgroundColor;
|
---|
211 | somMToken wpSetIconTextBackgroundColor;
|
---|
212 | somMToken wpFolderPrivate29;
|
---|
213 | somMToken wpFolderPrivate30;
|
---|
214 | somMToken wpFolderPrivate31;
|
---|
215 | somMToken wpQueryIconTextColor;
|
---|
216 | somMToken wpSetIconTextColor;
|
---|
217 | somMToken wpQueryIconTextVisibility;
|
---|
218 | somMToken wpSetIconTextVisibility;
|
---|
219 | somMToken wpAddFolderSelfClosePage;
|
---|
220 | somMToken wpFolderPrivate32;
|
---|
221 | somMToken wpFolderPrivate33;
|
---|
222 | somMToken wpFolderPrivate34;
|
---|
223 | somMToken wpFolderPrivate35;
|
---|
224 | somMToken wpFolderPrivate36;
|
---|
225 | somMToken wpFolderPrivate37;
|
---|
226 | somMToken wpFolderPrivate38;
|
---|
227 | somMToken wpFolderPrivate39;
|
---|
228 | somMToken wpFolderPrivate40;
|
---|
229 | somMToken wpFolderPrivate41;
|
---|
230 | somMToken wpFolderPrivate42;
|
---|
231 | somMToken wpAddFolderMenu2Page;
|
---|
232 | somMToken wpSetMenuBarVisibility;
|
---|
233 | somMToken wpQueryMenuBarVisibility;
|
---|
234 | somMToken wpFolderPrivate43;
|
---|
235 | somMToken wpFolderPrivate44;
|
---|
236 | somMToken wpFolderPrivate45;
|
---|
237 | somMToken wpFlushNotifications;
|
---|
238 | somMToken wpSetShadowTextColor;
|
---|
239 | somMToken wpQueryShadowTextColor;
|
---|
240 | somMToken wpSetFldrBackground;
|
---|
241 | somMToken wpQueryFldrBackground;
|
---|
242 | somMToken wpSetFldrGrid;
|
---|
243 | somMToken wpQueryFldrGrid;
|
---|
244 | } SOMDLINK WPFolderClassData;
|
---|
245 |
|
---|
246 | /*
|
---|
247 | * Declare the C specific class data structure
|
---|
248 | */
|
---|
249 | SOMEXTERN struct WPFolderCClassDataStructure {
|
---|
250 | somMethodTabs parentMtab;
|
---|
251 | somDToken instanceDataToken;
|
---|
252 | } SOMDLINK WPFolderCClassData;
|
---|
253 |
|
---|
254 |
|
---|
255 | /*
|
---|
256 | * Override method: wpSetup
|
---|
257 | */
|
---|
258 | #define WPFolder_wpSetup(somSelf,pszSetupString) \
|
---|
259 | WPObject_wpSetup(somSelf,pszSetupString)
|
---|
260 |
|
---|
261 |
|
---|
262 | /*
|
---|
263 | * New Method: wpAddToContent
|
---|
264 | */
|
---|
265 | typedef BOOL SOMLINK somTP_WPFolder_wpAddToContent(WPFolder *somSelf,
|
---|
266 | WPObject* Object);
|
---|
267 | //#pragma linkage(somTP_WPFolder_wpAddToContent, system)
|
---|
268 | typedef somTP_WPFolder_wpAddToContent *somTD_WPFolder_wpAddToContent;
|
---|
269 | #define somMD_WPFolder_wpAddToContent "::WPFolder::wpAddToContent"
|
---|
270 | #define WPFolder_wpAddToContent(somSelf,Object) \
|
---|
271 | (SOM_Resolve(somSelf, WPFolder, wpAddToContent) \
|
---|
272 | (somSelf,Object))
|
---|
273 | #ifndef SOMGD_wpAddToContent
|
---|
274 | #if (defined(_wpAddToContent) || defined(__wpAddToContent))
|
---|
275 | #undef _wpAddToContent
|
---|
276 | #undef __wpAddToContent
|
---|
277 | #define SOMGD_wpAddToContent 1
|
---|
278 | #else
|
---|
279 | #define _wpAddToContent WPFolder_wpAddToContent
|
---|
280 | #endif /* _wpAddToContent */
|
---|
281 | #endif /* SOMGD_wpAddToContent */
|
---|
282 |
|
---|
283 |
|
---|
284 | /*
|
---|
285 | * New Method: wpDeleteFromContent
|
---|
286 | */
|
---|
287 | typedef BOOL SOMLINK somTP_WPFolder_wpDeleteFromContent(WPFolder *somSelf,
|
---|
288 | WPObject* Object);
|
---|
289 | //#pragma linkage(somTP_WPFolder_wpDeleteFromContent, system)
|
---|
290 | typedef somTP_WPFolder_wpDeleteFromContent *somTD_WPFolder_wpDeleteFromContent;
|
---|
291 | #define somMD_WPFolder_wpDeleteFromContent "::WPFolder::wpDeleteFromContent"
|
---|
292 | #define WPFolder_wpDeleteFromContent(somSelf,Object) \
|
---|
293 | (SOM_Resolve(somSelf, WPFolder, wpDeleteFromContent) \
|
---|
294 | (somSelf,Object))
|
---|
295 | #ifndef SOMGD_wpDeleteFromContent
|
---|
296 | #if (defined(_wpDeleteFromContent) || defined(__wpDeleteFromContent))
|
---|
297 | #undef _wpDeleteFromContent
|
---|
298 | #undef __wpDeleteFromContent
|
---|
299 | #define SOMGD_wpDeleteFromContent 1
|
---|
300 | #else
|
---|
301 | #define _wpDeleteFromContent WPFolder_wpDeleteFromContent
|
---|
302 | #endif /* _wpDeleteFromContent */
|
---|
303 | #endif /* SOMGD_wpDeleteFromContent */
|
---|
304 |
|
---|
305 |
|
---|
306 |
|
---|
307 | /******************************************************/
|
---|
308 |
|
---|
309 |
|
---|
310 |
|
---|
311 |
|
---|
312 | #pragma SOMAsDefault(on)
|
---|
313 | class WPFolder : public WPFileSystem {
|
---|
314 |
|
---|
315 | #pragma SOMClassName(*, "WPFolder")
|
---|
316 | #pragma SOMNoMangling(*)
|
---|
317 | #pragma SOMNonDTS(*)
|
---|
318 |
|
---|
319 | #pragma SOMClassName (WPFolder, "WPFolder")
|
---|
320 | // #pragma SOMMetaClass (WPFolder, "M_WPFolder")
|
---|
321 | #pragma SOMClassVersion (WPFolder, 1, 2)
|
---|
322 | #pragma SOMCallstyle (oidl)
|
---|
323 | #pragma SOMAsDefault(off)
|
---|
324 | #pragma SOMAsDefault(pop)
|
---|
325 | public :
|
---|
326 | virtual BOOL wpSetFldrFlags(ULONG ulFlags);
|
---|
327 | virtual ULONG wpQueryFldrFlags();
|
---|
328 | virtual BOOL wpSetFldrFont(PSZ pszFont, ULONG ulView);
|
---|
329 | virtual PSZ wpQueryFldrFont(ULONG ulView);
|
---|
330 | virtual BOOL wpSetFldrAttr(ULONG Attr, ULONG ulView);
|
---|
331 | virtual ULONG wpQueryFldrAttr(ULONG ulView);
|
---|
332 | virtual BOOL wpSetNextIconPos(PPOINTL pptl);
|
---|
333 | virtual PPOINTL wpQueryNextIconPos();
|
---|
334 | virtual BOOL wpPopulate(ULONG ulReserved, PSZ pszPath, BOOL fFoldersOnly);
|
---|
335 | virtual WPObject* wpQueryContent(WPObject* Object, ULONG ulOption);
|
---|
336 | virtual ULONG wpAddFolderView1Page(HWND hwndNotebook);
|
---|
337 | virtual ULONG wpAddFolderView2Page(HWND hwndNotebook);
|
---|
338 | virtual ULONG wpAddFolderView3Page(HWND hwndNotebook);
|
---|
339 | virtual ULONG wpAddFolderIncludePage(HWND hwndNotebook);
|
---|
340 | virtual ULONG wpAddFolderSortPage(HWND hwndNotebook);
|
---|
341 | virtual ULONG wpAddFolderBackgroundPage(HWND hwndNotebook);
|
---|
342 | virtual ULONG wpAddFolderSelfClosePage(HWND hwndNotebook);
|
---|
343 | virtual BOOL wpInitIconPosData();
|
---|
344 | virtual void wpFreeIconPosData();
|
---|
345 | virtual BOOL wpStoreIconPosData(PICONPOS pIconPos, ULONG cbSize);
|
---|
346 | virtual BOOL wpQueryIconPosition(PSZ pszIdentity, PPOINTL pptl,
|
---|
347 | PULONG pIndex);
|
---|
348 | virtual BOOL wpSetFldrSort(PVOID pSortRecord, ULONG ulView,
|
---|
349 | ULONG ulType);
|
---|
350 | virtual PVOID wpQueryFldrSort(ULONG ulView, ULONG ulType);
|
---|
351 | virtual BOOL wpRestoreFldrRunObjs();
|
---|
352 | virtual BOOL wpStoreFldrRunObjs(ULONG ulType);
|
---|
353 | virtual BOOL wpHideFldrRunObjs(BOOL fHide);
|
---|
354 | virtual ULONG wpDeleteContents(ULONG fConfirmations);
|
---|
355 | virtual BOOL wpSetFldrDetailsClass(M_WPObject* Class);
|
---|
356 | virtual M_WPObject* wpQueryFldrDetailsClass();
|
---|
357 | virtual BOOL wpSearchFolder(PSZ pszName, ULONG ulSearchType,
|
---|
358 | ULONG ulLen, PSEARCH_INFO pInfo,
|
---|
359 | WPFolder* ResultFolder);
|
---|
360 | virtual BOOL wpContainsFolders(BOOL* pfSubFolders);
|
---|
361 | virtual WPObject* wpQueryOpenFolders(ULONG ulOption);
|
---|
362 | virtual BOOL wpModifyFldrFlags(ULONG ulFlags, ULONG ulFlagMask);
|
---|
363 | virtual BOOL wpAddToContent(WPObject* Object);
|
---|
364 | virtual BOOL wpDeleteFromContent(WPObject* Object);
|
---|
365 | virtual BOOL wpSetDetailsColumnVisibility(ULONG index, BOOL Visible);
|
---|
366 | virtual BOOL wpIsDetailsColumnVisible(ULONG index);
|
---|
367 | virtual BOOL wpSetFldrSortClass(M_WPObject* Class);
|
---|
368 | virtual M_WPObject* wpQueryFldrSortClass();
|
---|
369 | virtual BOOL wpSetSortAttribAvailable(ULONG index, BOOL Available);
|
---|
370 | virtual BOOL wpIsSortAttribAvailable(ULONG index);
|
---|
371 | virtual char* wpQueryIconViewPos();
|
---|
372 | virtual WPObject* wpAddFirstChild();
|
---|
373 | virtual void wpInitData();
|
---|
374 | virtual void wpUnInitData();
|
---|
375 | virtual BOOL wpFree();
|
---|
376 | virtual ULONG wpDelete(ULONG fConfirmations);
|
---|
377 | virtual ULONG wpConfirmDelete(ULONG fConfirmations);
|
---|
378 | virtual BOOL wpSaveState();
|
---|
379 | virtual BOOL wpRestoreState(ULONG ulReserved);
|
---|
380 | virtual BOOL wpMenuItemSelected(HWND hwndFrame, ULONG ulMenuId);
|
---|
381 | virtual BOOL wpModifyPopupMenu(HWND hwndMenu, HWND hwndCnr,
|
---|
382 | ULONG iPosition);
|
---|
383 | virtual BOOL wpAddSettingsPages(HWND hwndNotebook);
|
---|
384 | virtual HWND wpOpen(HWND hwndCnr, ULONG ulView, ULONG param);
|
---|
385 | virtual BOOL wpSetup(PSZ pszSetupString);
|
---|
386 | virtual BOOL wpMoveObject(WPFolder* Folder);
|
---|
387 | virtual MRESULT wpDrop(HWND hwndCnr, PDRAGINFO pdrgInfo,
|
---|
388 | PDRAGITEM pdrgItem);
|
---|
389 | virtual MRESULT wpDragOver(HWND hwndCnr, PDRAGINFO pdrgInfo);
|
---|
390 | virtual BOOL wpMenuItemHelpSelected(ULONG MenuId);
|
---|
391 | virtual ULONG wpAddFile3Page(HWND hwndNotebook);
|
---|
392 | virtual ULONG wpAddFile2Page(HWND hwndNotebook);
|
---|
393 | virtual BOOL wpFormatDragItem(PDRAGITEM pdrgItem);
|
---|
394 | virtual MRESULT wpRender(PDRAGTRANSFER pdxfer);
|
---|
395 | virtual BOOL wpRefresh(ULONG ulView, PVOID pReserved);
|
---|
396 | virtual ULONG wpFilterPopupMenu(ULONG ulFlags, HWND hwndCnr,
|
---|
397 | BOOL fMultiSelect);
|
---|
398 | virtual ULONG wpQueryDefaultView();
|
---|
399 | virtual MRESULT wpRenderComplete(PDRAGTRANSFER pdxfer, ULONG ulResult);
|
---|
400 | virtual BOOL wpQueryDefaultHelp(PULONG pHelpPanelId, PSZ HelpLibrary);
|
---|
401 | virtual void wpObjectReady(ULONG ulCode, WPObject* refObject);
|
---|
402 | virtual ULONG wpAddObjectWindowPage(HWND hwndNotebook);
|
---|
403 | virtual BOOL wpSetIconData(PICONINFO pIconInfo);
|
---|
404 | /* These are from Warp 4 */
|
---|
405 | virtual BOOL wpSetMenuBarVisibility(ULONG ulVisibility);
|
---|
406 | virtual ULONG wpQueryMenuBarVisibility();
|
---|
407 |
|
---|
408 | #pragma SOMReleaseOrder ( \
|
---|
409 | "wpSetFldrFlags", \
|
---|
410 | "wpQueryFldrFlags", \
|
---|
411 | "wpSetFldrFont", \
|
---|
412 | "wpQueryFldrFont", \
|
---|
413 | "wpSetNextIconPos", \
|
---|
414 | "wpQueryNextIconPos", \
|
---|
415 | "wpPopulate", \
|
---|
416 | "wpAddToContent", \
|
---|
417 | "wpQueryContent", \
|
---|
418 | "wpAddFolderView1Page", \
|
---|
419 | "wpAddFolderView2Page", \
|
---|
420 | "wpAddFolderView3Page", \
|
---|
421 | "wpAddFolderIncludePage", \
|
---|
422 | "wpAddFolderSortPage", \
|
---|
423 | "wpAddFolderBackgroundPage", \
|
---|
424 | "wpInitIconPosData", \
|
---|
425 | "wpFreeIconPosData", \
|
---|
426 | "wpQueryIconPosition", \
|
---|
427 | "wpStoreIconPosData", \
|
---|
428 | "wpDeleteFromContent", \
|
---|
429 | "wpSetFldrAttr", \
|
---|
430 | "wpQueryFldrAttr", \
|
---|
431 | "wpSetFldrSort", \
|
---|
432 | "wpQueryFldrSort", \
|
---|
433 | "wpRestoreFldrRunObjs", \
|
---|
434 | "wpStoreFldrRunObjs", \
|
---|
435 | *, \
|
---|
436 | *, \
|
---|
437 | "wpDeleteContents", \
|
---|
438 | "wpQueryOpenFolders", \
|
---|
439 | *, \
|
---|
440 | "wpSearchFolder", \
|
---|
441 | "wpSetFldrDetailsClass", \
|
---|
442 | "wpQueryFldrDetailsClass", \
|
---|
443 | "wpSetDetailsColumnVisibility", \
|
---|
444 | "wpIsDetailsColumnVisible", \
|
---|
445 | *, \
|
---|
446 | *, \
|
---|
447 | *, \
|
---|
448 | *, \
|
---|
449 | "wpSetFldrSortClass", \
|
---|
450 | "wpQueryFldrSortClass", \
|
---|
451 | "wpSetSortAttribAvailable", \
|
---|
452 | "wpIsSortAttribAvailable", \
|
---|
453 | *, \
|
---|
454 | "wpContainsFolders", \
|
---|
455 | *, \
|
---|
456 | "wpQueryIconViewPos", \
|
---|
457 | "wpAddFirstChild", \
|
---|
458 | *, \
|
---|
459 | "wpHideFldrRunObjs", \
|
---|
460 | *, \
|
---|
461 | *, \
|
---|
462 | *, \
|
---|
463 | *, \
|
---|
464 | *, \
|
---|
465 | *, \
|
---|
466 | *, \
|
---|
467 | *, \
|
---|
468 | *, \
|
---|
469 | *, \
|
---|
470 | *, \
|
---|
471 | *, \
|
---|
472 | *, \
|
---|
473 | *, \
|
---|
474 | *, \
|
---|
475 | "wpModifyFldrFlags", \
|
---|
476 | *, \
|
---|
477 | *, \
|
---|
478 | *, \
|
---|
479 | *, \
|
---|
480 | *, \
|
---|
481 | *, \
|
---|
482 | *, \
|
---|
483 | *, \
|
---|
484 | *, \
|
---|
485 | *, \
|
---|
486 | *, \
|
---|
487 | *, \
|
---|
488 | *, \
|
---|
489 | *, \
|
---|
490 | "wpAddFolderSelfClosePage", \
|
---|
491 | *, \
|
---|
492 | *, \
|
---|
493 | *, \
|
---|
494 | *, \
|
---|
495 | *, \
|
---|
496 | *, \
|
---|
497 | *, \
|
---|
498 | *, \
|
---|
499 | *, \
|
---|
500 | *, \
|
---|
501 | *,\
|
---|
502 | \
|
---|
503 | *, \
|
---|
504 | "wpSetMenuBarVisibility", \
|
---|
505 | "wpQueryMenuBarVisibility", \
|
---|
506 | *, \
|
---|
507 | *, \
|
---|
508 | *, \
|
---|
509 | *, \
|
---|
510 | *, \
|
---|
511 | *, \
|
---|
512 | *, \
|
---|
513 | *, \
|
---|
514 | *, \
|
---|
515 | *)
|
---|
516 |
|
---|
517 | };
|
---|
518 | #pragma SOMAsDefault(pop)
|
---|
519 |
|
---|
520 | #pragma SOMNonDTS(pop)
|
---|
521 | /* End WPFolder */
|
---|
522 |
|
---|
523 |
|
---|
524 |
|
---|
525 |
|
---|
526 | /* Start Class M_WPFolder */
|
---|
527 |
|
---|
528 | #include <wpfsys.hh>
|
---|
529 | #include <somcls.hh>
|
---|
530 | #pragma SOMNonDTS(on)
|
---|
531 |
|
---|
532 | #pragma SOMAsDefault(on)
|
---|
533 |
|
---|
534 | /*
|
---|
535 | * Declare the class data structure
|
---|
536 | */
|
---|
537 | SOMEXTERN struct M_WPFolderClassDataStructure {
|
---|
538 | SOMClass *classObject;
|
---|
539 | somMToken wpclsFolderPrivate1;
|
---|
540 | somMToken wpclsFolderPrivate2;
|
---|
541 | somMToken wpclsQueryOpenFolders;
|
---|
542 | somMToken wpclsFolderPrivate3;
|
---|
543 | somMToken wpclsQueryIconDataN;
|
---|
544 | somMToken wpclsQueryIconN;
|
---|
545 | } SOMDLINK M_WPFolderClassData;
|
---|
546 |
|
---|
547 | /*
|
---|
548 | * Declare the C specific class data structure
|
---|
549 | */
|
---|
550 | SOMEXTERN struct M_WPFolderCClassDataStructure {
|
---|
551 | somMethodTabs parentMtab;
|
---|
552 | somDToken instanceDataToken;
|
---|
553 | } SOMDLINK M_WPFolderCClassData;
|
---|
554 |
|
---|
555 |
|
---|
556 | /*
|
---|
557 | * New Method: wpclsQueryOpenFolders
|
---|
558 | */
|
---|
559 | typedef WPFolder* SOMLINK somTP_M_WPFolder_wpclsQueryOpenFolders(M_WPFolder *somSelf,
|
---|
560 | WPFolder* Folder,
|
---|
561 | ULONG ulOption,
|
---|
562 | BOOL fLock);
|
---|
563 | //#pragma linkage(somTP_M_WPFolder_wpclsQueryOpenFolders, system)
|
---|
564 | typedef somTP_M_WPFolder_wpclsQueryOpenFolders *somTD_M_WPFolder_wpclsQueryOpenFolders;
|
---|
565 | #define somMD_M_WPFolder_wpclsQueryOpenFolders "::M_WPFolder::wpclsQueryOpenFolders"
|
---|
566 | #define M_WPFolder_wpclsQueryOpenFolders(somSelf,Folder,ulOption,fLock) \
|
---|
567 | (SOM_Resolve(somSelf, M_WPFolder, wpclsQueryOpenFolders) \
|
---|
568 | (somSelf,Folder,ulOption,fLock))
|
---|
569 | #ifndef SOMGD_wpclsQueryOpenFolders
|
---|
570 | #if (defined(_wpclsQueryOpenFolders) || defined(__wpclsQueryOpenFolders))
|
---|
571 | #undef _wpclsQueryOpenFolders
|
---|
572 | #undef __wpclsQueryOpenFolders
|
---|
573 | #define SOMGD_wpclsQueryOpenFolders 1
|
---|
574 | #else
|
---|
575 | #define _wpclsQueryOpenFolders M_WPFolder_wpclsQueryOpenFolders
|
---|
576 | #endif /* _wpclsQueryOpenFolders */
|
---|
577 | #endif /* SOMGD_wpclsQueryOpenFolders */
|
---|
578 |
|
---|
579 | class M_WPFolder : public M_WPFileSystem {
|
---|
580 |
|
---|
581 | #pragma SOMClassName(*, "M_WPFolder")
|
---|
582 | #pragma SOMNoMangling(*)
|
---|
583 | #pragma SOMNonDTS(*)
|
---|
584 |
|
---|
585 | #pragma SOMClassVersion (M_WPFolder, 1, 2)
|
---|
586 | #pragma SOMCallstyle (oidl)
|
---|
587 | #pragma SOMAsDefault(off)
|
---|
588 | #pragma SOMAsDefault(pop)
|
---|
589 | public :
|
---|
590 | virtual ULONG wpclsQueryIconDataN(ICONINFO* pIconInfo, ULONG ulIconIndex);
|
---|
591 | virtual HPOINTER wpclsQueryIconN(ULONG ulIconIndex);
|
---|
592 | virtual WPFolder* wpclsQueryOpenFolders(WPFolder* Folder,
|
---|
593 | ULONG ulOption,
|
---|
594 | BOOL fLock);
|
---|
595 | virtual void wpclsInitData();
|
---|
596 | virtual ULONG wpclsQueryDefaultView();
|
---|
597 | virtual PSZ wpclsQueryTitle();
|
---|
598 | virtual ULONG wpclsQueryIconData(PICONINFO pIconInfo);
|
---|
599 | virtual ULONG wpclsQueryStyle();
|
---|
600 | virtual BOOL wpclsQueryDefaultHelp(PULONG pHelpPanelId,
|
---|
601 | PSZ pszHelpLibrary);
|
---|
602 | #pragma SOMReleaseOrder ( \
|
---|
603 | *, \
|
---|
604 | *, \
|
---|
605 | "wpclsQueryOpenFolders", \
|
---|
606 | *, \
|
---|
607 | "wpclsQueryIconDataN", \
|
---|
608 | "wpclsQueryIconN")
|
---|
609 | };
|
---|
610 | #pragma SOMMetaClass (WPFolder, "M_WPFolder")
|
---|
611 |
|
---|
612 | #pragma SOMAsDefault(pop)
|
---|
613 |
|
---|
614 | #pragma SOMNonDTS(pop)
|
---|
615 | /* End M_WPFolder */
|
---|
616 | #endif /* _DTS_HH_INCLUDED_wpfolder */
|
---|