Roxen.git / server / modules / graphics / graphic_text.pike

version» Context lines:

Roxen.git/server/modules/graphics/graphic_text.pike:1:   // This is a roxen module. Copyright © 1996 - 2000, Roxen IS.   //    - constant cvs_version="$Id: graphic_text.pike,v 1.212 2000/03/16 00:32:53 nilsson Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.213 2000/03/16 00:51:22 nilsson Exp $";      #include <module.h>   inherit "module";   inherit "roxenlib";         // ------------------- Module registration ---------------------      constant module_type = MODULE_PARSER;   constant module_name = "Graphics text";
Roxen.git/server/modules/graphics/graphic_text.pike:335: Inside #if defined(manual)
  "gh3":#"<desc cont></desc>"+gtextargs,      "gh4":#"<desc cont></desc>"+gtextargs,      "gh5":#"<desc cont></desc>"+gtextargs,      "gh6":#"<desc cont></desc>"+gtextargs,      "gtext":#"<desc cont>    Renders a GIF image of the contents. -  -  <p>Note: If the background and text colors are not set in the -  <tag>body</tag>> tag of the page, the bg and fg attributes must be -  set, otherwise the <tag>gtext</tag>> tag will only render a \"Please -  reload this page\" message.</p> +    </desc>      <attr name=alt value=string>    Sets the alt attribute of the generated <tag>img</tag> tag. By    default the alt attribute will be set to the contents of the    <tag>gtext</tag> tag.    <ex type=vert>   <gtext fgcolor=\"blue\" alt=\"Hello!\">Welcome!</gtext>    </ex>   </attr>
Roxen.git/server/modules/graphics/graphic_text.pike:698:    foreach(textarg, string tmp)    if(arg[tmp]) {    p[tmp]=arg[tmp],id;    m_delete(arg,tmp);    }       foreach(theme, string tmp)    if( (id->misc->defines[tmp] || id->misc->defines["theme_"+tmp]) && !p[tmp])    p[tmp]=id->misc->defines["theme_"+tmp] || id->misc->defines[tmp];    +  if(!p->fgcolor) p->fgcolor="#000000"; +  if(!p->bgcolor) p->bgcolor="#ffffff"; +     if(id->misc->defines->nfont && !p->nfont) p->nfont=id->misc->gtext_nfont;    if(id->misc->defines->afont && !p->afont) p->afont=id->misc->gtext_afont;    if(id->misc->defines->bold && !p->bold) p->bold=id->misc->gtext_bold;    if(id->misc->defines->italic && !p->italic) p->italic=id->misc->gtext_italic;    if(id->misc->defines->black && !p->black) p->black=id->misc->gtext_black;    if(id->misc->defines->narrow && !p->narrow) p->narrow=id->misc->gtext_narrow;       return p;   }   
Roxen.git/server/modules/graphics/graphic_text.pike:882:    return make_tag("input",arg+(["type":"image"]));       return sprintf(lp,make_tag("img",arg));   }      array(string) simpletag_gh(string t, mapping m, string c, RequestID id) {    int i;    if(sscanf(t, "%s%d", t, i)==2 && i>1)    m->scale = (string)(1.0 / ((float)i*0.6));    if(!m->valign) m->valign="top"; -  return ({ "<p>"+simpletag_gtext("",m,c,id)+"<br>" }); +  return ({ "<p>"+simpletag_gtext("",m,c,id)+"</p><br />" });   }      array(string) simpletag_anfang(string t, mapping m, string c, RequestID id) {    if(!m->align) m->align="left"; -  return ({ "<br clear=\"left\">"+simpletag_gtext("",m,c[0..0],id)+c[1..] }); +  return ({ "<br clear=\"left\" />"+simpletag_gtext("",m,c[0..0],id)+c[1..] });   }         // --------------- tag and container registration ----------------------      mapping query_simpletag_callers() {    return ([ "gtext-id" : ({ RXML.FLAG_EMPTY_ELEMENT, simpletag_gtext_id }),    "gtext-url" : ({ 0, simpletag_gtext_url }),    "anfang" : ({ 0, simpletag_anfang }),    "gh1" : ({ 0, simpletag_gh }),    "gh2" : ({ 0, simpletag_gh }),    "gh3" : ({ 0, simpletag_gh }),    "gh4" : ({ 0, simpletag_gh }),    "gh5" : ({ 0, simpletag_gh }),    "gh6" : ({ 0, simpletag_gh }),    "gtext" : ({ 0, simpletag_gtext }),    ]);   }