New OO build, delete unused files

pull/1/head
yflory 5 years ago
parent 0f085e22dc
commit dd94091fae

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 102 KiB

@ -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= (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; 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= 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); 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!== 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, _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=== 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= 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!== 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()}, {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, 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= 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

@ -1,346 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>ONLYOFFICE Documents</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=IE8"/>
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-touch-fullscreen" content="yes">
<style type="text/css">
html {
height: 100%;
}
body {
height: 100%;
margin: 0;
padding: 0;
overflow: hidden;
}
#wrap {
position:absolute;
left:0;
top:0;
right:0;
bottom:0;
}
</style>
</head>
<body>
<div id="wrap">
<div id="placeholder"></div>
</div>
<script type="text/javascript" src="api.js"></script>
<script>
(function() {
// Url parameters
var urlParams = getUrlParams(),
cfg = getEditorConfig(urlParams),
doc = getDocumentData(urlParams);
// Document Editor
var docEditor = new DocsAPI.DocEditor('placeholder', {
type: urlParams['type'],
width: '100%',
height: '100%',
documentType: urlParams['doctype'] || 'text',
document: doc,
editorConfig: cfg,
events: {
'onReady': onDocEditorReady,
'onDocumentStateChange': onDocumentStateChange,
'onRequestEditRights': onRequestEditRights,
'onRequestHistory': onRequestHistory,
'onRequestHistoryData': onRequestHistoryData,
'onRequestEmailAddresses': onRequestEmailAddresses,
'onRequestStartMailMerge': onRequestStartMailMerge,
'onRequestHistoryClose': onRequestHistoryClose,
'onError': onError
}
});
// Document Editor event handlers
function onRequestEmailAddresses() {
docEditor.setEmailAddresses({emailAddresses: ['aaa@mail.ru'], createEmailAccountUrl: 'http://ya.ru'});
}
function onRequestHistory() {
docEditor.refreshHistory({
'currentVersion': 3,
'history': [
{
'user': {
id: '8952d4ee-e8a5-42bf-86f0-6cd77801ec15',
name: 'Татьяна Щербакова'
},
'changes': null,
'created': '1/18/2015 6:38 PM',
'version': 1,
'versionGroup': 1,
'key': 'wyX9AwRq_677SWKjhfk='
},
{
'user': {
id: '8952d4ee-e8a5-42bf-86f0-6cd77801ec15',
name: 'Татьяна Щербакова'
},
'changes': [
{
'user': {
id: '8952d4ee-e8a5-42bf-86f0-6cd77801ec15',
name: 'Татьяна Щербакова'
},
'created': '1/19/2015 6:30 PM'
},
{
'user': {
'id': '8952d4ee-e8a5-42bf-11f0-6cd77801ec15',
'name': 'Александр Трофимов'
},
'created': '1/19/2015 6:32 PM'
},
{
'user': {
id: '8952d4ee-e8a5-42bf-86f0-6cd77801ec15',
name: 'Татьяна Щербакова'
},
'created': '1/19/2015 6:38 PM'
}
],
'created': '2/19/2015 6:38 PM',
'version': 2,
'versionGroup': 1,
'key': 'wyX9AwRq_677SWKjhfk='
},
{
'user': {
id: '895255ee-e8a5-42bf-86f0-6cd77801ec15',
name: 'Me'
},
'changes': null,
'created': '2/21/2015 6:38 PM',
'version': 3,
'versionGroup': 2,
'key': 'wyX9AwRq_677SWKjhfk='
},
{
'user': {
id: '8952d4ee-e8a5-42bf-11f0-6cd77801ec15',
name: 'Александр Трофимов'
},
'changes': null,
'created': '2/22/2015 6:37 PM',
'version': 4,
'versionGroup': 3,
'key': 'wyX9AwRq_677SWKjhfk='
},
{
'user': {
id: '8952d4ee-e8a5-42bf-11f0-6cd33801ec15',
name: 'Леонид Орлов'
},
'changes': null,
'created': '2/24/2015 6:29 PM',
'version': 5,
'versionGroup': 3,
'key': 'wyX9AwRq_677SWKjhfk='
}]
});
}
function onRequestHistoryData(revision) {
docEditor.setHistoryData(
{
'version': revision.data,
'url': 'http://isa2',
'urlDiff': 'http://isa2',
'changesUrl': 'http://isa2'
}
);
}
function onRequestStartMailMerge() {
docEditor.processMailMerge(true, 'some error message');
}
function onRequestHistoryClose() {
// reload page
}
function onDocEditorReady(event) {
if (event.target) {
//console.log('Ready! Editor: ', event.target);
}
}
function onDocumentStateChange(event) {
var isModified = event.data;
//console.log(isModified);
}
function onRequestEditRights(event) {
// occurs whenever the user tryes to enter edit mode
docEditor.applyEditRights(true, "Someone is editing this document right now. Please try again later.");
}
function onError(event) {
// critical error happened
// examine event.data.errorCode and event.data.errorDescription for details
}
function onDownloadAs(event) {
// return url of downloaded doc
// console.log(event.data);
}
// helpers
function getUrlParams() {
var e,
a = /\+/g, // Regex for replacing addition symbol with a space
r = /([^&=]+)=?([^&]*)/g,
d = function (s) { return decodeURIComponent(s.replace(a, " ")); },
q = window.location.search.substring(1),
urlParams = {};
while (e = r.exec(q))
urlParams[d(e[1])] = d(e[2]);
return urlParams;
}
function getDocumentData(urlParams) {
return {
key: urlParams["key"],
url: urlParams["url"] || '_offline_',
title: urlParams["title"],
fileType: urlParams["filetype"],
vkey: urlParams["vkey"],
permissions: {
edit: true,
download: true,
reader: true
}
};
}
function getEditorConfig(urlParams) {
return {
mode : urlParams["mode"] || 'edit',
lang : urlParams["lang"] || 'en',
canCoAuthoring : true,
createUrl : 'http://www.example.com/create',
user: {
id: urlParams["userid"] || 'uid-901', firstname: urlParams["userfname"] || 'Mitchell', lastname: urlParams["userlname"] || 'Hamish'
},
recent : [
{title: 'Memory.docx', url: 'http://onlyoffice.com', folder: 'Document Editor'},
{title: 'Description.doc', url: 'http://onlyoffice.com', folder: 'Document Editor'},
{title: 'DocEditor_right.xsl', url: 'http://onlyoffice.com', folder: 'Spreadsheet Editor'},
{title: 'api.rtf', url: 'http://onlyoffice.com', folder: 'Unnamed folder'}
],
// templates : [
// {name: 'Contracts', icon: '../../api/documents/resources/templates/contracts.png', url: 'http://...'},
// {name: 'Letter', icon: '../../api/documents/resources/templates/letter.png', url: 'http://...'},
// {name: 'List', icon: '../../api/documents/resources/templates/list.png', url: 'http://...'},
// {name: 'Plan', icon: '../../api/documents/resources/templates/plan.png', url: 'http://...'}
// ],
embedded : {
embedUrl : 'http://onlyoffice.com/embed',
fullscreenUrl : 'http://onlyoffice.com/fullscreen',
saveUrl : 'http://onlyoffice.com/download',
shareUrl : 'http://tl.com/72b4la97',
toolbarDocked : 'top'
}
,customization: {
// logo: {
// image: 'https://dylnrgbh910l3.cloudfront.net/studio/tag/i8.8.237/skins/default/images/onlyoffice_logo/editor_logo_general.png', // default size 86 x 20
// imageEmbedded: 'https://d2hw9csky753gb.cloudfront.net/studio/tag/i8.8.237/skins/default/images/onlyoffice_logo/editor_embedded_logo.png', // default size 124 x 20
// url: 'http://...'
// },
// backgroundColor: '#ffffff',
// textColor: '#ff0000',
// customer: {
// name: 'SuperPuper',
// address: 'New-York, 125f-25',
// mail: 'support@gmail.com',
// www: 'www.superpuper.com',
// info: 'Some info',
// logo: 'https://img.imgsmail.ru/r/default/portal/0.1.29/logo.png' // default size 216 x 35
// },
// goback: {text: 'Go To London', url: 'http://...'},
about: true,
feedback: true
}
};
}
// Mobile version
function isMobile(){
var prefixes = {
ios: 'i(?:Pad|Phone|Pod)(?:.*)CPU(?: iPhone)? OS ',
android: '(Android |HTC_|Silk/)',
blackberry: 'BlackBerry(?:.*)Version\/',
rimTablet: 'RIM Tablet OS ',
webos: '(?:webOS|hpwOS)\/',
bada: 'Bada\/'
},
i, prefix, match;
for (i in prefixes){
if (prefixes.hasOwnProperty(i)) {
prefix = prefixes[i];
if (navigator.userAgent.match(new RegExp('(?:'+prefix+')([^\\s;]+)')))
return true;
}
}
return false;
}
var fixSize = function() {
var wrapEl = document.getElementById('wrap');
if (wrapEl){
wrapEl.style.height = screen.availHeight + 'px';
window.scrollTo(0, -1);
wrapEl.style.height = window.innerHeight + 'px';
}
};
var fixIpadLandscapeIos7 = function() {
if (navigator.userAgent.match(/iPad;.*CPU.*OS 7_\d/i)) {
var wrapEl = document.getElementById('wrap');
if (wrapEl){
wrapEl.style.position = "fixed";
wrapEl.style.bottom = 0;
wrapEl.style.width = "100%";
}
}
};
if (isMobile()){
window.addEventListener('load', fixSize);
window.addEventListener('resize', fixSize);
fixIpadLandscapeIos7();
}
})();
</script>
</body>
</html>

