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:
2020-02-14 17:13:12 +00:00
parent 148b8d9d1a
commit 2234bde5e1
3 changed files with 32 additions and 5 deletions

View File

@@ -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