Kathy 086e73720c missing box
docstyle messages: {par} consistent with code
docstyle messages: {par} consistent with code & missing box
Handle par in endmessage
Allow for more end message text length
Handle asterisk hls draws when steps are compressed
For RNO separator, if aer column is further down on page than rno, print rno separator off of aer (was causing separator to print beyond margin)
2015-03-16 13:54:18 +00:00

849 lines
19 KiB
C#

using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Xml;
namespace VEPROMS.CSLA.Library
{
#region DocStyles
[TypeConverter(typeof(ExpandableObjectConverter))]
public class DocStyles : vlnFormatItem
{
[Description("Document Styles Name")]
private LazyLoad<string> _Name;
public string Name
{
get
{
return LazyLoad(ref _Name, "@Name");
}
}
private DocStyleList _DocStyleList;
public DocStyleList DocStyleList
{
get
{
return (_DocStyleList == null) ? _DocStyleList = new DocStyleList(SelectNodes("DocStyle")): _DocStyleList;
}
set { _DocStyleList = value; }
}
public DocStyles(XmlNode xmlNode) : base(xmlNode) { }
}
#endregion
#region DocStyleAll
#region DocStyle
[TypeConverter(typeof(ExpandableObjectConverter))]
public class DocStyle : vlnFormatItem
{
public DocStyle(XmlNode xmlNode) : base(xmlNode) { }
public DocStyle() : base() { }
#region IndexName
private LazyLoad<int?> _Index;
public int? Index
{
get
{
return LazyLoad(ref _Index, "@Index");
}
}
[Description("Document Styles Name")]
private LazyLoad<string> _Name;
public string Name
{
get
{
return LazyLoad(ref _Name, "@Name");
}
}
#endregion
#region Font
private VE_Font _Font;
[Category("Font")]
[DisplayName("Font")]
[Description("Font")]
public VE_Font Font
{
get
{
return(_Font == null) ?_Font = new VE_Font(XmlNode): _Font;
}
}
#endregion
#region numberingsequence
[Category("Miscellaneous")]
[Description("Numbering Sequence")]
private LazyLoad<E_NumberingSequence?> _NumberingSequence;
public E_NumberingSequence? NumberingSequence
{
get
{
return LazyLoad<E_NumberingSequence>(ref _NumberingSequence, "@NumberingSequence");
}
}
#endregion
#region IndexOtherThanFirstPage
[Category("Miscellaneous")]
[Description("IndexOtherThanFirstPage")]
private LazyLoad<int?> _IndexOtherThanFirstPage;
public int? IndexOtherThanFirstPage
{
get
{
return LazyLoad(ref _IndexOtherThanFirstPage, "@IndexOtherThanFirstPage");
}
}
#endregion
#region IsStepSection
[Category("Miscellaneous")]
[Description("Is a Step Section")]
private LazyLoad<bool> _IsStepSection;
public bool IsStepSection
{
get
{
return LazyLoad(ref _IsStepSection, "@IsStepSection");
}
}
#endregion
#region LandscapePageList
[Category("Miscellaneous")]
[Description("Should PageList be landscape")]
private LazyLoad<bool> _LandscapePageList;
public bool LandscapePageList
{
get
{
return LazyLoad(ref _LandscapePageList, "@LandscapePageList");
}
}
#endregion
#region ShowSectionTitles
[Category("Miscellaneous")]
[Description("Should Section Titles be shown")]
private LazyLoad<bool> _ShowSectionTitles;
public bool ShowSectionTitles
{
get
{
return LazyLoad(ref _ShowSectionTitles, "@ShowSectionTitles");
}
}
#endregion
#region ResetFirstPageOnSection
[Category("Miscellaneous")]
[Description("Reset first page of section on Separate pagination section")]
private LazyLoad<bool> _ResetFirstPageOnSection;
public bool ResetFirstPageOnSection
{
get
{
return LazyLoad(ref _ResetFirstPageOnSection, "@ResetFirstPageOnSection");
}
}
#endregion
#region IncludeInTOC
[Category("Miscellaneous")]
[Description("Include in Auto Table Of Contents")]
private LazyLoad<bool> _IncludeInTOC;
public bool IncludeInTOC
{
get
{
return LazyLoad(ref _IncludeInTOC, "@IncludeInTOC");
}
}
#endregion
#region UseCheckOffs
[Category("Miscellaneous")]
[Description("Section Uses Checkoffs")]
private LazyLoad<bool> _UseCheckOffs;
public bool UseCheckOffs
{
get
{
return LazyLoad(ref _UseCheckOffs, "@UseCheckOffs");
}
}
#endregion
#region UseCheckOffs
[Category("Miscellaneous")]
[Description("Section Uses MetaSection ColSByLevel")]
private LazyLoad<bool> _UseColSByLevel;
public bool UseColSByLevel
{
get
{
return LazyLoad(ref _UseColSByLevel, "@UseColSByLevel");
}
}
#endregion
#region Oldtonew
[Category("Miscellaneous")]
[Description("Convert from old to new")]
private LazyLoad<int?> _OldToNew;
public int? OldToNew
{
get
{
return LazyLoad(ref _OldToNew, "@OldToNew");
}
}
#endregion
#region CancelSectTitle
[Category("Miscellaneous")]
[Description("Section Cancel Section Title")]
private LazyLoad<bool> _CancelSectTitle;
public bool CancelSectTitle
{
get
{
return LazyLoad(ref _CancelSectTitle, "@CancelSectTitle");
}
}
#endregion
#region CenterLine
//CenterLineX="261.9" CenterLineYTop="673.2" CenterLineYBottom="44.2"
private LazyLoad<float?> _CenterLineX;
[Category("CenterLine")]
[DisplayName("X Location")]
[Description("Distance from left side of page")]
public float? CenterLineX
{
get
{
return LazyLoad(ref _CenterLineX, "@CenterLineX");
}
}
private LazyLoad<float?> _CenterLineYTop;
[Category("CenterLine")]
[DisplayName("Y Top Location")]
[Description("starting vertical point of line")]
public float? CenterLineYTop
{
get
{
return LazyLoad(ref _CenterLineYTop, "@CenterLineYTop");
}
}
private LazyLoad<float?> _CenterLineYBottom;
[Category("CenterLine")]
[DisplayName("Y Bottom Location")]
[Description("ending vertical point of line")]
public float? CenterLineYBottom
{
get
{
return LazyLoad(ref _CenterLineYBottom, "@CenterLineYBottom");
}
}
#endregion
#region OptionalSectionContent
[Category("Miscellaneous")]
[Description("Section Optional Content")]
private LazyLoad<bool> _OptionalSectionContent;
public bool OptionalSectionContent
{
get
{
return LazyLoad(ref _OptionalSectionContent, "@OptionalSectionContent");
}
}
#endregion
#region SpecialStepsFoldout
[Category("Miscellaneous")]
[Description("Section Special Steps Foldout")]
private LazyLoad<bool> _SpecialStepsFoldout;
public bool SpecialStepsFoldout
{
get
{
return LazyLoad(ref _SpecialStepsFoldout, "@SpecialStepsFoldout");
}
}
[Category("Miscellaneous")]
[Description("Section Extra Line Header")]
private LazyLoad<bool> _ExtraLineHeader;
public bool ExtraLineHeader
{
get
{
return LazyLoad(ref _ExtraLineHeader, "@ExtraLineHeader");
}
}
#endregion
#region UndSpecialStepsFoldout
[Category("Miscellaneous")]
[Description("Section Cancel Section Title")]
private LazyLoad<bool> _UndSpecialStepsFoldout;
public bool UndSpecialStepsFoldout
{
get
{
return LazyLoad(ref _UndSpecialStepsFoldout, "@UndSpecialStepsFoldout");
}
}
#endregion
#region AlignHLSTabWithSect
[Category("Miscellaneous")]
[Description("Align HLS Tab With Sect")]
private LazyLoad<bool> _AlignHLSTabWithSect;
public bool AlignHLSTabWithSect
{
get
{
return LazyLoad(ref _AlignHLSTabWithSect, "@AlignHLSTabWithSect");
}
}
#endregion
#region ComponentList
[Category("Miscellaneous")]
[Description("Component List")]
private LazyLoad<bool> _ComponentList;
public bool ComponentList
{
get
{
return LazyLoad(ref _ComponentList, "@ComponentList");
}
}
#endregion
#region pagestyle
private PageStyle _pagestyle;
[Category("Miscellaneous")]
[DisplayName("Page Style")]
[Description("Page Style")]
public PageStyle pagestyle
{
get
{
string str = "//PageStyles/PageStyle[" + (IntLookup("@PageStyle") + 1).ToString() + "]";
XmlNode xn = SelectSingleNode(str);
if (_pagestyle == null) _pagestyle = new PageStyle(SelectSingleNode("//PageStyles/PageStyle[" + (IntLookup("@PageStyle") + 1).ToString() + "]"));
return _pagestyle;
}
}
#endregion
#region SubElements
private Layout _Layout;
public Layout Layout
{
get
{
return (_Layout == null ? _Layout = new Layout(SelectSingleNode("Layout")) : _Layout);
}
}
private Continue _Continue;
public Continue Continue
{
get
{
return (_Continue == null ? _Continue = new Continue(SelectSingleNode("Continue")) : _Continue);
}
}
private End _End;
public End End
{
get
{
return (_End == null ? _End = new End(SelectSingleNode("End")) : _End);
}
}
private Final _Final;
public Final Final
{
get
{
return (_Final == null ? _Final = new Final(SelectSingleNode("Final")) : _Final);
}
}
private StructureStyle _StructureStyle;
public StructureStyle StructureStyle
{
get
{
return (_StructureStyle == null ? _StructureStyle = new StructureStyle(SelectSingleNode("StructureStyle")) : _StructureStyle);
}
}
#endregion
public override string ToString()
{
return String.Format("{0:D2} - {1}", Index, Name);
}
}
#endregion
#region DocStyleList
[TypeConverter(typeof(vlnListConverter<DocStyleList, DocStyle>))]
public class DocStyleList : vlnFormatList<DocStyle>
{
public DocStyleList(XmlNodeList xmlNodeList) : base(xmlNodeList) { }
}
#endregion
#region Layout
[TypeConverter(typeof(ExpandableObjectConverter))]
public class Layout : vlnFormatItem
{
public Layout(XmlNode xmlNode) : base(xmlNode) { }
public Layout() : base() { }
#region TopMargin
private LazyLoad<float?> _TopMargin;
[Category("Layout")]
[DisplayName("Top Margin on Printed Page")]
[Description("Top Margin on Printed Page")]
public float? TopMargin
{
get
{
return LazyLoad(ref _TopMargin, "@TopMargin");
}
}
#endregion
#region FooterLength
private LazyLoad<float?> _FooterLength;
[Category("Location")]
[DisplayName("Number of lines required for footer")]
[Description("Number of lines required for footer")]
public float? FooterLength
{
get
{
return LazyLoad(ref _FooterLength, "@FooterLength");
}
}
#endregion
#region LeftMargin
private LazyLoad<float?> _LeftMargin;
[Category("Location")]
[DisplayName("Size of left margin")]
[Description("Size of left margin")]
public float? LeftMargin
{
get
{
return LazyLoad(ref _LeftMargin, "@LeftMargin");
}
}
#endregion
#region PageLength
private LazyLoad<float?> _PageLength;
[Category("Location")]
[DisplayName("Length of Page")]
[Description("Length of Page")]
public float? PageLength
{
get
{
return LazyLoad(ref _PageLength, "@PageLength");
}
}
#endregion
#region PageWidth
private LazyLoad<float?> _PageWidth;
[Category("Location")]
[DisplayName("Width of Page")]
[Description("Width of Page")]
public float? PageWidth
{
get
{
return LazyLoad(ref _PageWidth, "@PageWidth");
}
}
#endregion
#region MSWordXAdj
private LazyLoad<float?> _MSWordXAdj;
[Category("Location")]
[DisplayName("MSWord X Adjustment")]
[Description("X Placement of PDF during Print")]
public float? MSWordXAdj
{
get
{
return LazyLoad(ref _MSWordXAdj, "@MSWordXAdj");
}
}
#endregion
#region MSWordYAdj
private LazyLoad<float?> _MSWordYAdj;
[Category("Location")]
[DisplayName("MSWord Y Adjustment")]
[Description("Y Placement of PDF during Print")]
public float? MSWordYAdj
{
get
{
return LazyLoad(ref _MSWordYAdj, "@MSWordYAdj");
}
}
#endregion
#region SectionMacro
private LazyLoad<string> _SectionMacro;
[Category("Extras")]
[DisplayName("Section Macro")]
[Description("Section Macro Prints With Title")]
public string SectionMacro
{
get
{
return LazyLoad(ref _SectionMacro, "@SectionMacro");
}
}
#endregion
}
#endregion
#region ContinueAll
#region Continue
[TypeConverter(typeof(ExpandableObjectConverter))]
public class Continue : vlnFormatItem
{
public Continue(XmlNode xmlNode) : base(xmlNode) { }
public Continue() : base() { }
#region Font
private VE_Font _Font;
[Category("Continue Msg")]
[DisplayName("Font")]
[Description("Font")]
public VE_Font Font
{
get
{
return (_Font == null ? _Font = new VE_Font(base.XmlNode) : _Font);
}
}
#endregion
#region SubElements
private Top _Top;
public Top Top
{
get
{
return (_Top == null? _Top = new Top(SelectSingleNode("Top")): _Top);
}
}
private Bottom _Bottom;
public Bottom Bottom
{
get
{
return (_Bottom == null ? _Bottom = new Bottom(SelectSingleNode("Bottom")) : _Bottom);
}
}
private SectionTitle _SectionTitle;
public SectionTitle SectionTitle
{
get
{
return (_SectionTitle == null ? _SectionTitle = new SectionTitle(SelectSingleNode("SectionTitle")) : _SectionTitle);
}
}
#endregion
}
#endregion
#region Top
[TypeConverter(typeof(ExpandableObjectConverter))]
public class Top : vlnFormatItem
{
public Top(XmlNode xmlNode) : base(xmlNode) { }
public Top() : base() { }
#region Font
private VE_Font _Font;
[Category("Font")]
[DisplayName("Font")]
[Description("Font")]
public VE_Font Font
{
get
{
return (_Font == null) ? _Font = new VE_Font(XmlNode) : _Font;
}
}
#endregion
#region Margin
private LazyLoad<float?> _Margin;
[Category("Continue Msg")]
[DisplayName("Margin for top msg")]
[Description("Margin for top msg")]
public float? Margin
{
get
{
return LazyLoad(ref _Margin, "@Margin");
}
}
#endregion
#region UseStepTabs
private LazyLoad<bool> _UseStepTabs;
[Category("Continue Msg")]
[DisplayName("Flag to use step tabs")]
[Description("Flag to use step tabs")]
public bool UseStepTabs
{
get
{
return LazyLoad(ref _UseStepTabs, "@UseStepTabs");
}
}
#endregion
#region HLS
private LazyLoad<int?> _HLS;
[Category("Continue Msg")]
[DisplayName("Include HLS in top continue msg")]
[Description("Include HLS in top continue msg")]
public int? HLS
{
get
{
return LazyLoad(ref _HLS, "@HLS");
}
}
#endregion
#region Message
private LazyLoad<string> _Message;
[Category("Continue Msg")]
[DisplayName("Top Continue Msg")]
[Description("Top Continue Msg")]
public string Message
{
get
{
return LazyLoad(ref _Message, "@Message");
}
}
#endregion
}
#endregion
#region Bottom
[TypeConverter(typeof(ExpandableObjectConverter))]
public class Bottom : vlnFormatItem
{
public Bottom(XmlNode xmlNode) : base(xmlNode) { }
public Bottom() : base() { }
#region Font
private VE_Font _Font;
[Category("Font")]
[DisplayName("Font")]
[Description("Font")]
public VE_Font Font
{
get
{
return (_Font == null) ? _Font = new VE_Font(XmlNode) : _Font;
}
}
#endregion
#region Margin
private LazyLoad<float?> _Margin;
[Category("Continue Msg")]
[DisplayName("Margin for bottom msg")]
[Description("Margin for bottom msg")]
public float? Margin
{
get
{
return LazyLoad(ref _Margin, "@Margin");
}
}
#endregion
#region MarginR BGE
private LazyLoad<float?> _MarginR;
[Category("Continue Msg")]
[DisplayName("Margin for bottom msg RNO Column (if in both columns)")]
[Description("Margin for bottom msg RNO Column (if in both columns)")]
public float? MarginR
{
get
{
return LazyLoad(ref _MarginR, "@MarginR");
}
}
#endregion
#region Location
[Category("Continue Msg")]
[Description("Bottom Continue Location")]
private LazyLoad<E_NumberingSequence?> _NumberingSequence;
public E_NumberingSequence? NumberingSequence
{
get
{
return LazyLoad<E_NumberingSequence>(ref _NumberingSequence, "@NumberingSequence");
}
}
private LazyLoad<E_ContBottomLoc?> _Location;
public E_ContBottomLoc? Location
{
get
{
return LazyLoad<E_ContBottomLoc>(ref _Location, "@Location");
}
}
private LazyLoad<bool> _NoOverrideSpace;
public bool NoOverrideSpace
{
get
{
return LazyLoad(ref _NoOverrideSpace, "@NoOverrideSpace");
}
}
#endregion
#region Message
private LazyLoad<string> _Message;
[Category("Continue Msg")]
[DisplayName("Bottom Continue Msg")]
[Description("Bottom Continue Msg")]
public string Message
{
get
{
return LazyLoad(ref _Message, "@Message");
}
}
#endregion
}
#endregion
#region SectionTitle
[TypeConverter(typeof(ExpandableObjectConverter))]
public class SectionTitle : vlnFormatItem
{
public SectionTitle(XmlNode xmlNode) : base(xmlNode) { }
public SectionTitle() : base() { }
#region AppendToTitle
private LazyLoad<string> _AppendToTitle;
[Category("Section Title Continue Msg")]
[DisplayName("AppendToTitle")]
[Description("Append Text to Section Title For Continue Msg")]
public string AppendToTitle
{
get
{
return LazyLoad(ref _AppendToTitle, "@AppendToTitle");
}
}
#endregion
}
#endregion //SectionTitle - continue setting
#endregion
#region End
[TypeConverter(typeof(ExpandableObjectConverter))]
public class End : vlnFormatItem
{
public End(XmlNode xmlNode) : base(xmlNode) { }
public End() : base() { }
#region Font
private VE_Font _Font;
[Category("End Msg")]
[DisplayName("Font")]
[Description("Font")]
public VE_Font Font
{
get
{
return (_Font == null ? _Font = new VE_Font(XmlNode) : _Font);
}
}
#endregion
#region Flag
private LazyLoad<int?> _Flag;
[Category("End Msg")]
[DisplayName("End Msg Exists")]
[Description("End Msg Exists")]
public int? Flag
{
get
{
return LazyLoad(ref _Flag, "@Flag");
}
}
#endregion
#region Message
private LazyLoad<string> _Message;
[Category("End Msg")]
[DisplayName("End Message")]
[Description("End Message")]
public string Message
{
get
{
return LazyLoad(ref _Message, "@Message");
}
}
public string FixedMessage
{
get
{
return Message == null ? null : Message.Replace("\n","\r\n").Replace(@"{par}","\r\n");
}
}
private LazyLoad<float?> _Margin;
public float? Margin
{
get
{
return LazyLoad(ref _Margin, "@Margin");
}
}
private LazyLoad<bool> _EndMessageOnEachSubSection;
public bool EndMessageOnEachSubSection
{
get
{
return LazyLoad(ref _EndMessageOnEachSubSection, "@EndMessageOnEachSubSection");
}
}
#endregion
}
#endregion
#region Final
[TypeConverter(typeof(ExpandableObjectConverter))]
public class Final : vlnFormatItem
{
public Final(XmlNode xmlNode) : base(xmlNode) { }
public Final() : base() { }
private LazyLoad<string> _Message;
[Category("Final Msg")]
[DisplayName("Final Message")]
[Description("Final Message")]
public string Message
{
get
{
return LazyLoad(ref _Message, "@Message");
}
}
}
#endregion
#region StructureStyle
[TypeConverter(typeof(ExpandableObjectConverter))]
public class StructureStyle : vlnFormatItem
{
public StructureStyle(XmlNode xmlNode) : base(xmlNode) { }
public StructureStyle() : base() { }
#region Where
[Category("Structure Style")]
[Description("Where Used")]
private LazyLoad<E_DocStyleUse?> _Where;
public E_DocStyleUse? Where
{
get
{
return LazyLoad<E_DocStyleUse>(ref _Where, "@Where");
}
}
#endregion
#region Style
[Category("Structure Style")]
[Description("Style")]
private LazyLoad<E_DocStructStyle?> _Style;
public E_DocStructStyle? Style
{
get
{
return LazyLoad<E_DocStructStyle>(ref _Style, "@Style");
}
}
#endregion
}
#endregion
#endregion
}