C2020-002 Logic to use either the Letter or A4 paper size
C2020-002 Get the paper size setting from the formats
This commit is contained in:
@@ -513,6 +513,14 @@ namespace VEPROMS.CSLA.Library
|
||||
return _Font == null? _Font = new VE_Font(base.XmlNode): _Font;
|
||||
}
|
||||
}
|
||||
private PDFPageSize _PDFPageSize;
|
||||
public PDFPageSize PDFPageSize // C2020-002 paper size is now set in the format files
|
||||
{
|
||||
get
|
||||
{
|
||||
return _PDFPageSize == null ? _PDFPageSize = new PDFPageSize(SelectSingleNode("PDFPageSize")) : _PDFPageSize;
|
||||
}
|
||||
}
|
||||
private SymbolList _SymbolList;
|
||||
public SymbolList SymbolList
|
||||
{
|
||||
@@ -821,6 +829,21 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region PaperSize
|
||||
[TypeConverter(typeof(ExpandableObjectConverter))]
|
||||
public class PDFPageSize : vlnFormatItem
|
||||
{
|
||||
public PDFPageSize(XmlNode xmlNode) : base(xmlNode) { }
|
||||
private LazyLoad<string> _PaperSize;
|
||||
public string PaperSize
|
||||
{
|
||||
get
|
||||
{
|
||||
return LazyLoad(ref _PaperSize, "@PaperSize"); // C2020-002 paper size is now set in the format files
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region Symbols
|
||||
[TypeConverter(typeof(ExpandableObjectConverter))]
|
||||
public class Symbol : vlnFormatItem
|
||||
|
Reference in New Issue
Block a user