Diff for /Amaya/amaya/styleparser.c between versions 1.242 and 1.243

version 1.242, 2003/10/28 16:23:39 version 1.243, 2003/10/30 09:16:43
Line 1502  static char *ParseCSSTextAlign (Element Line 1502  static char *ParseCSSTextAlign (Element
 }  }
   
 /*----------------------------------------------------------------------  /*----------------------------------------------------------------------
     ParseCSSTextAnchor: parse a CSS text-anchor property (SVG property)
     We use the Thot Adjust PRule to represent the text-anchor property
     for CSS 1.0, as Adjust is not used otherwise in this context.
     ----------------------------------------------------------------------*/
   static char *ParseCSSTextAnchor (Element element, PSchema tsch,
                                    PresentationContext context, char *cssRule,
                                    CSSInfoPtr css, ThotBool isHTML)
   {
      PresentationValue   align;
   
      align.typed_data.value = 0;
      align.typed_data.unit = UNIT_REL;
      align.typed_data.real = FALSE;
   
      cssRule = SkipBlanksAndComments (cssRule);
      if (!strncasecmp (cssRule, "start", 5))
        {
           align.typed_data.value = AdjustLeft;
           cssRule = SkipWord (cssRule);
        }
      else if (!strncasecmp (cssRule, "middle", 6))
        {
           align.typed_data.value = Centered;
           cssRule = SkipWord (cssRule);
        }
      else if (!strncasecmp (cssRule, "end", 3))
        {
           align.typed_data.value = AdjustRight;
           cssRule = SkipWord (cssRule);
        }
      else if (!strncasecmp (cssRule, "inherit", 7))
        {
          /* not implemented */
          cssRule = SkipWord (cssRule);
          return (cssRule);
        }
      else
        {
          cssRule = SkipValue ("Invalid text-anchor value", cssRule);
          return (cssRule);
        }
   
      /*
       * install the new presentation.
       */
      if (align.typed_data.value && DoApply)
        {
          if (tsch)
            cssRule = CheckImportantRule (cssRule, context);
          TtaSetStylePresentation (PRAdjust, element, tsch, context, align);
        }
      return (cssRule);
   }
   
   /*----------------------------------------------------------------------
    ParseCSSDirection: parse a CSS direction property     ParseCSSDirection: parse a CSS direction property
   ----------------------------------------------------------------------*/    ----------------------------------------------------------------------*/
 static char *ParseCSSDirection (Element element, PSchema tsch,  static char *ParseCSSDirection (Element element, PSchema tsch,
Line 3980  static CSSProperty CSSProperties[] = Line 4035  static CSSProperty CSSProperties[] =
    {"position", ParseCSSPosition},     {"position", ParseCSSPosition},
    {"right", ParseCSSRight},     {"right", ParseCSSRight},
    {"text-align", ParseCSSTextAlign},     {"text-align", ParseCSSTextAlign},
      {"text-anchor", ParseCSSTextAnchor},
    {"text-indent", ParseCSSTextIndent},     {"text-indent", ParseCSSTextIndent},
    {"text-decoration", ParseCSSTextDecoration},     {"text-decoration", ParseCSSTextDecoration},
    {"text-transform", ParseCSSTextTransform},     {"text-transform", ParseCSSTextTransform},

Removed from v.1.242  
changed lines
  Added in v.1.243


Webmaster