Commit 5994a0f2 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

hyperlink props to menu

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@59220 954022d7-b5bf-4e40-9824-e11837661b57
parent 36682e96
......@@ -3956,6 +3956,29 @@ function asc_menu_ReadHyperPr(_params, _cursor)
return _settings;
};
function asc_menu_WriteHyperPr(_hyperPr, _stream)
{
if (_hyperPr.Text !== undefined && _hyperPr.Text !== null)
{
_stream["WriteByte"](0);
_stream["WriteString2"](_hyperPr.Text);
}
if (_hyperPr.Value !== undefined && _hyperPr.Value !== null)
{
_stream["WriteByte"](1);
_stream["WriteString2"](_hyperPr.Value);
}
if (_hyperPr.ToolTip !== undefined && _hyperPr.ToolTip !== null)
{
_stream["WriteByte"](2);
_stream["WriteString2"](_hyperPr.ToolTip);
}
_stream["WriteByte"](255);
};
///////////////////////////////////////////////////////////////////////
......@@ -4367,6 +4390,11 @@ asc_docs_api.prototype.sync_EndCatchSelectedElements = function()
asc_menu_WriteImagePr(this.SelectedObjectsStack[i].Value, _stream);
break;
}
case c_oAscTypeSelectElement.Hyperlink:
{
_stream["WriteLong"](c_oAscTypeSelectElement.Hyperlink);
asc_menu_WriteHyperPr(this.SelectedObjectsStack[i].Value, _stream);
}
default:
{
_stream["WriteLong"](255);
......
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