Print Library, Svg Library, Utils Library, XYPlots
This commit is contained in:
@@ -1,10 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Drawing;
|
||||
using iTextSharp.text.pdf;
|
||||
using iTextSharp.text;
|
||||
using VEPROMS.CSLA.Library;
|
||||
|
||||
namespace Volian.Print.Library
|
||||
{
|
||||
@@ -13,13 +7,8 @@ namespace Volian.Print.Library
|
||||
private bool _UseInternalY = false;
|
||||
// B2020-121: Account for Header on Caution or Note
|
||||
public bool UseInternalY { get => _UseInternalY; set => _UseInternalY = value; }
|
||||
private string _MacroDef;
|
||||
public string MacroDef
|
||||
{
|
||||
get { return _MacroDef; }
|
||||
set { _MacroDef = value; }
|
||||
}
|
||||
public vlnMacro(float xoffset, float yoffset, string macroDef)
|
||||
public string MacroDef { get; set; }
|
||||
public vlnMacro(float xoffset, float yoffset, string macroDef)
|
||||
{
|
||||
YOffset = yoffset;
|
||||
XOffset = xoffset;
|
||||
@@ -33,9 +22,8 @@ namespace Volian.Print.Library
|
||||
if (UseInternalY) yLocation = YOffset; // B2020-121: Account for Header on Caution or Note
|
||||
// Adjust the starting point for the Macro if the LPI is 7
|
||||
if (MyPageHelper.YMultiplier != 1) yLocation += SixLinesPerInch - _SevenLinesPerInch;
|
||||
VlnSvgPageHelper _MyPageHelper = cb.PdfWriter.PageEvent as VlnSvgPageHelper;
|
||||
PdfLayer textLayer = _MyPageHelper == null ? null : _MyPageHelper.TextLayer;
|
||||
if (textLayer != null) cb.BeginLayer(textLayer);
|
||||
PdfLayer textLayer = !(cb.PdfWriter.PageEvent is VlnSvgPageHelper _MyPageHelper) ? null : _MyPageHelper.TextLayer;
|
||||
if (textLayer != null) cb.BeginLayer(textLayer);
|
||||
MyContentByte = cb;
|
||||
System.Drawing.Color push = PrintOverride.SvgColor;
|
||||
PrintOverride.SvgColor = PrintOverride.TextColor == System.Drawing.Color.Empty ? System.Drawing.Color.Black : PrintOverride.TextColor;
|
||||
|
||||
Reference in New Issue
Block a user