Beispiel #1
0
        protected override Property SetSubprop(Property baseProp, string subpropName, Property subProp)
        {
            LengthPair val = baseProp.GetLengthPair();

            val.SetComponent(subpropName, subProp, false);
            return(baseProp);
        }
Beispiel #2
0
        protected override Property MakeCompound(PropertyList pList, FObj fo)
        {
            LengthPair p = new LengthPair();
            Property   subProp;

            subProp = GetSubpropMaker("block-progression-direction").Make(pList,
                                                                          getDefaultForBlockProgressionDirection(), fo);
            p.SetComponent("block-progression-direction", subProp, true);

            subProp = GetSubpropMaker("inline-progression-direction").Make(pList,
                                                                           getDefaultForInlineProgressionDirection(), fo);
            p.SetComponent("inline-progression-direction", subProp, true);

            return(new LengthPairProperty(p));
        }
Beispiel #3
0
        public override Property ConvertProperty(Property p, PropertyList pList, FObj fo)
        {
            if (p is LengthPairProperty)
            {
                return(p);
            }
            if (!(p is EnumProperty))
            {
                p = m_shorthandMaker.ConvertProperty(p, pList, fo);
            }
            if (p != null)
            {
                Property   prop = MakeCompound(pList, fo);
                LengthPair pval = prop.GetLengthPair();

                pval.SetComponent("block-progression-direction", p, false);
                pval.SetComponent("inline-progression-direction", p, false);
                return(prop);
            }
            else
            {
                return(null);
            }
        }
Beispiel #4
0
        public override Property GetSubpropValue(Property baseProp, string subpropName)
        {
            LengthPair val = baseProp.GetLengthPair();

            return(val.GetComponent(subpropName));
        }
Beispiel #5
0
 public LengthPairProperty(LengthPair lengthPair)
 {
     this.lengthPair = lengthPair;
 }