Commit f993f7a9 authored by Alexander.Trofimov's avatar Alexander.Trofimov

fix bug 32397

parent 7095d1e7
......@@ -1055,7 +1055,7 @@ Asc['asc_docs_api'].prototype["Call_Menu_Event"] = function(type, _params)
{
case 1: // ASC_MENU_EVENT_TYPE_TEXTPR
{
var _textPr = new CTextPr();
var _textPr = new AscCommonWord.CTextPr();
while (_continue)
{
var _attr = _params[_current.pos++];
......@@ -1258,7 +1258,7 @@ Asc['asc_docs_api'].prototype["Call_Menu_Event"] = function(type, _params)
case 15:
{
if (_textPr === undefined)
_textPr = new CTextPr();
_textPr = new AscCommonWord.CTextPr();
if (true == _params[_current.pos++])
_textPr.VertAlign = AscCommon.vertalign_SubScript;
else
......@@ -1268,7 +1268,7 @@ Asc['asc_docs_api'].prototype["Call_Menu_Event"] = function(type, _params)
case 16:
{
if (_textPr === undefined)
_textPr = new CTextPr();
_textPr = new AscCommonWord.CTextPr();
if (true == _params[_current.pos++])
_textPr.VertAlign = AscCommon.vertalign_SuperScript;
else
......@@ -1278,7 +1278,7 @@ Asc['asc_docs_api'].prototype["Call_Menu_Event"] = function(type, _params)
case 17:
{
if (_textPr === undefined)
_textPr = new CTextPr();
_textPr = new AscCommonWord.CTextPr();
_textPr.SmallCaps = _params[_current.pos++];
_textPr.Caps = false;
break;
......@@ -1286,7 +1286,7 @@ Asc['asc_docs_api'].prototype["Call_Menu_Event"] = function(type, _params)
case 18:
{
if (_textPr === undefined)
_textPr = new CTextPr();
_textPr = new AscCommonWord.CTextPr();
_textPr.Caps = _params[_current.pos++];
if (true == _textPr.Caps)
_textPr.SmallCaps = false;
......@@ -1295,7 +1295,7 @@ Asc['asc_docs_api'].prototype["Call_Menu_Event"] = function(type, _params)
case 19:
{
if (_textPr === undefined)
_textPr = new CTextPr();
_textPr = new AscCommonWord.CTextPr();
_textPr.Strikeout = _params[_current.pos++];
_textPr.DStrikeout = false;
break;
......@@ -1303,7 +1303,7 @@ Asc['asc_docs_api'].prototype["Call_Menu_Event"] = function(type, _params)
case 20:
{
if (_textPr === undefined)
_textPr = new CTextPr();
_textPr = new AscCommonWord.CTextPr();
_textPr.DStrikeout = _params[_current.pos++];
if (true == _textPr.DStrikeout)
_textPr.Strikeout = false;
......@@ -1312,14 +1312,14 @@ Asc['asc_docs_api'].prototype["Call_Menu_Event"] = function(type, _params)
case 21:
{
if (_textPr === undefined)
_textPr = new CTextPr();
_textPr = new AscCommonWord.CTextPr();
_textPr.TextSpacing = _params[_current.pos++];
break;
}
case 22:
{
if (_textPr === undefined)
_textPr = new CTextPr();
_textPr = new AscCommonWord.CTextPr();
_textPr.Position = _params[_current.pos++];
break;
}
......
......@@ -1944,7 +1944,7 @@ asc_docs_api.prototype.paraApply = function(Props)
{
_presentation.Set_DocumentDefaultTab( Props.DefaultTab );
}
var TextPr = new CTextPr();
var TextPr = new AscCommonWord.CTextPr();
if ( true === Props.Subscript )
TextPr.VertAlign = AscCommon.vertalign_SubScript;
......
......@@ -10735,6 +10735,7 @@ asc_CStyle.prototype["put_Link"] = asc_CStyle.prototype.put_Link;
window["AscCommonWord"].CDocumentColor = CDocumentColor;
window["AscCommonWord"].CStyle = CStyle;
window["AscCommonWord"].CTextPr = CTextPr;
window["AscCommonWord"].Default_Tab_Stop = Default_Tab_Stop;
window["AscCommonWord"].highlight_None = highlight_None;
window["AscCommonWord"].spacing_Auto = spacing_Auto;
......
......@@ -2713,7 +2713,7 @@ asc_docs_api.prototype.paraApply = function(Props)
// TODO: как только разъединят настройки параграфа и текста переделать тут
var TextPr = new CTextPr();
var TextPr = new AscCommonWord.CTextPr();
if ( true === Props.Subscript )
TextPr.VertAlign = AscCommon.vertalign_SubScript;
......
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