Commit b8f59b5c authored by GoshaZotov's avatar GoshaZotov

change constant name saveOnlyText -> keepTextOnly

parent 88ad00ce
...@@ -1104,7 +1104,7 @@ ...@@ -1104,7 +1104,7 @@
insertAsNestedTable: 20, insertAsNestedTable: 20,
uniteIntoTable: 21, uniteIntoTable: 21,
insertAsNewRows: 22, insertAsNewRows: 22,
saveOnlyText: 23 keepTextOnly: 23
}; };
//------------------------------------------------------------export-------------------------------------------------- //------------------------------------------------------------export--------------------------------------------------
...@@ -1785,7 +1785,7 @@ ...@@ -1785,7 +1785,7 @@
prot['mergeFormatting'] = prot.mergeFormatting; prot['mergeFormatting'] = prot.mergeFormatting;
prot['uniteList'] = prot.uniteList; prot['uniteList'] = prot.uniteList;
prot['doNotUniteList'] = prot.doNotUniteList; prot['doNotUniteList'] = prot.doNotUniteList;
prot['saveOnlyText'] = prot.saveOnlyText; prot['keepTextOnly'] = prot.keepTextOnly;
// ----------------------------- plugins ------------------------------- // // ----------------------------- plugins ------------------------------- //
var EPluginDataType = var EPluginDataType =
......
...@@ -2252,7 +2252,7 @@ PasteProcessor.prototype = ...@@ -2252,7 +2252,7 @@ PasteProcessor.prototype =
props = [sProps.paste, sProps.uniteList, sProps.doNotUniteList]; props = [sProps.paste, sProps.uniteList, sProps.doNotUniteList];
}*/ }*/
props = [sProps.paste/*, sProps.mergeFormatting*/, sProps.saveOnlyText]; props = [sProps.paste/*, sProps.mergeFormatting*/, sProps.keepTextOnly];
if(null !== props) if(null !== props)
{ {
...@@ -2313,7 +2313,7 @@ PasteProcessor.prototype = ...@@ -2313,7 +2313,7 @@ PasteProcessor.prototype =
var res = table; var res = table;
var props = window['AscCommon'].g_clipboardBase.specialPasteProps; var props = window['AscCommon'].g_clipboardBase.specialPasteProps;
if(props === Asc.c_oSpecialPasteProps.saveOnlyText) if(props === Asc.c_oSpecialPasteProps.keepTextOnly)
{ {
res = this._convertTableToText(table); res = this._convertTableToText(table);
} }
...@@ -2363,7 +2363,7 @@ PasteProcessor.prototype = ...@@ -2363,7 +2363,7 @@ PasteProcessor.prototype =
{ {
break; break;
} }
case Asc.c_oSpecialPasteProps.saveOnlyText: case Asc.c_oSpecialPasteProps.keepTextOnly:
{ {
//в данному случае мы должны применить к вставленному фрагменту стиль paraRun, в который вставляем //в данному случае мы должны применить к вставленному фрагменту стиль paraRun, в который вставляем
if(pasteIntoParagraphPr) if(pasteIntoParagraphPr)
...@@ -2430,7 +2430,7 @@ PasteProcessor.prototype = ...@@ -2430,7 +2430,7 @@ PasteProcessor.prototype =
{ {
break; break;
} }
case Asc.c_oSpecialPasteProps.saveOnlyText: case Asc.c_oSpecialPasteProps.keepTextOnly:
{ {
//в данному случае мы должны применить к вставленному фрагменту стиль paraRun, в который вставляем //в данному случае мы должны применить к вставленному фрагменту стиль paraRun, в который вставляем
if(pasteIntoParaRunPr) if(pasteIntoParaRunPr)
...@@ -2909,7 +2909,7 @@ PasteProcessor.prototype = ...@@ -2909,7 +2909,7 @@ PasteProcessor.prototype =
var aContentExcel = this._readFromBinaryExcel(base64FromExcel); var aContentExcel = this._readFromBinaryExcel(base64FromExcel);
History.TurnOn(); History.TurnOn();
if(window['AscCommon'].g_clipboardBase.specialPasteStart && Asc.c_oSpecialPasteProps.saveOnlyText === window['AscCommon'].g_clipboardBase.specialPasteProps) if(window['AscCommon'].g_clipboardBase.specialPasteStart && Asc.c_oSpecialPasteProps.keepTextOnly === window['AscCommon'].g_clipboardBase.specialPasteProps)
{ {
var aContent = oThis._convertExcelBinary(aContentExcel); var aContent = oThis._convertExcelBinary(aContentExcel);
oThis.aContent = aContent.content; oThis.aContent = aContent.content;
...@@ -3118,7 +3118,7 @@ PasteProcessor.prototype = ...@@ -3118,7 +3118,7 @@ PasteProcessor.prototype =
aContent.fonts = oThis._checkFontsOnLoad(aContent.fonts); aContent.fonts = oThis._checkFontsOnLoad(aContent.fonts);
var oObjectsForDownload = GetObjectsForImageDownload(aContent.aPastedImages); var oObjectsForDownload = GetObjectsForImageDownload(aContent.aPastedImages);
if(window['AscCommon'].g_clipboardBase.specialPasteStart && Asc.c_oSpecialPasteProps.saveOnlyText === window['AscCommon'].g_clipboardBase.specialPasteProps) if(window['AscCommon'].g_clipboardBase.specialPasteStart && Asc.c_oSpecialPasteProps.keepTextOnly === window['AscCommon'].g_clipboardBase.specialPasteProps)
{ {
fPrepasteCallback(); fPrepasteCallback();
} }
...@@ -4050,7 +4050,7 @@ PasteProcessor.prototype = ...@@ -4050,7 +4050,7 @@ PasteProcessor.prototype =
{ {
this.bIsPlainText = this._CheckIsPlainText(node); this.bIsPlainText = this._CheckIsPlainText(node);
if(window['AscCommon'].g_clipboardBase.specialPasteStart && Asc.c_oSpecialPasteProps.saveOnlyText === window['AscCommon'].g_clipboardBase.specialPasteProps) if(window['AscCommon'].g_clipboardBase.specialPasteStart && Asc.c_oSpecialPasteProps.keepTextOnly === window['AscCommon'].g_clipboardBase.specialPasteProps)
{ {
fPasteHtmlWordCallback(); fPasteHtmlWordCallback();
} }
......
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