This commit is contained in:
parent
9e4bceb9b3
commit
38dbd7a31a
@ -11,9 +11,27 @@ using VEPROMS.CSLA.Library;
|
|||||||
|
|
||||||
namespace Volian.Print.Library
|
namespace Volian.Print.Library
|
||||||
{
|
{
|
||||||
|
|
||||||
public class VlnSvgPageHelper:SvgPageHelper
|
public class VlnSvgPageHelper:SvgPageHelper
|
||||||
{
|
{
|
||||||
|
// This handles Page Breaks within a Step
|
||||||
|
private List<vlnParagraph> _ParaBreaks = new List<vlnParagraph>();
|
||||||
|
public List<vlnParagraph> ParaBreaks
|
||||||
|
{
|
||||||
|
get { return _ParaBreaks; }
|
||||||
|
set { _ParaBreaks = value; }
|
||||||
|
}
|
||||||
|
private VlnDestinations _VlnDestinations = new VlnDestinations();
|
||||||
|
public VlnDestinations VlnDestinations
|
||||||
|
{
|
||||||
|
get { return _VlnDestinations; }
|
||||||
|
set { _VlnDestinations = value; }
|
||||||
|
}
|
||||||
|
private PdfOutline _MyPdfOutline = null;
|
||||||
|
public PdfOutline MyPdfOutline
|
||||||
|
{
|
||||||
|
get { return _MyPdfOutline; }
|
||||||
|
set { _MyPdfOutline = value; }
|
||||||
|
}
|
||||||
private vlnText _TopMessage;
|
private vlnText _TopMessage;
|
||||||
public vlnText TopMessage
|
public vlnText TopMessage
|
||||||
{
|
{
|
||||||
@ -72,9 +90,17 @@ namespace Volian.Print.Library
|
|||||||
if (MySectionTitle != null)
|
if (MySectionTitle != null)
|
||||||
{
|
{
|
||||||
PdfDestination dest = new PdfDestination(PdfDestination.FIT);
|
PdfDestination dest = new PdfDestination(PdfDestination.FIT);
|
||||||
PdfOutline outline = new PdfOutline(writer.DirectContent.RootOutline, dest, MySectionTitle, false);
|
MyPdfOutline = new PdfOutline(writer.DirectContent.RootOutline, dest, MySectionTitle, false);
|
||||||
MySectionTitle = null;
|
MySectionTitle = null;
|
||||||
}
|
}
|
||||||
|
if (VlnDestinations.Count > 0 && MyPdfOutline != null)
|
||||||
|
{
|
||||||
|
foreach (VlnDestination vd in VlnDestinations)
|
||||||
|
{
|
||||||
|
new PdfOutline(MyPdfOutline, vd.PdfDestination, vd.Title, false);
|
||||||
|
}
|
||||||
|
VlnDestinations.Clear();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
private void DrawMessages(PdfContentByte cb)
|
private void DrawMessages(PdfContentByte cb)
|
||||||
{
|
{
|
||||||
@ -539,6 +565,36 @@ namespace Volian.Print.Library
|
|||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public class VlnDestinations : List<VlnDestination>
|
||||||
|
{
|
||||||
|
public VlnDestinations() : base()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
public void Add(string title, PdfDestination pdfDestination)
|
||||||
|
{
|
||||||
|
Add(new VlnDestination(title, pdfDestination));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public class VlnDestination
|
||||||
|
{
|
||||||
|
private string _Title;
|
||||||
|
public string Title
|
||||||
|
{
|
||||||
|
get { return _Title; }
|
||||||
|
set { _Title = value; }
|
||||||
|
}
|
||||||
|
private PdfDestination _PdfDestination;
|
||||||
|
public PdfDestination PdfDestination
|
||||||
|
{
|
||||||
|
get { return _PdfDestination; }
|
||||||
|
set { _PdfDestination = value; }
|
||||||
|
}
|
||||||
|
public VlnDestination(string title, PdfDestination pdfDestination)
|
||||||
|
{
|
||||||
|
_Title = title;
|
||||||
|
_PdfDestination = pdfDestination;
|
||||||
|
}
|
||||||
|
}
|
||||||
public class ChangeBarDefinition // anything that is section level should go in here.
|
public class ChangeBarDefinition // anything that is section level should go in here.
|
||||||
{
|
{
|
||||||
private PrintChangeBar _MyChangeBarType;
|
private PrintChangeBar _MyChangeBarType;
|
||||||
|
@ -294,6 +294,8 @@ namespace Volian.Print.Library
|
|||||||
cb.EndLayer();
|
cb.EndLayer();
|
||||||
cb.RestoreState();
|
cb.RestoreState();
|
||||||
}
|
}
|
||||||
|
public virtual float YBottom
|
||||||
|
{ get { return YOffset + Height;} }
|
||||||
}
|
}
|
||||||
public partial class vlnPrintObjects : List<vlnPrintObject>
|
public partial class vlnPrintObjects : List<vlnPrintObject>
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user