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

version» Context lines:

Roxen.git/server/modules/graphics/graphic_text.pike:1: - string cvs_version="$Id: graphic_text.pike,v 1.29 1997/02/22 13:02:50 per Exp $"; + string cvs_version="$Id: graphic_text.pike,v 1.30 1997/02/25 16:05:30 per Exp $";   #include <module.h>   inherit "module";   inherit "roxenlib";      import Image;      array register_module()   {    return ({ MODULE_LOCATION | MODULE_PARSER,    "Graphics text",
Roxen.git/server/modules/graphics/graphic_text.pike:688:    case "vspace":    case "onclick":    s+=i+"='"+in[i]+"' ";    m_delete(in, i);    break;    }    }    return s;   }    + string tag_gtext_id(string t, mapping arg, +  object id, object foo, mapping defines) + { +  int short=!!arg->short; +  m_delete(arg, "short"); m_delete(arg, "maxlen"); +  m_delete(arg,"magic"); m_delete(arg,"submit"); +  extra_args(arg); m_delete(arg,"split"); +  if(defines->fg && !arg->fg) arg->fg=defines->fg; +  if(defines->bg && !arg->bg) arg->bg=defines->bg; +  if(defines->font && !arg->font) arg->font=defines->font||QUERY(default_font); +  if(!arg->font) arg->font = QUERY(default_font); +  +  int num = find_or_insert( arg ); +  +  if(!short) +  return query_location()+num+"/"; +  else +  return (string)num; + } +    string tag_graphicstext(string t, mapping arg, string contents,    object id, object foo, mapping defines)   {   // Allow <accessed> and others inside <gtext>.    contents = parse_rxml(contents, id, foo, defines);       string pre, post, defalign, gt, rest, magic;    int i, split;       // No images here, let's generate an alternative..
Roxen.git/server/modules/graphics/graphic_text.pike:937:    defines->fg = c[-1][0];    defines->bg = c[-1][1];    id->misc->colors = c[..sizeof(c)-2];    }   }      mapping query_tag_callers()   {    return ([    "body":tag_body, +  "gtext-id":tag_gtext_id,    "font":tag_fix_color,    "table":tag_fix_color,    "tr":tag_fix_color,    "td":tag_fix_color,    "/td":pop_color,    "/tr":pop_color,    "/font":pop_color,    "/body":pop_color,    "/table":pop_color,    ]);