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 / pspaceoptions.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-04  |  1.1 KB  |  41 lines

  1. /*
  2.  *--- PSpaceOptions.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 PSpaceOptions.html
  8.  *-------------------------------------------------------------------------
  9.  */
  10.  
  11. #include "PSpaceOptions.h"
  12. #include "PGetSpaceOptions.h"
  13. #include "PCommand.h"
  14.  
  15. const size_t REQUEST_SIZE = 8;
  16.  
  17. PSpaceOptions::PSpaceOptions
  18.   (    PMBool    bAutoKerning,
  19.     short    dPtThreshold,
  20.     short    cLeading,
  21.     short    dAutoleading)
  22. {
  23.     short x[4];
  24.     x[0] = bAutoKerning;
  25.     x[1] = dPtThreshold;
  26.     x[2] = cLeading;
  27.     x[3] = dAutoleading;
  28.     PCommand(pm_spaceoptions, x, REQUEST_SIZE);
  29. }
  30.  
  31. PSpaceOptions::PSpaceOptions(const PGetSpaceOptions& spaceOpts)
  32. {
  33.     short x[4];
  34.     x[0] = spaceOpts.bAutoKerning;
  35.     x[1] = spaceOpts.dPtThreshold;
  36.     x[2] = spaceOpts.cLeading;
  37.     x[3] = spaceOpts.dAutoleading;
  38.     PCommand(pm_spaceoptions, x, REQUEST_SIZE);
  39. }
  40. // end of PSpaceOptions.cpp
  41.