public override Property ConvertProperty(Property p, PropertyList pList, FObj fo)
        {
            if (p is LengthRangeProperty)
            {
                return(p);
            }
            if (!(p is EnumProperty))
            {
                p = m_shorthandMaker.ConvertProperty(p, pList, fo);
            }
            if (p != null)
            {
                Property    prop = MakeCompound(pList, fo);
                LengthRange pval = prop.GetLengthRange();

                pval.SetComponent("minimum", p, false);
                pval.SetComponent("optimum", p, false);
                pval.SetComponent("maximum", p, false);
                return(prop);
            }
            else
            {
                return(null);
            }
        }
Esempio n. 2
0
        public override Property ConvertProperty(Property p, PropertyList pList, FObj fo)
        {
            if (p is KeepProperty)
            {
                return(p);
            }
            if (!(p is EnumProperty))
            {
                p = m_shorthandMaker.ConvertProperty(p, pList, fo);
            }
            if (p != null)
            {
                Property prop = MakeCompound(pList, fo);
                Keep     pval = prop.GetKeep();

                pval.SetComponent("within-page", p, false);
                pval.SetComponent("within-line", p, false);
                pval.SetComponent("within-column", p, false);
                return(prop);
            }
            else
            {
                return(null);
            }
        }
        public override Property ConvertProperty(Property p, PropertyList pList, FObj fo)
        {
            if (p is CondLengthProperty)
            {
                return(p);
            }
            if (!(p is EnumProperty))
            {
                p = m_shorthandMaker.ConvertProperty(p, pList, fo);
            }
            if (p != null)
            {
                Property   prop = MakeCompound(pList, fo);
                CondLength pval = prop.GetCondLength();

                pval.SetComponent("length", p, false);
                return(prop);
            }
            else
            {
                return(null);
            }
        }
Esempio n. 4
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);
            }
        }