File diff suppressed because one or more lines are too long

@ -1,55 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>Create forms</title>
<meta charset="utf-8" />
<meta name="description" content="Insert rich text content controls to create a form with input fields that can be filled in by other users, or protect some parts of the document from being edited or deleted" />
<link type="text/css" rel="stylesheet" href="../editor.css" />
<script type="text/javascript" src="../callback.js"></script>
</head>
<body>
<div class="mainpart">
<h1>Create forms</h1>
<p>Using rich text content controls you can create a form with input fields that can be filled in by other users, or protect some parts of the document from being edited or deleted. Rich text content controls are objects containing text that can be formatted. Inline controls cannot contain more than one paragraph, while floating controls can contain several paragraphs, lists, and objects (images, shapes, tables etc.). </p>
<h3>Adding controls</h3>
<p>To create a new <b>inline</b> control,</p>
<ol>
<li>position the insertion point within a line of the text where you want the control to be added,<br />or select a text passage you want to become the control contents.</li>
<li>press <b>Shift+F1</b></li>
</ol>
<p>The control will be inserted at the insertion point within a line of the existing text. Inline controls do not allow adding line breaks and cannot contain other objects such as images, tables etc.</p>
<p><img alt="New inline content control" src="../images/addedcontentcontrol.png" /></p>
<p>To create a new <b>floating</b> control,</p>
<ol>
<li>position the insertion point at the end of a paragraph after which you want the control to be added,<br />or select one or more of the existing paragraphs you want to become the control contents.</li>
<li>press <b>Shift+F2</b></li>
</ol>
<p>The control will be inserted in a new paragraph. Floating controls allow adding line breaks, i.e. can contain multiple paragraphs as well as some objects, such as images, tables, other content controls etc.</p>
<p><img alt="Floating content control" src="../images/floatingcontentcontrol.png" /></p>
<p class="note"><b>Note</b>: The content control border is visible when the control is selected only. The borders do not appear on a printed version.</p>
<h3>Moving controls</h3>
<p>Controls can be <b>moved</b> to another place in the document: click the button to the left of the control border to select the control and drag it without releasing the mouse button to another position in the document text.</p>
<p><img alt="Moving content control" src="../images/movecontentcontrol.png" /></p>
<p>You can also <b>copy and paste</b> inline controls: select the necessary control and use the <b>Ctrl+C/Ctrl+V</b> key combinations.</p>
<h3>Editing control contents</h3>
<p>To switch to the control editing mode, press <b>Shift+F9</b>. You will be able to navigate between the controls only using the keyboard arrow buttons. <!--To exit from this mode and be able to edit regular text in your document--></p>
<p>Replace the default text within the control ("Your text here") with your own one: select the default text, press the <b>Delete</b> key and type in a new text or copy a text passage from anywhere and paste it into the content control.</p>
<p>Text within the rich text content control of any type (both inline and floating) can be formatted using the icons on the top toolbar: you can adjust the <a href="../UsageInstructions/FontTypeSizeColor.htm" onclick="onhyperlinkclick(this)">font type, size, color</a>, apply <a href="../UsageInstructions/DecorationStyles.htm" onclick="onhyperlinkclick(this)">decoration styles</a> and <a href="../UsageInstructions/FormattingPresets.htm" onclick="onhyperlinkclick(this)">formatting presets</a>. It's also possible to use the <b>Paragraph - Advanced settings</b> window accessible from the contextual menu or from the right sidebar to change the text properties. Text within floating controls can be formatted like a regular text of the document, i.e. you can set <a href="../UsageInstructions/LineSpacing.htm" onclick="onhyperlinkclick(this)">line spacing</a>, change <a href="../UsageInstructions/ParagraphIndents.htm" onclick="onhyperlinkclick(this)">paragraph indents</a>, adjust <a href="../UsageInstructions/SetTabStops.htm" onclick="onhyperlinkclick(this)">tab stops</a>.</p>
<h3>Protecting controls</h3>
<p>You can prevent users from editing or deleting some individual content controls. Use one of the following keyboard shortcuts:</p>
<ul>
<li>To protect a control from being edited (but not from being deleted), select the necessary control and press <b>Shift+F6</b></li>
<li>To protect a control from being deleted (but not from being edited), select the necessary control and press <b>Shift+F7</b></li>
<li>To protect a control from being both edited and deleted, select the necessary control and press <b>Shift+F8</b></li>
<li>To disable the protection from editing/deleting, select the necessary control and press <b>Shift+F5</b></li>
</ul>
<h3>Removing controls</h3>
<p>If you do not need a control anymore, you can use one of the following keyboard shortcuts:</p>
<ul>
<li>To remove a control and all its contents, select the necessary control and press <b>Shift+F3</b></li>
<li>To remove a control and leave all its contents, select the necessary control and press <b>Shift+F4</b></li>
</ul>
</div>
</body>
</html>

