home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / idl / wpprint.idl < prev    next >
Text File  |  1999-03-15  |  7KB  |  211 lines

  1.  
  2. //  Module Header
  3. //
  4. //  Module Name: WPPRINT
  5. //
  6. //  OS/2 Presentation Manager Workplace class definitions
  7. //
  8. //  Copyright (c) International Business Machines Corporation 1991, 1992
  9. //
  10.  
  11. #ifndef wpprint_idl
  12. #define wpprint_idl
  13.  
  14. #include "wpabs.idl"
  15. #include <somcls.idl>
  16. #include <wprttype.idl>
  17.  
  18.  
  19. interface M_WPPrinter;
  20.  
  21. interface WPPrinter : WPAbstract
  22.  
  23. //
  24. // CLASS: WPPrinter
  25. //
  26. // CLASS HIERARCHY:
  27. //    SOMObject
  28. //      └── WPObject
  29. //            └── WPAbstract
  30. //                  └── WPPrinter
  31. //
  32. // DESCRIPTION:
  33. //    This is the print destination object class.
  34. //    An instance of this class can be created as a Workplace object.
  35. //    An instance of this class is created initially by the system in
  36. //    its template form.  It has the title "Create print destination"
  37. //    and resides in the "Templates" folder.  Instances of this class
  38. //    are also created initially by the system for each print destination
  39. //    configured.  Each instance will have a title corresponding to the
  40. //    description of the configured queue and printer and will reside on
  41. //    the desktop.
  42. //
  43.  
  44. {
  45.   BOOL wpDeleteAllJobs();
  46.   BOOL wpHoldPrinter();
  47.   BOOL wpReleasePrinter();
  48.   ULONG wpQueryComputerName(in PSZ pszComputerName);
  49.   BOOL wpQueryPrinterName(in PSZ pszPrinterName);
  50.   BOOL wpSetComputerName(in PSZ pszComputerName);
  51.   BOOL wpSetPrinterName(in PSZ pszPrinterName);
  52.   BOOL wpSetDefaultPrinter();
  53.  
  54.   BOOL  wpSetQueueOptions(in ULONG ulOptions);
  55.   ULONG wpQueryQueueOptions();
  56.   BOOL  wpSetRemoteOptions(in ULONG ulRefreshInterval, in ULONG flAllJobs);
  57.   BOOL  wpQueryRemoteOptions(in PULONG pulRefreshInterval,in PULONG pflAllJobs);
  58.   BOOL  wpJobAdded(in ULONG ulJobId);
  59.   BOOL  wpJobChanged(in ULONG ulJobId, in ULONG ulField);
  60.   BOOL  wpJobDeleted(in ULONG ulJobId);
  61.   BOOL  wpSetJobProperties(in PDRIVDATA pDrivData);
  62.  
  63.  
  64. #ifdef __SOMIDL__
  65.   implementation {
  66.  
  67.     releaseorder: pdvNew,pdvOpen,pdvPrintDestType,pdvQueueName,pdvComputerName,
  68.                   pdvSetViewStatus,pdvSetDialogPrintFlag,pdvIsDialogPrintOn,
  69.                   pdvGetJobFolderhWnd,pdvSetPrintDestType,pdvSetQueueName,
  70.                   pdvSetComputerName,pdvSetTitle,pdvHoldQueue,pdvReleaseQueue,
  71.                   pdvChangeQueue,pdvAddJob,pdvDeleteJob,pdvDeleteAllJob,
  72.                   pdvHoldJob,pdvReleaseJob,pdvChangeJob,pdvHasThisPort,
  73.                   pdvHasThisPDriver,pdvHasThisQDriver,pdvGetQueueObject,
  74.                   pdvGetCountryData,pdvSetCountryData,pdvGetJobDetailTable,
  75.                   pdvGetJobFieldInfo,pdvPrintPD,pdvFreePrintDest,pdvNewRemote,
  76.                   pdvCopyRemote,pdvCapabilities,pdvSetCapabilities,
  77.                   pdvLogonName,pdvSetLogonName,pdvLocalPrintDriverOnly,
  78.                   pdvSetLocalPrintDriverOnly,pdvRemotePDriverList,
  79.                   pdvSetRemotePDriverList,pdvPrintSpecificFormat,pdvSetPrintSpecificFormat,
  80.                   pdvRemoteAdminCopy,pdvRemoteAdminCreate,pdvRemoteAdminDelete,
  81.                   pdvAddJobViewer,pdvDelJobViewer,pdvTimerTicks,pdvSetTimerTicks,
  82.                   wpDeleteAllJobs,wpHoldPrinter,wpReleasePrinter,wpQueryComputerName,
  83.                   wpQueryPrinterName,wpSetComputerName,wpSetPrinterName,
  84.                   wpSetDefaultPrinter,pdvSetLSAlias,pdvLSAlias,pdvLocalAlias,
  85.                   pdvSetLocalAlias,pdvRemoteJobView,pdvSetRemoteData,
  86.                   pdvCopy,pdvSetJobDetailTable,pdvGetQueueStatusLine,
  87.                   pdvSetQueueStatusLine,pdvGetNewDlg,pdvSetNewDlg,
  88.                   pdvGetLastRefreshTime,pdvSetLastRefreshTime,
  89.                   wpSetQueueOptions, wpQueryQueueOptions,
  90.                   wpSetRemoteOptions, wpQueryRemoteOptions,
  91.                   wpJobAdded, wpJobChanged, wpJobDeleted,
  92.                   pdvSetPrinterStatusLine, pdvGetPrinterStatusLine,
  93.                   pdvQueryXSplitBarDetail, pdvSetXSplitBarDetail,
  94.                   wpSetJobProperties,pdvSetDetailsColumnVisibility,
  95.                   pdvIsDetailsColumnVisible,
  96.                   pdvResetTimer,
  97.                   pdvSetErrorIcon;
  98.  
  99.     externalstem = WPprint;
  100.     local;
  101.     externalprefix = pdv_;
  102.     majorversion = 1;
  103.     minorversion = 1;
  104.     filestem = wpprint;
  105.     metaclass = M_WPPrinter;
  106.     callstyle = oidl;
  107.  
  108.  
  109. passthru  C_h =
  110. ""
  111. "/*"
  112. " * Passthru flags for QueueOptions methods"
  113. " */"
  114. ""
  115. "#define PO_PRINTERSPECIFICFORMAT     0x00000001"
  116. "#define PO_PRINTWHILESPOOLING        0x00000002"
  117. "#define PO_APPDEFAULT                0x00000004"
  118. "#define PO_JOBDIALOGBEFOREPRINT      0x00010000"
  119. ""
  120. "/*"
  121. " * _wpJobChanged ulField values for when job is held or released"
  122. " */"
  123. "#define PO_JOB_HELD                  0x00000080"
  124. "#define PO_JOB_RELEASE               0x00000081"
  125. ""
  126. "/* common context menu ids */"
  127. ""
  128. "#define WPPOICM_PD_OPENMENU         6000"
  129. "#define WPPOIDM_PD_ICON             9010"
  130. "#define WPPOIDM_PD_DETAIL           9009"
  131. "#define WPPOICM_PD_MENU             9000"
  132. "#define WPPOIDM_PD_STATUS           9003"
  133. "#define WPPOIDM_PD_HOLD             9004"
  134. "#define WPPOIDM_PD_RELEASE          9005"
  135. "#define WPPOIDM_PD_DELETE_JOBS      9016"
  136. "#define WPPOIDM_PD_REFRESH          9013"
  137. "#define WPPOIDM_PD_DEFAULT          9100"
  138. "#define WPPOIDM_PD_INSTALL          8001"
  139. "";
  140.  
  141.  
  142.     wpInitData: override;
  143.     wpUnInitData: override;
  144.     somDumpSelfInt: override;
  145.     wpSetTitle: override;
  146.     wpSaveState: override;
  147.     wpRestoreState: override;
  148.     wpAddSettingsPages: override;
  149.     wpQueryTitle: override;
  150.     wpQueryIcon: override;
  151.     wpSetIcon: override;
  152.     wpFilterPopupMenu: override;
  153.     wpFree: override;
  154.     wpConfirmDelete: override;
  155.     wpModifyPopupMenu: override;
  156.     wpMenuItemSelected: override;
  157.     wpMenuItemHelpSelected: override;
  158.     wpQueryDefaultHelp: override;
  159.     wpOpen: override;
  160.     wpDrop: override;
  161.     wpDragOver: override;
  162.     wpCreateAnother: override;
  163.     wpCopyObject: override;
  164.     wpCopiedFromTemplate: override;
  165.     wpCreateFromTemplate: override;
  166.     wpQueryStyle: override;
  167.     wpMoveObject: override;
  168.     wpCreateShadowObject: override;
  169.     wpQueryIconData: override;
  170.     wpSetIconData: override;
  171.  
  172.     wpSetup: override;
  173.     wpSetDefaultView:override;
  174.     wpQueryDetailsData: override;
  175.  
  176.  
  177.   };
  178. #endif /* __SOMIDL__ */
  179. };
  180.  
  181. interface M_WPPrinter
  182. {
  183.  
  184. #ifdef __SOMIDL__
  185.   implementation {
  186.  
  187.     externalstem = WPprint;
  188.     local;
  189.     externalprefix = pdvM_;
  190.     functionprefix = pdvM_;
  191.     majorversion = 1;
  192.     minorversion = 1;
  193.     filestem = wpprint;
  194.     callstyle = oidl;
  195.  
  196.     wpclsQueryTitle: override;
  197.     wpclsQueryIcon: override;
  198.     wpclsQueryDefaultHelp: override;
  199.     wpclsQueryDefaultView: override;
  200.     wpclsQueryStyle: override;
  201.     wpclsQueryIconData: override;
  202.     wpclsInitData: override;
  203.     wpclsQueryDetailsInfo: override;
  204.     wpclsQuerySettingsPageSize: override;
  205.  
  206.   };
  207. #endif /* __SOMIDL__ */
  208. };
  209.  
  210. #endif  /* wpprint_idl */
  211.