home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / s / stex2-18.zip / SeeTeX / Xtex / xtex.h < prev    next >
C/C++ Source or Header  |  1992-06-25  |  3KB  |  133 lines

  1. /*
  2.  * Copyright 1989 Dirk Grunwald
  3.  * 
  4.  * Permission to use, copy, modify, distribute, and sell this software
  5.  * and its documentation for any purpose is hereby granted without fee,
  6.  * provided that the above copyright notice appear in all copies and that
  7.  * both that copyright notice and this permission notice appear in
  8.  * supporting documentation, and that the name of Dirk Grunwald or M.I.T.
  9.  * not be used in advertising or publicity pertaining to distribution of
  10.  * the software without specific, written prior permission.  Dirk
  11.  * Grunwald and M.I.T. makes no representations about the suitability of
  12.  * this software for any purpose.  It is provided "as is" without express
  13.  * or implied warranty.
  14.  * 
  15.  * DIRK GRUNWALD AND M.I.T. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
  16.  * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  17.  * FITNESS, IN NO EVENT SHALL M.I.T.  BE LIABLE FOR ANY SPECIAL, INDIRECT
  18.  * OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
  19.  * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  20.  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  21.  * OR PERFORMANCE OF THIS SOFTWARE.
  22.  * 
  23.  * Author:
  24.  *     Dr. Dirk Grunwald
  25.  *     Dept. of Computer Science
  26.  *     Campus Box 430
  27.  *     Univ. of Colorado, Boulder
  28.  *     Boulder, CO 80309
  29.  * 
  30.  *     grunwald@colorado.edu
  31.  *     
  32.  */ 
  33.  
  34. /* Std system and C header files */
  35.  
  36. #ifndef _tex2h_
  37. #define _tex2h_
  38.  
  39. #include <stdio.h>
  40. #include <sys/types.h>
  41. #include <sys/dir.h>
  42. #include <sys/stat.h>
  43.  
  44. /* X include files */
  45.  
  46. #include <X11/Xlib.h>
  47.  
  48. /* X toolkit header files */
  49.  
  50. #include <X11/Intrinsic.h>
  51. #include <X11/StringDefs.h>
  52. #include <X11/Shell.h>
  53.  
  54. /* Widget header files. */
  55.  
  56. #include <X11/Xaw/AsciiText.h>
  57. #include <X11/Xaw/Box.h>
  58. #include <X11/Xaw/Command.h>
  59. #include <X11/Xaw/Viewport.h>
  60. #include <X11/Xaw/List.h>
  61.  
  62. extern Widget TopLevelWidget;
  63.  
  64. extern char *ProgName;
  65.  
  66. typedef struct  {
  67.     Bool incorrectlyInstalled;
  68.     float programVersion;
  69.     float resourcesVersion;
  70.  
  71.     char *printProgram;
  72.  
  73.     char *fontPath;
  74.  
  75.     int userMag;
  76.  
  77.     char *tfmPath;
  78.  
  79.     char *xFontPath;
  80.  
  81.     char *makeFont;
  82.     Bool automakeFont;
  83.  
  84.     float dpiHoriz;
  85.     float dpiVert;
  86.  
  87.     Bool autoSize;
  88.     int largeMag;
  89.     int smallMag;
  90.  
  91.     int pageMaxWd;
  92.     int pageMaxHt;
  93.  
  94.     float paperWidth;
  95.     float paperHeight;
  96.  
  97.     float leftOffset;
  98.     float topOffset;
  99.  
  100.     char *helpText;
  101.  
  102.     Bool useButtons;
  103.     Bool updateNames;
  104.     char *pushOnStart;
  105.  
  106.     Bool divertByPush;
  107.  
  108.     Bool debug;
  109.  
  110.     Bool showPostScript;
  111.  
  112.     Bool useGhostScript;
  113.  
  114.     Bool useNEWS;
  115.  
  116.     Bool useDPS;
  117.  
  118. } xtexResourceStruct;
  119.  
  120. extern xtexResourceStruct xtexResources;
  121.  
  122. #define Debug xtexResources.debug
  123.  
  124. #ifdef __STDC__
  125.   extern void DialogMessage(char *, int);
  126.   extern char * TeXConfirmString(Widget, char *, char *);
  127. #else
  128.   extern void DialogMessage();
  129.   extern char * TeXConfirmString();
  130. #endif
  131.  
  132. #endif
  133.