Diff for /Amaya/amaya/XHTMLbuilder.c between versions 1.117 and 1.118

version 1.117, 2004/11/25 12:20:42 version 1.118, 2004/12/21 15:34:01
Line 207  static void CheckMandatoryAttribute (Ele Line 207  static void CheckMandatoryAttribute (Ele
      }       }
 }  }
   
   
   
   /*----------------------------------------------------------------------
     AddRowsColumns
     Add default rows and columns attributes to a TEXTAREA element.
     ----------------------------------------------------------------------*/
   void AddRowsColumns (Element el, Document doc)
   {
     ElementType    elType;
     Attribute      attr;
     AttributeType  attrType;
   
     /* Add defaults rows and columns to display the textarea */
     elType = TtaGetElementType (el);
     attrType.AttrSSchema = elType.ElSSchema;
     attrType.AttrTypeNum = HTML_ATTR_Rows;
     attr = TtaGetAttribute (el, attrType);
     if (attr == NULL)
       {
         attr = TtaNewAttribute (attrType);
         TtaAttachAttribute (el, attr, doc);
         TtaSetAttributeValue (attr, 4, el, doc);
       }
     attrType.AttrTypeNum = HTML_ATTR_Columns;
     attr = TtaGetAttribute (el, attrType);
     if (attr == NULL)
       {
         attr = TtaNewAttribute (attrType);
         TtaAttachAttribute (el, attr, doc);
         TtaSetAttributeValue (attr, 20, el, doc);
       }
   }
   
 /*----------------------------------------------------------------------  /*----------------------------------------------------------------------
   XhtmlElementComplete    XhtmlElementComplete
   Complete Xhtml elements.    Complete Xhtml elements.
Line 752  void XhtmlElementComplete (ParserData *c Line 785  void XhtmlElementComplete (ParserData *c
        CheckMandatoryAttribute (el, doc, HTML_ATTR_Rows);         CheckMandatoryAttribute (el, doc, HTML_ATTR_Rows);
        /* Check the mandatory columns attribute */         /* Check the mandatory columns attribute */
        CheckMandatoryAttribute (el, doc, HTML_ATTR_Columns);         CheckMandatoryAttribute (el, doc, HTML_ATTR_Columns);
          /* Add default rows and columns attributes */
          AddRowsColumns (el, doc);
        break;         break;
   
      case HTML_EL_Radio_Input:       case HTML_EL_Radio_Input:
Line 1759  void EndOfHTMLAttributeValue (char *attr Line 1794  void EndOfHTMLAttributeValue (char *attr
    Search in the Attribute Value Mapping Table the entry for the attribute     Search in the Attribute Value Mapping Table the entry for the attribute
    ThotAtt and its value attVal. Returns the corresponding Thot value.     ThotAtt and its value attVal. Returns the corresponding Thot value.
   ----------------------------------------------------------------------*/    ----------------------------------------------------------------------*/
 void MapHTMLAttributeValue (char *attVal, const AttributeType * attrType, int *value)  void MapHTMLAttributeValue (char *attVal, const AttributeType *attrType,
                               int *value)
 {  {
   MapXMLAttributeValue (XHTML_TYPE, attVal, attrType, value);    MapXMLAttributeValue (XHTML_TYPE, attVal, attrType, value);
 }  }

Removed from v.1.117  
changed lines
  Added in v.1.118


Webmaster