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

  1.  
  2. //  Module Header
  3. //
  4. //  Module Name: WPJOB
  5. //
  6. //  OS/2 Presentation Manager Workplace class definitions
  7. //
  8. //  Copyright (c) International Business Machines Corporation 1991, 1992
  9. //
  10.  
  11. #ifndef wpjob_idl
  12. #define wpjob_idl
  13.  
  14. #include "wptrans.idl"
  15. #include <somcls.idl>
  16. #include <wprttype.idl>
  17.  
  18. interface WPPrinter;
  19. interface M_WPJob;
  20.  
  21. interface WPJob : WPTransient
  22.  
  23. //
  24. // CLASS: WPJob
  25. //
  26. // CLASS HIERARCHY:
  27. //    SOMObject
  28. //      └── WPObject
  29. //            └── WPTransient
  30. //                  └── WPJob
  31. //
  32. // DESCRIPTION:
  33. //    This is the job object class.
  34. //    An instance of this class is created by the Print Destination object
  35. //    in its icon or detail view.
  36. //
  37.  
  38. {
  39.   BOOL wpDeleteJob();
  40.  
  41.   // Delete a job object
  42.  
  43.   BOOL wpHoldJob();
  44.  
  45.   // Hold printing a job object
  46.  
  47.   BOOL wpReleaseJob();
  48.  
  49.   // Release printing a job object
  50.  
  51.   BOOL wpPrintJobNext();
  52.  
  53.   // Move this job object to be printed next
  54.  
  55.   BOOL wpStartJobAgain();
  56.  
  57.   // Start the job again
  58.  
  59.   WPObject wpQueryPrintObject();
  60.   // Return a pointer to the PrintObject this job is in.
  61.  
  62.   ULONG wpQueryJobId();
  63.   // Returns the JobId of this job
  64.  
  65.   BOOL  wpQueryJobFile(in PSZ pBuf, in PULONG pcbBuf );
  66.   // Return the spool file name in the pBuf
  67.  
  68.   BOOL  wpQueryJobType(in PSZ pBuf, in PULONG pcbBuf);
  69.   // Return the job type int pBuf
  70.  
  71.   BOOL  wpMoveJobObject(in WPPrinter DestPrinter,
  72.                         in ULONG     ulReserved);
  73.  
  74.  
  75. #ifdef __SOMIDL__
  76.   implementation {
  77.  
  78.     releaseorder: prtGetJobID,prtSetJobID,prtGetJobInfo2,prtSetJobInfo2,
  79.                   prtGetJobInfo3,prtSetJobInfo3,prtFreeJobInfo2,prtFreeJobInfo3,
  80.                   prtGetPDObject,prtSetPDObject,prtGetDocument,prtSetDocument,
  81.                   prtDupJobInfo2,prtDupJobInfo3,wpDeleteJob,wpHoldJob,
  82.                   wpReleaseJob,wpPrintJobNext,wpStartJobAgain,
  83.                   wpQueryPrintObject,
  84.                   wpQueryJobId,
  85.                   wpQueryJobFile,
  86.                   wpQueryJobType,
  87.                   prtGetJobInfo4, prtSetJobInfo4,
  88.                   prtFreeJobInfo4,prtDupJobInfo4,
  89.                   wpMoveJobObject,
  90.                   prtSetOutputPortname,
  91.                   prtSetJobState,
  92.                   prtQueryJobState;
  93.  
  94.     externalstem = WPjob;
  95.     local;
  96.     externalprefix = job_;
  97.     majorversion = 1;
  98.     minorversion = 1;
  99.     filestem = wpjob;
  100.     metaclass = M_WPJob;
  101.     callstyle = oidl;
  102.  
  103.     passthru C_h =      ""
  104. "/* common context menu ids */"
  105. "#define WPPOICM_JOB_MENU            5000"
  106. "#define WPPOIDM_JOB_COPY            5001"
  107. "#define WPPOIDM_JOB_DEL             5002"
  108. "#define WPPOIDM_JOB_STATUS          5013"
  109. "#define WPPOIDM_JOB_HOLD            5009"
  110. "#define WPPOIDM_JOB_RELEASE         5008"
  111. "#define WPPOIDM_JOB_STARTAGAIN      5006"
  112. "#define WPPOIDM_JOB_PRINTNEXT       5007"
  113. "#define WPPOICM_JOB_OPENMENU        5050"
  114. "#define WPPOIDM_JOB_CONTENT         5011"
  115. "";
  116.  
  117.  
  118.     wpInitData: override;
  119.     wpUnInitData: override;
  120.     somDumpSelfInt: override;
  121.     wpAddSettingsPages: override;
  122.     wpAddObjectGeneralPage: override;
  123.     wpQueryTitle: override;
  124.     wpQueryIcon: override;
  125.     wpFilterPopupMenu: override;
  126.     wpFree: override;
  127.     wpConfirmDelete: override;
  128.     wpModifyPopupMenu: override;
  129.     wpMenuItemSelected: override;
  130.     wpMenuItemHelpSelected: override;
  131.     wpOpen: override;
  132.     wpDrop: override;
  133.     wpDragOver: override;
  134.     wpPrintObject: override;
  135.     wpQueryDetailsData: override;
  136.     wpSetTitle: override;
  137.     wpAddToObjUseList: override;
  138.     wpDeleteFromObjUseList: override;
  139.  
  140.  
  141.   };
  142. #endif /* __SOMIDL__ */
  143. };
  144.  
  145. interface M_WPJob
  146. {
  147.  
  148.  
  149. #ifdef __SOMIDL__
  150.   implementation {
  151.  
  152.     releaseorder: prtclsManageSelected;
  153.  
  154.     externalstem = WPjob;
  155.     local;
  156.     externalprefix = jobM_;
  157.     functionprefix = jobM_;
  158.     majorversion = 1;
  159.     minorversion = 1;
  160.     filestem = wpjob;
  161.     callstyle = oidl;
  162.  
  163.  
  164.     wpclsQueryTitle: override;
  165.     wpclsQueryIcon: override;
  166.     wpclsQueryDefaultHelp: override;
  167.     wpclsQueryDefaultView: override;
  168.     wpclsQueryDetailsInfo: override;
  169.     wpclsQueryStyle: override;
  170.  
  171.   };
  172. #endif /* __SOMIDL__ */
  173. };
  174.  
  175. #endif  /* wpjob_idl */
  176.