Commit 2c83f9cb authored by claes's avatar claes

Class tree html work

parent 369383a1
......@@ -92,6 +92,16 @@ div#description {
background-color: #ffffff;
}
table#ctree {font-family: Arial, Verdana;
font-size: 12pt;
text-align: left;
border: 1px solid black;
}
td#ctree {border: 1px solid gray;
padding: 2px 10px 2px 10px;
width: 200px;
}
......
/*
* Proview $Id: cnv_classdep.cpp,v 1.1 2005-11-14 16:11:23 claes Exp $
* Proview $Id: cnv_classdep.cpp,v 1.2 2005-11-17 08:59:21 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -152,18 +152,32 @@ void CnvClassDep::print_html_classtable( int idx)
" </head>" << endl <<
" <body>" << endl;
if ( parent_cnt == 0 && classlist[idx].fch == 0)
fp << "There are no superclass and no known subclasses to this class" << endl;
if ( parent_cnt == 0 && classlist[idx].fch == 0) {
switch( Lng::current()) {
case lng_eLanguage_sv_se:
fp << "Det finns ingen superklass eller knda subklasser till klass " << classlist[idx].name << "." << endl;
break;
default:
fp << "There are no superclass or known subclasses to class " << classlist[idx].name << "." << endl;
}
}
else {
fp << "<table border><tr>" << endl;
switch( Lng::current()) {
case lng_eLanguage_sv_se:
fp << "<h2>Klasstrd " << classlist[idx].name << "</h2>" << endl;
break;
default:
fp << "<h2>ClassTree " << classlist[idx].name << "</h2>" << endl;
}
fp << "<table id=\"ctree\"><tr>" << endl;
for ( int i = parent_cnt - 1; i >= 0; i--) {
sprintf( href, "%s_%s.html", classlist[parentlist[i]].volumename, classlist[parentlist[i]].name);
cdh_ToLower( href, href);
fp << "<td><a href=\"" << href << "\">" << classlist[parentlist[i]].name << "</a></td>" << endl;
fp << "<td id=\"ctree\"><a href=\"" << href << "\">" << classlist[parentlist[i]].name << "</a></td>" << endl;
}
sprintf( href, "%s_%s.html", classlist[idx].volumename, classlist[idx].name);
cdh_ToLower( href, href);
fp << "<td bgcolor=\"lightblue\"><a href=\"" << href << "\">" << classlist[idx].name << "</a></td><td>" << endl;
fp << "<td id=\"ctree\" bgcolor=\"lightblue\"><a href=\"" << href << "\">" << classlist[idx].name << "</a></td><td id=\"ctree\">" << endl;
print_html_classtable_children( fp, idx);
fp << "</td></table>" << endl;
......@@ -180,13 +194,13 @@ void CnvClassDep::print_html_classtable_children( ofstream& fp, int idx)
if ( classlist[idx].fch == 0)
return;
fp << "<table border>" << endl;
fp << "<table id=\"ctree\">" << endl;
for ( int i = classlist[idx].fch; i; i = classlist[i].fws) {
sprintf( href, "%s_%s.html", classlist[i].volumename, classlist[i].name);
cdh_ToLower( href, href);
fp << "<tr><td><a href=\"" << href << "\">" << classlist[i].name << "</a>" << endl;
fp << "<tr><td id=\"ctree\"><a href=\"" << href << "\">" << classlist[i].name << "</a>" << endl;
if ( classlist[i].fch) {
fp << "<td>" << endl;
fp << "<td id=\"ctree\">" << endl;
print_html_classtable_children( fp, i);
fp << "</td></tr>" << endl;
}
......
/*
* Proview $Id: cnv_wbltohtml.cpp,v 1.10 2005-11-14 16:11:23 claes Exp $
* Proview $Id: cnv_wbltohtml.cpp,v 1.11 2005-11-17 08:59:21 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -532,14 +532,15 @@ endl <<
"&nbsp;|&nbsp;<A HREF=\"#detail\">Detail</A>" << endl <<
"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;C Binding: " << endl <<
"&nbsp;<A HREF=\"" << struct_file << "#" << ctx->rw->class_name << "\">Struct</A>" << endl <<
"&nbsp;|&nbsp<A HREF=\"" << hpp_file << "#" << ctx->rw->class_name << "\">Class</A>" << endl <<
"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp<A HREF=\"" << ctree_file << "\">ClassTree</A>" << endl;
"&nbsp;|&nbsp<A HREF=\"" << hpp_file << "#" << ctx->rw->class_name << "\">Class</A>" << endl;
if ( ctx->rw->doc_fresh && strcmp( ctx->rw->doc_code, "") != 0) {
CnvReadSrc::filename_to_html( ref_name, ctx->rw->doc_code);
html_clf->f <<
"&nbsp;|&nbsp;<A HREF=\"" << ref_name << "#" << low_class_name << "\">Code</A>" << endl;
}
html_clf->f <<
"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp<A HREF=\"" << ctree_file << "\">ClassTree</A>" << endl;
html_clf->f <<
"</FONT></TD>" << endl <<
......
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