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

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