496 lines
11 KiB
C#
496 lines
11 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 IsStepSection
|
|
[Category("Miscellaneous")]
|
|
[Description("Is a Step Section")]
|
|
private LazyLoad<bool> _IsStepSection;
|
|
public bool IsStepSection
|
|
{
|
|
get
|
|
{
|
|
return LazyLoad(ref _IsStepSection, "@IsStepSection");
|
|
}
|
|
}
|
|
#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 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 TopRow
|
|
private LazyLoad<int?> _TopRow;
|
|
[Category("Layout")]
|
|
[DisplayName("Top Row on Printed Page")]
|
|
[Description("Top Row on Printed Page")]
|
|
public int? TopRow
|
|
{
|
|
get
|
|
{
|
|
return LazyLoad(ref _TopRow, "@TopRow");
|
|
}
|
|
}
|
|
#endregion
|
|
#region FooterLength
|
|
private LazyLoad<int?> _FooterLength;
|
|
[Category("Location")]
|
|
[DisplayName("Number of lines required for footer")]
|
|
[Description("Number of lines required for footer")]
|
|
public int? FooterLength
|
|
{
|
|
get
|
|
{
|
|
return LazyLoad(ref _FooterLength, "@FooterLength");
|
|
}
|
|
}
|
|
#endregion
|
|
#region LeftMargin
|
|
private LazyLoad<int?> _LeftMargin;
|
|
[Category("Location")]
|
|
[DisplayName("Size of left margin")]
|
|
[Description("Size of left margin")]
|
|
public int? LeftMargin
|
|
{
|
|
get
|
|
{
|
|
return LazyLoad(ref _LeftMargin, "@LeftMargin");
|
|
}
|
|
}
|
|
#endregion
|
|
#region PageLength
|
|
private LazyLoad<int?> _PageLength;
|
|
[Category("Location")]
|
|
[DisplayName("Length of Page")]
|
|
[Description("Length of Page")]
|
|
public int? PageLength
|
|
{
|
|
get
|
|
{
|
|
return LazyLoad(ref _PageLength, "@PageLength");
|
|
}
|
|
}
|
|
#endregion
|
|
#region PageWidth
|
|
private LazyLoad<int?> _PageWidth;
|
|
[Category("Location")]
|
|
[DisplayName("Width of Page")]
|
|
[Description("Width of Page")]
|
|
public int? PageWidth
|
|
{
|
|
get
|
|
{
|
|
return LazyLoad(ref _PageWidth, "@PageWidth");
|
|
}
|
|
}
|
|
#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);
|
|
}
|
|
}
|
|
#endregion
|
|
}
|
|
#endregion
|
|
#region Top
|
|
[TypeConverter(typeof(ExpandableObjectConverter))]
|
|
public class Top : vlnFormatItem
|
|
{
|
|
public Top(XmlNode xmlNode) : base(xmlNode) { }
|
|
public Top() : base() { }
|
|
#region Margin
|
|
private LazyLoad<int?> _Margin;
|
|
[Category("Continue Msg")]
|
|
[DisplayName("Margin for top msg")]
|
|
[Description("Margin for top msg")]
|
|
public int? Margin
|
|
{
|
|
get
|
|
{
|
|
return LazyLoad(ref _Margin, "@Margin");
|
|
}
|
|
}
|
|
#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 Margin
|
|
private LazyLoad<int?> _Margin;
|
|
[Category("Continue Msg")]
|
|
[DisplayName("Margin for bottom msg")]
|
|
[Description("Margin for bottom msg")]
|
|
public int? Margin
|
|
{
|
|
get
|
|
{
|
|
return LazyLoad(ref _Margin, "@Margin");
|
|
}
|
|
}
|
|
#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");
|
|
}
|
|
}
|
|
#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
|
|
#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");
|
|
}
|
|
}
|
|
#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
|
|
}
|