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