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

Сделано, чтобы в отрисовщик передавалась информация о номере секции и повторяющихся колонтитулах.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56004 954022d7-b5bf-4e40-9824-e11837661b57
parent 41de9dbd
......@@ -1878,13 +1878,24 @@ CDocument.prototype =
// Определим секцию
var Page_StartPos = this.Pages[nPageIndex].Pos;
var SectPr = this.SectionsInfo.Get_SectPr( Page_StartPos).SectPr;
var SectPr = this.SectionsInfo.Get_SectPr(Page_StartPos).SectPr;
// Рисуем колонтитулы
if ( docpostype_HdrFtr === this.CurPos.Type )
{
pGraphics.DrawHeaderEdit( this.Pages[nPageIndex].Y, this.HdrFtr.Lock.Get_Type() );
pGraphics.DrawFooterEdit( this.Pages[nPageIndex].YLimit, this.HdrFtr.Lock.Get_Type() );
var SectIndex = this.SectionsInfo.Get_Index(Page_StartPos);
var SectCount = this.SectionsInfo.Get_Count();
var SectIndex = ( 1 === SectCount ? -1 : SectIndex );
var Header = this.HdrFtr.Pages[nPageIndex].Header;
var Footer = this.HdrFtr.Pages[nPageIndex].Footer;
var RepH = ( null === Header || null !== SectPr.Get_HdrFtrInfo(Header) ? false : true );
var RepF = ( null === Footer || null !== SectPr.Get_HdrFtrInfo(Footer) ? false : true );
pGraphics.DrawHeaderEdit( this.Pages[nPageIndex].Y, this.HdrFtr.Lock.Get_Type(), SectIndex, RepH );
pGraphics.DrawFooterEdit( this.Pages[nPageIndex].YLimit, this.HdrFtr.Lock.Get_Type(), SectIndex, RepF );
}
else
pGraphics.Start_GlobalAlpha();
......@@ -13248,6 +13259,11 @@ CDocumentSectionsInfo.prototype =
return (Count - 1);
},
Get_Count : function()
{
return this.Elements.length;
},
Get_SectPr : function(Index)
{
var Count = this.Elements.length;
......
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