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 - 2001, Roxen IS.   //    - constant cvs_version="$Id: graphic_text.pike,v 1.279 2001/09/21 15:58:11 jhs Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.280 2001/10/01 09:21:37 anders Exp $";      #include <module.h>   inherit "module";         // ------------------- Module registration ---------------------      constant module_type = MODULE_TAG;   constant module_name = "Graphics: Graphic text";   constant module_doc =
Roxen.git/server/modules/graphics/graphic_text.pike:944:       return c;   }         // ----------------- gtext tags and containers -------------------      class TagGTextURL {    inherit RXML.Tag;    constant name = "gtext-url"; -  constant flags = RXML.FLAG_DONT_REPORT_ERRORS; +  int flags = RXML.FLAG_DONT_REPORT_ERRORS;       class Frame {    inherit RXML.Frame;    array do_return(RequestID id) {    content=fix_text(content,args,id);    mapping p=mk_gtext_arg(args,id);    if(args->href && !p->fgcolor) p->fgcolor=id->misc->gtext_link||"#0000ff";    string ext="";    if(query("ext")) ext="."+(p->format || "gif");    if(!args->short)    return ({ query_absolute_internal_location(id) +    image_cache->store( ({p,content}), id )+ext });    return ({ "+"+image_cache->store( ({p,content}), id )+ext });    }    }   }      class TagGTextID {    inherit RXML.Tag;    constant name = "gtext-id"; -  constant flags = RXML.FLAG_EMPTY_ELEMENT; +  int flags = RXML.FLAG_EMPTY_ELEMENT;       class Frame {    inherit RXML.Frame;       array do_return(RequestID id) {    mapping p=mk_gtext_arg(args,id);    if(args->href && !p->fgcolor) p->fgcolor=id->misc->gtext_link||"#0000ff";    if(!args->short)    return ({ query_absolute_internal_location(id) +    "$"+image_cache->store(p, id)+"/" });    return ({ "+"+image_cache->store(p, id )+"/foo" });    }    }   }      class TagGText {    inherit RXML.Tag;    constant name = "gtext"; -  constant flags = RXML.FLAG_DONT_REPORT_ERRORS; +  int flags = RXML.FLAG_DONT_REPORT_ERRORS;       class Frame {    inherit RXML.Frame;       array do_return(RequestID id) {    return ({ do_gtext(args, (string) content, id) });    }    }   }   
Roxen.git/server/modules/graphics/graphic_text.pike:1145:    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>"+do_gtext(m,c,id)+"</p><br />" });   }      class TagAnfang {    inherit RXML.Tag;    constant name = "anfang"; -  constant flags = RXML.FLAG_DONT_REPORT_ERRORS; +  int flags = RXML.FLAG_DONT_REPORT_ERRORS;       class Frame {    inherit RXML.Frame;       array do_return(RequestID id) {    if(!args->align) args->align="left";    return ({ "<br clear=\"left\" />"+do_gtext(args,content[0..0],id)+content[1..] });    }    }   }