home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / msdos / lynx / source / doslynx / inc / globals.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-25  |  5.1 KB  |  153 lines

  1. #ifndef __GLOBALS_H
  2. //    Avoid include redundancy
  3. #define __GLOBALS_H
  4.  
  5. //    Copyright (c) 1993, University of Kansas, All Rights Reserved
  6. //
  7. //    Include File:    globals.h
  8. //    Purpose:    declarations for DOSLYNX global variables.
  9. //    Remarks/Portability/Dependencies/Restrictions:
  10. //        The actual definitions of the variables can be found in
  11. //        globals.c
  12. //    Revision History:
  13. //        12-09-93    created
  14.  
  15. //    Required includes
  16. #ifdef __cplusplus
  17. #define Uses_TNSCollection
  18. #include<tv.h>
  19. #include"turlview.h"
  20. #include"tcapture.h"
  21.  
  22. //    Constant defines
  23. const signed short int maxLineLengthDLX = 256;
  24. //    Commands, use 100-255 and 1000 on up for application's use.
  25. const unsigned short int cmOpenURL        =    100;
  26. const unsigned short int cmUnHideMessage    =    101;
  27. const unsigned short int cmDosShell        =    102;
  28. const unsigned short int cmTraceWWW        =    103;
  29. const unsigned short int cmTraceWATTCP        =    104;
  30. const unsigned short int cmOpenLocal        =    105;
  31. const unsigned short int cmTraceDOSLYNX        =    106;
  32. const unsigned short int cmLoadChild        =    107;
  33. const unsigned short int cmOwnerClose        =    108;
  34. const unsigned short int cmLoadParent        =    109;
  35. const unsigned short int cmNextAnchor        =    110;
  36. const unsigned short int cmPreviousAnchor    =    111;
  37. const unsigned short int cmSelectAnchor        =    112;
  38. const unsigned short int cmPreviousDocument    =    113;
  39. const unsigned short int cmShowDestination    =    114;
  40. const unsigned short int cmCloneWindow        =    115;
  41. const unsigned short int cmAboutDosLynx        =    116;
  42. const unsigned short int cmHotList        =    117;
  43. const unsigned short int cmSaveDLX        =    118;
  44. const unsigned short int cmPrint        =    119;
  45. const unsigned short int cmSearch        =    120;
  46. const unsigned short int cmSearchAgainDLX    =    121;
  47. const unsigned short int cmMailDeveloper    =    122;
  48. const unsigned short int cmAddToHotList        =    123;
  49. const unsigned short int cmVideoMode        =    124;
  50. const unsigned short int cmAddToHist        =    125;
  51. const unsigned short int cmSearchIndex        =    126;
  52. const unsigned short int cmImage        =    127;
  53. const unsigned short int cmHomePage        =    128;
  54. //    History IDs
  55. const unsigned short int usi_OpenURLHist    =    0x0000U;
  56. const unsigned short int usi_OpenLocalHist    =    0x0001U;
  57. const unsigned short int usi_SaveHist        =    0x0002U;
  58. const unsigned short int usi_PrintHist        =    0x0003U;
  59. const unsigned short int usi_IndexHist        =    0x0004U;
  60. //    Constant for URL buffer sizes
  61. const unsigned short int usi_TILURLSize = 1024;
  62. //    Special embedded character values in a HText image file.
  63. //    c_Embedded will begin a special sequence with an indentifying
  64. //    character following.
  65. #define c_Embedded '\033'
  66. const char c_AppendParagraph    =    'P';
  67. const char c_SetStyle        =    'S';
  68. const char c_EndAnchor        =    'E';
  69. const char c_BeginAnchor    =    'B';
  70.  
  71. //    Class declarations
  72. //    This function definition declared here since it wholly deals with
  73. //    global variables.
  74. extern void ReleaseSomeMemory();
  75.  
  76. //    Global variable declarations
  77. //    Borland C++ control.
  78. extern unsigned _stklen;
  79. extern unsigned _ovrbuffer;
  80. //    Name of the application.
  81. extern char *HTAppName;
  82. extern char *HTAppVersion;
  83. //    Application environment control.
  84. extern char *cp_inipath;
  85. extern char *cp_TempDir;
  86. extern TNSCollection *TNSCp_LoadedHTexts;
  87. extern unsigned short int usi_MaxLoadedHTexts;
  88. //    for hypertext colors.
  89. extern unsigned short int usia_TextColor[];
  90. extern unsigned short int usia_AnchorColor[];
  91. extern unsigned short int usia_SelectedColor[];
  92. extern unsigned short int usia_SearchColor[];
  93. extern unsigned short int usia_SearchSelectedColor[];
  94. //    Global variable for C functions in CPP to communicate to a view.
  95. extern TURLView *TURLV_current;
  96. //    Global TCapture window
  97. extern TCapture *TC;
  98. //    DosLynx tracing variable.
  99. extern char c_trace;
  100. //    Old new handler.
  101. extern void (*vfp_old_new_handler)();
  102. //    Free windows numbers available.
  103. extern Boolean B_freeWin[9];
  104. //    Last search executed
  105. extern char ca_searchLast[usi_TILURLSize];
  106. //    Graphical video mode to present images in.
  107. extern unsigned short int usi_graphicsmode;
  108. //    Default printer device.
  109. extern char *cp_Printer;
  110. //    Default home page or startup URL.
  111. extern char *cp_Home;
  112. //    Hot list file name.
  113. extern char *cp_HotList;
  114. //    Error HTML file name.
  115. extern char *cp_ErrorHTML;
  116. //    Default ReplyTo mail address for user.
  117. extern char *cp_ReplyTo;
  118. //    Wether or not we allow network access
  119. extern int i_networked;
  120. //    The news host for the user.
  121. extern char *cp_nntphost;
  122. //    EMS support.
  123. extern Boolean B_ems;
  124. extern unsigned short int usi_emspages;
  125. //    XMS support.
  126. extern Boolean B_xms;
  127. extern unsigned long int uli_xmslength;
  128. extern unsigned long int uli_xmsstart;
  129. #endif // __cplusplus
  130. //    Really safe pool implementation.
  131. //    C specific stuff, ugh!!!!
  132. #define RSP_NUM  512
  133. #define RSP_SIZE 128
  134. #define Stop_Anchors 0
  135. #define Stop_Rendering 200
  136. extern char *really_safe_pool[RSP_NUM];
  137. //    Number of anchors skipped.
  138. extern unsigned short int usi_skipped;
  139. //    Wether or not an anchor was started.
  140. extern char c_DidStartAnchor;
  141. //    Proxy variables.
  142. extern char *cp_http_proxy;
  143. extern char *cp_gopher_proxy;
  144. extern char *cp_ftp_proxy;
  145. extern char *cp_wais_proxy;
  146. //    Wether or not a proxy is being used.
  147. extern BOOL B_proxy;
  148.  
  149.  
  150. //    Macros
  151.  
  152. #endif // __GLOBALS_H
  153.