@ -1,55 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>Создание форм</title>
<meta charset="utf-8" />
<meta name="description" content="Вставляйте элементы управления содержимым 'форматированный текст' создать форму с полями ввода, которую могут заполнять другие пользователи, или защитить некоторые части документа от редактирования или удаления" />
<link type="text/css" rel="stylesheet" href="../editor.css" />
<script type="text/javascript" src="../callback.js"></script>
</head>
<body>
<div class="mainpart">
<h1>Создание форм</h1>
<p>Используя элементы управления содержимым "форматированный текст", вы можете создать форму с полями ввода, которую могут заполнять другие пользователи, или защитить некоторые части документа от редактирования или удаления. Элементы управления содержимым "форматированный текст" - это объекты, содержащие текст, который можно форматировать. Встроенные элементы управления могут содержать не более одного абзаца, тогда как плавающие элементы управления могут содержать несколько абзацев, списки и объекты (изображения, фигуры, таблицы и так далее). </p>
<h3>Добавление элементов управления</h3>
<p>Для создания нового <b>встроенного</b> элемента управления,</p>
<ol>
<li>установите курсор в строке текста там, где требуется добавить элемент управления,<br />или выделите фрагмент текста, который должен стать содержимым элемента управления.</li>
<li>нажмите сочетание клавиш <b>Shift+F1</b></li>
</ol>
<p>Элемент управления будет вставлен в позицию курсора в строке существующего текста. Встроенные элементы управления не позволяют добавлять разрывы строки и не могут содержать другие объекты, такие как изображения, таблицы и так далее.</p>
<p><img alt="Новый встроенный элемент управления" src="../images/addedcontentcontrol.png" /></p>
<p>Для создания нового <b>плавающего</b> элемента управления,</p>
<ol>
<li>установите курсор в конце абзаца, после которого требуется добавить элемент управления,<br />или выделите один или несколько существующих абзацев, которые должны стать содержимым элемента управления.</li>
<li>нажмите сочетание клавиш <b>Shift+F2</b></li>
</ol>
<p>Элемент управления будет вставлен в новом абзаце. Плавающие элементы управления позволяют добавлять разрывы строки, то есть могут содержать несколько абзацев, а также какие-либо объекты, такие как изображения, таблицы, другие элементы управления содержимым и так далее.</p>
<p><img alt="Плавающий элемент управления" src="../images/floatingcontentcontrol.png" /></p>
<p class="note"><b>Примечание</b>: Граница элемента управления содержимым видна только при выделении элемента управления. Границы не отображаются в печатной версии.</p>
<h3>Перемещение элементов управления</h3>
<p>Элементы управления можно <b>перемещать</b> на другое место в документе: нажмите на кнопку слева от границы элемента управления, чтобы выделить элемент управления, и перетащите его, не отпуская кнопку мыши, на другое место в тексте документа.</p>
<p><img alt="Перемещение элементов управления" src="../images/movecontentcontrol.png" /></p>
<p>Встроенные элементы управления можно также <b>копировать и вставлять</b>: выделите нужный элемент управления и используйте сочетания клавиш <b>Ctrl+C/Ctrl+V</b>.</p>
<h3>Редактирование содержимого элементов управления</h3>
<p>Для перехода в режим редактирования элементов управления нажмите сочетание клавиш <b>Shift+F9</b>. Вы сможете перемещаться только между элементами управления, используя кнопки со стрелками на клавиатуре. <!--To exit from this mode and be able to edit regular text in your document--></p>
<p>Замените стандартный текст в элементе управления ("Введите ваш текст") на свой собственный: выделите стандартный текст, нажмите клавишу <b>Delete</b> и введите новый текст или скопируйте откуда-нибудь фрагмент текста и вставьте его в элемент управления содержимым.</p>
<p>Текст внутри элемента управления содержимым "форматированный текст" любого типа (и встроенного, и плавающего) можно отформатировать с помощью значков на верхней панели инструментов: вы можете изменить <a href="../UsageInstructions/FontTypeSizeColor.htm" onclick="onhyperlinkclick(this)">тип, размер, цвет шрифта</a>, применить <a href="../UsageInstructions/DecorationStyles.htm" onclick="onhyperlinkclick(this)">стили оформления</a> и <a href="../UsageInstructions/FormattingPresets.htm" onclick="onhyperlinkclick(this)">предустановленные стили форматирования</a>. Для изменения свойств текста можно также использовать окно <b>Абзац - Дополнительные параметры</b>, доступное из контекстного меню или с правой боковой панели. Текст в плавающих элементах управления можно форматировать, как обычный текст документа, то есть вы можете задать <a href="../UsageInstructions/LineSpacing.htm" onclick="onhyperlinkclick(this)">междустрочный интервал</a>, изменить <a href="../UsageInstructions/ParagraphIndents.htm" onclick="onhyperlinkclick(this)">отступы абзаца</a>, настроить <a href="../UsageInstructions/SetTabStops.htm" onclick="onhyperlinkclick(this)">позиции табуляции</a>.</p>
<h3>Защита элементов управления</h3>
<p>Можно запретить пользователям редактирование или удаление некоторых отдельных элементов управления содержимым. Используйте одно из следующих сочетаний клавиш:</p>
<ul>
<li>Чтобы защитить элемент управления от редактирования (но не от удаления), выделите нужный элемент управления и нажмите сочетание клавиш <b>Shift+F6</b></li>
<li>Чтобы защитить элемент управления от удаления (но не от редактирования), выделите нужный элемент управления и нажмите сочетание клавиш <b>Shift+F7</b></li>
<li>Чтобы защитить элемент управления от редактирования и удаления одновременно, выделите нужный элемент управления и нажмите сочетание клавиш <b>Shift+F8</b></li>
<li>Чтобы снять защиту от редактирования/удаления, выделите нужный элемент управления и нажмите сочетание клавиш <b>Shift+F5</b></li>
</ul>
<h3>Удаление элементов управления</h3>
<p>Если вам больше не нужен какой-то элемент управления, вы можете использовать одно из следующих сочетаний клавиш:</p>
<ul>
<li>Чтобы удалить элемент управления и все его содержимое, выделите нужный элемент управления и нажмите сочетание клавиш <b>Shift+F3</b></li>
<li>Чтобы удалить элемент управления и оставить все его содержимое, выделите нужный элемент управления и нажмите сочетание клавиш <b>Shift+F4</b></li>
</ul>
</div>
</body>
</html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 584 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

