Commit 8f6c493e authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

рефакторинг

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57565 954022d7-b5bf-4e40-9824-e11837661b57
parent f4ae4f07
...@@ -36,7 +36,7 @@ window.PasteEndTimerId = -1; ...@@ -36,7 +36,7 @@ window.PasteEndTimerId = -1;
var COPY_ELEMENT_ID = "SelectId"; var COPY_ELEMENT_ID = "SelectId";
var PASTE_ELEMENT_ID = "wrd_pastebin"; var PASTE_ELEMENT_ID = "wrd_pastebin";
var ELEMENT_DISPAY_STYLE = "none"; var ELEMENT_DISPAY_STYLE = "none";
var copyPasteUseBinery = true; var copyPasteUseBinary = true;
if (window.USER_AGENT_SAFARI_MACOS) if (window.USER_AGENT_SAFARI_MACOS)
{ {
...@@ -1450,7 +1450,7 @@ CopyProcessor.prototype = ...@@ -1450,7 +1450,7 @@ CopyProcessor.prototype =
this.Para = document.createElement( "p" ); this.Para = document.createElement( "p" );
if(copyPasteUseBinery) if(copyPasteUseBinary)
{ {
var newArr = null; var newArr = null;
var tempAr = null; var tempAr = null;
...@@ -1488,7 +1488,7 @@ CopyProcessor.prototype = ...@@ -1488,7 +1488,7 @@ CopyProcessor.prototype =
{ {
var base64_img = paraDrawing.getBase64Img(); var base64_img = paraDrawing.getBase64Img();
if(copyPasteUseBinery) if(copyPasteUseBinary)
{ {
var wrappingType = oDocument.DrawingObjects.selection.groupSelection.parent.wrappingType; var wrappingType = oDocument.DrawingObjects.selection.groupSelection.parent.wrappingType;
var DrawingType = oDocument.DrawingObjects.selection.groupSelection.parent.DrawingType; var DrawingType = oDocument.DrawingObjects.selection.groupSelection.parent.DrawingType;
...@@ -1523,7 +1523,7 @@ CopyProcessor.prototype = ...@@ -1523,7 +1523,7 @@ CopyProcessor.prototype =
} }
if(copyPasteUseBinery) if(copyPasteUseBinary)
{ {
this.oBinaryFileWriter.CopyEnd(); this.oBinaryFileWriter.CopyEnd();
var sBase64 = this.oBinaryFileWriter.GetResult(); var sBase64 = this.oBinaryFileWriter.GetResult();
...@@ -1554,7 +1554,7 @@ CopyProcessor.prototype = ...@@ -1554,7 +1554,7 @@ CopyProcessor.prototype =
this.ElemToSelect.appendChild( this.Para ); this.ElemToSelect.appendChild( this.Para );
if(copyPasteUseBinery) if(copyPasteUseBinary)
{ {
var paragraph = cur_element.Parent; var paragraph = cur_element.Parent;
...@@ -1605,7 +1605,7 @@ CopyProcessor.prototype = ...@@ -1605,7 +1605,7 @@ CopyProcessor.prototype =
} }
} }
if(copyPasteUseBinery) if(copyPasteUseBinary)
{ {
this.oBinaryFileWriter.CopyEnd(); this.oBinaryFileWriter.CopyEnd();
var sBase64 = this.oBinaryFileWriter.GetResult(); var sBase64 = this.oBinaryFileWriter.GetResult();
...@@ -1796,7 +1796,7 @@ CopyProcessor.prototype = ...@@ -1796,7 +1796,7 @@ CopyProcessor.prototype =
$(this.ElemToSelect.children[0]).addClass("pptData;" + sBase64); $(this.ElemToSelect.children[0]).addClass("pptData;" + sBase64);
} }
this.oBinaryFileWriter.CopyEnd(); this.oBinaryFileWriter.CopyEnd();
if(copyPasteUseBinery && this.oBinaryFileWriter.copyParams.itemCount > 0) if(copyPasteUseBinary && this.oBinaryFileWriter.copyParams.itemCount > 0)
{ {
var sBase64 = this.oBinaryFileWriter.GetResult(); var sBase64 = this.oBinaryFileWriter.GetResult();
if(this.ElemToSelect.children && this.ElemToSelect.children.length == 1 && window.USER_AGENT_SAFARI_MACOS) if(this.ElemToSelect.children && this.ElemToSelect.children.length == 1 && window.USER_AGENT_SAFARI_MACOS)
...@@ -2940,7 +2940,7 @@ PasteProcessor.prototype = ...@@ -2940,7 +2940,7 @@ PasteProcessor.prototype =
// }); // });
// return; // return;
if(copyPasteUseBinery) if(copyPasteUseBinary)
{ {
var base64 = null, base64FromExcel = null,classNode, aContent, aContentExcel, pasteFromBinary = false; var base64 = null, base64FromExcel = null,classNode, aContent, aContentExcel, pasteFromBinary = false;
...@@ -3075,7 +3075,7 @@ PasteProcessor.prototype = ...@@ -3075,7 +3075,7 @@ PasteProcessor.prototype =
{ {
var oThis = this; var oThis = this;
var presentation = editor.WordControl.m_oLogicDocument; var presentation = editor.WordControl.m_oLogicDocument;
if(copyPasteUseBinery) if(copyPasteUseBinary)
{ {
var base64 = null; var base64 = null;
var classNode; var classNode;
......
...@@ -5038,7 +5038,7 @@ ...@@ -5038,7 +5038,7 @@
this.Para = document.createElement( "p" ); this.Para = document.createElement( "p" );
if(copyPasteUseBinery) if(copyPasteUseBinary)
{ {
var newArr = null; var newArr = null;
var tempAr = null; var tempAr = null;
...@@ -5076,7 +5076,7 @@ ...@@ -5076,7 +5076,7 @@
{ {
var base64_img = paraDrawing.getBase64Img(); var base64_img = paraDrawing.getBase64Img();
if(copyPasteUseBinery) if(copyPasteUseBinary)
{ {
var wrappingType = oDocument.DrawingObjects.selection.groupSelection.parent.wrappingType; var wrappingType = oDocument.DrawingObjects.selection.groupSelection.parent.wrappingType;
var DrawingType = oDocument.DrawingObjects.selection.groupSelection.parent.DrawingType; var DrawingType = oDocument.DrawingObjects.selection.groupSelection.parent.DrawingType;
...@@ -5111,7 +5111,7 @@ ...@@ -5111,7 +5111,7 @@
} }
if(copyPasteUseBinery) if(copyPasteUseBinary)
{ {
this.oBinaryFileWriter.CopyEnd(); this.oBinaryFileWriter.CopyEnd();
var sBase64 = this.oBinaryFileWriter.GetResult(); var sBase64 = this.oBinaryFileWriter.GetResult();
...@@ -5142,7 +5142,7 @@ ...@@ -5142,7 +5142,7 @@
this.ElemToSelect.appendChild( this.Para ); this.ElemToSelect.appendChild( this.Para );
if(copyPasteUseBinery) if(copyPasteUseBinary)
{ {
var paragraph = cur_element.Parent; var paragraph = cur_element.Parent;
...@@ -5193,7 +5193,7 @@ ...@@ -5193,7 +5193,7 @@
} }
} }
if(copyPasteUseBinery) if(copyPasteUseBinary)
{ {
this.oBinaryFileWriter.CopyEnd(); this.oBinaryFileWriter.CopyEnd();
var sBase64 = this.oBinaryFileWriter.GetResult(); var sBase64 = this.oBinaryFileWriter.GetResult();
...@@ -5219,7 +5219,7 @@ ...@@ -5219,7 +5219,7 @@
this.oBinaryFileWriter.CopyEnd(); this.oBinaryFileWriter.CopyEnd();
if(copyPasteUseBinery && this.oBinaryFileWriter.copyParams.itemCount > 0) if(copyPasteUseBinary && this.oBinaryFileWriter.copyParams.itemCount > 0)
{ {
var sBase64 = this.oBinaryFileWriter.GetResult(); var sBase64 = this.oBinaryFileWriter.GetResult();
if(this.ElemToSelect.children && this.ElemToSelect.children.length == 1 && window.USER_AGENT_SAFARI_MACOS) if(this.ElemToSelect.children && this.ElemToSelect.children.length == 1 && window.USER_AGENT_SAFARI_MACOS)
......
...@@ -1182,10 +1182,10 @@ asc_docs_api.prototype.GetCopyPasteDivId = function() ...@@ -1182,10 +1182,10 @@ asc_docs_api.prototype.GetCopyPasteDivId = function()
asc_docs_api.prototype.ContentToHTML = function(bIsRet) asc_docs_api.prototype.ContentToHTML = function(bIsRet)
{ {
this.DocumentReaderMode = new CDocumentReaderMode(); this.DocumentReaderMode = new CDocumentReaderMode();
var _old = copyPasteUseBinery; var _old = copyPasteUseBinary;
copyPasteUseBinery = false; copyPasteUseBinary = false;
Editor_Copy(this); Editor_Copy(this);
copyPasteUseBinery = _old; copyPasteUseBinary = _old;
this.DocumentReaderMode = null; this.DocumentReaderMode = null;
return document.getElementById("SelectId").innerHTML; return document.getElementById("SelectId").innerHTML;
}; };
......
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