Commit c54b608e authored by Ilya Kirillov's avatar Ilya Kirillov

Added function to determine whether we are in a footnote.

parent 4e06ef33
......@@ -3581,11 +3581,20 @@ background-repeat: no-repeat;\
{
this.WordControl.m_oLogicDocument.GotoFootnote(isNext);
};
asc_docs_api.prototype.asc_IsCursorInFootnote = function()
{
var oLogicDocument = this.WordControl.m_oLogicDocument;
if (oLogicDocument && docpostype_Footnotes === oLogicDocument.Get_DocPosType())
return true;
return false;
};
asc_docs_api.prototype["asc_AddFootnote"] = asc_docs_api.prototype.asc_AddFootnote;
asc_docs_api.prototype["asc_RemoveAllFootnotes"] = asc_docs_api.prototype.asc_RemoveAllFootnotes;
asc_docs_api.prototype["asc_GetFootnoteProps"] = asc_docs_api.prototype.asc_GetFootnoteProps;
asc_docs_api.prototype["asc_SetFootnoteProps"] = asc_docs_api.prototype.asc_SetFootnoteProps;
asc_docs_api.prototype["asc_GotoFootnote"] = asc_docs_api.prototype.asc_GotoFootnote;
asc_docs_api.prototype["asc_IsCursorInFootnote"] = asc_docs_api.prototype.asc_IsCursorInFootnote;
asc_docs_api.prototype.put_AddPageBreak = function()
{
......
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