home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / INTERNET / WWW / LYNX / SOURCE / SRC0_8A.ZIP / DOSLYNX / INC / GLOBALS.H < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-09  |  5.2 KB  |  157 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_BeginAnchor    =    'A';
  69. const char c_EndAnchor        =    'a';
  70. const char c_BeginForm        =    'F';
  71. const char c_EndForm        =    'f';
  72.  
  73. //    Class declarations
  74. //    This function definition declared here since it wholly deals with
  75. //    global variables.
  76. extern void ReleaseSomeMemory();
  77.  
  78. //    Global variable declarations
  79. //    Borland C++ control.
  80. extern unsigned _stklen;
  81. extern unsigned _ovrbuffer;
  82. //    Name of the application.
  83. extern char *HTAppName;
  84. extern char *HTAppVersion;
  85. //    Application environment control.
  86. extern char *cp_inipath;
  87. extern char *cp_TempDir;
  88. extern TNSCollection *TNSCp_LoadedHTexts;
  89. extern unsigned short int usi_MaxLoadedHTexts;
  90. //    for hypertext colors.
  91. extern unsigned short int usia_TextColor[];
  92. extern unsigned short int usia_AnchorColor[];
  93. extern unsigned short int usia_SelectedColor[];
  94. extern unsigned short int usia_SearchColor[];
  95. extern unsigned short int usia_SearchSelectedColor[];
  96. //    Global variable for C functions in CPP to communicate to a view.
  97. extern TURLView *TURLV_current;
  98. //    Global TCapture window
  99. extern TCapture *TC;
  100. //    DosLynx tracing variable.
  101. extern char c_trace;
  102. //    Old new handler.
  103. extern void (*vfp_old_new_handler)();
  104. //    Free windows numbers available.
  105. extern Boolean B_freeWin[9];
  106. //    Last search executed
  107. extern char ca_searchLast[usi_TILURLSize];
  108. //    Graphical video mode to present images in.
  109. extern unsigned short int usi_graphicsmode;
  110. //    Default printer device.
  111. extern char *cp_Printer;
  112. //    Default home page or startup URL.
  113. extern char *cp_Home;
  114. //    Hot list file name.
  115. extern char *cp_HotList;
  116. //    Error HTML file name.
  117. extern char *cp_ErrorHTML;
  118. //    Default ReplyTo mail address for user.
  119. extern char *cp_ReplyTo;
  120. //    Wether or not we allow network access
  121. extern int i_networked;
  122. //    The news host for the user.
  123. extern char *cp_nntphost;
  124. //    EMS support.
  125. extern Boolean B_ems;
  126. extern unsigned short int usi_emspages;
  127. //    XMS support.
  128. extern Boolean B_xms;
  129. extern unsigned long int uli_xmslength;
  130. extern unsigned long int uli_xmsstart;
  131. #endif // __cplusplus
  132.  
  133. //    Really safe pool implementation.
  134. //    C specific stuff, ugh!!!!
  135. #define RSP_NUM  512
  136. #define RSP_SIZE 128
  137. #define Stop_Anchors 0
  138. #define Stop_Rendering 200
  139. extern char *really_safe_pool[RSP_NUM];
  140. //    Number of anchors skipped.
  141. extern unsigned short int usi_skipped;
  142. //    Wether or not an anchor was started.
  143. extern char c_DidStartAnchor;
  144. //    Proxy variables.
  145. extern char *cp_http_proxy;
  146. extern char *cp_gopher_proxy;
  147. extern char *cp_ftp_proxy;
  148. extern char *cp_wais_proxy;
  149. //    Wether or not a proxy is being used.
  150. extern BOOL B_proxy;
  151. //    Wehter or not to show informational messages.
  152. extern BOOL B_noInfo;
  153.  
  154. //    Macros
  155.  
  156. #endif // __GLOBALS_H
  157.