Commit 48b5ffb9 authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

поправлен Bug #31759 ([AutoSave][Copy&Paste] Снятие формата с гиперссылки после переоткрытия)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@68526 954022d7-b5bf-4e40-9824-e11837661b57
parent 7b087c92
...@@ -5598,13 +5598,24 @@ function BinaryFileReader(doc, openParams) ...@@ -5598,13 +5598,24 @@ function BinaryFileReader(doc, openParams)
isAlreadyContainsStyle = styleDoc.isEqual(stylePaste.style); isAlreadyContainsStyle = styleDoc.isEqual(stylePaste.style);
if (styleDoc.Name == stylePaste.style.Name) if (styleDoc.Name == stylePaste.style.Name)
isEqualName = j; isEqualName = j;
if (isAlreadyContainsStyle) { if (isAlreadyContainsStyle)
{
if (oStyleTypes.par == nStyleType) if (oStyleTypes.par == nStyleType)
elem.pPr.PStyle = j; elem.pPr.PStyle = j;
else if (oStyleTypes.table == nStyleType) else if (oStyleTypes.table == nStyleType)
elem.pPr.Set_TableStyle2(j); elem.pPr.Set_TableStyle2(j);
else if (oStyleTypes.run == nStyleType) else if (oStyleTypes.run == nStyleType)
elem.pPr.RStyle = j; {
//TODO сделать аналогично для Pstyle
if(elem.run)
{
elem.run.Set_RStyle(j);
}
else
{
elem.pPr.RStyle = j;
}
}
else if(oStyleTypes.styleLink == nStyleType) else if(oStyleTypes.styleLink == nStyleType)
elem.pPr.StyleLink = j; elem.pPr.StyleLink = j;
else if(oStyleTypes.numStyleLink == nStyleType) else if(oStyleTypes.numStyleLink == nStyleType)
...@@ -5621,7 +5632,16 @@ function BinaryFileReader(doc, openParams) ...@@ -5621,7 +5632,16 @@ function BinaryFileReader(doc, openParams)
else if (nStyleType == oStyleTypes.table) else if (nStyleType == oStyleTypes.table)
elem.pPr.Set_TableStyle2(isEqualName); elem.pPr.Set_TableStyle2(isEqualName);
else if (nStyleType == oStyleTypes.run) else if (nStyleType == oStyleTypes.run)
elem.pPr.RStyle = isEqualName; {
if(elem.run)
{
elem.run.Set_RStyle(isEqualName);
}
else
{
elem.pPr.RStyle = isEqualName;
}
}
else if(nStyleType == oStyleTypes.styleLink) else if(nStyleType == oStyleTypes.styleLink)
elem.pPr.StyleLink = isEqualName; elem.pPr.StyleLink = isEqualName;
else if(nStyleType == oStyleTypes.numStyleLink) else if(nStyleType == oStyleTypes.numStyleLink)
...@@ -5637,7 +5657,16 @@ function BinaryFileReader(doc, openParams) ...@@ -5637,7 +5657,16 @@ function BinaryFileReader(doc, openParams)
else if (nStyleType == oStyleTypes.table) else if (nStyleType == oStyleTypes.table)
elem.pPr.Set_TableStyle2(nStyleId); elem.pPr.Set_TableStyle2(nStyleId);
else if (nStyleType == oStyleTypes.run) else if (nStyleType == oStyleTypes.run)
elem.pPr.RStyle = nStyleId; {
if(elem.run)
{
elem.run.Set_RStyle(nStyleId);
}
else
{
elem.pPr.RStyle = nStyleId;
}
}
else if(nStyleType == oStyleTypes.styleLink) else if(nStyleType == oStyleTypes.styleLink)
elem.pPr.StyleLink = nStyleId; elem.pPr.StyleLink = nStyleId;
else if(nStyleType == oStyleTypes.numStyleLink) else if(nStyleType == oStyleTypes.numStyleLink)
...@@ -6751,7 +6780,7 @@ function Binary_rPrReader(doc, oReadResult, stream) ...@@ -6751,7 +6780,7 @@ function Binary_rPrReader(doc, oReadResult, stream)
break; break;
case c_oSerProp_rPrType.RStyle: case c_oSerProp_rPrType.RStyle:
var RunStyle = this.stream.GetString2LE(length); var RunStyle = this.stream.GetString2LE(length);
this.oReadResult.runStyles.push({pPr: rPr, style: RunStyle}); this.oReadResult.runStyles.push({pPr: rPr, style: RunStyle, run: run});
break; break;
case c_oSerProp_rPrType.Spacing: case c_oSerProp_rPrType.Spacing:
rPr.Spacing = this.bcr.ReadDouble(); rPr.Spacing = this.bcr.ReadDouble();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment