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

  1. //  Module Header
  2. //
  3. //  Module Name: WPRPRINT
  4. //
  5. //  OS/2 Presentation Manager Workplace class definitions
  6. //
  7. //  Copyright (c) International Business Machines Corporation 1991, 1992
  8. //
  9. #ifndef wprprint_idl
  10. #define wprprint_idl
  11. #include "wpprint.idl"
  12. #include <somcls.idl>
  13. interface M_WPRPrinter;
  14. interface WPRPrinter : WPPrinter
  15. {
  16.   BOOL wpAddNetworkPage(in HWND hwndNotebook);
  17.   BOOL wpQueryNetworkId(in PSZ pBuf, in PULONG pcbBuf);
  18.   BOOL wpQueryLocalAlias(in PSZ pBuf, in PULONG pcbBuf);
  19. #ifdef __SOMIDL__
  20.   implementation {
  21.     releaseorder: wpSetResNetIdentity,wpQueryResNetIdentity,wpAddNetworkPage,
  22.                   wpCreateAnotherPrinter,wpNetworkConnect,wpNetworkDisconnect,
  23.                   wpNetworkLogoff,wpNetworkLogon,wpAuthenticate,wpQueryNetworkName,
  24.                   wpQueryServerName,wpQueryResourceName,wpParseNetId,
  25.                   wpAddObjectGeneralPage,
  26.                   wpQueryNetworkId,wpQueryLocalAlias;
  27.     externalstem = WPrprint;
  28.     local;
  29.     externalprefix = rprt_;
  30.     majorversion = 1;
  31.     minorversion = 1;
  32.     filestem = wprprint;
  33.     metaclass = M_WPRPrinter;
  34.     callstyle = oidl;
  35.     passthru C_ih =     ""
  36. ""
  37. "#define RPRT_MAXPORTLEN     6 // max size for a port name"
  38. "#define IDKEY_NETID         1 // save key"
  39. "#define DebugBox(title, text) \"
  40. "                 WinMessageBox(HWND_DESKTOP,HWND_DESKTOP, (PSZ) text , \"
  41. "                 (PSZ) title, 20, MB_OK | MB_INFORMATION )";
  42.     passthru C_h =     " "
  43. " /* common context menu ids */ "
  44. "#define WPPOICM_RPRTMENU            9017"
  45. "#define WPPOIDM_RPRTACCESSANOTHER   9018"
  46. "#define WPPOIDM_RPRTCONNECT         9019"
  47. "#define WPPOIDM_RPRTDISCONNECT      9020"
  48. "#define WPPOIDM_RPRTLOGON           9021"
  49. "#define WPPOIDM_RPRTLOGOFF          9022"
  50. "#define WPPOIDM_RPRTREMADMIN        9024"
  51. "#define WPPOIDM_RPRTREMADMIN_COPY   9025"
  52. "#define WPPOIDM_RPRTREMADMIN_CREATE 9026"
  53. "#define WPPOIDM_RPRTREMADMIN_DELETE 9027"
  54. "#define WPPOIDM_PPRTINSTALL         8001"
  55. "";
  56.     wpInitData: override;
  57.     wpUnInitData: override;
  58.     wpSetup: override;
  59.     wpSaveState: override;
  60.     wpRestoreState: override;
  61.     wpAddSettingsPages: override;
  62.     wpAddObjectGeneralPage: override;
  63.     wpFilterPopupMenu: override;
  64.     wpModifyPopupMenu: override;
  65.     wpMenuItemSelected: override;
  66.     wpMenuItemHelpSelected: override;
  67.     wpDrop: override;
  68.     wpDragOver: override;
  69.     wpCopyObject: override;
  70.     wpCopiedFromTemplate: override;
  71.     wpCreateFromTemplate: override;
  72.     wpOpen: override;
  73.   };
  74. #endif /* __SOMIDL__ */
  75. };
  76. interface M_WPRPrinter
  77. {
  78. #ifdef __SOMIDL__
  79.   implementation {
  80.     externalstem = WPrprint;
  81.     local;
  82.     externalprefix = rprtM_;
  83.     functionprefix = rprtM_;
  84.     majorversion = 1;
  85.     minorversion = 1;
  86.     filestem = wprprint;
  87.     callstyle = oidl;
  88.     wpclsQueryTitle: override;
  89.     wpclsQueryIcon: override;
  90.     wpclsQueryIconData: override;
  91.     wpclsQueryStyle: override;
  92.   };
  93. #endif /* __SOMIDL__ */
  94. };
  95. #endif  /* wprprint_idl */
  96.