home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opendc12.zip / od124os2.exe / od12osp1.exe / src / pagepart / iodpgprn.idl < prev    next >
Text File  |  1997-04-02  |  3KB  |  97 lines

  1. //#====START_GENERATED_PROLOG======================================
  2. //#
  3. //#
  4. //#   COMPONENT_NAME: odpagepart
  5. //#
  6. //#   CLASSES: none
  7. //#
  8. //#   ORIGINS: 82,27
  9. //#
  10. //#
  11. //#   (C) COPYRIGHT International Business Machines Corp. 1995,1996
  12. //#   All Rights Reserved
  13. //#   Licensed Materials - Property of IBM
  14. //#   US Government Users Restricted Rights - Use, duplication or
  15. //#   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  16. //#       
  17. //#   IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  18. //#   ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  19. //#   PURPOSE. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  20. //#   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  21. //#   USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  22. //#   OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  23. //#   OR PERFORMANCE OF THIS SOFTWARE.
  24. //#
  25. //#====END_GENERATED_PROLOG========================================
  26. //#
  27. //   @(#) 1.4 com/src/samples/pagepart/iodpgprn.idl, odpagepart, od96os2, odos29712d 11/1/96 08:53:23 [3/21/97 17:49:00]
  28.  
  29.  
  30. #ifndef _IODPGPRN_
  31. #define _IODPGPRN_
  32.  
  33. #ifndef _IODPRINT_
  34. #include <iodprint.idl>
  35. #endif
  36.  
  37.  
  38.  
  39. //======================================================================
  40. // Classes defined in this interface
  41. //======================================================================
  42.  
  43. interface  PageLayoutPrintExtension;
  44.  
  45.  
  46. //======================================================================
  47. // PageLayoutPrintExtension Implementation
  48. //======================================================================
  49.  
  50. interface PageLayoutPrintExtension: ODPrintExtension
  51. {
  52.    void SetPageDimensions(in long width, in long height);
  53.    void SetNumberOfPages(in short count);
  54.    void InitializeForPageLayout(in ODPart base, in char *pszQueueName, in long HorzOffset, in long VertOffset, in long TotalPageWidth, in long TotalPageHeight, in short NumberOfPages);
  55.  
  56.  
  57. #ifdef __SOMIDL__
  58.   implementation
  59.   {
  60.         dllname = "IODPage.dll";
  61.         functionprefix = PageLayoutPrintExtension;
  62.         majorversion = 1;
  63.         minorversion = 0;
  64.  
  65.         override:
  66.               DisplayPrintDialog,
  67.               SetPrintingFrameShape,
  68.               PrintPages;
  69.  
  70.         releaseorder:
  71.               SetPageDimensions,
  72.               SetNumberOfPages,
  73.               InitializeForPageLayout;
  74.  
  75.         //=======================================
  76.         // ODPrintExtension Instance Variables
  77.         //=======================================
  78.  
  79.               short      NumberOfPages;   // Total pages in document
  80.                 
  81.               long       HorzPageOffset;  // LeftPageOffset
  82.               long       VertPageOffset;  // BottomPageOffset on OS/2,
  83.                                           // TopPageOffset on WIN32
  84.                                                    
  85.               long       TotalPageWidth;  // LeftPageOffset+PageWidth+RightPageOffset
  86.               long       TotalPageHeight; // BottomPageOffset+PageHeight+TopPageOffset
  87.  
  88.   }; // end implementation section
  89.  
  90. #endif //__SOMIDL__
  91.  
  92. }; // end interface definition
  93.  
  94.  
  95. #endif //_IODPGPRN_
  96.  
  97.