home *** CD-ROM | disk | FTP | other *** search
/ Nebula / nebula.bin / SourceCode / AdobeExamples / NX_Dial / DialViewWraps.c < prev    next >
C/C++ Source or Header  |  1993-01-19  |  17KB  |  546 lines

  1. /* DialViewWraps.c generated from DialViewWraps.psw
  2.    by unix pswrap V1.009  Wed Apr 19 17:50:24 PDT 1989
  3.  */
  4.  
  5. #include <dpsclient/dpsfriends.h>
  6. #include <string.h>
  7.  
  8. #line 1 "DialViewWraps.psw"
  9.  
  10. /*
  11.  * (a)  (C) 1990 by Adobe Systems Incorporated. All rights reserved.
  12.  *
  13.  * (b)  If this Sample Code is distributed as part of the Display PostScript
  14.  *    System Software Development Kit from Adobe Systems Incorporated,
  15.  *    then this copy is designated as Development Software and its use is
  16.  *    subject to the terms of the License Agreement attached to such Kit.
  17.  *
  18.  * (c)  If this Sample Code is distributed independently, then the following
  19.  *    terms apply:
  20.  *
  21.  * (d)  This file may be freely copied and redistributed as long as:
  22.  *    1) Parts (a), (d), (e) and (f) continue to be included in the file,
  23.  *    2) If the file has been modified in any way, a notice of such
  24.  *      modification is conspicuously indicated.
  25.  *
  26.  * (e)  PostScript, Display PostScript, and Adobe are registered trademarks of
  27.  *    Adobe Systems Incorporated.
  28.  * 
  29.  * (f) THE INFORMATION BELOW IS FURNISHED AS IS, IS SUBJECT TO
  30.  *    CHANGE WITHOUT NOTICE, AND SHOULD NOT BE CONSTRUED
  31.  *    AS A COMMITMENT BY ADOBE SYSTEMS INCORPORATED.
  32.  *    ADOBE SYSTEMS INCORPORATED ASSUMES NO RESPONSIBILITY
  33.  *    OR LIABILITY FOR ANY ERRORS OR INACCURACIES, MAKES NO
  34.  *    WARRANTY OF ANY KIND (EXPRESS, IMPLIED OR STATUTORY)
  35.  *    WITH RESPECT TO THIS INFORMATION, AND EXPRESSLY
  36.  *    DISCLAIMS ANY AND ALL WARRANTIES OF MERCHANTABILITY, 
  37.  *    FITNESS FOR PARTICULAR PURPOSES AND NONINFRINGEMENT
  38.  *    OF THIRD PARTY RIGHTS.
  39.  */
  40.  
  41. /*
  42.  *    DialViewWraps.psw
  43.  *
  44.  *    Contains the wraps to draw the dial in several different ways.
  45.  *
  46.  *    Version:    2.0
  47.  *    Author:    Ken Fromm
  48.  *    History:
  49.  *            03-07-91        Added this comment.
  50.  */
  51. #line 52 "DialViewWraps.c"
  52. void PSWMarkTime( void )
  53. {
  54.   typedef struct {
  55.     unsigned char tokenType;
  56.     unsigned char topLevelCount;
  57.     unsigned short nBytes;
  58.  
  59.     DPSBinObjGeneric obj0;
  60.     DPSBinObjGeneric obj1;
  61.     DPSBinObjGeneric obj2;
  62.     } _dpsQ;
  63.   static const _dpsQ _dpsStat = {
  64.     DPS_DEF_TOKENTYPE, 3, 28,
  65.     {DPS_LITERAL|DPS_NAME, 0, 0, 0},    /* StartTime */
  66.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 328},    /* realtime */
  67.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51},    /* def */
  68.     }; /* _dpsQ */
  69.   _dpsQ _dpsF;    /* local copy  */
  70.   register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
  71.   register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
  72.   static long int _dpsCodes[1] = {-1};
  73.   {
  74. if (_dpsCodes[0] < 0) {
  75.     static const char * const _dps_names[] = {
  76.     "StartTime"};
  77.     long int *_dps_nameVals[1];
  78.     _dps_nameVals[0] = &_dpsCodes[0];
  79.  
  80.     DPSMapNames(_dpsCurCtxt, 1, _dps_names, _dps_nameVals);
  81.     }
  82.   }
  83.  
  84.   _dpsF = _dpsStat;    /* assign automatic variable */
  85.  
  86.   _dpsP[0].val.nameVal = _dpsCodes[0];
  87.   DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,28);
  88. }
  89. #line 46 "DialViewWraps.psw"
  90.  
  91. #line 92 "DialViewWraps.c"
  92. void PSWReturnTime(int *ElapsedTime)
  93. {
  94.   typedef struct {
  95.     unsigned char tokenType;
  96.     unsigned char topLevelCount;
  97.     unsigned short nBytes;
  98.  
  99.     DPSBinObjGeneric obj0;
  100.     DPSBinObjGeneric obj1;
  101.     DPSBinObjGeneric obj2;
  102.     DPSBinObjGeneric obj3;
  103.     DPSBinObjGeneric obj4;
  104.     DPSBinObjGeneric obj5;
  105.     DPSBinObjGeneric obj6;
  106.     DPSBinObjGeneric obj7;
  107.     DPSBinObjGeneric obj8;
  108.     } _dpsQ;
  109.   static const _dpsQ _dpsStat = {
  110.     DPS_DEF_TOKENTYPE, 9, 76,
  111.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 328},    /* realtime */
  112.     {DPS_EXEC|DPS_NAME, 0, 0, 0},    /* StartTime */
  113.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 169},    /* sub */
  114.     {DPS_LITERAL|DPS_INT, 0, 0, 0},
  115.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 119},    /* printobject */
  116.     {DPS_LITERAL|DPS_INT, 0, 0, 0},
  117.     {DPS_LITERAL|DPS_INT, 0, 0, 1},
  118.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 119},    /* printobject */
  119.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 70},    /* flush */
  120.     }; /* _dpsQ */
  121.   _dpsQ _dpsF;    /* local copy  */
  122.   register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
  123.   register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
  124.   static long int _dpsCodes[1] = {-1};
  125.   DPSResultsRec _dpsR[1];
  126.   static const DPSResultsRec _dpsRstat[] = {
  127.     { dps_tInt, -1 },
  128.     };
  129.     _dpsR[0] = _dpsRstat[0];
  130.     _dpsR[0].value = (char *)ElapsedTime;
  131.  
  132.   {
  133. if (_dpsCodes[0] < 0) {
  134.     static const char * const _dps_names[] = {
  135.     "StartTime"};
  136.     long int *_dps_nameVals[1];
  137.     _dps_nameVals[0] = &_dpsCodes[0];
  138.  
  139.     DPSMapNames(_dpsCurCtxt, 1, _dps_names, _dps_nameVals);
  140.     }
  141.   }
  142.  
  143.   _dpsF = _dpsStat;    /* assign automatic variable */
  144.  
  145.   _dpsP[1].val.nameVal = _dpsCodes[0];
  146.   DPSSetResultTable(_dpsCurCtxt, _dpsR, 1);
  147.   DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,76);
  148.   DPSAwaitReturnValues(_dpsCurCtxt);
  149. }
  150. #line 51 "DialViewWraps.psw"
  151.  
  152.  
  153. /* Procedures that are called often are defined and bound to save operator look up time. */
  154. #line 155 "DialViewWraps.c"
  155. void PSWDefs( void )
  156. {
  157.   typedef struct {
  158.     unsigned char tokenType;
  159.     unsigned char topLevelCount;
  160.     unsigned short nBytes;
  161.  
  162.     DPSBinObjGeneric obj0;
  163.     DPSBinObjGeneric obj1;
  164.     DPSBinObjGeneric obj2;
  165.     DPSBinObjGeneric obj3;
  166.     DPSBinObjGeneric obj4;
  167.     DPSBinObjGeneric obj5;
  168.     DPSBinObjGeneric obj6;
  169.     DPSBinObjGeneric obj7;
  170.     DPSBinObjGeneric obj8;
  171.     DPSBinObjGeneric obj9;
  172.     DPSBinObjGeneric obj10;
  173.     DPSBinObjGeneric obj11;
  174.     DPSBinObjGeneric obj12;
  175.     DPSBinObjGeneric obj13;
  176.     DPSBinObjGeneric obj14;
  177.     DPSBinObjGeneric obj15;
  178.     DPSBinObjGeneric obj16;
  179.     DPSBinObjGeneric obj17;
  180.     DPSBinObjGeneric obj18;
  181.     } _dpsQ;
  182.   static const _dpsQ _dpsStat = {
  183.     DPS_DEF_TOKENTYPE, 12, 156,
  184.     {DPS_LITERAL|DPS_NAME, 0, 0, 0},    /* ML */
  185.     {DPS_EXEC|DPS_ARRAY, 0, 2, 136},
  186.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 14},    /* bind */
  187.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51},    /* def */
  188.     {DPS_LITERAL|DPS_NAME, 0, 0, 0},    /* RML */
  189.     {DPS_EXEC|DPS_ARRAY, 0, 3, 112},
  190.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 14},    /* bind */
  191.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51},    /* def */
  192.     {DPS_LITERAL|DPS_NAME, 0, 0, 0},    /* RUA */
  193.     {DPS_EXEC|DPS_ARRAY, 0, 2, 96},
  194.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 14},    /* bind */
  195.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51},    /* def */
  196.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 136},    /* rotate */
  197.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 176},    /* uappend */
  198.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 136},    /* rotate */
  199.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 107},    /* moveto */
  200.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 99},    /* lineto */
  201.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 107},    /* moveto */
  202.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 99},    /* lineto */
  203.     }; /* _dpsQ */
  204.   _dpsQ _dpsF;    /* local copy  */
  205.   register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
  206.   register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
  207.   static long int _dpsCodes[3] = {-1};
  208.   {
  209. if (_dpsCodes[0] < 0) {
  210.     static const char * const _dps_names[] = {
  211.     "ML",
  212.     "RML",
  213.     "RUA"};
  214.     long int *_dps_nameVals[3];
  215.     _dps_nameVals[0] = &_dpsCodes[0];
  216.     _dps_nameVals[1] = &_dpsCodes[1];
  217.     _dps_nameVals[2] = &_dpsCodes[2];
  218.  
  219.     DPSMapNames(_dpsCurCtxt, 3, _dps_names, _dps_nameVals);
  220.     }
  221.   }
  222.  
  223.   _dpsF = _dpsStat;    /* assign automatic variable */
  224.  
  225.   _dpsP[0].val.nameVal = _dpsCodes[0];
  226.   _dpsP[4].val.nameVal = _dpsCodes[1];
  227.   _dpsP[8].val.nameVal = _dpsCodes[2];
  228.   DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,156);
  229. }
  230. #line 66 "DialViewWraps.psw"
  231.  
  232. #line 233 "DialViewWraps.c"
  233. void PSWEraseView(float BGColor, float X, float Y, float W, float H)
  234. {
  235.   typedef struct {
  236.     unsigned char tokenType;
  237.     unsigned char topLevelCount;
  238.     unsigned short nBytes;
  239.  
  240.     DPSBinObjReal obj0;
  241.     DPSBinObjGeneric obj1;
  242.     DPSBinObjReal obj2;
  243.     DPSBinObjReal obj3;
  244.     DPSBinObjReal obj4;
  245.     DPSBinObjReal obj5;
  246.     DPSBinObjGeneric obj6;
  247.     } _dpsQ;
  248.   static const _dpsQ _dpsStat = {
  249.     DPS_DEF_TOKENTYPE, 7, 60,
  250.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: BGColor */
  251.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 150},    /* setgray */
  252.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: X */
  253.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: Y */
  254.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: W */
  255.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: H */
  256.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 128},    /* rectfill */
  257.     }; /* _dpsQ */
  258.   _dpsQ _dpsF;    /* local copy  */
  259.   register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
  260.   register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
  261.   _dpsF = _dpsStat;    /* assign automatic variable */
  262.  
  263.   _dpsP[0].val.realVal = BGColor;
  264.   _dpsP[2].val.realVal = X;
  265.   _dpsP[3].val.realVal = Y;
  266.   _dpsP[4].val.realVal = W;
  267.   _dpsP[5].val.realVal = H;
  268.   DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,60);
  269. }
  270. #line 70 "DialViewWraps.psw"
  271.  
  272. #line 273 "DialViewWraps.c"
  273. void PSWSetColorWidth(float Color, float Width)
  274. {
  275.   typedef struct {
  276.     unsigned char tokenType;
  277.     unsigned char topLevelCount;
  278.     unsigned short nBytes;
  279.  
  280.     DPSBinObjReal obj0;
  281.     DPSBinObjGeneric obj1;
  282.     DPSBinObjReal obj2;
  283.     DPSBinObjGeneric obj3;
  284.     } _dpsQ;
  285.   static const _dpsQ _dpsStat = {
  286.     DPS_DEF_TOKENTYPE, 4, 36,
  287.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: Color */
  288.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 150},    /* setgray */
  289.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: Width */
  290.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 155},    /* setlinewidth */
  291.     }; /* _dpsQ */
  292.   _dpsQ _dpsF;    /* local copy  */
  293.   register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
  294.   register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
  295.   _dpsF = _dpsStat;    /* assign automatic variable */
  296.  
  297.   _dpsP[0].val.realVal = Color;
  298.   _dpsP[2].val.realVal = Width;
  299.   DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,36);
  300. }
  301. #line 74 "DialViewWraps.psw"
  302.  
  303. #line 304 "DialViewWraps.c"
  304. void PSWMakeLine(float X0, float Y0, float X1, float Y1)
  305. {
  306.   typedef struct {
  307.     unsigned char tokenType;
  308.     unsigned char topLevelCount;
  309.     unsigned short nBytes;
  310.  
  311.     DPSBinObjReal obj0;
  312.     DPSBinObjReal obj1;
  313.     DPSBinObjReal obj2;
  314.     DPSBinObjReal obj3;
  315.     DPSBinObjGeneric obj4;
  316.     } _dpsQ;
  317.   static const _dpsQ _dpsStat = {
  318.     DPS_DEF_TOKENTYPE, 5, 44,
  319.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: X1 */
  320.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: Y1 */
  321.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: X0 */
  322.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: Y0 */
  323.     {DPS_EXEC|DPS_NAME, 0, 0, 0},    /* ML */
  324.     }; /* _dpsQ */
  325.   _dpsQ _dpsF;    /* local copy  */
  326.   register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
  327.   register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
  328.   static long int _dpsCodes[1] = {-1};
  329.   {
  330. if (_dpsCodes[0] < 0) {
  331.     static const char * const _dps_names[] = {
  332.     "ML"};
  333.     long int *_dps_nameVals[1];
  334.     _dps_nameVals[0] = &_dpsCodes[0];
  335.  
  336.     DPSMapNames(_dpsCurCtxt, 1, _dps_names, _dps_nameVals);
  337.     }
  338.   }
  339.  
  340.   _dpsF = _dpsStat;    /* assign automatic variable */
  341.  
  342.   _dpsP[2].val.realVal = X0;
  343.   _dpsP[3].val.realVal = Y0;
  344.   _dpsP[0].val.realVal = X1;
  345.   _dpsP[1].val.realVal = Y1;
  346.   _dpsP[4].val.nameVal = _dpsCodes[0];
  347.   DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,44);
  348. }
  349. #line 78 "DialViewWraps.psw"
  350.  
  351. #line 352 "DialViewWraps.c"
  352. void PSWMakeCircle(float X, float Y, float Rad)
  353. {
  354.   typedef struct {
  355.     unsigned char tokenType;
  356.     unsigned char topLevelCount;
  357.     unsigned short nBytes;
  358.  
  359.     DPSBinObjReal obj0;
  360.     DPSBinObjReal obj1;
  361.     DPSBinObjGeneric obj2;
  362.     DPSBinObjReal obj3;
  363.     DPSBinObjGeneric obj4;
  364.     DPSBinObjReal obj5;
  365.     DPSBinObjReal obj6;
  366.     DPSBinObjReal obj7;
  367.     DPSBinObjGeneric obj8;
  368.     DPSBinObjGeneric obj9;
  369.     DPSBinObjGeneric obj10;
  370.     } _dpsQ;
  371.   static const _dpsQ _dpsStat = {
  372.     DPS_DEF_TOKENTYPE, 11, 92,
  373.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: X */
  374.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: Rad */
  375.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 1},    /* add */
  376.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: Y */
  377.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 107},    /* moveto */
  378.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: X */
  379.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: Y */
  380.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: Rad */
  381.     {DPS_LITERAL|DPS_INT, 0, 0, 0},
  382.     {DPS_LITERAL|DPS_INT, 0, 0, 360},
  383.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 5},    /* arc */
  384.     }; /* _dpsQ */
  385.   _dpsQ _dpsF;    /* local copy  */
  386.   register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
  387.   register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
  388.   _dpsF = _dpsStat;    /* assign automatic variable */
  389.  
  390.   _dpsP[0].val.realVal =
  391.   _dpsP[5].val.realVal = X;
  392.   _dpsP[3].val.realVal =
  393.   _dpsP[6].val.realVal = Y;
  394.   _dpsP[1].val.realVal =
  395.   _dpsP[7].val.realVal = Rad;
  396.   DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,92);
  397. }
  398. #line 82 "DialViewWraps.psw"
  399.  
  400. #line 401 "DialViewWraps.c"
  401. void PSWFillPath(float Color)
  402. {
  403.   typedef struct {
  404.     unsigned char tokenType;
  405.     unsigned char topLevelCount;
  406.     unsigned short nBytes;
  407.  
  408.     DPSBinObjReal obj0;
  409.     DPSBinObjGeneric obj1;
  410.     DPSBinObjGeneric obj2;
  411.     } _dpsQ;
  412.   static const _dpsQ _dpsStat = {
  413.     DPS_DEF_TOKENTYPE, 3, 28,
  414.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: Color */
  415.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 150},    /* setgray */
  416.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 66},    /* fill */
  417.     }; /* _dpsQ */
  418.   _dpsQ _dpsF;    /* local copy  */
  419.   register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
  420.   register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
  421.   _dpsF = _dpsStat;    /* assign automatic variable */
  422.  
  423.   _dpsP[0].val.realVal = Color;
  424.   DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,28);
  425. }
  426. #line 86 "DialViewWraps.psw"
  427.  
  428. #line 429 "DialViewWraps.c"
  429. void PSWRotate_MakeLine(float Ang, float X0, float Y0, float X1, float Y1)
  430. {
  431.   typedef struct {
  432.     unsigned char tokenType;
  433.     unsigned char topLevelCount;
  434.     unsigned short nBytes;
  435.  
  436.     DPSBinObjReal obj0;
  437.     DPSBinObjReal obj1;
  438.     DPSBinObjReal obj2;
  439.     DPSBinObjReal obj3;
  440.     DPSBinObjReal obj4;
  441.     DPSBinObjGeneric obj5;
  442.     } _dpsQ;
  443.   static const _dpsQ _dpsStat = {
  444.     DPS_DEF_TOKENTYPE, 6, 52,
  445.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: X1 */
  446.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: Y1 */
  447.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: X0 */
  448.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: Y0 */
  449.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: Ang */
  450.     {DPS_EXEC|DPS_NAME, 0, 0, 0},    /* RML */
  451.     }; /* _dpsQ */
  452.   _dpsQ _dpsF;    /* local copy  */
  453.   register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
  454.   register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
  455.   static long int _dpsCodes[1] = {-1};
  456.   {
  457. if (_dpsCodes[0] < 0) {
  458.     static const char * const _dps_names[] = {
  459.     "RML"};
  460.     long int *_dps_nameVals[1];
  461.     _dps_nameVals[0] = &_dpsCodes[0];
  462.  
  463.     DPSMapNames(_dpsCurCtxt, 1, _dps_names, _dps_nameVals);
  464.     }
  465.   }
  466.  
  467.   _dpsF = _dpsStat;    /* assign automatic variable */
  468.  
  469.   _dpsP[4].val.realVal = Ang;
  470.   _dpsP[2].val.realVal = X0;
  471.   _dpsP[3].val.realVal = Y0;
  472.   _dpsP[0].val.realVal = X1;
  473.   _dpsP[1].val.realVal = Y1;
  474.   _dpsP[5].val.nameVal = _dpsCodes[0];
  475.   DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,52);
  476. }
  477. #line 90 "DialViewWraps.psw"
  478.  
  479. #line 480 "DialViewWraps.c"
  480. void PSWPlaceName(char *str)
  481. {
  482.   typedef struct {
  483.     unsigned char tokenType;
  484.     unsigned char sizeFlag;
  485.     unsigned short topLevelCount;
  486.     unsigned long nBytes;
  487.  
  488.     DPSBinObjGeneric obj0;
  489.     } _dpsQ;
  490.   static const _dpsQ _dpsStat = {
  491.     DPS_DEF_TOKENTYPE, 0, 1, 16,
  492.     {DPS_LITERAL|DPS_NAME, 0, 0, 8},    /* param str */
  493.     }; /* _dpsQ */
  494.   _dpsQ _dpsF;    /* local copy  */
  495.   register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
  496.   register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
  497.   register int _dps_offset = 8;
  498.   _dpsF = _dpsStat;    /* assign automatic variable */
  499.  
  500.   _dpsP[0].length = strlen(str);
  501.   _dpsP[0].val.stringVal = _dps_offset;
  502.   _dps_offset += (_dpsP[0].length + 3) & ~3;
  503.  
  504.   _dpsF.nBytes = _dps_offset+8;
  505.   DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,16);
  506.   DPSWriteStringChars(_dpsCurCtxt, (char *)str, _dpsP[0].length);
  507.   DPSWriteStringChars(_dpsCurCtxt, (char *)_dpsCurCtxt, ~(_dpsP[0].length + 3) & 3);
  508. }
  509. #line 94 "DialViewWraps.psw"
  510.  
  511. #line 512 "DialViewWraps.c"
  512. void PSWDrawUserPath(char *str)
  513. {
  514.   typedef struct {
  515.     unsigned char tokenType;
  516.     unsigned char sizeFlag;
  517.     unsigned short topLevelCount;
  518.     unsigned long nBytes;
  519.  
  520.     DPSBinObjGeneric obj0;
  521.     DPSBinObjGeneric obj1;
  522.     } _dpsQ;
  523.   static const _dpsQ _dpsStat = {
  524.     DPS_DEF_TOKENTYPE, 0, 2, 24,
  525.     {DPS_EXEC|DPS_NAME, 0, 0, 16},    /* param str */
  526.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 183},    /* ustroke */
  527.     }; /* _dpsQ */
  528.   _dpsQ _dpsF;    /* local copy  */
  529.   register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
  530.   register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
  531.   register int _dps_offset = 16;
  532.   _dpsF = _dpsStat;    /* assign automatic variable */
  533.  
  534.   _dpsP[0].length = strlen(str);
  535.   _dpsP[0].val.stringVal = _dps_offset;
  536.   _dps_offset += (_dpsP[0].length + 3) & ~3;
  537.  
  538.   _dpsF.nBytes = _dps_offset+8;
  539.   DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,24);
  540.   DPSWriteStringChars(_dpsCurCtxt, (char *)str, _dpsP[0].length);
  541.   DPSWriteStringChars(_dpsCurCtxt, (char *)_dpsCurCtxt, ~(_dpsP[0].length + 3) & 3);
  542. }
  543. #line 98 "DialViewWraps.psw"
  544.  
  545.  
  546.