Fixed change bar location on figure. Also ro for figure was not found - fixed this.
This commit is contained in:
parent
c179215c26
commit
a8aea0dca0
@ -802,11 +802,13 @@ namespace Volian.Print.Library
|
|||||||
ROFstInfo rofst = dvi.DocVersionAssociations[0].MyROFst;
|
ROFstInfo rofst = dvi.DocVersionAssociations[0].MyROFst;
|
||||||
ROFSTLookup lookup = rofst.ROFSTLookup;
|
ROFSTLookup lookup = rofst.ROFSTLookup;
|
||||||
string linkInfoText = itemInfo.MyContent.Text.Replace(@"\v ", "");
|
string linkInfoText = itemInfo.MyContent.Text.Replace(@"\v ", "");
|
||||||
if (linkInfoText.Contains("?"))
|
Match m = Regex.Match(linkInfoText, @"(.*)[#]Link:([A-Za-z]*):(.*)");
|
||||||
|
if (m.Groups.Count < 4)
|
||||||
|
{
|
||||||
erMsg = "RO was not found during data migration.";
|
erMsg = "RO was not found during data migration.";
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Match m = Regex.Match(linkInfoText, @"(.*)[#]Link:([A-Za-z]*):(.*)");
|
|
||||||
string[] subs = m.Groups[3].Value.Split(" ".ToCharArray());
|
string[] subs = m.Groups[3].Value.Split(" ".ToCharArray());
|
||||||
string roid = subs[1];
|
string roid = subs[1];
|
||||||
string val = lookup.GetRoValue(subs[1]);
|
string val = lookup.GetRoValue(subs[1]);
|
||||||
@ -1265,7 +1267,9 @@ namespace Volian.Print.Library
|
|||||||
if (myPageHelper.ChangeBarDefinition.MyChangeBarLoc == PrintChangeBarLoc.LeftOfText ||
|
if (myPageHelper.ChangeBarDefinition.MyChangeBarLoc == PrintChangeBarLoc.LeftOfText ||
|
||||||
(myPageHelper.ChangeBarDefinition.MyChangeBarLoc == PrintChangeBarLoc.AERleftRNOright &&
|
(myPageHelper.ChangeBarDefinition.MyChangeBarLoc == PrintChangeBarLoc.AERleftRNOright &&
|
||||||
!itemInfo.IsInRNO)) msgAlign = Element.ALIGN_RIGHT;
|
!itemInfo.IsInRNO)) msgAlign = Element.ALIGN_RIGHT;
|
||||||
return new vlnChangeBar(cb, this, (float)itemInfo.MyDocStyle.Layout.LeftMargin + (col * itemInfo.FormatStepData.Font.CharsToTwips), yoff, msgAlign);
|
float coltotwips = col * itemInfo.FormatStepData.Font.CharsToTwips;
|
||||||
|
if (itemInfo.IsFigure) coltotwips = col * itemInfo.ActiveFormat.PlantFormat.FormatData.Font.CharsToTwips;
|
||||||
|
return new vlnChangeBar(cb, this, (float)itemInfo.MyDocStyle.Layout.LeftMargin + coltotwips, yoff, msgAlign);
|
||||||
}
|
}
|
||||||
|
|
||||||
private int ChangeBarLocation(float c, vlnParagraph paragraph, FormatInfo formatInfo, int maxRNO)
|
private int ChangeBarLocation(float c, vlnParagraph paragraph, FormatInfo formatInfo, int maxRNO)
|
||||||
@ -1577,7 +1581,7 @@ namespace Volian.Print.Library
|
|||||||
if (level==1)
|
if (level==1)
|
||||||
XOffset = (float)itemInfo.MyDocStyle.Layout.LeftMargin + (level * (float)formatInfo.PlantFormat.FormatData.SectData.SectionHeader.Pos);
|
XOffset = (float)itemInfo.MyDocStyle.Layout.LeftMargin + (level * (float)formatInfo.PlantFormat.FormatData.SectData.SectionHeader.Pos);
|
||||||
else
|
else
|
||||||
XOffset = (float)formatInfo.PlantFormat.FormatData.SectData.MetaSectionList[level].ColSByLevel;
|
XOffset = (float)itemInfo.MyDocStyle.Layout.LeftMargin + (float)formatInfo.PlantFormat.FormatData.SectData.MetaSectionList[level].ColSByLevel;
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user