[DE] Добавлены переводы к ревизиям 8128, 8131.
|
@ -1014,6 +1014,7 @@
|
||||||
"DE.Views.ImageSettingsAdvanced.textWrapThroughTooltip": "Through",
|
"DE.Views.ImageSettingsAdvanced.textWrapThroughTooltip": "Through",
|
||||||
"DE.Views.ImageSettingsAdvanced.textWrapTightTooltip": "Tight",
|
"DE.Views.ImageSettingsAdvanced.textWrapTightTooltip": "Tight",
|
||||||
"DE.Views.ImageSettingsAdvanced.textWrapTopbottomTooltip": "Top and Bottom",
|
"DE.Views.ImageSettingsAdvanced.textWrapTopbottomTooltip": "Top and Bottom",
|
||||||
|
"DE.Views.ImageSettingsAdvanced.textPositionPc": "Relative position",
|
||||||
"DE.Views.LeftMenu.tipAbout": "About",
|
"DE.Views.LeftMenu.tipAbout": "About",
|
||||||
"DE.Views.LeftMenu.tipChat": "Chat",
|
"DE.Views.LeftMenu.tipChat": "Chat",
|
||||||
"DE.Views.LeftMenu.tipComments": "Comments",
|
"DE.Views.LeftMenu.tipComments": "Comments",
|
||||||
|
@ -1355,6 +1356,9 @@
|
||||||
"DE.Views.TableSettingsAdvanced.tipTableOuterCellInner": "Set Outer Border and Vertical and Horizontal Lines for Inner Cells",
|
"DE.Views.TableSettingsAdvanced.tipTableOuterCellInner": "Set Outer Border and Vertical and Horizontal Lines for Inner Cells",
|
||||||
"DE.Views.TableSettingsAdvanced.tipTableOuterCellOuter": "Set Table Outer Border and Outer Borders for Inner Cells",
|
"DE.Views.TableSettingsAdvanced.tipTableOuterCellOuter": "Set Table Outer Border and Outer Borders for Inner Cells",
|
||||||
"DE.Views.TableSettingsAdvanced.txtNoBorders": "No borders",
|
"DE.Views.TableSettingsAdvanced.txtNoBorders": "No borders",
|
||||||
|
"DE.Views.TableSettingsAdvanced.txtPercent": "Percent",
|
||||||
|
"DE.Views.TableSettingsAdvanced.txtCm": "Centimeter",
|
||||||
|
"DE.Views.TableSettingsAdvanced.txtPt": "Point",
|
||||||
"DE.Views.TextArtSettings.strColor": "Color",
|
"DE.Views.TextArtSettings.strColor": "Color",
|
||||||
"DE.Views.TextArtSettings.strFill": "Fill",
|
"DE.Views.TextArtSettings.strFill": "Fill",
|
||||||
"DE.Views.TextArtSettings.strSize": "Size",
|
"DE.Views.TextArtSettings.strSize": "Size",
|
||||||
|
|
BIN
sdk/Common/Images/marker_format.cur
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/Common/Images/plus.cur
Normal file
After Width: | Height: | Size: 902 B |
BIN
sdk/Common/Images/plus_2x.cur
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
sdk/Common/Images/plus_copy.cur
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
sdk/Common/Images/plus_copy_2x.cur
Normal file
After Width: | Height: | Size: 7.3 KiB |
BIN
sdk/Common/Images/text_copy.cur
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
sdk/Common/Images/text_copy_2x.cur
Normal file
After Width: | Height: | Size: 6 KiB |
8998
sdk/Common/Native/jquery_native.js
vendored
Normal file
614
sdk/Common/Native/native.js
Normal file
|
@ -0,0 +1,614 @@
|
||||||
|
var editor = undefined;
|
||||||
|
var window = {};
|
||||||
|
var navigator = {};
|
||||||
|
navigator.userAgent = "chrome";
|
||||||
|
window.navigator = navigator;
|
||||||
|
window.location = {};
|
||||||
|
|
||||||
|
window.location.protocol = "";
|
||||||
|
window.location.host = "";
|
||||||
|
window.location.href = "";
|
||||||
|
|
||||||
|
window.NATIVE_EDITOR_ENJINE = true;
|
||||||
|
window.NATIVE_EDITOR_ENJINE_SYNC_RECALC = true;
|
||||||
|
|
||||||
|
var document = {};
|
||||||
|
window.document = document;
|
||||||
|
|
||||||
|
function ConvertJSC_Array(_array)
|
||||||
|
{
|
||||||
|
var _len = _array.length;
|
||||||
|
var ret = new Uint8Array(_len);
|
||||||
|
for (var i = 0; i < _len; i++)
|
||||||
|
ret[i] = _array.getAt(i);
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
function Image()
|
||||||
|
{
|
||||||
|
this.src = "";
|
||||||
|
this.onload = function()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
this.onerror = function()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function _image_data()
|
||||||
|
{
|
||||||
|
this.data = null;
|
||||||
|
this.length = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
function native_pattern_fill()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
native_pattern_fill.prototype =
|
||||||
|
{
|
||||||
|
setTransform : function(transform) {}
|
||||||
|
};
|
||||||
|
|
||||||
|
function native_gradient_fill()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
native_gradient_fill.prototype =
|
||||||
|
{
|
||||||
|
addColorStop : function(offset,color) {}
|
||||||
|
};
|
||||||
|
|
||||||
|
function native_context2d(parent)
|
||||||
|
{
|
||||||
|
this.canvas = parent;
|
||||||
|
|
||||||
|
this.globalAlpha = 0;
|
||||||
|
this.globalCompositeOperation = "";
|
||||||
|
this.fillStyle = "";
|
||||||
|
this.strokeStyle = "";
|
||||||
|
|
||||||
|
this.lineWidth = 0;
|
||||||
|
this.lineCap = 0;
|
||||||
|
this.lineJoin = 0;
|
||||||
|
this.miterLimit = 0;
|
||||||
|
this.shadowOffsetX = 0;
|
||||||
|
this.shadowOffsetY = 0;
|
||||||
|
this.shadowBlur = 0;
|
||||||
|
this.shadowColor = 0;
|
||||||
|
this.font = "";
|
||||||
|
this.textAlign = 0;
|
||||||
|
this.textBaseline = 0;
|
||||||
|
}
|
||||||
|
native_context2d.prototype =
|
||||||
|
{
|
||||||
|
save : function() {},
|
||||||
|
restore : function() {},
|
||||||
|
|
||||||
|
scale : function(x,y) {},
|
||||||
|
rotate : function(angle) {},
|
||||||
|
translate : function(x,y) {},
|
||||||
|
transform : function(m11,m12,m21,m22,dx,dy) {},
|
||||||
|
setTransform : function(m11,m12,m21,m22,dx,dy) {},
|
||||||
|
|
||||||
|
createLinearGradient : function(x0,y0,x1,y1) { return new native_gradient_fill(); },
|
||||||
|
createRadialGradient : function(x0,y0,r0,x1,y1,r1) { return null; },
|
||||||
|
createPattern : function(image,repetition) { return new native_pattern_fill(); },
|
||||||
|
|
||||||
|
clearRect : function(x,y,w,h) {},
|
||||||
|
fillRect : function(x,y,w,h) {},
|
||||||
|
strokeRect : function(x,y,w,h) {},
|
||||||
|
|
||||||
|
beginPath : function() {},
|
||||||
|
closePath : function() {},
|
||||||
|
moveTo : function(x,y) {},
|
||||||
|
lineTo : function(x,y) {},
|
||||||
|
quadraticCurveTo : function(cpx,cpy,x,y) {},
|
||||||
|
bezierCurveTo : function(cp1x,cp1y,cp2x,cp2y,x,y) {},
|
||||||
|
arcTo : function(x1,y1,x2,y2,radius) {},
|
||||||
|
rect : function(x,y,w,h) {},
|
||||||
|
arc : function(x,y,radius,startAngle,endAngle,anticlockwise) {},
|
||||||
|
|
||||||
|
fill : function() {},
|
||||||
|
stroke : function() {},
|
||||||
|
clip : function() {},
|
||||||
|
isPointInPath : function(x,y) {},
|
||||||
|
drawFocusRing : function(element,xCaret,yCaret,canDrawCustom) {},
|
||||||
|
|
||||||
|
fillText : function(text,x,y,maxWidth) {},
|
||||||
|
strokeText : function(text,x,y,maxWidth) {},
|
||||||
|
measureText : function(text) {},
|
||||||
|
|
||||||
|
drawImage : function(img_elem,dx_or_sx,dy_or_sy,dw_or_sw,dh_or_sh,dx,dy,dw,dh) {},
|
||||||
|
|
||||||
|
createImageData : function(imagedata_or_sw,sh)
|
||||||
|
{
|
||||||
|
var _data = new _image_data();
|
||||||
|
_data.length = imagedata_or_sw * sh * 4;
|
||||||
|
_data.data = (typeof(Uint8Array) != 'undefined') ? new Uint8Array(_data.length) : new Array(_data.length);
|
||||||
|
return _data;
|
||||||
|
},
|
||||||
|
getImageData : function(sx,sy,sw,sh) {},
|
||||||
|
putImageData : function(image_data,dx,dy,dirtyX,dirtyY,dirtyWidth,dirtyHeight) {}
|
||||||
|
};
|
||||||
|
|
||||||
|
function native_canvas()
|
||||||
|
{
|
||||||
|
this.id = "";
|
||||||
|
this.width = 300;
|
||||||
|
this.height = 150;
|
||||||
|
|
||||||
|
this.nodeType = 1;
|
||||||
|
}
|
||||||
|
native_canvas.prototype =
|
||||||
|
{
|
||||||
|
getContext : function(type)
|
||||||
|
{
|
||||||
|
if (type == "2d")
|
||||||
|
return new native_context2d(this);
|
||||||
|
return null;
|
||||||
|
},
|
||||||
|
|
||||||
|
toDataUrl : function(type)
|
||||||
|
{
|
||||||
|
return "";
|
||||||
|
},
|
||||||
|
|
||||||
|
addEventListener : function()
|
||||||
|
{
|
||||||
|
},
|
||||||
|
|
||||||
|
attr : function()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
window["Asc"] = {};
|
||||||
|
|
||||||
|
var _null_object = {};
|
||||||
|
_null_object.length = 0;
|
||||||
|
_null_object.nodeType = 1;
|
||||||
|
_null_object.offsetWidth = 1;
|
||||||
|
_null_object.offsetHeight = 1;
|
||||||
|
_null_object.clientWidth = 1;
|
||||||
|
_null_object.clientHeight = 1;
|
||||||
|
_null_object.scrollWidth = 1;
|
||||||
|
_null_object.scrollHeight = 1;
|
||||||
|
_null_object.style = {};
|
||||||
|
_null_object.documentElement = _null_object;
|
||||||
|
_null_object.body = _null_object;
|
||||||
|
_null_object.ownerDocument = _null_object;
|
||||||
|
_null_object.defaultView = _null_object;
|
||||||
|
|
||||||
|
_null_object.addEventListener = function(){};
|
||||||
|
_null_object.setAttribute = function(){};
|
||||||
|
_null_object.getElementsByTagName = function() { return []; };
|
||||||
|
_null_object.appendChild = function() {};
|
||||||
|
_null_object.removeChild = function() {};
|
||||||
|
_null_object.insertBefore = function() {};
|
||||||
|
_null_object.childNodes = [];
|
||||||
|
_null_object.parent = _null_object;
|
||||||
|
_null_object.parentNode = _null_object;
|
||||||
|
_null_object.find = function() { return this; };
|
||||||
|
_null_object.appendTo = function() { return this; };
|
||||||
|
_null_object.css = function() { return this; };
|
||||||
|
_null_object.width = function() { return 0; };
|
||||||
|
_null_object.height = function() { return 0; };
|
||||||
|
_null_object.attr = function() { return this; };
|
||||||
|
_null_object.prop = function() { return this; };
|
||||||
|
_null_object.val = function() { return this; };
|
||||||
|
_null_object.remove = function() {};
|
||||||
|
_null_object.getComputedStyle = function() { return null; };
|
||||||
|
_null_object.getContext = function(type) {
|
||||||
|
if (type == "2d")
|
||||||
|
return new native_context2d(this);
|
||||||
|
return null;
|
||||||
|
};
|
||||||
|
|
||||||
|
window._null_object = _null_object;
|
||||||
|
|
||||||
|
document.createElement = function(type)
|
||||||
|
{
|
||||||
|
if (type && type.toLowerCase)
|
||||||
|
{
|
||||||
|
if (type.toLowerCase() == "canvas")
|
||||||
|
return new native_canvas();
|
||||||
|
}
|
||||||
|
|
||||||
|
return _null_object;
|
||||||
|
}
|
||||||
|
|
||||||
|
function _return_empty_html_element() { return _null_object; };
|
||||||
|
|
||||||
|
document.createDocumentFragment = _return_empty_html_element;
|
||||||
|
document.getElementsByTagName = function(tag) {
|
||||||
|
var ret = [];
|
||||||
|
if ("head" == tag)
|
||||||
|
ret.push(_null_object);
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
document.insertBefore = function() {};
|
||||||
|
document.appendChild = function() {};
|
||||||
|
document.removeChild = function() {};
|
||||||
|
document.getElementById = function() { return _null_object; };
|
||||||
|
document.createComment = function() { return undefined; };
|
||||||
|
|
||||||
|
document.documentElement = _null_object;
|
||||||
|
document.body = _null_object;
|
||||||
|
|
||||||
|
var native = CreateNativeEngine();
|
||||||
|
window.native = native;
|
||||||
|
window["native"] = native;
|
||||||
|
|
||||||
|
function GetNativeEngine()
|
||||||
|
{
|
||||||
|
return window.native;
|
||||||
|
}
|
||||||
|
|
||||||
|
var native_renderer = null;
|
||||||
|
var _api = null;
|
||||||
|
var Asc = window["Asc"];
|
||||||
|
|
||||||
|
function NativeOpenFileData(data, version)
|
||||||
|
{
|
||||||
|
window.NATIVE_DOCUMENT_TYPE = window.native.GetEditorType();
|
||||||
|
|
||||||
|
if (window.NATIVE_DOCUMENT_TYPE == "presentation" || window.NATIVE_DOCUMENT_TYPE == "document")
|
||||||
|
{
|
||||||
|
_api = new window["asc_docs_api"]("");
|
||||||
|
_api.asc_nativeOpenFile(data, version);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_api = new window["Asc"]["spreadsheet_api"]();
|
||||||
|
_api.asc_nativeOpenFile(data, version);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function NativeOpenFile()
|
||||||
|
{
|
||||||
|
var doc_bin = window.native.GetFileString(window.native.GetFilePath());
|
||||||
|
window.NATIVE_DOCUMENT_TYPE = window.native.GetEditorType();
|
||||||
|
|
||||||
|
if (window.NATIVE_DOCUMENT_TYPE == "presentation" || window.NATIVE_DOCUMENT_TYPE == "document")
|
||||||
|
{
|
||||||
|
_api = new window["asc_docs_api"]("");
|
||||||
|
_api.asc_nativeOpenFile(doc_bin);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_api = new window["Asc"]["spreadsheet_api"]();
|
||||||
|
_api.asc_nativeOpenFile(doc_bin);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function NativeOpenFile2(_params)
|
||||||
|
{
|
||||||
|
window["CreateMainTextMeasurerWrapper"]();
|
||||||
|
|
||||||
|
window.g_file_path = "native_open_file";
|
||||||
|
window.NATIVE_DOCUMENT_TYPE = window.native.GetEditorType();
|
||||||
|
var doc_bin = window.native.GetFileString(window.g_file_path);
|
||||||
|
if (window.NATIVE_DOCUMENT_TYPE == "presentation" || window.NATIVE_DOCUMENT_TYPE == "document")
|
||||||
|
{
|
||||||
|
_api = new window["asc_docs_api"]("");
|
||||||
|
|
||||||
|
if (undefined !== _api.Native_Editor_Initialize_Settings)
|
||||||
|
{
|
||||||
|
_api.Native_Editor_Initialize_Settings(_params);
|
||||||
|
}
|
||||||
|
|
||||||
|
_api.asc_nativeOpenFile(doc_bin);
|
||||||
|
|
||||||
|
if (_api.NativeAfterLoad)
|
||||||
|
_api.NativeAfterLoad();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_api = new window["Asc"]["spreadsheet_api"]();
|
||||||
|
_api.asc_nativeOpenFile(doc_bin);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function NativeCalculateFile()
|
||||||
|
{
|
||||||
|
_api.asc_nativeCalculateFile();
|
||||||
|
}
|
||||||
|
|
||||||
|
function NativeApplyChangesData(data, isFull)
|
||||||
|
{
|
||||||
|
if (window.NATIVE_DOCUMENT_TYPE == "presentation" || window.NATIVE_DOCUMENT_TYPE == "document")
|
||||||
|
{
|
||||||
|
_api.asc_nativeApplyChanges2(data, isFull);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_api.asc_nativeApplyChanges2(data, isFull);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function NativeApplyChanges()
|
||||||
|
{
|
||||||
|
if (window.NATIVE_DOCUMENT_TYPE == "presentation" || window.NATIVE_DOCUMENT_TYPE == "document")
|
||||||
|
{
|
||||||
|
var __changes = [];
|
||||||
|
var _count_main = window.native.GetCountChanges();
|
||||||
|
for (var i = 0; i < _count_main; i++)
|
||||||
|
{
|
||||||
|
var _changes_file = window.native.GetChangesFile(i);
|
||||||
|
var _changes = JSON.parse(window.native.GetFileString(_changes_file));
|
||||||
|
|
||||||
|
for (var j = 0; j < _changes.length; j++)
|
||||||
|
{
|
||||||
|
__changes.push(_changes[j]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
_api.asc_nativeApplyChanges(__changes);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
var __changes = [];
|
||||||
|
var _count_main = window.native.GetCountChanges();
|
||||||
|
for (var i = 0; i < _count_main; i++)
|
||||||
|
{
|
||||||
|
var _changes_file = window.native.GetChangesFile(i);
|
||||||
|
var _changes = JSON.parse(window.native.GetFileString(_changes_file));
|
||||||
|
|
||||||
|
for (var j = 0; j < _changes.length; j++)
|
||||||
|
{
|
||||||
|
__changes.push(_changes[j]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
_api.asc_nativeApplyChanges(__changes);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function NativeGetFileString()
|
||||||
|
{
|
||||||
|
return _api.asc_nativeGetFile();
|
||||||
|
}
|
||||||
|
function NativeGetFileData()
|
||||||
|
{
|
||||||
|
return _api.asc_nativeGetFileData();
|
||||||
|
}
|
||||||
|
function NativeGetFileDataHtml()
|
||||||
|
{
|
||||||
|
if (_api.asc_nativeGetHtml)
|
||||||
|
return _api.asc_nativeGetHtml();
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
|
function NativeStartMailMergeByList(database)
|
||||||
|
{
|
||||||
|
if (_api.asc_StartMailMergeByList)
|
||||||
|
return _api.asc_StartMailMergeByList(database);
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
function NativePreviewMailMergeResult(index)
|
||||||
|
{
|
||||||
|
if (_api.asc_PreviewMailMergeResult)
|
||||||
|
return _api.asc_PreviewMailMergeResult(index);
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
function NativeGetMailMergeFiledValue(index, name)
|
||||||
|
{
|
||||||
|
if (_api.asc_GetMailMergeFiledValue)
|
||||||
|
return _api.asc_GetMailMergeFiledValue(index, name);
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
|
function GetNativeCountPages()
|
||||||
|
{
|
||||||
|
return _api.asc_nativePrintPagesCount();
|
||||||
|
}
|
||||||
|
|
||||||
|
function GetNativeFileDataPDF(_param)
|
||||||
|
{
|
||||||
|
return _api.asc_nativeGetPDF(_param);
|
||||||
|
}
|
||||||
|
|
||||||
|
window.memory1 = null;
|
||||||
|
window.memory2 = null;
|
||||||
|
|
||||||
|
function GetNativePageBase64(pageIndex)
|
||||||
|
{
|
||||||
|
if (null == window.memory1)
|
||||||
|
window.memory1 = CreateNativeMemoryStream();
|
||||||
|
else
|
||||||
|
window.memory1.ClearNoAttack();
|
||||||
|
|
||||||
|
if (null == window.memory2)
|
||||||
|
window.memory2 = CreateNativeMemoryStream();
|
||||||
|
else
|
||||||
|
window.memory2.ClearNoAttack();
|
||||||
|
|
||||||
|
if (native_renderer == null)
|
||||||
|
{
|
||||||
|
native_renderer = _api.asc_nativeCheckPdfRenderer(window.memory1, window.memory2);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
window.memory1.ClearNoAttack();
|
||||||
|
window.memory2.ClearNoAttack();
|
||||||
|
}
|
||||||
|
|
||||||
|
_api.asc_nativePrint(native_renderer, pageIndex);
|
||||||
|
return window.memory1;
|
||||||
|
}
|
||||||
|
|
||||||
|
function GetNativePageMeta(pageIndex)
|
||||||
|
{
|
||||||
|
return _api.GetNativePageMeta(pageIndex);
|
||||||
|
}
|
||||||
|
|
||||||
|
function GetNativeId()
|
||||||
|
{
|
||||||
|
return window.native.GetFileId();
|
||||||
|
}
|
||||||
|
|
||||||
|
// для работы с таймерами
|
||||||
|
window.NativeSupportTimeouts = false;
|
||||||
|
window.NativeTimeoutObject = {};
|
||||||
|
|
||||||
|
function clearTimeout(_id)
|
||||||
|
{
|
||||||
|
if (!window.NativeSupportTimeouts)
|
||||||
|
return;
|
||||||
|
|
||||||
|
window.NativeTimeoutObject["" + _id] = undefined;
|
||||||
|
window.native["ClearTimeout"](_id);
|
||||||
|
}
|
||||||
|
function setTimeout(func, interval)
|
||||||
|
{
|
||||||
|
if (!window.NativeSupportTimeouts)
|
||||||
|
return;
|
||||||
|
|
||||||
|
var _id = window.native["GenerateTimeoutId"](interval);
|
||||||
|
window.NativeTimeoutObject["" + _id] = func;
|
||||||
|
return _id;
|
||||||
|
}
|
||||||
|
|
||||||
|
window.native.Call_TimeoutFire = function(_id)
|
||||||
|
{
|
||||||
|
if (!window.NativeSupportTimeouts)
|
||||||
|
return;
|
||||||
|
|
||||||
|
var _prop = "" + _id;
|
||||||
|
var _func = window.NativeTimeoutObject[_prop];
|
||||||
|
window.NativeTimeoutObject[_prop] = undefined;
|
||||||
|
|
||||||
|
if (!_func)
|
||||||
|
return;
|
||||||
|
|
||||||
|
_func.call(null);
|
||||||
|
_func = null;
|
||||||
|
};
|
||||||
|
|
||||||
|
function clearInterval(_id)
|
||||||
|
{
|
||||||
|
if (!window.NativeSupportTimeouts)
|
||||||
|
return;
|
||||||
|
|
||||||
|
window.NativeTimeoutObject["" + _id] = undefined;
|
||||||
|
window.native["ClearTimeout"](_id);
|
||||||
|
}
|
||||||
|
function setInterval(func, interval)
|
||||||
|
{
|
||||||
|
if (!window.NativeSupportTimeouts)
|
||||||
|
return;
|
||||||
|
|
||||||
|
var _intervalFunc = function()
|
||||||
|
{
|
||||||
|
func.call(null);
|
||||||
|
setTimeout(func, interval);
|
||||||
|
};
|
||||||
|
|
||||||
|
var _id = window.native["GenerateTimeoutId"](interval);
|
||||||
|
window.NativeTimeoutObject["" + _id] = _intervalFunc;
|
||||||
|
return _id;
|
||||||
|
}
|
||||||
|
|
||||||
|
window.clearTimeout = clearTimeout;
|
||||||
|
window.setTimeout = setTimeout;
|
||||||
|
window.clearInterval = clearInterval;
|
||||||
|
window.setInterval = setInterval;
|
||||||
|
|
||||||
|
var console = {
|
||||||
|
log : function(param) { window.native.ConsoleLog(param); }
|
||||||
|
};
|
||||||
|
|
||||||
|
// HTML page interface
|
||||||
|
window.native.Call_OnUpdateOverlay = function(param)
|
||||||
|
{
|
||||||
|
return _api.Call_OnUpdateOverlay(param);
|
||||||
|
};
|
||||||
|
|
||||||
|
window.native.Call_OnMouseDown = function(e)
|
||||||
|
{
|
||||||
|
return _api.Call_OnMouseDown(e);
|
||||||
|
};
|
||||||
|
window.native.Call_OnMouseUp = function(e)
|
||||||
|
{
|
||||||
|
return _api.Call_OnMouseUp(e);
|
||||||
|
};
|
||||||
|
window.native.Call_OnMouseMove = function(e)
|
||||||
|
{
|
||||||
|
return _api.Call_OnMouseMove(e);
|
||||||
|
};
|
||||||
|
window.native.Call_OnCheckMouseDown = function(e)
|
||||||
|
{
|
||||||
|
return _api.Call_OnCheckMouseDown(e);
|
||||||
|
};
|
||||||
|
|
||||||
|
window.native.Call_OnKeyDown = function(e)
|
||||||
|
{
|
||||||
|
return _api.Call_OnKeyDown(e);
|
||||||
|
};
|
||||||
|
window.native.Call_OnKeyPress = function(e)
|
||||||
|
{
|
||||||
|
return _api.Call_OnKeyPress(e);
|
||||||
|
};
|
||||||
|
window.native.Call_OnKeyUp = function(e)
|
||||||
|
{
|
||||||
|
return _api.Call_OnKeyUp(e);
|
||||||
|
};
|
||||||
|
window.native.Call_OnKeyboardEvent = function(e)
|
||||||
|
{
|
||||||
|
return _api.Call_OnKeyboardEvent(e);
|
||||||
|
};
|
||||||
|
|
||||||
|
window.native.Call_CalculateResume = function()
|
||||||
|
{
|
||||||
|
return _api.Call_CalculateResume();
|
||||||
|
};
|
||||||
|
|
||||||
|
window.native.Call_TurnOffRecalculate = function()
|
||||||
|
{
|
||||||
|
return _api.Call_TurnOffRecalculate();
|
||||||
|
};
|
||||||
|
window.native.Call_TurnOnRecalculate = function()
|
||||||
|
{
|
||||||
|
return _api.Call_TurnOnRecalculate();
|
||||||
|
};
|
||||||
|
|
||||||
|
window.native.Call_CheckTargetUpdate = function()
|
||||||
|
{
|
||||||
|
return _api.Call_CheckTargetUpdate();
|
||||||
|
};
|
||||||
|
window.native.Call_Common = function(type, param)
|
||||||
|
{
|
||||||
|
return _api.Call_Common(type, param);
|
||||||
|
};
|
||||||
|
|
||||||
|
window.native.Call_HR_Tabs = function(arrT, arrP)
|
||||||
|
{
|
||||||
|
return _api.Call_HR_Tabs(arrT, arrP);
|
||||||
|
};
|
||||||
|
window.native.Call_HR_Pr = function(_indent_left, _indent_right, _indent_first)
|
||||||
|
{
|
||||||
|
return _api.Call_HR_Pr(_indent_left, _indent_right, _indent_first);
|
||||||
|
};
|
||||||
|
window.native.Call_HR_Margins = function(_margin_left, _margin_right)
|
||||||
|
{
|
||||||
|
return _api.Call_HR_Margins(_margin_left, _margin_right);
|
||||||
|
};
|
||||||
|
window.native.Call_HR_Table = function(_params, _cols, _margins, _rows)
|
||||||
|
{
|
||||||
|
return _api.Call_HR_Table(_params, _cols, _margins, _rows);
|
||||||
|
};
|
||||||
|
|
||||||
|
window.native.Call_VR_Margins = function(_top, _bottom)
|
||||||
|
{
|
||||||
|
return _api.Call_VR_Margins(_top, _bottom);
|
||||||
|
};
|
||||||
|
window.native.Call_VR_Header = function(_header_top, _header_bottom)
|
||||||
|
{
|
||||||
|
return _api.Call_VR_Header(_header_top, _header_bottom);
|
||||||
|
};
|
||||||
|
window.native.Call_VR_Table = function(_params, _cols, _margins, _rows)
|
||||||
|
{
|
||||||
|
return _api.Call_VR_Table(_params, _cols, _margins, _rows);
|
||||||
|
};
|
||||||
|
|
||||||
|
window.native.Call_Menu_Event = function(type, _params)
|
||||||
|
{
|
||||||
|
return _api.Call_Menu_Event(type, _params);
|
||||||
|
};
|
3640
sdk/Common/apiCommon.js
Normal file
774
sdk/Common/commonDefines.js
Normal file
|
@ -0,0 +1,774 @@
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
var g_bDate1904 = false;
|
||||||
|
var FONT_THUMBNAIL_HEIGHT = (7 * 96.0 / 25.4) >> 0;
|
||||||
|
var c_oAscMaxColumnWidth = 255;
|
||||||
|
var c_oAscMaxRowHeight = 409;
|
||||||
|
|
||||||
|
//files type for Saving & DownloadAs
|
||||||
|
var c_oAscFileType = {
|
||||||
|
UNKNOWN : 0,
|
||||||
|
PDF : 0x0201,
|
||||||
|
HTML : 0x0803,
|
||||||
|
|
||||||
|
// Word
|
||||||
|
DOCX : 0x0041,
|
||||||
|
DOC : 0x0042,
|
||||||
|
ODT : 0x0043,
|
||||||
|
RTF : 0x0044,
|
||||||
|
TXT : 0x0045,
|
||||||
|
MHT : 0x0047,
|
||||||
|
EPUB : 0x0048,
|
||||||
|
FB2 : 0x0049,
|
||||||
|
MOBI : 0x004a,
|
||||||
|
DOCY : 0x1001,
|
||||||
|
JSON : 0x0808, // Для mail-merge
|
||||||
|
|
||||||
|
// Excel
|
||||||
|
XLSX : 0x0101,
|
||||||
|
XLS : 0x0102,
|
||||||
|
ODS : 0x0103,
|
||||||
|
CSV : 0x0104,
|
||||||
|
XLSY : 0x1002,
|
||||||
|
|
||||||
|
// PowerPoint
|
||||||
|
PPTX : 0x0081,
|
||||||
|
PPT : 0x0082,
|
||||||
|
ODP : 0x0083
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscAsyncAction = {
|
||||||
|
Open : 0, // открытие документа
|
||||||
|
Save : 1, // сохранение
|
||||||
|
LoadDocumentFonts : 2, // загружаем фонты документа (сразу после открытия)
|
||||||
|
LoadDocumentImages : 3, // загружаем картинки документа (сразу после загрузки шрифтов)
|
||||||
|
LoadFont : 4, // подгрузка нужного шрифта
|
||||||
|
LoadImage : 5, // подгрузка картинки
|
||||||
|
DownloadAs : 6, // cкачать
|
||||||
|
Print : 7, // конвертация в PDF и сохранение у пользователя
|
||||||
|
UploadImage : 8, // загрузка картинки
|
||||||
|
|
||||||
|
ApplyChanges : 9, // применение изменений от другого пользователя.
|
||||||
|
|
||||||
|
SlowOperation : 11, // медленная операция
|
||||||
|
LoadTheme : 12, // загрузка темы
|
||||||
|
MailMergeLoadFile : 13, // загрузка файла для mail merge
|
||||||
|
DownloadMerge : 14, // cкачать файл с mail merge
|
||||||
|
SendMailMerge : 15 // рассылка mail merge по почте
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscAdvancedOptionsID = {
|
||||||
|
CSV: 0,
|
||||||
|
TXT: 1
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscAdvancedOptionsAction = {
|
||||||
|
None: 0,
|
||||||
|
Open: 1,
|
||||||
|
Save: 2
|
||||||
|
};
|
||||||
|
|
||||||
|
// Режимы отрисовки
|
||||||
|
var c_oAscFontRenderingModeType = {
|
||||||
|
noHinting : 1,
|
||||||
|
hinting : 2,
|
||||||
|
hintingAndSubpixeling : 3
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscAsyncActionType = {
|
||||||
|
Information : 0,
|
||||||
|
BlockInteraction : 1
|
||||||
|
};
|
||||||
|
|
||||||
|
var DownloadType = {
|
||||||
|
None : '',
|
||||||
|
Download : 'asc_onDownloadUrl',
|
||||||
|
Print : 'asc_onPrintUrl',
|
||||||
|
MailMerge : 'asc_onSaveMailMerge'
|
||||||
|
};
|
||||||
|
|
||||||
|
var CellValueType = {
|
||||||
|
Number : 0,
|
||||||
|
String : 1,
|
||||||
|
Bool : 2,
|
||||||
|
Error : 3
|
||||||
|
};
|
||||||
|
|
||||||
|
//NumFormat defines
|
||||||
|
var c_oAscNumFormatType = {
|
||||||
|
General : 0,
|
||||||
|
Custom : 1,
|
||||||
|
Text : 2,
|
||||||
|
Number : 3,
|
||||||
|
Integer : 4,
|
||||||
|
Scientific : 5,
|
||||||
|
Currency : 6,
|
||||||
|
Date : 7,
|
||||||
|
Time : 8,
|
||||||
|
Percent : 9,
|
||||||
|
Fraction : 10,
|
||||||
|
Accounting : 11
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscDrawingLayerType = {
|
||||||
|
BringToFront : 0,
|
||||||
|
SendToBack : 1,
|
||||||
|
BringForward : 2,
|
||||||
|
SendBackward : 3
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscCellAnchorType = {
|
||||||
|
cellanchorAbsolute : 0,
|
||||||
|
cellanchorOneCell : 1,
|
||||||
|
cellanchorTwoCell : 2
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscChartDefines = {
|
||||||
|
defaultChartWidth : 478,
|
||||||
|
defaultChartHeight : 286
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscStyleImage = {
|
||||||
|
Default : 0,
|
||||||
|
Document : 1
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscTypeSelectElement = {
|
||||||
|
Paragraph : 0,
|
||||||
|
Table : 1,
|
||||||
|
Image : 2,
|
||||||
|
Header : 3,
|
||||||
|
Hyperlink : 4,
|
||||||
|
SpellCheck : 5,
|
||||||
|
Shape : 6,
|
||||||
|
Slide : 7,
|
||||||
|
Chart : 8,
|
||||||
|
Math : 9,
|
||||||
|
MailMerge : 10
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscLineDrawingRule = {
|
||||||
|
Left : 0,
|
||||||
|
Center : 1,
|
||||||
|
Right : 2,
|
||||||
|
Top : 0,
|
||||||
|
Bottom : 2
|
||||||
|
};
|
||||||
|
|
||||||
|
var align_Right = 0;
|
||||||
|
var align_Left = 1;
|
||||||
|
var align_Center = 2;
|
||||||
|
var align_Justify = 3;
|
||||||
|
|
||||||
|
|
||||||
|
var linerule_AtLeast = 0;
|
||||||
|
var linerule_Auto = 1;
|
||||||
|
var linerule_Exact = 2;
|
||||||
|
|
||||||
|
var shd_Clear = 0;
|
||||||
|
var shd_Nil = 1;
|
||||||
|
|
||||||
|
var vertalign_Baseline = 0;
|
||||||
|
var vertalign_SuperScript = 1;
|
||||||
|
var vertalign_SubScript = 2;
|
||||||
|
var hdrftr_Header = 0x01;
|
||||||
|
var hdrftr_Footer = 0x02;
|
||||||
|
|
||||||
|
|
||||||
|
var c_oAscChartTitleShowSettings =
|
||||||
|
{
|
||||||
|
none: 0,
|
||||||
|
overlay: 1,
|
||||||
|
noOverlay: 2
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscChartHorAxisLabelShowSettings =
|
||||||
|
{
|
||||||
|
none: 0,
|
||||||
|
noOverlay: 1
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscChartVertAxisLabelShowSettings =
|
||||||
|
{
|
||||||
|
none: 0,
|
||||||
|
rotated: 1,
|
||||||
|
vertical: 2,
|
||||||
|
horizontal: 3
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscChartLegendShowSettings =
|
||||||
|
{
|
||||||
|
none: 0,
|
||||||
|
left: 1,
|
||||||
|
top: 2,
|
||||||
|
right: 3,
|
||||||
|
bottom: 4,
|
||||||
|
leftOverlay: 5,
|
||||||
|
rightOverlay: 6,
|
||||||
|
layout: 7
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscChartDataLabelsPos =
|
||||||
|
{
|
||||||
|
none: 0,
|
||||||
|
b: 1,
|
||||||
|
bestFit: 2,
|
||||||
|
ctr: 3,
|
||||||
|
inBase: 4,
|
||||||
|
inEnd: 5,
|
||||||
|
l: 6,
|
||||||
|
outEnd: 7,
|
||||||
|
r: 8,
|
||||||
|
t: 9
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscChartCatAxisSettings =
|
||||||
|
{
|
||||||
|
none: 0,
|
||||||
|
leftToRight: 1,
|
||||||
|
rightToLeft: 2,
|
||||||
|
noLabels: 3
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscChartValAxisSettings =
|
||||||
|
{
|
||||||
|
none: 0,
|
||||||
|
byDefault: 1,
|
||||||
|
thousands: 2,
|
||||||
|
millions: 3,
|
||||||
|
billions: 4,
|
||||||
|
log: 5
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscAxisTypeSettings =
|
||||||
|
{
|
||||||
|
vert: 0,
|
||||||
|
hor: 1
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscGridLinesSettings =
|
||||||
|
{
|
||||||
|
none: 0,
|
||||||
|
major: 1,
|
||||||
|
minor: 2,
|
||||||
|
majorMinor: 3
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
var c_oAscChartTypeSettings =
|
||||||
|
{
|
||||||
|
barNormal : 0,
|
||||||
|
barStacked : 1,
|
||||||
|
barStackedPer : 2,
|
||||||
|
barNormal3d : 3,
|
||||||
|
barStacked3d : 4,
|
||||||
|
barStackedPer3d : 5,
|
||||||
|
barNormal3dPerspective: 6,
|
||||||
|
lineNormal : 7,
|
||||||
|
lineStacked : 8,
|
||||||
|
lineStackedPer : 9,
|
||||||
|
lineNormalMarker : 10,
|
||||||
|
lineStackedMarker : 11,
|
||||||
|
lineStackedPerMarker : 12,
|
||||||
|
line3d : 13,
|
||||||
|
pie : 14,
|
||||||
|
pie3d : 15,
|
||||||
|
hBarNormal : 16,
|
||||||
|
hBarStacked : 17,
|
||||||
|
hBarStackedPer : 18,
|
||||||
|
hBarNormal3d : 19,
|
||||||
|
hBarStacked3d : 20,
|
||||||
|
hBarStackedPer3d : 21,
|
||||||
|
areaNormal : 22,
|
||||||
|
areaStacked : 23,
|
||||||
|
areaStackedPer : 24,
|
||||||
|
doughnut : 25,
|
||||||
|
stock : 26,
|
||||||
|
scatter : 27,
|
||||||
|
scatterLine : 28,
|
||||||
|
scatterLineMarker : 29,
|
||||||
|
scatterMarker : 30,
|
||||||
|
scatterNone : 31,
|
||||||
|
scatterSmooth : 32,
|
||||||
|
scatterSmoothMarker : 33,
|
||||||
|
unknown : 34
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
var c_oAscValAxisRule =
|
||||||
|
{
|
||||||
|
auto:0,
|
||||||
|
fixed:1
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscValAxUnits =
|
||||||
|
{
|
||||||
|
none:0,
|
||||||
|
BILLIONS: 1,
|
||||||
|
HUNDRED_MILLIONS: 2,
|
||||||
|
HUNDREDS: 3,
|
||||||
|
HUNDRED_THOUSANDS: 4,
|
||||||
|
MILLIONS: 5,
|
||||||
|
TEN_MILLIONS: 6,
|
||||||
|
TEN_THOUSANDS: 7,
|
||||||
|
TRILLIONS: 8,
|
||||||
|
CUSTOM: 9,
|
||||||
|
THOUSANDS: 10
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscTickMark =
|
||||||
|
{
|
||||||
|
TICK_MARK_CROSS: 0,
|
||||||
|
TICK_MARK_IN: 1,
|
||||||
|
TICK_MARK_NONE: 2,
|
||||||
|
TICK_MARK_OUT: 3
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscTickLabelsPos =
|
||||||
|
{
|
||||||
|
TICK_LABEL_POSITION_HIGH:0,
|
||||||
|
TICK_LABEL_POSITION_LOW: 1,
|
||||||
|
TICK_LABEL_POSITION_NEXT_TO: 2,
|
||||||
|
TICK_LABEL_POSITION_NONE : 3
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscCrossesRule =
|
||||||
|
{
|
||||||
|
auto:0,
|
||||||
|
maxValue: 1,
|
||||||
|
value: 2,
|
||||||
|
minValue: 3
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscHorAxisType =
|
||||||
|
{
|
||||||
|
auto: 0,
|
||||||
|
date: 1,
|
||||||
|
text: 2
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscBetweenLabelsRule =
|
||||||
|
{
|
||||||
|
auto: 0,
|
||||||
|
manual: 1
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscLabelsPosition =
|
||||||
|
{
|
||||||
|
byDivisions: 0,
|
||||||
|
betweenDivisions: 1
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
var c_oAscAxisType =
|
||||||
|
{
|
||||||
|
auto: 0,
|
||||||
|
date: 1,
|
||||||
|
text: 2,
|
||||||
|
cat : 3,
|
||||||
|
val : 4
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscHAnchor = {
|
||||||
|
Margin: 0x00,
|
||||||
|
Page: 0x01,
|
||||||
|
Text: 0x02,
|
||||||
|
|
||||||
|
PageInternal: 0xFF // только для внутреннего использования
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscXAlign = {
|
||||||
|
Center: 0x00,
|
||||||
|
Inside: 0x01,
|
||||||
|
Left: 0x02,
|
||||||
|
Outside: 0x03,
|
||||||
|
Right: 0x04
|
||||||
|
};
|
||||||
|
var c_oAscYAlign = {
|
||||||
|
Bottom: 0x00,
|
||||||
|
Center: 0x01,
|
||||||
|
Inline: 0x02,
|
||||||
|
Inside: 0x03,
|
||||||
|
Outside: 0x04,
|
||||||
|
Top: 0x05
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscVAnchor = {
|
||||||
|
Margin: 0x00,
|
||||||
|
Page: 0x01,
|
||||||
|
Text: 0x02
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscRelativeFromH = {
|
||||||
|
Character: 0x00,
|
||||||
|
Column: 0x01,
|
||||||
|
InsideMargin: 0x02,
|
||||||
|
LeftMargin: 0x03,
|
||||||
|
Margin: 0x04,
|
||||||
|
OutsideMargin: 0x05,
|
||||||
|
Page: 0x06,
|
||||||
|
RightMargin: 0x07
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscRelativeFromV = {
|
||||||
|
BottomMargin: 0x00,
|
||||||
|
InsideMargin: 0x01,
|
||||||
|
Line: 0x02,
|
||||||
|
Margin: 0x03,
|
||||||
|
OutsideMargin: 0x04,
|
||||||
|
Page: 0x05,
|
||||||
|
Paragraph: 0x06,
|
||||||
|
TopMargin: 0x07
|
||||||
|
};
|
||||||
|
|
||||||
|
// image wrap style
|
||||||
|
var c_oAscWrapStyle = {
|
||||||
|
Inline:0,
|
||||||
|
Flow : 1
|
||||||
|
};
|
||||||
|
|
||||||
|
// math
|
||||||
|
var c_oAscLimLoc = {
|
||||||
|
SubSup: 0x00,
|
||||||
|
UndOvr: 0x01
|
||||||
|
};
|
||||||
|
var c_oAscMathJc = {
|
||||||
|
Center: 0x00,
|
||||||
|
CenterGroup: 0x01,
|
||||||
|
Left: 0x02,
|
||||||
|
Right: 0x03
|
||||||
|
};
|
||||||
|
var c_oAscTopBot = {
|
||||||
|
Bot: 0x00,
|
||||||
|
Top: 0x01
|
||||||
|
};
|
||||||
|
var c_oAscScript = {
|
||||||
|
DoubleStruck: 0x00,
|
||||||
|
Fraktur: 0x01,
|
||||||
|
Monospace: 0x02,
|
||||||
|
Roman: 0x03,
|
||||||
|
SansSerif: 0x04,
|
||||||
|
Script: 0x05
|
||||||
|
};
|
||||||
|
var c_oAscShp = {
|
||||||
|
Centered: 0x00,
|
||||||
|
Match: 0x01
|
||||||
|
};
|
||||||
|
var c_oAscSty = {
|
||||||
|
Bold: 0x00,
|
||||||
|
BoldItalic: 0x01,
|
||||||
|
Italic: 0x02,
|
||||||
|
Plain: 0x03
|
||||||
|
};
|
||||||
|
var c_oAscFType = {
|
||||||
|
Bar: 0x00,
|
||||||
|
Lin: 0x01,
|
||||||
|
NoBar: 0x02,
|
||||||
|
Skw: 0x03
|
||||||
|
};
|
||||||
|
var c_oAscBrkBin = {
|
||||||
|
After: 0x00,
|
||||||
|
Before: 0x01,
|
||||||
|
Repeat: 0x02
|
||||||
|
};
|
||||||
|
var c_oAscBrkBinSub = {
|
||||||
|
PlusMinus: 0x00,
|
||||||
|
MinusPlus: 0x01,
|
||||||
|
MinusMinus: 0x02
|
||||||
|
};
|
||||||
|
// Толщина бордера
|
||||||
|
var c_oAscBorderWidth = {
|
||||||
|
None : 0, // 0px
|
||||||
|
Thin : 1, // 1px
|
||||||
|
Medium : 2, // 2px
|
||||||
|
Thick : 3 // 3px
|
||||||
|
};
|
||||||
|
// Располагаются в порядке значимости для отрисовки
|
||||||
|
var c_oAscBorderStyles = {
|
||||||
|
None : 0,
|
||||||
|
Double : 1,
|
||||||
|
Hair : 2,
|
||||||
|
DashDotDot : 3,
|
||||||
|
DashDot : 4,
|
||||||
|
Dotted : 5,
|
||||||
|
Dashed : 6,
|
||||||
|
Thin : 7,
|
||||||
|
MediumDashDotDot : 8,
|
||||||
|
SlantDashDot : 9,
|
||||||
|
MediumDashDot : 10,
|
||||||
|
MediumDashed : 11,
|
||||||
|
Medium : 12,
|
||||||
|
Thick : 13
|
||||||
|
};
|
||||||
|
var c_oAscBorderType = {
|
||||||
|
Hor : 1,
|
||||||
|
Ver : 2,
|
||||||
|
Diag : 3
|
||||||
|
};
|
||||||
|
// PageOrientation
|
||||||
|
var c_oAscPageOrientation = {
|
||||||
|
PagePortrait : 1,
|
||||||
|
PageLandscape : 2
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* lock types
|
||||||
|
* @const
|
||||||
|
*/
|
||||||
|
var c_oAscLockTypes = {
|
||||||
|
kLockTypeNone : 1, // никто не залочил данный объект
|
||||||
|
kLockTypeMine : 2, // данный объект залочен текущим пользователем
|
||||||
|
kLockTypeOther : 3, // данный объект залочен другим(не текущим) пользователем
|
||||||
|
kLockTypeOther2 : 4, // данный объект залочен другим(не текущим) пользователем (обновления уже пришли)
|
||||||
|
kLockTypeOther3 : 5 // данный объект был залочен (обновления пришли) и снова стал залочен
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscFormatPainterState = {
|
||||||
|
kOff : 0,
|
||||||
|
kOn : 1,
|
||||||
|
kMultiple : 2
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscSaveTypes = {
|
||||||
|
PartStart : 0,
|
||||||
|
Part : 1,
|
||||||
|
Complete : 2,
|
||||||
|
CompleteAll : 3
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscColor = {
|
||||||
|
COLOR_TYPE_NONE : 0,
|
||||||
|
COLOR_TYPE_SRGB : 1,
|
||||||
|
COLOR_TYPE_PRST : 2,
|
||||||
|
COLOR_TYPE_SCHEME : 3,
|
||||||
|
COLOR_TYPE_SYS : 4
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscFill = {
|
||||||
|
FILL_TYPE_BLIP : 1,
|
||||||
|
FILL_TYPE_NOFILL : 2,
|
||||||
|
FILL_TYPE_SOLID : 3,
|
||||||
|
FILL_TYPE_PATT : 4,
|
||||||
|
FILL_TYPE_GRAD : 5
|
||||||
|
};
|
||||||
|
|
||||||
|
// Chart defines
|
||||||
|
var c_oAscChartType = {
|
||||||
|
line : "Line",
|
||||||
|
bar : "Bar",
|
||||||
|
hbar : "HBar",
|
||||||
|
area : "Area",
|
||||||
|
pie : "Pie",
|
||||||
|
scatter : "Scatter",
|
||||||
|
stock : "Stock",
|
||||||
|
doughnut: "Doughnut"
|
||||||
|
};
|
||||||
|
var c_oAscChartSubType = {
|
||||||
|
normal : "normal",
|
||||||
|
stacked : "stacked",
|
||||||
|
stackedPer : "stackedPer"
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscFillGradType = {
|
||||||
|
GRAD_LINEAR : 1,
|
||||||
|
GRAD_PATH : 2
|
||||||
|
};
|
||||||
|
var c_oAscFillBlipType = {
|
||||||
|
STRETCH : 1,
|
||||||
|
TILE : 2
|
||||||
|
};
|
||||||
|
var c_oAscStrokeType = {
|
||||||
|
STROKE_NONE : 0,
|
||||||
|
STROKE_COLOR: 1
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscVerticalTextAlign = {
|
||||||
|
TEXT_ALIGN_BOTTOM : 0, // (Text Anchor Enum ( Bottom ))
|
||||||
|
TEXT_ALIGN_CTR : 1, // (Text Anchor Enum ( Center ))
|
||||||
|
TEXT_ALIGN_DIST : 2, // (Text Anchor Enum ( Distributed ))
|
||||||
|
TEXT_ALIGN_JUST : 3, // (Text Anchor Enum ( Justified ))
|
||||||
|
TEXT_ALIGN_TOP : 4 // Top
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscVertDrawingText =
|
||||||
|
{
|
||||||
|
normal : 1,
|
||||||
|
vert : 3,
|
||||||
|
vert270: 4
|
||||||
|
};
|
||||||
|
var c_oAscLineJoinType = {
|
||||||
|
Round : 1,
|
||||||
|
Bevel : 2,
|
||||||
|
Miter : 3
|
||||||
|
};
|
||||||
|
var c_oAscLineCapType = {
|
||||||
|
Flat : 0,
|
||||||
|
Round : 1,
|
||||||
|
Square : 2
|
||||||
|
};
|
||||||
|
var c_oAscLineBeginType = {
|
||||||
|
None : 0,
|
||||||
|
Arrow : 1,
|
||||||
|
Diamond : 2,
|
||||||
|
Oval : 3,
|
||||||
|
Stealth : 4,
|
||||||
|
Triangle: 5
|
||||||
|
};
|
||||||
|
var c_oAscLineBeginSize = {
|
||||||
|
small_small : 0,
|
||||||
|
small_mid : 1,
|
||||||
|
small_large : 2,
|
||||||
|
mid_small : 3,
|
||||||
|
mid_mid : 4,
|
||||||
|
mid_large : 5,
|
||||||
|
large_small : 6,
|
||||||
|
large_mid : 7,
|
||||||
|
large_large : 8
|
||||||
|
};
|
||||||
|
var c_oAscCsvDelimiter = {
|
||||||
|
None: 0,
|
||||||
|
Tab: 1,
|
||||||
|
Semicolon: 2,
|
||||||
|
Сolon: 3,
|
||||||
|
Comma: 4,
|
||||||
|
Space: 5
|
||||||
|
};
|
||||||
|
var c_oAscUrlType = {
|
||||||
|
Invalid : 0,
|
||||||
|
Http: 1,
|
||||||
|
Email: 2
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscCellTextDirection = {
|
||||||
|
LRTB : 0x00,
|
||||||
|
TBRL : 0x01,
|
||||||
|
BTLR : 0x02
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
var c_oAscEncodings = [
|
||||||
|
[ 0, 28596, "ISO-8859-6", "Arabic (ISO 8859-6)" ],
|
||||||
|
[ 1, 720, "DOS-720", "Arabic (OEM 720)" ],
|
||||||
|
[ 2, 1256, "windows-1256", "Arabic (Windows)" ],
|
||||||
|
|
||||||
|
[ 3, 28594, "ISO-8859-4", "Baltic (ISO 8859-4)" ],
|
||||||
|
[ 4, 28603, "ISO-8859-13", "Baltic (ISO 8859-13)" ],
|
||||||
|
[ 5, 775, "IBM775", "Baltic (OEM 775)" ],
|
||||||
|
[ 6, 1257, "windows-1257", "Baltic (Windows)" ],
|
||||||
|
|
||||||
|
[ 7, 28604, "ISO-8859-14", "Celtic (ISO 8859-14)" ],
|
||||||
|
|
||||||
|
[ 8, 28595, "ISO-8859-5", "Cyrillic (ISO 8859-5)" ],
|
||||||
|
[ 9, 20866, "KOI8-R", "Cyrillic (KOI8-R)" ],
|
||||||
|
[ 10, 21866, "KOI8-U", "Cyrillic (KOI8-U)" ],
|
||||||
|
[ 11, 10007, "x-mac-cyrillic", "Cyrillic (Mac)" ],
|
||||||
|
[ 12, 855, "IBM855", "Cyrillic (OEM 855)" ],
|
||||||
|
[ 13, 866, "cp866", "Cyrillic (OEM 866)" ],
|
||||||
|
[ 14, 1251, "windows-1251", "Cyrillic (Windows)" ],
|
||||||
|
|
||||||
|
[ 15, 852, "IBM852", "Central European (OEM 852)" ],
|
||||||
|
[ 16, 1250, "windows-1250", "Central European (Windows)" ],
|
||||||
|
|
||||||
|
[ 17, 950, "Big5", "Chinese (Big5 Traditional)" ],
|
||||||
|
[ 18, 936, "GB2312", "Central (GB2312 Simplified)" ],
|
||||||
|
|
||||||
|
[ 19, 28592, "ISO-8859-2", "Eastern European (ISO 8859-2)" ],
|
||||||
|
|
||||||
|
[ 20, 28597, "ISO-8859-7", "Greek (ISO 8859-7)" ],
|
||||||
|
[ 21, 737, "IBM737", "Greek (OEM 737)" ],
|
||||||
|
[ 22, 869, "IBM869", "Greek (OEM 869)" ],
|
||||||
|
[ 23, 1253, "windows-1253", "Greek (Windows)" ],
|
||||||
|
|
||||||
|
[ 24, 28598, "ISO-8859-8", "Hebrew (ISO 8859-8)" ],
|
||||||
|
[ 25, 862, "DOS-862", "Hebrew (OEM 862)" ],
|
||||||
|
[ 26, 1255, "windows-1255", "Hebrew (Windows)" ],
|
||||||
|
|
||||||
|
[ 27, 932, "Shift_JIS", "Japanese (Shift-JIS)" ],
|
||||||
|
|
||||||
|
[ 28, 949, "KS_C_5601-1987", "Korean (Windows)" ],
|
||||||
|
[ 29, 51949, "EUC-KR", "Korean (EUC)" ],
|
||||||
|
|
||||||
|
[ 30, 861, "IBM861", "North European (Icelandic OEM 861)" ],
|
||||||
|
[ 31, 865, "IBM865", "North European (Nordic OEM 865)" ],
|
||||||
|
|
||||||
|
[ 32, 874, "windows-874", "Thai (TIS-620)" ],
|
||||||
|
|
||||||
|
[ 33, 28593, "ISO-8859-3", "Turkish (ISO 8859-3)" ],
|
||||||
|
[ 34, 28599, "ISO-8859-9", "Turkish (ISO 8859-9)" ],
|
||||||
|
[ 35, 857, "IBM857", "Turkish (OEM 857)" ],
|
||||||
|
[ 36, 1254, "windows-1254", "Turkish (Windows)" ],
|
||||||
|
|
||||||
|
[ 37, 28591, "ISO-8859-1", "Western European (ISO-8859-1)" ],
|
||||||
|
[ 38, 28605, "ISO-8859-15", "Western European (ISO-8859-15)" ],
|
||||||
|
[ 39, 850, "IBM850", "Western European (OEM 850)" ],
|
||||||
|
[ 40, 858, "IBM858", "Western European (OEM 858)" ],
|
||||||
|
[ 41, 860, "IBM860", "Western European (OEM 860 : Portuguese)" ],
|
||||||
|
[ 42, 863, "IBM863", "Western European (OEM 863 : French)" ],
|
||||||
|
[ 43, 437, "IBM437", "Western European (OEM-US)" ],
|
||||||
|
[ 44, 1252, "windows-1252", "Western European (Windows)" ],
|
||||||
|
|
||||||
|
[ 45, 1258, "windows-1258", "Vietnamese (Windows)" ],
|
||||||
|
|
||||||
|
[ 46, 65001, "UTF-8", "Unicode (UTF-8)" ],
|
||||||
|
[ 47, 65000, "UTF-7", "Unicode (UTF-7)" ],
|
||||||
|
|
||||||
|
[ 48, 1200, "UTF-16", "Unicode (UTF-16)" ],
|
||||||
|
[ 49, 1201, "UTF-16BE", "Unicode (UTF-16 Big Endian)" ],
|
||||||
|
|
||||||
|
[ 50, 12000, "UTF-32", "Unicode (UTF-32)" ],
|
||||||
|
[ 51, 12001, "UTF-32BE", "Unicode (UTF-32 Big Endian)" ]
|
||||||
|
];
|
||||||
|
var c_oAscEncodingsMap = {"437": 43, "720": 1, "737": 21, "775": 5, "850": 39, "852": 15, "855": 12, "857": 35, "858": 40, "860": 41, "861": 30, "862": 25, "863": 42, "865": 31, "866": 13, "869": 22, "874": 32, "932": 27, "936": 18, "949": 28, "950": 17, "1200": 48, "1201": 49, "1250": 16, "1251": 14, "1252": 44, "1253": 23, "1254": 36, "1255": 26, "1256": 2, "1257": 6, "1258": 45, "10007": 11, "12000": 50, "12001": 51, "20866": 9, "21866": 10, "28591": 37, "28592": 19, "28593": 33, "28594": 3, "28595": 8, "28596": 0, "28597": 20, "28598": 24, "28599": 34, "28603": 4, "28604": 7, "28605": 38, "51949": 29, "65000": 47, "65001": 46}
|
||||||
|
var c_oAscCodePageUtf8 = 46;//65001
|
||||||
|
|
||||||
|
// https://support.office.com/en-us/article/Excel-specifications-and-limits-16c69c74-3d6a-4aaf-ba35-e6eb276e8eaa?ui=en-US&rs=en-US&ad=US&fromAR=1
|
||||||
|
var c_oAscMaxTooltipLength = 256;
|
||||||
|
var c_oAscMaxCellOrCommentLength = 32767;
|
||||||
|
var c_oAscMaxFormulaLength = 8192;
|
||||||
|
|
||||||
|
var locktype_None = 1; // никто не залочил данный объект
|
||||||
|
var locktype_Mine = 2; // данный объект залочен текущим пользователем
|
||||||
|
var locktype_Other = 3; // данный объект залочен другим(не текущим) пользователем
|
||||||
|
var locktype_Other2 = 4; // данный объект залочен другим(не текущим) пользователем (обновления уже пришли)
|
||||||
|
var locktype_Other3 = 5; // данный объект был залочен (обновления пришли) и снова стал залочен
|
||||||
|
|
||||||
|
var changestype_None = 0; // Ничего не происходит с выделенным элементом (проверка идет через дополнительный параметр)
|
||||||
|
var changestype_Paragraph_Content = 1; // Добавление/удаление элементов в параграф
|
||||||
|
var changestype_Paragraph_Properties = 2; // Изменение свойств параграфа
|
||||||
|
var changestype_Document_Content = 10; // Добавление/удаление элементов в Document или в DocumentContent
|
||||||
|
var changestype_Document_Content_Add = 11; // Добавление элемента в класс Document или в класс DocumentContent
|
||||||
|
var changestype_Document_SectPr = 12; // Изменения свойств данной секции (размер страницы, поля и ориентация)
|
||||||
|
var changestype_Document_Styles = 13; // Изменяем стили документа (добавление/удаление/модифицирование)
|
||||||
|
var changestype_Table_Properties = 20; // Любые изменения в таблице
|
||||||
|
var changestype_Table_RemoveCells = 21; // Удаление ячеек (строк или столбцов)
|
||||||
|
var changestype_Image_Properties = 23; // Изменения настроек картинки
|
||||||
|
var changestype_HdrFtr = 30; // Изменения в колонтитуле (любые изменения)
|
||||||
|
var changestype_Remove = 40; // Удаление, через кнопку backspace (Удаление назад)
|
||||||
|
var changestype_Delete = 41; // Удаление, через кнопку delete (Удаление вперед)
|
||||||
|
var changestype_Drawing_Props = 51; // Изменение свойств фигуры
|
||||||
|
var changestype_ColorScheme = 60; // Изменение свойств фигуры
|
||||||
|
var changestype_Text_Props = 61; // Изменение свойств фигуры
|
||||||
|
var changestype_RemoveSlide = 62; // Изменение свойств фигуры
|
||||||
|
var changestype_PresentationProps = 63; // Изменение темы, цветовой схемы, размера слайда;
|
||||||
|
var changestype_Theme = 64; // Изменение темы;
|
||||||
|
var changestype_SlideSize = 65; // Изменение цветовой схемы;
|
||||||
|
var changestype_SlideBg = 66; // Изменение цветовой схемы;
|
||||||
|
var changestype_SlideTiming = 67; // Изменение цветовой схемы;
|
||||||
|
var changestype_MoveComment = 68;
|
||||||
|
var changestype_AddSp = 69;
|
||||||
|
var changestype_AddComment = 70;
|
||||||
|
var changestype_Layout = 71;
|
||||||
|
var changestype_AddShape = 72;
|
||||||
|
var changestype_AddShapes = 73;
|
||||||
|
|
||||||
|
var changestype_2_InlineObjectMove = 1; // Передвигаем объект в заданную позцию (проверяем место, в которое пытаемся передвинуть)
|
||||||
|
var changestype_2_HdrFtr = 2; // Изменения с колонтитулом
|
||||||
|
var changestype_2_Comment = 3; // Работает с комментариями
|
||||||
|
var changestype_2_Element_and_Type = 4; // Проверяем возможно ли сделать изменение заданного типа с заданным элементом(а не с текущим)
|
||||||
|
var changestype_2_ElementsArray_and_Type = 5; // Аналогично предыдущему, только идет массив элементов
|
||||||
|
var changestype_2_AdditionalTypes = 6; // Дополнительные проверки типа 1
|
||||||
|
|
||||||
|
var contentchanges_Add = 1;
|
||||||
|
var contentchanges_Remove = 2;
|
||||||
|
|
||||||
|
var offlineMode = '_offline_';
|
42
sdk/Common/downloaderfiles.js
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
function FileHandler() {
|
||||||
|
|
||||||
|
this.get = function ( file ) {
|
||||||
|
if ( AscBrowser.isAppleDevices ) {
|
||||||
|
var downloadWindow = window.open( file, "_parent", "", false );
|
||||||
|
downloadWindow.document.title = "Downloading...";
|
||||||
|
window.focus();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
//делаем как docs.google.com, решение с form submit в схеме с socket вызывало ошибку 405 (Method Not Allowed)
|
||||||
|
var frmWindow = getIFrameWindow( file );
|
||||||
|
// frmWindow.focus();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var getIFrameWindow = function ( file ) {
|
||||||
|
var ifr = document.getElementById( "fileFrame" );
|
||||||
|
if ( null != ifr )
|
||||||
|
document.body.removeChild( ifr );
|
||||||
|
createFrame( file );
|
||||||
|
var wnd = window.frames["fileFrame"];
|
||||||
|
return wnd;
|
||||||
|
}
|
||||||
|
var createFrame = function ( file ) {
|
||||||
|
var frame = document.createElement( "iframe" );
|
||||||
|
frame.src = file;
|
||||||
|
frame.name = "fileFrame";
|
||||||
|
frame.id = "fileFrame";
|
||||||
|
|
||||||
|
frame.style.width = "0px";
|
||||||
|
frame.style.height = "0px";
|
||||||
|
frame.style.border = "0px";
|
||||||
|
frame.style.display = "none";
|
||||||
|
|
||||||
|
document.body.appendChild( frame );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function getFile( filePath ) {
|
||||||
|
var fh = new FileHandler();
|
||||||
|
fh.get( filePath );
|
||||||
|
}
|
674
sdk/Excel/Spreadsheet.html
Normal file
|
@ -0,0 +1,674 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||||
|
|
||||||
|
<title>Spreadsheet Test</title>
|
||||||
|
|
||||||
|
<link rel="stylesheet" type="text/css" href="css/main.css"/>
|
||||||
|
|
||||||
|
<script type="text/javascript" src="jquery/jquery-1.7.1.js"></script>
|
||||||
|
<script type="text/javascript" src="jquery/jquery.mousewheel-3.0.6.js"></script>
|
||||||
|
<script type="text/javascript" src="../../3rdparty/XregExp/xregexp-all-min.js"></script>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
//<![CDATA[
|
||||||
|
window.g_debug_mode = true;
|
||||||
|
//]]>
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<script type="text/javascript" src="sdk-all.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
//<![CDATA[
|
||||||
|
$(function () {
|
||||||
|
|
||||||
|
var docTitle = window.location.toString().match(/&title=([^&]+)&/);
|
||||||
|
if (docTitle) {
|
||||||
|
$("#teamlab-title").append('<span>' + window.decodeURI(docTitle[1]) + '</span>');
|
||||||
|
}
|
||||||
|
|
||||||
|
//--Bottom panel--
|
||||||
|
|
||||||
|
// init tab navigation
|
||||||
|
$("#ws-navigation .nav-buttons .btn").click(onTabNavigationBtnClicked);
|
||||||
|
// init scaling buttons
|
||||||
|
$("#ws-navigation .ws-zoom-button").click(onZoomBtnClicked);
|
||||||
|
|
||||||
|
function renderTabs() {
|
||||||
|
var r = $(),
|
||||||
|
l = api.asc_getWorksheetsCount(),
|
||||||
|
isFirst = true,
|
||||||
|
hiddenSheets = api.asc_getHiddenWorksheets();
|
||||||
|
var isHidden = function (index) {
|
||||||
|
for (var i = 0; i < hiddenSheets.length; ++i) {
|
||||||
|
if (index == hiddenSheets[i].index) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else if (index < hiddenSheets[i].index)
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
};
|
||||||
|
for (var i = 0; i < l; ++i) {
|
||||||
|
if (isHidden (i))
|
||||||
|
continue;
|
||||||
|
var li = $(
|
||||||
|
'<li' + (isFirst ? ' class="first"' : '') + '>' +
|
||||||
|
'<div class="tab-prefix"/>' +
|
||||||
|
'<div class="tab-name">' + api.asc_getWorksheetName(i) + '</div>' +
|
||||||
|
'<div class="tab-suffix"/>' +
|
||||||
|
'</li>')
|
||||||
|
.data("ws-index", i)
|
||||||
|
.on("click", function (event) {onTabClicked( $(this).data("ws-index") );});
|
||||||
|
r = r.add(li);
|
||||||
|
isFirst = false;
|
||||||
|
}
|
||||||
|
return r;
|
||||||
|
}
|
||||||
|
|
||||||
|
function onSheetsChanged() {
|
||||||
|
$("#ws-navigation .tabs")
|
||||||
|
.empty()
|
||||||
|
.append(renderTabs());
|
||||||
|
onTabClicked( api.asc_getActiveWorksheetIndex() );
|
||||||
|
}
|
||||||
|
|
||||||
|
function showZoomValue() {
|
||||||
|
$("#ws-navigation .ws-zoom-input")
|
||||||
|
.val(Math.round(api.asc_getZoom() * 100) + "%");
|
||||||
|
}
|
||||||
|
|
||||||
|
//--Event handlers--
|
||||||
|
|
||||||
|
function onError(id,level){
|
||||||
|
if (window.g_debug_mode) console.log("id "+ id + " level " + level)
|
||||||
|
}
|
||||||
|
|
||||||
|
function onStartAction() {
|
||||||
|
if (window.g_debug_mode) console.log("onStartAction " + arguments[0] + " " + arguments[1]);
|
||||||
|
}
|
||||||
|
|
||||||
|
function onEndAction(type, id) {
|
||||||
|
if (type === c_oAscAsyncActionType.BlockInteraction) {
|
||||||
|
switch (id) {
|
||||||
|
case c_oAscAsyncAction.Open:
|
||||||
|
$("#ws-navigation .tabs")
|
||||||
|
.empty()
|
||||||
|
.append(renderTabs());
|
||||||
|
onTabClicked( api.asc_getActiveWorksheetIndex() );
|
||||||
|
showZoomValue();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (window.g_debug_mode) console.log("onEndAction " + arguments[0] + " " + arguments[1]);
|
||||||
|
}
|
||||||
|
|
||||||
|
function onTabNavigationBtnClicked(event) {
|
||||||
|
var btn = $(event.currentTarget),
|
||||||
|
tablist = $("#ws-navigation .tabs"),
|
||||||
|
items, first, last, width;
|
||||||
|
|
||||||
|
if (btn.hasClass("first")) {
|
||||||
|
tablist.children().removeClass("first")
|
||||||
|
.filter(":first").addClass("first")
|
||||||
|
.end().show();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (btn.hasClass("last")) {
|
||||||
|
items = tablist.children(":visible").removeClass("first");
|
||||||
|
last = items.last();
|
||||||
|
width = tablist.width();
|
||||||
|
while (last.position().left + last.outerWidth() > width) {
|
||||||
|
first = items.first().hide();
|
||||||
|
items = items.not(first);
|
||||||
|
}
|
||||||
|
items.first().addClass("first");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (btn.hasClass("prev")) {
|
||||||
|
first = tablist.children(":visible:first");
|
||||||
|
last = first.prev();
|
||||||
|
if (last.length > 0) {
|
||||||
|
first.removeClass("first");
|
||||||
|
last.addClass("first").show();
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (btn.hasClass("next")) {
|
||||||
|
items = tablist.children();
|
||||||
|
last = items.last();
|
||||||
|
width = tablist.width();
|
||||||
|
if (last.position().left + last.outerWidth() > width) {
|
||||||
|
items.filter(":visible:first").removeClass("first").hide()
|
||||||
|
.next().addClass("first");
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
function onTabClicked(index) {
|
||||||
|
$("#ws-navigation .tabs").children()
|
||||||
|
.removeClass("active")
|
||||||
|
.eq(index).addClass("active");
|
||||||
|
api.asc_showWorksheet(index);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
function onZoomBtnClicked(event) {
|
||||||
|
var btn = $(event.currentTarget),
|
||||||
|
f = api.asc_getZoom(),
|
||||||
|
df = btn.hasClass("plus") ? 0.05 : (btn.hasClass("minus") ? -0.05 : 0);
|
||||||
|
|
||||||
|
if (f + df > 0) {
|
||||||
|
api.asc_setZoom(f + df);
|
||||||
|
}
|
||||||
|
|
||||||
|
showZoomValue();
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
function updateCellInfo(info) {
|
||||||
|
// info : {
|
||||||
|
// "name": "A1",
|
||||||
|
// "text": текст ячейки
|
||||||
|
// "halign": "left / right / center",
|
||||||
|
// "valign": "top / bottom / center",
|
||||||
|
// "flags": {
|
||||||
|
// "merge": true / false,
|
||||||
|
// "shrinkToFit": true / false,
|
||||||
|
// "wrapText": true / false
|
||||||
|
// },
|
||||||
|
// "font": {
|
||||||
|
// "name": "Arial",
|
||||||
|
// "size": 10,
|
||||||
|
// "bold": true / false,
|
||||||
|
// "italic": true / false,
|
||||||
|
// "underline": true / false,
|
||||||
|
// "strikeout": false,//TODO:,
|
||||||
|
// "subscript": false,//TODO:,
|
||||||
|
// "superscript": false,//TODO:,
|
||||||
|
// "color": "#RRGGBB" / "#RGB"
|
||||||
|
// },
|
||||||
|
// "fill": {
|
||||||
|
// "color": "#RRGGBB" / "#RGB"
|
||||||
|
// },
|
||||||
|
// "border": {
|
||||||
|
// "left": {
|
||||||
|
// "width": 0-3 пиксела,
|
||||||
|
// "style": "none / thick / thin / medium / dashDot / dashDotDot / dashed / dotted / double / hair / mediumDashDot / mediumDashDotDot / mediumDashed / slantDashDot"
|
||||||
|
// "color": "#RRGGBB" / "#RGB"
|
||||||
|
// },
|
||||||
|
// "top": {
|
||||||
|
// "width":
|
||||||
|
// "style":
|
||||||
|
// "color":
|
||||||
|
// },
|
||||||
|
// "right": {
|
||||||
|
// "width":
|
||||||
|
// "style":
|
||||||
|
// "color":
|
||||||
|
// },
|
||||||
|
// "bottom": {
|
||||||
|
// "width":
|
||||||
|
// "style":
|
||||||
|
// "color":
|
||||||
|
// },
|
||||||
|
// "diagDown": { диагональная линия слева сверху вправо вниз
|
||||||
|
// "width":
|
||||||
|
// "style":
|
||||||
|
// "color":
|
||||||
|
// },
|
||||||
|
// "diagUp": { диагональная линия слева снизу вправо вверх
|
||||||
|
// "width":
|
||||||
|
// "style":
|
||||||
|
// "color":
|
||||||
|
// }
|
||||||
|
// },
|
||||||
|
// formula: "SUM(C1:C6)"
|
||||||
|
// }
|
||||||
|
$("#cellInfo").text(
|
||||||
|
"cell: " + info.asc_getName() + ", " +
|
||||||
|
"font: " + info.asc_getFont().asc_getName() + " " + info.asc_getFont().asc_getSize() + (info.asc_getFont().asc_getBold() ? " bold" : "") + (info.asc_getFont().asc_getItalic() ? " italic" : "") + ", " +
|
||||||
|
"color: " + info.asc_getFont().asc_getColor() + ", " +
|
||||||
|
"fill: " + info.asc_getFill().asc_getColor() + ", " +
|
||||||
|
"border:" + (info.asc_getBorders().asc_getLeft().asc_getWidth() > 0 ? " l" : "") + (info.asc_getBorders().asc_getTop().asc_getWidth() > 0 ? " t" : "") + (info.asc_getBorders().asc_getRight().asc_getWidth() > 0 ? " r" : "") + (info.asc_getBorders().asc_getBottom().asc_getWidth() > 0 ? " b" : "") + (info.asc_getBorders().asc_getDiagDown().asc_getWidth() > 0 ? " dd" : "") + (info.asc_getBorders().asc_getDiagUp().asc_getWidth() > 0 ? " du" : "") + ", " +
|
||||||
|
"text: " + info.asc_getText() + ", formula: " + info.asc_getFormula());
|
||||||
|
}
|
||||||
|
|
||||||
|
//------API---------
|
||||||
|
|
||||||
|
var api = new Asc.spreadsheet_api("wb-widget", "tlCellEditor");
|
||||||
|
|
||||||
|
api.asc_registerCallback("asc_onStartAction", onStartAction);
|
||||||
|
api.asc_registerCallback("asc_onEndAction", onEndAction);
|
||||||
|
api.asc_registerCallback("asc_onError", onError);
|
||||||
|
api.asc_registerCallback("asc_onSelectionChanged", updateCellInfo);
|
||||||
|
api.asc_registerCallback("asc_onSheetsChanged", onSheetsChanged);
|
||||||
|
api.asc_registerCallback("asc_onZoomChanged", function(){
|
||||||
|
if (window.g_debug_mode) console.log(arguments[0]);
|
||||||
|
});
|
||||||
|
api.asc_registerCallback("asc_onCellTextChanged", function(){
|
||||||
|
if (window.g_debug_mode) console.log(arguments[0]);
|
||||||
|
});
|
||||||
|
|
||||||
|
api.asc_Init("../OfficeWebWord/FontsFreeType/FontFiles/");
|
||||||
|
|
||||||
|
function getURLParameter(name) {
|
||||||
|
return (RegExp(name + '=' + '(.+?)(&|$)').exec(location.search)||[,null])[1];
|
||||||
|
}
|
||||||
|
|
||||||
|
var sProtocol = window.location.protocol;
|
||||||
|
var sHost = window.location.host;
|
||||||
|
var key = !!getURLParameter("key");
|
||||||
|
|
||||||
|
api.asc_LoadDocument({
|
||||||
|
"Id" : key ? decodeURIComponent(getURLParameter("key")) : undefined,
|
||||||
|
"Url" : key ? decodeURIComponent(getURLParameter("url")) : undefined,
|
||||||
|
"Title" : key ? decodeURIComponent(getURLParameter("title")).replace(new RegExp("\\+",'g')," ") : undefined,
|
||||||
|
"Format" : key ? decodeURIComponent(getURLParameter("filetype")) : undefined,
|
||||||
|
"VKey" : key ? decodeURIComponent(getURLParameter("vkey")) : undefined,
|
||||||
|
"Origin" : (sProtocol.search(/\w+/) >= 0 ? sProtocol + "//" : "") + sHost
|
||||||
|
});
|
||||||
|
$("#saveAsXLSX").click(function(){
|
||||||
|
api.asc_DownloadAs(c_oAscFileType.XLSX);
|
||||||
|
})
|
||||||
|
$("#saveAsXLS").click(function(){
|
||||||
|
api.asc_DownloadAs(c_oAscFileType.XLS);
|
||||||
|
})
|
||||||
|
$("#saveAsODS").click(function(){
|
||||||
|
api.asc_DownloadAs(c_oAscFileType.ODS);
|
||||||
|
})
|
||||||
|
$("#saveAsCSV").click(function(){
|
||||||
|
api.asc_DownloadAs(c_oAscFileType.CSV);
|
||||||
|
})
|
||||||
|
$("#saveAsHTML").click(function(){
|
||||||
|
api.asc_DownloadAs(c_oAscFileType.HTML);
|
||||||
|
})
|
||||||
|
$("#enableKE").data("state", true).click(function(){
|
||||||
|
var $this = $(this), s = $this.data("state");
|
||||||
|
api.asc_enableKeyEvents(!s);
|
||||||
|
$this.data("state", !s);
|
||||||
|
$this.val("key events: " + (!s ? "enabled" : "disabled"));
|
||||||
|
});
|
||||||
|
$("#searchText").click(function(){
|
||||||
|
if ( !api.asc_findText($("#pattern").val(), $("#searchRow").is(":checked"), $("#searchFwd").is(":checked")) ) {
|
||||||
|
alert("no more such text");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
$("#setFont").click(function(){
|
||||||
|
api.asc_setCellFontSize(24);
|
||||||
|
api.asc_setCellFontName("Cambria");
|
||||||
|
});
|
||||||
|
$("#sum").click(function(){
|
||||||
|
api.asc_insertFormula("SUM", true);
|
||||||
|
});
|
||||||
|
$("#border").click(function(){
|
||||||
|
var t = Math.floor(Math.random() * 5);
|
||||||
|
var r = Math.floor(Math.random() * 255);
|
||||||
|
var g = Math.floor(Math.random() * 255);
|
||||||
|
var b = Math.floor(Math.random() * 255);
|
||||||
|
val = [];
|
||||||
|
val[t] = new window.Asc.asc_CBorder(c_oAscBorderStyles.Thick, "rgb("+r+","+g+","+b+")");
|
||||||
|
api.asc_setCellBorders(val);
|
||||||
|
});
|
||||||
|
$("#copyws").click(function(){
|
||||||
|
var n = api.asc_getWorksheetName(api.asc_getActiveWorksheetIndex()) + " copy";
|
||||||
|
api.asc_copyWorksheet(0, n);
|
||||||
|
onSheetsChanged();
|
||||||
|
showZoomValue();
|
||||||
|
});
|
||||||
|
$("#getCoord").click(function(){
|
||||||
|
var coord = api.asc_getActiveCellCoord();
|
||||||
|
var offset = $("#wb-widget").offset();
|
||||||
|
var x = coord.asc_getX() + coord.asc_getWidth() + offset.left;
|
||||||
|
var y = coord.asc_getY() + coord.asc_getHeight() + offset.top;
|
||||||
|
$("body").append("<div style='position: absolute; width: 50px; height: 50px; left: " + x + "px; top: " + y + "px;'><img src='http://static3.grsites.com/archive/textures/blue/blue205.jpg' style='width: 50px; height: 50px;' alt='Девочка' /></div>");
|
||||||
|
});
|
||||||
|
$("#insAfter").click(function(){
|
||||||
|
api.asc_insertCells(c_oAscInsertOptions.InsertCellsAndShiftDown);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
//]]>
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style type="text/css">
|
||||||
|
#teamlab-title {
|
||||||
|
position: fixed;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
height: 30px;
|
||||||
|
background-color: #242829;
|
||||||
|
color: #FFF;
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 30px;
|
||||||
|
padding-left: 10px;
|
||||||
|
}
|
||||||
|
#teamlab-title > img {
|
||||||
|
display: inline-block;
|
||||||
|
position: relative;
|
||||||
|
top: 1px;
|
||||||
|
height: 17px;
|
||||||
|
margin-top: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wb-panel {
|
||||||
|
position: fixed;
|
||||||
|
left: 0;
|
||||||
|
top: 30px;
|
||||||
|
right: 0;
|
||||||
|
height: 100px;
|
||||||
|
background: #EDEDED;
|
||||||
|
background: -moz-linear-gradient(top,#EDEDED 0,#CBCBCB 100%);
|
||||||
|
background: -webkit-gradient(linear,left top,left bottom,color-stop(0%,#EDEDED),color-stop(100%,#CBCBCB));
|
||||||
|
background: -webkit-linear-gradient(top,#EDEDED 0,#CBCBCB 100%);
|
||||||
|
background: -o-linear-gradient(top,#EDEDED 0,#CBCBCB 100%);
|
||||||
|
background: -ms-linear-gradient(top,#EDEDED 0,#CBCBCB 100%);
|
||||||
|
background: linear-gradient(top,#EDEDED 0,#CBCBCB 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed',endColorstr='#cbcbcb',GradientType=0);
|
||||||
|
border: 0;
|
||||||
|
border-top: 1px solid white;
|
||||||
|
border-bottom: 1px Solid #929292;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wb-widget {
|
||||||
|
position: fixed;
|
||||||
|
left: 0;
|
||||||
|
top: 130px;
|
||||||
|
right: 0;
|
||||||
|
bottom: 22px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Navigation
|
||||||
|
* --------------------------------------------------------
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ws-navigation {
|
||||||
|
position: fixed;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
height: 20px;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
background-color: #DCE2E8;
|
||||||
|
border-color: #C1C6CC;
|
||||||
|
border-style: solid;
|
||||||
|
border-width: 1px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Buttons for choosing worksheets */
|
||||||
|
|
||||||
|
#ws-navigation .nav-buttons {
|
||||||
|
float: left;
|
||||||
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
|
height: 19px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ws-navigation .nav-buttons .btn {
|
||||||
|
float: left;
|
||||||
|
width: 18px;
|
||||||
|
height: 17px;
|
||||||
|
margin: 0 1px;
|
||||||
|
border: 1px solid transparent;
|
||||||
|
}
|
||||||
|
#ws-navigation .nav-buttons .btn > .inner {
|
||||||
|
position: relative;
|
||||||
|
left: 50%;
|
||||||
|
top: 50%;
|
||||||
|
margin-left: -6px;
|
||||||
|
margin-top: -5px;
|
||||||
|
width: 11px;
|
||||||
|
height: 11px;
|
||||||
|
background-image: url("css/nav-buttons.png");
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ws-navigation .nav-buttons .btn.first > .inner {
|
||||||
|
background-position: 0px 0px;
|
||||||
|
}
|
||||||
|
#ws-navigation .nav-buttons .btn.prev > .inner {
|
||||||
|
background-position: -11px 0px;
|
||||||
|
}
|
||||||
|
#ws-navigation .nav-buttons .btn.next > .inner {
|
||||||
|
background-position: -22px 0px;
|
||||||
|
}
|
||||||
|
#ws-navigation .nav-buttons .btn.last > .inner {
|
||||||
|
background-position: -33px 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ws-navigation .nav-buttons .btn:hover {
|
||||||
|
background-color: #FDE47B;
|
||||||
|
border-color: #E8BF3A;
|
||||||
|
}
|
||||||
|
#ws-navigation .nav-buttons .btn.first:hover > .inner {
|
||||||
|
background-position: 0px -11px;
|
||||||
|
}
|
||||||
|
#ws-navigation .nav-buttons .btn.prev:hover > .inner {
|
||||||
|
background-position: -11px -11px;
|
||||||
|
}
|
||||||
|
#ws-navigation .nav-buttons .btn.next:hover > .inner {
|
||||||
|
background-position: -22px -11px;
|
||||||
|
}
|
||||||
|
#ws-navigation .nav-buttons .btn.last:hover > .inner {
|
||||||
|
background-position: -33px -11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Worksheet's tabs */
|
||||||
|
|
||||||
|
#ws-navigation .tabs {
|
||||||
|
position: absolute;
|
||||||
|
left: 88px;
|
||||||
|
right: 25%;
|
||||||
|
height: 22px;
|
||||||
|
border-right: 1px solid #C1C6CC;
|
||||||
|
padding: 0;
|
||||||
|
margin: -1px 0 0;
|
||||||
|
font-family: Verdana, Arial, sans-serif;
|
||||||
|
font-size: 12px;
|
||||||
|
line-height: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
#ws-navigation .tabs * {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Default tab */
|
||||||
|
|
||||||
|
#ws-navigation .tabs li {
|
||||||
|
position: relative;
|
||||||
|
height: 20px;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0 0 0 -1px;
|
||||||
|
background-color: #D7DADD;
|
||||||
|
border-color: #B6BABF;
|
||||||
|
border-style: solid;
|
||||||
|
border-width: 1px;
|
||||||
|
border-radius: 5px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
#ws-navigation .tabs li.first {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ws-navigation .tabs .tab-prefix {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
#ws-navigation .tabs .tab-suffix {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ws-navigation .tabs .tab-name {
|
||||||
|
height: 20px;
|
||||||
|
padding: 0 .5em;
|
||||||
|
line-height: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Highlighted tab */
|
||||||
|
|
||||||
|
#ws-navigation .tabs li:hover {
|
||||||
|
background-color: #A0A5AA;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Selected tab */
|
||||||
|
|
||||||
|
#ws-navigation .tabs li.active {
|
||||||
|
background-color: #FFF;
|
||||||
|
z-index: 10;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Scale
|
||||||
|
* --------------------------------------------------------
|
||||||
|
*/
|
||||||
|
|
||||||
|
.ws-zoom-widget {
|
||||||
|
position: absolute;
|
||||||
|
height: 19px;
|
||||||
|
line-height: 100%;
|
||||||
|
right: 0;
|
||||||
|
top: 1px;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ws-zoom-button {
|
||||||
|
display: inline-block;
|
||||||
|
position: relative;
|
||||||
|
width: 17px;
|
||||||
|
height: 17px;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
|
font-family: "Verdana","sans-serif";
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: bold;
|
||||||
|
line-height: 17px;
|
||||||
|
text-decoration: none;
|
||||||
|
text-align: center;
|
||||||
|
vertical-align: top;
|
||||||
|
|
||||||
|
color: #111;
|
||||||
|
text-shadow: 1px 1px 0 rgba(255,255,255,.67);
|
||||||
|
|
||||||
|
border-color: #7F8994;
|
||||||
|
/*border-color: rgba(0, 0, 0, 0.56);*/
|
||||||
|
border-radius: 10px;
|
||||||
|
border-width: 1px;
|
||||||
|
border-style: solid;
|
||||||
|
outline: none;
|
||||||
|
|
||||||
|
background-color: #F2F5F7;
|
||||||
|
background-image: url("gradient.png");
|
||||||
|
background-image: -moz-linear-gradient(top, rgba(255,255,255,.75), rgba(255,255,255,0));
|
||||||
|
background-image: -o-linear-gradient(top, rgba(255,255,255,.75), rgba(255,255,255,0));
|
||||||
|
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgba(255,255,255,.75)), to(rgba(255,255,255,0)));
|
||||||
|
background-image: linear-gradient(top, rgba(255,255,255,.75), rgba(255,255,255,0));
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
box-shadow: 1px 1px 0 rgba(255,255,255,.5) inset, -1px -1px 0 rgba(255,255,255,.5) inset;
|
||||||
|
-webkit-transition: background .185s linear;
|
||||||
|
-moz-transition: all .185s linear;
|
||||||
|
-o-transition: all .185s linear;
|
||||||
|
transition: all .185s linear;
|
||||||
|
|
||||||
|
/** Make the text unselectable **/
|
||||||
|
-moz-user-select: none;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ws-zoom-button:hover, .ws-zoom-button:focus {
|
||||||
|
background-color: #F9E390; /*#a8c0cb;*/
|
||||||
|
}
|
||||||
|
|
||||||
|
.ws-zoom-button:active {
|
||||||
|
box-shadow:
|
||||||
|
0 2px 5px rgba(0,0,0,.67) inset,
|
||||||
|
1px 1px 0 rgba(255,255,255,.25) inset,
|
||||||
|
-1px -1px 0 rgba(255,255,255,.25) inset;
|
||||||
|
-webkit-transition: line-height .1s linear;
|
||||||
|
-moz-transition: all .1s linear;
|
||||||
|
-o-transition: all .1s linear;
|
||||||
|
transition: all .1s linear;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ws-zoom-button > div {
|
||||||
|
position: relative;
|
||||||
|
display: inline-block;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ws-zoom-button:active > div {
|
||||||
|
top: 1px;
|
||||||
|
left: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ws-zoom-input {
|
||||||
|
width: 3em;
|
||||||
|
height: 15px;
|
||||||
|
margin: 0 5px;
|
||||||
|
padding: 1px 1px;
|
||||||
|
border: 1px solid #C0C0C0;
|
||||||
|
font-size: 15px;
|
||||||
|
text-align: center;
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<div id="teamlab-title"><img src="../../../img/tmdocs_logo.png"/> Spreadsheets | </div>
|
||||||
|
|
||||||
|
<div id="wb-panel" style="display:inline-block;padding-left:10px;">
|
||||||
|
<input id="saveAsXLSX" type="button" value="saveAsXLSX"/>
|
||||||
|
<input id="saveAsXLS" type="button" value="saveAsXLS"/>
|
||||||
|
<input id="saveAsODS" type="button" value="saveAsODS"/>
|
||||||
|
<input id="saveAsCSV" type="button" value="saveAsCSV"/>
|
||||||
|
<input id="saveAsHTML" type="button" value="saveAsHTML"/>
|
||||||
|
<input id="enableKE" type="button" value="key events: enabled"/>
|
||||||
|
<input id="pattern" type="text" value="search text"/>
|
||||||
|
<input id="searchText" type="button" value="search"/>
|
||||||
|
<input id="searchRow" type="checkbox" value="1" checked /> search by row
|
||||||
|
<input id="searchFwd" type="checkbox" value="1" checked /> search forward
|
||||||
|
<input id="setFont" type="button" value="set font"/>
|
||||||
|
<input id="sum" type="button" value="SUM"/>
|
||||||
|
<input id="border" type="button" value="border"/>
|
||||||
|
<input id="copyws" type="button" value="copy sheet"/>
|
||||||
|
<input id="getCoord" type="button" value="get Coord"/>
|
||||||
|
<input id="insAfter" type="button" value="insert after"/>
|
||||||
|
<br/>
|
||||||
|
<div id="cellInfo">info</div>
|
||||||
|
<textarea id="tlCellEditor" cols="150" rows="1" style="resize:none;"></textarea>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="wb-widget"></div>
|
||||||
|
|
||||||
|
<div id="ws-navigation">
|
||||||
|
<div class="nav-buttons">
|
||||||
|
<div class="btn first"><div class="inner"></div></div>
|
||||||
|
<div class="btn prev"><div class="inner"></div></div>
|
||||||
|
<div class="btn next"><div class="inner"></div></div>
|
||||||
|
<div class="btn last"><div class="inner"></div></div>
|
||||||
|
</div>
|
||||||
|
<ul class="tabs"></ul>
|
||||||
|
<div class="ws-zoom-widget">
|
||||||
|
<div class="ws-zoom-button minus"><div>–</div></div>
|
||||||
|
<input class="ws-zoom-input" type="text"/>
|
||||||
|
<div class="ws-zoom-button plus"><div>+</div></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
3462
sdk/Excel/api.js
Normal file
356
sdk/Excel/apiDefines.js
Normal file
|
@ -0,0 +1,356 @@
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
// Используем [] вместо new Array() для ускорения (http://jsperf.com/creation-array)
|
||||||
|
// Используем {} вместо new Object() для ускорения (http://jsperf.com/creation-object)
|
||||||
|
var c_oAscError = {
|
||||||
|
Level: {
|
||||||
|
Critical: -1,
|
||||||
|
NoCritical: 0
|
||||||
|
},
|
||||||
|
ID: {
|
||||||
|
ServerSaveComplete: 3,
|
||||||
|
ConvertationProgress: 2,
|
||||||
|
DownloadProgress: 1,
|
||||||
|
No: 0,
|
||||||
|
Unknown: -1,
|
||||||
|
ConvertationTimeout: -2,
|
||||||
|
ConvertationError: -3,
|
||||||
|
DownloadError: -4,
|
||||||
|
UnexpectedGuid: -5,
|
||||||
|
Database: -6,
|
||||||
|
FileRequest: -7,
|
||||||
|
FileVKey: -8,
|
||||||
|
UplImageSize: -9,
|
||||||
|
UplImageExt: -10,
|
||||||
|
UplImageFileCount: -11,
|
||||||
|
NoSupportClipdoard: -12,
|
||||||
|
PastInMergeAreaError: -13,
|
||||||
|
StockChartError: -14,
|
||||||
|
DataRangeError: -15,
|
||||||
|
CannotMoveRange: -16,
|
||||||
|
UplImageUrl: -17,
|
||||||
|
CoAuthoringDisconnect: -18,
|
||||||
|
ConvertationPassword: -19,
|
||||||
|
|
||||||
|
VKeyEncrypt: -20,
|
||||||
|
KeyExpire: -21,
|
||||||
|
UserCountExceed: -22,
|
||||||
|
|
||||||
|
/* для формул */
|
||||||
|
FrmlWrongCountParentheses: -300,
|
||||||
|
FrmlWrongOperator: -301,
|
||||||
|
FrmlWrongMaxArgument: -302,
|
||||||
|
FrmlWrongCountArgument: -303,
|
||||||
|
FrmlWrongFunctionName: -304,
|
||||||
|
FrmlAnotherParsingError: -305,
|
||||||
|
FrmlWrongArgumentRange: -306,
|
||||||
|
FrmlOperandExpected: -307,
|
||||||
|
FrmlParenthesesCorrectCount: -308,
|
||||||
|
FrmlWrongReferences: -309,
|
||||||
|
|
||||||
|
InvalidReferenceOrName: -310,
|
||||||
|
LockCreateDefName: -311,
|
||||||
|
|
||||||
|
|
||||||
|
AutoFilterDataRangeError: -50,
|
||||||
|
AutoFilterChangeFormatTableError: -51,
|
||||||
|
AutoFilterChangeError: -52,
|
||||||
|
AutoFilterMoveToHiddenRangeError: -53,
|
||||||
|
LockedAllError: -54,
|
||||||
|
LockedWorksheetRename: -55,
|
||||||
|
|
||||||
|
PasteMaxRangeError: -65,
|
||||||
|
|
||||||
|
MaxDataSeriesError: -80,
|
||||||
|
CannotFillRange: -81,
|
||||||
|
|
||||||
|
UserDrop: -100,
|
||||||
|
Warning: -101,
|
||||||
|
|
||||||
|
OpenWarning: 500
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var c_oAscConfirm = {
|
||||||
|
ConfirmReplaceRange: 0
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscAlignType = {
|
||||||
|
NONE: "none",
|
||||||
|
LEFT: "left",
|
||||||
|
CENTER: "center",
|
||||||
|
RIGHT: "right",
|
||||||
|
JUSTIFY: "justify",
|
||||||
|
TOP: "top",
|
||||||
|
MIDDLE: "center",
|
||||||
|
BOTTOM: "bottom"
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscMergeOptions = {
|
||||||
|
Unmerge: 0,
|
||||||
|
Merge: 1,
|
||||||
|
MergeCenter: 2,
|
||||||
|
MergeAcross: 3
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscSortOptions = {
|
||||||
|
Ascending: 1,
|
||||||
|
Descending: 2
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscInsertOptions = {
|
||||||
|
InsertCellsAndShiftRight: 1,
|
||||||
|
InsertCellsAndShiftDown: 2,
|
||||||
|
InsertColumns: 3,
|
||||||
|
InsertRows: 4
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscDeleteOptions = {
|
||||||
|
DeleteCellsAndShiftLeft: 1,
|
||||||
|
DeleteCellsAndShiftTop: 2,
|
||||||
|
DeleteColumns: 3,
|
||||||
|
DeleteRows: 4
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscBorderOptions = {
|
||||||
|
Top: 0,
|
||||||
|
Right: 1,
|
||||||
|
Bottom: 2,
|
||||||
|
Left: 3,
|
||||||
|
DiagD: 4,
|
||||||
|
DiagU: 5,
|
||||||
|
InnerV: 6,
|
||||||
|
InnerH: 7
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscCleanOptions = {
|
||||||
|
All: 0,
|
||||||
|
Text: 1,
|
||||||
|
Format: 2,
|
||||||
|
Formula: 4,
|
||||||
|
Comments: 5,
|
||||||
|
Hyperlinks: 6
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscDrawDepOptions = {
|
||||||
|
Master: 0,
|
||||||
|
Slave: 1,
|
||||||
|
Clear: 2
|
||||||
|
};
|
||||||
|
|
||||||
|
// selection type
|
||||||
|
var c_oAscSelectionType = {
|
||||||
|
RangeCells: 1,
|
||||||
|
RangeCol: 2,
|
||||||
|
RangeRow: 3,
|
||||||
|
RangeMax: 4,
|
||||||
|
RangeImage: 5,
|
||||||
|
RangeChart: 6,
|
||||||
|
RangeShape: 7,
|
||||||
|
RangeShapeText: 8,
|
||||||
|
RangeChartText: 9,
|
||||||
|
RangeFrozen: 10
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscSelectionDialogType = {
|
||||||
|
None: 0,
|
||||||
|
FormatTable: 1,
|
||||||
|
Chart: 2,
|
||||||
|
DefinedName: 3
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscGraphicOption = {
|
||||||
|
ScrollVertical: 1,
|
||||||
|
ScrollHorizontal: 2
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscHyperlinkType = {
|
||||||
|
WebLink: 1,
|
||||||
|
RangeLink: 2
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscMouseMoveType = {
|
||||||
|
None: 0,
|
||||||
|
Hyperlink: 1,
|
||||||
|
Comment: 2,
|
||||||
|
LockedObject: 3,
|
||||||
|
ResizeColumn: 4,
|
||||||
|
ResizeRow: 5
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscMouseMoveLockedObjectType = {
|
||||||
|
None: -1,
|
||||||
|
Range: 0,
|
||||||
|
TableProperties: 1,
|
||||||
|
Sheet: 2
|
||||||
|
};
|
||||||
|
|
||||||
|
// Print default options (in mm)
|
||||||
|
var c_oAscPrintDefaultSettings = {
|
||||||
|
// Размеры страницы при печати
|
||||||
|
PageWidth: 210,
|
||||||
|
PageHeight: 297,
|
||||||
|
PageOrientation: c_oAscPageOrientation.PagePortrait,
|
||||||
|
|
||||||
|
// Поля для страницы при печати
|
||||||
|
PageLeftField: 17.8,
|
||||||
|
PageRightField: 17.8,
|
||||||
|
PageTopField: 19.1,
|
||||||
|
PageBottomField: 19.1,
|
||||||
|
|
||||||
|
PageGridLines: 0,
|
||||||
|
PageHeadings: 0
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscLockTypeElem = {
|
||||||
|
Range: 1,
|
||||||
|
Object: 2,
|
||||||
|
Sheet: 3
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscLockTypeElemSubType = {
|
||||||
|
DeleteColumns: 1,
|
||||||
|
InsertColumns: 2,
|
||||||
|
DeleteRows: 3,
|
||||||
|
InsertRows: 4,
|
||||||
|
ChangeProperties: 5,
|
||||||
|
DefinedNames: 6
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscRecalcIndexTypes = {
|
||||||
|
RecalcIndexAdd: 1,
|
||||||
|
RecalcIndexRemove: 2
|
||||||
|
};
|
||||||
|
|
||||||
|
// Тип печати
|
||||||
|
var c_oAscPrintType = {
|
||||||
|
ActiveSheets: 0, // Активные листы
|
||||||
|
EntireWorkbook: 1, // Всю книгу
|
||||||
|
Selection: 2 // Выделенный фрагмент
|
||||||
|
};
|
||||||
|
// Тип печати
|
||||||
|
var c_oAscLayoutPageType = {
|
||||||
|
FitToWidth: 0, // На всю ширину
|
||||||
|
ActualSize: 1 // По реальным размерам
|
||||||
|
};
|
||||||
|
|
||||||
|
/** @enum */
|
||||||
|
var c_oAscCustomAutoFilter = {
|
||||||
|
equals: 1,
|
||||||
|
isGreaterThan: 2,
|
||||||
|
isGreaterThanOrEqualTo: 3,
|
||||||
|
isLessThan: 4,
|
||||||
|
isLessThanOrEqualTo: 5,
|
||||||
|
doesNotEqual: 6,
|
||||||
|
beginsWith: 7,
|
||||||
|
doesNotBeginWith: 8,
|
||||||
|
endsWith: 9,
|
||||||
|
doesNotEndWith: 10,
|
||||||
|
contains: 11,
|
||||||
|
doesNotContain: 12
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscChangeFilterOptions = {
|
||||||
|
filter: 1,
|
||||||
|
style: 2
|
||||||
|
};
|
||||||
|
|
||||||
|
// Состояние редактора ячейки
|
||||||
|
var c_oAscCellEditorState = {
|
||||||
|
editEnd: 0, // Окончание редактирования
|
||||||
|
editStart: 1, // Начало редактирования
|
||||||
|
editEmptyCell: 2, // Редактирование пустой ячейки (доступны функции и свойства текста)
|
||||||
|
editText: 3, // Редактирование текста, числа, даты и др. формата, кроме формулы
|
||||||
|
editFormula: 4 // Редактирование формулы
|
||||||
|
};
|
||||||
|
|
||||||
|
// Состояние select-а
|
||||||
|
var c_oAscCellEditorSelectState = {
|
||||||
|
no : 0,
|
||||||
|
char : 1,
|
||||||
|
word : 2
|
||||||
|
};
|
||||||
|
|
||||||
|
// Пересчитывать ли ширину столбца
|
||||||
|
var c_oAscCanChangeColWidth = {
|
||||||
|
none: 0, // not recalc
|
||||||
|
numbers: 1, // only numbers
|
||||||
|
all: 2 // numbers + text
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscPaneState = {
|
||||||
|
Frozen: "frozen",
|
||||||
|
FrozenSplit: "frozenSplit"
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscFindLookIn = {
|
||||||
|
Formulas: 1,
|
||||||
|
Value: 2,
|
||||||
|
Annotations: 3
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oTargetType = {
|
||||||
|
None: 0,
|
||||||
|
ColumnResize: 1,
|
||||||
|
RowResize: 2,
|
||||||
|
FillHandle: 3,
|
||||||
|
MoveRange: 4,
|
||||||
|
MoveResizeRange: 5,
|
||||||
|
FilterObject: 6,
|
||||||
|
ColumnHeader: 7,
|
||||||
|
RowHeader: 8,
|
||||||
|
Corner: 9,
|
||||||
|
Hyperlink: 10,
|
||||||
|
Cells: 11,
|
||||||
|
Shape: 12,
|
||||||
|
FrozenAnchorH: 14,
|
||||||
|
FrozenAnchorV: 15
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscAutoFilterTypes = {
|
||||||
|
ColorFilter: 0,
|
||||||
|
CustomFilters: 1,
|
||||||
|
DynamicFilter: 2,
|
||||||
|
Top10: 3,
|
||||||
|
Filters: 4
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscCoAuthoringMeBorderColor = new window["CColor"](22, 156, 0);
|
||||||
|
var c_oAscCoAuthoringOtherBorderColor = new window["CColor"](238, 53, 37);
|
||||||
|
var c_oAscCoAuthoringLockTablePropertiesBorderColor = new window["CColor"](255, 144, 0);
|
||||||
|
var c_oAscCoAuthoringDottedWidth = 2;
|
||||||
|
var c_oAscCoAuthoringDottedDistance = 2;
|
||||||
|
|
||||||
|
var c_oAscFormulaRangeBorderColor = [
|
||||||
|
new window["CColor"](95, 140, 237),
|
||||||
|
new window["CColor"](235, 94, 96),
|
||||||
|
new window["CColor"](141, 97, 194),
|
||||||
|
new window["CColor"](45, 150, 57),
|
||||||
|
new window["CColor"](191, 76, 145),
|
||||||
|
new window["CColor"](227, 130, 34),
|
||||||
|
new window["CColor"](55, 127, 158)
|
||||||
|
];
|
||||||
|
|
||||||
|
var c_oAscLockNameFrozenPane = "frozenPane";
|
||||||
|
var c_oAscLockNameTabColor = "tabColor";
|
||||||
|
|
||||||
|
var c_oAscGetDefinedNamesList = {
|
||||||
|
Worksheet: 0,
|
||||||
|
WorksheetWorkbook: 1,
|
||||||
|
All: 2
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscDefinedNameReason = {
|
||||||
|
WrongName: -1,
|
||||||
|
IsLocked: -2,
|
||||||
|
Existed: -3,
|
||||||
|
LockDefNameManager: -4,
|
||||||
|
NameReserved: -5,
|
||||||
|
OK: 0
|
||||||
|
};
|
||||||
|
|
||||||
|
var c_oAscPopUpSelectorType = {
|
||||||
|
None: 0,
|
||||||
|
Func: 1,
|
||||||
|
Range: 2,
|
||||||
|
Table: 3
|
||||||
|
};
|
BIN
sdk/Excel/css/gradient.png
Normal file
After Width: | Height: | Size: 962 B |
110
sdk/Excel/css/main-mobile.css
Normal file
|
@ -0,0 +1,110 @@
|
||||||
|
@charset "UTF-8";
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Worksheet canvas
|
||||||
|
* --------------------------------------------------------
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ws-canvas-outer {
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ws-canvas {
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ws-canvas-overlay {
|
||||||
|
border: 0;
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Worksheet scroll bars
|
||||||
|
* --------------------------------------------------------
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ws-v-scrollbar {
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
width: 19px;
|
||||||
|
top: -1px;
|
||||||
|
bottom: 18px;
|
||||||
|
overflow: hidden;
|
||||||
|
z-index: 10;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ws-v-scroll-helper {
|
||||||
|
width: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ws-h-scrollbar {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
height: 19px;
|
||||||
|
left: 0;
|
||||||
|
right: 18px;
|
||||||
|
overflow: hidden;
|
||||||
|
z-index: 10;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ws-h-scroll-helper {
|
||||||
|
height: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ws-scrollbar-corner {
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
width: 18px;
|
||||||
|
height: 18px;
|
||||||
|
background-color: #DCE2E8;
|
||||||
|
border: 0;
|
||||||
|
z-index: 10;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Scrollbars common */
|
||||||
|
|
||||||
|
#ws-v-scrollbar .jspVerticalBar,
|
||||||
|
#ws-h-scrollbar .jspHorizontalBar,
|
||||||
|
#ws-v-scrollbar .jspTrack,
|
||||||
|
#ws-h-scrollbar .jspTrack {
|
||||||
|
background-color: #DCE2E8;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ws-v-scrollbar .jspDrag,
|
||||||
|
#ws-h-scrollbar .jspDrag {
|
||||||
|
background-color: #C0C0C0;
|
||||||
|
}
|
||||||
|
#ws-v-scrollbar .jspDrag.jspHover,
|
||||||
|
#ws-v-scrollbar .jspDrag.jspActive,
|
||||||
|
#ws-h-scrollbar .jspDrag.jspHover,
|
||||||
|
#ws-h-scrollbar .jspDrag.jspActive {
|
||||||
|
background-color: #808080;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Vertical scrollbar */
|
||||||
|
|
||||||
|
#ws-v-scrollbar .jspVerticalBar {
|
||||||
|
width: 7px;
|
||||||
|
border-left: 1px solid #C1C6CC;
|
||||||
|
}
|
||||||
|
#ws-v-scrollbar .jspTrack {
|
||||||
|
width: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Horizontal scrollbar */
|
||||||
|
|
||||||
|
#ws-h-scrollbar .jspHorizontalBar {
|
||||||
|
height: 7px;
|
||||||
|
border-top: 1px solid #C1C6CC;
|
||||||
|
}
|
||||||
|
#ws-h-scrollbar .jspTrack {
|
||||||
|
height: 8px;
|
||||||
|
}
|
156
sdk/Excel/css/main.css
Normal file
|
@ -0,0 +1,156 @@
|
||||||
|
@charset "UTF-8";
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Worksheet canvas
|
||||||
|
* --------------------------------------------------------
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ws-canvas-outer {
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
right: 14px;
|
||||||
|
bottom: 14px;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ws-canvas {
|
||||||
|
border: 0;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ws-canvas-overlay, #ws-canvas-graphic, #ws-canvas-graphic-overlay {
|
||||||
|
-webkit-user-select: none;
|
||||||
|
border: 0;
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Worksheet scroll bars
|
||||||
|
* --------------------------------------------------------
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ws-v-scrollbar {
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
width: 14px;
|
||||||
|
top: 0px;
|
||||||
|
bottom: 14px;
|
||||||
|
overflow: hidden;
|
||||||
|
z-index: 10;
|
||||||
|
background-color: #f1f1f1;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ws-v-scroll-helper {
|
||||||
|
width: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ws-h-scrollbar {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
height: 14px;
|
||||||
|
left: 0px;
|
||||||
|
right: 14px;
|
||||||
|
overflow: hidden;
|
||||||
|
z-index: 10;
|
||||||
|
background-color: #f1f1f1;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ws-h-scroll-helper {
|
||||||
|
height: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ws-scrollbar-corner {
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
width: 14px;
|
||||||
|
height: 14px;
|
||||||
|
background-color: #F4F4F4;
|
||||||
|
border: 0;
|
||||||
|
z-index: 10;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Scrollbars common */
|
||||||
|
|
||||||
|
#ws-v-scrollbar .jspVerticalBar,
|
||||||
|
#ws-h-scrollbar .jspHorizontalBar,
|
||||||
|
#ws-v-scrollbar .jspTrack,
|
||||||
|
#ws-h-scrollbar .jspTrack {
|
||||||
|
background-color: #DCE2E8;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ws-v-scrollbar .jspDrag,
|
||||||
|
#ws-h-scrollbar .jspDrag {
|
||||||
|
background-color: #C0C0C0;
|
||||||
|
}
|
||||||
|
#ws-v-scrollbar .jspDrag.jspHover,
|
||||||
|
#ws-v-scrollbar .jspDrag.jspActive,
|
||||||
|
#ws-h-scrollbar .jspDrag.jspHover,
|
||||||
|
#ws-h-scrollbar .jspDrag.jspActive {
|
||||||
|
background-color: #808080;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Vertical scrollbar */
|
||||||
|
|
||||||
|
#ws-v-scrollbar .jspVerticalBar {
|
||||||
|
width: 7px;
|
||||||
|
border-left: 1px solid #C1C6CC;
|
||||||
|
}
|
||||||
|
#ws-v-scrollbar .jspTrack {
|
||||||
|
width: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Horizontal scrollbar */
|
||||||
|
|
||||||
|
#ws-h-scrollbar .jspHorizontalBar {
|
||||||
|
height: 7px;
|
||||||
|
border-top: 1px solid #C1C6CC;
|
||||||
|
}
|
||||||
|
#ws-h-scrollbar .jspTrack {
|
||||||
|
height: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Cell editor
|
||||||
|
* --------------------------------------------------------
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ce-canvas-outer {
|
||||||
|
position: absolute;
|
||||||
|
border: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ce-canvas,
|
||||||
|
#ce-canvas-overlay {
|
||||||
|
border: 0;
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ce-cursor {
|
||||||
|
position: absolute;
|
||||||
|
background-color: #000;
|
||||||
|
width: 1px;
|
||||||
|
height: 11pt;
|
||||||
|
cursor: text;
|
||||||
|
}
|
||||||
|
|
||||||
|
#apiPopUpSelector {
|
||||||
|
position: absolute;
|
||||||
|
}
|
||||||
|
#apiPopUpList {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
max-height: 210px;
|
||||||
|
overflow: hidden;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
#apiPopUpList li {
|
||||||
|
max-width: 500px;
|
||||||
|
}
|
BIN
sdk/Excel/css/nav-buttons.png
Normal file
After Width: | Height: | Size: 417 B |
3
sdk/Excel/document/editor.js
Normal file
3
sdk/Excel/document/empty-workbook.js
Normal file
BIN
sdk/Excel/document/media/image1.jpg
Normal file
After Width: | Height: | Size: 118 KiB |
BIN
sdk/Excel/document/media/image2.jpg
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
sdk/Excel/document/test-workbook9.xlsx
Normal file
9266
sdk/Excel/jquery/jquery-1.7.1.js
vendored
Normal file
84
sdk/Excel/jquery/jquery.mousewheel-3.0.6.js
Normal file
|
@ -0,0 +1,84 @@
|
||||||
|
/*! Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net)
|
||||||
|
* Licensed under the MIT License (LICENSE.txt).
|
||||||
|
*
|
||||||
|
* Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
|
||||||
|
* Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
|
||||||
|
* Thanks to: Seamus Leahy for adding deltaX and deltaY
|
||||||
|
*
|
||||||
|
* Version: 3.0.6
|
||||||
|
*
|
||||||
|
* Requires: 1.2.2+
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function($) {
|
||||||
|
|
||||||
|
var types = ['DOMMouseScroll', 'mousewheel'];
|
||||||
|
|
||||||
|
if ($.event.fixHooks) {
|
||||||
|
for ( var i=types.length; i; ) {
|
||||||
|
$.event.fixHooks[ types[--i] ] = $.event.mouseHooks;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$.event.special.mousewheel = {
|
||||||
|
setup: function() {
|
||||||
|
if ( this.addEventListener ) {
|
||||||
|
for ( var i=types.length; i; ) {
|
||||||
|
this.addEventListener( types[--i], handler, false );
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.onmousewheel = handler;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
teardown: function() {
|
||||||
|
if ( this.removeEventListener ) {
|
||||||
|
for ( var i=types.length; i; ) {
|
||||||
|
this.removeEventListener( types[--i], handler, false );
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.onmousewheel = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
$.fn.extend({
|
||||||
|
mousewheel: function(fn) {
|
||||||
|
return fn ? this.bind("mousewheel", fn) : this.trigger("mousewheel");
|
||||||
|
},
|
||||||
|
|
||||||
|
unmousewheel: function(fn) {
|
||||||
|
return this.unbind("mousewheel", fn);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
function handler(event) {
|
||||||
|
var orgEvent = event || window.event, args = [].slice.call( arguments, 1 ), delta = 0, returnValue = true, deltaX = 0, deltaY = 0;
|
||||||
|
event = $.event.fix(orgEvent);
|
||||||
|
event.type = "mousewheel";
|
||||||
|
|
||||||
|
// Old school scrollwheel delta
|
||||||
|
if ( orgEvent.wheelDelta ) { delta = orgEvent.wheelDelta/120; }
|
||||||
|
if ( orgEvent.detail ) { delta = -orgEvent.detail/3; }
|
||||||
|
|
||||||
|
// New school multidimensional scroll (touchpads) deltas
|
||||||
|
deltaY = delta;
|
||||||
|
|
||||||
|
// Gecko
|
||||||
|
if ( orgEvent.axis !== undefined && orgEvent.axis === orgEvent.HORIZONTAL_AXIS ) {
|
||||||
|
deltaY = 0;
|
||||||
|
deltaX = -1*delta;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Webkit
|
||||||
|
if ( orgEvent.wheelDeltaY !== undefined ) { deltaY = orgEvent.wheelDeltaY/120; }
|
||||||
|
if ( orgEvent.wheelDeltaX !== undefined ) { deltaX = -1*orgEvent.wheelDeltaX/120; }
|
||||||
|
|
||||||
|
// Add event and delta to the front of the arguments
|
||||||
|
args.unshift(event, delta, deltaX, deltaY);
|
||||||
|
|
||||||
|
return ($.event.dispatch || $.event.handle).apply(this, args);
|
||||||
|
}
|
||||||
|
|
||||||
|
})(jQuery);
|
159
sdk/Excel/model/AdvancedOptions.js
Normal file
|
@ -0,0 +1,159 @@
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
(
|
||||||
|
/**
|
||||||
|
* @param {Window} window
|
||||||
|
* @param {undefined} undefined
|
||||||
|
*/
|
||||||
|
function ( window, undefined) {
|
||||||
|
|
||||||
|
if (!window["Asc"]) {window["Asc"] = {};}
|
||||||
|
var prot;
|
||||||
|
|
||||||
|
/** @constructor */
|
||||||
|
function asc_CAdvancedOptions(id,opt){
|
||||||
|
this.optionId = null;
|
||||||
|
this.options = null;
|
||||||
|
|
||||||
|
switch(id){
|
||||||
|
case c_oAscAdvancedOptionsID.CSV:
|
||||||
|
this.optionId = id;
|
||||||
|
this.options = new asc_CCSVOptions(opt);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
asc_CAdvancedOptions.prototype.asc_getOptionId = function(){ return this.optionId; };
|
||||||
|
asc_CAdvancedOptions.prototype.asc_getOptions = function(){ return this.options; };
|
||||||
|
|
||||||
|
window["Asc"].asc_CAdvancedOptions = window["Asc"]["asc_CAdvancedOptions"] = asc_CAdvancedOptions;
|
||||||
|
prot = asc_CAdvancedOptions.prototype;
|
||||||
|
prot["asc_getOptionId"] = prot.asc_getOptionId;
|
||||||
|
prot["asc_getOptions"] = prot.asc_getOptions;
|
||||||
|
|
||||||
|
/** @constructor */
|
||||||
|
function asc_CCSVOptions(opt){
|
||||||
|
this.codePages = function(){
|
||||||
|
var arr = [], c, encodings = opt["encodings"];
|
||||||
|
for(var i = 0; i < encodings.length; i++ ){
|
||||||
|
c = new asc_CCodePage();
|
||||||
|
c.init(encodings[i]);
|
||||||
|
arr.push(c);
|
||||||
|
}
|
||||||
|
return arr;
|
||||||
|
}();
|
||||||
|
this.recommendedSettings = new asc_CCSVAdvancedOptions (opt["codepage"], opt["delimiter"]);
|
||||||
|
}
|
||||||
|
asc_CCSVOptions.prototype.asc_getCodePages = function(){ return this.codePages;};
|
||||||
|
asc_CCSVOptions.prototype.asc_getRecommendedSettings = function () { return this.recommendedSettings; };
|
||||||
|
|
||||||
|
window["Asc"].asc_CCSVOptions = asc_CCSVOptions;
|
||||||
|
window["Asc"]["asc_CCSVOptions"] = asc_CCSVOptions;
|
||||||
|
prot = asc_CCSVOptions.prototype;
|
||||||
|
|
||||||
|
prot["asc_getCodePages"] = prot.asc_getCodePages;
|
||||||
|
prot["asc_getRecommendedSettings"] = prot.asc_getRecommendedSettings;
|
||||||
|
|
||||||
|
/** @constructor */
|
||||||
|
function asc_CCSVAdvancedOptions(codepage,delimiter){
|
||||||
|
this.codePage = codepage;
|
||||||
|
this.delimiter = delimiter;
|
||||||
|
}
|
||||||
|
asc_CCSVAdvancedOptions.prototype.asc_getDelimiter = function(){return this.delimiter;};
|
||||||
|
asc_CCSVAdvancedOptions.prototype.asc_setDelimiter = function(v){this.delimiter = v;};
|
||||||
|
asc_CCSVAdvancedOptions.prototype.asc_getCodePage = function(){return this.codePage;};
|
||||||
|
asc_CCSVAdvancedOptions.prototype.asc_setCodePage = function(v){this.codePage = v;};
|
||||||
|
|
||||||
|
window["Asc"].asc_CCSVAdvancedOptions = window["Asc"]["asc_CCSVAdvancedOptions"] = asc_CCSVAdvancedOptions;
|
||||||
|
prot = asc_CCSVAdvancedOptions.prototype;
|
||||||
|
prot["asc_getDelimiter"] = prot.asc_getDelimiter;
|
||||||
|
prot["asc_setDelimiter"] = prot.asc_setDelimiter;
|
||||||
|
prot["asc_getCodePage"] = prot.asc_getCodePage;
|
||||||
|
prot["asc_setCodePage"] = prot.asc_setCodePage;
|
||||||
|
|
||||||
|
/** @constructor */
|
||||||
|
function asc_CCodePage(){
|
||||||
|
this.codePageName = null;
|
||||||
|
this.codePage = null;
|
||||||
|
this.text = null;
|
||||||
|
}
|
||||||
|
asc_CCodePage.prototype.init = function (encoding) {
|
||||||
|
this.codePageName = encoding["name"];
|
||||||
|
this.codePage = encoding["codepage"];
|
||||||
|
this.text = encoding["text"];
|
||||||
|
};
|
||||||
|
asc_CCodePage.prototype.asc_getCodePageName = function(){return this.codePageName;};
|
||||||
|
asc_CCodePage.prototype.asc_setCodePageName = function(v){this.codePageName = v;};
|
||||||
|
asc_CCodePage.prototype.asc_getCodePage = function(){return this.codePage;};
|
||||||
|
asc_CCodePage.prototype.asc_setCodePage = function(v){this.codePage = v;};
|
||||||
|
asc_CCodePage.prototype.asc_getText = function(){return this.text;};
|
||||||
|
asc_CCodePage.prototype.asc_setText = function(v){this.text = v;};
|
||||||
|
|
||||||
|
window["Asc"].asc_CCodePage = window["Asc"]["asc_CCodePage"] = asc_CCodePage;
|
||||||
|
prot = asc_CCodePage.prototype;
|
||||||
|
prot["asc_getCodePageName"] = prot.asc_getCodePageName;
|
||||||
|
prot["asc_setCodePageName"] = prot.asc_setCodePageName;
|
||||||
|
prot["asc_getCodePage"] = prot.asc_getCodePage;
|
||||||
|
prot["asc_setCodePage"] = prot.asc_setCodePage;
|
||||||
|
prot["asc_getText"] = prot.asc_getText;
|
||||||
|
prot["asc_setText"] = prot.asc_setText;
|
||||||
|
|
||||||
|
/** @constructor */
|
||||||
|
function asc_CDelimiter(delimiter){
|
||||||
|
this.delimiterName = delimiter;
|
||||||
|
}
|
||||||
|
asc_CDelimiter.prototype.asc_getDelimiterName = function(){return this.delimiterName;};
|
||||||
|
asc_CDelimiter.prototype.asc_setDelimiterName = function(v){ this.delimiterName = v;};
|
||||||
|
|
||||||
|
window["Asc"].asc_CDelimiter = window["Asc"]["asc_CDelimiter"] = asc_CDelimiter;
|
||||||
|
prot = asc_CDelimiter.prototype;
|
||||||
|
prot["asc_getDelimiterName"] = prot.asc_getDelimiterName;
|
||||||
|
prot["asc_setDelimiterName"] = prot.asc_setDelimiterName;
|
||||||
|
|
||||||
|
CFont.prototype= {
|
||||||
|
asc_getFontId : function() { return this.id; },
|
||||||
|
asc_getFontName : function() { return this.name; },
|
||||||
|
asc_getFontThumbnail : function() { return this.thumbnail; },
|
||||||
|
asc_getFontType : function() { return this.type; }
|
||||||
|
};
|
||||||
|
|
||||||
|
window["Asc"].CFont = window["Asc"]["CFont"] = CFont;
|
||||||
|
prot = CFont.prototype;
|
||||||
|
prot["asc_getFontId"] = prot.asc_getFontId;
|
||||||
|
prot["asc_getFontName"] = prot.asc_getFontName;
|
||||||
|
prot["asc_getFontThumbnail"] = prot.asc_getFontThumbnail;
|
||||||
|
prot["asc_getFontType"] = prot.asc_getFontType;
|
||||||
|
|
||||||
|
/** @constructor */
|
||||||
|
function asc_CFormulaGroup(name){
|
||||||
|
this.groupName = name;
|
||||||
|
this.formulasArray = [];
|
||||||
|
}
|
||||||
|
asc_CFormulaGroup.prototype.asc_getGroupName = function() { return this.groupName; };
|
||||||
|
asc_CFormulaGroup.prototype.asc_getFormulasArray = function() { return this.formulasArray; };
|
||||||
|
asc_CFormulaGroup.prototype.asc_addFormulaElement = function(o) { return this.formulasArray.push(o); };
|
||||||
|
|
||||||
|
window["Asc"].asc_CFormulaGroup = window["Asc"]["asc_CFormulaGroup"] = asc_CFormulaGroup;
|
||||||
|
prot = asc_CFormulaGroup.prototype;
|
||||||
|
prot["asc_getGroupName"] = prot.asc_getGroupName;
|
||||||
|
prot["asc_getFormulasArray"] = prot.asc_getFormulasArray;
|
||||||
|
prot["asc_addFormulaElement"] = prot.asc_addFormulaElement;
|
||||||
|
|
||||||
|
/** @constructor */
|
||||||
|
function asc_CFormula(o){
|
||||||
|
this.name = o.name;
|
||||||
|
this.arg = o.args;
|
||||||
|
}
|
||||||
|
asc_CFormula.prototype.asc_getName = function () {
|
||||||
|
return cFormulaFunctionToLocale ? cFormulaFunctionToLocale[this.name] : this.name;
|
||||||
|
};
|
||||||
|
asc_CFormula.prototype.asc_getArguments = function () {
|
||||||
|
return this.arg;
|
||||||
|
};
|
||||||
|
|
||||||
|
window["Asc"].asc_CFormula = window["Asc"]["asc_CFormula"] = asc_CFormula;
|
||||||
|
prot = asc_CFormula.prototype;
|
||||||
|
prot["asc_getName"] = prot.asc_getName;
|
||||||
|
prot["asc_getArguments"] = prot.asc_getArguments;
|
||||||
|
|
||||||
|
}
|
||||||
|
)(window);
|
1518
sdk/Excel/model/CellComment.js
Normal file
292
sdk/Excel/model/CellInfo.js
Normal file
|
@ -0,0 +1,292 @@
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
(
|
||||||
|
/**
|
||||||
|
* @param {Window} window
|
||||||
|
* @param {undefined} undefined
|
||||||
|
*/
|
||||||
|
function ( window, undefined) {
|
||||||
|
|
||||||
|
|
||||||
|
if (!window["Asc"]) {window["Asc"] = {};}
|
||||||
|
var prot;
|
||||||
|
|
||||||
|
/** @constructor */
|
||||||
|
function asc_CCellFlag(m, s, w, t, l) {
|
||||||
|
this.merge = !!m;
|
||||||
|
this.shrinkToFit = !!s;
|
||||||
|
this.wrapText = !!w;
|
||||||
|
this.selectionType = t;
|
||||||
|
this.lockText = !!l;
|
||||||
|
}
|
||||||
|
|
||||||
|
asc_CCellFlag.prototype = {
|
||||||
|
asc_getMerge: function() { return this.merge; },
|
||||||
|
asc_getShrinkToFit: function() { return this.shrinkToFit; },
|
||||||
|
asc_getWrapText: function() { return this.wrapText; },
|
||||||
|
asc_getSelectionType: function() { return this.selectionType; },
|
||||||
|
asc_getLockText: function() { return this.lockText; }
|
||||||
|
};
|
||||||
|
|
||||||
|
window["Asc"].asc_CCellFlag = window["Asc"]["asc_CCellFlag"] = asc_CCellFlag;
|
||||||
|
prot = asc_CCellFlag.prototype;
|
||||||
|
|
||||||
|
prot["asc_getMerge"] = prot.asc_getMerge;
|
||||||
|
prot["asc_getShrinkToFit"] = prot.asc_getShrinkToFit;
|
||||||
|
prot["asc_getWrapText"] = prot.asc_getWrapText;
|
||||||
|
prot["asc_getSelectionType"] = prot.asc_getSelectionType;
|
||||||
|
prot["asc_getLockText"] = prot.asc_getLockText;
|
||||||
|
|
||||||
|
/** @constructor */
|
||||||
|
function asc_CFont(name, size, color, b, i, u, s, sub, sup) {
|
||||||
|
this.name = name !== undefined ? name : "Arial";
|
||||||
|
this.size = size !== undefined ? size : 10;
|
||||||
|
this.color = color !== undefined ? color : null;
|
||||||
|
this.bold = !!b;
|
||||||
|
this.italic = !!i;
|
||||||
|
this.underline = !!u;
|
||||||
|
this.strikeout = !!s;
|
||||||
|
this.subscript = !!sub;
|
||||||
|
this.superscript = !!sup;
|
||||||
|
}
|
||||||
|
|
||||||
|
asc_CFont.prototype = {
|
||||||
|
asc_getName: function () { return this.name; },
|
||||||
|
asc_getSize: function () { return this.size; },
|
||||||
|
asc_getBold: function () { return this.bold; },
|
||||||
|
asc_getItalic: function () { return this.italic; },
|
||||||
|
asc_getUnderline: function () { return this.underline; },
|
||||||
|
asc_getStrikeout: function () { return this.strikeout; },
|
||||||
|
asc_getSubscript: function () { return this.subscript; },
|
||||||
|
asc_getSuperscript: function () { return this.superscript; },
|
||||||
|
asc_getColor: function () { return this.color; }
|
||||||
|
};
|
||||||
|
|
||||||
|
window["Asc"].asc_CFont = window["Asc"]["asc_CFont"] = asc_CFont;
|
||||||
|
prot = asc_CFont.prototype;
|
||||||
|
|
||||||
|
prot["asc_getName"] = prot.asc_getName;
|
||||||
|
prot["asc_getSize"] = prot.asc_getSize;
|
||||||
|
prot["asc_getBold"] = prot.asc_getBold;
|
||||||
|
prot["asc_getItalic"] = prot.asc_getItalic;
|
||||||
|
prot["asc_getUnderline"] = prot.asc_getUnderline;
|
||||||
|
prot["asc_getStrikeout"] = prot.asc_getStrikeout;
|
||||||
|
prot["asc_getSubscript"] = prot.asc_getSubscript;
|
||||||
|
prot["asc_getSuperscript"] = prot.asc_getSuperscript;
|
||||||
|
prot["asc_getColor"] = prot.asc_getColor;
|
||||||
|
|
||||||
|
/** @constructor */
|
||||||
|
function asc_CFill(color) {
|
||||||
|
this.color = color !== undefined ? color : null;
|
||||||
|
}
|
||||||
|
|
||||||
|
asc_CFill.prototype = {
|
||||||
|
asc_getColor: function() { return this.color; }
|
||||||
|
};
|
||||||
|
|
||||||
|
window["Asc"].asc_CFill = window["Asc"]["asc_CFill"] = asc_CFill;
|
||||||
|
prot = asc_CFill.prototype;
|
||||||
|
|
||||||
|
prot["asc_getColor"] = prot.asc_getColor;
|
||||||
|
|
||||||
|
/** @constructor */
|
||||||
|
function asc_CBorder(style, color) {
|
||||||
|
// ToDo заглушка для создания border-а
|
||||||
|
if (typeof style === "string") {
|
||||||
|
switch (style) {
|
||||||
|
case "thin" : this.style = c_oAscBorderStyles.Thin; break;
|
||||||
|
case "medium" : this.style = c_oAscBorderStyles.Medium; break;
|
||||||
|
case "thick" : this.style = c_oAscBorderStyles.Thick; break;
|
||||||
|
default : this.style = c_oAscBorderStyles.None; break;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.style = style !== undefined ? style : c_oAscBorderStyles.None;
|
||||||
|
}
|
||||||
|
this.color = color !== undefined ? color : null;
|
||||||
|
}
|
||||||
|
|
||||||
|
asc_CBorder.prototype = {
|
||||||
|
asc_getStyle: function() { return this.style; },
|
||||||
|
asc_getColor: function() { return this.color; }
|
||||||
|
};
|
||||||
|
|
||||||
|
window["Asc"].asc_CBorder = window["Asc"]["asc_CBorder"] = asc_CBorder;
|
||||||
|
prot = asc_CBorder.prototype;
|
||||||
|
|
||||||
|
prot["asc_getStyle"] = prot.asc_getStyle;
|
||||||
|
prot["asc_getColor"] = prot.asc_getColor;
|
||||||
|
|
||||||
|
/** @constructor */
|
||||||
|
function asc_CBorders() {
|
||||||
|
this.left = null;
|
||||||
|
this.top = null;
|
||||||
|
this.right = null;
|
||||||
|
this.bottom = null;
|
||||||
|
this.diagDown = null;
|
||||||
|
this.diagUp = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
asc_CBorders.prototype = {
|
||||||
|
asc_getLeft: function() { return this.left; },
|
||||||
|
asc_getTop: function() { return this.top; },
|
||||||
|
asc_getRight: function() { return this.right; },
|
||||||
|
asc_getBottom: function() { return this.bottom; },
|
||||||
|
asc_getDiagDown: function() { return this.diagDown; },
|
||||||
|
asc_getDiagUp: function() { return this.diagUp; }
|
||||||
|
};
|
||||||
|
|
||||||
|
window["Asc"].asc_CBorders = window["Asc"]["asc_CBorders"] = asc_CBorders;
|
||||||
|
prot = asc_CBorders.prototype;
|
||||||
|
|
||||||
|
prot["asc_getLeft"] = prot.asc_getLeft;
|
||||||
|
prot["asc_getTop"] = prot.asc_getTop;
|
||||||
|
prot["asc_getRight"] = prot.asc_getRight;
|
||||||
|
prot["asc_getBottom"] = prot.asc_getBottom;
|
||||||
|
prot["asc_getDiagDown"] = prot.asc_getDiagDown;
|
||||||
|
prot["asc_getDiagUp"] = prot.asc_getDiagUp;
|
||||||
|
|
||||||
|
/** @constructor */
|
||||||
|
function asc_CAutoFilterInfo() {
|
||||||
|
this.tableStyleName = null;
|
||||||
|
this.tableName = null;
|
||||||
|
this.isApplyAutoFilter = false; // Кнопка очистить фильтр: false - disable, true - pressed button
|
||||||
|
this.isAutoFilter = false; // Кнопка автофильтр (также влияет на formatTable и Sort). Возможные состояния:
|
||||||
|
// - null - мы в пересечении с таблицой (но не полностью в ней)
|
||||||
|
// - true/false - когда мы полностью в таблице или вне ее (true/false в зависимости от того применен фильтр или нет)
|
||||||
|
}
|
||||||
|
|
||||||
|
asc_CAutoFilterInfo.prototype = {
|
||||||
|
asc_getTableStyleName: function () { return this.tableStyleName; },
|
||||||
|
asc_getTableName: function () { return this.tableName; },
|
||||||
|
asc_getIsAutoFilter: function () { return this.isAutoFilter; },
|
||||||
|
asc_getIsApplyAutoFilter: function () { return this.isApplyAutoFilter; }
|
||||||
|
};
|
||||||
|
|
||||||
|
window["Asc"].asc_CAutoFilterInfo = window["Asc"]["asc_CAutoFilterInfo"] = asc_CAutoFilterInfo;
|
||||||
|
prot = asc_CAutoFilterInfo.prototype;
|
||||||
|
|
||||||
|
prot["asc_getTableStyleName"] = prot.asc_getTableStyleName;
|
||||||
|
prot["asc_getTableName"] = prot.asc_getTableName;
|
||||||
|
prot["asc_getIsAutoFilter"] = prot.asc_getIsAutoFilter;
|
||||||
|
prot["asc_getIsApplyAutoFilter"] = prot.asc_getIsApplyAutoFilter;
|
||||||
|
|
||||||
|
|
||||||
|
/** @constructor */
|
||||||
|
function asc_CCellInfo() {
|
||||||
|
this.name = null;
|
||||||
|
this.formula = "";
|
||||||
|
this.text = "";
|
||||||
|
this.halign = "left";
|
||||||
|
this.valign = "top";
|
||||||
|
this.flags = null;
|
||||||
|
this.font = null;
|
||||||
|
this.fill = null;
|
||||||
|
this.border = null;
|
||||||
|
this.innertext = null;
|
||||||
|
this.numFormat = null;
|
||||||
|
this.hyperlink = null;
|
||||||
|
this.comments = [];
|
||||||
|
this.isLocked = false;
|
||||||
|
this.styleName = null;
|
||||||
|
this.numFormatType = null;
|
||||||
|
this.angle = null;
|
||||||
|
this.autoFilterInfo = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
asc_CCellInfo.prototype = {
|
||||||
|
asc_getName: function(){ return this.name; },
|
||||||
|
asc_getFormula: function() { return this.formula; },
|
||||||
|
asc_getText: function(){ return this.text; },
|
||||||
|
asc_getHorAlign: function(){ return this.halign; },
|
||||||
|
asc_getVertAlign: function(){ return this.valign; },
|
||||||
|
asc_getFlags: function(){ return this.flags; },
|
||||||
|
asc_getFont: function(){ return this.font; },
|
||||||
|
asc_getFill: function(){ return this.fill; },
|
||||||
|
asc_getBorders: function(){ return this.border; },
|
||||||
|
asc_getInnerText: function(){ return this.innertext; },
|
||||||
|
asc_getNumFormat: function(){ return this.numFormat; },
|
||||||
|
asc_getHyperlink: function(){ return this.hyperlink; },
|
||||||
|
asc_getComments: function(){ return this.comments; },
|
||||||
|
asc_getLocked: function(){ return this.isLocked; },
|
||||||
|
asc_getStyleName: function () { return this.styleName; },
|
||||||
|
asc_getNumFormatType: function(){ return this.numFormatType; },
|
||||||
|
asc_getAngle: function () { return this.angle; },
|
||||||
|
asc_getAutoFilterInfo: function () { return this.autoFilterInfo; },
|
||||||
|
asc_getIsFormatTable: function() {return null},//TODO DELETE
|
||||||
|
asc_getIsAutoFilter: function() {return null},//TODO DELETE
|
||||||
|
asc_getTableStyleName: function() {return null},//TODO DELETE
|
||||||
|
asc_getClearFilter: function() {return null}//TODO DELETE
|
||||||
|
};
|
||||||
|
|
||||||
|
window["Asc"].asc_CCellInfo = window["Asc"]["asc_CCellInfo"] = asc_CCellInfo;
|
||||||
|
prot = asc_CCellInfo.prototype;
|
||||||
|
|
||||||
|
prot["asc_getName"] = prot.asc_getName;
|
||||||
|
prot["asc_getFormula"] = prot.asc_getFormula;
|
||||||
|
prot["asc_getText"] = prot.asc_getText;
|
||||||
|
prot["asc_getHorAlign"] = prot.asc_getHorAlign;
|
||||||
|
prot["asc_getVertAlign"] = prot.asc_getVertAlign;
|
||||||
|
prot["asc_getFlags"] = prot.asc_getFlags;
|
||||||
|
prot["asc_getFont"] = prot.asc_getFont;
|
||||||
|
prot["asc_getFill"] = prot.asc_getFill;
|
||||||
|
prot["asc_getBorders"] = prot.asc_getBorders;
|
||||||
|
prot["asc_getInnerText"] = prot.asc_getInnerText;
|
||||||
|
prot["asc_getNumFormat"] = prot.asc_getNumFormat;
|
||||||
|
prot["asc_getHyperlink"] = prot.asc_getHyperlink;
|
||||||
|
prot["asc_getComments"] = prot.asc_getComments;
|
||||||
|
prot["asc_getLocked"] = prot.asc_getLocked;
|
||||||
|
prot["asc_getStyleName"] = prot.asc_getStyleName;
|
||||||
|
prot["asc_getNumFormatType"] = prot.asc_getNumFormatType;
|
||||||
|
prot["asc_getAngle"] = prot.asc_getAngle;
|
||||||
|
prot["asc_getAutoFilterInfo"] = prot.asc_getAutoFilterInfo;
|
||||||
|
prot["asc_getIsFormatTable"] = prot.asc_getIsFormatTable;//TODO DELETE
|
||||||
|
prot["asc_getIsAutoFilter"] = prot.asc_getIsAutoFilter;//TODO DELETE
|
||||||
|
prot["asc_getTableStyleName"] = prot.asc_getTableStyleName;//TODO DELETE
|
||||||
|
prot["asc_getClearFilter"] = prot.asc_getClearFilter;//TODO DELETE
|
||||||
|
|
||||||
|
/** @constructor */
|
||||||
|
function asc_CDefName(n, r, s, t, h, l) {
|
||||||
|
this.Name = n;
|
||||||
|
this.LocalSheetId = s;
|
||||||
|
this.Ref = r;
|
||||||
|
this.isTable = t;
|
||||||
|
this.Hidden = h;
|
||||||
|
this.isLock = l;
|
||||||
|
}
|
||||||
|
|
||||||
|
asc_CDefName.prototype = {
|
||||||
|
asc_getName: function(){return this.Name;},
|
||||||
|
asc_getScope: function(){return this.LocalSheetId;},
|
||||||
|
asc_getRef: function(){return this.Ref;},
|
||||||
|
asc_getIsTable: function(){return this.isTable;},
|
||||||
|
asc_getIsHidden: function(){return this.Hidden;},
|
||||||
|
asc_getIsLock: function(){return this.isLock;}
|
||||||
|
};
|
||||||
|
|
||||||
|
window["Asc"].asc_CDefName = window["Asc"]["asc_CDefName"] = asc_CDefName;
|
||||||
|
prot = asc_CDefName.prototype;
|
||||||
|
|
||||||
|
prot["asc_getName"] = prot.asc_getName;
|
||||||
|
prot["asc_getScope"] = prot.asc_getScope;
|
||||||
|
prot["asc_getRef"] = prot.asc_getRef;
|
||||||
|
prot["asc_getIsTable"] = prot.asc_getIsTable;
|
||||||
|
prot["asc_getIsHidden"] = prot.asc_getIsHidden;
|
||||||
|
prot["asc_getIsLock"] = prot.asc_getIsLock;
|
||||||
|
|
||||||
|
function asc_CCheckDefName(s, r) {
|
||||||
|
this.status = s;
|
||||||
|
this.reason = r;
|
||||||
|
}
|
||||||
|
asc_CCheckDefName.prototype = {
|
||||||
|
asc_getStatus: function(){return this.status;},
|
||||||
|
asc_getReason: function(){return this.reason;}
|
||||||
|
};
|
||||||
|
|
||||||
|
window["Asc"].asc_CCheckDefName = window["Asc"]["asc_CCheckDefName"] = asc_CCheckDefName;
|
||||||
|
prot = asc_CCheckDefName.prototype;
|
||||||
|
|
||||||
|
prot["asc_getStatus"] = prot.asc_getStatus;
|
||||||
|
prot["asc_getReason"] = prot.asc_getReason;
|
||||||
|
|
||||||
|
}
|
||||||
|
)(window);
|
3329
sdk/Excel/model/DrawingObjects.js
Normal file
3
sdk/Excel/offlinedocs/test-workbook9/Editor.js
Normal file
BIN
sdk/Excel/offlinedocs/test-workbook9/media/image1.jpg
Normal file
After Width: | Height: | Size: 118 KiB |
BIN
sdk/Excel/offlinedocs/test-workbook9/media/image2.jpg
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
sdk/Excel/offlinedocs/test-workbook9/test-workbook9.xlsx
Normal file
9882
sdk/Excel/sdk-all.js
Normal file
8
sdk/Excel/sdk-all.js.map
Normal file
1740
sdk/Excel/utils/utils.js
Normal file
1548
sdk/Excel/view/EventsController.js
Normal file
83
sdk/Excel/view/HandlerList.js
Normal file
|
@ -0,0 +1,83 @@
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
/* HandlerList.js
|
||||||
|
*
|
||||||
|
* Author: Alexey.Golubev@avsmedia.net
|
||||||
|
* Date: June 22, 2012
|
||||||
|
*/
|
||||||
|
(
|
||||||
|
/**
|
||||||
|
* @param {Window} window
|
||||||
|
* @param {undefined} undefined
|
||||||
|
*/
|
||||||
|
function (window, undefined) {
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Import
|
||||||
|
* -----------------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
var asc = window["Asc"],
|
||||||
|
asc_typeOf = asc.typeOf;
|
||||||
|
|
||||||
|
|
||||||
|
/** @constructor */
|
||||||
|
function asc_CHandlersList(handlers) {
|
||||||
|
this.handlers = handlers || {};
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
asc_CHandlersList.prototype.hasTrigger = function (eventName) {
|
||||||
|
return null != this.handlers[eventName];
|
||||||
|
};
|
||||||
|
|
||||||
|
asc_CHandlersList.prototype.trigger = function (eventName) {
|
||||||
|
var h = this.handlers[eventName], t = asc_typeOf(h), a = Array.prototype.slice.call(arguments, 1), i;
|
||||||
|
if (t === "function") {
|
||||||
|
return h.apply(this, a);
|
||||||
|
}
|
||||||
|
if (t === "array") {
|
||||||
|
for (i = 0; i < h.length; i += 1) {
|
||||||
|
if (asc_typeOf(h[i]) === "function") {h[i].apply(this, a);}
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
};
|
||||||
|
asc_CHandlersList.prototype.add = function (eventName, eventHandler, replaceOldHandler) {
|
||||||
|
var th = this.handlers, h, old, t;
|
||||||
|
if (replaceOldHandler || !th.hasOwnProperty(eventName)) {
|
||||||
|
th[eventName] = eventHandler;
|
||||||
|
} else {
|
||||||
|
old = h = th[eventName];
|
||||||
|
t = asc_typeOf(old);
|
||||||
|
if (t !== "array") {
|
||||||
|
h = th[eventName] = [];
|
||||||
|
if (t === "function") {h.push(old);}
|
||||||
|
}
|
||||||
|
h.push(eventHandler);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
asc_CHandlersList.prototype.remove = function (eventName, eventHandler) {
|
||||||
|
var th = this.handlers, h = th[eventName], i;
|
||||||
|
if (th.hasOwnProperty(eventName)) {
|
||||||
|
if (asc_typeOf(h) !== "array" || asc_typeOf(eventHandler) !== "function") {
|
||||||
|
delete th[eventName];
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
for (i = h.length - 1; i >= 0; i -= 1) {
|
||||||
|
if (h[i] === eventHandler) {
|
||||||
|
delete h[i];
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Export
|
||||||
|
* -----------------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
asc.asc_CHandlersList = asc_CHandlersList;
|
||||||
|
}
|
||||||
|
)(window);
|
BIN
sdk/PowerPoint/Images/Test.jpg
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
sdk/PowerPoint/Images/copy_format.cur
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/Images/copy_format.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/Images/paragraphMarks.PNG
Normal file
After Width: | Height: | Size: 532 B |
BIN
sdk/PowerPoint/Images/paragraphMarks_clicked.PNG
Normal file
After Width: | Height: | Size: 421 B |
BIN
sdk/PowerPoint/Images/paragraphMarks_whiteBG.PNG
Normal file
After Width: | Height: | Size: 620 B |
BIN
sdk/PowerPoint/Images/splitter.png
Normal file
After Width: | Height: | Size: 161 B |
BIN
sdk/PowerPoint/MenuIcons/Irregular1.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/Irregular2.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/accentBorderCallout1.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/accentBorderCallout2.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/accentBorderCallout3.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/accentCallout1.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/accentCallout2.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/accentCallout3.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/arrow.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/borderCallout1.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/borderCallout2.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/borderCallout3.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/callout1.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/callout2.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/callout3.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/cloud.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/cloudCallout.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/cube.bmp
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
sdk/PowerPoint/MenuIcons/curvedDownArrow.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/curvedLeftArrow.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/curvedRightArrow.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/curvedUpArrow.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/dowbleWave.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/ellipse.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/ellipseRibbon.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/ellipseRibbon2.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/flowChartAlternateProcess.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/flowChartDecision.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/flowChartDocument.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/flowChartInputOutput.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/flowChartInternalStorage.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/flowChartMultidocument.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/flowChartPredefinedProcess.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/flowChartPreparation.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/flowChartProcess.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/heart.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/horizontalScroll.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/inscription.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/lightningBolt.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/line.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/mathDivide.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/mathMinus.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/mathMultiply.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/menu.bmp
Normal file
After Width: | Height: | Size: 318 KiB |
BIN
sdk/PowerPoint/MenuIcons/mius.bmp
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
sdk/PowerPoint/MenuIcons/moon.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/noSmoking.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/nonIsoscelesTrapezoid.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/notchedRightArrow.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/octagon.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/parallelogram.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/pentagon.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
sdk/PowerPoint/MenuIcons/pie.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |