Exemplo 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);
        }
Exemplo n.º 2
0
 public CondLengthProperty(CondLength condLength)
 {
     this.condLength = condLength;
 }
Exemplo n.º 3
0
 public void setPadding(int side, CondLength width)
 {
     padding[side] = new ResolvedCondLength(width);
 }
Exemplo n.º 4
0
 public void setBorder(int side, int style, CondLength width,
                       ColorType color)
 {
     borderInfo[side] = new BorderInfo(style, width, color);
 }
Exemplo n.º 5
0
 internal BorderInfo(int style, CondLength width, ColorType color)
 {
     mStyle = style;
     mWidth = new ResolvedCondLength(width);
     mColor = color;
 }
Exemplo n.º 6
0
 internal ResolvedCondLength(CondLength length)
 {
     bDiscard = length.IsDiscard();
     iLength = length.MValue();
 }