예제 #1
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));
        }
예제 #2
0
        protected override Property SetSubprop(Property baseProp, string subpropName, Property subProp)
        {
            LengthPair val = baseProp.GetLengthPair();

            val.SetComponent(subpropName, subProp, false);
            return(baseProp);
        }
예제 #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);
            }
        }