1 | #ifndef _MENUFOLDER_HH
|
---|
2 | #define _MENUFOLDER_HH
|
---|
3 |
|
---|
4 |
|
---|
5 | #pragma SOMAsDefault(on)
|
---|
6 | #include <som.hh>
|
---|
7 | #include <somcls.hh>
|
---|
8 | #pragma SOMNoMangling(on)
|
---|
9 | #include <wpfolder.hh>
|
---|
10 | #include <wppgm.hh>
|
---|
11 |
|
---|
12 | #pragma SOMAsDefault (off)
|
---|
13 | class CONTEXTITEM;
|
---|
14 |
|
---|
15 | class CWMenuFolder;
|
---|
16 |
|
---|
17 |
|
---|
18 |
|
---|
19 | // #pragma SOMAsDefault(off)
|
---|
20 |
|
---|
21 | class MENUFOLDERINFO
|
---|
22 | {
|
---|
23 | public:
|
---|
24 | SOMClass * somClass;
|
---|
25 | SOMClass * tempClass;
|
---|
26 | CWMenuFolder *thisPtr;
|
---|
27 | PFNWP oldContainerProc;
|
---|
28 | BOOL tempMenuEnabled;
|
---|
29 | };
|
---|
30 | #pragma SOMAsDefault(pop)
|
---|
31 |
|
---|
32 |
|
---|
33 | class M_CWMenuFolder:public M_WPFolder
|
---|
34 | {
|
---|
35 | #pragma SOMClassName(*,"M_CWMenuFolder")
|
---|
36 | #pragma SOMClassVersion(*,1,2)
|
---|
37 | #pragma SOMCallstyle(oidl)
|
---|
38 | public:
|
---|
39 | virtual PSZ wpclsQueryTitle();
|
---|
40 | virtual ULONG wpclsQueryIconData(PICONINFO pIconInfo);
|
---|
41 | virtual ULONG wpclsQueryIconDataN(PICONINFO pIconInfo, ULONG ulIconIndex);
|
---|
42 | virtual ULONG wpclsQueryDefaultHelp(PULONG HelpPanelId,PSZ HelpLibrary);
|
---|
43 | #pragma SOMReleaseOrder()
|
---|
44 | };
|
---|
45 |
|
---|
46 | class CWMenuFolder:public WPFolder
|
---|
47 | {
|
---|
48 | #pragma SOMClassName(*,"CWMenuFolder")
|
---|
49 | #pragma SOMMetaClass(CWMenuFolder,"M_CWMenuFolder")
|
---|
50 | #pragma SOMClassVersion(CWMenuFolder,1,2)
|
---|
51 | #pragma SOMCallstyle(oidl)
|
---|
52 | private:
|
---|
53 | CONTEXTITEM * ptrCItem;
|
---|
54 | BOOL bMenuEnabled;
|
---|
55 | ULONG ulEnable;
|
---|
56 | ULONG ulLastMenuIDPrivate;
|
---|
57 | virtual void mfPrivateFreeMenu(void);
|
---|
58 | public:
|
---|
59 | virtual CONTEXTITEM * mfPrivateBuildMenu(CWMenuFolder * wpFolder, ULONG * ulLastMenuId);
|
---|
60 | virtual void mfInsertMItems( HWND hwndMenu,ULONG iPosition);
|
---|
61 | virtual void wpInitData();
|
---|
62 | virtual MRESULT wpDragOver(HWND hwndCnr,PDRAGINFO pDragInfo);
|
---|
63 | virtual MRESULT wpDrop(HWND hwndCnr,PDRAGINFO pDragInfo,PDRAGITEM pDragItem);
|
---|
64 | virtual BOOL wpAddSettingsPages(HWND hwndNotebook);
|
---|
65 | virtual BOOL wpRestoreState(ULONG ulReserved);
|
---|
66 | virtual BOOL wpSaveState();
|
---|
67 | virtual BOOL wpSetupOnce(PSZ pSetupString);
|
---|
68 | virtual BOOL wpSetup(PSZ pSetupString);
|
---|
69 | virtual void wpCopiedFromTemplate();
|
---|
70 | virtual BOOL wpDeleteFromContent(WPObject *object);
|
---|
71 | void mfFreeMenu();
|
---|
72 | virtual BOOL mfQueryMenuEnabled() {return bMenuEnabled;};
|
---|
73 | void mfSetMenuEnabled(BOOL bEnabled){bMenuEnabled=bEnabled;};
|
---|
74 | virtual ULONG mfInsertMenuItems(HWND hwndMenu,ULONG iPosition, ULONG ulLastMenuId);
|
---|
75 | virtual BOOL mfCheckMenuItems(WPObject *wpObject,ULONG ulMenuId);
|
---|
76 | virtual ULONG mfAddClassChoosePage(HWND hwndNotebook);
|
---|
77 |
|
---|
78 | #pragma SOMReleaseOrder(\
|
---|
79 | "mfPrivateBuildMenu",\
|
---|
80 | "mfInsertMItems",\
|
---|
81 | "mfFreeMenu",\
|
---|
82 | "mfQueryMenuEnabled",\
|
---|
83 | "mfSetMenuEnabled",\
|
---|
84 | "mfInsertMenuItems",\
|
---|
85 | "mfCheckMenuItems",\
|
---|
86 | "mfAddClassChoosePage",\
|
---|
87 | "mfPrivateFreeMenu")
|
---|
88 | };
|
---|
89 |
|
---|
90 | #endif
|
---|
91 |
|
---|
92 |
|
---|
93 |
|
---|
94 |
|
---|
95 |
|
---|
96 |
|
---|
97 |
|
---|
98 |
|
---|
99 |
|
---|
100 |
|
---|
101 |
|
---|
102 |
|
---|
103 |
|
---|
104 |
|
---|
105 |
|
---|
106 |
|
---|
107 |
|
---|
108 |
|
---|
109 |
|
---|
110 |
|
---|
111 |
|
---|
112 |
|
---|
113 |
|
---|
114 |
|
---|
115 |
|
---|
116 |
|
---|