From 7dbde80f7c29fd2fedf235595abd396e898b2dc5 Mon Sep 17 00:00:00 2001 From: Kathy Date: Tue, 16 Jun 2015 15:36:55 +0000 Subject: [PATCH] =?UTF-8?q?Add=20line=20width,=20CLineWidth=20for=20lines?= =?UTF-8?q?=20internal=20to=20training=20format=20Add=20line=20width,=20CL?= =?UTF-8?q?ineWidth=20for=20horizontal=20&=20centerline=20=20(WCNTRN)=20Us?= =?UTF-8?q?e=20docstyle=E2=80=99s=20CLineWidth=20for=20horizontal=20&=20ce?= =?UTF-8?q?nterlines,=20if=20defined=20)WCNTRN)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PROMS/Formats/fmtall/WCNTRNall.xml | Bin 46590 -> 46620 bytes .../VEPROMS.CSLA.Library/Format/DocStyles.cs | 11 +++++++++++ .../Volian.Print.Library/VlnSvgPageHelper.cs | 4 +++- 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/PROMS/Formats/fmtall/WCNTRNall.xml b/PROMS/Formats/fmtall/WCNTRNall.xml index 0cac5ee0c1a08db79dae852e792511be3ff78f2a..2776e53fafd00627ec4a730e6233cb71366b821c 100644 GIT binary patch delta 54 zcmezOnrY4(rVZCNDLXUxFk~|1F{Cnt1L+io5{3*0TLvWtJq9x%X~)3Jz%_ZHYWL=} H%`=z)(%TOp delta 24 gcmbR9hUwpHrVZCNvDz{4GH^{^sM@``W%CRs0F5UKZ~y=R diff --git a/PROMS/VEPROMS.CSLA.Library/Format/DocStyles.cs b/PROMS/VEPROMS.CSLA.Library/Format/DocStyles.cs index b9846c45..e6a9abc4 100644 --- a/PROMS/VEPROMS.CSLA.Library/Format/DocStyles.cs +++ b/PROMS/VEPROMS.CSLA.Library/Format/DocStyles.cs @@ -237,6 +237,17 @@ namespace VEPROMS.CSLA.Library return LazyLoad(ref _CenterLineYBottom, "@CenterLineYBottom"); } } + private LazyLoad _CLineWidth; + [Category("CenterLine")] + [DisplayName("Line Width")] + [Description("Width of Lines Internal to Boxes")] + public float? CLineWidth + { + get + { + return LazyLoad(ref _CLineWidth, "@CLineWidth"); + } + } #endregion #region OptionalSectionContent [Category("Miscellaneous")] diff --git a/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs b/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs index c0f65d29..71baeb1c 100644 --- a/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs +++ b/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs @@ -454,6 +454,7 @@ namespace Volian.Print.Library cb.SaveState(); if (PageListLayer != null) cb.BeginLayer(PageListLayer); cb.SetColorStroke(new Color(PrintOverride.SvgColor)); + if (MySection.MyDocStyle.CLineWidth != null && MySection.MyDocStyle.CLineWidth != 0) cb.SetLineWidth((float)MySection.MyDocStyle.CLineWidth); //cb.SetColorStroke(lineColor); cb.MoveTo(left, yoff); cb.LineTo(right, yoff); @@ -483,7 +484,8 @@ namespace Volian.Print.Library //iTextSharp.text.Color lineColor = new iTextSharp.text.Color(PrintOverride.OverrideTextColor(System.Drawing.Color.DarkOrange)); cb.SaveState(); if (PageListLayer != null) cb.BeginLayer(PageListLayer); - cb.SetLineWidth(.95f); + float lwidth = MySection.MyDocStyle.CLineWidth ?? .95f; + cb.SetLineWidth(lwidth); cb.SetColorStroke(new Color(PrintOverride.SvgColor)); //cb.SetColorStroke(lineColor); cb.MoveTo(xLoc, yTop);