home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / warptlk3.zip / TOOLKIT / IDL / WPLNCHPD.IDL < prev    next >
Text File  |  1995-08-30  |  6KB  |  161 lines

  1. //  Module Header
  2. //
  3. //  Module Name: WPLNCHPD
  4. //
  5. //  OS/2 Presentation Manager Workplace class definitions
  6. //
  7. //  Copyright (c) International Business Machines Corporation 1991, 1992, 1994
  8. //
  9. #ifndef wplnchpd_idl
  10. #define wplnchpd_idl
  11. #include "wpabs.idl"
  12. #include <somcls.idl>
  13. struct tag_Actions
  14. {
  15.     PSZ pszTitle;
  16.     ULONG ulMenuId;
  17.     HPOINTER hIcon;
  18. };
  19. typedef tag_Actions ACTIONS;
  20. typedef tag_Actions * PACTIONS;
  21. struct tag_FPINFO
  22. {
  23.      ULONG       ulNumObjects;
  24.      HOBJECT    *phobjects;
  25.      tag_FPINFO *slideups;
  26.      HWND        hwndSlideup;
  27. };
  28. typedef tag_FPINFO  FPINFO;
  29. typedef tag_FPINFO *PFPINFO;
  30. interface M_WPLaunchPad;
  31. interface WPLaunchPad : WPAbstract
  32. {
  33.   ULONG wpAddLaunchPadPage1(in HWND hwndNotebook);
  34.   ULONG wpAddLaunchPadPage2(in HWND hwndNotebook);
  35.   BOOL wpQueryCloseDrawer();
  36.   BOOL wpQueryDisplayVertical();
  37.   BOOL wpQueryDisplayText();
  38.   BOOL wpQueryDisplayTextInDrawers();
  39.   BOOL wpQueryDisplaySmallIcons();
  40.   BOOL wpQueryHideLaunchPadFrameCtls();
  41.   BOOL wpQueryFloatOnTop();
  42.   VOID wpSetCloseDrawer(in BOOL fState);
  43.   VOID wpSetDisplayVertical(in BOOL fState);
  44.   VOID wpSetDisplayText(in BOOL fState);
  45.   VOID wpSetDisplayTextInDrawers(in BOOL fState);
  46.   VOID wpSetDisplaySmallIcons(in BOOL fState);
  47.   VOID wpSetHideLaunchPadFrameCtls(in BOOL fState);
  48.   VOID wpSetFloatOnTop(in BOOL fState);
  49.   PACTIONS wpQueryActionButtons(in PULONG pulNumActions);
  50.   HOBJECT* wpQueryObjectList(in ULONG ulDrawer,
  51.                              in PULONG pulNumObjects);
  52.   BOOL wpSetObjectListFromStrings(in ULONG ulDrawer,
  53.                                   in PSZ pszSetup,
  54.                                   in ULONG ulAfter);
  55.   BOOL wpSetObjectListFromHObjects(in ULONG ulDrawer,
  56.                                    in ULONG ulNumObjects,
  57.                                    inout HOBJECT phobjects,
  58.                                    in ULONG ulAfter);
  59.   BOOL wpSetObjectListFromObjects(in ULONG ulDrawer,
  60.                                   in ULONG ulNumObjects,
  61.                                   inout WPObject objects,
  62.                                   in ULONG ulAfter);
  63.   VOID wpSetDrawerHWND(in ULONG ulDrawer,
  64.                         in HWND hwnd);
  65.   HWND wpQueryDrawerHWND(in ULONG ulDrawer);
  66.   ULONG wpQueryActionButtonStyle( );
  67.   BOOL wpSetActionButtonStyle( in ULONG ulStyle );
  68.   VOID wpRefreshDrawer(in ULONG ulDrawer);
  69. #ifdef __SOMIDL__
  70.   implementation {
  71.     releaseorder: wpAddLaunchPadPage1,wpQueryCloseDrawer,wpQueryDisplayVertical,
  72.                   wpQueryDisplayText,wpQueryDisplaySmallIcons,wpQueryHideLaunchPadFrameCtls,
  73.                   wpQueryFloatOnTop,wpSetCloseDrawer,wpSetDisplayVertical,
  74.                   wpSetDisplayText,wpSetDisplaySmallIcons,wpSetHideLaunchPadFrameCtls,
  75.                   wpSetFloatOnTop,wpQueryActionButtons,wpQueryObjectList,
  76.                   wpSetObjectListFromStrings,wpSetObjectListFromObjects,
  77.                   wpSetObjectListFromHObjects,wpSetDrawerHWND,wpQueryDrawerHWND,
  78.                   wpRefreshDrawer, wpSetDisplayTextInDrawers,
  79.                   wpQueryDisplayTextInDrawers, wpQueryActionButtonStyle,
  80.                   wpSetActionButtonStyle,wpAddLaunchPadPage2;
  81.     externalstem = WPlnchpd;
  82.     externalprefix = lnchpd_;
  83.     majorversion = 1;
  84.     minorversion = 2;
  85.     filestem = wplnchpd;
  86.     metaclass = M_WPLaunchPad;
  87.     dllname = "pmwp.dll";
  88.     callstyle = oidl;
  89.     passthru C_h_before =  ""
  90. "        typedef struct tag_Actions {"
  91. "                PSZ pszTitle;"
  92. "                ULONG ulMenuId;"
  93. "                HPOINTER hIcon;"
  94. "        } ACTIONS, *PACTIONS;"
  95. ""
  96. "        #define ADD_OBJECT_FIRST ((ULONG)(-1))"
  97. "        #define ADD_OBJECT_LAST  ((ULONG)(-2))"
  98. ""
  99. "        #define ACTION_BUTTONS_TEXT   ((ULONG)0)"
  100. "        #define ACTION_BUTTONS_OFF    ((ULONG)1)"
  101. "        #define ACTION_BUTTONS_MINI   ((ULONG)2)"
  102. "        #define ACTION_BUTTONS_NORMAL ((ULONG)3)"
  103. "";
  104.     passthru C_ih_before =  ""
  105. "        typedef struct tag_FPINFO {"
  106. "                ULONG ulNumObjects;"
  107. "                HOBJECT *phobjects;"
  108. "                struct tag_FPINFO *slideups;"
  109. "                HWND hwndSlideup;"
  110. "        } FPINFO, *PFPINFO;"
  111. "";
  112.     BOOL fCloseDrawer;
  113.     BOOL fDisplayVertical;
  114.     BOOL fDisplaytext;
  115.     BOOL fDisplaytextInDrawers;
  116.     BOOL fSmallIcons;
  117.     BOOL fHideCtls;
  118.     BOOL fFloatOnTop;
  119.     ULONG ulActionButtonStyle;
  120.     ULONG ulNumActions;
  121.     PACTIONS pActions;
  122.     FPINFO fpInfo;
  123.     BOOL fInRestoreState;
  124.     wpOpen: override;
  125.     wpMenuItemHelpSelected: override;
  126.     wpInitData: override;
  127.     wpUnInitData: override;
  128.     wpSetup: override;
  129.     wpSaveState: override;
  130.     wpRestoreState: override;
  131.     wpMenuItemSelected: override;
  132.     wpModifyPopupMenu: override;
  133.     wpAddSettingsPages: override;
  134.     wpAddObjectWindowPage: override;
  135.     wpQueryConcurrentView: override;
  136.     wpDragOver: override;
  137.     wpDrop: override;
  138.     somDefaultInit: override;              somDestruct:    override;            };
  139. #endif /* __SOMIDL__ */
  140. };
  141. interface M_WPLaunchPad : M_WPAbstract
  142. {
  143. #ifdef __SOMIDL__
  144.   implementation {
  145.     externalstem = WPlnchpd;
  146.     externalprefix = lnchpdM_;
  147.     majorversion = 1;
  148.     minorversion = 2;
  149.     filestem = wplnchpd;
  150.     dllname = "pmwp.dll";
  151.     callstyle = oidl;
  152.     wpclsQueryTitle: override;
  153.     wpclsQueryDefaultHelp: override;
  154.     wpclsQueryDefaultView: override;
  155.     wpclsQueryStyle: override;
  156.     wpclsQueryIconData: override;
  157.   };
  158. #endif /* __SOMIDL__ */
  159. };
  160. #endif  /* wplnchpd_idl */
  161.