home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / pc / pm65sdk / sourcecode / pagemakerclasslibrary / queries / pgetmasterpageinfo.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-15  |  977 b   |  40 lines

  1. /*
  2.  *--- PGetMasterPageInfo.cpp ----------------------------------------------
  3.  * Copyright (c) 1995-96 Adobe Systems Incorporated.  All rights reserved.
  4.  * Created on Sun, Oct 22, 1995 @ 4:49 PM by Paul Ferguson.
  5.  *
  6.  * Description:  For notes about this class, refer to the
  7.  * PCL documentation file PGetMasterPageInfo.html
  8.  *-------------------------------------------------------------------------
  9.  */
  10.  
  11. #include "PGetMasterPageInfo.h"
  12. #include "PQuery.h"
  13. #include "PReplyBuf.h"
  14. #include "PRequestBuf.h"
  15.  
  16. PGetMasterPageInfo::PGetMasterPageInfo(const char * sMasterName)
  17. {
  18.     char temp[36];
  19.     
  20.     PRequestBuf request(strlen(sMasterName) + 2);
  21.     
  22.     request << sMasterName;
  23.     
  24.     PQuery query(pm_getmasterpageinfo, request, temp, 32);
  25.  
  26.     PReplyBuf reply(temp);
  27.     
  28.     reply    >> bSpread
  29.             >> xLeftOrInside
  30.             >> yTop
  31.             >> xRghtOrOutsd
  32.             >> yBottom
  33.             >> nColumns
  34.             >> xGutter
  35.             >> nColmnRghtPg
  36.             >> xGutterRghtPg;
  37. }
  38.  
  39. // end of PGetMasterPageInfo.cpp
  40.