Don’t underline bullets for Cautions/Notes
Don’t stop underlining in middle of step if document style has ‘UndSpecialStepsFoldout’ and there is a replace word that turns off underlining
This commit is contained in:
parent
9b5bf56aca
commit
d4e80da296
@ -3182,10 +3182,13 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
if ((FormatStepData.TabData.Font.Style & E_Style.Underline) > 0)
|
if ((FormatStepData.TabData.Font.Style & E_Style.Underline) > 0)
|
||||||
{
|
{
|
||||||
FontStyle style = FontStyle.Regular;
|
//FontStyle style = FontStyle.Regular;
|
||||||
if ((FormatStepData.TabData.Font.Style & E_Style.Bold) > 0) style |= FontStyle.Bold;
|
//if ((FormatStepData.TabData.Font.Style & E_Style.Bold) > 0) style |= FontStyle.Bold;
|
||||||
if ((FormatStepData.TabData.Font.Style & E_Style.Italics) > 0) style |= FontStyle.Italic;
|
//if ((FormatStepData.TabData.Font.Style & E_Style.Italics) > 0) style |= FontStyle.Italic;
|
||||||
_MyTab.MyFont.WindowsFont = new Font(FormatStepData.TabData.Font.WindowsFont.FontFamily, FormatStepData.TabData.Font.WindowsFont.Size, style);
|
//_MyTab.MyFont.WindowsFont = new Font(FormatStepData.TabData.Font.WindowsFont.FontFamily, FormatStepData.TabData.Font.WindowsFont.Size, style);
|
||||||
|
// clear the underlining for this tab's font:
|
||||||
|
E_Style es = ((E_Style)_MyTab.MyFont.Style) &~ E_Style.Underline;
|
||||||
|
_MyTab.MyFont = new VE_Font(_MyTab.MyFont.Family, (int)_MyTab.MyFont.Size, es, (float)_MyTab.MyFont.CPI);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
@ -2459,9 +2459,15 @@ namespace Volian.Print.Library
|
|||||||
if (!itemInfo.IsTable && StepRTB.MyFontFamily != null)
|
if (!itemInfo.IsTable && StepRTB.MyFontFamily != null)
|
||||||
myFont = new System.Drawing.Font(StepRTB.MyFontFamily, myFont.Size, myFont.Style);
|
myFont = new System.Drawing.Font(StepRTB.MyFontFamily, myFont.Size, myFont.Style);
|
||||||
|
|
||||||
if (itemInfo.IsHigh && itemInfo.MyDocStyle.UndSpecialStepsFoldout) myFont = new System.Drawing.Font(myFont.FontFamily, myFont.Size, myFont.Style | FontStyle.Underline);
|
string stText = vlntxt.StartText;
|
||||||
|
if (itemInfo.IsHigh && itemInfo.MyDocStyle.UndSpecialStepsFoldout)
|
||||||
|
{
|
||||||
|
myFont = new System.Drawing.Font(myFont.FontFamily, myFont.Size, myFont.Style | FontStyle.Underline);
|
||||||
|
stText = stText.Replace(@"\ulnone ", "");
|
||||||
|
stText = stText.Replace(@"\ulnone", "");
|
||||||
|
}
|
||||||
_RtfSB.Append(AddFontTable(myFont));
|
_RtfSB.Append(AddFontTable(myFont));
|
||||||
_RtfSB.Append(vlntxt.StartText);
|
_RtfSB.Append(stText);
|
||||||
if (_MyItemInfo.IsStep && !itemInfo.FormatStepData.UseSmartTemplate && _MyItemInfo.FormatStepData.Suffix != null && _MyItemInfo.FormatStepData.Suffix != "")
|
if (_MyItemInfo.IsStep && !itemInfo.FormatStepData.UseSmartTemplate && _MyItemInfo.FormatStepData.Suffix != null && _MyItemInfo.FormatStepData.Suffix != "")
|
||||||
_RtfSB.Append(_MyItemInfo.FormatStepData.Suffix.Replace("{ulnone}", @"\ulnone "));
|
_RtfSB.Append(_MyItemInfo.FormatStepData.Suffix.Replace("{ulnone}", @"\ulnone "));
|
||||||
_RtfSB.Append("}");
|
_RtfSB.Append("}");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user