C2019-025_Ability-to-Toggle-Replace-Words
This commit is contained in:
parent
37626d8f45
commit
71130bd26b
@ -328,6 +328,18 @@ namespace VEPROMS.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("False")]
|
||||
public bool cbShwRplWrdsColor {
|
||||
get {
|
||||
return ((bool)(this["cbShwRplWrdsColor"]));
|
||||
}
|
||||
set {
|
||||
this["cbShwRplWrdsColor"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("False")]
|
||||
|
@ -80,6 +80,11 @@
|
||||
<Setting Name="UpdateSettings" Type="System.Boolean" Scope="User">
|
||||
<Value Profile="(Default)">True</Value>
|
||||
</Setting>
|
||||
|
||||
<Setting Name="cbShwRplWrdsColor" Type="System.Boolean" Scope="User">
|
||||
<Value Profile="(Default)">False</Value>
|
||||
</Setting>
|
||||
|
||||
<Setting Name="PasteNoReturns" Type="System.Boolean" Scope="User">
|
||||
<Value Profile="(Default)">False</Value>
|
||||
</Setting>
|
||||
|
@ -69,7 +69,7 @@ namespace VEPROMS
|
||||
DisplayText dt = new DisplayText(val, new VE_Font("Arial", 10, E_Style.None, 12), false);
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append(@"{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset2 Arial;}");
|
||||
sb.Append(@"{\f1\fnil\fcharset0 Arial;}}{\colortbl ;\red255\green0\blue0;}"); //C2017-036 changed to just Arial because Microsoft removed Arial Unicode MS with Word16
|
||||
sb.Append(@"{\f1\fnil\fcharset0 Arial;}}{\colortbl ;\red255\green0\blue0;\red0\green0\blue255;}"); //C2017-036 changed to just Arial because Microsoft removed Arial Unicode MS with Word16
|
||||
sb.Append(@"\viewkind4\uc1\pard\sl-240\slmult0\fs" + (int)(this.Font.SizeInPoints*2) + " " + dt.StartText + @"}");
|
||||
tb.Rtf = sb.ToString();
|
||||
tb.Location = new Point((int)fld.x * 2, (int)fld.y * 2);
|
||||
|
@ -77,7 +77,7 @@ namespace VEPROMS
|
||||
DisplayText dt = new DisplayText(val, new VE_Font("Arial", 10, E_Style.None, 12), false);
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append(@"{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset2 Arial;}");
|
||||
sb.Append(@"{\f1\fnil\fcharset0 Arial;}}{\colortbl ;\red255\green0\blue0;}"); // C2017-036 Microsoft removed Arial Unicode MS with Word16
|
||||
sb.Append(@"{\f1\fnil\fcharset0 Arial;}}{\colortbl ;\red255\green0\blue0;\red0\green0\blue255;}"); // C2017-036 Microsoft removed Arial Unicode MS with Word16
|
||||
sb.Append(@"\viewkind4\uc1\pard\sl-240\slmult0\fs" + (int)(this.Font.SizeInPoints*2) + " " + dt.StartText + @"}");
|
||||
tb.Rtf = sb.ToString();
|
||||
tb.Location = new Point((int)fld.x * 2, (int)fld.y * 2);
|
||||
|
@ -88,6 +88,12 @@ namespace VEPROMS
|
||||
this.btnFormat = new DevComponents.DotNetBar.ButtonX();
|
||||
this.btnGeneral = new DevComponents.DotNetBar.ButtonX();
|
||||
this.tcSectionProp = new DevComponents.DotNetBar.TabControl();
|
||||
this.tcpFormat = new DevComponents.DotNetBar.TabControlPanel();
|
||||
this.ppCbShowRplWords = new System.Windows.Forms.CheckBox();
|
||||
this.rbWordSect = new DevComponents.DotNetBar.Controls.CheckBoxX();
|
||||
this.rbStepSect = new DevComponents.DotNetBar.Controls.CheckBoxX();
|
||||
this.ppGpbxSignoffCheckoff = new DevComponents.DotNetBar.Controls.GroupPanel();
|
||||
this.tiFormat = new DevComponents.DotNetBar.TabItem(this.components);
|
||||
this.tcpGeneral = new DevComponents.DotNetBar.TabControlPanel();
|
||||
this.ppCbAutoIndent = new System.Windows.Forms.CheckBox();
|
||||
this.ppCbEditableData = new System.Windows.Forms.CheckBox();
|
||||
@ -95,11 +101,6 @@ namespace VEPROMS
|
||||
this.ppSectNumberStpRTB = new Volian.Controls.Library.StepRTB(this.components);
|
||||
this.ppSectTitleStpRTB = new Volian.Controls.Library.StepRTB(this.components);
|
||||
this.tiGeneral = new DevComponents.DotNetBar.TabItem(this.components);
|
||||
this.tcpFormat = new DevComponents.DotNetBar.TabControlPanel();
|
||||
this.rbWordSect = new DevComponents.DotNetBar.Controls.CheckBoxX();
|
||||
this.rbStepSect = new DevComponents.DotNetBar.Controls.CheckBoxX();
|
||||
this.ppGpbxSignoffCheckoff = new DevComponents.DotNetBar.Controls.GroupPanel();
|
||||
this.tiFormat = new DevComponents.DotNetBar.TabItem(this.components);
|
||||
this.tcpAutomation = new DevComponents.DotNetBar.TabControlPanel();
|
||||
this.ppCbNoDuplexFoldout = new System.Windows.Forms.CheckBox();
|
||||
this.gpTOC = new DevComponents.DotNetBar.Controls.GroupPanel();
|
||||
@ -120,9 +121,9 @@ namespace VEPROMS
|
||||
this.panSectBtns.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.tcSectionProp)).BeginInit();
|
||||
this.tcSectionProp.SuspendLayout();
|
||||
this.tcpGeneral.SuspendLayout();
|
||||
this.tcpFormat.SuspendLayout();
|
||||
this.ppGpbxSignoffCheckoff.SuspendLayout();
|
||||
this.tcpGeneral.SuspendLayout();
|
||||
this.tcpAutomation.SuspendLayout();
|
||||
this.gpTOC.SuspendLayout();
|
||||
this.grpLnkEnh.SuspendLayout();
|
||||
@ -871,8 +872,8 @@ namespace VEPROMS
|
||||
this.tcSectionProp.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.tcSectionProp.BackColor = System.Drawing.Color.Transparent;
|
||||
this.tcSectionProp.CanReorderTabs = true;
|
||||
this.tcSectionProp.Controls.Add(this.tcpGeneral);
|
||||
this.tcSectionProp.Controls.Add(this.tcpFormat);
|
||||
this.tcSectionProp.Controls.Add(this.tcpGeneral);
|
||||
this.tcSectionProp.Controls.Add(this.tcpAutomation);
|
||||
this.tcSectionProp.Controls.Add(this.tcpLibDoc);
|
||||
this.tcSectionProp.Controls.Add(this.tabControlPanel4);
|
||||
@ -892,6 +893,151 @@ namespace VEPROMS
|
||||
this.tcSectionProp.TabsVisible = false;
|
||||
this.tcSectionProp.Text = "tabControl2";
|
||||
//
|
||||
// tcpFormat
|
||||
//
|
||||
this.tcpFormat.Controls.Add(this.ppCbShowRplWords);
|
||||
this.tcpFormat.Controls.Add(this.cbIsFoldoutSection);
|
||||
this.tcpFormat.Controls.Add(this.ppCbDefaultStepSection);
|
||||
this.tcpFormat.Controls.Add(this.cbKeepWordDocMargins);
|
||||
this.tcpFormat.Controls.Add(this.ppLblDefaultNumColumns);
|
||||
this.tcpFormat.Controls.Add(this.ppLblDefPaginationStyle);
|
||||
this.tcpFormat.Controls.Add(this.ppBtnDefaultNumColumns);
|
||||
this.tcpFormat.Controls.Add(this.ppBtnDefaultPaginationStyle);
|
||||
this.tcpFormat.Controls.Add(this.rbWordSect);
|
||||
this.tcpFormat.Controls.Add(this.rbStepSect);
|
||||
this.tcpFormat.Controls.Add(this.ppGpbxSignoffCheckoff);
|
||||
this.tcpFormat.Controls.Add(this.lblFormat);
|
||||
this.tcpFormat.Controls.Add(this.ppCmbxNumColumns);
|
||||
this.tcpFormat.Controls.Add(this.lblColumns);
|
||||
this.tcpFormat.Controls.Add(this.ppCmbxSectPagination);
|
||||
this.tcpFormat.Controls.Add(this.lblSectType);
|
||||
this.tcpFormat.Controls.Add(this.ppCmbxStyleSectionType);
|
||||
this.tcpFormat.Controls.Add(this.lblPagination);
|
||||
this.tcpFormat.Controls.Add(this.ppBtnDefaultFmt);
|
||||
this.tcpFormat.Controls.Add(this.ppCmbxFormat);
|
||||
this.tcpFormat.Controls.Add(this.ppLblFormatDefault);
|
||||
this.tcpFormat.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.tcpFormat.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tcpFormat.Location = new System.Drawing.Point(0, 22);
|
||||
this.tcpFormat.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.tcpFormat.Name = "tcpFormat";
|
||||
this.tcpFormat.Padding = new System.Windows.Forms.Padding(1);
|
||||
this.tcpFormat.Size = new System.Drawing.Size(557, 318);
|
||||
this.tcpFormat.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(253)))), ((int)(((byte)(253)))), ((int)(((byte)(254)))));
|
||||
this.tcpFormat.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(157)))), ((int)(((byte)(188)))), ((int)(((byte)(227)))));
|
||||
this.tcpFormat.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
|
||||
this.tcpFormat.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(165)))), ((int)(((byte)(199)))));
|
||||
this.tcpFormat.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right)
|
||||
| DevComponents.DotNetBar.eBorderSide.Bottom)));
|
||||
this.tcpFormat.Style.GradientAngle = 90;
|
||||
this.tcpFormat.TabIndex = 2;
|
||||
this.tcpFormat.TabItem = this.tiFormat;
|
||||
this.tcpFormat.Enter += new System.EventHandler(this.tabpage_Enter);
|
||||
//
|
||||
// ppCbShowRplWords
|
||||
//
|
||||
this.ppCbShowRplWords.AutoSize = true;
|
||||
this.ppCbShowRplWords.BackColor = System.Drawing.Color.Transparent;
|
||||
this.ppCbShowRplWords.Location = new System.Drawing.Point(272, 252);
|
||||
this.ppCbShowRplWords.Name = "ppCbShowRplWords";
|
||||
this.ppCbShowRplWords.Size = new System.Drawing.Size(130, 17);
|
||||
this.ppCbShowRplWords.TabIndex = 62;
|
||||
this.ppCbShowRplWords.Text = "Show Replace Words";
|
||||
this.ppCbShowRplWords.UseVisualStyleBackColor = false;
|
||||
this.ppCbShowRplWords.CheckedChanged += new System.EventHandler(this.ppCbShowRplWords_CheckedChanged);
|
||||
//
|
||||
// rbWordSect
|
||||
//
|
||||
this.rbWordSect.BackColor = System.Drawing.Color.Transparent;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.rbWordSect.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.rbWordSect.CheckBoxStyle = DevComponents.DotNetBar.eCheckBoxStyle.RadioButton;
|
||||
this.rbWordSect.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.rbWordSect.Location = new System.Drawing.Point(247, 60);
|
||||
this.rbWordSect.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.rbWordSect.Name = "rbWordSect";
|
||||
this.rbWordSect.Size = new System.Drawing.Size(88, 19);
|
||||
this.rbWordSect.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.rbWordSect.TabIndex = 23;
|
||||
this.rbWordSect.TabStop = false;
|
||||
this.rbWordSect.Text = "Word Section";
|
||||
//
|
||||
// rbStepSect
|
||||
//
|
||||
this.rbStepSect.BackColor = System.Drawing.Color.Transparent;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.rbStepSect.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.rbStepSect.CheckBoxStyle = DevComponents.DotNetBar.eCheckBoxStyle.RadioButton;
|
||||
this.rbStepSect.Checked = true;
|
||||
this.rbStepSect.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.rbStepSect.CheckValue = "Y";
|
||||
this.rbStepSect.FocusCuesEnabled = false;
|
||||
this.rbStepSect.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.rbStepSect.Location = new System.Drawing.Point(138, 60);
|
||||
this.rbStepSect.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.rbStepSect.Name = "rbStepSect";
|
||||
this.rbStepSect.Size = new System.Drawing.Size(86, 19);
|
||||
this.rbStepSect.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.rbStepSect.TabIndex = 22;
|
||||
this.rbStepSect.TabStop = false;
|
||||
this.rbStepSect.Text = "Step Section";
|
||||
this.rbStepSect.CheckedChanged += new System.EventHandler(this.rbStepSect_CheckedChanged);
|
||||
//
|
||||
// ppGpbxSignoffCheckoff
|
||||
//
|
||||
this.ppGpbxSignoffCheckoff.BackColor = System.Drawing.Color.Transparent;
|
||||
this.ppGpbxSignoffCheckoff.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.ppGpbxSignoffCheckoff.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
|
||||
this.ppGpbxSignoffCheckoff.Controls.Add(this.ppCmbxCheckoffHeading);
|
||||
this.ppGpbxSignoffCheckoff.Controls.Add(this.lblCheckoffType);
|
||||
this.ppGpbxSignoffCheckoff.Controls.Add(this.ppCmbxCheckoffType);
|
||||
this.ppGpbxSignoffCheckoff.Controls.Add(this.lblCheckoffHeading);
|
||||
this.ppGpbxSignoffCheckoff.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.ppGpbxSignoffCheckoff.Location = new System.Drawing.Point(272, 123);
|
||||
this.ppGpbxSignoffCheckoff.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.ppGpbxSignoffCheckoff.Name = "ppGpbxSignoffCheckoff";
|
||||
this.ppGpbxSignoffCheckoff.Size = new System.Drawing.Size(206, 117);
|
||||
//
|
||||
//
|
||||
//
|
||||
this.ppGpbxSignoffCheckoff.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2;
|
||||
this.ppGpbxSignoffCheckoff.Style.BackColorGradientAngle = 90;
|
||||
this.ppGpbxSignoffCheckoff.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
|
||||
this.ppGpbxSignoffCheckoff.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.ppGpbxSignoffCheckoff.Style.BorderBottomWidth = 1;
|
||||
this.ppGpbxSignoffCheckoff.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.ppGpbxSignoffCheckoff.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.ppGpbxSignoffCheckoff.Style.BorderLeftWidth = 1;
|
||||
this.ppGpbxSignoffCheckoff.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.ppGpbxSignoffCheckoff.Style.BorderRightWidth = 1;
|
||||
this.ppGpbxSignoffCheckoff.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.ppGpbxSignoffCheckoff.Style.BorderTopWidth = 1;
|
||||
this.ppGpbxSignoffCheckoff.Style.CornerDiameter = 4;
|
||||
this.ppGpbxSignoffCheckoff.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
|
||||
this.ppGpbxSignoffCheckoff.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center;
|
||||
this.ppGpbxSignoffCheckoff.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
|
||||
this.ppGpbxSignoffCheckoff.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.ppGpbxSignoffCheckoff.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.ppGpbxSignoffCheckoff.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.ppGpbxSignoffCheckoff.TabIndex = 51;
|
||||
this.ppGpbxSignoffCheckoff.Text = "Signoffs / Checkoffs";
|
||||
//
|
||||
// tiFormat
|
||||
//
|
||||
this.tiFormat.AttachedControl = this.tcpFormat;
|
||||
this.tiFormat.Name = "tiFormat";
|
||||
this.tiFormat.Text = "Format";
|
||||
//
|
||||
// tcpGeneral
|
||||
//
|
||||
this.tcpGeneral.Controls.Add(this.ppCbAutoIndent);
|
||||
@ -1046,138 +1192,6 @@ namespace VEPROMS
|
||||
this.tiGeneral.Name = "tiGeneral";
|
||||
this.tiGeneral.Text = "General";
|
||||
//
|
||||
// tcpFormat
|
||||
//
|
||||
this.tcpFormat.Controls.Add(this.cbIsFoldoutSection);
|
||||
this.tcpFormat.Controls.Add(this.ppCbDefaultStepSection);
|
||||
this.tcpFormat.Controls.Add(this.cbKeepWordDocMargins);
|
||||
this.tcpFormat.Controls.Add(this.ppLblDefaultNumColumns);
|
||||
this.tcpFormat.Controls.Add(this.ppLblDefPaginationStyle);
|
||||
this.tcpFormat.Controls.Add(this.ppBtnDefaultNumColumns);
|
||||
this.tcpFormat.Controls.Add(this.ppBtnDefaultPaginationStyle);
|
||||
this.tcpFormat.Controls.Add(this.rbWordSect);
|
||||
this.tcpFormat.Controls.Add(this.rbStepSect);
|
||||
this.tcpFormat.Controls.Add(this.ppGpbxSignoffCheckoff);
|
||||
this.tcpFormat.Controls.Add(this.lblFormat);
|
||||
this.tcpFormat.Controls.Add(this.ppCmbxNumColumns);
|
||||
this.tcpFormat.Controls.Add(this.lblColumns);
|
||||
this.tcpFormat.Controls.Add(this.ppCmbxSectPagination);
|
||||
this.tcpFormat.Controls.Add(this.lblSectType);
|
||||
this.tcpFormat.Controls.Add(this.ppCmbxStyleSectionType);
|
||||
this.tcpFormat.Controls.Add(this.lblPagination);
|
||||
this.tcpFormat.Controls.Add(this.ppBtnDefaultFmt);
|
||||
this.tcpFormat.Controls.Add(this.ppCmbxFormat);
|
||||
this.tcpFormat.Controls.Add(this.ppLblFormatDefault);
|
||||
this.tcpFormat.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.tcpFormat.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tcpFormat.Location = new System.Drawing.Point(0, 22);
|
||||
this.tcpFormat.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.tcpFormat.Name = "tcpFormat";
|
||||
this.tcpFormat.Padding = new System.Windows.Forms.Padding(1);
|
||||
this.tcpFormat.Size = new System.Drawing.Size(557, 318);
|
||||
this.tcpFormat.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(253)))), ((int)(((byte)(253)))), ((int)(((byte)(254)))));
|
||||
this.tcpFormat.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(157)))), ((int)(((byte)(188)))), ((int)(((byte)(227)))));
|
||||
this.tcpFormat.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
|
||||
this.tcpFormat.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(165)))), ((int)(((byte)(199)))));
|
||||
this.tcpFormat.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right)
|
||||
| DevComponents.DotNetBar.eBorderSide.Bottom)));
|
||||
this.tcpFormat.Style.GradientAngle = 90;
|
||||
this.tcpFormat.TabIndex = 2;
|
||||
this.tcpFormat.TabItem = this.tiFormat;
|
||||
this.tcpFormat.Enter += new System.EventHandler(this.tabpage_Enter);
|
||||
//
|
||||
// rbWordSect
|
||||
//
|
||||
this.rbWordSect.BackColor = System.Drawing.Color.Transparent;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.rbWordSect.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.rbWordSect.CheckBoxStyle = DevComponents.DotNetBar.eCheckBoxStyle.RadioButton;
|
||||
this.rbWordSect.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.rbWordSect.Location = new System.Drawing.Point(247, 60);
|
||||
this.rbWordSect.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.rbWordSect.Name = "rbWordSect";
|
||||
this.rbWordSect.Size = new System.Drawing.Size(88, 19);
|
||||
this.rbWordSect.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.rbWordSect.TabIndex = 23;
|
||||
this.rbWordSect.TabStop = false;
|
||||
this.rbWordSect.Text = "Word Section";
|
||||
//
|
||||
// rbStepSect
|
||||
//
|
||||
this.rbStepSect.BackColor = System.Drawing.Color.Transparent;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.rbStepSect.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.rbStepSect.CheckBoxStyle = DevComponents.DotNetBar.eCheckBoxStyle.RadioButton;
|
||||
this.rbStepSect.Checked = true;
|
||||
this.rbStepSect.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.rbStepSect.CheckValue = "Y";
|
||||
this.rbStepSect.FocusCuesEnabled = false;
|
||||
this.rbStepSect.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.rbStepSect.Location = new System.Drawing.Point(138, 60);
|
||||
this.rbStepSect.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.rbStepSect.Name = "rbStepSect";
|
||||
this.rbStepSect.Size = new System.Drawing.Size(86, 19);
|
||||
this.rbStepSect.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.rbStepSect.TabIndex = 22;
|
||||
this.rbStepSect.TabStop = false;
|
||||
this.rbStepSect.Text = "Step Section";
|
||||
this.rbStepSect.CheckedChanged += new System.EventHandler(this.rbStepSect_CheckedChanged);
|
||||
//
|
||||
// ppGpbxSignoffCheckoff
|
||||
//
|
||||
this.ppGpbxSignoffCheckoff.BackColor = System.Drawing.Color.Transparent;
|
||||
this.ppGpbxSignoffCheckoff.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.ppGpbxSignoffCheckoff.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
|
||||
this.ppGpbxSignoffCheckoff.Controls.Add(this.ppCmbxCheckoffHeading);
|
||||
this.ppGpbxSignoffCheckoff.Controls.Add(this.lblCheckoffType);
|
||||
this.ppGpbxSignoffCheckoff.Controls.Add(this.ppCmbxCheckoffType);
|
||||
this.ppGpbxSignoffCheckoff.Controls.Add(this.lblCheckoffHeading);
|
||||
this.ppGpbxSignoffCheckoff.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.ppGpbxSignoffCheckoff.Location = new System.Drawing.Point(272, 123);
|
||||
this.ppGpbxSignoffCheckoff.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.ppGpbxSignoffCheckoff.Name = "ppGpbxSignoffCheckoff";
|
||||
this.ppGpbxSignoffCheckoff.Size = new System.Drawing.Size(206, 117);
|
||||
//
|
||||
//
|
||||
//
|
||||
this.ppGpbxSignoffCheckoff.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2;
|
||||
this.ppGpbxSignoffCheckoff.Style.BackColorGradientAngle = 90;
|
||||
this.ppGpbxSignoffCheckoff.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
|
||||
this.ppGpbxSignoffCheckoff.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.ppGpbxSignoffCheckoff.Style.BorderBottomWidth = 1;
|
||||
this.ppGpbxSignoffCheckoff.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.ppGpbxSignoffCheckoff.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.ppGpbxSignoffCheckoff.Style.BorderLeftWidth = 1;
|
||||
this.ppGpbxSignoffCheckoff.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.ppGpbxSignoffCheckoff.Style.BorderRightWidth = 1;
|
||||
this.ppGpbxSignoffCheckoff.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.ppGpbxSignoffCheckoff.Style.BorderTopWidth = 1;
|
||||
this.ppGpbxSignoffCheckoff.Style.CornerDiameter = 4;
|
||||
this.ppGpbxSignoffCheckoff.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
|
||||
this.ppGpbxSignoffCheckoff.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center;
|
||||
this.ppGpbxSignoffCheckoff.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
|
||||
this.ppGpbxSignoffCheckoff.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.ppGpbxSignoffCheckoff.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.ppGpbxSignoffCheckoff.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.ppGpbxSignoffCheckoff.TabIndex = 51;
|
||||
this.ppGpbxSignoffCheckoff.Text = "Signoffs / Checkoffs";
|
||||
//
|
||||
// tiFormat
|
||||
//
|
||||
this.tiFormat.AttachedControl = this.tcpFormat;
|
||||
this.tiFormat.Name = "tiFormat";
|
||||
this.tiFormat.Text = "Format";
|
||||
//
|
||||
// tcpAutomation
|
||||
//
|
||||
this.tcpAutomation.Controls.Add(this.ppCbNoDuplexFoldout);
|
||||
@ -1465,7 +1479,7 @@ namespace VEPROMS
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.CaptionFont = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.ClientSize = new System.Drawing.Size(730, 398);
|
||||
this.ClientSize = new System.Drawing.Size(722, 390);
|
||||
this.ControlBox = false;
|
||||
this.Controls.Add(this.tcSectionProp);
|
||||
this.Controls.Add(this.panSectBtns);
|
||||
@ -1489,12 +1503,12 @@ namespace VEPROMS
|
||||
this.panSectBtns.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.tcSectionProp)).EndInit();
|
||||
this.tcSectionProp.ResumeLayout(false);
|
||||
this.tcpGeneral.ResumeLayout(false);
|
||||
this.tcpGeneral.PerformLayout();
|
||||
this.tcpFormat.ResumeLayout(false);
|
||||
this.tcpFormat.PerformLayout();
|
||||
this.ppGpbxSignoffCheckoff.ResumeLayout(false);
|
||||
this.ppGpbxSignoffCheckoff.PerformLayout();
|
||||
this.tcpGeneral.ResumeLayout(false);
|
||||
this.tcpGeneral.PerformLayout();
|
||||
this.tcpAutomation.ResumeLayout(false);
|
||||
this.tcpAutomation.PerformLayout();
|
||||
this.gpTOC.ResumeLayout(false);
|
||||
@ -1598,5 +1612,6 @@ namespace VEPROMS
|
||||
private DevComponents.DotNetBar.ButtonX ppBtnConvertToDocX;
|
||||
private System.Windows.Forms.CheckBox cbIsFoldoutSection;
|
||||
private System.Windows.Forms.CheckBox ppCbNoDuplexFoldout;
|
||||
private System.Windows.Forms.CheckBox ppCbShowRplWords;
|
||||
}
|
||||
}
|
||||
|
@ -523,6 +523,23 @@ namespace VEPROMS
|
||||
else
|
||||
ppCbDefaultStepSection.Text = "Make this the Default Step Section";
|
||||
}
|
||||
// Show Replace Words
|
||||
ppCbShowRplWords.Visible = false;
|
||||
if (_isStepSection && _SectionConfig.MySection.MySectionInfo.MyActiveParent.IsProcedure)
|
||||
{
|
||||
ppCbShowRplWords.Visible = true;
|
||||
ppCbShowRplWords.Checked = _SectionConfig.Section_ShwRplWords == "Y";
|
||||
// Use checkbox text to clarify what is case for this section, i.e. is it already
|
||||
// the default or can it be set. Note that this is used when printing of page numbers
|
||||
// that use the 'WithSteps' numbering sequence.
|
||||
if (_SectionConfig.Section_OriginalSteps == "Y")
|
||||
{
|
||||
ppCbShowRplWords.Text = "Show Replace Words"; // C2020-021 add the word "the"
|
||||
_isDefaultStepSection = true;
|
||||
}
|
||||
else
|
||||
ppCbShowRplWords.Text = "Show Replace Words";
|
||||
}
|
||||
|
||||
// if the parent has enhanced documents (and is not an enhanced document, i.e. the test
|
||||
// ed.Type != 0 proves that) put up the group panel on the automation tab that allows for setting of
|
||||
@ -1211,6 +1228,7 @@ namespace VEPROMS
|
||||
ppGpbxSignoffCheckoff.Visible = _isStepSection;
|
||||
cbKeepWordDocMargins.Visible = !_isStepSection;
|
||||
ppCbDefaultStepSection.Visible = _isStepSection;
|
||||
ppCbShowRplWords.Visible = _isStepSection;
|
||||
}
|
||||
|
||||
private void rbStepSect_CheckedChanged(object sender, EventArgs e)
|
||||
@ -1380,6 +1398,13 @@ namespace VEPROMS
|
||||
_SectionConfig.Section_OriginalSteps = ppCbDefaultStepSection.Checked ? "Y" : "N";
|
||||
}
|
||||
}
|
||||
//private void ppCbShowRplWords_CheckedChanged(object sender, EventArgs e)
|
||||
//{
|
||||
// if (!_Initializing)
|
||||
// {
|
||||
// _SectionConfig.Section_OriginalSteps = ppCbShowRplWords.Checked ? "Y" : "N";
|
||||
// }
|
||||
//}
|
||||
private void ppBtnConvertToDocX_Click(object sender, EventArgs e)
|
||||
{
|
||||
// Get Document as file
|
||||
@ -1448,6 +1473,14 @@ namespace VEPROMS
|
||||
_SectionConfig.Section_DontIncludeDuplexFoldout = ppCbNoDuplexFoldout.Checked;
|
||||
}
|
||||
|
||||
private void ppCbShowRplWords_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (!_Initializing)
|
||||
{
|
||||
_SectionConfig.Section_ShwRplWords = ppCbShowRplWords.Checked ? "Y" : "N";
|
||||
}
|
||||
}
|
||||
|
||||
//private void ppBtnDefaultPrintSize_Click(object sender, EventArgs e)
|
||||
//{
|
||||
// // Get the parent setting
|
||||
|
@ -142,6 +142,9 @@ When a format other than the inherited one is selected, a button labeled "Defaul
|
||||
Pressing the "Default" button will revert back to using the inherited format for this section.
|
||||
</value>
|
||||
</data>
|
||||
<metadata name="sectionConfigBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>128, 18</value>
|
||||
</metadata>
|
||||
<data name="cbIsFoldoutSection.SuperTooltip" xml:space="preserve">
|
||||
<value>If the format supports duplex Foldouts:
|
||||
|
||||
|
@ -77,8 +77,10 @@ namespace VEPROMS
|
||||
this.btnReset = new DevComponents.DotNetBar.ButtonX();
|
||||
this.superTooltip1 = new DevComponents.DotNetBar.SuperTooltip();
|
||||
this.cbOTRemember = new DevComponents.DotNetBar.Controls.CheckBoxX();
|
||||
this.cbShwRplWrdsColor = new DevComponents.DotNetBar.Controls.CheckBoxX();
|
||||
this.cbOTAutoOpen = new DevComponents.DotNetBar.Controls.CheckBoxX();
|
||||
this.gpOpenTabs = new DevComponents.DotNetBar.Controls.GroupPanel();
|
||||
this.gpShwRplWords = new DevComponents.DotNetBar.Controls.GroupPanel();
|
||||
this.gpSystemColor.SuspendLayout();
|
||||
this.panButtons.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.tcSysOpts)).BeginInit();
|
||||
@ -95,6 +97,7 @@ namespace VEPROMS
|
||||
this.gpTransRangeColor.SuspendLayout();
|
||||
this.gpPropPageStyle.SuspendLayout();
|
||||
this.gpOpenTabs.SuspendLayout();
|
||||
this.gpShwRplWords.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// btnCancel
|
||||
@ -301,6 +304,7 @@ namespace VEPROMS
|
||||
// tabControlPanel3
|
||||
//
|
||||
this.tabControlPanel3.Controls.Add(this.gpOpenTabs);
|
||||
this.tabControlPanel3.Controls.Add(this.gpShwRplWords);
|
||||
this.tabControlPanel3.Controls.Add(this.grPanUCFImpOpt);
|
||||
this.tabControlPanel3.Controls.Add(this.gpVisioPath);
|
||||
this.tabControlPanel3.Controls.Add(this.gpSeparateWindows);
|
||||
@ -1120,6 +1124,20 @@ namespace VEPROMS
|
||||
this.cbOTRemember.Text = "Remember Setting";
|
||||
this.cbOTRemember.CheckedChanged += new System.EventHandler(this.cbOTRemember_CheckedChanged);
|
||||
//
|
||||
// cbShwRplWrdsColor
|
||||
//
|
||||
//
|
||||
this.cbShwRplWrdsColor.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.cbShwRplWrdsColor.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.cbShwRplWrdsColor.Location = new System.Drawing.Point(8, 5);
|
||||
this.cbShwRplWrdsColor.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.cbShwRplWrdsColor.Name = "cbShwRplWrdsColor";
|
||||
this.cbShwRplWrdsColor.Size = new System.Drawing.Size(119, 19);
|
||||
this.cbShwRplWrdsColor.TabIndex = 9;
|
||||
this.cbShwRplWrdsColor.Text = "Color Replace Words";
|
||||
this.cbShwRplWrdsColor.CheckedChanged += new System.EventHandler(this.cbShwRplWrdsColor_CheckedChanged);
|
||||
//this.cbShwRplWrdsColor.Checked;
|
||||
//
|
||||
// cbOTAutoOpen
|
||||
//
|
||||
//
|
||||
@ -1179,6 +1197,48 @@ namespace VEPROMS
|
||||
this.gpOpenTabs.TabIndex = 13;
|
||||
this.gpOpenTabs.Text = "Open Tabs";
|
||||
//
|
||||
// gpShwRplWords
|
||||
//
|
||||
this.gpShwRplWords.BackColor = System.Drawing.Color.Transparent;
|
||||
this.gpShwRplWords.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.gpShwRplWords.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
|
||||
this.gpShwRplWords.Controls.Add(this.cbShwRplWrdsColor);
|
||||
this.gpShwRplWords.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.gpShwRplWords.Location = new System.Drawing.Point(462, 165);
|
||||
this.gpShwRplWords.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.gpShwRplWords.Name = "gpShwRplWords";
|
||||
this.gpShwRplWords.Size = new System.Drawing.Size(139, 72);
|
||||
//
|
||||
//
|
||||
//
|
||||
this.gpShwRplWords.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2;
|
||||
this.gpShwRplWords.Style.BackColorGradientAngle = 90;
|
||||
this.gpShwRplWords.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
|
||||
this.gpShwRplWords.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.gpShwRplWords.Style.BorderBottomWidth = 1;
|
||||
this.gpShwRplWords.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.gpShwRplWords.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.gpShwRplWords.Style.BorderLeftWidth = 1;
|
||||
this.gpShwRplWords.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.gpShwRplWords.Style.BorderRightWidth = 1;
|
||||
this.gpShwRplWords.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.gpShwRplWords.Style.BorderTopWidth = 1;
|
||||
this.gpShwRplWords.Style.CornerDiameter = 4;
|
||||
this.gpShwRplWords.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
|
||||
this.gpShwRplWords.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center;
|
||||
this.gpShwRplWords.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
|
||||
this.gpShwRplWords.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.gpShwRplWords.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.gpShwRplWords.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.gpShwRplWords.TabIndex = 13;
|
||||
this.gpShwRplWords.Text = "Replace Words";
|
||||
//
|
||||
// frmSysOptions
|
||||
//
|
||||
this.AcceptButton = this.btnOK;
|
||||
@ -1214,6 +1274,8 @@ namespace VEPROMS
|
||||
this.gpTransRangeColor.ResumeLayout(false);
|
||||
this.gpPropPageStyle.ResumeLayout(false);
|
||||
this.gpOpenTabs.ResumeLayout(false);
|
||||
this.gpShwRplWords.ResumeLayout(false);
|
||||
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
@ -1268,7 +1330,9 @@ namespace VEPROMS
|
||||
private DevComponents.DotNetBar.Controls.CheckBoxX cbUCFLNotUsed;
|
||||
private DevComponents.DotNetBar.Controls.CheckBoxX cbUCFIgnore;
|
||||
private DevComponents.DotNetBar.Controls.GroupPanel gpOpenTabs;
|
||||
private DevComponents.DotNetBar.Controls.GroupPanel gpShwRplWords;
|
||||
private DevComponents.DotNetBar.Controls.CheckBoxX cbOTRemember;
|
||||
private DevComponents.DotNetBar.Controls.CheckBoxX cbOTAutoOpen;
|
||||
private DevComponents.DotNetBar.Controls.CheckBoxX cbShwRplWrdsColor;
|
||||
}
|
||||
}
|
||||
|
@ -68,6 +68,7 @@ namespace VEPROMS
|
||||
colorPickerButton1.SelectedColor = Settings.Default.TransitionRangeColor;
|
||||
cbAnnotationPopup.Checked = Settings.Default.AutoPopUpAnnotations;
|
||||
cbStepTypeToolTip.Checked = Settings.Default.StepTypeToolTip;
|
||||
cbShwRplWrdsColor.Checked = Settings.Default.cbShwRplWrdsColor;
|
||||
cbTVExpand.Checked = Settings.Default.SaveTreeviewExpanded;
|
||||
cbPasteNoReturns.Checked = Settings.Default.PasteNoReturns;
|
||||
cbPastePlainText.Checked = Settings.Default.PastePlainText;
|
||||
@ -180,6 +181,7 @@ namespace VEPROMS
|
||||
private Color ss_TransRangeColor;
|
||||
private bool ss_PopUPAnnotations;
|
||||
private bool ss_StepTypeToolTip;
|
||||
private bool ss_cbShwRplWrdsColor;
|
||||
private bool ss_SaveTreeviewExpanded;
|
||||
private bool ss_PasteNoReturns;
|
||||
private bool ss_PastePlainText;
|
||||
@ -195,6 +197,8 @@ namespace VEPROMS
|
||||
ss_TransRangeColor = Settings.Default.TransitionRangeColor;
|
||||
ss_PopUPAnnotations = Settings.Default.AutoPopUpAnnotations;
|
||||
ss_StepTypeToolTip = Settings.Default.StepTypeToolTip;
|
||||
|
||||
ss_cbShwRplWrdsColor = Settings.Default.cbShwRplWrdsColor;
|
||||
ss_SaveTreeviewExpanded = Settings.Default.SaveTreeviewExpanded;
|
||||
ss_PasteNoReturns = Settings.Default.PasteNoReturns;
|
||||
ss_PastePlainText = Settings.Default.PastePlainText;
|
||||
@ -211,6 +215,7 @@ namespace VEPROMS
|
||||
Settings.Default.TransitionRangeColor = ss_TransRangeColor;
|
||||
Settings.Default.AutoPopUpAnnotations = ss_PopUPAnnotations;
|
||||
Settings.Default.StepTypeToolTip = ss_StepTypeToolTip;
|
||||
Settings.Default.cbShwRplWrdsColor = ss_cbShwRplWrdsColor;
|
||||
Settings.Default.SaveTreeviewExpanded = ss_SaveTreeviewExpanded;
|
||||
Settings.Default.PasteNoReturns = ss_PasteNoReturns;
|
||||
Settings.Default.PastePlainText = ss_PastePlainText;
|
||||
@ -344,10 +349,16 @@ namespace VEPROMS
|
||||
Settings.Default.UCFImportOpt = 4;
|
||||
}
|
||||
}
|
||||
|
||||
private void cbOTRemember_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
cbOTAutoOpen.Enabled = cbOTAutoOpen.Visible = cbOTRemember.Checked;
|
||||
cbOTAutoOpen.Enabled = cbOTAutoOpen.Visible = cbShwRplWrdsColor.Checked;
|
||||
}
|
||||
private void cbShwRplWrdsColor_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
Settings.Default.cbShwRplWrdsColor = cbShwRplWrdsColor.Checked;
|
||||
VlnSettings.cbShwRplWrdsColor = cbShwRplWrdsColor.Checked;
|
||||
Properties.Settings.Default.cbShwRplWrdsColor = cbShwRplWrdsColor.Checked; // update setting value
|
||||
Properties.Settings.Default.Save(); // save settings
|
||||
}
|
||||
}
|
||||
}
|
@ -524,6 +524,7 @@ namespace VEPROMS
|
||||
this.Activated += new EventHandler(frmVEPROMS_Activated);
|
||||
|
||||
VlnSettings.StepTypeToolType = Settings.Default.StepTypeToolTip;
|
||||
VlnSettings.cbShwRplWrdsColor = Settings.Default.cbShwRplWrdsColor;
|
||||
displayLibDocs.PrintRequest += new DisplayLibDocEvent(displayLibDocs_PrintRequest);
|
||||
ContentInfo.InfoChanged += new ContentInfoEvent(RefreshDisplayHistory);
|
||||
AnnotationInfo.InfoChanged += new AnnotationInfoEvent(RefreshDisplayHistory);
|
||||
@ -816,6 +817,11 @@ namespace VEPROMS
|
||||
set { frmVEPROMS._ErrorLogFileName = value; }
|
||||
}
|
||||
|
||||
public static bool colorReplaceWords()
|
||||
{
|
||||
return Properties.Settings.Default.cbShwRplWrdsColor;
|
||||
}
|
||||
|
||||
static bool ChangeLogFileName(string AppenderName, string NewFilename)
|
||||
{
|
||||
log4net.Repository.ILoggerRepository RootRep;
|
||||
|
117
PROMS/VEPROMS.CSLA.Library/.editorconfig
Normal file
117
PROMS/VEPROMS.CSLA.Library/.editorconfig
Normal file
@ -0,0 +1,117 @@
|
||||
# Rules in this file were initially inferred by Visual Studio IntelliCode from the C:\Git\Production\Repos\SourceCode\PROMS\VEPROMS.CSLA.Library\ codebase based on best match to current usage at 1/21/2025
|
||||
# You can modify the rules from these initially generated values to suit your own policies
|
||||
# You can learn more about editorconfig here: https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference
|
||||
[*.cs]
|
||||
|
||||
|
||||
#Core editorconfig formatting - indentation
|
||||
|
||||
#use hard tabs for indentation
|
||||
indent_style = tab
|
||||
|
||||
#Formatting - new line options
|
||||
|
||||
#place catch statements on a new line
|
||||
csharp_new_line_before_catch = true
|
||||
#place else statements on a new line
|
||||
csharp_new_line_before_else = true
|
||||
#require finally statements to be on a new line after the closing brace
|
||||
csharp_new_line_before_finally = true
|
||||
#require braces to be on a new line for properties, methods, control_blocks, and types (also known as "Allman" style)
|
||||
csharp_new_line_before_open_brace = properties, methods, control_blocks, types
|
||||
|
||||
#Formatting - organize using options
|
||||
|
||||
#do not place System.* using directives before other using directives
|
||||
dotnet_sort_system_directives_first = false
|
||||
|
||||
#Formatting - spacing options
|
||||
|
||||
#require NO space between a cast and the value
|
||||
csharp_space_after_cast = false
|
||||
#require a space before the colon for bases or interfaces in a type declaration
|
||||
csharp_space_after_colon_in_inheritance_clause = true
|
||||
#require a space after a keyword in a control flow statement such as a for loop
|
||||
csharp_space_after_keywords_in_control_flow_statements = true
|
||||
#require a space before the colon for bases or interfaces in a type declaration
|
||||
csharp_space_before_colon_in_inheritance_clause = true
|
||||
#remove space within empty argument list parentheses
|
||||
csharp_space_between_method_call_empty_parameter_list_parentheses = false
|
||||
#remove space between method call name and opening parenthesis
|
||||
csharp_space_between_method_call_name_and_opening_parenthesis = false
|
||||
#do not place space characters after the opening parenthesis and before the closing parenthesis of a method call
|
||||
csharp_space_between_method_call_parameter_list_parentheses = false
|
||||
#remove space within empty parameter list parentheses for a method declaration
|
||||
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
|
||||
#place a space character after the opening parenthesis and before the closing parenthesis of a method declaration parameter list.
|
||||
csharp_space_between_method_declaration_parameter_list_parentheses = false
|
||||
|
||||
#Formatting - wrapping options
|
||||
|
||||
#leave code block on separate lines
|
||||
csharp_preserve_single_line_blocks = false
|
||||
#leave statements and member declarations on the same line
|
||||
csharp_preserve_single_line_statements = true
|
||||
|
||||
#Style - Code block preferences
|
||||
|
||||
#prefer no curly braces if allowed
|
||||
csharp_prefer_braces = false:suggestion
|
||||
|
||||
#Style - expression bodied member options
|
||||
|
||||
#prefer block bodies for accessors
|
||||
csharp_style_expression_bodied_accessors = false:suggestion
|
||||
#prefer block bodies for constructors
|
||||
csharp_style_expression_bodied_constructors = false:suggestion
|
||||
#prefer block bodies for methods
|
||||
csharp_style_expression_bodied_methods = false:suggestion
|
||||
#prefer block bodies for properties
|
||||
csharp_style_expression_bodied_properties = false:suggestion
|
||||
|
||||
#Style - expression level options
|
||||
|
||||
#prefer out variables to be declared before the method call
|
||||
csharp_style_inlined_variable_declaration = false:suggestion
|
||||
#prefer the language keyword for member access expressions, instead of the type name, for types that have a keyword to represent them
|
||||
dotnet_style_predefined_type_for_member_access = true:suggestion
|
||||
|
||||
#Style - Expression-level preferences
|
||||
|
||||
#prefer objects to not be initialized using object initializers
|
||||
dotnet_style_object_initializer = false:suggestion
|
||||
|
||||
#Style - implicit and explicit types
|
||||
|
||||
#prefer explicit type over var in all cases, unless overridden by another code style rule
|
||||
csharp_style_var_elsewhere = false:suggestion
|
||||
#prefer explicit type over var to declare variables with built-in system types such as int
|
||||
csharp_style_var_for_built_in_types = false:suggestion
|
||||
#prefer explicit type over var when the type is already mentioned on the right-hand side of a declaration
|
||||
csharp_style_var_when_type_is_apparent = false:suggestion
|
||||
|
||||
#Style - language keyword and framework type options
|
||||
|
||||
#prefer the language keyword for local variables, method parameters, and class members, instead of the type name, for types that have a keyword to represent them
|
||||
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
|
||||
|
||||
#Style - modifier options
|
||||
|
||||
#prefer accessibility modifiers to be declared except for public interface members. This will currently not differ from always and will act as future proofing for if C# adds default interface methods.
|
||||
dotnet_style_require_accessibility_modifiers = for_non_interface_members:suggestion
|
||||
|
||||
#Style - Modifier preferences
|
||||
|
||||
#when this rule is set to a list of modifiers, prefer the specified ordering.
|
||||
csharp_preferred_modifier_order = public,private,internal,protected,static,virtual,override,readonly:suggestion
|
||||
|
||||
#Style - qualification options
|
||||
|
||||
#prefer events not to be prefaced with this. or Me. in Visual Basic
|
||||
dotnet_style_qualification_for_event = false:suggestion
|
||||
#prefer fields not to be prefaced with this. or Me. in Visual Basic
|
||||
dotnet_style_qualification_for_field = false:suggestion
|
||||
#prefer methods not to be prefaced with this. or Me. in Visual Basic
|
||||
dotnet_style_qualification_for_method = false:suggestion
|
||||
#prefer properties not to be prefaced with this. or Me. in Visual Basic
|
||||
dotnet_style_qualification_for_property = false:suggestion
|
@ -517,6 +517,57 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
}
|
||||
#endregion CheckOff
|
||||
#region ShwRplWds
|
||||
[Serializable]
|
||||
[TypeConverter(typeof(ExpandableObjectConverter))]
|
||||
public class ShwRplWds
|
||||
{
|
||||
private string _MenuItem;
|
||||
[XmlAttribute("MenuItem")]
|
||||
[Browsable(false)]
|
||||
public string MenuItem
|
||||
{
|
||||
get { return _MenuItem; }
|
||||
set { _MenuItem = value; }
|
||||
}
|
||||
private string _Index;
|
||||
[XmlAttribute("Index")]
|
||||
[Browsable(false)] // Don't show in the property grid
|
||||
public string Index
|
||||
{
|
||||
get { return _Index; }
|
||||
set { _Index = value; }
|
||||
}
|
||||
|
||||
private bool? _Active;
|
||||
[DisplayName("Active ShwRplWds")]
|
||||
[Description("Allow use of this ShwRplWds")]
|
||||
public bool? Active
|
||||
{
|
||||
get { return _Active; }
|
||||
set { _Active = value; }
|
||||
}
|
||||
private bool? _OrigActive;
|
||||
[XmlIgnore]
|
||||
[Browsable(false)]
|
||||
public bool? OrigActive
|
||||
{
|
||||
get { return _OrigActive; }
|
||||
set { _OrigActive = value; }
|
||||
}
|
||||
public ShwRplWds()
|
||||
{
|
||||
}
|
||||
public string ConvertToString()
|
||||
{
|
||||
return GenericSerializer<ShwRplWds>.StringSerialize(this);
|
||||
}
|
||||
public override string ToString()
|
||||
{
|
||||
return MenuItem;
|
||||
}
|
||||
}
|
||||
#endregion ShwRplWds
|
||||
#region StepData (list)
|
||||
[Serializable]
|
||||
[TypeConverter(typeof(ExpandableObjectConverter))]
|
||||
|
@ -528,6 +528,24 @@ namespace VEPROMS.CSLA.Library
|
||||
OnPropertyChanged("Section_OriginalSteps");
|
||||
}
|
||||
}
|
||||
[Browsable(false)]
|
||||
[DisplayName("Section ShowReplaceWords")]
|
||||
[RefreshProperties(RefreshProperties.All)]
|
||||
[Description("Section ShowReplaceWords")]
|
||||
public string Section_ShwRplWords
|
||||
{
|
||||
get
|
||||
{
|
||||
//return _Xp["Section", "ShwRplWords"];
|
||||
string tmp = _Xp["Section", "ShwRplWords"];
|
||||
return tmp == null || tmp == "" ? "Y" : tmp;
|
||||
}
|
||||
set
|
||||
{
|
||||
_Xp["Section", "ShwRplWords"] = value;
|
||||
OnPropertyChanged("Section_ShwRplWords");
|
||||
}
|
||||
}
|
||||
[Category("Section")]
|
||||
//PROPGRID: Hide Section NumPages
|
||||
[Browsable(false)]
|
||||
|
@ -493,6 +493,34 @@ namespace VEPROMS.CSLA.Library
|
||||
OnPropertyChanged("Step_DisableInitialLine");
|
||||
}
|
||||
}
|
||||
//C2019-025 Ability to Toggle Replace Words
|
||||
public int Step_ShwRplWdsIndex
|
||||
{
|
||||
get
|
||||
{
|
||||
string s = _Xp["Step", "ShwRplWdsIndex"];
|
||||
|
||||
if (s == string.Empty) return 0;
|
||||
|
||||
if (s == "0") return 0;
|
||||
|
||||
if (s == "1") return 1;
|
||||
|
||||
if (s == "2") return 2;
|
||||
|
||||
if (s == "3") return 3;
|
||||
|
||||
return 0;
|
||||
|
||||
}
|
||||
set
|
||||
{
|
||||
string s = _Xp["Step", ""];
|
||||
if (value.ToString() == s) return;
|
||||
_Xp["Step", "ShwRplWdsIndex"] = value.ToString();
|
||||
OnPropertyChanged("Step_ShwRplWdsIndex");
|
||||
}
|
||||
}
|
||||
#region RO image sizing
|
||||
// if the RO image (figure) is resized, save it in the step config, not in the ROImageConfig. If stored in ROImageConfig
|
||||
// the size is set for ALL uses.
|
||||
|
@ -6,6 +6,7 @@ using System.Text.RegularExpressions;
|
||||
using System.Drawing;
|
||||
using Volian.Base.Library;
|
||||
using JR.Utils.GUI.Forms;
|
||||
//using VEPROMS.colorReplaceWords;
|
||||
|
||||
// This was moved from volian.controls.library
|
||||
namespace VEPROMS.CSLA.Library
|
||||
@ -46,6 +47,60 @@ namespace VEPROMS.CSLA.Library
|
||||
return string.Empty;
|
||||
}
|
||||
}
|
||||
private string ShwRplWords(ItemInfo _MyItemInfo)
|
||||
{
|
||||
//if (_Initalizing) return "N";
|
||||
//_MyItemInfo.
|
||||
SectionConfig sc = _MyItemInfo.MyConfig as SectionConfig;
|
||||
if (sc == null) return "N";
|
||||
return sc.Section_ShwRplWords;
|
||||
}
|
||||
private bool ShwRplWdsIndex(ItemInfo _MyItemInfo)
|
||||
{
|
||||
StepConfig sc = _MyItemInfo.MyConfig as StepConfig;
|
||||
int setting = sc.Step_ShwRplWdsIndex;
|
||||
switch (setting)
|
||||
{
|
||||
case 3:
|
||||
return false;
|
||||
break;
|
||||
case 2:
|
||||
return true;
|
||||
break;
|
||||
case 1:
|
||||
case 0:
|
||||
//SectionConfig sc2 = _MyItemInfo.ActiveParent.MyConfig as SectionConfig;
|
||||
SectionConfig sc2 = _MyItemInfo.ActiveSection.MyConfig as SectionConfig;
|
||||
if (sc2 == null || sc2.Section_ShwRplWords == "Y")
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
//int setting = sc.Step_ShwRplWdsIndex;
|
||||
//if (setting == 3) return false;
|
||||
//if (setting == 2) return true;
|
||||
//if (setting == 1 || setting == 0)
|
||||
//{
|
||||
// SectionConfig sc2 = _MyItemInfo.ActiveParent.MyConfig as SectionConfig;
|
||||
// if (sc2.Section_ShwRplWords == "Y")
|
||||
// {
|
||||
// return true;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// return false;
|
||||
// }
|
||||
//}
|
||||
//return false; // if Step_ShwRplWdsIndex = 0
|
||||
}
|
||||
private Item _MyItem;
|
||||
private string EditText
|
||||
{
|
||||
@ -357,9 +412,37 @@ namespace VEPROMS.CSLA.Library
|
||||
// But don't do ReplaceWords if the TurnOffReplaceWords format flag is set
|
||||
if (wordsShouldBeReplaced && !_MyItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.TurnOffReplaceWords)
|
||||
{
|
||||
//string stf = _MyItemInfo.SectionConfig.Section_ShwRplWords;
|
||||
//ItemInfoList stf = _MyItemInfo.MyPrevious.Sections//SectionConfig.Section_ShwRplWords;
|
||||
//_MyItemInfo.SectionConfig.Section_ShwRplWords;
|
||||
//string str = _MyItemInfo.MyConfig.Section_ShwRplWords;
|
||||
//epMode
|
||||
int profileDepth1 = ProfileTimer.Push(">>>> DoReplaceWords2");
|
||||
|
||||
text = DoReplaceWords2(text);
|
||||
if (_MyItemInfo.IsSection)
|
||||
{
|
||||
string ShwRplWrds = ShwRplWords(_MyItemInfo);
|
||||
if (ShwRplWrds == "Y")
|
||||
{
|
||||
text = DoReplaceWords2(text, epMode);
|
||||
}
|
||||
}
|
||||
if (_MyItemInfo.IsStep)
|
||||
{
|
||||
bool ShwRplWrds = ShwRplWdsIndex(_MyItemInfo);
|
||||
if (ShwRplWrds == true)
|
||||
{
|
||||
text = DoReplaceWords2(text, epMode);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (_MyItemInfo.IsFolder || _MyItemInfo.IsProcedure)
|
||||
{
|
||||
text = DoReplaceWords2(text, epMode);
|
||||
}
|
||||
|
||||
|
||||
ProfileTimer.Pop(profileDepth1);
|
||||
}
|
||||
if (_MyItemInfo != null && ROsShouldBeAdjusted) // B2017-019 - added check for ROsShouldBeAdjusted so that these token are not "cooked" on property pages
|
||||
@ -2101,7 +2184,7 @@ namespace VEPROMS.CSLA.Library
|
||||
return (bool) _ProcessReplaceWords;
|
||||
}
|
||||
}
|
||||
private string DoReplaceWords2(string Text)
|
||||
private string DoReplaceWords2(string Text, E_EditPrintMode epMode)
|
||||
{
|
||||
if(!ProcessReplaceWords) return Text;
|
||||
// F2021-053: BNPP Alarm - need ability to have super/sub scripts in the text of Alarm Tables (ROs).
|
||||
@ -2162,6 +2245,12 @@ namespace VEPROMS.CSLA.Library
|
||||
// CASEINSENS: Do ReplaceWords for all words that match, regardless of case, and replace with the ReplaceWith string as is
|
||||
//RegexOptions myOptions = (rs.Flag & E_ReplaceFlags.CaseInsens) == E_ReplaceFlags.CaseInsens ? RegexOptions.IgnoreCase & RegexOptions.Singleline : RegexOptions.None & RegexOptions.Singleline;
|
||||
string replaceWord = Regex.Replace(rs.ReplaceWord, @"[[\]\\()]", @"\$0");
|
||||
//if (Volian.Controls.Library.Properties.Settings.Default.cbShwRplWrdsColor)
|
||||
//{
|
||||
// replaceWord = $@"\cf2{replaceWord}\cf0";
|
||||
// // with = $@"\cf2{with}\cf0 ";
|
||||
//}
|
||||
|
||||
// if first or last character in replaceword is a non-word character, for example, ',', ')', or '.',
|
||||
// don't use the \W, i.e. don't bother to look for a non-word character.
|
||||
string wordMatchBeg = Regex.IsMatch(replaceWord.Substring(0, 1), @"\W") ? "" : @"(?<=\W|^)";
|
||||
@ -2188,7 +2277,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
//ProfileTimer.Pop(profileDepth);
|
||||
//int profileDepth5 = ProfileTimer.Push(">>>> DoReplaceWords2.ReplaceMatches");
|
||||
Text = myMatches.ReplaceMatches();
|
||||
Text = myMatches.ReplaceMatches(epMode);
|
||||
//ProfileTimer.Pop(profileDepth5);
|
||||
Text = Text.Replace(@"\xA0", @"\u160?"); //replace hard space
|
||||
return Text;
|
||||
@ -2480,7 +2569,8 @@ namespace VEPROMS.CSLA.Library
|
||||
if (str.Length == index && str == text.Substring(0, str.Length)) return true;
|
||||
return false;
|
||||
}
|
||||
public string ReplaceMatches()
|
||||
|
||||
public string ReplaceMatches(E_EditPrintMode epMode)
|
||||
{
|
||||
int offset = 0;
|
||||
string text = _Text;
|
||||
@ -2572,6 +2662,11 @@ namespace VEPROMS.CSLA.Library
|
||||
with = with.Replace(@"\ul ", "");
|
||||
with = with.Replace(@"\ulnone ", "");
|
||||
}
|
||||
//if (Properties.Settings.Default.cbShwRplWrdsColor && !(epMode == E_EditPrintMode.Print))
|
||||
if (Properties.Settings.Default.cbShwRplWrdsColor && !(epMode == E_EditPrintMode.Print))
|
||||
{
|
||||
with = $@"\cf2{with}\cf0 ";
|
||||
}
|
||||
|
||||
text = text.Substring(0, offset + foundMatch.MyMatch.Index) + with + text.Substring(offset + foundMatch.MyMatch.Index + foundMatch.MyMatch.Length);
|
||||
//offset += foundMatch.MyWord.ReplaceWith.Length - foundMatch.MyMatch.Length;
|
||||
|
@ -1654,6 +1654,14 @@ namespace VEPROMS.CSLA.Library
|
||||
return LazyLoad(ref _ProcAppl, "@ProcAppl");
|
||||
}
|
||||
}
|
||||
//private ShwRplWdsData _ShwRplWdsData;
|
||||
//public ShwRplWdsData ShwRplWdsData
|
||||
//{
|
||||
// get
|
||||
// {
|
||||
// return ShwRplWdsData == null ? ShwRplWdsData = new ShwRplWdsData(SelectSingleNode("ShwRplWdsData")) : ShwRplWdsData;
|
||||
// }
|
||||
//}
|
||||
}
|
||||
|
||||
#endregion
|
||||
@ -2173,6 +2181,72 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
}
|
||||
}
|
||||
//#region ShwRplWdsData
|
||||
//[TypeConverter(typeof(ExpandableObjectConverter))]
|
||||
//public class ShwRplWdsData : vlnFormatItem
|
||||
//{
|
||||
// public ShwRplWdsData(XmlNode xmlNode) : base(xmlNode) { }
|
||||
// private ShwRplWdsList _ShwRplWdsList = null;
|
||||
// public ShwRplWdsList ShwRplWdsList
|
||||
// {
|
||||
// get
|
||||
// {
|
||||
// if (_ShwRplWdsList != null) return _ShwRplWdsList;
|
||||
|
||||
// // Get a list of checkoffs that should be included:
|
||||
// // if !UseCheckOffUCF (Baseall has it as false. User can change setting in UCF to true)
|
||||
// // if !IgnoreUCF, i.e. use UCF changes, return original lists with only active items (Inactive = false)
|
||||
// // if IgnoreUCF, return original lists with all items
|
||||
// // if UseCheckOffUCF is true use the merged lists from current format and baseall.xml and
|
||||
// // do the same processing for IgnoreUCF described above.
|
||||
|
||||
// // UseCheckOffUCF is false or there is no FormatConfig (UCF) data:
|
||||
// //FormatConfig fc = PlantFormat.GetFormatConfig(MyFormat);
|
||||
// //if (!MyFormat.PlantFormat.FormatData.ProcData.CheckOffUCF || fc==null)
|
||||
// //{
|
||||
// // _ShwRplWdsList = new ShwRplWdsList(SelectNodes("ShwRplWdsList/ShwRplWds"), MyFormat);
|
||||
// // // B2019-100: If Ignoring the UCF data, just return the entire list. Also, return entire list if there is no UCF data (fc == null)
|
||||
// // if (PlantFormat.IgnoreUCF || fc == null) return _ShwRplWdsList;
|
||||
// // // If not ignoring UCF settings, only return those that are active
|
||||
// // foreach (FormatConfig.ShwRplWds co in fc.PlantFormat.FormatData.ShwRplWdsList)
|
||||
// // {
|
||||
// // foreach (CheckOff coo in _ShwRplWdsList)
|
||||
// // {
|
||||
// // if ((int)coo.Index == Convert.ToInt32(co.Index) && !(bool)co.Active)
|
||||
// // {
|
||||
// // _ShwRplWdsList.Remove(coo);
|
||||
// // break;
|
||||
// // }
|
||||
// // }
|
||||
// // }
|
||||
// // return _ShwRplWdsList;
|
||||
// //}
|
||||
// // UseCheckOfffUCF is true:
|
||||
// // merge the checkoff list from the current format and the checkoff list from the base format
|
||||
// FormatConfig fc = PlantFormat.GetFormatConfig(MyFormat);
|
||||
// _ShwRplWdsList = new ShwRplWdsList(SelectNodes("ShwRplWdsList/ShwRplWds"), MyFormat);
|
||||
// ShwRplWdsList retlist2 = new ShwRplWdsList(SelectNodes("../ShwRplWdsList/ShwRplWds"), MyFormat);
|
||||
// if (retlist2 != null && retlist2.Count > 0) foreach (ShwRplWds co in retlist2) _ShwRplWdsList.Add(co);
|
||||
// if (PlantFormat.IgnoreUCF) return _ShwRplWdsList;
|
||||
|
||||
// // if applying UCF, then remove those that are inactive:
|
||||
// foreach (FormatConfig.ShwRplWds co in fc.PlantFormat.FormatData.ShwRplWdsList)
|
||||
// {
|
||||
// foreach (ShwRplWds coo in _ShwRplWdsList)
|
||||
// {
|
||||
// if ((int)coo.Index == Convert.ToInt32(co.Index) && !(bool)co.Active)
|
||||
// {
|
||||
// _ShwRplWdsList.Remove(coo);
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// return _ShwRplWdsList;
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
//#endregion
|
||||
|
||||
#endregion
|
||||
#region CheckOff
|
||||
[TypeConverter(typeof(ExpandableObjectConverter))]
|
||||
@ -2284,6 +2358,48 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region ShwRplWds
|
||||
public class ShwRplWds : vlnFormatItem, IVlnIndexedFormatItem
|
||||
{
|
||||
public ShwRplWds(XmlNode xmlNode) : base(xmlNode) { }
|
||||
public ShwRplWds() : base() { }
|
||||
private LazyLoad<int?> _Index;
|
||||
public int? Index
|
||||
{
|
||||
get
|
||||
{
|
||||
return LazyLoad(ref _Index, "@Index");
|
||||
}
|
||||
}
|
||||
|
||||
// User Interface Mark (UIMark) is the deimal number of an ASCII character that is desplayed in the step editor
|
||||
// to indicate the selected checkoff
|
||||
private LazyLoad<int?> _UIMark;
|
||||
public int? UIMark
|
||||
{
|
||||
get
|
||||
{
|
||||
return LazyLoad(ref _UIMark, "@UIMark");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//Descriptive text shown in the checkoff selection list
|
||||
private LazyLoad<string> _MenuItem;
|
||||
public string MenuItem
|
||||
{
|
||||
get
|
||||
{
|
||||
return LazyLoad(ref _MenuItem, "@MenuItem");
|
||||
}
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return MenuItem;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region CheckOffList
|
||||
[TypeConverter(typeof(vlnIndexedListConverter<CheckOffList, CheckOff>))]
|
||||
public class CheckOffList : vlnIndexedFormatList<CheckOff>
|
||||
@ -2300,6 +2416,20 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
}
|
||||
}
|
||||
//public class ShwRplWdsList : vlnIndexedFormatList<ShwRplWds>
|
||||
//{
|
||||
// public ShwRplWdsList(XmlNodeList xmlNodeList, IFormatOrFormatInfo myFormat) : base(xmlNodeList, myFormat) { }
|
||||
// public override vlnIndexedFormatList<ShwRplWds> InheritedList
|
||||
// {
|
||||
// get
|
||||
// {
|
||||
// IFormatOrFormatInfo parentFormat = MyFormat.MyIParent;
|
||||
// if (parentFormat != null)
|
||||
// return parentFormat.PlantFormat.FormatData.ProcData.ShwRplWds;
|
||||
// return null;
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
#endregion
|
||||
#region CheckOffHeader
|
||||
[TypeConverter(typeof(ExpandableObjectConverter))]
|
||||
|
@ -103,6 +103,9 @@
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="..\VEPROMS User Interface\Properties\Settings.Designer.cs">
|
||||
<Link>Properties\Settings.Designer.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="Config\AnnotationTypeConfig.cs" />
|
||||
<Compile Include="Config\AssocConfig.cs" />
|
||||
<Compile Include="Config\ColorConfig.cs" />
|
||||
@ -386,6 +389,7 @@
|
||||
<Compile Include="VEObjects\VETreeNode.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include=".editorconfig" />
|
||||
<None Include="ClassDiagram1.cd" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
@ -419,6 +423,7 @@
|
||||
<DependentUpon>frmRofstLoadStatus.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<ItemGroup />
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
|
@ -202,6 +202,12 @@ namespace Volian.Base.Library
|
||||
get { return VlnSettings._StepTypeToolTip; }
|
||||
set { VlnSettings._StepTypeToolTip = value; }
|
||||
}
|
||||
private static bool _cbShwRplWrdsColor = false;
|
||||
public static bool cbShwRplWrdsColor
|
||||
{
|
||||
get { return VlnSettings._cbShwRplWrdsColor; }
|
||||
set { VlnSettings._cbShwRplWrdsColor = value; }
|
||||
}
|
||||
private static string _ReleaseMode = null;
|
||||
public static string ReleaseMode
|
||||
{
|
||||
|
@ -33,7 +33,9 @@ namespace Volian.Controls.Library
|
||||
this.cbPageBreak = new DevComponents.DotNetBar.Controls.CheckBoxX();
|
||||
this.cbCAS = new DevComponents.DotNetBar.Controls.CheckBoxX();
|
||||
this.cmbCheckoff = new DevComponents.DotNetBar.Controls.ComboBoxEx();
|
||||
this.cmbShwRplWds = new DevComponents.DotNetBar.Controls.ComboBoxEx();
|
||||
this.groupPanelCheckoff = new DevComponents.DotNetBar.Controls.GroupPanel();
|
||||
this.groupPanelcmbShwRplWds = new DevComponents.DotNetBar.Controls.GroupPanel();
|
||||
this.cbInitialLine = new DevComponents.DotNetBar.Controls.CheckBoxX();
|
||||
this.groupPanelChgBar = new DevComponents.DotNetBar.Controls.GroupPanel();
|
||||
this.tbChgID = new System.Windows.Forms.TextBox();
|
||||
@ -62,6 +64,7 @@ namespace Volian.Controls.Library
|
||||
this.lblFSWidth = new System.Windows.Forms.Label();
|
||||
this.groupPanelPaginate.SuspendLayout();
|
||||
this.groupPanelCheckoff.SuspendLayout();
|
||||
this.groupPanelcmbShwRplWds.SuspendLayout();
|
||||
this.groupPanelChgBar.SuspendLayout();
|
||||
this.groupPanelChgStepType.SuspendLayout();
|
||||
this.groupPanelIncludeOn.SuspendLayout();
|
||||
@ -184,6 +187,28 @@ namespace Volian.Controls.Library
|
||||
this.cmbCheckoff.WatermarkText = "select signoff / checkoff";
|
||||
this.cmbCheckoff.SelectedIndexChanged += new System.EventHandler(this.cmbCheckoff_SelectedIndexChanged);
|
||||
//
|
||||
// cmbShwRplWds
|
||||
//
|
||||
this.cmbShwRplWds.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.cmbShwRplWds.DisplayMember = "Text";
|
||||
this.cmbShwRplWds.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
|
||||
this.cmbShwRplWds.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cmbShwRplWds.FormattingEnabled = true;
|
||||
this.cmbShwRplWds.ItemHeight = 17;
|
||||
this.cmbShwRplWds.Location = new System.Drawing.Point(3, 17);
|
||||
this.cmbShwRplWds.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.cmbShwRplWds.Name = "cmbShwRplWds";
|
||||
this.cmbShwRplWds.Size = new System.Drawing.Size(194, 23);
|
||||
this.cmbShwRplWds.TabIndex = 0;
|
||||
this.cmbShwRplWds.WatermarkFont = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.cmbShwRplWds.WatermarkText = "Show Replace Words";
|
||||
this.cmbShwRplWds.SelectedIndexChanged += new System.EventHandler(this.cmbShwRplWds_SelectedIndexChanged);
|
||||
this.cmbShwRplWds.Items.Add("");
|
||||
this.cmbShwRplWds.Items.Add("Inherit from Section");
|
||||
this.cmbShwRplWds.Items.Add("Show replace words");
|
||||
this.cmbShwRplWds.Items.Add("Do not show replace words");
|
||||
//
|
||||
// groupPanelCheckoff
|
||||
//
|
||||
this.groupPanelCheckoff.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
@ -228,6 +253,51 @@ namespace Volian.Controls.Library
|
||||
this.groupPanelCheckoff.Text = "Signoff / Checkoff";
|
||||
this.groupPanelCheckoff.VisibleChanged += new System.EventHandler(this.groupPanelCheckoff_VisibleChanged);
|
||||
//
|
||||
// groupPanelcmbShwRplWds
|
||||
//
|
||||
this.groupPanelcmbShwRplWds.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.groupPanelcmbShwRplWds.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
|
||||
this.groupPanelcmbShwRplWds.Controls.Add(this.cbInitialLine);
|
||||
//this.groupPanelcmbShwRplWds.Controls.Add(this.cmbCheckoff);
|
||||
this.groupPanelcmbShwRplWds.Controls.Add(this.cmbShwRplWds);
|
||||
this.groupPanelcmbShwRplWds.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.groupPanelcmbShwRplWds.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.groupPanelcmbShwRplWds.Location = new System.Drawing.Point(0, 145);
|
||||
this.groupPanelcmbShwRplWds.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.groupPanelcmbShwRplWds.Name = "groupPanelcmbShwRplWds";
|
||||
this.groupPanelcmbShwRplWds.Size = new System.Drawing.Size(202, 86);
|
||||
//
|
||||
//
|
||||
//
|
||||
this.groupPanelcmbShwRplWds.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2;
|
||||
this.groupPanelcmbShwRplWds.Style.BackColorGradientAngle = 90;
|
||||
this.groupPanelcmbShwRplWds.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
|
||||
this.groupPanelcmbShwRplWds.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.groupPanelcmbShwRplWds.Style.BorderBottomWidth = 1;
|
||||
this.groupPanelcmbShwRplWds.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.groupPanelcmbShwRplWds.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.groupPanelcmbShwRplWds.Style.BorderLeftWidth = 1;
|
||||
this.groupPanelcmbShwRplWds.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.groupPanelcmbShwRplWds.Style.BorderRightWidth = 1;
|
||||
this.groupPanelcmbShwRplWds.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.groupPanelcmbShwRplWds.Style.BorderTopWidth = 1;
|
||||
this.groupPanelcmbShwRplWds.Style.CornerDiameter = 4;
|
||||
this.groupPanelcmbShwRplWds.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
|
||||
this.groupPanelcmbShwRplWds.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center;
|
||||
this.groupPanelcmbShwRplWds.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
|
||||
this.groupPanelcmbShwRplWds.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.groupPanelcmbShwRplWds.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.groupPanelcmbShwRplWds.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.groupPanelcmbShwRplWds.TabIndex = 8;
|
||||
this.groupPanelcmbShwRplWds.Text = "Show Replace Words";
|
||||
this.groupPanelcmbShwRplWds.VisibleChanged += new System.EventHandler(this.groupPanelcmbShwRplWds_VisibleChanged);
|
||||
//
|
||||
// cbInitialLine
|
||||
//
|
||||
this.cbInitialLine.AutoSize = true;
|
||||
@ -737,6 +807,7 @@ namespace Volian.Controls.Library
|
||||
this.Controls.Add(this.groupPanelPaginate);
|
||||
this.Controls.Add(this.groupPanelChgBar);
|
||||
this.Controls.Add(this.groupPanelCheckoff);
|
||||
this.Controls.Add(this.groupPanelcmbShwRplWds);
|
||||
this.Controls.Add(this.groupPanelChgStepType);
|
||||
this.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.Name = "DisplayTags";
|
||||
@ -744,7 +815,9 @@ namespace Volian.Controls.Library
|
||||
this.groupPanelPaginate.ResumeLayout(false);
|
||||
this.groupPanelPaginate.PerformLayout();
|
||||
this.groupPanelCheckoff.ResumeLayout(false);
|
||||
this.groupPanelcmbShwRplWds.ResumeLayout(false);
|
||||
this.groupPanelCheckoff.PerformLayout();
|
||||
this.groupPanelcmbShwRplWds.PerformLayout();
|
||||
this.groupPanelChgBar.ResumeLayout(false);
|
||||
this.groupPanelChgBar.PerformLayout();
|
||||
this.groupPanelChgStepType.ResumeLayout(false);
|
||||
@ -764,7 +837,9 @@ namespace Volian.Controls.Library
|
||||
|
||||
private DevComponents.DotNetBar.Controls.GroupPanel groupPanelPaginate;
|
||||
private DevComponents.DotNetBar.Controls.ComboBoxEx cmbCheckoff;
|
||||
private DevComponents.DotNetBar.Controls.ComboBoxEx cmbShwRplWds;
|
||||
private DevComponents.DotNetBar.Controls.GroupPanel groupPanelCheckoff;
|
||||
private DevComponents.DotNetBar.Controls.GroupPanel groupPanelcmbShwRplWds;
|
||||
private DevComponents.DotNetBar.Controls.CheckBoxX cbPageBreak;
|
||||
private DevComponents.DotNetBar.Controls.CheckBoxX cbCAS;
|
||||
private DevComponents.DotNetBar.Controls.GroupPanel groupPanelChgBar;
|
||||
|
@ -124,6 +124,7 @@ namespace Volian.Controls.Library
|
||||
private void ClearControls()
|
||||
{
|
||||
cmbCheckoff.Enabled = false;
|
||||
cmbShwRplWds.Enabled = false;
|
||||
cbPageBreak.Enabled = false;
|
||||
cbPrefPageBreak.Enabled = false;
|
||||
cbPlaceKeeper.Enabled = false;
|
||||
@ -258,6 +259,7 @@ namespace Volian.Controls.Library
|
||||
groupPanelChgStepType.Style.BackColor = Color.Cornsilk;
|
||||
groupPanelPaginate.Style.BackColor = Color.Cornsilk;
|
||||
groupPanelCheckoff.Style.BackColor = Color.Cornsilk;
|
||||
groupPanelcmbShwRplWds.Style.BackColor = Color.Cornsilk;
|
||||
groupPanelIncludeOn.Style.BackColor = Color.Cornsilk;
|
||||
groupPanelWcnTrnResp.Style.BackColor = Color.Cornsilk;
|
||||
groupPanelFigSize.Style.BackColor = Color.Cornsilk;
|
||||
@ -298,10 +300,20 @@ namespace Volian.Controls.Library
|
||||
// in certain cases, the checkbox control should be disabled, check for this stuff now...
|
||||
int formatSteptype = CurItemInfo.FormatStepType;
|
||||
cmbCheckoff.Enabled = true;
|
||||
cmbShwRplWds.Enabled = true; // new show replace words
|
||||
if (cmbShwRplWds.Visible)
|
||||
{
|
||||
cmbShwRplWds.SelectedIndex = 0;
|
||||
//StepConfig sc = CurItemInfo.MyConfig as StepConfig;
|
||||
cmbShwRplWds.Enabled = true;
|
||||
cmbShwRplWds.SelectedIndex = sc.Step_ShwRplWdsIndex;
|
||||
}
|
||||
if ((CurItemInfo.IsCaution || CurItemInfo.IsNote) & !fmtdata.SectData.StepSectionData.StepSectionLayoutData.TieTabToLevel)
|
||||
cmbCheckoff.Enabled = false;
|
||||
|
||||
if (CurItemInfo.IsRNOPart && sc != null && sc.Step_CheckOffIndex != -1 && !fmtdata.StepDataList[formatSteptype].CheckOffSameAsParent)
|
||||
cmbCheckoff.Enabled = false; // Checkoffs already assigned to RNO.
|
||||
|
||||
if (StepOverRide()) cmbCheckoff.Enabled = false; // Checkoffs already assigned to AER
|
||||
|
||||
//// if there are no checkoffs OR
|
||||
@ -532,7 +544,7 @@ namespace Volian.Controls.Library
|
||||
tbRespons.Text = sc2.Step_Responsibility;
|
||||
}
|
||||
// diable fields if user is only a reviewer
|
||||
groupPanelCheckoff.Enabled = groupPanelChgBar.Enabled = groupPanelChgStepType.Enabled = groupPanelIncludeOn.Enabled = groupPanelPaginate.Enabled = groupPanelWcnTrnResp.Enabled = UserInfo.CanEdit(MyUserInfo, Mydvi); // Can Change Tag Info
|
||||
groupPanelCheckoff.Enabled = groupPanelChgBar.Enabled = groupPanelChgStepType.Enabled = groupPanelIncludeOn.Enabled = groupPanelPaginate.Enabled = groupPanelWcnTrnResp.Enabled = groupPanelcmbShwRplWds.Enabled = UserInfo.CanEdit(MyUserInfo, Mydvi); // Can Change Tag Info
|
||||
|
||||
// C2021-015: Barakah - High Level Steps in Table of Contents. Make the check box visible if format has TofCAllowHLS and
|
||||
// if format allow this and on a HLS, get the database from step's config to see if included and set checkbox accordingly.
|
||||
@ -794,6 +806,12 @@ namespace Volian.Controls.Library
|
||||
if (Visible == true && NotVisibleEditItem != null)
|
||||
MyEditItem = NotVisibleEditItem;
|
||||
}
|
||||
private void groupPanelcmbShwRplWds_VisibleChanged(object sender, EventArgs e)
|
||||
{
|
||||
// If it becomes visible, update the panel
|
||||
if (Visible == true && NotVisibleEditItem != null)
|
||||
MyEditItem = NotVisibleEditItem;
|
||||
}
|
||||
private void rbChgBarOvrRideOn_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (_Initalizing) return;
|
||||
@ -862,6 +880,25 @@ namespace Volian.Controls.Library
|
||||
// cnt.Save();
|
||||
//}
|
||||
}
|
||||
private void cmbShwRplWds_SelectedIndexChanged(object sender, EventArgs e) // new show replace words
|
||||
{
|
||||
|
||||
// --------
|
||||
|
||||
if (_Initalizing) return;
|
||||
MyEditItem.SaveContents();
|
||||
StepConfig sc = CurItemInfo.MyConfig as StepConfig;
|
||||
if (sc == null) return;
|
||||
MyEditItem.ChangeBarForConfigItemChange = false;
|
||||
//sc.Step_DisableInitialLine = cbInitialLine.Checked;
|
||||
sc.Step_ShwRplWdsIndex = cmbShwRplWds.SelectedIndex;
|
||||
MyEditItem.ChangeBarForConfigItemChange = true;
|
||||
|
||||
|
||||
//needed to refresh display changing
|
||||
MyEditItem.RefreshContent();
|
||||
MyEditItem.SetAllTabs();
|
||||
}
|
||||
#endregion
|
||||
|
||||
private void tbChgID_TextChanged(object sender, EventArgs e)
|
||||
|
@ -121,6 +121,6 @@
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>36</value>
|
||||
<value>132</value>
|
||||
</metadata>
|
||||
</root>
|
@ -342,7 +342,7 @@ namespace Volian.Controls.Library
|
||||
AddFontTable(selectedRtfSB, FormatFont, FontIsFixed(FormatFont));
|
||||
_RtfPrefix = selectedRtfSB.ToString();
|
||||
}
|
||||
return _RtfPrefix;// +@"{\colortbl ;\red255\green0\blue0;}";
|
||||
return _RtfPrefix;// +@"{\colortbl ;\red255\green0\blue0;\red0\green0\blue255;}";
|
||||
}
|
||||
}
|
||||
// August 5, 2009 - KBR & RHM:
|
||||
@ -1284,9 +1284,9 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
selectedRtfSB.Append(@"{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset2 " + myFont.FontFamily.Name + @";}"); //}\f0\fs" + this.Font.SizeInPoints * 2 + @" " + myDisplayTextElement.Text + @"}}";
|
||||
if (!isFixed)
|
||||
selectedRtfSB.Append(@"{\f1\fnil\fcharset0 " + Volian.Base.Library.vlnFont.ProportionalSymbolFont + @";}}{\colortbl ;\red255\green0\blue0;}"); // C2017-036 get best available proportional font for symbols
|
||||
selectedRtfSB.Append(@"{\f1\fnil\fcharset0 " + Volian.Base.Library.vlnFont.ProportionalSymbolFont + @";}}{\colortbl ;\red255\green0\blue0;\red0\green0\blue255;}"); // C2017-036 get best available proportional font for symbols
|
||||
else
|
||||
selectedRtfSB.Append(@"{\f1\fnil\fcharset0 FreeMono;}}{\colortbl ;\red255\green0\blue0;}"); // FreeMono is now used for the edit screen only. VESymbFix and Consolas are used for printing
|
||||
selectedRtfSB.Append(@"{\f1\fnil\fcharset0 FreeMono;}}{\colortbl ;\red255\green0\blue0;\red0\green0\blue255;}"); // FreeMono is now used for the edit screen only. VESymbFix and Consolas are used for printing
|
||||
selectedRtfSB.Append("\r\n");
|
||||
// use styles to construct rtf commands to insert into next line (where \b, etc is)
|
||||
// B2015-134 Hanging Indent with Hard Returns was not being saved- removed \sl-240\slmult0
|
||||
@ -1405,7 +1405,7 @@ namespace Volian.Controls.Library
|
||||
linkValue = linkValue.Replace("\\u916?", "\\f1\\u916?\\f0 ");
|
||||
linkValue = linkValue.Replace(@"{", @"\{");
|
||||
linkValue = linkValue.Replace(@"}", @"\}");
|
||||
SelectedRtf = @"{\rtf1\ansi" + FontTable + @"{\colortbl ;\red255\green0\blue0;}\v" + FontSize + @" <START]\v0\cf1 " + linkValue + @"\cf0\v " + linkUrl + @"[END>\v0 }";
|
||||
SelectedRtf = @"{\rtf1\ansi" + FontTable + @"{\colortbl ;\red255\green0\blue0;\red0\green0\blue255;}\v" + FontSize + @" <START]\v0\cf1 " + linkValue + @"\cf0\v " + linkUrl + @"[END>\v0 }";
|
||||
this.SelectionLength = 0;
|
||||
this.SelectionStart = position;
|
||||
FindAllLinks();
|
||||
|
@ -1968,7 +1968,7 @@ namespace Volian.Controls.Library
|
||||
//trtb.Rtf = trtb.RtfPrefix + ConvertTableText(trtb.Rtf) + "}";
|
||||
//string fromRTF = trtb.Rtf;
|
||||
//string prefix = trtb.RtfPrefix;
|
||||
//if (tstr.Contains("#Link:")) prefix += @"{\colortbl ;\red255\green0\blue0;}";
|
||||
//if (tstr.Contains("#Link:")) prefix += @"{\colortbl ;\red255\green0\blue0;\red0\green0\blue255;}";
|
||||
//if (tstr.Contains("#Link:"))
|
||||
// Console.WriteLine("here");
|
||||
//string jText = trtb.RtfPrefix + ConvertTableText(tstr) + @"\par}";
|
||||
|
@ -368,9 +368,9 @@ namespace Volian.Print.Library
|
||||
}
|
||||
rtfSB.Append(@"{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset2 " + font.FontFamily.Name + @";}"); //}\f0\fs" + this.Font.SizeInPoints * 2 + @" " + myDisplayTextElement.Text + @"}}";
|
||||
if (!FontIsFixed(font))
|
||||
rtfSB.Append(@"{\f1\fnil\fcharset0 " + Volian.Base.Library.vlnFont.ProportionalSymbolFont + @";}}{\colortbl ;\red255\green0\blue0;}"); // C2017-036 get best available proportional font for symbols
|
||||
rtfSB.Append(@"{\f1\fnil\fcharset0 " + Volian.Base.Library.vlnFont.ProportionalSymbolFont + @";}}{\colortbl ;\red255\green0\blue0;\red0\green0\blue255;}"); // C2017-036 get best available proportional font for symbols
|
||||
else
|
||||
rtfSB.Append(@"{\f1\fnil\fcharset0 VESymbFix;}}{\colortbl ;\red255\green0\blue0;}");
|
||||
rtfSB.Append(@"{\f1\fnil\fcharset0 VESymbFix;}}{\colortbl ;\red255\green0\blue0;\red0\green0\blue255;}");
|
||||
rtfSB.Append("\r\n");
|
||||
// use styles to construct rtf commands to insert into next line (where \b, etc is)
|
||||
rtfSB.Append(@"\viewkind4\uc1\pard\sl-240\slmult0" + sbbeg.ToString() + @"\fs" + Convert.ToInt32(font.SizeInPoints * 2).ToString() + @" "); // \f0\fs" + this.Font.SizeInPoints * 2 + @" " + myDisplayTextElement.Text + @"}";
|
||||
@ -398,9 +398,9 @@ namespace Volian.Print.Library
|
||||
}
|
||||
rtfSB.Append(@"{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset2 " + font.FontFamily.Name + @";}"); //}\f0\fs" + this.Font.SizeInPoints * 2 + @" " + myDisplayTextElement.Text + @"}}";
|
||||
if (!FontIsFixed(font))
|
||||
rtfSB.Append(@"{\f1\fnil\fcharset0 " + Volian.Base.Library.vlnFont.ProportionalSymbolFont + @";}}{\colortbl ;\red255\green0\blue0;}"); // C2017-036 get best available proportional font for symbols
|
||||
rtfSB.Append(@"{\f1\fnil\fcharset0 " + Volian.Base.Library.vlnFont.ProportionalSymbolFont + @";}}{\colortbl ;\red255\green0\blue0;\red0\green0\blue255;}"); // C2017-036 get best available proportional font for symbols
|
||||
else
|
||||
rtfSB.Append(@"{\f1\fnil\fcharset0 VESymbFix;}}{\colortbl ;\red255\green0\blue0;}");
|
||||
rtfSB.Append(@"{\f1\fnil\fcharset0 VESymbFix;}}{\colortbl ;\red255\green0\blue0;\red0\green0\blue255;}");
|
||||
rtfSB.Append("\r\n");
|
||||
// use styles to construct rtf commands to insert into next line (where \b, etc is)
|
||||
rtfSB.Append(@"\viewkind4\uc1\pard\sl-240\slmult0" + sbbeg.ToString() + @"\fs" + Convert.ToInt32(font.SizeInPoints * 2).ToString() + @" "); // \f0\fs" + this.Font.SizeInPoints * 2 + @" " + myDisplayTextElement.Text + @"}";
|
||||
|
Loading…
x
Reference in New Issue
Block a user