From bd05860f50fa4c70287735a9f4869aaa7d51cf05 Mon Sep 17 00:00:00 2001 From: John Date: Wed, 7 Dec 2011 14:01:45 +0000 Subject: [PATCH] add a sub item to allow for a bullet within a tab with separate font settings. --- .../Format/PlantFormat.cs | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs b/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs index 13ae0352..897919ba 100644 --- a/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs +++ b/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs @@ -4309,6 +4309,35 @@ namespace VEPROMS.CSLA.Library } } } + #endregion + #region Bullet + [TypeConverter(typeof(ExpandableObjectConverter))] + public class Bullet : vlnFormatItem + { + public Bullet(XmlNode xmlNode) : base(xmlNode) { } + private LazyLoad _Separate; + public bool Separate + { + get + { + return LazyLoad(ref _Separate, "TabData/Bullet/@Separate"); + } + } + private VE_Font _Font; + public VE_Font Font + { + get + { + if (_Font == null) + { + XmlNode xn = vlnFormatDocument.LookupSingleStepNode(base.XmlNode, "Bullet[Font]"); + _Font = new VE_Font(xn); + } + return _Font; + } + } + } + #endregion #region StepTab [TypeConverter(typeof(ExpandableObjectConverter))] @@ -4390,6 +4419,14 @@ namespace VEPROMS.CSLA.Library return LazyLoad(ref _UsePreviousStyle, "TabData/@UsePreviousStyle"); } } + private LazyLoad _IdentWidth; + public float? IdentWidth + { + get + { + return LazyLoad(ref _IdentWidth, "TabData/@IdentWidth"); + } + } private VE_Font _Font; public VE_Font Font { @@ -4403,6 +4440,14 @@ namespace VEPROMS.CSLA.Library return _Font; } } + private Bullet _Bullet; + public Bullet Bullet + { + get + { + return (_Bullet == null) ? _Bullet = new Bullet(base.XmlNode) : _Bullet; + } + } } #endregion