Commit 8c746dfa authored by Ilya Kirillov's avatar Ilya Kirillov

Implemented functions for working with hyperlinks and comments in footnotes.

parent 130b2763
......@@ -2177,33 +2177,52 @@ CFootnotesController.prototype.SetSelectionState = function(State, StateIndex)
};
CFootnotesController.prototype.AddHyperlink = function(Props)
{
// TODO: Реализовать
if (true !== this.IsSelectionUse() || true === this.private_IsOnFootnoteSelected())
{
this.CurFootnote.Hyperlink_Add(Props);
}
};
CFootnotesController.prototype.ModifyHyperlink = function(Props)
{
// TODO: Реализовать
if (true !== this.IsSelectionUse() || true === this.private_IsOnFootnoteSelected())
{
this.CurFootnote.Hyperlink_Modify(Props);
}
};
CFootnotesController.prototype.RemoveHyperlink = function()
{
// TODO: Реализовать
if (true !== this.IsSelectionUse() || true === this.private_IsOnFootnoteSelected())
{
this.CurFootnote.Hyperlink_Remove();
}
};
CFootnotesController.prototype.CanAddHyperlink = function(bCheckInHyperlink)
{
// TODO: Реализовать
if (true !== this.IsSelectionUse() || true === this.private_IsOnFootnoteSelected())
return this.CurFootnote.Hyperlink_CanAdd(bCheckInHyperlink);
return false;
};
CFootnotesController.prototype.IsCursorInHyperlink = function(bCheckEnd)
{
// TODO: Реализовать
if (true !== this.IsSelectionUse() || true === this.private_IsOnFootnoteSelected())
return this.CurFootnote.Hyperlink_Check(bCheckEnd);
return null;
};
CFootnotesController.prototype.AddComment = function(Comment)
{
// TODO: Реализовать
if (true !== this.IsSelectionUse() || true === this.private_IsOnFootnoteSelected())
{
this.CurFootnote.Add_Comment(Comment, true, true);
}
};
CFootnotesController.prototype.CanAddComment = function()
{
// TODO: Реализовать
if (true !== this.IsSelectionUse() || true === this.private_IsOnFootnoteSelected())
return this.CurFootnote.CanAdd_Comment();
return false;
};
CFootnotesController.prototype.GetSelectionAnchorPos = function()
{
......@@ -2237,7 +2256,6 @@ CFootnotesController.prototype.RestoreDocumentStateAfterLoadChanges = function(S
};
function CFootEndnotePage()
{
this.X = 0;
......
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