meta,
C++
6 Methoden:
|
/* public: */ Ut_web :: Ut_web
/* public: */ void Ut_web :: create_css
/* public: */ void Ut_web :: table_splitter
#define static
#include ut_web.h : cpp
#undef BB
#undef BBStr
#undef bb
#undef bbStr
#define BB
#define BBStr( x,y,z ) ;
#define bb
#define bbStr( x,y,z ) ;
#ifndef procNestOn
#undef LB_
#undef LE_
#undef LE_ret
#undef ret
#undef ret_
#undef __
#undef ___
#define LB_( x ) {
#define LE_ }
#define ret_ return ;
#define LE_ret( x ) return( x ); }
#define ret( x ) return( x );
#define __
#define ___
#endif
// #define LB_( x ) { checkPoint = x ;
// #define LB_( x ) { if ( *x == 'U' ) printf( "\n-> %s", x );
/* public: */ Ut_web :: Ut_web (
// -----------------------------------------------------------------------------
)
LB_("Ut_web.Ut_web")
// Verdana (not: Verdena !!!!!)
kopf =
"\n<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\"><HTML><HEAD>"
"\n<LINK REL=\"stylesheet\" TYPE=\"text/css\" HREF=\"j2h.css\"></HEAD>"
"\n<BODY text=\"#000000\""
"\n LINK=\"#FF3333\" VLINK=\"#FF3333\" ALINK=\"#FF3333\">"
"\n<font face=\"Arial, Verdana\" size=2>\n"
;
t1 = "\n<table"
"\n id=\"Header\" border=0 cellpadding=0 cellspacing=0 width=\"100%\""
"\n <tr><td><center><font size=\"4\">"
;
t2 = "\n</font></center></td></tr></table>"
;
sP = " "
" "
" " ;
sP = eos( sP );
LE_
/* public: */ void Ut_web :: create_css ( char * dir
/* -----------------------------------------------------------------------------
create dir/j2h.css
|----------------------------------------------------------------------------
*/ )
LB_("Ut_web.create_css")
char1000 xx ; s_( xx, "%s/j2h.css", dir ); dir_exist( dir );
if is_file( xx ) ret_
FILE * f = create( xx ); fprintf( f,
"\nbody { background-color: #FFFFFF; }"
"\nbody { color: #000000 } /* for normal code */"
//
"\n.Header { color: #000000; background-color: #99FF99 }"
"\n.ko1 { color: #000000; background-color: #CCFFCC }"
"\n.c A:link { color: #FF6600; }"
"\n.c A:visited { color: #FF6600; }"
"\n.c PRE { color: #000000; }"
"\n.c { color: #000000; font-size:180%; }"
"\npre { color: #000000; font-size:120% } /* for comment */"
"\n.co { color: #008000; } /* for comment */"
"\n.kw { color: #0000FF; } /* for keywords */"
"\n.str { color: #FF00FF; } /* for quoted text */"
);
// warum funktioniert font-size nicht
close( f );
LE_
/* public: */ void Ut_web :: table_splitter
/* -----------------------------------------------------------------------------
zerlege Tabellen, damit sie schneller auf dem Bildschirm erscheinen:
Der Browser zeigt Tabellen erst, wenn sie ganz eingelesen sind.
-----------------------------------------------------------------------------
*/ (
FILE * f
, uint & anz
)
LB_("Ut_web.table_splitter")
if ( ++anz % 20 == 0 ) fprintf( f, "</tbody></table><table><tbody>" );
LE_
#undef static
#endif