Logo for WCN cover pages was printing at top of page. Fixed the location of image printing in Word Documents
Added IsCaution1 boolean check (for WCN BCK formatting); underline background document header Added RO Format flag: UpRoImmAftrDashSpace
This commit is contained in:
parent
7ee3fde601
commit
c2f11de722
@ -843,10 +843,11 @@ namespace VEPROMS.CSLA.Library
|
|||||||
float height = 72 * lines / 6.0F;
|
float height = 72 * lines / 6.0F;
|
||||||
float x = (float)sel.get_Information(LBWdInformation.wdHorizontalPositionRelativeToTextBoundary);
|
float x = (float)sel.get_Information(LBWdInformation.wdHorizontalPositionRelativeToTextBoundary);
|
||||||
// 9.25 is the approximate offset of the base line of the font, i.e. doesn't include descender.
|
// 9.25 is the approximate offset of the base line of the font, i.e. doesn't include descender.
|
||||||
float y = (float)sel.get_Information(LBWdInformation.wdVerticalPositionRelativeToTextBoundary) + ((sel.Font.Size * 9.25F) / 12);
|
float locvertpage = (float)sel.get_Information(LBWdInformation.wdVerticalPositionRelativeToPage);
|
||||||
|
float y = locvertpage + ((sel.Font.Size * 9.25F) / 12);
|
||||||
sel.Text = "";
|
sel.Text = "";
|
||||||
LBShape shape = myDoc.Shapes.AddPicture(roImageFile.MyFile.FullName, x, y, sel.Range);
|
LBShape shape = myDoc.Shapes.AddPicture(roImageFile.MyFile.FullName, x, y, sel.Range);
|
||||||
shape.RelativeVerticalPosition = LBWdRelativeVerticalPosition.wdRelativeVerticalPositionMargin;
|
shape.RelativeVerticalPosition = LBWdRelativeVerticalPosition.wdRelativeVerticalPositionPage;
|
||||||
shape.Top = y; // Reset value after setting flag RelativeVerticalPosition
|
shape.Top = y; // Reset value after setting flag RelativeVerticalPosition
|
||||||
shape.RelativeHorizontalPosition = LBWdRelativeHorizontalPosition.wdRelativeHorizontalPositionMargin;
|
shape.RelativeHorizontalPosition = LBWdRelativeHorizontalPosition.wdRelativeHorizontalPositionMargin;
|
||||||
shape.Left = x;
|
shape.Left = x;
|
||||||
|
@ -1060,6 +1060,13 @@ namespace VEPROMS.CSLA.Library
|
|||||||
return IsType("Caution2");
|
return IsType("Caution2");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public bool IsCaution1
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return IsType("Caution1");
|
||||||
|
}
|
||||||
|
}
|
||||||
public bool IsNote
|
public bool IsNote
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
@ -2831,6 +2838,11 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_MyTab.BasicTab = isAlpha ? alpha : ordinal.ToString();
|
_MyTab.BasicTab = isAlpha ? alpha : ordinal.ToString();
|
||||||
newtab = FormatStepData.TabData.IdentAltPrint.Substring(indxnewtab + 1);
|
newtab = FormatStepData.TabData.IdentAltPrint.Substring(indxnewtab + 1);
|
||||||
// also see if there is the 'pagelist' string in this tab:
|
// also see if there is the 'pagelist' string in this tab:
|
||||||
|
if ((FormatStepData.TabData.Font.Style & E_Style.Underline) == E_Style.Underline)
|
||||||
|
// the reason that the underline commands were not included in format file is that the '\' character
|
||||||
|
// is used as a separator and the following code will not impact other formats
|
||||||
|
HighLevelStepTabPageList = @"\ul " + FormatStepData.TabData.IdentAltPrint.Substring(0, indxnewtab).Trim() + @"\ulnone " + tbformat;
|
||||||
|
else
|
||||||
HighLevelStepTabPageList = FormatStepData.TabData.IdentAltPrint.Substring(0, indxnewtab) + tbformat;
|
HighLevelStepTabPageList = FormatStepData.TabData.IdentAltPrint.Substring(0, indxnewtab) + tbformat;
|
||||||
_MyTab.AltPrintTab = newtab;
|
_MyTab.AltPrintTab = newtab;
|
||||||
if (tbformate != null && tbformate != "") tbformat = tbformate;
|
if (tbformate != null && tbformate != "") tbformat = tbformate;
|
||||||
|
@ -5419,6 +5419,14 @@ namespace VEPROMS.CSLA.Library
|
|||||||
return LazyLoad(ref _UpRoAftrDash, "@UpRoAftrDash");
|
return LazyLoad(ref _UpRoAftrDash, "@UpRoAftrDash");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
private LazyLoad<bool> _UpRoImmAftrDashSpace;
|
||||||
|
public bool UpRoImmAftrDashSpace
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return LazyLoad(ref _UpRoImmAftrDashSpace, "@UpRoImmAftrDashSpace");
|
||||||
|
}
|
||||||
|
}
|
||||||
private LazyLoad<bool> _UpcaseAllRoUnits;
|
private LazyLoad<bool> _UpcaseAllRoUnits;
|
||||||
public bool UpcaseAllRoUnits
|
public bool UpcaseAllRoUnits
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user