Commit f48d9b27 authored by Ilya.Kirillov's avatar Ilya.Kirillov Committed by Alexander.Trofimov

Работа с линейками для секций (баг 23944).

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@55894 954022d7-b5bf-4e40-9824-e11837661b57
parent b9d98faa
...@@ -11193,7 +11193,7 @@ CDocument.prototype = ...@@ -11193,7 +11193,7 @@ CDocument.prototype =
var R = SectPr.Get_PageWidth() - SectPr.Get_PageMargin_Right(); var R = SectPr.Get_PageWidth() - SectPr.Get_PageMargin_Right();
var B = SectPr.Get_PageHeight() - SectPr.Get_PageMargin_Bottom(); var B = SectPr.Get_PageHeight() - SectPr.Get_PageMargin_Bottom();
this.DrawingDocument.Set_RulerState_Paragraph( { L : L, T : T, R : R, B : B } ); this.DrawingDocument.Set_RulerState_Paragraph( { L : L, T : T, R : R, B : B }, true );
}, },
// Обновляем линейки // Обновляем линейки
......
...@@ -5875,7 +5875,7 @@ WordShape.prototype = ...@@ -5875,7 +5875,7 @@ WordShape.prototype =
var hc = (r - l)*0.5; var hc = (r - l)*0.5;
var vc = (b - t)*0.5; var vc = (b - t)*0.5;
this.drawingDocument.Set_RulerState_Paragraph({L: xc - hc, T: yc - vc, R: xc + hc, B: yc + vc}); this.drawingDocument.Set_RulerState_Paragraph({L: xc - hc, T: yc - vc, R: xc + hc, B: yc + vc}, false);
if(isRealObject(this.textBoxContent)) if(isRealObject(this.textBoxContent))
this.textBoxContent.Document_UpdateRulersState(0); this.textBoxContent.Document_UpdateRulersState(0);
}, },
......
...@@ -17088,7 +17088,7 @@ Paragraph.prototype = ...@@ -17088,7 +17088,7 @@ Paragraph.prototype =
else else
{ {
var Frame = this.CalculatedFrame; var Frame = this.CalculatedFrame;
this.Parent.DrawingDocument.Set_RulerState_Paragraph( { L : Frame.L, T : Frame.T, R : Frame.L + Frame.W, B : Frame.T + Frame.H, PageIndex : Frame.PageIndex, Frame : this } ); this.Parent.DrawingDocument.Set_RulerState_Paragraph( { L : Frame.L, T : Frame.T, R : Frame.L + Frame.W, B : Frame.T + Frame.H, PageIndex : Frame.PageIndex, Frame : this }, false );
} }
}, },
......
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