about summary refs log tree commit diff stats
path: root/src/GridText.h
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>1998-11-10 19:47:00 -0500
committerThomas E. Dickey <dickey@invisible-island.net>1998-11-10 19:47:00 -0500
commitd3f9d5478df478427c2aa5db4507ddd0a38f0eb6 (patch)
treee27eacd6bbda653dd77f11cc020b9e0a59f7f4fc /src/GridText.h
parent18024037b515bfff83e0230b35151babe6005e18 (diff)
downloadlynx-snapshots-d3f9d5478df478427c2aa5db4507ddd0a38f0eb6.tar.gz
snapshot of project "lynx", label v2-8-2dev_2
Diffstat (limited to 'src/GridText.h')
-rw-r--r--src/GridText.h73
1 files changed, 59 insertions, 14 deletions
diff --git a/src/GridText.h b/src/GridText.h
index 265cadd7..a99f66da 100644
--- a/src/GridText.h
+++ b/src/GridText.h
@@ -10,6 +10,12 @@
 #include <HTForms.h>
 #endif /* HTFORMS_H */
 
+#ifndef HT_NON_BREAK_SPACE
+#define HT_NON_BREAK_SPACE	((char)1)	/* remember it */
+#endif /* !HT_NON_BREAK_SPACE */
+#ifndef HT_EM_SPACE
+#define HT_EM_SPACE		((char)2)	/* remember it */
+#endif /* !HT_EM_SPACE */
 #define LY_UNDERLINE_START_CHAR	'\003'
 #define LY_UNDERLINE_END_CHAR	'\004'
 #define LY_BOLD_START_CHAR	'\005'
@@ -17,7 +23,46 @@
 #ifndef LY_SOFT_HYPHEN
 #define LY_SOFT_HYPHEN		((char)7)
 #endif /* !LY_SOFT_HYPHEN */
-#define IsSpecialAttrChar(a)  ((a > '\002') && (a < '\010'))
+#define LY_SOFT_NEWLINE         ((char)8)
+
+#define IsSpecialAttrChar(a)  ((a > '\002') && (a <= '\010'))
+
+/* just for information:
+US-ASCII control characters <32 which are not defined in Unicode standard
+=00	U+0000	NULL
+=01	U+0001	START OF HEADING
+=02	U+0002	START OF TEXT
+=03	U+0003	END OF TEXT
+=04	U+0004	END OF TRANSMISSION
+=05	U+0005	ENQUIRY
+=06	U+0006	ACKNOWLEDGE
+=07	U+0007	BELL
+=08	U+0008	BACKSPACE
+=09	U+0009	HORIZONTAL TABULATION
+=0A	U+000A	LINE FEED
+=0B	U+000B	VERTICAL TABULATION
+=0C	U+000C	FORM FEED
+=0D	U+000D	CARRIAGE RETURN
+=0E	U+000E	SHIFT OUT
+=0F	U+000F	SHIFT IN
+=10	U+0010	DATA LINK ESCAPE
+=11	U+0011	DEVICE CONTROL ONE
+=12	U+0012	DEVICE CONTROL TWO
+=13	U+0013	DEVICE CONTROL THREE
+=14	U+0014	DEVICE CONTROL FOUR
+=15	U+0015	NEGATIVE ACKNOWLEDGE
+=16	U+0016	SYNCHRONOUS IDLE
+=17	U+0017	END OF TRANSMISSION BLOCK
+=18	U+0018	CANCEL
+=19	U+0019	END OF MEDIUM
+=1A	U+001A	SUBSTITUTE
+=1B	U+001B	ESCAPE
+=1C	U+001C	FILE SEPARATOR
+=1D	U+001D	GROUP SEPARATOR
+=1E	U+001E	RECORD SEPARATOR
+=1F	U+001F	UNIT SEPARATOR
+=7F	U+007F	DELETE
+*/
 
 extern int HTCurSelectGroupType;
 extern char * HTCurSelectGroupSize;
@@ -38,9 +83,6 @@ extern HTParentAnchor * HTMainAnchor;	/* Anchor for HTMainText */
 #endif /* SHORT_NAMES */
 
 extern int WWW_TraceFlag;
-extern int HTCacheSize;
-
-extern BOOLEAN mustshow;
 
 #if defined(VMS) && defined(VAXC) && !defined(__DECC)
 extern int HTVirtualMemorySize;
@@ -71,23 +113,23 @@ extern void HText_setIgnoreExcess PARAMS((HText *text, BOOL ignore));
 extern int HText_sourceAnchors PARAMS((HText * text));
 extern void HText_setStale PARAMS((HText * text));
 extern void HText_refresh PARAMS((HText * text));
-extern char * HText_getTitle NOPARAMS;
-extern char * HText_getSugFname NOPARAMS;
+extern CONST char * HText_getTitle NOPARAMS;
+extern CONST char * HText_getSugFname NOPARAMS;
 extern void HTCheckFnameForCompression PARAMS((
 	char **			fname,
 	HTParentAnchor *	anchor,
 	BOOLEAN			strip_ok));
-extern char * HText_getLastModified NOPARAMS;
-extern char * HText_getDate NOPARAMS;
-extern char * HText_getServer NOPARAMS;
-extern char * HText_getOwner NOPARAMS;
-extern char * HText_getContentBase NOPARAMS;
-extern char * HText_getContentLocation NOPARAMS;
+extern CONST char * HText_getLastModified NOPARAMS;
+extern CONST char * HText_getDate NOPARAMS;
+extern CONST char * HText_getServer NOPARAMS;
+extern CONST char * HText_getOwner NOPARAMS;
+extern CONST char * HText_getContentBase NOPARAMS;
+extern CONST char * HText_getContentLocation NOPARAMS;
+extern CONST char * HText_getRevTitle NOPARAMS;
 #ifdef USE_HASH
-extern char * HText_getStyle NOPARAMS;
+extern CONST char * HText_getStyle NOPARAMS;
 #endif
 extern void HText_setMainTextOwner PARAMS((CONST char * owner));
-extern char * HText_getRevTitle NOPARAMS;
 extern void print_wwwfile_to_fd PARAMS((FILE * fp, int is_reply));
 extern BOOL HText_select PARAMS((HText *text));
 extern BOOL HText_POSTReplyLoaded PARAMS((document *doc));
@@ -158,6 +200,9 @@ extern int HText_beginInput PARAMS((
 	HText *		text,
 	BOOL		underline,
 	InputFieldData *I));
+extern void HText_trimHightext PARAMS((
+	HText *		text,
+	BOOLEAN		disable_trace));
 extern void HText_SubmitForm PARAMS((
 	FormInfo *	submit_item,
 	document *	doc,