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