New OO build, delete unused files

This commit is contained in:
yflory
2020-01-23 17:26:29 +01:00
parent 0f085e22dc
commit dd94091fae
92 changed files with 10 additions and 1395 deletions
+1 -1
View File
@@ -1649,7 +1649,7 @@ oContext.moveTo(0,0);oContext.lineTo(nWidth,0);oContext.lineTo(nWidth,nHeight);o
(function(window,undefined){var asc=window["Asc"];var prot;var c_oAscAdvancedOptionsAction=AscCommon.c_oAscAdvancedOptionsAction;var c_oAscLockTypes=AscCommon.c_oAscLockTypes;var CColor=AscCommon.CColor;var g_oDocumentUrls=AscCommon.g_oDocumentUrls;var sendCommand=AscCommon.sendCommand;var parserHelp=AscCommon.parserHelp;var g_oIdCounter=AscCommon.g_oIdCounter;var g_oTableId=AscCommon.g_oTableId;var c_oAscLockTypeElem=AscCommonExcel.c_oAscLockTypeElem;var c_oAscError=asc.c_oAscError;var c_oAscFileType=
asc.c_oAscFileType;var c_oAscAsyncAction=asc.c_oAscAsyncAction;var c_oAscAdvancedOptionsID=asc.c_oAscAdvancedOptionsID;var c_oAscAsyncActionType=asc.c_oAscAsyncActionType;var History=null;function spreadsheet_api(config){AscCommon.baseEditorsApi.call(this,config,AscCommon.c_oEditorId.Spreadsheet);this.topLineEditorName=config["id-input"]||"";this.topLineEditorElement=null;this.controller=null;this.handlers=new AscCommonExcel.asc_CHandlersList;this.fontRenderingMode=Asc.c_oAscFontRenderingModeType.hintingAndSubpixeling;
this.wb=null;this.wbModel=null;this.tmpLocale=null;this.tmpLocalization=null;this.defaultLanguage=1033;this.spellcheckState=new AscCommonExcel.CSpellcheckState;this.documentFormatSave=c_oAscFileType.XLSX;this._gui_control_colors=null;this.GuiControlColorsMap=null;this.IsSendStandartColors=false;this.asyncMethodCallback=undefined;this.FontLoadWaitComplete=false;this.oRedoObjectParamNative=null;this.collaborativeEditing=null;this.autoSaveGapRealTime=30;this.isStartAddShape=false;this.shapeElementId=
null;this.textArtElementId=null;this.isImageChangeUrl=false;this.isShapeImageChangeUrl=false;this.isTextArtChangeUrl=false;this.textureType=null;this.styleThumbnailWidth=112;this.styleThumbnailHeight=38;this.formulasList=null;this.openingEnd={bin:false,xlsxStart:false,xlsx:false,data:null};if(window.editor==undefined)window.editor=this;this._init();return this}spreadsheet_api.prototype=Object.create(AscCommon.baseEditorsApi.prototype);spreadsheet_api.prototype.constructor=spreadsheet_api;spreadsheet_api.prototype.sendEvent=
null;this.textArtElementId=null;this.isImageChangeUrl=false;this.isShapeImageChangeUrl=false;this.isTextArtChangeUrl=false;this.textureType=null;this.styleThumbnailWidth=112;this.styleThumbnailHeight=38;this.formulasList=null;this.openingEnd={bin:false,xlsxStart:false,xlsx:false,data:null};if(window.editor==undefined)window.editorCell=this;this._init();return this}spreadsheet_api.prototype=Object.create(AscCommon.baseEditorsApi.prototype);spreadsheet_api.prototype.constructor=spreadsheet_api;spreadsheet_api.prototype.sendEvent=
function(){this.handlers.trigger.apply(this.handlers,arguments)};spreadsheet_api.prototype._init=function(){AscCommon.baseEditorsApi.prototype._init.call(this);this.topLineEditorElement=document.getElementById(this.topLineEditorName);asc["editor"]=asc["editor"]||this};spreadsheet_api.prototype._loadSdkImages=function(){var aImages=AscCommonExcel.getIconsForLoad();aImages.push(AscCommonExcel.sFrozenImageUrl,AscCommonExcel.sFrozenImageRotUrl);this.ImageLoader.bIsAsyncLoadDocumentImages=false;this.ImageLoader.LoadDocumentImages(aImages);
this.ImageLoader.bIsAsyncLoadDocumentImages=true};spreadsheet_api.prototype.asc_CheckGuiControlColors=function(){var arr_colors=new Array(10);var _count=arr_colors.length;for(var i=0;i<_count;++i){var color=AscCommonExcel.g_oColorManager.getThemeColor(i);arr_colors[i]=new CColor(color.getR(),color.getG(),color.getB())}var bIsSend=false;if(this.GuiControlColorsMap!=null)for(var i=0;i<_count;++i){var _color1=this.GuiControlColorsMap[i];var _color2=arr_colors[i];if(_color1.r!==_color2.r||_color1.g!==
_color2.g||_color1.b!==_color2.b){bIsSend=true;break}}else{this.GuiControlColorsMap=new Array(_count);bIsSend=true}if(bIsSend){for(var i=0;i<_count;++i)this.GuiControlColorsMap[i]=arr_colors[i];this.asc_SendControlColors()}};spreadsheet_api.prototype.asc_SendControlColors=function(){var standart_colors=null;if(!this.IsSendStandartColors){var standartColors=AscCommon.g_oStandartColors;var _c_s=standartColors.length;standart_colors=new Array(_c_s);for(var i=0;i<_c_s;++i)standart_colors[i]=new CColor(standartColors[i].R,
@@ -3214,7 +3214,7 @@ x,y,pageIndex){if(this.drawingObjects.handleEventMode===HANDLE_EVENT_MODE_CURSOR
HANDLE_EVENT_MODE_CURSOR)return{objectId:this.majorObject.Id,cursorType:"text"}},onMouseMove:function(e,x,y,pageIndex){if(!e.IsLocked){this.onMouseUp(e,x,y,pageIndex);return}if(AscFormat.isRealNumber(this.startX)&&AscFormat.isRealNumber(this.startY)){if(Math.abs(this.startX-x)<.001&&Math.abs(this.startY-y)<.001)return;this.startX=undefined;this.startY=undefined}this.majorObject.selectionSetEnd(e,x,y,pageIndex);if(!(this.majorObject.getObjectType()===AscDFH.historyitem_type_GraphicFrame&&this.majorObject.graphicObject.Selection.Type2===
table_Selection_Border))this.drawingObjects.updateSelectionState()},onMouseUp:function(e,x,y,pageIndex){var oldCtrl;if(this.drawingObjects.isSlideShow()){oldCtrl=e.CtrlKey;e.CtrlKey=true}this.majorObject.selectionSetEnd(e,x,y,pageIndex);if(this.drawingObjects.isSlideShow())e.CtrlKey=oldCtrl;this.drawingObjects.updateSelectionState();this.drawingObjects.drawingObjects.sendGraphicObjectProps();this.drawingObjects.changeCurrentState(new NullState(this.drawingObjects));this.drawingObjects.handleEventMode=
HANDLE_EVENT_MODE_CURSOR;this.drawingObjects.noNeedUpdateCursorType=true;var cursor_type=this.drawingObjects.curState.onMouseDown(e,x,y,pageIndex);if(cursor_type&&cursor_type.hyperlink){this.drawingObjects.drawingObjects.showDrawingObjects(true);if(this.drawingObjects.isSlideShow())this.drawingObjects.getEditorApi().sync_HyperlinkClickCallback(cursor_type.hyperlink.Value)}this.drawingObjects.noNeedUpdateCursorType=false;this.drawingObjects.handleEventMode=HANDLE_EVENT_MODE_HANDLE;if(editor&&AscCommon.c_oAscFormatPainterState.kOff!==
editor.isPaintFormat){if(AscCommon.c_oAscFormatPainterState.kOn===editor.isPaintFormat)editor.sync_PaintFormatCallback(c_oAscFormatPainterState.kOff)}}};function SplineBezierState(drawingObjects){this.drawingObjects=drawingObjects;this.polylineFlag=true}SplineBezierState.prototype={onMouseDown:function(e,x,y,pageIndex){if(this.drawingObjects.handleEventMode===HANDLE_EVENT_MODE_CURSOR)return{objectId:"1",bMarker:true,cursorType:"crosshair"};this.drawingObjects.startTrackPos=
editor.isPaintFormat){this.drawingObjects.paragraphFormatPaste2();if(AscCommon.c_oAscFormatPainterState.kOn===editor.isPaintFormat)editor.sync_PaintFormatCallback(c_oAscFormatPainterState.kOff)}}};function SplineBezierState(drawingObjects){this.drawingObjects=drawingObjects;this.polylineFlag=true}SplineBezierState.prototype={onMouseDown:function(e,x,y,pageIndex){if(this.drawingObjects.handleEventMode===HANDLE_EVENT_MODE_CURSOR)return{objectId:"1",bMarker:true,cursorType:"crosshair"};this.drawingObjects.startTrackPos=
{x:x,y:y,pageIndex:pageIndex};this.drawingObjects.clearTrackObjects();this.drawingObjects.addTrackObject(new AscFormat.Spline(this.drawingObjects,this.drawingObjects.getTheme(),null,null,null,pageIndex));this.drawingObjects.arrTrackObjects[0].path.push(new AscFormat.SplineCommandMoveTo(x,y));this.drawingObjects.changeCurrentState(new SplineBezierState33(this.drawingObjects,x,y,pageIndex));this.drawingObjects.checkChartTextSelection();this.drawingObjects.resetSelection();this.drawingObjects.updateOverlay()},
onMouseMove:function(e,X,Y,pageIndex){},onMouseUp:function(e,X,Y,pageIndex){if(Asc["editor"])Asc["editor"].asc_endAddShape();else if(editor&&editor.sync_EndAddShape)editor.sync_EndAddShape();this.drawingObjects.changeCurrentState(new NullState(this.drawingObjects));this.drawingObjects.curState.updateAnchorPos()}};function SplineBezierState33(drawingObjects,startX,startY,pageIndex){this.drawingObjects=drawingObjects;this.polylineFlag=true;this.pageIndex=pageIndex}SplineBezierState33.prototype={onMouseDown:function(e,
x,y,pageIndex){if(this.drawingObjects.handleEventMode===HANDLE_EVENT_MODE_CURSOR)return{objectId:"1",bMarker:true,cursorType:"crosshair"}},onMouseMove:function(e,x,y,pageIndex){var startPos=this.drawingObjects.startTrackPos;if(startPos.x===x&&startPos.y===y&&startPos.pageIndex===pageIndex)return;var tr_x,tr_y;if(pageIndex===startPos.pageIndex){tr_x=x;tr_y=y}else{var tr_point=this.drawingObjects.getDrawingDocument().ConvertCoordsToAnotherPage(x,y,pageIndex,startPos.pageIndex);tr_x=tr_point.X;tr_y=
@@ -1,17 +0,0 @@
plus.png
x:6 y:6
plus_2x.png
x:12 y:12
plus_copy.png
x:6 y:12
plus_copy_2x.png
x:12 y:25
text_copy.png
x:2 y:11
text_copy_2x.png
x:5 y:23
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.

Before

Width:  |  Height:  |  Size: 131 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 163 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 540 KiB

File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

File diff suppressed because one or more lines are too long
Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.

Before

Width:  |  Height:  |  Size: 384 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 362 KiB

File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.

Before

Width:  |  Height:  |  Size: 704 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 837 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1001 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 870 B