Commit 2854eb1c authored by Sergey.Luzyanin's avatar Sergey.Luzyanin

Баги с загрузкой картинок при вставке; Баг с перерисовкой текстарта при выходе...

Баги с загрузкой картинок при вставке; Баг с перерисовкой текстарта при выходе из режима редактирвания текста по клавише esc.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@64840 954022d7-b5bf-4e40-9824-e11837661b57
parent dfdb097e
...@@ -5020,7 +5020,7 @@ DrawingObjectsController.prototype = ...@@ -5020,7 +5020,7 @@ DrawingObjectsController.prototype =
} }
else if (this.drawingObjects.cSld) else if (this.drawingObjects.cSld)
{ {
if (!(bNoRedraw === true)) // if (!(bNoRedraw === true))
{ {
nPageNum2 = this.drawingObjects.num; nPageNum2 = this.drawingObjects.num;
} }
......
...@@ -23,6 +23,60 @@ function CDocumentReaderMode() ...@@ -23,6 +23,60 @@ function CDocumentReaderMode()
} }
} }
function GetObjectsForImageDownload(aBuilderImages)
{
var oMapImages = {}, aBuilderImagesByUrl = [], aUrls =[];
for(var i = 0; i < aBuilderImages.length; ++i)
{
if(!g_oDocumentUrls.getImageLocal(aBuilderImages[i].Url))
{
if(!Array.isArray(oMapImages[aBuilderImages[i].Url]))
{
oMapImages[aBuilderImages[i].Url] = [];
}
oMapImages[aBuilderImages[i].Url].push(aBuilderImages[i]);
}
}
for(var key in oMapImages)
{
if(oMapImages.hasOwnProperty(key))
{
aUrls.push(key);
aBuilderImagesByUrl.push(oMapImages[key]);
}
}
return {aUrls: aUrls, aBuilderImagesByUrl: aBuilderImagesByUrl};
}
function ResetNewUrls(data, aUrls, aBuilderImagesByUrl, oImageMap)
{
for (var i = 0, length = data.length; i < length; ++i)
{
var elem = data[i];
if (null != elem.url)
{
var name = g_oDocumentUrls.imagePath2Local(elem.path);
var aImageElem = aBuilderImagesByUrl[i];
if(Array.isArray(aImageElem))
{
for(var j = 0; j < aImageElem.length; ++j)
{
var imageElem = aImageElem[j];
if (null != imageElem)
{
imageElem.SetUrl(name);
}
}
}
oImageMap[i] = name;
}
else
{
oImageMap[i] = aUrls[i];
}
}
}
window.USER_AGENT_MACOS = AscBrowser.isMacOs; window.USER_AGENT_MACOS = AscBrowser.isMacOs;
window.USER_AGENT_SAFARI_MACOS = AscBrowser.isSafariMacOs; window.USER_AGENT_SAFARI_MACOS = AscBrowser.isSafariMacOs;
window.USER_AGENT_IE = AscBrowser.isIE || AscBrowser.isOpera; window.USER_AGENT_IE = AscBrowser.isIE || AscBrowser.isOpera;
...@@ -2901,30 +2955,14 @@ PasteProcessor.prototype = ...@@ -2901,30 +2955,14 @@ PasteProcessor.prototype =
if(aContentExcel.arrImages && aContentExcel.arrImages.length) if(aContentExcel.arrImages && aContentExcel.arrImages.length)
{ {
var aImagesToDownload = []; var oObjectsForDownload = GetObjectsForImageDownload(aContentExcel.arrImages);
for(var i = 0; i < aContentExcel.arrImages.length; i++) sendImgUrls(oThis.api, oObjectsForDownload.aUrls, function (data) {
{ var oImageMap = {};
aImagesToDownload.push(aContentExcel.arrImages[i].Url); ResetNewUrls(data, oObjectsForDownload.aUrls, oObjectsForDownload.aBuilderImagesByUrl, oImageMap);
} var aContent = oThis._convertExcelBinary(aContentExcel);
sendImgUrls(oThis.api, aImagesToDownload, function (data) { oThis.aContent = aContent.content;
var image_map = {}; oThis.api.pre_Paste(aContent.fonts, oImageMap, fPrepasteCallback);
for (var i = 0, length = data.length; i < length; ++i) { });
var elem = data[i];
if (null != elem.url) {
var name = g_oDocumentUrls.imagePath2Local(elem.path);
var imageElem = aContentExcel.arrImages[i];
if (null != imageElem) {
imageElem.SetUrl(name);
}
image_map[i] = name;
} else {
image_map[i] = aImagesToDownload[i];
}
}
var aContent = oThis._convertExcelBinary(aContentExcel);
oThis.aContent = aContent.content;
oThis.api.pre_Paste(aContent.fonts, image_map, fPrepasteCallback);
});
} }
else else
{ {
...@@ -2951,25 +2989,11 @@ PasteProcessor.prototype = ...@@ -2951,25 +2989,11 @@ PasteProcessor.prototype =
} }
} }
this.aContent = aContent.content; this.aContent = aContent.content;
var oImagesToDownload = {}; //проверяем список фонтов
if(aContent.aPastedImages.length > 0) aContent.fonts = oThis._checkFontsOnLoad(aContent.fonts);
{
for(var i = 0, length = aContent.aPastedImages.length; i < length; ++i) var oObjectsForDownload = GetObjectsForImageDownload(aContent.aPastedImages);
{ if(oObjectsForDownload.aUrls.length > 0)
var imageElem = aContent.aPastedImages[i];
var src = imageElem.Url;
if(0 != src.indexOf("data:") && !g_oDocumentUrls.getImageLocal(src))
oImagesToDownload[src] = 1;
}
}
//проверяем список фонтов
aContent.fonts = oThis._checkFontsOnLoad(aContent.fonts);
var aImagesToDownload = [];
for(var i in oImagesToDownload)
aImagesToDownload.push(i);
if(aImagesToDownload.length > 0)
{ {
if(onlyBinary && window.NativeCorrectImageUrlOnPaste) if(onlyBinary && window.NativeCorrectImageUrlOnPaste)
{ {
...@@ -2985,27 +3009,15 @@ PasteProcessor.prototype = ...@@ -2985,27 +3009,15 @@ PasteProcessor.prototype =
imageElem.SetUrl(url); imageElem.SetUrl(url);
} }
} }
oThis.api.pre_Paste(aContent.fonts, aContent.images, fPrepasteCallback); oThis.api.pre_Paste(aContent.fonts, aContent.images, fPrepasteCallback);
} }
else else
{ {
sendImgUrls(oThis.api, aImagesToDownload, function (data) { sendImgUrls(oThis.api, oObjectsForDownload.aUrls, function (data)
for (var i = 0, length = data.length; i < length; ++i) { {
var elem = data[i]; ResetNewUrls(data, oObjectsForDownload.aUrls, oObjectsForDownload.aBuilderImagesByUrl, aContent.images);
if (null != elem.url) { oThis.api.pre_Paste(aContent.fonts, aContent.images, fPrepasteCallback);
var name = g_oDocumentUrls.imagePath2Local(elem.path); });
var imageElem = aContent.aPastedImages[i];
if (null != imageElem) {
imageElem.SetUrl(name);
}
aContent.images[i] = name;
} else {
aContent.images[i] = aImagesToDownload[i];
}
}
oThis.api.pre_Paste(aContent.fonts, aContent.images, fPrepasteCallback);
});
} }
} }
else else
...@@ -3096,7 +3108,7 @@ PasteProcessor.prototype = ...@@ -3096,7 +3108,7 @@ PasteProcessor.prototype =
} }
} }
} }
sendImgUrls(oThis.api, aImagesToDownload, function (data) { sendImgUrls(oThis.api, aImagesToDownload, function (data) {
var image_map = {}; var image_map = {};
for (var i = 0, length = data.length; i < length; ++i) { for (var i = 0, length = data.length; i < length; ++i) {
var elem = data[i]; var elem = data[i];
...@@ -3298,46 +3310,19 @@ PasteProcessor.prototype = ...@@ -3298,46 +3310,19 @@ PasteProcessor.prototype =
nodeDisplay.blur(); nodeDisplay.blur();
nodeDisplay.style.display = ELEMENT_DISPAY_STYLE; nodeDisplay.style.display = ELEMENT_DISPAY_STYLE;
} }
} };
var oImagesToDownload = {};
if(objects.arrImages.length > 0)
{
for(var i = 0, length = objects.arrImages.length; i < length; ++i)
{
var imageElem = objects.arrImages[i];
var src = imageElem.Url;
//TODO!!!!!!!!!!
//if(false == (0 == src.indexOf("data:") || 0 == src.indexOf(documentOrigin + this.api.DocumentUrl) || 0 == src.indexOf(this.api.DocumentUrl)))
oImagesToDownload[src] = 1;
}
}
//грузим картинки и фонты //грузим картинки и фонты
for(var i in font_map) for(var i in font_map)
fonts.push(new CFont(i, 0, "", 0)); fonts.push(new CFont(i, 0, "", 0));
var aImagesToDownload = [];
for(var i in oImagesToDownload) var oObjectsForDownload = GetObjectsForImageDownload(objects.arrImages);
aImagesToDownload.push(i); if(oObjectsForDownload.aUrls.length > 0)
if(aImagesToDownload.length > 0)
{ {
sendImgUrls(oThis.api, aImagesToDownload, function (data) { sendImgUrls(oThis.api, oObjectsForDownload.aUrls, function (data) {
var image_map = {}; var oImageMap = {};
for (var i = 0, length = data.length; i < length; ++i) { ResetNewUrls(data, oObjectsForDownload.aUrls, oObjectsForDownload.aBuilderImagesByUrl, oImageMap);
var elem = data[i]; oThis.api.pre_Paste(fonts, oImageMap, paste_callback);
if (null != elem.url) {
var name = g_oDocumentUrls.imagePath2Local(elem.path);
var imageElem = objects.arrImages[i];
if (null != imageElem) {
imageElem.SetUrl(name);
}
image_map[i] = name;
} else {
image_map[i] = aImagesToDownload[i];
}
}
oThis.api.pre_Paste(fonts, image_map, paste_callback);
}); });
} }
else else
...@@ -3590,41 +3575,16 @@ PasteProcessor.prototype = ...@@ -3590,41 +3575,16 @@ PasteProcessor.prototype =
var image_objects = loader.End_UseFullUrl(); var image_objects = loader.End_UseFullUrl();
var objects = {arrImages:image_objects}; var objects = {arrImages:image_objects};
var oImagesToDownload = {};
if(objects.arrImages.length > 0)
{
for(var i = 0, length = objects.arrImages.length; i < length; ++i)
{
var imageElem = objects.arrImages[i];
var src = imageElem.Url;
if(0 != src.indexOf("data:") && !g_oDocumentUrls.getImageLocal(src))
oImagesToDownload[src] = 1;
}
}
//load images //load images
var aImagesToDownload = [];
for(var i in oImagesToDownload) var oObjectsForDownload = GetObjectsForImageDownload(objects.arrImages);
aImagesToDownload.push(i); if(oObjectsForDownload.aUrls.length > 0)
if(aImagesToDownload.length > 0)
{ {
sendImgUrls(oThis.api, aImagesToDownload, function (data) { sendImgUrls(oThis.api, oObjectsForDownload.aUrls, function (data) {
var image_map = {}; var oImageMap = {};
for (var i = 0, length = data.length; i < length; ++i) { ResetNewUrls(data, oObjectsForDownload.aUrls, oObjectsForDownload.aBuilderImagesByUrl, oImageMap);
var elem = data[i]; oThis.api.pre_Paste(fonts, oImageMap, paste_callback);
if (null != elem.url) { });
var name = g_oDocumentUrls.imagePath2Local(elem.path);
var imageElem = objects.arrImages[i];
if (null != imageElem) {
imageElem.SetUrl(name);
}
image_map[i] = name;
} else {
image_map[i] = aImagesToDownload[i];
}
}
oThis.api.pre_Paste(fonts, image_map, paste_callback);
});
} }
else else
{ {
...@@ -3819,56 +3779,31 @@ PasteProcessor.prototype = ...@@ -3819,56 +3779,31 @@ PasteProcessor.prototype =
for(var i in font_map) for(var i in font_map)
fonts.push(new CFont(i, 0, "", 0)); fonts.push(new CFont(i, 0, "", 0));
var oObjectsForDownload = GetObjectsForImageDownload(aContent.aPastedImages);
var oImagesToDownload = []; if(oObjectsForDownload.aUrls.length > 0)
if(aContent.aPastedImages.length > 0)
{
for(var i = 0, length = aContent.aPastedImages.length; i < length; ++i)
{
var imageElem = aContent.aPastedImages[i];
var src = imageElem.Url;
if(0 != src.indexOf("data:") && !g_oDocumentUrls.getImageLocal(src))
oImagesToDownload[src] = 1;
}
}
var aImagesToDownload = [];
for(var i in oImagesToDownload)
aImagesToDownload.push(i);
if(aImagesToDownload.length > 0)
{ {
sendImgUrls(oThis.api, aImagesToDownload, function (data) { sendImgUrls(oThis.api, oObjectsForDownload.aUrls, function (data){
var image_map = {}; var oImageMap = {};
for (var i = 0, length = data.length; i < length; ++i) { ResetNewUrls(data, oObjectsForDownload.aUrls, oObjectsForDownload.aBuilderImagesByUrl, oImageMap);
var elem = data[i]; //ковертим изображения в презентационный формат
if (null != elem.url) { for (var i = 0; i < presentationSelectedContent.Drawings.length; i++)
var name = g_oDocumentUrls.imagePath2Local(elem.path); {
var imageElem = aContent.aPastedImages[i]; if (!(presentationSelectedContent.Drawings[i].Drawing instanceof CGraphicFrame))
if (null != imageElem) { {
imageElem.SetUrl(name); if (presentationSelectedContent.Drawings[i].Drawing.setBDeleted2)
} {
image_map[i] = name; presentationSelectedContent.Drawings[i].Drawing.setBDeleted2(true);
} else { }
image_map[i] = aImagesToDownload[i]; else
} {
} presentationSelectedContent.Drawings[i].Drawing.setBDeleted(true);
//ковертим изображения в презентационный формат }
for (var i = 0; i < presentationSelectedContent.Drawings.length; i++) { presentationSelectedContent.Drawings[i].Drawing = presentationSelectedContent.Drawings[i].Drawing.convertToPPTX(oThis.oDocument.DrawingDocument);
if (!(presentationSelectedContent.Drawings[i].Drawing instanceof CGraphicFrame)) { checkBlipFillRasterImages(presentationSelectedContent.Drawings[i].Drawing);
if (presentationSelectedContent.Drawings[i].Drawing.setBDeleted2) { }
presentationSelectedContent.Drawings[i].Drawing.setBDeleted2(true); }
} oThis.api.pre_Paste(fonts, oImageMap, paste_callback);
else { });
presentationSelectedContent.Drawings[i].Drawing.setBDeleted(true);
}
presentationSelectedContent.Drawings[i].Drawing = presentationSelectedContent.Drawings[i].Drawing.convertToPPTX(oThis.oDocument.DrawingDocument);
checkBlipFillRasterImages(presentationSelectedContent.Drawings[i].Drawing);
}
}
oThis.api.pre_Paste(fonts, image_map, paste_callback);
});
} }
else else
{ {
...@@ -3889,7 +3824,7 @@ PasteProcessor.prototype = ...@@ -3889,7 +3824,7 @@ PasteProcessor.prototype =
} }
else if(base64FromExcel)//вставляем в презентации из таблиц else if(base64FromExcel)//вставляем в презентации из таблиц
{ {
var excelContent = this._readFromBinaryExcel(base64FromExcel) var excelContent = this._readFromBinaryExcel(base64FromExcel);
var aContentExcel = excelContent.workbook; var aContentExcel = excelContent.workbook;
var aPastedImages = excelContent.arrImages; var aPastedImages = excelContent.arrImages;
...@@ -3922,9 +3857,7 @@ PasteProcessor.prototype = ...@@ -3922,9 +3857,7 @@ PasteProcessor.prototype =
var presentation = editor.WordControl.m_oLogicDocument; var presentation = editor.WordControl.m_oLogicDocument;
oThis = this; oThis = this;
var font_map = {}; var font_map = {};
var images = aContent.images;
var arrImages = aContent.aPastedImages;
var paste_callback = function() var paste_callback = function()
{ {
if(false == oThis.bNested) if(false == oThis.bNested)
...@@ -3948,25 +3881,18 @@ PasteProcessor.prototype = ...@@ -3948,25 +3881,18 @@ PasteProcessor.prototype =
for(var i in font_map) for(var i in font_map)
fonts.push(new CFont(i, 0, "", 0)); fonts.push(new CFont(i, 0, "", 0));
if(images.length > 0)
var images = aContent.images;
var arrImages = aContent.aPastedImages;
var oObjectsForDownload = GetObjectsForImageDownload(arrImages);
if(oObjectsForDownload.aUrls.length > 0)
{ {
sendImgUrls(oThis.api, images, function (data) { sendImgUrls(oThis.api, oObjectsForDownload.aUrls, function (data) {
var image_map = {}; var oImageMap = {};
for (var i = 0, length = data.length; i < length; ++i) { ResetNewUrls(data, oObjectsForDownload.aUrls, oObjectsForDownload.aBuilderImagesByUrl, oImageMap);
var elem = data[i]; oThis.api.pre_Paste(fonts, oImageMap, paste_callback);
if (null != elem.url) { });
var name = g_oDocumentUrls.imagePath2Local(elem.path);
var imageElem = arrImages[i];
if (null != imageElem) {
imageElem.SetUrl(name);
}
image_map[i] = name;
} else {
image_map[i] = images[i];
}
}
oThis.api.pre_Paste(fonts, image_map, paste_callback);
});
} }
else else
{ {
...@@ -3982,7 +3908,6 @@ PasteProcessor.prototype = ...@@ -3982,7 +3908,6 @@ PasteProcessor.prototype =
} }
} }
} }
this.oRootNode = node; this.oRootNode = node;
this._Prepeare(node, this._Prepeare(node,
function(){ function(){
...@@ -3992,11 +3917,9 @@ PasteProcessor.prototype = ...@@ -3992,11 +3917,9 @@ PasteProcessor.prototype =
//�� ����� ���������� �������� ��� ������� ��������� ������� //�� ����� ���������� �������� ��� ������� ��������� �������
var arrShapes = [], arrImages = [], arrTables = []; var arrShapes = [], arrImages = [], arrTables = [];
var presentation = editor.WordControl.m_oLogicDocument; var presentation = editor.WordControl.m_oLogicDocument;
var b_add_slide = false;
if(presentation.Slides.length === 0) if(presentation.Slides.length === 0)
{ {
presentation.addNextSlide(); presentation.addNextSlide();
b_add_slide = true;
} }
var shape = new CShape(); var shape = new CShape();
shape.setParent(presentation.Slides[presentation.CurPage]); shape.setParent(presentation.Slides[presentation.CurPage]);
...@@ -4025,7 +3948,6 @@ PasteProcessor.prototype = ...@@ -4025,7 +3948,6 @@ PasteProcessor.prototype =
arrShapes[i] = new DrawingCopyObject(shape, 0, 0, w, h); arrShapes[i] = new DrawingCopyObject(shape, 0, 0, w, h);
} }
var defaultTableStyleId = presentation.DefaultTableStyleId;
for(var i = 0; i < arrTables.length; ++i) for(var i = 0; i < arrTables.length; ++i)
{ {
shape = arrTables[i]; shape = arrTables[i];
...@@ -4044,7 +3966,6 @@ PasteProcessor.prototype = ...@@ -4044,7 +3966,6 @@ PasteProcessor.prototype =
arrShapes[arrShapes.length] = new DrawingCopyObject(shape, 0, 0, w, h); arrShapes[arrShapes.length] = new DrawingCopyObject(shape, 0, 0, w, h);
} }
var defaultTableStyleId = presentation.DefaultTableStyleId;
for(var i = 0; i < arrImages.length; ++i) for(var i = 0; i < arrImages.length; ++i)
{ {
shape = arrImages[i]; shape = arrImages[i];
...@@ -4057,86 +3978,27 @@ PasteProcessor.prototype = ...@@ -4057,86 +3978,27 @@ PasteProcessor.prototype =
arrShapes[arrShapes.length] = new DrawingCopyObject(shape, 0, 0, w, h); arrShapes[arrShapes.length] = new DrawingCopyObject(shape, 0, 0, w, h);
} }
var presentation = editor.WordControl.m_oLogicDocument; var presentation = editor.WordControl.m_oLogicDocument;
var font_map = {};
var images = [];
/*if(shape.getAllFonts)
shape.getAllFonts(font_map);*/
if(shape.getAllImages)
shape.getAllImages(images);
var oImagesToDownload = {};
if(objects && objects.arrImages.length > 0)
{
for(var i = 0, length = objects.arrImages.length; i < length; ++i)
{
var imageElem = objects.arrImages[i];
var src = imageElem.Url;
oImagesToDownload[src] = 1;
}
}
var aImagesToDownload = [];
for(var i in oImagesToDownload)
aImagesToDownload.push(i);
var slide = presentation.Slides[presentation.CurPage]; var slide = presentation.Slides[presentation.CurPage];
var targetDocContent = slide.graphicObjects.getTargetDocContent(); var targetDocContent = slide.graphicObjects.getTargetDocContent();
var paste_callback = function() if(targetDocContent && arrShapes.length === 1 && arrImages.length === 0 && arrTables.length === 0)
{
if(targetDocContent && arrShapes.length === 1 && arrImages.length === 0 && arrTables.length === 0)
{
if(presentation.Document_Is_SelectionLocked(changestype_Drawing_Props) === false)
{
var aNewContent = arrShapes[0].Drawing.txBody.content.Content;
oThis.InsertInPlacePresentation(aNewContent);
}
}
else
{
var presentationSelectedContent = new PresentationSelectedContent();
presentationSelectedContent.Drawings = arrShapes;
presentation.Insert_Content(presentationSelectedContent);
presentation.Recalculate();
presentation.Check_CursorMoveRight();
presentation.Document_UpdateInterfaceState();
}
}
var aContent = oThis.aContent;
if(aImagesToDownload.length > 0)
{
sendImgUrls(oThis.api, aImagesToDownload, function (data) {
var image_map = {};
for (var i = 0, length = data.length; i < length; ++i) {
var elem = data[i];
if (null != elem.url) {
var name = g_oDocumentUrls.imagePath2Local(elem.path);
var imageElem = aContent.aPastedImages[i];
if (null != imageElem) {
imageElem.SetUrl(name);
}
image_map[i] = name;
} else {
image_map[i] = aImagesToDownload[i];
}
}
oThis.api.pre_Paste(fonts, image_map, paste_callback);
});
}
else
{ {
oThis.SetShortImageId(aContent.aPastedImages); if(presentation.Document_Is_SelectionLocked(changestype_Drawing_Props) === false)
oThis.api.pre_Paste(aContent.fonts, aContent.images, paste_callback); {
var aNewContent = arrShapes[0].Drawing.txBody.content.Content;
oThis.InsertInPlacePresentation(aNewContent);
}
}
else
{
var presentationSelectedContent = new PresentationSelectedContent();
presentationSelectedContent.Drawings = arrShapes;
presentation.Insert_Content(presentationSelectedContent);
presentation.Recalculate();
presentation.Check_CursorMoveRight();
presentation.Document_UpdateInterfaceState();
} }
nodeDisplay.blur(); nodeDisplay.blur();
nodeDisplay.style.display = ELEMENT_DISPAY_STYLE; nodeDisplay.style.display = ELEMENT_DISPAY_STYLE;
}); });
...@@ -4209,6 +4071,12 @@ PasteProcessor.prototype = ...@@ -4209,6 +4071,12 @@ PasteProcessor.prototype =
tempParaRun.Content[0].Set_GraphicObject(graphicObj); tempParaRun.Content[0].Set_GraphicObject(graphicObj);
tempParaRun.Content[0].GraphicObj.setParent(tempParaRun.Content[0]); tempParaRun.Content[0].GraphicObj.setParent(tempParaRun.Content[0]);
var oGraphicObj = tempParaRun.Content[0].GraphicObj;
if(oGraphicObj.spPr && oGraphicObj.spPr.xfrm)
{
oGraphicObj.spPr.xfrm.setOffX(0);
oGraphicObj.spPr.xfrm.setOffY(0);
}
tempParaRun.Content[0].CheckWH(); tempParaRun.Content[0].CheckWH();
tempParagraph.Content.splice(tempParagraph.Content.length - 1, 0, tempParaRun); tempParagraph.Content.splice(tempParagraph.Content.length - 1, 0, tempParaRun);
......
...@@ -1755,6 +1755,11 @@ CPresentation.prototype = ...@@ -1755,6 +1755,11 @@ CPresentation.prototype =
{ {
bNeedRedraw = false; bNeedRedraw = false;
} }
var bChart = oDrawingObjects.checkChartTextSelection(true);
if(!bNeedRedraw)
{
bNeedRedraw = bChart;
}
if(e.ShiftKey || (!oDrawingObjects.selection.groupSelection && !oDrawingObjects.selection.textSelection && !oDrawingObjects.selection.chartSelection)) if(e.ShiftKey || (!oDrawingObjects.selection.groupSelection && !oDrawingObjects.selection.textSelection && !oDrawingObjects.selection.chartSelection))
{ {
oDrawingObjects.resetSelection(); oDrawingObjects.resetSelection();
......
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