Commit ee1c459a authored by Ilya Kirillov's avatar Ilya Kirillov

Implemented sequentially numbering of paragraphs in the footnotes.

parent e8dd8451
......@@ -343,6 +343,9 @@ CDocumentContent.prototype.Get_Numbering = function()
CDocumentContent.prototype.Internal_GetNumInfo = function(ParaId, NumPr)
{
var TopDocument = this.Get_TopDocumentContent();
if (TopDocument instanceof CFootEndnote)
return TopDocument.Parent.GetNumberingInfo(ParaId, NumPr, TopDocument);
return TopDocument.Get_NumberingInfo(null, ParaId, NumPr);
};
CDocumentContent.prototype.Get_Styles = function(lvl)
......
......@@ -1053,6 +1053,16 @@ CFootnotesController.prototype.GotoPrevFootnote = function()
this.private_SetCurrentFootnoteNoSelection(oPrevFootnote);
}
};
CFootnotesController.prototype.GetNumberingInfo = function(ParaId, NumPr, oFootnote)
{
var arrFootnotes = this.LogicDocument.Get_FootnotesList(null, oFootnote);
var oNumberingEngine = new CDocumentNumberingInfoEngine(ParaId, NumPr, this.Get_Numbering());
for (var nIndex = 0, nCount = arrFootnotes.length; nIndex < nCount; ++nIndex)
{
arrFootnotes[nIndex].Get_NumberingInfo(oNumberingEngine, ParaId, NumPr);
}
return oNumberingEngine.Get_NumInfo();
};
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Private area
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
......
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