home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / pc / pm65sdk / sourcecode / pagemakerclasslibrary / commands / pparaoptions.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-15  |  1.3 KB  |  60 lines

  1. /*
  2.  *--- PParaOptions.cpp ----------------------------------------------------
  3.  * Copyright (c) 1995-96 Adobe Systems Incorporated.  All rights reserved.
  4.  * Created on Sun, Oct 22, 1995 @ 4:19 PM by Paul Ferguson.
  5.  *
  6.  * Description:  For notes about this class, refer to the
  7.  * PCL documentation file PParaOptions.html
  8.  *-------------------------------------------------------------------------
  9.  */
  10.  
  11. #include "PParaOptions.h"
  12. #include "PGetParaOptions.h"
  13. #include "PRequestBuf.h"
  14. #include "PCommand.h"
  15.  
  16. const size_t REQUEST_SIZE = 14;
  17.  
  18. PParaOptions::PParaOptions
  19.   (    short    bKeepTog,
  20.     short    bColumnBreak,
  21.     short    bPageBreak,
  22.     short    bIncludeTOC,
  23.     short    nKeepWith,
  24.     short    nWidow,
  25.     short    nOrphan )
  26. {
  27.     char * temp[REQUEST_SIZE];
  28.     PRequestBuf request(temp);
  29.  
  30.     request << bKeepTog
  31.             << bColumnBreak
  32.             << bPageBreak
  33.             << bIncludeTOC
  34.             << nKeepWith
  35.             << nWidow
  36.             << nOrphan;
  37.             
  38.     PCommand command(pm_paraoptions, request);
  39. }
  40.  
  41.  
  42. PParaOptions::PParaOptions(PGetParaOptions& option)
  43. {
  44.     char * temp[REQUEST_SIZE];
  45.     PRequestBuf request(temp);
  46.  
  47.     request << (short) option.bKeepTog
  48.             << (short) option.bColumnBreak
  49.             << (short) option.bPageBreak
  50.             << (short) option.bIncludeTOC
  51.             << option.nKeepWith
  52.             << option.nWidow
  53.             << option.nOrphan;
  54.             
  55.     PCommand command(pm_paraoptions, request);
  56.  
  57. }
  58.  
  59. // end of PParaOptions.cpp
  60.