C2021-005 Get the list of possible font sizes for table text

This commit is contained in:
John Jenko 2021-02-19 19:15:34 +00:00
parent f5bb4d8d2e
commit 294b7f5618

View File

@ -521,6 +521,15 @@ namespace VEPROMS.CSLA.Library
return _PDFPageSize == null ? _PDFPageSize = new PDFPageSize(SelectSingleNode("PDFPageSize")) : _PDFPageSize; return _PDFPageSize == null ? _PDFPageSize = new PDFPageSize(SelectSingleNode("PDFPageSize")) : _PDFPageSize;
} }
} }
//C2021-005 Format file grouping containing a list of possible font sizes (used only for table text)
private FontSizes _FontSizes;
public FontSizes FontSizes
{
get
{
return _FontSizes == null ? _FontSizes = new FontSizes(SelectSingleNode("FontSizes")) : _FontSizes;
}
}
private SymbolList _SymbolList; private SymbolList _SymbolList;
public SymbolList SymbolList public SymbolList SymbolList
{ {
@ -844,6 +853,22 @@ namespace VEPROMS.CSLA.Library
} }
} }
#endregion #endregion
#region FontSizes
// C2021-005 the list of possible font sizes are set in the format files
[TypeConverter(typeof(ExpandableObjectConverter))]
public class FontSizes : vlnFormatItem
{
public FontSizes(XmlNode xmlNode) : base(xmlNode) { }
private LazyLoad<string> _TableFontSizes;
public string TableFontSizes
{
get
{
return LazyLoad(ref _TableFontSizes, "@TableFontSizes"); // C2021-005 list of possible font sizes for table text
}
}
}
#endregion
#region Symbols #region Symbols
[TypeConverter(typeof(ExpandableObjectConverter))] [TypeConverter(typeof(ExpandableObjectConverter))]
public class Symbol : vlnFormatItem public class Symbol : vlnFormatItem