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

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