Esempio n. 1
0
 protected void SetOptimum(Property opt, bool bIsDefault)
 {
     optimum = opt;
     if (!bIsDefault)
     {
         bfSet |= OPTSET;
     }
 }
Esempio n. 2
0
 protected void SetMaximum(Property max, bool bIsDefault)
 {
     maximum = max;
     if (!bIsDefault)
     {
         bfSet |= MAXSET;
     }
 }
Esempio n. 3
0
 protected void SetMinimum(Property minimum, bool bIsDefault)
 {
     this.minimum = minimum;
     if (!bIsDefault)
     {
         bfSet |= MINSET;
     }
 }
Esempio n. 4
0
 public override Property ConvertProperty(
     Property p, PropertyList propertyList, FObj fo)
 {
     if (p is ToBeImplementedProperty)
     {
         return p;
     }
     ToBeImplementedProperty val = new ToBeImplementedProperty(PropName);
     return val;
 }
Esempio n. 5
0
 public void SetComponent(string sCmpnName, Property cmpnValue, bool bIsDefault)
 {
     if (sCmpnName.Equals("length"))
     {
         length = cmpnValue;
     }
     else if (sCmpnName.Equals("conditionality"))
     {
         conditionality = cmpnValue;
     }
 }
Esempio n. 6
0
 public override Property ConvertProperty(
     Property p, PropertyList propertyList, FObj fo)
 {
     if (p is ListProperty)
     {
         return p;
     }
     else
     {
         return new ListProperty(p);
     }
 }
Esempio n. 7
0
 public void SetComponent(string sCmpnName, Property cmpnValue,
                          bool bIsDefault)
 {
     if (sCmpnName.Equals("block-progression-direction"))
     {
         bpd = cmpnValue;
     }
     else if (sCmpnName.Equals("inline-progression-direction"))
     {
         ipd = cmpnValue;
     }
 }
Esempio n. 8
0
 public override Property ConvertProperty(
     Property p, PropertyList propertyList, FObj fo)
 {
     if (p is NumberProperty)
     {
         return p;
     }
     Number val = p.GetNumber();
     if (val != null)
     {
         return new NumberProperty(val);
     }
     return ConvertPropertyDatatype(p, propertyList, fo);
 }
Esempio n. 9
0
 public override Property ConvertProperty(
     Property p, PropertyList propertyList, FObj fo)
 {
     if (p is ColorTypeProperty)
     {
         return p;
     }
     ColorType val = p.GetColorType();
     if (val != null)
     {
         return new ColorTypeProperty(val);
     }
     return ConvertPropertyDatatype(p, propertyList, fo);
 }
Esempio n. 10
0
 public override void SetComponent(string componentName, Property componentValue, bool isDefault)
 {
     if (componentName.Equals("precedence"))
     {
         Precedence = componentValue;
     }
     else if (componentName.Equals("conditionality"))
     {
         Conditionality = componentValue;
     }
     else
     {
         base.SetComponent(componentName, componentValue, isDefault);
     }
 }
Esempio n. 11
0
 public virtual void SetComponent(string sCmpnName, Property cmpnValue,
                                  bool bIsDefault)
 {
     if (sCmpnName.Equals("minimum"))
     {
         SetMinimum(cmpnValue, bIsDefault);
     }
     else if (sCmpnName.Equals("optimum"))
     {
         SetOptimum(cmpnValue, bIsDefault);
     }
     else if (sCmpnName.Equals("maximum"))
     {
         SetMaximum(cmpnValue, bIsDefault);
     }
 }
Esempio n. 12
0
 public void SetComponent(string sCmpnName, Property cmpnValue,
                          bool bIsDefault)
 {
     if (sCmpnName.Equals("within-line"))
     {
         setWithinLine(cmpnValue, bIsDefault);
     }
     else if (sCmpnName.Equals("within-column"))
     {
         setWithinColumn(cmpnValue, bIsDefault);
     }
     else if (sCmpnName.Equals("within-page"))
     {
         setWithinPage(cmpnValue, bIsDefault);
     }
 }
Esempio n. 13
0
 public override Property ConvertProperty(
     Property p, PropertyList propertyList, FObj fo)
 {
     if (IsAutoLengthAllowed())
     {
         string pval = p.GetString();
         if (pval != null && pval.Equals("auto"))
         {
             return new LengthProperty(new AutoLength());
         }
     }
     if (p is LengthProperty)
     {
         return p;
     }
     Length val = p.GetLength();
     if (val != null)
     {
         return new LengthProperty(val);
     }
     return ConvertPropertyDatatype(p, propertyList, fo);
 }
Esempio n. 14
0
 public void setWithinLine(Property withinLine, bool bIsDefault)
 {
     this.withinLine = withinLine;
 }
Esempio n. 15
0
 public void addProperty(Property prop)
 {
     list.Add(prop);
 }
Esempio n. 16
0
 public ListProperty(Property prop)
 {
     list = new ArrayList();
     list.Add(prop);
 }
Esempio n. 17
0
 protected void setWithinColumn(Property withinColumn,
                                bool bIsDefault)
 {
     this.withinColumn = withinColumn;
 }
Esempio n. 18
0
 public void setWithinPage(Property withinPage, bool bIsDefault)
 {
     this.withinPage = withinPage;
 }
Esempio n. 19
0
 internal Property GetSubpropValue(
     string propertyName, Property p, string subpropName)
 {
     PropertyMaker maker = FindMaker(propertyName);
     if (maker != null)
     {
         return maker.GetSubpropValue(p, subpropName);
     }
     else
     {
         return null;
     }
 }