Commit 1f195e8a authored by Alexander.Trofimov's avatar Alexander.Trofimov

fix bug 32397

parent a61ce630
...@@ -1079,7 +1079,7 @@ Asc['asc_docs_api'].prototype["Call_Menu_Event"] = function(type, _params) ...@@ -1079,7 +1079,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++];
...@@ -1282,7 +1282,7 @@ Asc['asc_docs_api'].prototype["Call_Menu_Event"] = function(type, _params) ...@@ -1282,7 +1282,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
...@@ -1292,7 +1292,7 @@ Asc['asc_docs_api'].prototype["Call_Menu_Event"] = function(type, _params) ...@@ -1292,7 +1292,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
...@@ -1302,7 +1302,7 @@ Asc['asc_docs_api'].prototype["Call_Menu_Event"] = function(type, _params) ...@@ -1302,7 +1302,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;
...@@ -1310,7 +1310,7 @@ Asc['asc_docs_api'].prototype["Call_Menu_Event"] = function(type, _params) ...@@ -1310,7 +1310,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;
...@@ -1319,7 +1319,7 @@ Asc['asc_docs_api'].prototype["Call_Menu_Event"] = function(type, _params) ...@@ -1319,7 +1319,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;
...@@ -1327,7 +1327,7 @@ Asc['asc_docs_api'].prototype["Call_Menu_Event"] = function(type, _params) ...@@ -1327,7 +1327,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;
...@@ -1336,14 +1336,14 @@ Asc['asc_docs_api'].prototype["Call_Menu_Event"] = function(type, _params) ...@@ -1336,14 +1336,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;
} }
......
...@@ -1968,7 +1968,7 @@ asc_docs_api.prototype.paraApply = function(Props) ...@@ -1968,7 +1968,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;
......
...@@ -10759,6 +10759,7 @@ asc_CStyle.prototype["put_Link"] = asc_CStyle.prototype.put_Link; ...@@ -10759,6 +10759,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;
......
...@@ -2737,7 +2737,7 @@ asc_docs_api.prototype.paraApply = function(Props) ...@@ -2737,7 +2737,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