Esempio n. 1
0
        public override Status Layout(Area area)
        {
            if (this.properties != null)
            {
                Property prop = this.properties.GetProperty("id");
                if (prop != null)
                {
                    string id = prop.GetString();

                    if (this.marker == MarkerStart)
                    {
                        if (area.getIDReferences() != null)
                        {
                            area.getIDReferences().CreateID(id);
                        }
                        this.marker = 0;
                    }

                    if (this.marker == 0)
                    {
                        if (area.getIDReferences() != null)
                        {
                            area.getIDReferences().ConfigureID(id, area);
                        }
                    }
                }
            }

            int numChildren = this.children.Count;

            for (int i = this.marker; i < numChildren; i++)
            {
                FONode fo = (FONode)children[i];
                Status status;
                if ((status = fo.Layout(area)).isIncomplete())
                {
                    this.marker = i;
                    return(status);
                }
            }
            return(new Status(Status.OK));
        }
Esempio n. 2
0
 public override Property ConvertProperty(
     Property p, PropertyList propertyList, FObj fo)
 {
     if (IsAutoLengthAllowed())
     {
         string pval = p.GetString();
         if (pval != null && pval.Equals("auto"))
         {
             return new LengthProperty(new AutoLength());
         }
     }
     if (p is LengthProperty)
     {
         return p;
     }
     Length val = p.GetLength();
     if (val != null)
     {
         return new LengthProperty(val);
     }
     return ConvertPropertyDatatype(p, propertyList, fo);
 }
Esempio n. 3
0
            public override Property ConvertProperty(
                Property p, PropertyList propertyList, FObj fo)
            {
                if (IsAutoLengthAllowed())
                {
                    string pval = p.GetString();
                    if (pval != null && pval.Equals("auto"))
                    {
                        return(new LengthProperty(new AutoLength()));
                    }
                }
                if (p is LengthProperty)
                {
                    return(p);
                }
                Length val = p.GetLength();

                if (val != null)
                {
                    return(new LengthProperty(val));
                }
                return(ConvertPropertyDatatype(p, propertyList, fo));
            }