Compare commits
14 Commits
master
...
C2025-036_
Author | SHA1 | Date | |
---|---|---|---|
abec4d9281 | |||
149bc601e2 | |||
66deede936 | |||
0df5511bf7 | |||
2e68218cfe | |||
80f3568dbd | |||
5fd0ff9e71 | |||
4dcfa05157 | |||
42648f31a5 | |||
e0b628dce9 | |||
6e9c7e28e6 | |||
ac091a7d26 | |||
612e7955cf | |||
ce92031ff7 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -449,7 +449,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
StringBuilder sret = new StringBuilder();
|
StringBuilder sret = new StringBuilder();
|
||||||
ItemInfo pitem = this;
|
ItemInfo pitem = this;
|
||||||
|
|
||||||
while (!pitem.IsSection && !pitem.IsHigh)
|
while (!pitem.IsSection && !pitem.IsHigh)
|
||||||
{
|
{
|
||||||
using (StepInfo stpinfo = StepInfo.Get(pitem.ItemID))
|
using (StepInfo stpinfo = StepInfo.Get(pitem.ItemID))
|
||||||
@ -4655,7 +4654,9 @@ namespace VEPROMS.CSLA.Library
|
|||||||
int localPrintLevel = PrintLevel;
|
int localPrintLevel = PrintLevel;
|
||||||
StepSectionData sd = ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData;
|
StepSectionData sd = ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData;
|
||||||
bool doMeta = false;
|
bool doMeta = false;
|
||||||
if (sd.StepSectionLayoutData.TieTabToLevel && ActiveFormat.PlantFormat.FormatData.SectData.UseMetaSections)
|
if (sd.StepSectionLayoutData.TieTabToLevel) // C2025-036 reduce un-needed processing
|
||||||
|
{
|
||||||
|
if (ActiveFormat.PlantFormat.FormatData.SectData.UseMetaSections)
|
||||||
{
|
{
|
||||||
if (sd.StepSectionLayoutData.ShowSectionTitles
|
if (sd.StepSectionLayoutData.ShowSectionTitles
|
||||||
&& !MyDocStyle.CancelSectTitle
|
&& !MyDocStyle.CancelSectTitle
|
||||||
@ -4663,22 +4664,26 @@ namespace VEPROMS.CSLA.Library
|
|||||||
localPrintLevel = PrintLevel + (((ActiveFormat.PlantFormat.FormatData.Express && IsSequential)) ? 0 : CurrentSectionLevel());
|
localPrintLevel = PrintLevel + (((ActiveFormat.PlantFormat.FormatData.Express && IsSequential)) ? 0 : CurrentSectionLevel());
|
||||||
if (!ActiveFormat.PlantFormat.FormatData.Express) doMeta = true;
|
if (!ActiveFormat.PlantFormat.FormatData.Express) doMeta = true;
|
||||||
}
|
}
|
||||||
if (sd.StepSectionLayoutData.TieTabToLevel && ActiveFormat.PlantFormat.FormatData.SectData.CountSubSectionsForLevel)
|
if (ActiveFormat.PlantFormat.FormatData.SectData.CountSubSectionsForLevel && (SectionLevel() > 1))
|
||||||
if (SectionLevel() > 1)
|
|
||||||
localPrintLevel += 1;
|
localPrintLevel += 1;
|
||||||
|
}
|
||||||
|
|
||||||
SeqTabFmtList seqtabs = ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.SeqTabFmtList;
|
SeqTabFmtList seqtabs = ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.SeqTabFmtList;
|
||||||
|
|
||||||
// Start with basic cases of alpha/numeric/seq:
|
// Start with basic cases of alpha/numeric/seq:
|
||||||
// If we have metasections AND...
|
// If we have metasections AND...
|
||||||
// If the seqtabs for this given level does not get a section number, use the seqtab rather than
|
// If the seqtabs for this given level does not get a section number, use the seqtab rather than
|
||||||
// the ident of the step:
|
// the ident of the step:
|
||||||
bool useSubStepTabs = false;
|
bool useSubStepTabs = false;
|
||||||
if (doMeta && IsHigh
|
if (doMeta) // C2025-036 reduce un-needed processing
|
||||||
|
{
|
||||||
|
if (IsHigh
|
||||||
&& !seqtabs[(localPrintLevel < 0 ? 0 : localPrintLevel) % seqtabs.MaxIndex].TabToken.Contains("{numericWpar}")
|
&& !seqtabs[(localPrintLevel < 0 ? 0 : localPrintLevel) % seqtabs.MaxIndex].TabToken.Contains("{numericWpar}")
|
||||||
&& tbformat.Contains("{")) useSubStepTabs = true;
|
&& tbformat.Contains("{")) useSubStepTabs = true;
|
||||||
|
|
||||||
// Check to be sure the parent tab should be included... If this sequential is within a note
|
// Check to be sure the parent tab should be included... If this sequential is within a note
|
||||||
// or caution or equipment list, don't use parent tab AND always start the numbering as a numeric
|
// or caution or equipment list, don't use parent tab AND always start the numbering as a numeric
|
||||||
if (doMeta && IsSequential && (InNote() || InCaution() ||
|
if (IsSequential && (InNote() || InCaution() ||
|
||||||
(MyParent.IsEquipmentList && !MyParent.FormatStepData.TabData.IdentPrint.Contains("{seq}"))))
|
(MyParent.IsEquipmentList && !MyParent.FormatStepData.TabData.IdentPrint.Contains("{seq}"))))
|
||||||
{
|
{
|
||||||
// if immediate parent is note, caution or equip, use numeric, otherwise use alpha.
|
// if immediate parent is note, caution or equip, use numeric, otherwise use alpha.
|
||||||
@ -4693,6 +4698,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
lv = lv % 2;
|
lv = lv % 2;
|
||||||
tbformat = (lv == 0) ? "{numeric}." : "{alpha}.";
|
tbformat = (lv == 0) ? "{numeric}." : "{alpha}.";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
bool trimTabStart = false;
|
bool trimTabStart = false;
|
||||||
bool dontTrimParentTabBeforeAppending = false; // B2019-011 for Barakah Alarm format
|
bool dontTrimParentTabBeforeAppending = false; // B2019-011 for Barakah Alarm format
|
||||||
if (useSubStepTabs || tbformat.IndexOf("{seq}") > -1)
|
if (useSubStepTabs || tbformat.IndexOf("{seq}") > -1)
|
||||||
@ -4757,7 +4763,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
PrintLevel = 0;
|
PrintLevel = 0;
|
||||||
|
|
||||||
// If token includes 'Wpar', the parent tab prefix's the tab.
|
// If token includes 'Wpar', the parent tab prefix's the tab.
|
||||||
if (localPrintLevel > 0 && (tbformat.IndexOf("{numericWpar}") > -1 || tbformat.IndexOf("{alphaWpar}") > -1 || tbformat.IndexOf("{ALPHAWpar}") > -1))
|
if (localPrintLevel > 0 && tbformat.Contains("Wpar}")) // C2025-036 reduce un-needed processing
|
||||||
{
|
{
|
||||||
string parentTab = null;
|
string parentTab = null;
|
||||||
ItemInfo myparent = ActiveParent as ItemInfo;
|
ItemInfo myparent = ActiveParent as ItemInfo;
|
||||||
@ -4872,6 +4878,8 @@ namespace VEPROMS.CSLA.Library
|
|||||||
}
|
}
|
||||||
string alpha = useLinked?LinkedTab.Trim():AlphabeticalNumbering(ordinal);
|
string alpha = useLinked?LinkedTab.Trim():AlphabeticalNumbering(ordinal);
|
||||||
if (trimSeqValue) alpha = alpha.Trim(); // F2024-043 trim white around SEQ tab value (for sub-steps)
|
if (trimSeqValue) alpha = alpha.Trim(); // F2024-043 trim white around SEQ tab value (for sub-steps)
|
||||||
|
if (tbformat.ToUpper().Contains("{ALPHA")) // C2025-036 reduce un-needed processing
|
||||||
|
{
|
||||||
// B2017-211 Roman High Level steps should be followed by Uppercase alpha substeps - This is being limited to Calvert SAMG Format
|
// B2017-211 Roman High Level steps should be followed by Uppercase alpha substeps - This is being limited to Calvert SAMG Format
|
||||||
if (_ActiveFormat.Name == "BGESAM1" && MyParent != null && MyParent.IsHigh && MyParent.IsStep && MyParent.FormatStepData.TabData.IdentEdit.Contains("ROMAN"))
|
if (_ActiveFormat.Name == "BGESAM1" && MyParent != null && MyParent.IsHigh && MyParent.IsStep && MyParent.FormatStepData.TabData.IdentEdit.Contains("ROMAN"))
|
||||||
tbformat = tbformat.Replace("{alpha}", alpha);
|
tbformat = tbformat.Replace("{alpha}", alpha);
|
||||||
@ -4884,6 +4892,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
tbformat = tbformat.Replace("{ALPHA}", alpha);
|
tbformat = tbformat.Replace("{ALPHA}", alpha);
|
||||||
|
|
||||||
tbformat = tbformat.Replace("{ALPHAWpar}", alpha);
|
tbformat = tbformat.Replace("{ALPHAWpar}", alpha);
|
||||||
|
}
|
||||||
if (tbformat.ToUpper().Contains("ROMAN"))
|
if (tbformat.ToUpper().Contains("ROMAN"))
|
||||||
{
|
{
|
||||||
string roman = RomanNumbering(ordinal);
|
string roman = RomanNumbering(ordinal);
|
||||||
@ -4891,16 +4900,19 @@ namespace VEPROMS.CSLA.Library
|
|||||||
tbformat = tbformat.Replace("{ROMAN}", roman);
|
tbformat = tbformat.Replace("{ROMAN}", roman);
|
||||||
tbformat = tbformat.Substring(0, tbformat.Length - ((roman.Length - 1) > 0 ? (roman.Length - 1) : 0));
|
tbformat = tbformat.Substring(0, tbformat.Length - ((roman.Length - 1) > 0 ? (roman.Length - 1) : 0));
|
||||||
}
|
}
|
||||||
if (tbformat.Contains("{numeric}") && ((MyDocStyle.StructureStyle.Style & E_DocStructStyle.DSS_AddDotZeroStdHLS) == E_DocStructStyle.DSS_AddDotZeroStdHLS) && MyContent.Type == 20002)
|
if (tbformat.Contains("{numeric}")) // C2025-036 reduce un-needed processing
|
||||||
|
{
|
||||||
|
if (((MyDocStyle.StructureStyle.Style & E_DocStructStyle.DSS_AddDotZeroStdHLS) == E_DocStructStyle.DSS_AddDotZeroStdHLS) && MyContent.Type == 20002)
|
||||||
{
|
{
|
||||||
tbformat = tbformat.Replace("{numeric}", ordinal.ToString().PadLeft(2) + ".0");
|
tbformat = tbformat.Replace("{numeric}", ordinal.ToString().PadLeft(2) + ".0");
|
||||||
tbformat = tbformat.Substring(0, tbformat.Length - 2);
|
tbformat = tbformat.Substring(0, tbformat.Length - 2);
|
||||||
}
|
}
|
||||||
if (tbformat.Contains("{numeric}") && (this.FormatStepData.AppendDotZero)) // F2018-022 Added step type flag to append a ".0" to the end of the high level step - put in for Westinghouse single column format (wst1)
|
if (this.FormatStepData.AppendDotZero) // F2018-022 Added step type flag to append a ".0" to the end of the high level step - put in for Westinghouse single column format (wst1)
|
||||||
{
|
{
|
||||||
string numtxt = ordinal.ToString().PadLeft(2) + ".0";
|
string numtxt = ordinal.ToString().PadLeft(2) + ".0";
|
||||||
tbformat = tbformat.Replace("{numeric}.", numtxt).Replace("{numeric}", numtxt);
|
tbformat = tbformat.Replace("{numeric}.", numtxt).Replace("{numeric}", numtxt);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// if this is a wolf creek background, if the tbformat ends with a '.' don't add a space,
|
// if this is a wolf creek background, if the tbformat ends with a '.' don't add a space,
|
||||||
// otherwise add a space.
|
// otherwise add a space.
|
||||||
if (ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.WolfCreekBackgroundFormat && IsBackgroundStep())
|
if (ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.WolfCreekBackgroundFormat && IsBackgroundStep())
|
||||||
@ -6097,9 +6109,10 @@ namespace VEPROMS.CSLA.Library
|
|||||||
}
|
}
|
||||||
private bool IsLowestLevelStep
|
private bool IsLowestLevelStep
|
||||||
{
|
{
|
||||||
|
//F2025-015 added check for IsInCautionOrNote for sub-step inside Notes and Cautions
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return (!(IsCaution || IsNote || IsTable || IsFigure || Steps != null || MyParent.IsCaution || MyParent.IsNote));
|
return (!(IsCaution || IsNote || IsInCautionOrNote || IsTable || IsFigure || Steps != null || MyParent.IsCaution || MyParent.IsNote));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private bool RNOsHighHasCheckOff()
|
private bool RNOsHighHasCheckOff()
|
||||||
|
@ -10,6 +10,7 @@ using Volian.Controls.Library;
|
|||||||
using DevComponents.DotNetBar;
|
using DevComponents.DotNetBar;
|
||||||
using JR.Utils.GUI.Forms;
|
using JR.Utils.GUI.Forms;
|
||||||
using Volian.Base.Library;
|
using Volian.Base.Library;
|
||||||
|
using Microsoft.Win32;
|
||||||
|
|
||||||
namespace Volian.Controls.Library
|
namespace Volian.Controls.Library
|
||||||
{
|
{
|
||||||
@ -657,12 +658,36 @@ namespace Volian.Controls.Library
|
|||||||
return OpenStepTabPage(myItemInfo, setFocus);
|
return OpenStepTabPage(myItemInfo, setFocus);
|
||||||
}
|
}
|
||||||
else // Otherwise open it in the Word editor
|
else // Otherwise open it in the Word editor
|
||||||
|
{
|
||||||
|
// B2025-034 Check to make sure that EDWord is installed in PROMS. If not return NULL.
|
||||||
|
object EDOfficeViewerX = GetValue<object>(@"HKEY_CLASSES_ROOT\EDOfficeViewerX.Connect\CLSID\", @"", null);
|
||||||
|
|
||||||
|
object EDWordCtrl = GetValue<object>(@"HKEY_CLASSES_ROOT\EDWORD.EDWordCtrl.1\CLSID\", @"", null);
|
||||||
|
|
||||||
|
if (EDOfficeViewerX == null || EDWordCtrl == null)
|
||||||
|
{
|
||||||
|
|
||||||
|
MessageBox.Show("Edraw needs to be installed or reinstalled on this device. " + Environment.NewLine + "" + Environment.NewLine +
|
||||||
|
"Please contact your IT Administrator to install and register Edraw that was provided with the PROMS Installation media. If additional support is needed, please contact Volian.", "Error in Word section",
|
||||||
|
MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
Document.ConvertWordSectionToDOCX(myItemInfo); // B2023-093 Convert a Word section to the DOCX Word format if needed before opening it for edit
|
Document.ConvertWordSectionToDOCX(myItemInfo); // B2023-093 Convert a Word section to the DOCX Word format if needed before opening it for edit
|
||||||
return OpenDSOTabPage(myItemInfo);
|
return OpenDSOTabPage(myItemInfo);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
public T GetValue<T>(string registryKeyPath, string value, T defaultValue = default(T))
|
||||||
|
{
|
||||||
|
T retVal = default(T);
|
||||||
|
|
||||||
|
retVal = (T)Registry.GetValue(registryKeyPath, value, defaultValue);
|
||||||
|
|
||||||
|
return retVal;
|
||||||
|
}
|
||||||
public bool PasteRTBItem(ItemInfo myItemInfo, int copyStartID, ItemInfo.EAddpingPart pasteType, int type)
|
public bool PasteRTBItem(ItemInfo myItemInfo, int copyStartID, ItemInfo.EAddpingPart pasteType, int type)
|
||||||
{
|
{
|
||||||
CleanUpClosedItems();
|
CleanUpClosedItems();
|
||||||
|
@ -3994,6 +3994,7 @@ namespace Volian.Controls.Library
|
|||||||
// TODO: Adjust top based upon format
|
// TODO: Adjust top based upon format
|
||||||
// TODO: Remove Label and just output ident on the paint event
|
// TODO: Remove Label and just output ident on the paint event
|
||||||
TabLeft = 20;
|
TabLeft = 20;
|
||||||
|
if (!itemInfo.IsStep) // C2025-036 reduce un-needed processing - this will prevent duplicat calls that generate step tabs when loading a procedure
|
||||||
SetupHeader(itemInfo);
|
SetupHeader(itemInfo);
|
||||||
SetupAlarmTableView(itemInfo); // C2021-018 display alarm point table information in the step editor (if the format flag is set)
|
SetupAlarmTableView(itemInfo); // C2021-018 display alarm point table information in the step editor (if the format flag is set)
|
||||||
this.Paint += new PaintEventHandler(EditItem_Paint);
|
this.Paint += new PaintEventHandler(EditItem_Paint);
|
||||||
|
@ -1081,12 +1081,39 @@ namespace Volian.Controls.Library
|
|||||||
// require clearing of all enhanced config data or mapping it to existing data (quite complicated)
|
// require clearing of all enhanced config data or mapping it to existing data (quite complicated)
|
||||||
if ((ui.IsAdministrator() || ui.IsSetAdministrator(i.MyProcedure.MyDocVersion) || ui.IsWriter(i.MyProcedure.MyDocVersion)) && (!i.IsEnhancedStep && !i.IsEnhancedProcedure && !i.IsEnhancedSection && !i.IsRtfRaw && !i.IsFigure))
|
if ((ui.IsAdministrator() || ui.IsSetAdministrator(i.MyProcedure.MyDocVersion) || ui.IsWriter(i.MyProcedure.MyDocVersion)) && (!i.IsEnhancedStep && !i.IsEnhancedProcedure && !i.IsEnhancedSection && !i.IsRtfRaw && !i.IsFigure))
|
||||||
cm.MenuItems.Add("Copy", new EventHandler(mi_Click));
|
cm.MenuItems.Add("Copy", new EventHandler(mi_Click));
|
||||||
|
//if (i.HasWordContent)
|
||||||
|
//{
|
||||||
|
// cm.MenuItems.Add("Print Section", new EventHandler(mi_Click));
|
||||||
|
// cm.MenuItems.Add("Quick Print Section", new EventHandler(mi_Click));
|
||||||
|
//}
|
||||||
if (i.HasWordContent)
|
if (i.HasWordContent)
|
||||||
|
{
|
||||||
|
if (i.MyDocVersion.MultiUnitCount > 1)
|
||||||
|
{
|
||||||
|
if (!i.IsSubsection)
|
||||||
|
{
|
||||||
|
MenuItem mps = new MenuItem("Print Section");
|
||||||
|
MenuItem mqps = new MenuItem("Quick Print Section");
|
||||||
|
int k = 0;
|
||||||
|
foreach (string s in i.MyDocVersion.UnitNames)
|
||||||
|
{
|
||||||
|
k++;
|
||||||
|
MenuItem mp = mps.MenuItems.Add(s, new EventHandler(miMultiUnit_Click));
|
||||||
|
mp.Tag = k;
|
||||||
|
MenuItem mqp = mqps.MenuItems.Add(s, new EventHandler(miMultiUnit_Click));
|
||||||
|
mqp.Tag = k;
|
||||||
|
}
|
||||||
|
cm.MenuItems.Add(mps);
|
||||||
|
cm.MenuItems.Add(mqps);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
cm.MenuItems.Add("Print Section", new EventHandler(mi_Click));
|
cm.MenuItems.Add("Print Section", new EventHandler(mi_Click));
|
||||||
cm.MenuItems.Add("Quick Print Section", new EventHandler(mi_Click));
|
cm.MenuItems.Add("Quick Print Section", new EventHandler(mi_Click));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#endregion
|
#endregion
|
||||||
//_MyLog.WarnFormat("Context Menu 4 - {0}", GC.GetTotalMemory(true));
|
//_MyLog.WarnFormat("Context Menu 4 - {0}", GC.GetTotalMemory(true));
|
||||||
|
|
||||||
@ -2856,7 +2883,8 @@ namespace Volian.Controls.Library
|
|||||||
//since before/after folder is at same level as current folder
|
//since before/after folder is at same level as current folder
|
||||||
//so need to use the parents order to determine where to place it
|
//so need to use the parents order to determine where to place it
|
||||||
using (FolderInfo parfolderinfo = FolderInfo.Get(parentfolder.MyParent.FolderID))
|
using (FolderInfo parfolderinfo = FolderInfo.Get(parentfolder.MyParent.FolderID))
|
||||||
{ double? myorder = parfolderinfo.NewManualOrder(myindex);
|
{
|
||||||
|
double? myorder = parfolderinfo.NewManualOrder(myindex);
|
||||||
using (Folder folder = Folder.MakeFolder(parentfolder.MyParent, parentfolder.MyConnection, uniquename, string.Empty, "Short Name", null, myorder, string.Empty, DateTime.Now, VlnSettings.UserID))
|
using (Folder folder = Folder.MakeFolder(parentfolder.MyParent, parentfolder.MyConnection, uniquename, string.Empty, "Short Name", null, myorder, string.Empty, DateTime.Now, VlnSettings.UserID))
|
||||||
{
|
{
|
||||||
ShowBrokenRules(folder.BrokenRulesCollection);
|
ShowBrokenRules(folder.BrokenRulesCollection);
|
||||||
|
@ -4390,7 +4390,8 @@ namespace Volian.Print.Library
|
|||||||
SectionConfig sch = MyItemInfo.MyConfig as SectionConfig;
|
SectionConfig sch = MyItemInfo.MyConfig as SectionConfig;
|
||||||
if (sch != null && sch.Section_PrintHdr != "Y") doprint = false;
|
if (sch != null && sch.Section_PrintHdr != "Y") doprint = false;
|
||||||
}
|
}
|
||||||
if (doprint && !UseTemplateKeepOnCurLine(itemInfo))
|
//C2025-021 Add logic to PROMS to support a special High Level Step type that is not printed.
|
||||||
|
if (doprint && !UseTemplateKeepOnCurLine(itemInfo) && !itemInfo.IsType("InvisibleHigh"))
|
||||||
{
|
{
|
||||||
float tyoff = yoff;
|
float tyoff = yoff;
|
||||||
if (itemInfo.Steps != null)
|
if (itemInfo.Steps != null)
|
||||||
@ -5754,6 +5755,18 @@ namespace Volian.Print.Library
|
|||||||
int profileDepth = ProfileTimer.Push(">>>> GetRtf");
|
int profileDepth = ProfileTimer.Push(">>>> GetRtf");
|
||||||
_RtfSB = new StringBuilder();
|
_RtfSB = new StringBuilder();
|
||||||
DisplayText vlntxt = new DisplayText(itemInfo, E_EditPrintMode.Print, E_ViewMode.View, true, E_FieldToEdit.StepText, false, prefix, suffix, MyPageHelper.MyPromsPrinter.RemoveTrailingHardReturnsAndSpaces != null);
|
DisplayText vlntxt = new DisplayText(itemInfo, E_EditPrintMode.Print, E_ViewMode.View, true, E_FieldToEdit.StepText, false, prefix, suffix, MyPageHelper.MyPromsPrinter.RemoveTrailingHardReturnsAndSpaces != null);
|
||||||
|
|
||||||
|
//C2025-021 Add logic to PROMS to support a special High Level Step type that is not printed.
|
||||||
|
if (itemInfo.IsType("InvisibleHigh"))
|
||||||
|
{
|
||||||
|
System.Drawing.Font myHighFont = vlntxt.TextFont.WindowsFont;
|
||||||
|
_RtfSB.Append(AddFontTable(myHighFont));
|
||||||
|
_RtfSB.Append("}");
|
||||||
|
string rtfHigh = _RtfSB.ToString();
|
||||||
|
ProfileTimer.Pop(profileDepth);
|
||||||
|
return rtfHigh;
|
||||||
|
}
|
||||||
|
|
||||||
// C2021-010: Remove trailing returns/spaces & manual page breaks & allow save.
|
// C2021-010: Remove trailing returns/spaces & manual page breaks & allow save.
|
||||||
if (DisplayText.RemoveTrailingBlankID > 0 && !MyPageHelper.MyPromsPrinter.RemoveTrailingHardReturnsAndSpaces.Contains(itemInfo.ItemID)) MyPageHelper.MyPromsPrinter.RemoveTrailingHardReturnsAndSpaces.Add(DisplayText.RemoveTrailingBlankID);
|
if (DisplayText.RemoveTrailingBlankID > 0 && !MyPageHelper.MyPromsPrinter.RemoveTrailingHardReturnsAndSpaces.Contains(itemInfo.ItemID)) MyPageHelper.MyPromsPrinter.RemoveTrailingHardReturnsAndSpaces.Add(DisplayText.RemoveTrailingBlankID);
|
||||||
System.Drawing.Font myFont = vlntxt.TextFont.WindowsFont;
|
System.Drawing.Font myFont = vlntxt.TextFont.WindowsFont;
|
||||||
|
@ -69,7 +69,7 @@ namespace Volian.Print.Library
|
|||||||
private string symblsStr = "\u25CF\u0394"; // string of possible symbol character in a tab
|
private string symblsStr = "\u25CF\u0394"; // string of possible symbol character in a tab
|
||||||
// add symbol characters as needed
|
// add symbol characters as needed
|
||||||
// "\u25CF" - solid bullet
|
// "\u25CF" - solid bullet
|
||||||
// \x0394 - delta
|
// \u0394 - delta
|
||||||
|
|
||||||
private System.Drawing.FontStyle GetSysFontStyle(VE_Font f)
|
private System.Drawing.FontStyle GetSysFontStyle(VE_Font f)
|
||||||
{
|
{
|
||||||
@ -268,6 +268,7 @@ namespace Volian.Print.Library
|
|||||||
}
|
}
|
||||||
Rtf = GetRtf(origTab, vFont);
|
Rtf = GetRtf(origTab, vFont);
|
||||||
Rtf = Rtf.Replace("\u0394", @"\f1\u916?\f0 "); // delta 0x0394
|
Rtf = Rtf.Replace("\u0394", @"\f1\u916?\f0 "); // delta 0x0394
|
||||||
|
Rtf = Rtf.Replace("\u03BF", @"\f1\u959?\f0 "); // F2025-015 lowercase omicron check with hex value replace with RTF string
|
||||||
if (ScriptCaution)
|
if (ScriptCaution)
|
||||||
{
|
{
|
||||||
Rtf = GetRtf("\u25CFCaution ", vFont);
|
Rtf = GetRtf("\u25CFCaution ", vFont);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user