Esempio n. 1
0
        protected override Property MakeCompound(PropertyList pList, FObj fo)
        {
            CondLength p = new CondLength();
            Property subProp;

            subProp = GetSubpropMaker("length").Make(pList,
                                                     getDefaultForLength(), fo);
            p.SetComponent("length", subProp, true);

            subProp = GetSubpropMaker("conditionality").Make(pList,
                                                             getDefaultForConditionality(), fo);
            p.SetComponent("conditionality", subProp, true);

            return new CondLengthProperty(p);
        }
Esempio n. 2
0
 public CondLengthProperty(CondLength condLength)
 {
     this.condLength = condLength;
 }
Esempio n. 3
0
 public void setPadding(int side, CondLength width)
 {
     padding[side] = new ResolvedCondLength(width);
 }
Esempio n. 4
0
 public void setBorder(int side, int style, CondLength width,
                       ColorType color)
 {
     borderInfo[side] = new BorderInfo(style, width, color);
 }
Esempio n. 5
0
 internal BorderInfo(int style, CondLength width, ColorType color)
 {
     mStyle = style;
     mWidth = new ResolvedCondLength(width);
     mColor = color;
 }
Esempio n. 6
0
 internal ResolvedCondLength(CondLength length)
 {
     bDiscard = length.IsDiscard();
     iLength = length.MValue();
 }