Commit 2c0cd6d2 authored by Claes Sjofors's avatar Claes Sjofors

Convert, html XMP tag is changed to PRE in class documentation

parent 54c6c256
...@@ -171,7 +171,7 @@ filename << endl << ...@@ -171,7 +171,7 @@ filename << endl <<
"</TITLE>" << endl << "</TITLE>" << endl <<
"</HEAD>" << endl << "</HEAD>" << endl <<
"<BODY BGCOLOR=\"white\">" << endl << "<BODY BGCOLOR=\"white\">" << endl <<
"<CODE><XMP>" << endl; "<CODE><PRE>" << endl;
return 1; return 1;
} }
...@@ -179,7 +179,7 @@ filename << endl << ...@@ -179,7 +179,7 @@ filename << endl <<
int CnvReadSrc::html_close() int CnvReadSrc::html_close()
{ {
fp_src_html << fp_src_html <<
"</XMP></CODE>" << endl << "</PRE></CODE>" << endl <<
"</BODY>" << endl << "</BODY>" << endl <<
"</HTML>" << endl; "</HTML>" << endl;
fp_src_html.close(); fp_src_html.close();
...@@ -189,7 +189,36 @@ int CnvReadSrc::html_close() ...@@ -189,7 +189,36 @@ int CnvReadSrc::html_close()
int CnvReadSrc::html_line( char *line) int CnvReadSrc::html_line( char *line)
{ {
fp_src_html << line << endl; char hline[1000];
char *s = line;
char *t = hline;
for ( s = line; *s; s++) {
switch ( *s) {
case '<':
strcpy( t, "&#60;");
t += 5;
break;
case '>':
strcpy( t, "&#62;");
t += 5;
break;
case '"':
strcpy( t, "&#34;");
t += 5;
break;
case '&':
strcpy( t, "&#38;");
t += 5;
break;
default:
*t = *s;
t++;
}
}
*t = 0;
fp_src_html << hline << endl;
return 1; return 1;
} }
...@@ -197,10 +226,10 @@ int CnvReadSrc::html_line( char *line) ...@@ -197,10 +226,10 @@ int CnvReadSrc::html_line( char *line)
int CnvReadSrc::html_aref() int CnvReadSrc::html_aref()
{ {
fp_src_html << fp_src_html <<
"</XMP></CODE>" << endl << "</PRE></CODE>" << endl <<
"<HR><BR>" << endl << "<HR><BR>" << endl <<
"<A NAME=\"" << src_aref << "\"><H1>" << src_aref_text << "</H1></A>" << endl << "<A NAME=\"" << src_aref << "\"><H1>" << src_aref_text << "</H1></A>" << endl <<
"<HR><CODE><XMP>" << endl; "<HR><CODE><PRE>" << endl;
return 1; return 1;
} }
......
...@@ -623,7 +623,7 @@ endl << ...@@ -623,7 +623,7 @@ endl <<
html_clf->f << html_clf->f <<
"<BR><DT><B>" << Lng::translate("Description") << "</B><DT><BR>" << endl << "<BR><DT><B>" << Lng::translate("Description") << "</B><DT><BR>" << endl <<
"</DL><DIV ID=\"description\"><XMP>" << endl; "</DL><DIV ID=\"description\"><PRE>" << endl;
if ( ctx->rw->doc_fresh) { if ( ctx->rw->doc_fresh) {
for ( i = 0; i < ctx->rw->doc_cnt; i++) { for ( i = 0; i < ctx->rw->doc_cnt; i++) {
...@@ -632,16 +632,16 @@ endl << ...@@ -632,16 +632,16 @@ endl <<
char imagefile[80]; char imagefile[80];
ctx->remove_spaces( txt + 6, imagefile); ctx->remove_spaces( txt + 6, imagefile);
html_clf->f << "</XMP><IMG SRC=\"" << imagefile << "\"><XMP>" << endl; html_clf->f << "</PRE><IMG SRC=\"" << imagefile << "\"><PRE>" << endl;
} }
else if ( strncmp( CnvCtx::low(txt), "@b", 2) == 0) { else if ( strncmp( CnvCtx::low(txt), "@b", 2) == 0) {
html_clf->f << "</XMP><B><FONT SIZE=\"3\">" << txt + 2 << "</FONT></B><BR><XMP>" << endl; html_clf->f << "</PRE><B><FONT SIZE=\"3\">" << txt + 2 << "</FONT></B><BR><PRE>" << endl;
} }
else if ( strncmp( CnvCtx::low(txt), "@h1", 3) == 0) { else if ( strncmp( CnvCtx::low(txt), "@h1", 3) == 0) {
html_clf->f << "</XMP><H3>" << txt + 3 << "</H3><BR><XMP>" << endl; html_clf->f << "</PRE><H3>" << txt + 3 << "</H3><BR><PRE>" << endl;
} }
else if ( strncmp( CnvCtx::low(txt), "@h2", 3) == 0) { else if ( strncmp( CnvCtx::low(txt), "@h2", 3) == 0) {
html_clf->f << "</XMP><H4>" << txt + 3 << "</H4><BR><XMP>" << endl; html_clf->f << "</PRE><H4>" << txt + 3 << "</H4><BR><PRE>" << endl;
} }
else if ( strncmp( CnvCtx::low(txt), "@i", 2) == 0) { else if ( strncmp( CnvCtx::low(txt), "@i", 2) == 0) {
html_clf->f << txt + 2 << endl; html_clf->f << txt + 2 << endl;
...@@ -651,7 +651,7 @@ endl << ...@@ -651,7 +651,7 @@ endl <<
} }
} }
html_clf->f << html_clf->f <<
"</XMP>" << endl; "</PRE>" << endl;
for ( i = 0; i < ctx->rw->doc_xlink_cnt; i++) { for ( i = 0; i < ctx->rw->doc_xlink_cnt; i++) {
html_clf->f << html_clf->f <<
...@@ -916,7 +916,7 @@ int CnvWblToHtml::attribute_exec() ...@@ -916,7 +916,7 @@ int CnvWblToHtml::attribute_exec()
continue; continue;
} }
else if ( strncmp( CnvCtx::low(txt), "@b", 2) == 0) { else if ( strncmp( CnvCtx::low(txt), "@b", 2) == 0) {
html_clf->f << "</XMP><B><FONT SIZE=\"3\">" << txt + 2 << "</FONT></B><XMP><BR>" << endl; html_clf->f << "</PRE><B><FONT SIZE=\"3\">" << txt + 2 << "</FONT></B><PRE><BR>" << endl;
} }
else if ( strncmp( CnvCtx::low(txt), "@h1", 3) == 0) { else if ( strncmp( CnvCtx::low(txt), "@h1", 3) == 0) {
html_clf->f << "<H3>" << txt + 3 << "</H3><BR>" << endl; html_clf->f << "<H3>" << txt + 3 << "</H3><BR>" << endl;
...@@ -981,7 +981,7 @@ int CnvWblToHtml::attribute_exec() ...@@ -981,7 +981,7 @@ int CnvWblToHtml::attribute_exec()
fp_tmp << fp_tmp <<
"<BR>" << endl << "<BR>" << endl <<
"<CODE><B>" << Lng::translate("Description") << "</B></CODE><DT></DL>" << endl << "<CODE><B>" << Lng::translate("Description") << "</B></CODE><DT></DL>" << endl <<
"<DIV ID=\"description\"><XMP>" << endl; "<DIV ID=\"description\"><PRE>" << endl;
if ( ctx->rw->doc_fresh) { if ( ctx->rw->doc_fresh) {
for ( i = 0; i < ctx->rw->doc_cnt; i++) { for ( i = 0; i < ctx->rw->doc_cnt; i++) {
...@@ -990,23 +990,23 @@ int CnvWblToHtml::attribute_exec() ...@@ -990,23 +990,23 @@ int CnvWblToHtml::attribute_exec()
char imagefile[80]; char imagefile[80];
ctx->remove_spaces( txt + 6, imagefile); ctx->remove_spaces( txt + 6, imagefile);
fp_tmp << "</XMP><IMG SRC=\"" << imagefile << "\"><XMP>" << endl; fp_tmp << "</PRE><IMG SRC=\"" << imagefile << "\"><PRE>" << endl;
} }
else if ( strncmp( CnvCtx::low(txt), "@b", 2) == 0) { else if ( strncmp( CnvCtx::low(txt), "@b", 2) == 0) {
fp_tmp << "</XMP><B><FONT SIZE=\"3\">" << txt + 2 << "</FONT></B><BR><XMP>" << endl; fp_tmp << "</PRE><B><FONT SIZE=\"3\">" << txt + 2 << "</FONT></B><BR><PRE>" << endl;
} }
else if ( strncmp( CnvCtx::low(txt), "@h1", 3) == 0) { else if ( strncmp( CnvCtx::low(txt), "@h1", 3) == 0) {
fp_tmp << "</XMP><H3>" << txt + 3 << "</H3><BR><XMP>" << endl; fp_tmp << "</PRE><H3>" << txt + 3 << "</H3><BR><PRE>" << endl;
} }
else if ( strncmp( CnvCtx::low(txt), "@h2", 3) == 0) { else if ( strncmp( CnvCtx::low(txt), "@h2", 3) == 0) {
fp_tmp << "</XMP><H4>" << txt + 3 << "</H4><BR><XMP>" << endl; fp_tmp << "</PRE><H4>" << txt + 3 << "</H4><BR><PRE>" << endl;
} }
else else
fp_tmp << ctx->rw->doc_text[i] << endl; fp_tmp << ctx->rw->doc_text[i] << endl;
} }
} }
fp_tmp << fp_tmp <<
"</XMP></DIV>" << endl; "</PRE></DIV>" << endl;
return 1; return 1;
} }
...@@ -1040,7 +1040,7 @@ int CnvWblToHtml::bit_exec() ...@@ -1040,7 +1040,7 @@ int CnvWblToHtml::bit_exec()
continue; continue;
} }
else if ( strncmp( CnvCtx::low(txt), "@b", 2) == 0) { else if ( strncmp( CnvCtx::low(txt), "@b", 2) == 0) {
html_clf->f << "</XMP><B><FONT SIZE=\"3\">" << txt + 2 << "</FONT></B><XMP><BR>" << endl; html_clf->f << "</PRE><B><FONT SIZE=\"3\">" << txt + 2 << "</FONT></B><PRE><BR>" << endl;
} }
else if ( strncmp( CnvCtx::low(txt), "@h1", 3) == 0) { else if ( strncmp( CnvCtx::low(txt), "@h1", 3) == 0) {
html_clf->f << "<H3>" << txt + 3 << "</H3><BR>" << endl; html_clf->f << "<H3>" << txt + 3 << "</H3><BR>" << endl;
...@@ -1077,7 +1077,7 @@ int CnvWblToHtml::bit_exec() ...@@ -1077,7 +1077,7 @@ int CnvWblToHtml::bit_exec()
fp_tmp << fp_tmp <<
"<BR>" << endl << "<BR>" << endl <<
"<CODE><B>Description</B></CODE><DT></DL>" << endl << "<CODE><B>Description</B></CODE><DT></DL>" << endl <<
"<DIV ID=\"description\"><XMP>" << endl; "<DIV ID=\"description\"><PRE>" << endl;
if ( ctx->rw->doc_fresh) { if ( ctx->rw->doc_fresh) {
for ( i = 0; i < ctx->rw->doc_cnt; i++) { for ( i = 0; i < ctx->rw->doc_cnt; i++) {
...@@ -1086,23 +1086,23 @@ int CnvWblToHtml::bit_exec() ...@@ -1086,23 +1086,23 @@ int CnvWblToHtml::bit_exec()
char imagefile[80]; char imagefile[80];
ctx->remove_spaces( txt + 6, imagefile); ctx->remove_spaces( txt + 6, imagefile);
fp_tmp << "</XMP><IMG SRC=\"" << imagefile << "\"><XMP>" << endl; fp_tmp << "</PRE><IMG SRC=\"" << imagefile << "\"><PRE>" << endl;
} }
else if ( strncmp( CnvCtx::low(txt), "@b", 2) == 0) { else if ( strncmp( CnvCtx::low(txt), "@b", 2) == 0) {
fp_tmp << "</XMP><B><FONT SIZE=\"3\">" << txt + 2 << "</FONT></B><BR><XMP>" << endl; fp_tmp << "</PRE><B><FONT SIZE=\"3\">" << txt + 2 << "</FONT></B><BR><PRE>" << endl;
} }
else if ( strncmp( CnvCtx::low(txt), "@h1", 3) == 0) { else if ( strncmp( CnvCtx::low(txt), "@h1", 3) == 0) {
fp_tmp << "</XMP><H3>" << txt + 3 << "</H3><BR><XMP>" << endl; fp_tmp << "</PRE><H3>" << txt + 3 << "</H3><BR><PRE>" << endl;
} }
else if ( strncmp( CnvCtx::low(txt), "@h2", 3) == 0) { else if ( strncmp( CnvCtx::low(txt), "@h2", 3) == 0) {
fp_tmp << "</XMP><H4>" << txt + 3 << "</H4><BR><XMP>" << endl; fp_tmp << "</PRE><H4>" << txt + 3 << "</H4><BR><PRE>" << endl;
} }
else else
fp_tmp << ctx->rw->doc_text[i] << endl; fp_tmp << ctx->rw->doc_text[i] << endl;
} }
} }
fp_tmp << fp_tmp <<
"</XMP></DIV>" << endl; "</PRE></DIV>" << endl;
return 1; return 1;
} }
...@@ -1261,7 +1261,7 @@ endl << ...@@ -1261,7 +1261,7 @@ endl <<
html_clf->f << html_clf->f <<
"<BR><DT><B>Description</B><DT><BR>" << endl << "<BR><DT><B>Description</B><DT><BR>" << endl <<
"</DL><DIV ID=\"description\"><XMP>" << endl; "</DL><DIV ID=\"description\"><PRE>" << endl;
if ( ctx->rw->doc_fresh) { if ( ctx->rw->doc_fresh) {
for ( i = 0; i < ctx->rw->doc_cnt; i++) { for ( i = 0; i < ctx->rw->doc_cnt; i++) {
...@@ -1270,23 +1270,23 @@ endl << ...@@ -1270,23 +1270,23 @@ endl <<
char imagefile[80]; char imagefile[80];
ctx->remove_spaces( txt + 6, imagefile); ctx->remove_spaces( txt + 6, imagefile);
html_clf->f << "</XMP><IMG SRC=\"" << imagefile << "\"><XMP>" << endl; html_clf->f << "</PRE><IMG SRC=\"" << imagefile << "\"><PRE>" << endl;
} }
else if ( strncmp( CnvCtx::low(txt), "@b", 2) == 0) { else if ( strncmp( CnvCtx::low(txt), "@b", 2) == 0) {
html_clf->f << "</XMP><B><FONT SIZE=\"3\">" << txt + 2 << "</FONT></B><BR><XMP>" << endl; html_clf->f << "</PRE><B><FONT SIZE=\"3\">" << txt + 2 << "</FONT></B><BR><PRE>" << endl;
} }
else if ( strncmp( CnvCtx::low(txt), "@h1", 3) == 0) { else if ( strncmp( CnvCtx::low(txt), "@h1", 3) == 0) {
html_clf->f << "</XMP><H3>" << txt + 3 << "</H3><BR><XMP>" << endl; html_clf->f << "</PRE><H3>" << txt + 3 << "</H3><BR><PRE>" << endl;
} }
else if ( strncmp( CnvCtx::low(txt), "@h2", 3) == 0) { else if ( strncmp( CnvCtx::low(txt), "@h2", 3) == 0) {
html_clf->f << "</XMP><H4>" << txt + 3 << "</H4><BR><XMP>" << endl; html_clf->f << "</PRE><H4>" << txt + 3 << "</H4><BR><PRE>" << endl;
} }
else else
html_clf->f << ctx->rw->doc_text[i] << endl; html_clf->f << ctx->rw->doc_text[i] << endl;
} }
} }
html_clf->f << html_clf->f <<
"</XMP></DIV>" << endl; "</PRE></DIV>" << endl;
for ( i = 0; i < ctx->rw->doc_link_cnt; i++) { for ( i = 0; i < ctx->rw->doc_link_cnt; i++) {
html_clf->f << html_clf->f <<
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment