Exemple #1
0
 protected void SetOptimum(Property opt, bool bIsDefault)
 {
     optimum = opt;
     if (!bIsDefault)
     {
         bfSet |= OPTSET;
     }
 }
Exemple #2
0
 protected void SetMaximum(Property max, bool bIsDefault)
 {
     maximum = max;
     if (!bIsDefault)
     {
         bfSet |= MAXSET;
     }
 }
Exemple #3
0
 protected void SetMinimum(Property minimum, bool bIsDefault)
 {
     this.minimum = minimum;
     if (!bIsDefault)
     {
         bfSet |= MINSET;
     }
 }
 public override Property ConvertProperty(
     Property p, PropertyList propertyList, FObj fo)
 {
     if (p is ToBeImplementedProperty)
     {
         return p;
     }
     ToBeImplementedProperty val = new ToBeImplementedProperty(PropName);
     return val;
 }
Exemple #5
0
 public void SetComponent(string sCmpnName, Property cmpnValue, bool bIsDefault)
 {
     if (sCmpnName.Equals("length"))
     {
         length = cmpnValue;
     }
     else if (sCmpnName.Equals("conditionality"))
     {
         conditionality = cmpnValue;
     }
 }
Exemple #6
0
 public override Property ConvertProperty(
     Property p, PropertyList propertyList, FObj fo)
 {
     if (p is ListProperty)
     {
         return p;
     }
     else
     {
         return new ListProperty(p);
     }
 }
Exemple #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;
     }
 }
Exemple #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);
 }
Exemple #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);
 }
Exemple #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);
     }
 }
Exemple #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);
     }
 }
Exemple #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);
     }
 }
Exemple #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);
 }
Exemple #14
0
 public void setWithinLine(Property withinLine, bool bIsDefault)
 {
     this.withinLine = withinLine;
 }
Exemple #15
0
 public void addProperty(Property prop)
 {
     list.Add(prop);
 }
Exemple #16
0
 public ListProperty(Property prop)
 {
     list = new ArrayList();
     list.Add(prop);
 }
Exemple #17
0
 protected void setWithinColumn(Property withinColumn,
                                bool bIsDefault)
 {
     this.withinColumn = withinColumn;
 }
Exemple #18
0
 public void setWithinPage(Property withinPage, bool bIsDefault)
 {
     this.withinPage = withinPage;
 }
Exemple #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;
     }
 }