home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / info-service / www / src / WWW / Viola / apps / res.HTMLStyle.v < prev    next >
Encoding:
Text File  |  1992-07-15  |  1.6 KB  |  47 lines

  1. \name    {res.HTMLStyle}
  2. \class    {generic}
  3. \parent    {}
  4. \script    {
  5.     /**
  6.      *** A makeshift HTML Style sheet resource object
  7.      **/
  8.     switch (arg[0]) {
  9.     case "id":
  10.         return interpret("return " + arg[1] + ";");
  11.     break;
  12.     case "init":
  13.     /*      tag                             wrap first   right  after
  14.      *               font           align     free   left    before
  15.      */
  16.         S       = "normal        left   1 1  0   0   0   1  1";
  17.         P       = "normal        left   1 0  31  32  32  1  1";
  18.         UL      = "normal        left   1 0  32  32  8   1  0";
  19.         ULC     = "normal        left   1 0  32  32  32  1  0";
  20.         DL      = "normal        left   1 0  32  150 32  1  0";
  21.         DLC     = "normal        left   1 0  32  150 8   1  0";
  22.         LI      = "normal        left   1 0  32  32  32  1  0";
  23.         DIR     = "normal        left   1 0  32  32  32  1  0";
  24.         MENU    = "normal        left   1 0  32  32  32  1  0";
  25.         HP      = "normal        left   1 0  0   0   0   1  0";
  26.         XMP     = "normal        left   0 1  32  32  1   1  0";
  27.         XMPA    = "fixed         left   0 1  32  32  32  1  1";
  28.         LISTING = "normal        left   0 0  32  32  32  1  0";
  29.         ADDRESS = "bold_largest  right  0 0  0   0   32  1  0";
  30.         H1      = "bold    left   1 0  0   0   0   1  0";
  31.         H2      = "bold          left   1 0  0   0   0   1  0";
  32.         H3      = "bold          left   1 0  32  32  0   1  0";
  33.         H4      = "bold          left   1 0  32  32  0   1  0";
  34.         H5      = "bold          left   1 0  64  64  0   1  0";
  35.         H6      = "bold          left   1 0  128 128 0   1  0";
  36.         H7      = "bold          left   1 0  160 170 0   1  0";
  37.     return 1;
  38.     break;
  39.     case "queryFontID":
  40.         return getVariable(arg[1]);
  41.     break;
  42.     }
  43.     usual();
  44. }
  45. \
  46.  
  47.