File diff suppressed because one or more lines are too long

@ -1,39 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>FV Function</title>
<meta charset="utf-8" />
<meta name="description" content="" />
<link type="text/css" rel="stylesheet" href="../editor.css" />
</head>
<body>
<div class="mainpart">
<h1>FV Function</h1>
<p>The <b>FV</b> function is one of the financial functions. It is used to calculate the future value of an investment based on a specified interest rate and a constant payment schedule.</p>
<p>The <b>FV</b> function syntax is:</p>
<p style="text-indent: 150px;"><b><em>FV(rate, nper, pmt [, [pv] [,[type]]])</em></b></p>
<p><em>where</em></p>
<p style="text-indent: 50px;"><b><em>rate</em></b> is the interest rate for the investment.</p>
<p style="text-indent: 50px;"><b><em>nper</em></b> is a number of payments.</p>
<p style="text-indent: 50px;"><b><em>pmt</em></b> is a payment amount.</p>
<p style="text-indent: 50px;"><b><em>pv</em></b> is a present value of the payments. It is an optional argument. If it is omitted, the function will assume <b><em>pv</em></b> to be 0.</p>
<p style="text-indent: 50px;"><b><em>type</em></b> is a period when the payments are due. It is an optional argument. If it is set to 0 or omitted, the function will assume the payments to be due at the end of the period. If <b><em>type</em></b> is set to 1, the payments are due at the beginning of the period.</p>
<p class="note"><b>Note:</b> cash paid out (such as deposits to savings) is represented by negative numbers; cash received (such as dividend checks) is represented by positive numbers.</p>
<p>The numeric values can be entered manually or included into the cell you make reference to.</p>
<p>To apply the <b>FV</b> function,</p>
<ol>
<li>select the cell where you wish to display the result,</li>
<li>click the <b>Insert Function</b> <img alt="Insert Function icon" src="../images/insertfunction.png" /> icon situated at the top toolbar,
<br />or right-click within a selected cell and select the <b>Insert Function</b> option from the menu,
<br />or click the <img alt="Function icon" src="../images/function.png" /> icon situated at the formula bar,
</li>
<li>select the <b>Financial</b> function group from the list,</li>
<li>click the <b>FV</b> function,</li>
<li>enter the required arguments separating them by commas,</li>
<li>press the <b>Enter</b> button.</li>
</ol>
<p>The result will be displayed in the selected cell.</p>
<p style="text-indent: 150px;"><img alt="FV Function" src="../images/fv.png" /></p>
</div>
</body>
</html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save