You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2344 lines
1.2 MiB
2344 lines
1.2 MiB
/*
|
|
* Copyright (C) Ascensio System SIA 2012-2021. All rights reserved
|
|
*
|
|
* https://www.onlyoffice.com/
|
|
*
|
|
* Version: 0.0.0 (build:0)
|
|
*/
|
|
|
|
|
|
|
|
(function(window,undefined){var supportedScaleValues=[1,1.25,1.5,1.75,2];if(window["AscDesktopEditor"]&&window["AscDesktopEditor"]["GetSupportedScaleValues"])supportedScaleValues=window["AscDesktopEditor"]["GetSupportedScaleValues"]();var isCorrectApplicationScaleEnabled=function(){if(supportedScaleValues.length===0)return false;var userAgent=navigator.userAgent.toLowerCase();var isAndroid=userAgent.indexOf("android")>-1;var isIE=userAgent.indexOf("msie")>-1||userAgent.indexOf("trident")>-1||userAgent.indexOf("edge")>
|
|
-1;var isChrome=!isIE&&userAgent.indexOf("chrome")>-1;var isOperaOld=!!window.opera;var isMobile=/android|avantgo|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od|ad)|iris|kindle|lge |maemo|midp|mmp|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent||navigator.vendor||window.opera);if(isAndroid||!isChrome||isOperaOld||isMobile||!document||!document.firstElementChild||
|
|
!document.body)return false;return true}();window["AscCommon"]=window["AscCommon"]||{};window["AscCommon"].checkDeviceScale=function(){var retValue={zoom:1,devicePixelRatio:window.devicePixelRatio,applicationPixelRatio:window.devicePixelRatio,correct:false};if(!isCorrectApplicationScaleEnabled)return retValue;var systemScaling=window.devicePixelRatio;var bestIndex=0;var bestDistance=Math.abs(supportedScaleValues[0]-systemScaling);var currentDistance=0;for(var i=1,len=supportedScaleValues.length;i<
|
|
len;i++){if(true)if(Math.abs(supportedScaleValues[i]-systemScaling)>1E-4)if(supportedScaleValues[i]>systemScaling-1E-4)break;currentDistance=Math.abs(supportedScaleValues[i]-systemScaling);if(currentDistance<bestDistance-1E-4){bestDistance=currentDistance;bestIndex=i}}retValue.applicationPixelRatio=supportedScaleValues[bestIndex];if(Math.abs(retValue.devicePixelRatio-retValue.applicationPixelRatio)>.01){retValue.zoom=retValue.devicePixelRatio/retValue.applicationPixelRatio;retValue.correct=true}return retValue};
|
|
var oldZoomValue=1;window["AscCommon"].correctApplicationScale=function(zoomValue){if(!zoomValue.correct&&Math.abs(zoomValue.zoom-oldZoomValue)<1E-4)return;oldZoomValue=zoomValue.zoom;var firstElemStyle=document.firstElementChild.style;if(Math.abs(oldZoomValue-1)<.001)firstElemStyle.zoom="normal";else firstElemStyle.zoom=1/oldZoomValue}})(window);
|
|
(function(window){var parse=false,separator=String.fromCharCode(160),username="",_reviewPermissions,reviewGroups,commentGroups;var _intersection=function(arr1,arr2){if(arr1&&arr2)for(var i=0;i<arr2.length;i++)if(arr1.indexOf(arr2[i])>-1)return true;return false};var _getParsedGroups=function(username){if(parse&&username){var idx=username.indexOf(separator),groups=idx>-1?username.substring(0,idx).split(","):[];for(var i=0;i<groups.length;i++)groups[i]=groups[i].trim();return groups}};var UserInfoParser=
|
|
{setParser:function(value){parse=!!value},setCurrentName:function(name){username=name;_reviewPermissions&&this.setReviewPermissions(null,_reviewPermissions)},getCurrentName:function(){return username},getSeparator:function(){return separator},getParsedName:function(username){return parse&&username?username.substring(username.indexOf(separator)+1):username},setReviewPermissions:function(groups,permissions){if(groups){if(typeof groups=="object"&&groups.length>=0)reviewGroups=groups}else if(permissions){var arr=
|
|
[],arrgroups=_getParsedGroups(username);arrgroups&&arrgroups.forEach(function(group){var item=permissions[group.trim()];item&&(arr=arr.concat(item))});reviewGroups=arr;_reviewPermissions=permissions}},setCommentPermissions:function(groups){if(groups&&typeof groups=="object")commentGroups={view:typeof groups["view"]=="object"&&groups["view"].length>=0?groups["view"]:null,edit:typeof groups["edit"]=="object"&&groups["edit"].length>=0?groups["edit"]:null,remove:typeof groups["remove"]=="object"&&groups["remove"].length>=
|
|
0?groups["remove"]:null}},canEditReview:function(username){if(!parse||!reviewGroups)return true;var groups=_getParsedGroups(username);groups&&groups.length==0&&(groups=[""]);return _intersection(reviewGroups,groups)},canViewComment:function(username){if(!parse||!commentGroups||!commentGroups.view)return true;var groups=_getParsedGroups(username);groups&&groups.length==0&&(groups=[""]);return _intersection(commentGroups.view,groups)},canEditComment:function(username){if(!parse||!commentGroups||!commentGroups.edit)return true;
|
|
var groups=_getParsedGroups(username);groups&&groups.length==0&&(groups=[""]);return _intersection(commentGroups.edit,groups)},canDeleteComment:function(username){if(!parse||!commentGroups||!commentGroups.remove)return true;var groups=_getParsedGroups(username);groups&&groups.length==0&&(groups=[""]);return _intersection(commentGroups.remove,groups)}};window["AscCommon"]=window["AscCommon"]||{};window["AscCommon"]["UserInfoParser"]=window["AscCommon"].UserInfoParser=UserInfoParser;UserInfoParser["setParser"]=
|
|
UserInfoParser.setParser;UserInfoParser["setCurrentName"]=UserInfoParser.setCurrentName;UserInfoParser["getCurrentName"]=UserInfoParser.getCurrentName;UserInfoParser["getSeparator"]=UserInfoParser.getSeparator;UserInfoParser["getParsedName"]=UserInfoParser.getParsedName;UserInfoParser["setReviewPermissions"]=UserInfoParser.setReviewPermissions;UserInfoParser["setCommentPermissions"]=UserInfoParser.setCommentPermissions;UserInfoParser["canEditReview"]=UserInfoParser.canEditReview;UserInfoParser["canViewComment"]=
|
|
UserInfoParser.canViewComment;UserInfoParser["canEditComment"]=UserInfoParser.canEditComment;UserInfoParser["canDeleteComment"]=UserInfoParser.canDeleteComment})(window);"use strict";
|
|
(function(window,undefined){var AscBrowser={userAgent:"",isIE:false,isMacOs:false,isSafariMacOs:false,isAppleDevices:false,isAndroid:false,isMobile:false,isGecko:false,isChrome:false,isOpera:false,isOperaOld:false,isWebkit:false,isSafari:false,isArm:false,isMozilla:false,isLinuxOS:false,retinaPixelRatio:1,isVivaldiLinux:false,isSailfish:false,isEmulateDevicePixelRatio:false,isNeedEmulateUpload:false,chromeVersion:70,iosVersion:13};AscBrowser.userAgent=navigator.userAgent.toLowerCase();AscBrowser.isIE=
|
|
AscBrowser.userAgent.indexOf("msie")>-1||AscBrowser.userAgent.indexOf("trident")>-1||AscBrowser.userAgent.indexOf("edge")>-1;AscBrowser.isIeEdge=AscBrowser.userAgent.indexOf("edge/")>-1;AscBrowser.isIE9=AscBrowser.userAgent.indexOf("msie9")>-1||AscBrowser.userAgent.indexOf("msie 9")>-1;AscBrowser.isIE10=AscBrowser.userAgent.indexOf("msie10")>-1||AscBrowser.userAgent.indexOf("msie 10")>-1;AscBrowser.isMacOs=AscBrowser.userAgent.indexOf("mac")>-1;AscBrowser.isChrome=!AscBrowser.isIE&&AscBrowser.userAgent.indexOf("chrome")>
|
|
-1;if(AscBrowser.isChrome){var checkVersion=AscBrowser.userAgent.match(/chrom(e|ium)\/([0-9]+)\./);if(checkVersion&&checkVersion[2])AscBrowser.chromeVersion=parseInt(checkVersion[2],10)}AscBrowser.isSafari=!AscBrowser.isIE&&!AscBrowser.isChrome&&AscBrowser.userAgent.indexOf("safari")>-1;AscBrowser.isSafariMacOs=AscBrowser.isSafari&&AscBrowser.isMacOs;AscBrowser.isAppleDevices=AscBrowser.userAgent.indexOf("ipad")>-1||AscBrowser.userAgent.indexOf("iphone")>-1||AscBrowser.userAgent.indexOf("ipod")>-1;
|
|
if(!AscBrowser.isAppleDevices&&AscBrowser.isSafariMacOs&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)AscBrowser.isAppleDevices=true;if(AscBrowser.isAppleDevices){var iosversion=AscBrowser.iosVersion;try{var v=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);if(!v)v=navigator.appVersion.match(/Version\/(\d+).(\d+)/);iosversion=parseInt(v[1],10)}catch(err){}AscBrowser.iosVersion=iosversion}AscBrowser.isAndroid=AscBrowser.userAgent.indexOf("android")>-1;AscBrowser.isMobile=/android|avantgo|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od|ad)|iris|kindle|lge |maemo|midp|mmp|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent||
|
|
navigator.vendor||window.opera);AscBrowser.isGecko=AscBrowser.userAgent.indexOf("gecko/")>-1;AscBrowser.isOpera=!!window.opera||AscBrowser.userAgent.indexOf("opr/")>-1;AscBrowser.isOperaOld=!!window.opera;AscBrowser.isWebkit=!AscBrowser.isIE&&AscBrowser.userAgent.indexOf("webkit")>-1;AscBrowser.isArm=AscBrowser.userAgent.indexOf("arm")>-1;AscBrowser.isMozilla=!AscBrowser.isIE&&AscBrowser.userAgent.indexOf("firefox")>-1;AscBrowser.isLinuxOS=AscBrowser.userAgent.indexOf(" linux ")>-1;AscBrowser.isVivaldiLinux=
|
|
AscBrowser.isLinuxOS&&AscBrowser.userAgent.indexOf("vivaldi")>-1;AscBrowser.isSailfish=AscBrowser.userAgent.indexOf("sailfish")>-1;AscBrowser.isEmulateDevicePixelRatio=AscBrowser.userAgent.indexOf("emulatedevicepixelratio")>-1;AscBrowser.isNeedEmulateUpload=AscBrowser.userAgent.indexOf("needemulateupload")>-1;AscBrowser.zoom=1;AscBrowser.isCustomScaling=function(){return Math.abs(AscBrowser.retinaPixelRatio-1)>.001?true:false};AscBrowser.isCustomScalingAbove2=function(){return AscBrowser.retinaPixelRatio>
|
|
1.999?true:false};AscBrowser.checkZoom=function(){if(AscBrowser.isSailfish&&AscBrowser.isEmulateDevicePixelRatio){var scale=1;if(screen.width<=540)scale=1.5;else if(screen.width>540&&screen.width<=768)scale=2;else if(screen.width>768)scale=3;AscBrowser.retinaPixelRatio=scale;window.devicePixelRatio=scale;return}var zoomValue=AscCommon.checkDeviceScale();AscBrowser.retinaPixelRatio=zoomValue.applicationPixelRatio;AscBrowser.zoom=zoomValue.zoom;AscCommon.correctApplicationScale(zoomValue)};AscBrowser.checkZoom();
|
|
AscBrowser.convertToRetinaValue=function(value,isScale){if(isScale===true)return value*AscBrowser.retinaPixelRatio+.5>>0;else return value/AscBrowser.retinaPixelRatio+.5>>0};window["AscCommon"]=window["AscCommon"]||{};window["AscCommon"].AscBrowser=AscBrowser})(window);"use strict";
|
|
var EditorSkins={"theme-light":{Name:"theme-light",Type:"light",RulersButton:false,NavigationButtons:false,BackgroundColor:"#EEEEEE",PageOutline:"#BBBEC2",RulerDark:"#D9D9D9",RulerLight:"#FFFFFF",RulerOutline:"#CBCBCB",RulerMarkersOutlineColor:"#555555",RulerMarkersOutlineColorOld:"#AAAAAA",RulerMarkersFillColor:"#FFFFFF",RulerMarkersFillColorOld:"#FFFFFF",RulerTextColor:"#555555",RulerTabsColor:"#000000",RulerTabsColorOld:"#828282",RulerTableColor1:"#FFFFFF",RulerTableColor2:"#555555",ScrollBackgroundColor:"#EEEEEE",
|
|
ScrollOutlineColor:"#CBCBCB",ScrollOutlineHoverColor:"#CBCBCB",ScrollOutlineActiveColor:"#ADADAD",ScrollerColor:"#F7F7F7",ScrollerHoverColor:"#C0C0C0",ScrollerActiveColor:"#ADADAD",ScrollArrowColor:"#ADADAD",ScrollArrowHoverColor:"#F7F7F7",ScrollArrowActiveColor:"#F7F7F7",ScrollerTargetColor:"#CFCFCF",ScrollerTargetHoverColor:"#F1F1F1",ScrollerTargetActiveColor:"#F1F1F1",STYLE_THUMBNAIL_WIDTH:104,STYLE_THUMBNAIL_HEIGHT:40,isNeedInvertOnActive:false,ContentControlsBack:"#F1F1F1",ContentControlsHover:"#D8DADC",
|
|
ContentControlsActive:"#7C838A",ContentControlsText:"#444444",ContentControlsTextActive:"#FFFFFF",ContentControlsAnchorActive:"#CFCFCF",FormsContentControlsOutlineHover:"rgba(0, 0, 0, 0.3)",FormsContentControlsOutlineActive:"rgba(0, 0, 0, 0.3)",FormsContentControlsOutlineBorderRadiusHover:0,FormsContentControlsOutlineBorderRadiusActive:2,FormsContentControlsMarkersBackground:"#FFFFFF",FormsContentControlsMarkersBackgroundHover:"#E1E1E1",FormsContentControlsMarkersBackgroundActive:"#CCCCCC",FormsContentControlsOutlineMoverHover:"#444444",
|
|
FormsContentControlsOutlineMoverActive:"#444444",BackgroundColorThumbnails:"#F4F4F4",BackgroundColorThumbnailsActive:"#F4F4F4",BackgroundColorThumbnailsHover:"#F4F4F4",ThumbnailsPageOutlineActive:"#848484",ThumbnailsPageOutlineHover:"#CFCFCF",ThumbnailsPageNumberText:"#000000",ThumbnailsPageNumberTextActive:"#000000",ThumbnailsPageNumberTextHover:"#000000",ThumbnailsLockColor:"#D34F4F",BackgroundColorNotes:"#F0F0F0",THEMES_THUMBNAIL_WIDTH:88,THEMES_THUMBNAIL_HEIGHT:40,THEMES_LAYOUT_THUMBNAIL_HEIGHT:68,
|
|
BorderSplitterColor:"#CBCBCB",SupportNotes:true,SplitterWidthMM:1,ThumbnailScrollWidthNullIfNoScrolling:false,DemBackgroundColor:"#F0F0F0",DemButtonBackgroundColor:"#FFFFFF",DemButtonBackgroundColorHover:"#D8DADC",DemButtonBackgroundColorActive:"#7D858C",DemButtonBorderColor:"#CFCFCF",DemButtonTextColor:"#444444",DemButtonTextColorActive:"#FFFFFF",DemSplitterColor:"#CBCBCB",DemTextColor:"#666666",Background:"#F0F0F0",BackgroundActive:"#c1c1c1",BackgroundHighlighted:"#dfdfdf",Border:"#d5d5d5",BorderActive:"#929292",
|
|
BorderHighlighted:"#afafaf",Color:"#363636",ColorActive:"#363636",ColorHighlighted:"#6a6a70",BackgroundDark:"#444444",BackgroundDarkActive:"#111111",BackgroundDarkHighlighted:"#666666",ColorDark:"#ffffff",ColorDarkActive:"#ffffff",ColorDarkHighlighted:"#c1c1c1",GroupDataBorder:"#000000",EditorBorder:"#cbcbcb"},"theme-dark":{Name:"theme-dark",Type:"dark",RulersButton:false,NavigationButtons:false,BackgroundColor:"#666666",PageOutline:"#BBBEC2",RulerDark:"#373737",RulerLight:"#555555",RulerOutline:"#2A2A2A",
|
|
RulerMarkersOutlineColor:"#B6B6B6",RulerMarkersOutlineColorOld:"#808080",RulerMarkersFillColor:"#555555",RulerMarkersFillColorOld:"#555555",RulerTextColor:"#B6B6B6",RulerTabsColor:"#FFFFFF",RulerTabsColorOld:"#999999",RulerTableColor1:"#FFFFFF",RulerTableColor2:"#B2B2B2",ScrollBackgroundColor:"#666666",ScrollOutlineColor:"#2A2A2A",ScrollOutlineHoverColor:"#999999",ScrollOutlineActiveColor:"#ADADAD",ScrollerColor:"#404040",ScrollerHoverColor:"#999999",ScrollerActiveColor:"#ADADAD",ScrollArrowColor:"#999999",
|
|
ScrollArrowHoverColor:"#404040",ScrollArrowActiveColor:"#404040",ScrollerTargetColor:"#999999",ScrollerTargetHoverColor:"#404040",ScrollerTargetActiveColor:"#404040",STYLE_THUMBNAIL_WIDTH:104,STYLE_THUMBNAIL_HEIGHT:40,THEMES_LAYOUT_THUMBNAIL_HEIGHT:68,isNeedInvertOnActive:false,ContentControlsBack:"#F1F1F1",ContentControlsHover:"#D8DADC",ContentControlsActive:"#7C838A",ContentControlsText:"#444444",ContentControlsTextActive:"#FFFFFF",ContentControlsAnchorActive:"#CFCFCF",FormsContentControlsOutlineHover:"rgba(0, 0, 0, 0.3)",
|
|
FormsContentControlsOutlineActive:"rgba(0, 0, 0, 0.3)",FormsContentControlsOutlineBorderRadiusHover:0,FormsContentControlsOutlineBorderRadiusActive:2,FormsContentControlsMarkersBackground:"#FFFFFF",FormsContentControlsMarkersBackgroundHover:"#E1E1E1",FormsContentControlsMarkersBackgroundActive:"#CCCCCC",FormsContentControlsOutlineMoverHover:"#444444",FormsContentControlsOutlineMoverActive:"#444444",BackgroundColorThumbnails:"#666666",BackgroundColorThumbnailsActive:"#666666",BackgroundColorThumbnailsHover:"#666666",
|
|
ThumbnailsPageOutlineActive:"#848484",ThumbnailsPageOutlineHover:"#CFCFCF",ThumbnailsPageNumberText:"#FFFFFF",ThumbnailsPageNumberTextActive:"#FFFFFF",ThumbnailsPageNumberTextHover:"#FFFFFF",ThumbnailsLockColor:"#D34F4F",BackgroundColorNotes:"#666666",THEMES_THUMBNAIL_WIDTH:88,THEMES_THUMBNAIL_HEIGHT:40,BorderSplitterColor:"#CBCBCB",SupportNotes:true,SplitterWidthMM:1,ThumbnailScrollWidthNullIfNoScrolling:false,DemBackgroundColor:"#666666",DemButtonBackgroundColor:"#333333",DemButtonBackgroundColorHover:"#555555",
|
|
DemButtonBackgroundColorActive:"#DDDDDD",DemButtonBorderColor:"#CFCFCF",DemButtonTextColor:"#FFFFFF",DemButtonTextColorActive:"#333333",DemSplitterColor:"#CBCBCB",DemTextColor:"#FFFFFF",Background:"#666666",BackgroundActive:"#939393",BackgroundHighlighted:"#787878",Border:"#757575",BorderActive:"#9e9e9e",BorderHighlighted:"#858585",Color:"#d9d9d9",ColorActive:"#d9d9d9",ColorHighlighted:"#d9d9d9",BackgroundDark:"#111111",BackgroundDarkActive:"#333333",BackgroundDarkHighlighted:"#000000",ColorDark:"#ffffff",
|
|
ColorDarkActive:"#ffffff",ColorDarkHighlighted:"#ffffff",GroupDataBorder:"#ffffff",EditorBorder:"#2a2a2a"}};var GlobalSkin=EditorSkins["theme-light"];
|
|
function updateGlobalSkinColors(theme){var skin=GlobalSkin;var correctColor=function(c){return AscCommon.RgbaTextToRgbaHex(c)};var colorMap={BackgroundColor:"canvas-background",PageOutline:"canvas-page-border",RulerDark:"canvas-ruler-margins-background",RulerLight:"canvas-ruler-background",RulerOutline:"border-toolbar",RulerMarkersOutlineColor:"canvas-ruler-handle-border",RulerMarkersOutlineColorOld:"canvas-ruler-handle-border-disabled",RulerMarkersFillColor:"background-normal",RulerMarkersFillColorOld:"background-normal",
|
|
RulerTextColor:"canvas-ruler-mark",RulerTabsColor:"canvas-high-contrast",RulerTabsColorOld:"canvas-high-contrast-disabled",RulerTableColor1:"background-normal",RulerTableColor2:"canvas-ruler-handle-border",ScrollBackgroundColor:"canvas-background",ScrollOutlineColor:"canvas-scroll-thumb-border",ScrollOutlineHoverColor:"canvas-scroll-thumb-border-hover",ScrollOutlineActiveColor:"canvas-scroll-thumb-border-pressed",ScrollerColor:"canvas-scroll-thumb",ScrollerHoverColor:"canvas-scroll-thumb-hover",ScrollerActiveColor:"canvas-scroll-thumb-pressed",
|
|
ScrollArrowColor:"canvas-scroll-arrow",ScrollArrowHoverColor:"canvas-scroll-arrow-hover",ScrollArrowActiveColor:"canvas-scroll-arrow-pressed",ScrollerTargetColor:"canvas-scroll-thumb-target",ScrollerTargetHoverColor:"canvas-scroll-thumb-target-hover",ScrollerTargetActiveColor:"canvas-scroll-thumb-target-pressed",BackgroundColorThumbnails:"background-toolbar",BackgroundColorThumbnailsActive:"background-toolbar",BackgroundColorThumbnailsHover:"background-toolbar",ThumbnailsPageOutlineActive:"border-preview-select",
|
|
ThumbnailsPageOutlineHover:"border-preview-hover",ThumbnailsPageNumberText:"text-normal",ThumbnailsPageNumberTextActive:"text-normal",ThumbnailsPageNumberTextHover:"text-normal",BackgroundColorNotes:"canvas-background",BorderSplitterColor:"border-toolbar",DemBackgroundColor:"background-toolbar",DemButtonBackgroundColor:"background-normal",DemButtonBackgroundColorHover:"highlight-buttin-hover",DemButtonBackgroundColorActive:"highlight-button-pressed",DemButtonBorderColor:"border-regular-control",DemButtonTextColor:"text-normal",
|
|
DemButtonTextColorActive:"text-normal-pressed",DemSplitterColor:"border-divider",DemTextColor:"text-normal",Background:"canvas-background",BackgroundActive:"canvas-cell-title-selected",BackgroundHighlighted:"canvas-cell-title-hover",Border:"canvas-cell-title-border",BorderActive:"canvas-cell-title-border-selected",BorderHighlighted:"canvas-cell-title-border-hover",Color:"text-normal",ColorActive:"text-normal",ColorHighlighted:"text-normal",BackgroundDark:"canvas-dark-cell-title",BackgroundDarkActive:"canvas-dark-cell-title-selected",
|
|
BackgroundDarkHighlighted:"canvas-dark-cell-title-hover",ColorDark:"text-contrast-background",ColorDarkActive:"text-contrast-background",ColorDarkHighlighted:"text-contrast-background",GroupDataBorder:"canvas-high-contrast",EditorBorder:"border-toolbar"};for(var item in theme){var testValue=theme[item];if(typeof testValue!=="string")continue;if(0===testValue.indexOf("#\\3")){testValue=testValue.replace("\\3","");testValue=testValue.replace(" ","");theme[item]=testValue}}for(var color in colorMap){if(undefined===
|
|
GlobalSkin[color])continue;if(""===colorMap[color])continue;if(undefined===theme[colorMap[color]])continue;if(0===GlobalSkin[color].indexOf("rgb"))GlobalSkin[color]=theme[colorMap[color]];else GlobalSkin[color]=correctColor(theme[colorMap[color]])}}
|
|
function updateGlobalSkin(obj){if(!obj)return;if(typeof obj==="string"){var name=obj;obj={"name":name,"type":-1!==name.indexOf("dark")?"dark":"light"}}if(obj["name"]&&undefined!==EditorSkins[obj["name"]])GlobalSkin=EditorSkins[obj["name"]];else if(obj["type"])for(var item in EditorSkins)if(obj["type"]===EditorSkins[item].Type){GlobalSkin=EditorSkins[item];break}updateGlobalSkinColors(obj);for(var item in obj)GlobalSkin[item]=obj[item];if(window.g_asc_plugins)window.g_asc_plugins.onThemeChanged(GlobalSkin);
|
|
window["AscCommon"].GlobalSkin=GlobalSkin}window["AscCommon"]=window["AscCommon"]||{};window["AscCommon"].GlobalSkin=GlobalSkin;window["AscCommon"].updateGlobalSkin=updateGlobalSkin;
|
|
window["AscCommon"].RgbaHexToRGBA=function(color){var index=0;if("#".charCodeAt(0)===color.charCodeAt(0))index++;var ret={R:0,G:0,B:0,A:255};if(6<=color.length){ret.R=parseInt(color.substring(index,index+2),16);ret.G=parseInt(color.substring(index+2,index+4),16);ret.B=parseInt(color.substring(index+4,index+6),16)}else{ret.R=parseInt(color.substring(index,index+1),16);ret.G=parseInt(color.substring(index+1,index+2),16);ret.B=parseInt(color.substring(index+2,index+3),16);ret.R=ret.R<<4|ret.R;ret.G=
|
|
ret.G<<4|ret.G;ret.B=ret.B<<4|ret.B}return ret};
|
|
window["AscCommon"].RgbaTextToRgbaHex=function(color){var toHex=function(c){var res=Number(c).toString(16);return res.length===1?"0"+res:res};if(0!==color.indexOf("rgb")){if(color.length<6){var rgba=AscCommon.RgbaHexToRGBA(color);return"#"+toHex(rgba.R)+toHex(rgba.G)+toHex(rgba.B)}return color}var start=color.indexOf("(");var end=color.indexOf(")");var tmp=color.substring(start+1,end);var colors=tmp.split(",");for(var i in colors)colors[i]=colors[i].trim();var r=colors[0]||0;var g=colors[1]||0;var b=
|
|
colors[2]||0;var a=colors[3]===undefined?255:colors[3];return"#"+toHex(r)+toHex(g)+toHex(b)};if(AscCommon.TEMP_STYLE_THUMBNAIL_WIDTH!==undefined&&AscCommon.TEMP_STYLE_THUMBNAIL_HEIGHT!==undefined){GlobalSkin.STYLE_THUMBNAIL_WIDTH=AscCommon.TEMP_STYLE_THUMBNAIL_WIDTH;GlobalSkin.STYLE_THUMBNAIL_HEIGHT=AscCommon.TEMP_STYLE_THUMBNAIL_HEIGHT}"use strict";
|
|
(function(window,undefined){var g_cCharDelimiter=String.fromCharCode(5);var g_cGeneralFormat="General";var FONT_THUMBNAIL_HEIGHT=window["AscDesktopEditor"]&&window["AscDesktopEditor"]["GetFontThumbnailHeight"]?window["AscDesktopEditor"]["GetFontThumbnailHeight"]():28;var c_oAscMaxColumnWidth=255;var c_oAscMaxRowHeight=409.5;var c_nMaxConversionTime=9E5;var c_nCommonRequestTime=3E4;var c_nMaxDownloadTitleLen=255;var c_nVersionNoBase64=10;var c_dMaxParaRunContentLength=256;var c_rUneditableTypes=/^(?:(pdf|djvu|xps|oxps))$/;
|
|
var c_nMaxHyperlinkLength=2083;var c_oAscFileType={UNKNOWN:0,PDF:513,PDFA:2305,HTML:2051,DOCX:65,DOC:66,ODT:67,RTF:68,TXT:69,MHT:71,EPUB:72,FB2:73,MOBI:74,DOCM:75,DOTX:76,DOTM:77,FODT:78,OTT:79,DOCY:4097,CANVAS_WORD:8193,JSON:2056,XLSX:257,XLS:258,ODS:259,CSV:260,XLSM:261,XLTX:262,XLTM:263,FODS:264,OTS:265,XLSY:4098,PPTX:129,PPT:130,ODP:131,PPSX:132,PPTM:133,PPSM:134,POTX:135,POTM:136,FODP:137,OTP:138};var c_oAscError={Level:{Critical:-1,NoCritical:0},ID:{ServerSaveComplete:3,ConvertationProgress:2,
|
|
DownloadProgress:1,No:0,Unknown:-1,ConvertationTimeout:-2,DownloadError:-4,UnexpectedGuid:-5,Database:-6,FileRequest:-7,FileVKey:-8,UplImageSize:-9,UplImageExt:-10,UplImageFileCount:-11,NoSupportClipdoard:-12,UplImageUrl:-13,DirectUrl:-14,MaxDataPointsError:-16,StockChartError:-17,CoAuthoringDisconnect:-18,ConvertationPassword:-19,VKeyEncrypt:-20,KeyExpire:-21,UserCountExceed:-22,AccessDeny:-23,LoadingScriptError:-24,EditingError:-25,LoadingFontError:-26,SplitCellMaxRows:-30,SplitCellMaxCols:-31,
|
|
SplitCellRowsDivider:-32,MobileUnexpectedCharCount:-35,MailMergeLoadFile:-40,MailMergeSaveFile:-41,DataValidate:-45,MoreOneTypeDataValidate:-46,ContainsCellsWithoutDataValidate:-47,AutoFilterDataRangeError:-50,AutoFilterChangeFormatTableError:-51,AutoFilterChangeError:-52,AutoFilterMoveToHiddenRangeError:-53,LockedAllError:-54,LockedWorksheetRename:-55,FTChangeTableRangeError:-56,FTRangeIncludedOtherTables:-57,ChangeFilteredRangeError:-58,PasteMaxRangeError:-64,PastInMergeAreaError:-65,CopyMultiselectAreaError:-66,
|
|
PasteSlicerError:67,MoveSlicerError:68,PasteMultiSelectError:-69,DataRangeError:-75,CannotMoveRange:-74,ErrorInFormula:-73,InvalidReference:-72,NoSingleRowCol:-71,NoValues:-70,MaxDataSeriesError:-80,CannotFillRange:-81,ConvertationOpenError:-82,ConvertationSaveError:-83,ConvertationOpenLimitError:-84,UserDrop:-100,Warning:-101,UpdateVersion:-102,PrintMaxPagesCount:-110,SessionAbsolute:-120,SessionIdle:-121,SessionToken:-122,FrmlMaxReference:-297,FrmlMaxLength:-298,FrmlMaxTextLength:-299,FrmlWrongCountParentheses:-300,
|
|
FrmlWrongOperator:-301,FrmlWrongMaxArgument:-302,FrmlWrongCountArgument:-303,FrmlWrongFunctionName:-304,FrmlAnotherParsingError:-305,FrmlWrongArgumentRange:-306,FrmlOperandExpected:-307,FrmlParenthesesCorrectCount:-308,FrmlWrongReferences:-309,InvalidReferenceOrName:-310,LockCreateDefName:-311,LockedCellPivot:-312,PivotLabledColumns:-313,PivotOverlap:-314,PivotGroup:-315,PivotWithoutUnderlyingData:-316,ForceSaveButton:-331,ForceSaveTimeout:-332,Submit:-333,OpenWarning:500,DataEncrypted:-600,CannotChangeFormulaArray:-450,
|
|
MultiCellsInTablesFormulaArray:-451,MailToClientMissing:-452,NoDataToParse:-601,CannotCompareInCoEditing:651,CannotUngroupError:-700,UplDocumentSize:-751,UplDocumentExt:-752,UplDocumentFileCount:-753,CustomSortMoreOneSelectedError:-800,CustomSortNotOriginalSelectError:-801,DataValidateNotNumeric:-830,DataValidateNegativeTextLength:-831,DataValidateMustEnterValue:-832,DataValidateMinGreaterMax:833,DataValidateInvalid:834,NamedRangeNotFound:835,FormulaEvaluateError:836,DataValidateInvalidList:837,RemoveDuplicates:-850,
|
|
LargeRangeWarning:-900,LockedEditView:-950,Password:-1E3,SecondaryAxis:1001,ComboSeriesError:1002,NotValidPercentile:1003,CannotAddConditionalFormatting:1004,NotValidPercentage:1005,NotSingleReferenceCannotUsed:1006,CannotUseRelativeReference:1007,ValueMustBeGreaterThen:1008,IconDataRangesOverlap:1009,ErrorTop10Between:1010,SingleColumnOrRowError:1020,LocationOrDataRangeError:1021}};var c_oAscAsyncAction={Open:0,Save:1,LoadDocumentFonts:2,LoadDocumentImages:3,LoadFont:4,LoadImage:5,DownloadAs:6,Print:7,
|
|
UploadImage:8,ApplyChanges:9,SlowOperation:11,LoadTheme:12,MailMergeLoadFile:13,DownloadMerge:14,SendMailMerge:15,ForceSaveButton:16,ForceSaveTimeout:17,Waiting:18,Submit:19};var c_oAscAdvancedOptionsID={CSV:0,TXT:1,DRM:2};var c_oAscAdvancedOptionsAction={None:0,Open:1,Save:2};var c_oAscRestrictionType={None:0,OnlyForms:1,OnlyComments:2,OnlySignatures:4,View:128};var c_oAscFontRenderingModeType={noHinting:1,hinting:2,hintingAndSubpixeling:3};var c_oAscAsyncActionType={Information:0,BlockInteraction:1,
|
|
Empty:2};var DownloadType={None:"",Download:"asc_onDownloadUrl",Print:"asc_onPrintUrl",MailMerge:"asc_onSaveMailMerge"};var CellValueType={Number:0,String:1,Bool:2,Error:3};var c_oAscNumFormatType={None:-1,General:0,Number:1,Scientific:2,Accounting:3,Currency:4,Date:5,Time:6,Percent:7,Fraction:8,Text:9,Custom:10};var c_oAscDrawingLayerType={BringToFront:0,BringForward:1,SendToBack: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,ContentControl:11};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 align_Distributed=4;var linerule_AtLeast=0;var linerule_Auto=1;var linerule_Exact=2;var c_oAscShdClear=0;var c_oAscShdNil=
|
|
1;var c_oAscShd={Clear:0,Nil:1,DiagCross:2,DiagStripe:3,HorzCross:4,HorzStripe:5,Pct10:6,Pct12:7,Pct15:8,Pct20:9,Pct25:10,Pct30:11,Pct35:12,Pct37:13,Pct40:14,Pct45:15,Pct5:16,Pct50:17,Pct55:18,Pct60:19,Pct62:20,Pct65:21,Pct70:22,Pct75:23,Pct80:24,Pct85:25,Pct87:26,Pct90:27,Pct95:28,ReverseDiagStripe:29,Solid:30,ThinDiagCross:31,ThinDiagStripe:32,ThinHorzCross:33,ThinHorzStripe:34,ThinReverseDiagStripe:35,ThinVertStripe:36,VertStripe:37};var vertalign_Baseline=0;var vertalign_SuperScript=1;var vertalign_SubScript=
|
|
2;var hdrftr_Header=1;var hdrftr_Footer=2;var vaKSize=.65;var vaKSuper=.35;var vaKSub=-.141;var c_oAscDropCap={None:0,Drop:1,Margin:2};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,topRight:8};var c_oAscChartDataLabelsPos={none:0,
|
|
b:1,bestFit:2,ctr:3,inBase:4,inEnd:5,l:6,outEnd:7,r:8,t:9,show:10};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,surfaceNormal:34,surfaceWireframe:35,contourNormal:36,contourWireframe:37,comboCustom:38,comboBarLine:39,comboBarLineSecondary:40,comboAreaBar:41,unknown:42};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_oAscBetweenLabelsRule={auto:0,manual:1};var c_oAscLabelsPosition={byDivisions:0,betweenDivisions:1};var c_oAscAxisType={date:0,cat:1,val:2,ser:3};var c_oAscHAnchor={Margin:0,Page:1,
|
|
Text:2};var c_oAscXAlign={Center:0,Inside:1,Left:2,Outside:3,Right:4};var c_oAscYAlign={Bottom:0,Center:1,Inline:2,Inside:3,Outside:4,Top:5};var c_oAscVAnchor={Margin:0,Page:1,Text:2};var c_oAscRelativeFromH={Character:0,Column:1,InsideMargin:2,LeftMargin:3,Margin:4,OutsideMargin:5,Page:6,RightMargin:7};var c_oAscSizeRelFromH={sizerelfromhMargin:0,sizerelfromhPage:1,sizerelfromhLeftMargin:2,sizerelfromhRightMargin:3,sizerelfromhInsideMargin:4,sizerelfromhOutsideMargin:5};var c_oAscSizeRelFromV={sizerelfromvMargin:0,
|
|
sizerelfromvPage:1,sizerelfromvTopMargin:2,sizerelfromvBottomMargin:3,sizerelfromvInsideMargin:4,sizerelfromvOutsideMargin:5};var c_oAscRelativeFromV={BottomMargin:0,InsideMargin:1,Line:2,Margin:3,OutsideMargin:4,Page:5,Paragraph:6,TopMargin:7};var c_oAscWrapStyle={Inline:0,Flow:1};var c_oAscBorderWidth={None:0,Thin:1,Medium:2,Thick:3};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};var c_oAscPageOrientation={PagePortrait:0,PageLandscape:1};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,COLOR_TYPE_STYLE:5};var c_oAscFill={FILL_TYPE_NONE:0,
|
|
FILL_TYPE_BLIP:1,FILL_TYPE_NOFILL:2,FILL_TYPE_SOLID:3,FILL_TYPE_GRAD:4,FILL_TYPE_PATT:5,FILL_TYPE_GRP:6};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_oAscVAlign={Bottom:0,Center:1,Dist:2,
|
|
Just:3,Top:4};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,Colon:3,Comma:4,Space:5};var c_oAscUrlType={Invalid:0,Http:1,Email:2};
|
|
var c_oAscCellTextDirection={LRTB:0,TBRL:1,BTLR:2};var c_oAscDocumentUnits={Millimeter:0,Inch:1,Point:2};var c_oAscMouseMoveDataTypes={Common:0,Hyperlink:1,LockedObject:2,Footnote:3,Form:4,Review:5};var c_oAscSelectionType={RangeCells:1,RangeCol:2,RangeRow:3,RangeMax:4,RangeImage:5,RangeChart:6,RangeShape:7,RangeSlicer:8,RangeShapeText:9,RangeChartText:10,RangeFrozen:11};var c_oAscInsertOptions={InsertCellsAndShiftRight:1,InsertCellsAndShiftDown:2,InsertColumns:3,InsertRows:4,InsertTableRowAbove:5,
|
|
InsertTableRowBelow:6,InsertTableColLeft:7,InsertTableColRight:8};var c_oAscDeleteOptions={DeleteCellsAndShiftLeft:1,DeleteCellsAndShiftTop:2,DeleteColumns:3,DeleteRows:4,DeleteTable:5};var c_oAscPrintDefaultSettings={PageWidth:210,PageHeight:297,PageOrientation:c_oAscPageOrientation.PagePortrait,PageLeftField:17.8,PageRightField:17.8,PageTopField:19.1,PageBottomField:19.1,PageHeaderField:7.62,PageFooterField:7.62,MinPageLeftField:.17,MinPageRightField:.17,MinPageTopField:.17,MinPageBottomField:.17,
|
|
PageGridLines:false,PageHeadings:false};var c_oAscPrintType={ActiveSheets:0,EntireWorkbook:1,Selection:2};var c_oZoomType={FitToPage:1,FitToWidth:2,CustomMode:3};var c_oNotifyType={Dirty:0,Shift:1,Move:2,Delete:3,RenameTableColumn:4,ChangeDefName:5,ChangeSheet:6,DelColumnTable:7,Prepare:8};var c_oNotifyParentType={Change:0,ChangeFormula:1,EndCalculate:2,GetRangeCell:3,IsDefName:4,Shared:5,ProcessNotify:6};var c_oDashType={dash:0,dashDot:1,dot:2,lgDash:3,lgDashDot:4,lgDashDotDot:5,solid:6,sysDash:7,
|
|
sysDashDot:8,sysDashDotDot:9,sysDot:10};var c_oAscMathInterfaceType={Common:0,Fraction:1,Script:2,Radical:3,LargeOperator:4,Delimiter:5,Function:6,Accent:7,BorderBox:8,Bar:9,Box:10,Limit:11,GroupChar:12,Matrix:13,EqArray:14,Phantom:15};var c_oAscMathInterfaceBarPos={Top:0,Bottom:1};var c_oAscMathInterfaceScript={None:0,Sup:1,Sub:2,SubSup:3,PreSubSup:4};var c_oAscMathInterfaceFraction={Bar:1,Skewed:2,Linear:3,NoBar:4};var c_oAscMathInterfaceLimitPos={None:-1,Top:0,Bottom:1};var c_oAscMathInterfaceMatrixMatrixAlign=
|
|
{Top:0,Center:1,Bottom:2};var c_oAscMathInterfaceMatrixColumnAlign={Left:0,Center:1,Right:2};var c_oAscMathInterfaceEqArrayAlign={Top:0,Center:1,Bottom:2};var c_oAscMathInterfaceNaryLimitLocation={UndOvr:0,SubSup:1};var c_oAscMathInterfaceGroupCharPos={None:-1,Top:0,Bottom:1};var c_oAscTabType={Bar:0,Center:1,Clear:2,Decimal:3,Num:5,Right:7,Left:8};var c_oAscTabLeader={Dot:0,Heavy:1,Hyphen:2,MiddleDot:3,None:4,Underscore:5};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)"],[52,950,"EUC-JP","Japanese (EUC-JP)"],[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,65E3,"UTF-7","Unicode (UTF-7)"],[48,1200,"UTF-16LE","Unicode (UTF-16)"],[49,1201,"UTF-16BE","Unicode (UTF-16 Big Endian)"],[50,12E3,"UTF-32LE","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,12E3: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,65E3:47,65001:46};var c_oAscCodePageNone=-1;var c_oAscCodePageUtf7=47;var c_oAscCodePageUtf8=46;var c_oAscCodePageUtf16=48;var c_oAscCodePageUtf16BE=49;var c_oAscCodePageUtf32=50;var c_oAscCodePageUtf32BE=51;var c_oAscMaxTooltipLength=256;var c_oAscMaxCellOrCommentLength=32767;var c_oAscMaxFormulaLength=
|
|
8192;var c_oAscMaxHeaderFooterLength=255;var c_oAscMaxFilterListLength=1E4;var c_oAscMaxFormulaReferenceLength=2048;var c_oAscMaxTableColumnTextLength=256;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_Paragraph_AddText=3;var changestype_Paragraph_TextProperties=4;var changestype_Document_Content=10;var changestype_Document_Content_Add=
|
|
11;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_ContentControl_Remove=24;var changestype_ContentControl_Properties=25;var changestype_ContentControl_Add=26;var changestype_HdrFtr=30;var changestype_Remove=40;var changestype_Delete=41;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_SlideTransition=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_PresDefaultLang=74;var changestype_SlideHide=75;var changestype_CorePr=76;var changestype_Document_Settings=77;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;var changestype_2_Element_and_Type_Array=7;var contentchanges_Add=1;var contentchanges_Remove=2;var PUNCTUATION_FLAG_BASE=1;var PUNCTUATION_FLAG_CANT_BE_AT_BEGIN=16;var PUNCTUATION_FLAG_CANT_BE_AT_END=32;var PUNCTUATION_FLAG_EAST_ASIAN=256;var PUNCTUATION_FLAG_CANT_BE_AT_BEGIN_E=2;var PUNCTUATION_FLAG_CANT_BE_AT_END_E=4;var g_aPunctuation=[];g_aPunctuation[33]=
|
|
PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN_E;g_aPunctuation[34]=PUNCTUATION_FLAG_BASE;g_aPunctuation[35]=PUNCTUATION_FLAG_BASE;g_aPunctuation[36]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_END;g_aPunctuation[37]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN_E;g_aPunctuation[38]=PUNCTUATION_FLAG_BASE;g_aPunctuation[39]=PUNCTUATION_FLAG_BASE;g_aPunctuation[40]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_END|
|
|
PUNCTUATION_FLAG_CANT_BE_AT_END_E;g_aPunctuation[41]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN_E;g_aPunctuation[42]=PUNCTUATION_FLAG_BASE;g_aPunctuation[43]=PUNCTUATION_FLAG_BASE;g_aPunctuation[44]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN_E;g_aPunctuation[45]=PUNCTUATION_FLAG_BASE;g_aPunctuation[46]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN_E;g_aPunctuation[47]=
|
|
PUNCTUATION_FLAG_BASE;g_aPunctuation[58]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN_E;g_aPunctuation[59]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN_E;g_aPunctuation[60]=PUNCTUATION_FLAG_BASE;g_aPunctuation[61]=PUNCTUATION_FLAG_BASE;g_aPunctuation[62]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN;g_aPunctuation[63]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN_E;
|
|
g_aPunctuation[64]=PUNCTUATION_FLAG_BASE;g_aPunctuation[91]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_END|PUNCTUATION_FLAG_CANT_BE_AT_END_E;g_aPunctuation[92]=PUNCTUATION_FLAG_BASE;g_aPunctuation[93]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN_E;g_aPunctuation[94]=PUNCTUATION_FLAG_BASE;g_aPunctuation[95]=PUNCTUATION_FLAG_BASE;g_aPunctuation[96]=PUNCTUATION_FLAG_BASE;g_aPunctuation[123]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_END|PUNCTUATION_FLAG_CANT_BE_AT_END_E;
|
|
g_aPunctuation[124]=PUNCTUATION_FLAG_BASE;g_aPunctuation[125]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN;g_aPunctuation[126]=PUNCTUATION_FLAG_BASE;g_aPunctuation[161]=PUNCTUATION_FLAG_BASE;g_aPunctuation[162]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN;g_aPunctuation[163]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_END;g_aPunctuation[164]=PUNCTUATION_FLAG_BASE;g_aPunctuation[165]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_END;g_aPunctuation[166]=PUNCTUATION_FLAG_BASE;
|
|
g_aPunctuation[167]=PUNCTUATION_FLAG_BASE;g_aPunctuation[168]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN;g_aPunctuation[169]=PUNCTUATION_FLAG_BASE;g_aPunctuation[170]=PUNCTUATION_FLAG_BASE;g_aPunctuation[171]=PUNCTUATION_FLAG_BASE;g_aPunctuation[172]=PUNCTUATION_FLAG_BASE;g_aPunctuation[173]=PUNCTUATION_FLAG_BASE;g_aPunctuation[174]=PUNCTUATION_FLAG_BASE;g_aPunctuation[175]=PUNCTUATION_FLAG_BASE;g_aPunctuation[176]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN;g_aPunctuation[177]=
|
|
PUNCTUATION_FLAG_BASE;g_aPunctuation[180]=PUNCTUATION_FLAG_BASE;g_aPunctuation[182]=PUNCTUATION_FLAG_BASE;g_aPunctuation[183]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN;g_aPunctuation[184]=PUNCTUATION_FLAG_BASE;g_aPunctuation[186]=PUNCTUATION_FLAG_BASE;g_aPunctuation[187]=PUNCTUATION_FLAG_BASE;g_aPunctuation[187]=PUNCTUATION_FLAG_BASE;g_aPunctuation[191]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8208]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8209]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8210]=PUNCTUATION_FLAG_BASE;
|
|
g_aPunctuation[8211]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8212]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8213]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN;g_aPunctuation[8214]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN;g_aPunctuation[8215]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8216]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_END;g_aPunctuation[8217]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN;g_aPunctuation[8218]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8219]=PUNCTUATION_FLAG_BASE;
|
|
g_aPunctuation[8220]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_END;g_aPunctuation[8221]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN;g_aPunctuation[8222]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8223]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8224]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8225]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8226]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8227]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8228]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8229]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8230]=
|
|
PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN;g_aPunctuation[8231]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8240]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN;g_aPunctuation[8241]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8242]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN;g_aPunctuation[8243]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN;g_aPunctuation[8244]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8245]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8246]=PUNCTUATION_FLAG_BASE;
|
|
g_aPunctuation[8247]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8248]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8249]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8250]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN;g_aPunctuation[8251]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8252]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8253]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8254]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8255]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8256]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8257]=PUNCTUATION_FLAG_BASE;
|
|
g_aPunctuation[8258]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8259]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8260]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8261]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8262]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8263]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8264]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8265]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8266]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8267]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8268]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8269]=PUNCTUATION_FLAG_BASE;
|
|
g_aPunctuation[8270]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8271]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8272]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8273]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8274]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8275]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8276]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8277]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8278]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8279]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8280]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8281]=PUNCTUATION_FLAG_BASE;
|
|
g_aPunctuation[8282]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8283]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8284]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8285]=PUNCTUATION_FLAG_BASE;g_aPunctuation[8286]=PUNCTUATION_FLAG_BASE;g_aPunctuation[12289]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN;g_aPunctuation[12290]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN;g_aPunctuation[12291]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN;g_aPunctuation[12292]=PUNCTUATION_FLAG_BASE;g_aPunctuation[12293]=
|
|
PUNCTUATION_FLAG_BASE;g_aPunctuation[12294]=PUNCTUATION_FLAG_BASE;g_aPunctuation[12295]=PUNCTUATION_FLAG_BASE;g_aPunctuation[12296]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_END;g_aPunctuation[12297]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN;g_aPunctuation[12298]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_END;g_aPunctuation[12299]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN;g_aPunctuation[12300]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_END;g_aPunctuation[12301]=
|
|
PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN;g_aPunctuation[12302]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_END;g_aPunctuation[12303]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN;g_aPunctuation[12304]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_END;g_aPunctuation[12305]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN;g_aPunctuation[12306]=PUNCTUATION_FLAG_BASE;g_aPunctuation[12307]=PUNCTUATION_FLAG_BASE;g_aPunctuation[12308]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_END;
|
|
g_aPunctuation[12309]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN;g_aPunctuation[12310]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_END;g_aPunctuation[12311]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN;g_aPunctuation[12312]=PUNCTUATION_FLAG_BASE;g_aPunctuation[12313]=PUNCTUATION_FLAG_BASE;g_aPunctuation[12314]=PUNCTUATION_FLAG_BASE;g_aPunctuation[12315]=PUNCTUATION_FLAG_BASE;g_aPunctuation[12316]=PUNCTUATION_FLAG_BASE;g_aPunctuation[12317]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_END;
|
|
g_aPunctuation[12318]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN;g_aPunctuation[12319]=PUNCTUATION_FLAG_BASE;g_aPunctuation[65281]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN_E;g_aPunctuation[65282]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN;g_aPunctuation[65283]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN;g_aPunctuation[65284]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN|
|
|
PUNCTUATION_FLAG_CANT_BE_AT_END;g_aPunctuation[65285]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN_E;g_aPunctuation[65286]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN;g_aPunctuation[65287]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN;g_aPunctuation[65288]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN|PUNCTUATION_FLAG_CANT_BE_AT_END|PUNCTUATION_FLAG_CANT_BE_AT_END_E;g_aPunctuation[65289]=
|
|
PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN_E;g_aPunctuation[65290]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN;g_aPunctuation[65291]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN;g_aPunctuation[65292]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN_E;g_aPunctuation[65293]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN;g_aPunctuation[65294]=PUNCTUATION_FLAG_BASE|
|
|
PUNCTUATION_FLAG_EAST_ASIAN|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN_E;g_aPunctuation[65295]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN;g_aPunctuation[65306]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN_E;g_aPunctuation[65307]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN_E;g_aPunctuation[65308]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN;
|
|
g_aPunctuation[65309]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN;g_aPunctuation[65310]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN;g_aPunctuation[65311]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN_E;g_aPunctuation[65312]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN;g_aPunctuation[65339]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN|PUNCTUATION_FLAG_CANT_BE_AT_END|PUNCTUATION_FLAG_CANT_BE_AT_END_E;g_aPunctuation[65340]=
|
|
PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN;g_aPunctuation[65341]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN_E;g_aPunctuation[65342]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN;g_aPunctuation[65343]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN;g_aPunctuation[65344]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN;g_aPunctuation[65371]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN|
|
|
PUNCTUATION_FLAG_CANT_BE_AT_END|PUNCTUATION_FLAG_CANT_BE_AT_END_E;g_aPunctuation[65372]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN;g_aPunctuation[65373]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN_E;g_aPunctuation[65374]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN;g_aPunctuation[65375]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN;g_aPunctuation[65376]=
|
|
PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN;g_aPunctuation[65377]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN;g_aPunctuation[65378]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN;g_aPunctuation[65379]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN;g_aPunctuation[65380]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN;g_aPunctuation[65381]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN;g_aPunctuation[65504]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN|PUNCTUATION_FLAG_CANT_BE_AT_BEGIN;
|
|
g_aPunctuation[65505]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN|PUNCTUATION_FLAG_CANT_BE_AT_END;g_aPunctuation[65506]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN;g_aPunctuation[65507]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN;g_aPunctuation[65508]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN;g_aPunctuation[65509]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN|PUNCTUATION_FLAG_CANT_BE_AT_END;g_aPunctuation[65510]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN;g_aPunctuation[65512]=
|
|
PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN;g_aPunctuation[65513]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN;g_aPunctuation[65514]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN;g_aPunctuation[65515]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN;g_aPunctuation[65516]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN;g_aPunctuation[65517]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN;g_aPunctuation[65518]=PUNCTUATION_FLAG_BASE|PUNCTUATION_FLAG_EAST_ASIAN;var offlineMode="_offline_";
|
|
var chartMode="_chart_";var c_oSpecialPasteProps={paste:0,pasteOnlyFormula:1,formulaNumberFormat:2,formulaAllFormatting:3,formulaWithoutBorders:4,formulaColumnWidth:5,mergeConditionalFormating:6,pasteOnlyValues:7,valueNumberFormat:8,valueAllFormating:9,pasteOnlyFormating:10,transpose:11,link:12,picture:13,linkedPicture:14,sourceformatting:15,destinationFormatting:16,mergeFormatting:17,uniteList:18,doNotUniteList:19,insertAsNestedTable:20,uniteIntoTable:21,insertAsNewRows:22,keepTextOnly:23,overwriteCells:24,
|
|
useTextImport:25,comments:26,columnWidth:27};var c_oSpecialPasteOperation={none:0,add:1,subtract:2,multiply:3,divide:4};var c_oAscNumberingFormat={None:0,Bullet:4097,Decimal:8194,LowerRoman:8195,UpperRoman:8196,LowerLetter:8197,UpperLetter:8198,DecimalZero:8199,DecimalEnclosedCircle:8200,RussianLower:8201,RussianUpper:8202,ChineseCounting:8449,ChineseCountingThousand:8450,ChineseLegalSimplified:8451,BulletFlag:4096,NumberedFlag:8192};var c_oAscNumberingSuff={Tab:1,Space:2,None:3};var c_oAscNumberingLvlTextType=
|
|
{Text:0,Num:1};var c_oAscSdtAppearance={Frame:1,Hidden:2};var c_oAscObjectsAlignType={Selected:0,Slide:1,Page:2,Margin:3};var c_oAscItemType={Default:0,Avg:1,Count:2,CountA:3,Max:4,Min:5,Product:6,StdDev:7,StdDevP:8,Sum:9,Var:10,VarP:11,Data:12,Grand:13,Blank:14};var c_oAscRevisionsMove={NoMove:0,MoveTo:1,MoveFrom:2};var c_oAscRevisionsChangeType={Unknown:0,TextAdd:1,TextRem:2,ParaAdd:3,ParaRem:4,TextPr:5,ParaPr:6,TablePr:7,RowsAdd:8,RowsRem:9,MoveMark:254,MoveMarkRemove:255};var c_oAscSectionBreakType=
|
|
{NextPage:0,OddPage:1,EvenPage:2,Continuous:3,Column:4};var c_oAscSdtLockType={ContentLocked:0,SdtContentLocked:1,SdtLocked:2,Unlocked:3};var c_oAscAlignH={Center:0,Inside:1,Left:2,Outside:3,Right:4};var c_oAscAlignV={Bottom:0,Center:1,Inside:2,Outside:3,Top:4};var c_oAscWatermarkType={None:0,Text:1,Image:2};var c_oAscCalendarType={Gregorian:0,GregorianArabic:1,GregorianMeFrench:2,GregorianUs:3,GregorianXlitEnglish:4,GregorianXlitFrench:5,Hebrew:6,Hijri:7,Japan:8,Korea:9,None:10,Saka:11,Taiwan:12,
|
|
Thai:13};var c_oAscContentControlSpecificType={None:0,CheckBox:1,Picture:2,ComboBox:3,DropDownList:4,DateTime:5,TOC:10};var c_oAscDefNameType={none:0,table:1,slicer:2};var c_oAscChangeTextCaseType={SentenceCase:0,LowerCase:1,UpperCase:2,CapitalizeWords:3,ToggleCase:4};var g_aLcidNameIdArray=["ar",1,"bg",2,"ca",3,"zh-Hans",4,"cs",5,"da",6,"de",7,"el",8,"en",9,"es",10,"fi",11,"fr",12,"he",13,"hu",14,"is",15,"it",16,"ja",17,"ko",18,"nl",19,"no",20,"pl",21,"pt",22,"rm",23,"ro",24,"ru",25,"hr",26,"sk",
|
|
27,"sq",28,"sv",29,"th",30,"tr",31,"ur",32,"id",33,"uk",34,"be",35,"sl",36,"et",37,"lv",38,"lt",39,"tg",40,"fa",41,"vi",42,"hy",43,"az",44,"eu",45,"hsb",46,"mk",47,"tn",50,"xh",52,"zu",53,"af",54,"ka",55,"fo",56,"hi",57,"mt",58,"se",59,"ga",60,"ms",62,"kk",63,"ky",64,"sw",65,"tk",66,"uz",67,"tt",68,"bn",69,"pa",70,"gu",71,"or",72,"ta",73,"te",74,"kn",75,"ml",76,"as",77,"mr",78,"sa",79,"mn",80,"bo",81,"cy",82,"km",83,"lo",84,"gl",86,"kok",87,"syr",90,"si",91,"iu",93,"am",94,"tzm",95,"ne",97,"fy",98,
|
|
"ps",99,"fil",100,"dv",101,"ha",104,"yo",106,"quz",107,"nso",108,"ba",109,"lb",110,"kl",111,"ig",112,"ii",120,"arn",122,"moh",124,"br",126,"ug",128,"mi",129,"oc",130,"co",131,"gsw",132,"sah",133,"qut",134,"rw",135,"wo",136,"prs",140,"gd",145,"ar-SA",1025,"bg-BG",1026,"ca-ES",1027,"zh-TW",1028,"cs-CZ",1029,"da-DK",1030,"de-DE",1031,"el-GR",1032,"en-US",1033,"es-ES_tradnl",1034,"fi-FI",1035,"fr-FR",1036,"he-IL",1037,"hu-HU",1038,"is-IS",1039,"it-IT",1040,"ja-JP",1041,"ko-KR",1042,"nl-NL",1043,"nb-NO",
|
|
1044,"pl-PL",1045,"pt-BR",1046,"rm-CH",1047,"ro-RO",1048,"ru-RU",1049,"hr-HR",1050,"sk-SK",1051,"sq-AL",1052,"sv-SE",1053,"th-TH",1054,"tr-TR",1055,"ur-PK",1056,"id-ID",1057,"uk-UA",1058,"be-BY",1059,"sl-SI",1060,"et-EE",1061,"lv-LV",1062,"lt-LT",1063,"tg-Cyrl-TJ",1064,"fa-IR",1065,"vi-VN",1066,"hy-AM",1067,"az-Latn-AZ",1068,"eu-ES",1069,"wen-DE",1070,"mk-MK",1071,"st-ZA",1072,"ts-ZA",1073,"tn-ZA",1074,"ven-ZA",1075,"xh-ZA",1076,"zu-ZA",1077,"af-ZA",1078,"ka-GE",1079,"fo-FO",1080,"hi-IN",1081,"mt-MT",
|
|
1082,"se-NO",1083,"ms-MY",1086,"kk-KZ",1087,"ky-KG",1088,"sw-KE",1089,"tk-TM",1090,"uz-Latn-UZ",1091,"tt-RU",1092,"bn-IN",1093,"pa-IN",1094,"gu-IN",1095,"or-IN",1096,"ta-IN",1097,"te-IN",1098,"kn-IN",1099,"ml-IN",1100,"as-IN",1101,"mr-IN",1102,"sa-IN",1103,"mn-MN",1104,"bo-CN",1105,"cy-GB",1106,"km-KH",1107,"lo-LA",1108,"my-MM",1109,"gl-ES",1110,"kok-IN",1111,"mni",1112,"sd-IN",1113,"syr-SY",1114,"si-LK",1115,"chr-US",1116,"iu-Cans-CA",1117,"am-ET",1118,"tmz",1119,"ne-NP",1121,"fy-NL",1122,"ps-AF",
|
|
1123,"fil-PH",1124,"dv-MV",1125,"bin-NG",1126,"fuv-NG",1127,"ha-Latn-NG",1128,"ibb-NG",1129,"yo-NG",1130,"quz-BO",1131,"nso-ZA",1132,"ba-RU",1133,"lb-LU",1134,"kl-GL",1135,"ig-NG",1136,"kr-NG",1137,"gaz-ET",1138,"ti-ER",1139,"gn-PY",1140,"haw-US",1141,"so-SO",1143,"ii-CN",1144,"pap-AN",1145,"arn-CL",1146,"moh-CA",1148,"br-FR",1150,"ug-CN",1152,"mi-NZ",1153,"oc-FR",1154,"co-FR",1155,"gsw-FR",1156,"sah-RU",1157,"qut-GT",1158,"rw-RW",1159,"wo-SN",1160,"prs-AF",1164,"plt-MG",1165,"gd-GB",1169,"ar-IQ",
|
|
2049,"zh-CN",2052,"de-CH",2055,"en-GB",2057,"es-MX",2058,"fr-BE",2060,"it-CH",2064,"nl-BE",2067,"nn-NO",2068,"pt-PT",2070,"ro-MO",2072,"ru-MO",2073,"sr-Latn-CS",2074,"sv-FI",2077,"ur-IN",2080,"az-Cyrl-AZ",2092,"dsb-DE",2094,"se-SE",2107,"ga-IE",2108,"ms-BN",2110,"uz-Cyrl-UZ",2115,"bn-BD",2117,"pa-PK",2118,"mn-Mong-CN",2128,"bo-BT",2129,"sd-PK",2137,"iu-Latn-CA",2141,"tzm-Latn-DZ",2143,"ne-IN",2145,"quz-EC",2155,"ti-ET",2163,"ar-EG",3073,"zh-HK",3076,"de-AT",3079,"en-AU",3081,"es-ES",3082,"fr-CA",
|
|
3084,"sr-Cyrl-CS",3098,"se-FI",3131,"tmz-MA",3167,"quz-PE",3179,"ar-LY",4097,"zh-SG",4100,"de-LU",4103,"en-CA",4105,"es-GT",4106,"fr-CH",4108,"hr-BA",4122,"smj-NO",4155,"ar-DZ",5121,"zh-MO",5124,"de-LI",5127,"en-NZ",5129,"es-CR",5130,"fr-LU",5132,"bs-Latn-BA",5146,"smj-SE",5179,"ar-MA",6145,"en-IE",6153,"es-PA",6154,"fr-MC",6156,"sr-Latn-BA",6170,"sma-NO",6203,"ar-TN",7169,"en-ZA",7177,"es-DO",7178,"fr-West",7180,"sr-Cyrl-BA",7194,"sma-SE",7227,"ar-OM",8193,"en-JM",8201,"es-VE",8202,"fr-RE",8204,
|
|
"bs-Cyrl-BA",8218,"sms-FI",8251,"ar-YE",9217,"en-CB",9225,"es-CO",9226,"fr-CG",9228,"sr-Latn-RS",9242,"smn-FI",9275,"ar-SY",10241,"en-BZ",10249,"es-PE",10250,"fr-SN",10252,"sr-Cyrl-RS",10266,"ar-JO",11265,"en-TT",11273,"es-AR",11274,"fr-CM",11276,"sr-Latn-ME",11290,"ar-LB",12289,"en-ZW",12297,"es-EC",12298,"fr-CI",12300,"sr-Cyrl-ME",12314,"ar-KW",13313,"en-PH",13321,"es-CL",13322,"fr-ML",13324,"ar-AE",14337,"en-ID",14345,"es-UY",14346,"fr-MA",14348,"ar-BH",15361,"en-HK",15369,"es-PY",15370,"fr-HT",
|
|
15372,"ar-QA",16385,"en-IN",16393,"es-BO",16394,"en-MY",17417,"es-SV",17418,"en-SG",18441,"es-HN",18442,"es-NI",19466,"es-PR",20490,"es-US",21514,"bs-Cyrl",25626,"bs-Latn",26650,"sr-Cyrl",27674,"sr-Latn",28698,"smn",28731,"az-Cyrl",29740,"sms",29755,"zh",30724,"nn",30740,"bs",30746,"az-Latn",30764,"sma",30779,"uz-Cyrl",30787,"mn-Cyrl",30800,"iu-Cans",30813,"zh-Hant",31748,"nb",31764,"sr",31770,"tg-Cyrl",31784,"dsb",31790,"smj",31803,"uz-Latn",31811,"mn-Mong",31824,"iu-Latn",31837,"tzm-Latn",31839,
|
|
"ha-Latn",31848];var g_oLcidNameToIdMap={};var g_oLcidIdToNameMap={};for(var i=0,length=g_aLcidNameIdArray.length;i+1<length;i+=2){var name=g_aLcidNameIdArray[i];var id=g_aLcidNameIdArray[i+1];g_oLcidNameToIdMap[name]=id;g_oLcidIdToNameMap[id]=name}var document_compatibility_mode_Word11=11;var document_compatibility_mode_Word12=12;var document_compatibility_mode_Word14=14;var document_compatibility_mode_Word15=15;var document_compatibility_mode_Current=document_compatibility_mode_Word12;var c_oAscCustomShortcutType=
|
|
{Symbol:1};var c_oAscLineNumberRestartType={Continuous:1,NewPage:2,NewSection:3};var c_oAscSectionApplyType={Current:0,ToEnd:1,All:2};var c_oAscSlideSZType={Sz35mm:0,SzA3:1,SzA4:2,SzB4ISO:3,SzB4JIS:4,SzB5ISO:5,SzB5JIS:6,SzBanner:7,SzCustom:8,SzHagakiCard:9,SzLedger:10,SzLetter:11,SzOverhead:12,SzScreen16x10:13,SzScreen16x9:14,SzScreen4x3:15,SzWidescreen:16};var c_oAscPictureFormScaleFlag={Always:0,Bigger:1,Smaller:2,Never:3};var c_oAscDisplayModeInReview={Edit:0,Final:1,Original:2,Simple:3};var prot;
|
|
window["Asc"]=window["Asc"]||{};window["Asc"]["FONT_THUMBNAIL_HEIGHT"]=FONT_THUMBNAIL_HEIGHT;window["Asc"]["c_oAscMaxColumnWidth"]=window["Asc"].c_oAscMaxColumnWidth=c_oAscMaxColumnWidth;window["Asc"]["c_oAscMaxRowHeight"]=window["Asc"].c_oAscMaxRowHeight=c_oAscMaxRowHeight;window["Asc"]["c_nMaxConversionTime"]=window["Asc"].c_nMaxConversionTime=c_nMaxConversionTime;window["Asc"]["c_nCommonRequestTime"]=window["Asc"].c_nCommonRequestTime=c_nCommonRequestTime;window["Asc"]["c_nMaxDownloadTitleLen"]=
|
|
window["Asc"].c_nMaxDownloadTitleLen=c_nMaxDownloadTitleLen;window["Asc"]["c_nVersionNoBase64"]=window["Asc"].c_nVersionNoBase64=c_nVersionNoBase64;window["Asc"]["c_dMaxParaRunContentLength"]=window["Asc"].c_dMaxParaRunContentLength=c_dMaxParaRunContentLength;window["Asc"]["c_rUneditableTypes"]=window["Asc"].c_rUneditableTypes=c_rUneditableTypes;window["Asc"]["c_nMaxHyperlinkLength"]=window["Asc"].c_nMaxHyperlinkLength=c_nMaxHyperlinkLength;window["Asc"]["c_oAscFileType"]=window["Asc"].c_oAscFileType=
|
|
c_oAscFileType;window["Asc"].g_oLcidNameToIdMap=g_oLcidNameToIdMap;window["Asc"].g_oLcidIdToNameMap=g_oLcidIdToNameMap;prot=c_oAscFileType;prot["UNKNOWN"]=prot.UNKNOWN;prot["PDF"]=prot.PDF;prot["PDFA"]=prot.PDFA;prot["HTML"]=prot.HTML;prot["DOCX"]=prot.DOCX;prot["DOC"]=prot.DOC;prot["ODT"]=prot.ODT;prot["RTF"]=prot.RTF;prot["TXT"]=prot.TXT;prot["MHT"]=prot.MHT;prot["EPUB"]=prot.EPUB;prot["FB2"]=prot.FB2;prot["MOBI"]=prot.MOBI;prot["DOCM"]=prot.DOCM;prot["DOTX"]=prot.DOTX;prot["DOTM"]=prot.DOTM;prot["FODT"]=
|
|
prot.FODT;prot["OTT"]=prot.OTT;prot["DOCY"]=prot.DOCY;prot["JSON"]=prot.JSON;prot["XLSX"]=prot.XLSX;prot["XLS"]=prot.XLS;prot["ODS"]=prot.ODS;prot["CSV"]=prot.CSV;prot["XLSM"]=prot.XLSM;prot["XLTX"]=prot.XLTX;prot["XLTM"]=prot.XLTM;prot["FODS"]=prot.FODS;prot["OTS"]=prot.OTS;prot["XLSY"]=prot.XLSY;prot["PPTX"]=prot.PPTX;prot["PPT"]=prot.PPT;prot["ODP"]=prot.ODP;prot["PPSX"]=prot.PPSX;prot["PPTM"]=prot.PPTM;prot["PPSM"]=prot.PPSM;prot["POTX"]=prot.POTX;prot["POTM"]=prot.POTM;prot["FODP"]=prot.FODP;
|
|
prot["OTP"]=prot.OTP;window["Asc"]["c_oAscError"]=window["Asc"].c_oAscError=c_oAscError;prot=c_oAscError;prot["Level"]=prot.Level;prot["ID"]=prot.ID;prot=c_oAscError.Level;prot["Critical"]=prot.Critical;prot["NoCritical"]=prot.NoCritical;prot=c_oAscError.ID;prot["ServerSaveComplete"]=prot.ServerSaveComplete;prot["ConvertationProgress"]=prot.ConvertationProgress;prot["DownloadProgress"]=prot.DownloadProgress;prot["No"]=prot.No;prot["Unknown"]=prot.Unknown;prot["ConvertationTimeout"]=prot.ConvertationTimeout;
|
|
prot["DownloadError"]=prot.DownloadError;prot["UnexpectedGuid"]=prot.UnexpectedGuid;prot["Database"]=prot.Database;prot["FileRequest"]=prot.FileRequest;prot["FileVKey"]=prot.FileVKey;prot["UplImageSize"]=prot.UplImageSize;prot["UplImageExt"]=prot.UplImageExt;prot["UplImageFileCount"]=prot.UplImageFileCount;prot["NoSupportClipdoard"]=prot.NoSupportClipdoard;prot["UplImageUrl"]=prot.UplImageUrl;prot["DirectUrl"]=prot.DirectUrl;prot["MaxDataPointsError"]=prot.MaxDataPointsError;prot["StockChartError"]=
|
|
prot.StockChartError;prot["CoAuthoringDisconnect"]=prot.CoAuthoringDisconnect;prot["ConvertationPassword"]=prot.ConvertationPassword;prot["VKeyEncrypt"]=prot.VKeyEncrypt;prot["KeyExpire"]=prot.KeyExpire;prot["UserCountExceed"]=prot.UserCountExceed;prot["AccessDeny"]=prot.AccessDeny;prot["LoadingScriptError"]=prot.LoadingScriptError;prot["EditingError"]=prot.EditingError;prot["LoadingFontError"]=prot.LoadingFontError;prot["SplitCellMaxRows"]=prot.SplitCellMaxRows;prot["SplitCellMaxCols"]=prot.SplitCellMaxCols;
|
|
prot["SplitCellRowsDivider"]=prot.SplitCellRowsDivider;prot["MobileUnexpectedCharCount"]=prot.MobileUnexpectedCharCount;prot["MailMergeLoadFile"]=prot.MailMergeLoadFile;prot["MailMergeSaveFile"]=prot.MailMergeSaveFile;prot["DataValidate"]=prot.DataValidate;prot["MoreOneTypeDataValidate"]=prot.MoreOneTypeDataValidate;prot["ContainsCellsWithoutDataValidate"]=prot.ContainsCellsWithoutDataValidate;prot["AutoFilterDataRangeError"]=prot.AutoFilterDataRangeError;prot["AutoFilterChangeFormatTableError"]=
|
|
prot.AutoFilterChangeFormatTableError;prot["AutoFilterChangeError"]=prot.AutoFilterChangeError;prot["AutoFilterMoveToHiddenRangeError"]=prot.AutoFilterMoveToHiddenRangeError;prot["LockedAllError"]=prot.LockedAllError;prot["LockedWorksheetRename"]=prot.LockedWorksheetRename;prot["FTChangeTableRangeError"]=prot.FTChangeTableRangeError;prot["FTRangeIncludedOtherTables"]=prot.FTRangeIncludedOtherTables;prot["ChangeFilteredRangeError"]=prot.ChangeFilteredRangeError;prot["PasteMaxRangeError"]=prot.PasteMaxRangeError;
|
|
prot["PastInMergeAreaError"]=prot.PastInMergeAreaError;prot["CopyMultiselectAreaError"]=prot.CopyMultiselectAreaError;prot["PasteSlicerError"]=prot.PasteSlicerError;prot["MoveSlicerError"]=prot.MoveSlicerError;prot["PasteMultiSelectError"]=prot.PasteMultiSelectError;prot["DataRangeError"]=prot.DataRangeError;prot["CannotMoveRange"]=prot.CannotMoveRange;prot["MaxDataSeriesError"]=prot.MaxDataSeriesError;prot["CannotFillRange"]=prot.CannotFillRange;prot["ConvertationOpenError"]=prot.ConvertationOpenError;
|
|
prot["ConvertationSaveError"]=prot.ConvertationSaveError;prot["ConvertationOpenLimitError"]=prot.ConvertationOpenLimitError;prot["UserDrop"]=prot.UserDrop;prot["Warning"]=prot.Warning;prot["UpdateVersion"]=prot.UpdateVersion;prot["PrintMaxPagesCount"]=prot.PrintMaxPagesCount;prot["SessionAbsolute"]=prot.SessionAbsolute;prot["SessionIdle"]=prot.SessionIdle;prot["SessionToken"]=prot.SessionToken;prot["FrmlMaxTextLength"]=prot.FrmlMaxTextLength;prot["FrmlMaxLength"]=prot.FrmlMaxLength;prot["FrmlMaxReference"]=
|
|
prot.FrmlMaxReference;prot["FrmlWrongCountParentheses"]=prot.FrmlWrongCountParentheses;prot["FrmlWrongOperator"]=prot.FrmlWrongOperator;prot["FrmlWrongMaxArgument"]=prot.FrmlWrongMaxArgument;prot["FrmlWrongCountArgument"]=prot.FrmlWrongCountArgument;prot["FrmlWrongFunctionName"]=prot.FrmlWrongFunctionName;prot["FrmlAnotherParsingError"]=prot.FrmlAnotherParsingError;prot["FrmlWrongArgumentRange"]=prot.FrmlWrongArgumentRange;prot["FrmlOperandExpected"]=prot.FrmlOperandExpected;prot["FrmlParenthesesCorrectCount"]=
|
|
prot.FrmlParenthesesCorrectCount;prot["FrmlWrongReferences"]=prot.FrmlWrongReferences;prot["InvalidReferenceOrName"]=prot.InvalidReferenceOrName;prot["LockCreateDefName"]=prot.LockCreateDefName;prot["LockedCellPivot"]=prot.LockedCellPivot;prot["PivotLabledColumns"]=prot.PivotLabledColumns;prot["PivotOverlap"]=prot.PivotOverlap;prot["PivotGroup"]=prot.PivotGroup;prot["PivotWithoutUnderlyingData"]=prot.PivotWithoutUnderlyingData;prot["ForceSaveButton"]=prot.ForceSaveButton;prot["ForceSaveTimeout"]=
|
|
prot.ForceSaveTimeout;prot["Submit"]=prot.Submit;prot["CannotChangeFormulaArray"]=prot.CannotChangeFormulaArray;prot["MultiCellsInTablesFormulaArray"]=prot.MultiCellsInTablesFormulaArray;prot["MailToClientMissing"]=prot.MailToClientMissing;prot["OpenWarning"]=prot.OpenWarning;prot["DataEncrypted"]=prot.DataEncrypted;prot["NoDataToParse"]=prot.NoDataToParse;prot["CannotCompareInCoEditing"]=prot.CannotCompareInCoEditing;prot["CannotUngroupError"]=prot.CannotUngroupError;prot["UplDocumentSize"]=prot.UplDocumentSize;
|
|
prot["UplDocumentExt"]=prot.UplDocumentExt;prot["UplDocumentFileCount"]=prot.UplDocumentFileCount;prot["CustomSortMoreOneSelectedError"]=prot.CustomSortMoreOneSelectedError;prot["CustomSortNotOriginalSelectError"]=prot.CustomSortNotOriginalSelectError;prot["RemoveDuplicates"]=prot.RemoveDuplicates;prot["LargeRangeWarning"]=prot.LargeRangeWarning;prot["LockedEditView"]=prot.LockedEditView;prot["Password"]=prot.Password;prot["SecondaryAxis"]=prot.SecondaryAxis;prot["ComboSeriesError"]=prot.ComboSeriesError;
|
|
prot["DataValidateNotNumeric"]=prot.DataValidateNotNumeric;prot["DataValidateNegativeTextLength"]=prot.DataValidateNegativeTextLength;prot["DataValidateMustEnterValue"]=prot.DataValidateMustEnterValue;prot["DataValidateMinGreaterMax"]=prot.DataValidateMinGreaterMax;prot["DataValidateInvalid"]=prot.DataValidateInvalid;prot["NamedRangeNotFound"]=prot.NamedRangeNotFound;prot["FormulaEvaluateError"]=prot.FormulaEvaluateError;prot["DataValidateInvalidList"]=prot.DataValidateInvalidList;prot["NotValidPercentile"]=
|
|
prot.NotValidPercentile;prot["CannotAddConditionalFormatting"]=prot.CannotAddConditionalFormatting;prot["NotValidPercentage"]=prot.NotValidPercentage;prot["NotSingleReferenceCannotUsed"]=prot.NotSingleReferenceCannotUsed;prot["CannotUseRelativeReference"]=prot.CannotUseRelativeReference;prot["ValueMustBeGreaterThen"]=prot.ValueMustBeGreaterThen;prot["IconDataRangesOverlap"]=prot.IconDataRangesOverlap;prot["ErrorTop10Between"]=prot.ErrorTop10Between;prot["SingleColumnOrRowError"]=prot.SingleColumnOrRowError;
|
|
prot["LocationOrDataRangeError"]=prot.LocationOrDataRangeError;window["Asc"]["c_oAscAsyncAction"]=window["Asc"].c_oAscAsyncAction=c_oAscAsyncAction;prot=c_oAscAsyncAction;prot["Open"]=prot.Open;prot["Save"]=prot.Save;prot["LoadDocumentFonts"]=prot.LoadDocumentFonts;prot["LoadDocumentImages"]=prot.LoadDocumentImages;prot["LoadFont"]=prot.LoadFont;prot["LoadImage"]=prot.LoadImage;prot["DownloadAs"]=prot.DownloadAs;prot["Print"]=prot.Print;prot["UploadImage"]=prot.UploadImage;prot["ApplyChanges"]=prot.ApplyChanges;
|
|
prot["SlowOperation"]=prot.SlowOperation;prot["LoadTheme"]=prot.LoadTheme;prot["MailMergeLoadFile"]=prot.MailMergeLoadFile;prot["DownloadMerge"]=prot.DownloadMerge;prot["SendMailMerge"]=prot.SendMailMerge;prot["ForceSaveButton"]=prot.ForceSaveButton;prot["ForceSaveTimeout"]=prot.ForceSaveTimeout;prot["Waiting"]=prot.Waiting;prot["Submit"]=prot.Submit;window["Asc"]["c_oAscAdvancedOptionsID"]=window["Asc"].c_oAscAdvancedOptionsID=c_oAscAdvancedOptionsID;prot=c_oAscAdvancedOptionsID;prot["CSV"]=prot.CSV;
|
|
prot["TXT"]=prot.TXT;prot["DRM"]=prot.DRM;window["Asc"]["c_oAscFontRenderingModeType"]=window["Asc"].c_oAscFontRenderingModeType=c_oAscFontRenderingModeType;prot=c_oAscFontRenderingModeType;prot["noHinting"]=prot.noHinting;prot["hinting"]=prot.hinting;prot["hintingAndSubpixeling"]=prot.hintingAndSubpixeling;window["Asc"]["c_oAscAsyncActionType"]=window["Asc"].c_oAscAsyncActionType=c_oAscAsyncActionType;prot=c_oAscAsyncActionType;prot["Information"]=prot.Information;prot["BlockInteraction"]=prot.BlockInteraction;
|
|
window["Asc"]["c_oAscNumFormatType"]=window["Asc"].c_oAscNumFormatType=c_oAscNumFormatType;prot=c_oAscNumFormatType;prot["None"]=prot.None;prot["General"]=prot.General;prot["Number"]=prot.Number;prot["Scientific"]=prot.Scientific;prot["Accounting"]=prot.Accounting;prot["Currency"]=prot.Currency;prot["Date"]=prot.Date;prot["Time"]=prot.Time;prot["Percent"]=prot.Percent;prot["Fraction"]=prot.Fraction;prot["Text"]=prot.Text;prot["Custom"]=prot.Custom;window["Asc"]["c_oAscDrawingLayerType"]=window["Asc"].c_oAscDrawingLayerType=
|
|
c_oAscDrawingLayerType;prot=c_oAscDrawingLayerType;prot["BringToFront"]=prot.BringToFront;prot["SendToBack"]=prot.SendToBack;prot["BringForward"]=prot.BringForward;prot["SendBackward"]=prot.SendBackward;window["Asc"]["c_oAscTypeSelectElement"]=window["Asc"].c_oAscTypeSelectElement=c_oAscTypeSelectElement;prot=c_oAscTypeSelectElement;prot["Paragraph"]=prot.Paragraph;prot["Table"]=prot.Table;prot["Image"]=prot.Image;prot["Header"]=prot.Header;prot["Hyperlink"]=prot.Hyperlink;prot["SpellCheck"]=prot.SpellCheck;
|
|
prot["Shape"]=prot.Shape;prot["Slide"]=prot.Slide;prot["Chart"]=prot.Chart;prot["Math"]=prot.Math;prot["MailMerge"]=prot.MailMerge;window["Asc"]["linerule_AtLeast"]=window["Asc"].linerule_AtLeast=linerule_AtLeast;window["Asc"]["linerule_Auto"]=window["Asc"].linerule_Auto=linerule_Auto;window["Asc"]["linerule_Exact"]=window["Asc"].linerule_Exact=linerule_Exact;window["Asc"]["c_oAscShdClear"]=window["Asc"].c_oAscShdClear=c_oAscShdClear;window["Asc"]["c_oAscShdNil"]=window["Asc"].c_oAscShdNil=c_oAscShdNil;
|
|
window["Asc"]["c_oAscShd"]=window["Asc"].c_oAscShd=c_oAscShd;prot=c_oAscShd;prot["Clear"]=prot.Clear;prot["Nil"]=prot.Nil;prot["DiagCross"]=prot.DiagCross;prot["DiagStripe"]=prot.DiagStripe;prot["HorzCross"]=prot.HorzCross;prot["HorzStripe"]=prot.HorzStripe;prot["Pct10"]=prot.Pct10;prot["Pct12"]=prot.Pct12;prot["Pct15"]=prot.Pct15;prot["Pct20"]=prot.Pct20;prot["Pct25"]=prot.Pct25;prot["Pct30"]=prot.Pct30;prot["Pct35"]=prot.Pct35;prot["Pct37"]=prot.Pct37;prot["Pct40"]=prot.Pct40;prot["Pct45"]=prot.Pct45;
|
|
prot["Pct5"]=prot.Pct5;prot["Pct50"]=prot.Pct50;prot["Pct55"]=prot.Pct55;prot["Pct60"]=prot.Pct60;prot["Pct62"]=prot.Pct62;prot["Pct65"]=prot.Pct65;prot["Pct70"]=prot.Pct70;prot["Pct75"]=prot.Pct75;prot["Pct80"]=prot.Pct80;prot["Pct85"]=prot.Pct85;prot["Pct87"]=prot.Pct87;prot["Pct90"]=prot.Pct90;prot["Pct95"]=prot.Pct95;prot["ReverseDiagStripe"]=prot.ReverseDiagStripe;prot["Solid"]=prot.Solid;prot["ThinDiagCross"]=prot.ThinDiagCross;prot["ThinDiagStripe"]=prot.ThinDiagStripe;prot["ThinHorzCross"]=
|
|
prot.ThinHorzCross;prot["ThinHorzStripe"]=prot.ThinHorzStripe;prot["ThinReverseDiagStripe"]=prot.ThinReverseDiagStripe;prot["ThinVertStripe"]=prot.ThinVertStripe;prot["VertStripe"]=prot.VertStripe;window["Asc"]["c_oAscDropCap"]=window["Asc"].c_oAscDropCap=c_oAscDropCap;prot=c_oAscDropCap;prot["None"]=prot.None;prot["Drop"]=prot.Drop;prot["Margin"]=prot.Margin;window["Asc"]["c_oAscChartTitleShowSettings"]=window["Asc"].c_oAscChartTitleShowSettings=c_oAscChartTitleShowSettings;prot=c_oAscChartTitleShowSettings;
|
|
prot["none"]=prot.none;prot["overlay"]=prot.overlay;prot["noOverlay"]=prot.noOverlay;window["Asc"]["c_oAscChartHorAxisLabelShowSettings"]=window["Asc"].c_oAscChartHorAxisLabelShowSettings=c_oAscChartHorAxisLabelShowSettings;prot=c_oAscChartHorAxisLabelShowSettings;prot["none"]=prot.none;prot["noOverlay"]=prot.noOverlay;window["Asc"]["c_oAscChartVertAxisLabelShowSettings"]=window["Asc"].c_oAscChartVertAxisLabelShowSettings=c_oAscChartVertAxisLabelShowSettings;prot=c_oAscChartVertAxisLabelShowSettings;
|
|
prot["none"]=prot.none;prot["rotated"]=prot.rotated;prot["vertical"]=prot.vertical;prot["horizontal"]=prot.horizontal;window["Asc"]["c_oAscChartLegendShowSettings"]=window["Asc"].c_oAscChartLegendShowSettings=c_oAscChartLegendShowSettings;prot=c_oAscChartLegendShowSettings;prot["none"]=prot.none;prot["left"]=prot.left;prot["top"]=prot.top;prot["right"]=prot.right;prot["bottom"]=prot.bottom;prot["leftOverlay"]=prot.leftOverlay;prot["rightOverlay"]=prot.rightOverlay;prot["layout"]=prot.layout;prot["topRight"]=
|
|
prot.topRight;window["Asc"]["c_oAscChartDataLabelsPos"]=window["Asc"].c_oAscChartDataLabelsPos=c_oAscChartDataLabelsPos;prot=c_oAscChartDataLabelsPos;prot["none"]=prot.none;prot["b"]=prot.b;prot["bestFit"]=prot.bestFit;prot["ctr"]=prot.ctr;prot["inBase"]=prot.inBase;prot["inEnd"]=prot.inEnd;prot["l"]=prot.l;prot["outEnd"]=prot.outEnd;prot["r"]=prot.r;prot["t"]=prot.t;prot["show"]=prot.show;window["Asc"]["c_oAscGridLinesSettings"]=window["Asc"].c_oAscGridLinesSettings=c_oAscGridLinesSettings;prot=
|
|
c_oAscGridLinesSettings;prot["none"]=prot.none;prot["major"]=prot.major;prot["minor"]=prot.minor;prot["majorMinor"]=prot.majorMinor;window["Asc"]["c_oAscChartTypeSettings"]=window["Asc"].c_oAscChartTypeSettings=c_oAscChartTypeSettings;prot=c_oAscChartTypeSettings;prot["barNormal"]=prot.barNormal;prot["barStacked"]=prot.barStacked;prot["barStackedPer"]=prot.barStackedPer;prot["barNormal3d"]=prot.barNormal3d;prot["barStacked3d"]=prot.barStacked3d;prot["barStackedPer3d"]=prot.barStackedPer3d;prot["barNormal3dPerspective"]=
|
|
prot.barNormal3dPerspective;prot["lineNormal"]=prot.lineNormal;prot["lineStacked"]=prot.lineStacked;prot["lineStackedPer"]=prot.lineStackedPer;prot["lineNormalMarker"]=prot.lineNormalMarker;prot["lineStackedMarker"]=prot.lineStackedMarker;prot["lineStackedPerMarker"]=prot.lineStackedPerMarker;prot["line3d"]=prot.line3d;prot["pie"]=prot.pie;prot["pie3d"]=prot.pie3d;prot["hBarNormal"]=prot.hBarNormal;prot["hBarStacked"]=prot.hBarStacked;prot["hBarStackedPer"]=prot.hBarStackedPer;prot["hBarNormal3d"]=
|
|
prot.hBarNormal3d;prot["hBarStacked3d"]=prot.hBarStacked3d;prot["hBarStackedPer3d"]=prot.hBarStackedPer3d;prot["areaNormal"]=prot.areaNormal;prot["areaStacked"]=prot.areaStacked;prot["areaStackedPer"]=prot.areaStackedPer;prot["doughnut"]=prot.doughnut;prot["stock"]=prot.stock;prot["scatter"]=prot.scatter;prot["scatterLine"]=prot.scatterLine;prot["scatterLineMarker"]=prot.scatterLineMarker;prot["scatterMarker"]=prot.scatterMarker;prot["scatterNone"]=prot.scatterNone;prot["scatterSmooth"]=prot.scatterSmooth;
|
|
prot["scatterSmoothMarker"]=prot.scatterSmoothMarker;prot["surfaceNormal"]=prot.surfaceNormal;prot["surfaceWireframe"]=prot.surfaceWireframe;prot["contourNormal"]=prot.contourNormal;prot["contourWireframe"]=prot.contourWireframe;prot["comboCustom"]=prot.comboCustom;prot["comboBarLine"]=prot.comboBarLine;prot["comboBarLineSecondary"]=prot.comboBarLineSecondary;prot["comboAreaBar"]=prot.comboAreaBar;prot["unknown"]=prot.unknown;window["Asc"]["c_oAscValAxisRule"]=window["Asc"].c_oAscValAxisRule=c_oAscValAxisRule;
|
|
prot=c_oAscValAxisRule;prot["auto"]=prot.auto;prot["fixed"]=prot.fixed;window["Asc"]["c_oAscValAxUnits"]=window["Asc"].c_oAscValAxUnits=c_oAscValAxUnits;prot=c_oAscValAxUnits;prot["none"]=prot.none;prot["BILLIONS"]=prot.BILLIONS;prot["HUNDRED_MILLIONS"]=prot.HUNDRED_MILLIONS;prot["HUNDREDS"]=prot.HUNDREDS;prot["HUNDRED_THOUSANDS"]=prot.HUNDRED_THOUSANDS;prot["MILLIONS"]=prot.MILLIONS;prot["TEN_MILLIONS"]=prot.TEN_MILLIONS;prot["TEN_THOUSANDS"]=prot.TEN_THOUSANDS;prot["TRILLIONS"]=prot.TRILLIONS;prot["CUSTOM"]=
|
|
prot.CUSTOM;prot["THOUSANDS"]=prot.THOUSANDS;window["Asc"]["c_oAscTickMark"]=window["Asc"].c_oAscTickMark=c_oAscTickMark;prot=c_oAscTickMark;prot["TICK_MARK_CROSS"]=prot.TICK_MARK_CROSS;prot["TICK_MARK_IN"]=prot.TICK_MARK_IN;prot["TICK_MARK_NONE"]=prot.TICK_MARK_NONE;prot["TICK_MARK_OUT"]=prot.TICK_MARK_OUT;window["Asc"]["c_oAscTickLabelsPos"]=window["Asc"].c_oAscTickLabelsPos=c_oAscTickLabelsPos;prot=c_oAscTickLabelsPos;prot["TICK_LABEL_POSITION_HIGH"]=prot.TICK_LABEL_POSITION_HIGH;prot["TICK_LABEL_POSITION_LOW"]=
|
|
prot.TICK_LABEL_POSITION_LOW;prot["TICK_LABEL_POSITION_NEXT_TO"]=prot.TICK_LABEL_POSITION_NEXT_TO;prot["TICK_LABEL_POSITION_NONE"]=prot.TICK_LABEL_POSITION_NONE;window["Asc"]["c_oAscCrossesRule"]=window["Asc"].c_oAscCrossesRule=c_oAscCrossesRule;prot=c_oAscCrossesRule;prot["auto"]=prot.auto;prot["maxValue"]=prot.maxValue;prot["value"]=prot.value;prot["minValue"]=prot.minValue;window["Asc"]["c_oAscBetweenLabelsRule"]=window["Asc"].c_oAscBetweenLabelsRule=c_oAscBetweenLabelsRule;prot=c_oAscBetweenLabelsRule;
|
|
prot["auto"]=prot.auto;prot["manual"]=prot.manual;window["Asc"]["c_oAscLabelsPosition"]=window["Asc"].c_oAscLabelsPosition=c_oAscLabelsPosition;prot=c_oAscLabelsPosition;prot["byDivisions"]=prot.byDivisions;prot["betweenDivisions"]=prot.betweenDivisions;window["Asc"]["c_oAscAxisType"]=window["Asc"].c_oAscAxisType=c_oAscAxisType;prot=c_oAscAxisType;prot["auto"]=prot.auto;prot["date"]=prot.date;prot["text"]=prot.text;prot["cat"]=prot.cat;prot["val"]=prot.val;prot["ser"]=prot.ser;window["Asc"]["c_oAscHAnchor"]=
|
|
window["Asc"].c_oAscHAnchor=c_oAscHAnchor;prot=c_oAscHAnchor;prot["Margin"]=prot.Margin;prot["Page"]=prot.Page;prot["Text"]=prot.Text;window["Asc"]["c_oAscXAlign"]=window["Asc"].c_oAscXAlign=c_oAscXAlign;prot=c_oAscXAlign;prot["Center"]=prot.Center;prot["Inside"]=prot.Inside;prot["Left"]=prot.Left;prot["Outside"]=prot.Outside;prot["Right"]=prot.Right;window["Asc"]["c_oAscYAlign"]=window["Asc"].c_oAscYAlign=c_oAscYAlign;prot=c_oAscYAlign;prot["Bottom"]=prot.Bottom;prot["Center"]=prot.Center;prot["Inline"]=
|
|
prot.Inline;prot["Inside"]=prot.Inside;prot["Outside"]=prot.Outside;prot["Top"]=prot.Top;window["Asc"]["c_oAscVAnchor"]=window["Asc"].c_oAscVAnchor=c_oAscVAnchor;prot=c_oAscVAnchor;prot["Margin"]=prot.Margin;prot["Page"]=prot.Page;prot["Text"]=prot.Text;window["Asc"]["c_oAscRelativeFromH"]=window["Asc"].c_oAscRelativeFromH=c_oAscRelativeFromH;prot=c_oAscRelativeFromH;prot["Character"]=prot.Character;prot["Column"]=prot.Column;prot["InsideMargin"]=prot.InsideMargin;prot["LeftMargin"]=prot.LeftMargin;
|
|
prot["Margin"]=prot.Margin;prot["OutsideMargin"]=prot.OutsideMargin;prot["Page"]=prot.Page;prot["RightMargin"]=prot.RightMargin;window["Asc"]["c_oAscRelativeFromV"]=window["Asc"].c_oAscRelativeFromV=c_oAscRelativeFromV;prot=c_oAscRelativeFromV;prot["BottomMargin"]=prot.BottomMargin;prot["InsideMargin"]=prot.InsideMargin;prot["Line"]=prot.Line;prot["Margin"]=prot.Margin;prot["OutsideMargin"]=prot.OutsideMargin;prot["Page"]=prot.Page;prot["Paragraph"]=prot.Paragraph;prot["TopMargin"]=prot.TopMargin;
|
|
window["Asc"]["c_oAscBorderStyles"]=window["AscCommon"].c_oAscBorderStyles=c_oAscBorderStyles;prot=c_oAscBorderStyles;prot["None"]=prot.None;prot["Double"]=prot.Double;prot["Hair"]=prot.Hair;prot["DashDotDot"]=prot.DashDotDot;prot["DashDot"]=prot.DashDot;prot["Dotted"]=prot.Dotted;prot["Dashed"]=prot.Dashed;prot["Thin"]=prot.Thin;prot["MediumDashDotDot"]=prot.MediumDashDotDot;prot["SlantDashDot"]=prot.SlantDashDot;prot["MediumDashDot"]=prot.MediumDashDot;prot["MediumDashed"]=prot.MediumDashed;prot["Medium"]=
|
|
prot.Medium;prot["Thick"]=prot.Thick;window["Asc"]["c_oAscPageOrientation"]=window["Asc"].c_oAscPageOrientation=c_oAscPageOrientation;prot=c_oAscPageOrientation;prot["PagePortrait"]=prot.PagePortrait;prot["PageLandscape"]=prot.PageLandscape;window["Asc"]["c_oAscColor"]=window["Asc"].c_oAscColor=c_oAscColor;prot=c_oAscColor;prot["COLOR_TYPE_NONE"]=prot.COLOR_TYPE_NONE;prot["COLOR_TYPE_SRGB"]=prot.COLOR_TYPE_SRGB;prot["COLOR_TYPE_PRST"]=prot.COLOR_TYPE_PRST;prot["COLOR_TYPE_SCHEME"]=prot.COLOR_TYPE_SCHEME;
|
|
prot["COLOR_TYPE_SYS"]=prot.COLOR_TYPE_SYS;prot["COLOR_TYPE_STYLE"]=prot.COLOR_TYPE_STYLE;window["Asc"]["c_oAscFill"]=window["Asc"].c_oAscFill=c_oAscFill;prot=c_oAscFill;prot["FILL_TYPE_NONE"]=prot.FILL_TYPE_NONE;prot["FILL_TYPE_BLIP"]=prot.FILL_TYPE_BLIP;prot["FILL_TYPE_NOFILL"]=prot.FILL_TYPE_NOFILL;prot["FILL_TYPE_SOLID"]=prot.FILL_TYPE_SOLID;prot["FILL_TYPE_GRAD"]=prot.FILL_TYPE_GRAD;prot["FILL_TYPE_PATT"]=prot.FILL_TYPE_PATT;prot["FILL_TYPE_GRP"]=prot.FILL_TYPE_GRP;window["Asc"]["c_oAscFillGradType"]=
|
|
window["Asc"].c_oAscFillGradType=c_oAscFillGradType;prot=c_oAscFillGradType;prot["GRAD_LINEAR"]=prot.GRAD_LINEAR;prot["GRAD_PATH"]=prot.GRAD_PATH;window["Asc"]["c_oAscFillBlipType"]=window["Asc"].c_oAscFillBlipType=c_oAscFillBlipType;prot=c_oAscFillBlipType;prot["STRETCH"]=prot.STRETCH;prot["TILE"]=prot.TILE;window["Asc"]["c_oAscStrokeType"]=window["Asc"].c_oAscStrokeType=c_oAscStrokeType;prot=c_oAscStrokeType;prot["STROKE_NONE"]=prot.STROKE_NONE;prot["STROKE_COLOR"]=prot.STROKE_COLOR;window["Asc"]["c_oAscVAlign"]=
|
|
window["Asc"].c_oAscVAlign=c_oAscVAlign;prot=c_oAscVAlign;prot["Bottom"]=prot.Bottom;prot["Center"]=prot.Center;prot["Dist"]=prot.Dist;prot["Just"]=prot.Just;prot["Top"]=prot.Top;window["Asc"]["c_oAscVertDrawingText"]=c_oAscVertDrawingText;prot=c_oAscVertDrawingText;prot["normal"]=prot.normal;prot["vert"]=prot.vert;prot["vert270"]=prot.vert270;window["Asc"]["c_oAscLineJoinType"]=c_oAscLineJoinType;prot=c_oAscLineJoinType;prot["Round"]=prot.Round;prot["Bevel"]=prot.Bevel;prot["Miter"]=prot.Miter;window["Asc"]["c_oAscLineCapType"]=
|
|
c_oAscLineCapType;prot=c_oAscLineCapType;prot["Flat"]=prot.Flat;prot["Round"]=prot.Round;prot["Square"]=prot.Square;window["Asc"]["c_oAscLineBeginType"]=c_oAscLineBeginType;prot=c_oAscLineBeginType;prot["None"]=prot.None;prot["Arrow"]=prot.Arrow;prot["Diamond"]=prot.Diamond;prot["Oval"]=prot.Oval;prot["Stealth"]=prot.Stealth;prot["Triangle"]=prot.Triangle;window["Asc"]["c_oAscLineBeginSize"]=c_oAscLineBeginSize;prot=c_oAscLineBeginSize;prot["small_small"]=prot.small_small;prot["small_mid"]=prot.small_mid;
|
|
prot["small_large"]=prot.small_large;prot["mid_small"]=prot.mid_small;prot["mid_mid"]=prot.mid_mid;prot["mid_large"]=prot.mid_large;prot["large_small"]=prot.large_small;prot["large_mid"]=prot.large_mid;prot["large_large"]=prot.large_large;window["Asc"]["c_oAscCellTextDirection"]=window["Asc"].c_oAscCellTextDirection=c_oAscCellTextDirection;prot=c_oAscCellTextDirection;prot["LRTB"]=prot.LRTB;prot["TBRL"]=prot.TBRL;prot["BTLR"]=prot.BTLR;window["Asc"]["c_oAscDocumentUnits"]=window["Asc"].c_oAscDocumentUnits=
|
|
c_oAscDocumentUnits;prot=c_oAscDocumentUnits;prot["Millimeter"]=prot.Millimeter;prot["Inch"]=prot.Inch;prot["Point"]=prot.Point;window["Asc"]["c_oAscMouseMoveDataTypes"]=window["Asc"].c_oAscMouseMoveDataTypes=c_oAscMouseMoveDataTypes;prot=c_oAscMouseMoveDataTypes;prot["Common"]=prot.Common;prot["Hyperlink"]=prot.Hyperlink;prot["LockedObject"]=prot.LockedObject;prot["Footnote"]=prot.Footnote;prot["Form"]=prot.Form;prot["Review"]=prot.Review;window["Asc"]["c_oAscMaxTooltipLength"]=window["Asc"].c_oAscMaxTooltipLength=
|
|
c_oAscMaxTooltipLength;window["Asc"]["c_oAscMaxCellOrCommentLength"]=window["Asc"].c_oAscMaxCellOrCommentLength=c_oAscMaxCellOrCommentLength;window["Asc"]["c_oAscMaxHeaderFooterLength"]=window["Asc"].c_oAscMaxHeaderFooterLength=c_oAscMaxHeaderFooterLength;window["Asc"]["c_oAscMaxFilterListLength"]=window["Asc"].c_oAscMaxFilterListLength=c_oAscMaxFilterListLength;window["Asc"]["c_oAscSelectionType"]=window["Asc"].c_oAscSelectionType=c_oAscSelectionType;prot=c_oAscSelectionType;prot["RangeCells"]=prot.RangeCells;
|
|
prot["RangeCol"]=prot.RangeCol;prot["RangeRow"]=prot.RangeRow;prot["RangeMax"]=prot.RangeMax;prot["RangeImage"]=prot.RangeImage;prot["RangeChart"]=prot.RangeChart;prot["RangeShape"]=prot.RangeShape;prot["RangeSlicer"]=prot.RangeSlicer;prot["RangeShapeText"]=prot.RangeShapeText;prot["RangeChartText"]=prot.RangeChartText;prot["RangeFrozen"]=prot.RangeFrozen;window["Asc"]["c_oAscInsertOptions"]=window["Asc"].c_oAscInsertOptions=c_oAscInsertOptions;prot=c_oAscInsertOptions;prot["InsertCellsAndShiftRight"]=
|
|
prot.InsertCellsAndShiftRight;prot["InsertCellsAndShiftDown"]=prot.InsertCellsAndShiftDown;prot["InsertColumns"]=prot.InsertColumns;prot["InsertRows"]=prot.InsertRows;prot["InsertTableRowAbove"]=prot.InsertTableRowAbove;prot["InsertTableRowBelow"]=prot.InsertTableRowBelow;prot["InsertTableColLeft"]=prot.InsertTableColLeft;prot["InsertTableColRight"]=prot.InsertTableColRight;window["Asc"]["c_oAscDeleteOptions"]=window["Asc"].c_oAscDeleteOptions=c_oAscDeleteOptions;prot=c_oAscDeleteOptions;prot["DeleteCellsAndShiftLeft"]=
|
|
prot.DeleteCellsAndShiftLeft;prot["DeleteCellsAndShiftTop"]=prot.DeleteCellsAndShiftTop;prot["DeleteColumns"]=prot.DeleteColumns;prot["DeleteRows"]=prot.DeleteRows;prot["DeleteTable"]=prot.DeleteTable;window["Asc"]["c_oAscPrintType"]=window["Asc"].c_oAscPrintType=c_oAscPrintType;prot=c_oAscPrintType;prot["ActiveSheets"]=prot.ActiveSheets;prot["EntireWorkbook"]=prot.EntireWorkbook;prot["Selection"]=prot.Selection;window["Asc"]["c_oDashType"]=window["Asc"].c_oDashType=c_oDashType;prot=c_oDashType;prot["dash"]=
|
|
prot.dash;prot["dashDot"]=prot.dashDot;prot["dot"]=prot.dot;prot["lgDash"]=prot.lgDash;prot["lgDashDot"]=prot.lgDashDot;prot["lgDashDotDot"]=prot.lgDashDotDot;prot["solid"]=prot.solid;prot["sysDash"]=prot.sysDash;prot["sysDashDot"]=prot.sysDashDot;prot["sysDashDotDot"]=prot.sysDashDotDot;prot["sysDot"]=prot.sysDot;window["Asc"]["c_oAscMathInterfaceType"]=window["Asc"].c_oAscMathInterfaceType=c_oAscMathInterfaceType;prot=c_oAscMathInterfaceType;prot["Common"]=prot.Common;prot["Fraction"]=prot.Fraction;
|
|
prot["Script"]=prot.Script;prot["Radical"]=prot.Radical;prot["LargeOperator"]=prot.LargeOperator;prot["Delimiter"]=prot.Delimiter;prot["Function"]=prot.Function;prot["Accent"]=prot.Accent;prot["BorderBox"]=prot.BorderBox;prot["Bar"]=prot.Bar;prot["Box"]=prot.Box;prot["Limit"]=prot.Limit;prot["GroupChar"]=prot.GroupChar;prot["Matrix"]=prot.Matrix;prot["EqArray"]=prot.EqArray;prot["Phantom"]=prot.Phantom;prot=window["Asc"]["c_oAscMathInterfaceBarPos"]=window["Asc"].c_oAscMathInterfaceBarPos=c_oAscMathInterfaceBarPos;
|
|
prot["Top"]=c_oAscMathInterfaceBarPos.Top;prot["Bottom"]=c_oAscMathInterfaceBarPos.Bottom;prot=window["Asc"]["c_oAscMathInterfaceScript"]=window["Asc"].c_oAscMathInterfaceScript=c_oAscMathInterfaceScript;prot["None"]=c_oAscMathInterfaceScript.None;prot["Sup"]=c_oAscMathInterfaceScript.Sup;prot["Sub"]=c_oAscMathInterfaceScript.Sub;prot["SubSup"]=c_oAscMathInterfaceScript.SubSup;prot["PreSubSup"]=c_oAscMathInterfaceScript.PreSubSup;prot=window["Asc"]["c_oAscMathInterfaceFraction"]=window["Asc"].c_oAscMathInterfaceFraction=
|
|
c_oAscMathInterfaceFraction;prot["None"]=c_oAscMathInterfaceFraction.Bar;prot["Skewed"]=c_oAscMathInterfaceFraction.Skewed;prot["Linear"]=c_oAscMathInterfaceFraction.Linear;prot["NoBar"]=c_oAscMathInterfaceFraction.NoBar;prot=window["Asc"]["c_oAscMathInterfaceLimitPos"]=window["Asc"].c_oAscMathInterfaceLimitPos=c_oAscMathInterfaceLimitPos;prot["None"]=c_oAscMathInterfaceLimitPos.None;prot["Top"]=c_oAscMathInterfaceLimitPos.Top;prot["Bottom"]=c_oAscMathInterfaceLimitPos.Bottom;prot=window["Asc"]["c_oAscMathInterfaceMatrixMatrixAlign"]=
|
|
window["Asc"].c_oAscMathInterfaceMatrixMatrixAlign=c_oAscMathInterfaceMatrixMatrixAlign;prot["Top"]=c_oAscMathInterfaceMatrixMatrixAlign.Top;prot["Center"]=c_oAscMathInterfaceMatrixMatrixAlign.Center;prot["Bottom"]=c_oAscMathInterfaceMatrixMatrixAlign.Bottom;prot=window["Asc"]["c_oAscMathInterfaceMatrixColumnAlign"]=window["Asc"].c_oAscMathInterfaceMatrixColumnAlign=c_oAscMathInterfaceMatrixColumnAlign;prot["Left"]=c_oAscMathInterfaceMatrixColumnAlign.Left;prot["Center"]=c_oAscMathInterfaceMatrixColumnAlign.Center;
|
|
prot["Right"]=c_oAscMathInterfaceMatrixColumnAlign.Right;prot=window["Asc"]["c_oAscMathInterfaceEqArrayAlign"]=window["Asc"].c_oAscMathInterfaceEqArrayAlign=c_oAscMathInterfaceEqArrayAlign;prot["Top"]=c_oAscMathInterfaceEqArrayAlign.Top;prot["Center"]=c_oAscMathInterfaceEqArrayAlign.Center;prot["Bottom"]=c_oAscMathInterfaceEqArrayAlign.Bottom;prot=window["Asc"]["c_oAscMathInterfaceNaryLimitLocation"]=window["Asc"].c_oAscMathInterfaceNaryLimitLocation=c_oAscMathInterfaceNaryLimitLocation;prot["UndOvr"]=
|
|
c_oAscMathInterfaceNaryLimitLocation.UndOvr;prot["SubSup"]=c_oAscMathInterfaceNaryLimitLocation.SubSup;prot=window["Asc"]["c_oAscMathInterfaceGroupCharPos"]=window["Asc"].c_oAscMathInterfaceGroupCharPos=c_oAscMathInterfaceGroupCharPos;prot["None"]=c_oAscMathInterfaceGroupCharPos.None;prot["Top"]=c_oAscMathInterfaceGroupCharPos.Top;prot["Bottom"]=c_oAscMathInterfaceGroupCharPos.Bottom;prot=window["Asc"]["c_oAscTabLeader"]=window["Asc"].c_oAscTabLeader=c_oAscTabLeader;prot["None"]=c_oAscTabLeader.None;
|
|
prot["Heavy"]=c_oAscTabLeader.Heavy;prot["Dot"]=c_oAscTabLeader.Dot;prot["Hyphen"]=c_oAscTabLeader.Hyphen;prot["MiddleDot"]=c_oAscTabLeader.MiddleDot;prot["Underscore"]=c_oAscTabLeader.Underscore;prot=window["Asc"]["c_oAscTabType"]=window["Asc"].c_oAscTabType=c_oAscTabType;prot["Bar"]=c_oAscTabType.Bar;prot["Center"]=c_oAscTabType.Center;prot["Clear"]=c_oAscTabType.Clear;prot["Decimal"]=c_oAscTabType.Decimal;prot["Num"]=c_oAscTabType.Num;prot["Right"]=c_oAscTabType.Right;prot["Left"]=c_oAscTabType.Left;
|
|
prot=window["Asc"]["c_oAscRestrictionType"]=window["Asc"].c_oAscRestrictionType=c_oAscRestrictionType;prot["None"]=c_oAscRestrictionType.None;prot["OnlyForms"]=c_oAscRestrictionType.OnlyForms;prot["OnlyComments"]=c_oAscRestrictionType.OnlyComments;prot["OnlySignatures"]=c_oAscRestrictionType.OnlySignatures;prot["View"]=c_oAscRestrictionType.View;prot=window["AscCommon"]["c_oAscCellAnchorType"]=window["AscCommon"].c_oAscCellAnchorType=c_oAscCellAnchorType;prot["cellanchorAbsolute"]=prot.cellanchorAbsolute;
|
|
prot["cellanchorOneCell"]=prot.cellanchorOneCell;prot["cellanchorTwoCell"]=prot.cellanchorTwoCell;window["AscCommon"]=window["AscCommon"]||{};window["AscCommon"].g_cCharDelimiter=g_cCharDelimiter;window["AscCommon"].g_cGeneralFormat=g_cGeneralFormat;window["AscCommon"].bDate1904=false;window["AscCommon"].c_oAscAdvancedOptionsAction=c_oAscAdvancedOptionsAction;window["AscCommon"].DownloadType=DownloadType;window["AscCommon"].CellValueType=CellValueType;window["AscCommon"].c_oAscChartDefines=c_oAscChartDefines;
|
|
window["AscCommon"].c_oAscStyleImage=c_oAscStyleImage;window["AscCommon"].c_oAscLineDrawingRule=c_oAscLineDrawingRule;window["AscCommon"].vertalign_Baseline=vertalign_Baseline;window["AscCommon"].vertalign_SuperScript=vertalign_SuperScript;window["AscCommon"].vertalign_SubScript=vertalign_SubScript;window["AscCommon"].hdrftr_Header=hdrftr_Header;window["AscCommon"].hdrftr_Footer=hdrftr_Footer;window["AscCommon"].vaKSize=vaKSize;window["AscCommon"].vaKSuper=vaKSuper;window["AscCommon"].vaKSub=vaKSub;
|
|
window["AscCommon"].c_oAscSizeRelFromH=c_oAscSizeRelFromH;window["AscCommon"].c_oAscSizeRelFromV=c_oAscSizeRelFromV;window["AscCommon"].c_oAscWrapStyle=c_oAscWrapStyle;window["AscCommon"].c_oAscBorderWidth=c_oAscBorderWidth;window["AscCommon"].c_oAscBorderType=c_oAscBorderType;window["AscCommon"].c_oAscLockTypes=c_oAscLockTypes;window["AscCommon"].c_oAscFormatPainterState=c_oAscFormatPainterState;window["AscCommon"].c_oAscSaveTypes=c_oAscSaveTypes;window["AscCommon"].c_oAscChartType=c_oAscChartType;
|
|
window["AscCommon"].c_oAscChartSubType=c_oAscChartSubType;window["AscCommon"].c_oAscCsvDelimiter=c_oAscCsvDelimiter;window["AscCommon"].c_oAscUrlType=c_oAscUrlType;window["AscCommon"].c_oAscPrintDefaultSettings=c_oAscPrintDefaultSettings;window["AscCommon"].c_oZoomType=c_oZoomType;window["AscCommon"].c_oNotifyType=c_oNotifyType;window["AscCommon"].c_oNotifyParentType=c_oNotifyParentType;window["AscCommon"].c_oAscEncodings=c_oAscEncodings;window["AscCommon"].c_oAscEncodingsMap=c_oAscEncodingsMap;window["AscCommon"].c_oAscCodePageNone=
|
|
c_oAscCodePageNone;window["AscCommon"].c_oAscCodePageUtf7=c_oAscCodePageUtf7;window["AscCommon"].c_oAscCodePageUtf8=c_oAscCodePageUtf8;window["AscCommon"].c_oAscCodePageUtf16=c_oAscCodePageUtf16;window["AscCommon"].c_oAscCodePageUtf16BE=c_oAscCodePageUtf16BE;window["AscCommon"].c_oAscCodePageUtf32=c_oAscCodePageUtf32;window["AscCommon"].c_oAscCodePageUtf32BE=c_oAscCodePageUtf32BE;window["AscCommon"].c_oAscMaxFormulaLength=c_oAscMaxFormulaLength;window["AscCommon"].c_oAscMaxFormulaReferenceLength=
|
|
c_oAscMaxFormulaReferenceLength;window["AscCommon"].c_oAscMaxTableColumnTextLength=c_oAscMaxTableColumnTextLength;window["AscCommon"].locktype_None=locktype_None;window["AscCommon"].locktype_Mine=locktype_Mine;window["AscCommon"].locktype_Other=locktype_Other;window["AscCommon"].locktype_Other2=locktype_Other2;window["AscCommon"].locktype_Other3=locktype_Other3;window["AscCommon"].changestype_None=changestype_None;window["AscCommon"].changestype_Paragraph_Content=changestype_Paragraph_Content;window["AscCommon"].changestype_Paragraph_Properties=
|
|
changestype_Paragraph_Properties;window["AscCommon"].changestype_Paragraph_AddText=changestype_Paragraph_AddText;window["AscCommon"].changestype_Paragraph_TextProperties=changestype_Paragraph_TextProperties;window["AscCommon"].changestype_Document_Content=changestype_Document_Content;window["AscCommon"].changestype_Document_Content_Add=changestype_Document_Content_Add;window["AscCommon"].changestype_Document_SectPr=changestype_Document_SectPr;window["AscCommon"].changestype_Document_Styles=changestype_Document_Styles;
|
|
window["AscCommon"].changestype_Table_Properties=changestype_Table_Properties;window["AscCommon"].changestype_Table_RemoveCells=changestype_Table_RemoveCells;window["AscCommon"].changestype_Image_Properties=changestype_Image_Properties;window["AscCommon"].changestype_ContentControl_Remove=changestype_ContentControl_Remove;window["AscCommon"].changestype_ContentControl_Properties=changestype_ContentControl_Properties;window["AscCommon"].changestype_ContentControl_Add=changestype_ContentControl_Add;
|
|
window["AscCommon"].changestype_HdrFtr=changestype_HdrFtr;window["AscCommon"].changestype_Remove=changestype_Remove;window["AscCommon"].changestype_Delete=changestype_Delete;window["AscCommon"].changestype_Drawing_Props=changestype_Drawing_Props;window["AscCommon"].changestype_ColorScheme=changestype_ColorScheme;window["AscCommon"].changestype_Text_Props=changestype_Text_Props;window["AscCommon"].changestype_RemoveSlide=changestype_RemoveSlide;window["AscCommon"].changestype_Theme=changestype_Theme;
|
|
window["AscCommon"].changestype_SlideSize=changestype_SlideSize;window["AscCommon"].changestype_SlideBg=changestype_SlideBg;window["AscCommon"].changestype_SlideTransition=changestype_SlideTransition;window["AscCommon"].changestype_MoveComment=changestype_MoveComment;window["AscCommon"].changestype_AddComment=changestype_AddComment;window["AscCommon"].changestype_Layout=changestype_Layout;window["AscCommon"].changestype_AddShape=changestype_AddShape;window["AscCommon"].changestype_AddShapes=changestype_AddShapes;
|
|
window["AscCommon"].changestype_PresDefaultLang=changestype_PresDefaultLang;window["AscCommon"].changestype_SlideHide=changestype_SlideHide;window["AscCommon"].changestype_CorePr=changestype_CorePr;window["AscCommon"].changestype_Document_Settings=changestype_Document_Settings;window["AscCommon"].changestype_2_InlineObjectMove=changestype_2_InlineObjectMove;window["AscCommon"].changestype_2_HdrFtr=changestype_2_HdrFtr;window["AscCommon"].changestype_2_Comment=changestype_2_Comment;window["AscCommon"].changestype_2_Element_and_Type=
|
|
changestype_2_Element_and_Type;window["AscCommon"].changestype_2_ElementsArray_and_Type=changestype_2_ElementsArray_and_Type;window["AscCommon"].changestype_2_AdditionalTypes=changestype_2_AdditionalTypes;window["AscCommon"].changestype_2_Element_and_Type_Array=changestype_2_Element_and_Type_Array;window["AscCommon"].contentchanges_Add=contentchanges_Add;window["AscCommon"].contentchanges_Remove=contentchanges_Remove;window["AscCommon"].PUNCTUATION_FLAG_BASE=PUNCTUATION_FLAG_BASE;window["AscCommon"].PUNCTUATION_FLAG_CANT_BE_AT_BEGIN=
|
|
PUNCTUATION_FLAG_CANT_BE_AT_BEGIN;window["AscCommon"].PUNCTUATION_FLAG_CANT_BE_AT_END=PUNCTUATION_FLAG_CANT_BE_AT_END;window["AscCommon"].PUNCTUATION_FLAG_EAST_ASIAN=PUNCTUATION_FLAG_EAST_ASIAN;window["AscCommon"].PUNCTUATION_FLAG_CANT_BE_AT_BEGIN_E=PUNCTUATION_FLAG_CANT_BE_AT_BEGIN_E;window["AscCommon"].PUNCTUATION_FLAG_CANT_BE_AT_END_E=PUNCTUATION_FLAG_CANT_BE_AT_END_E;window["AscCommon"].g_aPunctuation=g_aPunctuation;window["AscCommon"].offlineMode=offlineMode;window["AscCommon"].chartMode=chartMode;
|
|
window["AscCommon"]["align_Right"]=window["AscCommon"].align_Right=align_Right;window["AscCommon"]["align_Left"]=window["AscCommon"].align_Left=align_Left;window["AscCommon"]["align_Center"]=window["AscCommon"].align_Center=align_Center;window["AscCommon"]["align_Justify"]=window["AscCommon"].align_Justify=align_Justify;window["AscCommon"]["align_Distributed"]=window["AscCommon"].align_Distributed=align_Distributed;window["AscCommon"]["c_oAscFormatPainterState"]=c_oAscFormatPainterState;c_oAscFormatPainterState["kOff"]=
|
|
c_oAscFormatPainterState.kOff;c_oAscFormatPainterState["kOn"]=c_oAscFormatPainterState.kOn;c_oAscFormatPainterState["kMultiple"]=c_oAscFormatPainterState.kMultiple;window["Asc"]["c_oSpecialPasteProps"]=window["Asc"].c_oSpecialPasteProps=c_oSpecialPasteProps;prot=c_oSpecialPasteProps;prot["paste"]=prot.paste;prot["pasteOnlyFormula"]=prot.pasteOnlyFormula;prot["formulaNumberFormat"]=prot.formulaNumberFormat;prot["formulaAllFormatting"]=prot.formulaAllFormatting;prot["formulaWithoutBorders"]=prot.formulaWithoutBorders;
|
|
prot["formulaColumnWidth"]=prot.formulaColumnWidth;prot["mergeConditionalFormating"]=prot.mergeConditionalFormating;prot["pasteOnlyValues"]=prot.pasteOnlyValues;prot["valueNumberFormat"]=prot.valueNumberFormat;prot["valueAllFormating"]=prot.valueAllFormating;prot["pasteOnlyFormating"]=prot.pasteOnlyFormating;prot["transpose"]=prot.transpose;prot["link"]=prot.link;prot["picture"]=prot.picture;prot["linkedPicture"]=prot.linkedPicture;prot["sourceformatting"]=prot.sourceformatting;prot["destinationFormatting"]=
|
|
prot.destinationFormatting;prot["mergeFormatting"]=prot.mergeFormatting;prot["uniteList"]=prot.uniteList;prot["doNotUniteList"]=prot.doNotUniteList;prot["keepTextOnly"]=prot.keepTextOnly;prot["insertAsNestedTable"]=prot.insertAsNestedTable;prot["overwriteCells"]=prot.overwriteCells;prot["useTextImport"]=prot.useTextImport;prot["comments"]=prot.comments;prot["columnWidth"]=prot.columnWidth;window["Asc"]["c_oSpecialPasteOperation"]=window["Asc"].c_oSpecialPasteOperation=c_oSpecialPasteOperation;prot=
|
|
c_oSpecialPasteOperation;prot["none"]=prot.none;prot["add"]=prot.add;prot["subtract"]=prot.subtract;prot["multiply"]=prot.multiply;prot["divide"]=prot.divide;window["Asc"]["c_oAscNumberingFormat"]=window["Asc"].c_oAscNumberingFormat=c_oAscNumberingFormat;prot=c_oAscNumberingFormat;prot["None"]=prot.None;prot["Bullet"]=prot.Bullet;prot["Decimal"]=prot.Decimal;prot["LowerRoman"]=prot.LowerRoman;prot["UpperRoman"]=prot.UpperRoman;prot["LowerLetter"]=prot.LowerLetter;prot["UpperLetter"]=prot.UpperLetter;
|
|
prot["DecimalZero"]=prot.DecimalZero;prot["DecimalEnclosedCircle"]=prot.DecimalEnclosedCircle;prot["RussianLower"]=prot.RussianLower;prot["RussianUpper"]=prot.RussianUpper;prot["ChineseCounting"]=prot.ChineseCounting;prot["ChineseCountingThousand"]=prot.ChineseCountingThousand;prot["ChineseLegalSimplified"]=prot.ChineseLegalSimplified;window["Asc"]["c_oAscNumberingSuff"]=window["Asc"].c_oAscNumberingSuff=c_oAscNumberingSuff;prot=c_oAscNumberingSuff;prot["Tab"]=c_oAscNumberingSuff.Tab;prot["Space"]=
|
|
c_oAscNumberingSuff.Space;prot["None"]=c_oAscNumberingSuff.None;window["Asc"]["c_oAscNumberingLvlTextType"]=window["Asc"].c_oAscNumberingLvlTextType=c_oAscNumberingLvlTextType;prot=c_oAscNumberingLvlTextType;prot["Text"]=c_oAscNumberingLvlTextType.Text;prot["Num"]=c_oAscNumberingLvlTextType.Num;prot=window["Asc"]["c_oAscSdtAppearance"]=window["Asc"].c_oAscSdtAppearance=c_oAscSdtAppearance;prot["Frame"]=c_oAscSdtAppearance.Frame;prot["Hidden"]=c_oAscSdtAppearance.Hidden;prot=window["Asc"]["c_oAscObjectsAlignType"]=
|
|
window["Asc"].c_oAscObjectsAlignType=c_oAscObjectsAlignType;prot["Selected"]=c_oAscObjectsAlignType.Selected;prot["Slide"]=c_oAscObjectsAlignType.Slide;prot["Page"]=c_oAscObjectsAlignType.Page;prot["Margin"]=c_oAscObjectsAlignType.Margin;prot=window["Asc"]["c_oAscItemType"]=window["Asc"].c_oAscItemType=c_oAscItemType;prot["Data"]=prot.Data;prot["Default"]=prot.Default;prot["Sum"]=prot.Sum;prot["CountA"]=prot.CountA;prot["Avg"]=prot.Avg;prot["Max"]=prot.Max;prot["Min"]=prot.Min;prot["Product"]=prot.Product;
|
|
prot["Count"]=prot.Count;prot["StdDev"]=prot.StdDev;prot["StdDevP"]=prot.StdDevP;prot["Var"]=prot.Var;prot["VarP"]=prot.VarP;prot["Grand"]=prot.Grand;prot["Blank"]=prot.Blank;prot=window["Asc"]["c_oAscRevisionsMove"]=window["Asc"].c_oAscRevisionsMove=c_oAscRevisionsMove;prot["NoMove"]=c_oAscRevisionsMove.NoMove;prot["MoveTo"]=c_oAscRevisionsMove.MoveTo;prot["MoveFrom"]=c_oAscRevisionsMove.MoveFrom;prot=window["Asc"]["c_oAscRevisionsChangeType"]=window["Asc"].c_oAscRevisionsChangeType=c_oAscRevisionsChangeType;
|
|
prot["Unknown"]=c_oAscRevisionsChangeType.Unknown;prot["TextAdd"]=c_oAscRevisionsChangeType.TextAdd;prot["TextRem"]=c_oAscRevisionsChangeType.TextRem;prot["ParaAdd"]=c_oAscRevisionsChangeType.ParaAdd;prot["ParaRem"]=c_oAscRevisionsChangeType.ParaRem;prot["TextPr"]=c_oAscRevisionsChangeType.TextPr;prot["ParaPr"]=c_oAscRevisionsChangeType.ParaPr;prot["TablePr"]=c_oAscRevisionsChangeType.TablePr;prot["RowsAdd"]=c_oAscRevisionsChangeType.RowsAdd;prot["RowsRem"]=c_oAscRevisionsChangeType.RowsRem;prot["MoveMark"]=
|
|
c_oAscRevisionsChangeType.MoveMark;prot=window["Asc"]["c_oAscSectionBreakType"]=window["Asc"].c_oAscSectionBreakType=c_oAscSectionBreakType;prot["NextPage"]=c_oAscSectionBreakType.NextPage;prot["OddPage"]=c_oAscSectionBreakType.OddPage;prot["EvenPage"]=c_oAscSectionBreakType.EvenPage;prot["Continuous"]=c_oAscSectionBreakType.Continuous;prot["Column"]=c_oAscSectionBreakType.Column;prot=window["Asc"]["c_oAscSdtLockType"]=window["Asc"].c_oAscSdtLockType=c_oAscSdtLockType;prot["ContentLocked"]=c_oAscSdtLockType.ContentLocked;
|
|
prot["SdtContentLocked"]=c_oAscSdtLockType.SdtContentLocked;prot["SdtLocked"]=c_oAscSdtLockType.SdtLocked;prot["Unlocked"]=c_oAscSdtLockType.Unlocked;prot=window["Asc"]["c_oAscAlignH"]=window["Asc"].c_oAscAlignH=c_oAscAlignH;prot["Center"]=c_oAscAlignH.Center;prot["Inside"]=c_oAscAlignH.Inside;prot["Left"]=c_oAscAlignH.Left;prot["Outside"]=c_oAscAlignH.Outside;prot["Right"]=c_oAscAlignH.Right;prot=window["Asc"]["c_oAscAlignV"]=window["Asc"].c_oAscAlignV=c_oAscAlignV;prot["Bottom"]=c_oAscAlignV.Bottom;
|
|
prot["Center"]=c_oAscAlignV.Center;prot["Inside"]=c_oAscAlignV.Inside;prot["Outside"]=c_oAscAlignV.Outside;prot["Top"]=c_oAscAlignV.Top;prot=window["Asc"]["c_oAscWatermarkType"]=window["Asc"].c_oAscWatermarkType=c_oAscWatermarkType;prot["None"]=prot.None;prot["Text"]=prot.Text;prot["Image"]=prot.Image;prot=window["Asc"]["c_oAscCalendarType"]=window["Asc"].c_oAscCalendarType=c_oAscCalendarType;prot["Gregorian"]=c_oAscCalendarType.Gregorian;prot["GregorianArabic"]=c_oAscCalendarType.GregorianArabic;
|
|
prot["GregorianMeFrench"]=c_oAscCalendarType.GregorianMeFrench;prot["GregorianUs"]=c_oAscCalendarType.GregorianUs;prot["GregorianXlitEnglish"]=c_oAscCalendarType.GregorianXlitEnglish;prot["GregorianXlitFrench"]=c_oAscCalendarType.GregorianXlitFrench;prot["Hebrew"]=c_oAscCalendarType.Hebrew;prot["Hijri"]=c_oAscCalendarType.Hijri;prot["Japan"]=c_oAscCalendarType.Japan;prot["Korea"]=c_oAscCalendarType.Korea;prot["None"]=c_oAscCalendarType.None;prot["Saka"]=c_oAscCalendarType.Saka;prot["Taiwan"]=c_oAscCalendarType.Taiwan;
|
|
prot["Thai"]=c_oAscCalendarType.Thai;prot=window["Asc"]["c_oAscContentControlSpecificType"]=window["Asc"].c_oAscContentControlSpecificType=c_oAscContentControlSpecificType;prot["None"]=c_oAscContentControlSpecificType.None;prot["CheckBox"]=c_oAscContentControlSpecificType.CheckBox;prot["Picture"]=c_oAscContentControlSpecificType.Picture;prot["ComboBox"]=c_oAscContentControlSpecificType.ComboBox;prot["DropDownList"]=c_oAscContentControlSpecificType.DropDownList;prot["DateTime"]=c_oAscContentControlSpecificType.DateTime;
|
|
prot["TOC"]=c_oAscContentControlSpecificType.TOC;window["Asc"]["c_oAscDefNameType"]=window["Asc"].c_oAscDefNameType=c_oAscDefNameType;prot=c_oAscDefNameType;prot["table"]=prot.table;prot["slicer"]=prot.slicer;window["Asc"]["c_oAscChangeTextCaseType"]=window["Asc"].c_oAscChangeTextCaseType=c_oAscChangeTextCaseType;prot=c_oAscChangeTextCaseType;prot["SentenceCase"]=prot.SentenceCase;prot["LowerCase"]=prot.LowerCase;prot["UpperCase"]=prot.UpperCase;prot["CapitalizeWords"]=prot.CapitalizeWords;prot["ToggleCase"]=
|
|
prot.ToggleCase;window["AscCommon"].document_compatibility_mode_Word11=document_compatibility_mode_Word11;window["AscCommon"].document_compatibility_mode_Word12=document_compatibility_mode_Word12;window["AscCommon"].document_compatibility_mode_Word14=document_compatibility_mode_Word14;window["AscCommon"].document_compatibility_mode_Word15=document_compatibility_mode_Word15;window["AscCommon"].document_compatibility_mode_Current=document_compatibility_mode_Current;prot=window["AscCommon"]["c_oAscCustomShortcutType"]=
|
|
window["AscCommon"].c_oAscCustomShortcutType=c_oAscCustomShortcutType;prot["Symbol"]=c_oAscCustomShortcutType.Symbol;prot=window["Asc"]["c_oAscLineNumberRestartType"]=window["Asc"].c_oAscLineNumberRestartType=c_oAscLineNumberRestartType;prot["Continuous"]=c_oAscLineNumberRestartType.Continuous;prot["NewPage"]=c_oAscLineNumberRestartType.NewPage;prot["NewSection"]=c_oAscLineNumberRestartType.NewSection;prot=window["Asc"]["c_oAscSectionApplyType"]=window["Asc"].c_oAscSectionApplyType=c_oAscSectionApplyType;
|
|
prot["Current"]=c_oAscSectionApplyType.Current;prot["ToEnd"]=c_oAscSectionApplyType.ToEnd;prot["All"]=c_oAscSectionApplyType.All;prot=window["Asc"]["c_oAscSlideSZType"]=window["Asc"].c_oAscSlideSZType=c_oAscSlideSZType;prot["Sz35mm"]=prot.Sz35mm;prot["SzA3"]=prot.SzA3;prot["SzA4"]=prot.SzA4;prot["SzB4ISO"]=prot.SzB4ISO;prot["SzB4JIS"]=prot.SzB4JIS;prot["SzB5ISO"]=prot.SzB5ISO;prot["SzB5JIS"]=prot.SzB5JIS;prot["SzBanner"]=prot.SzBanner;prot["SzCustom"]=prot.SzCustom;prot["SzHagakiCard"]=prot.SzHagakiCard;
|
|
prot["SzLedger"]=prot.SzLedger;prot["SzLetter"]=prot.SzLetter;prot["SzOverhead"]=prot.SzOverhead;prot["SzScreen16x10"]=prot.SzScreen16x10;prot["SzScreen16x9"]=prot.SzScreen16x9;prot["SzScreen4x3"]=prot.SzScreen4x3;prot["SzWidescreen"]=prot.SzWidescreen;prot=window["Asc"]["c_oAscPictureFormScaleFlag"]=window["Asc"].c_oAscPictureFormScaleFlag=c_oAscPictureFormScaleFlag;prot["Always"]=prot.Always;prot["Bigger"]=prot.Bigger;prot["Smaller"]=prot.Smaller;prot["Never"]=prot.Never;prot=window["Asc"]["c_oAscDisplayModeInReview"]=
|
|
window["Asc"].c_oAscDisplayModeInReview=c_oAscDisplayModeInReview;prot["Edit"]=prot.Edit;prot["Final"]=prot.Final;prot["Original"]=prot.Original;prot["Simple"]=prot.Simple})(window);"use strict";
|
|
(function(window,undefined){function asc_CUser(val){this.id=null;this.idOriginal=null;this.userName=null;this.state=undefined;this.indexUser=-1;this.color=null;this.view=false;this._setUser(val);return this}asc_CUser.prototype.isEqual=function(obj){return this.id===obj.id&&this.idOriginal===obj.idOriginal&&this.userName===obj.userName&&this.state===obj.state&&this.indexUser===obj.indexUser&&this.color===obj.color&&this.view===obj.view};asc_CUser.prototype._setUser=function(val){if(val){this.id=val["id"];
|
|
this.idOriginal=val["idOriginal"];this.userName=val["username"];this.indexUser=val["indexUser"];this.color=window["AscCommon"].getUserColorById(this.idOriginal,this.userName,false,true);this.view=val["view"]}};asc_CUser.prototype.asc_getId=function(){return this.id};asc_CUser.prototype.asc_getIdOriginal=function(){return this.idOriginal};asc_CUser.prototype.asc_getUserName=function(){return this.userName};asc_CUser.prototype.asc_getFirstName=function(){return this.firstName};asc_CUser.prototype.asc_getLastName=
|
|
function(){return this.lastName};asc_CUser.prototype.asc_getState=function(){return this.state};asc_CUser.prototype.asc_getColor=function(){return"#"+("000000"+this.color.toString(16)).substr(-6)};asc_CUser.prototype.asc_getView=function(){return this.view};asc_CUser.prototype.setId=function(val){this.id=val};asc_CUser.prototype.setUserName=function(val){this.userName=val};asc_CUser.prototype.setFirstName=function(val){this.firstName=val};asc_CUser.prototype.setLastName=function(val){this.lastName=
|
|
val};asc_CUser.prototype.setState=function(val){this.state=val};var ConnectionState={Reconnect:-1,None:0,WaitAuth:1,Authorized:2,ClosedCoAuth:3,ClosedAll:4,SaveChanges:10,AskSaveChanges:11};var c_oEditorId={Word:0,Spreadsheet:1,Presentation:2};var c_oCloseCode={serverShutdown:4001,sessionIdle:4002,sessionAbsolute:4003,accessDeny:4004,jwtExpired:4005,jwtError:4006,drop:4007,updateVersion:4008};var c_oAscServerCommandErrors={NoError:0,DocumentIdError:1,ParseError:2,UnknownError:3,NotModified:4,UnknownCommand:5,
|
|
Token:6,TokenExpire:7};var c_oAscForceSaveTypes={Command:0,Button:1,Timeout:2,Form:3};function getDisconnectErrorCode(isDocumentLoadComplete,opt_closeCode){var code=Asc.c_oAscError.ID.CoAuthoringDisconnect;if(c_oCloseCode.serverShutdown===opt_closeCode)code=Asc.c_oAscError.ID.CoAuthoringDisconnect;else if(c_oCloseCode.sessionIdle===opt_closeCode)code=Asc.c_oAscError.ID.SessionIdle;else if(c_oCloseCode.sessionAbsolute===opt_closeCode)code=Asc.c_oAscError.ID.SessionAbsolute;else if(c_oCloseCode.accessDeny===
|
|
opt_closeCode)code=Asc.c_oAscError.ID.AccessDeny;else if(c_oCloseCode.jwtExpired===opt_closeCode)code=isDocumentLoadComplete?Asc.c_oAscError.ID.SessionToken:Asc.c_oAscError.ID.KeyExpire;else if(c_oCloseCode.jwtError===opt_closeCode)code=Asc.c_oAscError.ID.VKeyEncrypt;else if(c_oCloseCode.drop===opt_closeCode)code=Asc.c_oAscError.ID.UserDrop;else if(c_oCloseCode.updateVersion===opt_closeCode)code=Asc.c_oAscError.ID.UpdateVersion;return code}function getEnableDownloadByErrorCode(code){return Asc.c_oAscError.ID.UpdateVersion===
|
|
code||Asc.c_oAscError.ID.SessionIdle===code||Asc.c_oAscError.ID.SessionAbsolute===code}var prot;window["AscCommon"]=window["AscCommon"]||{};window["AscCommon"].asc_CUser=asc_CUser;prot=asc_CUser.prototype;prot["asc_getId"]=prot.asc_getId;prot["asc_getIdOriginal"]=prot.asc_getIdOriginal;prot["asc_getUserName"]=prot.asc_getUserName;prot["asc_getState"]=prot.asc_getState;prot["asc_getColor"]=prot.asc_getColor;prot["asc_getView"]=prot.asc_getView;window["AscCommon"].getDisconnectErrorCode=getDisconnectErrorCode;
|
|
window["AscCommon"].getEnableDownloadByErrorCode=getEnableDownloadByErrorCode;window["AscCommon"].ConnectionState=ConnectionState;window["AscCommon"].c_oEditorId=c_oEditorId;window["AscCommon"].c_oCloseCode=c_oCloseCode;window["AscCommon"].c_oAscServerCommandErrors=c_oAscServerCommandErrors;window["AscCommon"].c_oAscForceSaveTypes=c_oAscForceSaveTypes})(window);"use strict";
|
|
(function(window,undefined){var Asc=window["Asc"];var AscCommon=window["AscCommon"];var ConnectionState=AscCommon.ConnectionState;var c_oEditorId=AscCommon.c_oEditorId;var c_oCloseCode=AscCommon.c_oCloseCode;var c_oAscServerCommandErrors=AscCommon.c_oAscServerCommandErrors;var c_oAscForceSaveTypes=AscCommon.c_oAscForceSaveTypes;function CDocsCoApi(options){this._CoAuthoringApi=new DocsCoApi;this._onlineWork=false;if(options){this.onAuthParticipantsChanged=options.onAuthParticipantsChanged;this.onParticipantsChanged=
|
|
options.onParticipantsChanged;this.onMessage=options.onMessage;this.onServerVersion=options.onServerVersion;this.onCursor=options.onCursor;this.onMeta=options.onMeta;this.onSession=options.onSession;this.onExpiredToken=options.onExpiredToken;this.onForceSave=options.onForceSave;this.onHasForgotten=options.onHasForgotten;this.onLocksAcquired=options.onLocksAcquired;this.onLocksReleased=options.onLocksReleased;this.onLocksReleasedEnd=options.onLocksReleasedEnd;this.onDisconnect=options.onDisconnect;
|
|
this.onWarning=options.onWarning;this.onFirstLoadChangesEnd=options.onFirstLoadChangesEnd;this.onConnectionStateChanged=options.onConnectionStateChanged;this.onSetIndexUser=options.onSetIndexUser;this.onSpellCheckInit=options.onSpellCheckInit;this.onSaveChanges=options.onSaveChanges;this.onStartCoAuthoring=options.onStartCoAuthoring;this.onEndCoAuthoring=options.onEndCoAuthoring;this.onUnSaveLock=options.onUnSaveLock;this.onRecalcLocks=options.onRecalcLocks;this.onDocumentOpen=options.onDocumentOpen;
|
|
this.onFirstConnect=options.onFirstConnect;this.onLicense=options.onLicense;this.onLicenseChanged=options.onLicenseChanged}}CDocsCoApi.prototype.init=function(user,docid,documentCallbackUrl,token,editorType,documentFormatSave,docInfo){if(this._CoAuthoringApi&&this._CoAuthoringApi.isRightURL()){var t=this;this._CoAuthoringApi.onAuthParticipantsChanged=function(e,id){t.callback_OnAuthParticipantsChanged(e,id)};this._CoAuthoringApi.onParticipantsChanged=function(e){t.callback_OnParticipantsChanged(e)};
|
|
this._CoAuthoringApi.onMessage=function(e,clear){t.callback_OnMessage(e,clear)};this._CoAuthoringApi.onServerVersion=function(e){t.callback_OnServerVersion(e)};this._CoAuthoringApi.onCursor=function(e){t.callback_OnCursor(e)};this._CoAuthoringApi.onMeta=function(e){t.callback_OnMeta(e)};this._CoAuthoringApi.onSession=function(e){t.callback_OnSession(e)};this._CoAuthoringApi.onExpiredToken=function(e){t.callback_OnExpiredToken(e)};this._CoAuthoringApi.onHasForgotten=function(e){t.callback_OnHasForgotten(e)};
|
|
this._CoAuthoringApi.onForceSave=function(e){t.callback_OnForceSave(e)};this._CoAuthoringApi.onLocksAcquired=function(e){t.callback_OnLocksAcquired(e)};this._CoAuthoringApi.onLocksReleased=function(e,bChanges){t.callback_OnLocksReleased(e,bChanges)};this._CoAuthoringApi.onLocksReleasedEnd=function(){t.callback_OnLocksReleasedEnd()};this._CoAuthoringApi.onDisconnect=function(e,code){t.callback_OnDisconnect(e,code)};this._CoAuthoringApi.onWarning=function(e){t.callback_OnWarning(e)};this._CoAuthoringApi.onFirstLoadChangesEnd=
|
|
function(){t.callback_OnFirstLoadChangesEnd()};this._CoAuthoringApi.onConnectionStateChanged=function(e){t.callback_OnConnectionStateChanged(e)};this._CoAuthoringApi.onSetIndexUser=function(e){t.callback_OnSetIndexUser(e)};this._CoAuthoringApi.onSpellCheckInit=function(e){t.callback_OnSpellCheckInit(e)};this._CoAuthoringApi.onSaveChanges=function(e,userId,bFirstLoad){t.callback_OnSaveChanges(e,userId,bFirstLoad)};this._CoAuthoringApi.onStartCoAuthoring=function(e,isWaitAuth){t.callback_OnStartCoAuthoring(e,
|
|
isWaitAuth)};this._CoAuthoringApi.onEndCoAuthoring=function(e){t.callback_OnEndCoAuthoring(e)};this._CoAuthoringApi.onUnSaveLock=function(){t.callback_OnUnSaveLock()};this._CoAuthoringApi.onRecalcLocks=function(e){t.callback_OnRecalcLocks(e)};this._CoAuthoringApi.onDocumentOpen=function(data){t.callback_OnDocumentOpen(data)};this._CoAuthoringApi.onFirstConnect=function(){t.callback_OnFirstConnect()};this._CoAuthoringApi.onLicense=function(res){t.callback_OnLicense(res)};this._CoAuthoringApi.onLicenseChanged=
|
|
function(res){t.callback_OnLicenseChanged(res)};this._CoAuthoringApi.init(user,docid,documentCallbackUrl,token,editorType,documentFormatSave,docInfo);this._onlineWork=true}else{this.onFirstConnect();this.onLicense(null)}};CDocsCoApi.prototype.getDocId=function(){if(this._CoAuthoringApi)return this._CoAuthoringApi.getDocId();return undefined};CDocsCoApi.prototype.setDocId=function(docId){if(this._CoAuthoringApi)return this._CoAuthoringApi.setDocId(docId)};CDocsCoApi.prototype.auth=function(isViewer,
|
|
opt_openCmd,opt_isIdle){if(this._CoAuthoringApi&&this._onlineWork)this._CoAuthoringApi.auth(isViewer,opt_openCmd,opt_isIdle);else{this.callback_OnSpellCheckInit("");this.callback_OnSetIndexUser("123");this.onFirstLoadChangesEnd()}};CDocsCoApi.prototype.set_url=function(url){if(this._CoAuthoringApi)this._CoAuthoringApi.set_url(url)};CDocsCoApi.prototype.get_onlineWork=function(){return this._onlineWork};CDocsCoApi.prototype.get_state=function(){if(this._CoAuthoringApi)return this._CoAuthoringApi.get_state();
|
|
return 0};CDocsCoApi.prototype.openDocument=function(data){if(this._CoAuthoringApi&&this._onlineWork)this._CoAuthoringApi.openDocument(data)};CDocsCoApi.prototype.sendRawData=function(data){if(this._CoAuthoringApi&&this._onlineWork)this._CoAuthoringApi.sendRawData(data)};CDocsCoApi.prototype.getMessages=function(){if(this._CoAuthoringApi&&this._onlineWork)this._CoAuthoringApi.getMessages()};CDocsCoApi.prototype.sendMessage=function(message){if(this._CoAuthoringApi&&this._onlineWork)this._CoAuthoringApi.sendMessage(message)};
|
|
CDocsCoApi.prototype.sendCursor=function(cursor){if(this._CoAuthoringApi&&this._onlineWork)this._CoAuthoringApi.sendCursor(cursor)};CDocsCoApi.prototype.sendChangesError=function(data){if(this._CoAuthoringApi&&this._onlineWork)this._CoAuthoringApi.sendChangesError(data)};CDocsCoApi.prototype.askLock=function(arrayBlockId,callback){if(this._CoAuthoringApi&&this._onlineWork)this._CoAuthoringApi.askLock(arrayBlockId,callback);else{var t=this;window.setTimeout(function(){if(callback){var lengthArray=
|
|
arrayBlockId?arrayBlockId.length:0;if(0<lengthArray){callback({"lock":arrayBlockId[0]});for(var i=0;i<lengthArray;++i)t.callback_OnLocksAcquired({"state":2,"block":arrayBlockId[i]})}}},1)}};CDocsCoApi.prototype.askSaveChanges=function(callback){if(this._CoAuthoringApi&&this._onlineWork)this._CoAuthoringApi.askSaveChanges(callback);else window.setTimeout(function(){if(callback)callback({"saveLock":false})},100)};CDocsCoApi.prototype.unSaveLock=function(){if(this._CoAuthoringApi&&this._onlineWork)this._CoAuthoringApi.unSaveLock();
|
|
else{var t=this;window.setTimeout(function(){t.callback_OnUnSaveLock()},100)}};CDocsCoApi.prototype.saveChanges=function(arrayChanges,deleteIndex,excelAdditionalInfo,canUnlockDocument,canReleaseLocks){if(this._CoAuthoringApi&&this._onlineWork){this._CoAuthoringApi.canUnlockDocument=canUnlockDocument;this._CoAuthoringApi.canReleaseLocks=canReleaseLocks;this._CoAuthoringApi.saveChanges(arrayChanges,null,deleteIndex,excelAdditionalInfo)}};CDocsCoApi.prototype.unLockDocument=function(isSave,canUnlockDocument,
|
|
deleteIndex,canReleaseLocks){if(this._CoAuthoringApi&&this._onlineWork){this._CoAuthoringApi.canUnlockDocument=canUnlockDocument;this._CoAuthoringApi.canReleaseLocks=canReleaseLocks;this._CoAuthoringApi.unLockDocument(isSave,deleteIndex)}};CDocsCoApi.prototype.getUsers=function(){if(this._CoAuthoringApi&&this._onlineWork)this._CoAuthoringApi.getUsers()};CDocsCoApi.prototype.getUserConnectionId=function(){if(this._CoAuthoringApi&&this._onlineWork)return this._CoAuthoringApi.getUserConnectionId();return null};
|
|
CDocsCoApi.prototype.get_indexUser=function(){if(this._CoAuthoringApi&&this._onlineWork)return this._CoAuthoringApi.get_indexUser();return null};CDocsCoApi.prototype.get_isAuth=function(){if(this._CoAuthoringApi&&this._onlineWork)return this._CoAuthoringApi.get_isAuth();return null};CDocsCoApi.prototype.get_jwt=function(){if(this._CoAuthoringApi&&this._onlineWork)return this._CoAuthoringApi.get_jwt();return null};CDocsCoApi.prototype.releaseLocks=function(blockId){if(this._CoAuthoringApi&&this._onlineWork)this._CoAuthoringApi.releaseLocks(blockId)};
|
|
CDocsCoApi.prototype.disconnect=function(opt_code,opt_reason){if(this._CoAuthoringApi&&this._onlineWork)this._CoAuthoringApi.disconnect(opt_code,opt_reason)};CDocsCoApi.prototype.extendSession=function(idleTime){if(this._CoAuthoringApi&&this._onlineWork)this._CoAuthoringApi.extendSession(idleTime)};CDocsCoApi.prototype.versionHistory=function(data){if(this._CoAuthoringApi&&this._onlineWork)this._CoAuthoringApi.versionHistory(data)};CDocsCoApi.prototype.forceSave=function(){if(this._CoAuthoringApi&&
|
|
this._onlineWork)return this._CoAuthoringApi.forceSave();return false};CDocsCoApi.prototype.callPRC=function(data,timeout,callback){if(this._CoAuthoringApi&&this._onlineWork)return this._CoAuthoringApi.callPRC(data,timeout,callback);return false};CDocsCoApi.prototype.callback_OnAuthParticipantsChanged=function(e,id){if(this.onAuthParticipantsChanged)this.onAuthParticipantsChanged(e,id)};CDocsCoApi.prototype.callback_OnParticipantsChanged=function(e){if(this.onParticipantsChanged)this.onParticipantsChanged(e)};
|
|
CDocsCoApi.prototype.callback_OnMessage=function(e,clear){if(this.onMessage)this.onMessage(e,clear)};CDocsCoApi.prototype.callback_OnServerVersion=function(e){if(this.onServerVersion)this.onServerVersion(e)};CDocsCoApi.prototype.callback_OnCursor=function(e){if(this.onCursor)this.onCursor(e)};CDocsCoApi.prototype.callback_OnMeta=function(e){if(this.onMeta)this.onMeta(e)};CDocsCoApi.prototype.callback_OnSession=function(e){if(this.onSession)this.onSession(e)};CDocsCoApi.prototype.callback_OnExpiredToken=
|
|
function(e){if(this.onExpiredToken)this.onExpiredToken(e)};CDocsCoApi.prototype.callback_OnForceSave=function(e){if(this.onForceSave)this.onForceSave(e)};CDocsCoApi.prototype.callback_OnHasForgotten=function(e){if(this.onHasForgotten)this.onHasForgotten(e)};CDocsCoApi.prototype.callback_OnLocksAcquired=function(e){if(this.onLocksAcquired)this.onLocksAcquired(e)};CDocsCoApi.prototype.callback_OnLocksReleased=function(e,bChanges){if(this.onLocksReleased)this.onLocksReleased(e,bChanges)};CDocsCoApi.prototype.callback_OnLocksReleasedEnd=
|
|
function(){if(this.onLocksReleasedEnd)this.onLocksReleasedEnd()};CDocsCoApi.prototype.callback_OnDisconnect=function(e,code){if(this.onDisconnect)this.onDisconnect(e,code)};CDocsCoApi.prototype.callback_OnWarning=function(e){if(this.onWarning)this.onWarning(e)};CDocsCoApi.prototype.callback_OnFirstLoadChangesEnd=function(){if(this.onFirstLoadChangesEnd)this.onFirstLoadChangesEnd()};CDocsCoApi.prototype.callback_OnConnectionStateChanged=function(e){if(this.onConnectionStateChanged)this.onConnectionStateChanged(e)};
|
|
CDocsCoApi.prototype.callback_OnSetIndexUser=function(e){if(this.onSetIndexUser)this.onSetIndexUser(e)};CDocsCoApi.prototype.callback_OnSpellCheckInit=function(e){if(this.onSpellCheckInit)this.onSpellCheckInit(e)};CDocsCoApi.prototype.callback_OnSaveChanges=function(e,userId,bFirstLoad){if(this.onSaveChanges)this.onSaveChanges(e,userId,bFirstLoad)};CDocsCoApi.prototype.callback_OnStartCoAuthoring=function(e,isWaitAuth){if(this.onStartCoAuthoring)this.onStartCoAuthoring(e,isWaitAuth)};CDocsCoApi.prototype.callback_OnEndCoAuthoring=
|
|
function(e){if(this.onEndCoAuthoring)this.onEndCoAuthoring(e)};CDocsCoApi.prototype.callback_OnUnSaveLock=function(){if(this.onUnSaveLock)this.onUnSaveLock()};CDocsCoApi.prototype.callback_OnRecalcLocks=function(e){if(this.onRecalcLocks)this.onRecalcLocks(e)};CDocsCoApi.prototype.callback_OnDocumentOpen=function(e){if(this.onDocumentOpen)this.onDocumentOpen(e)};CDocsCoApi.prototype.callback_OnFirstConnect=function(){if(this.onFirstConnect)this.onFirstConnect()};CDocsCoApi.prototype.callback_OnLicense=
|
|
function(res){if(this.onLicense)this.onLicense(res)};CDocsCoApi.prototype.callback_OnLicenseChanged=function(res){if(this.onLicenseChanged)this.onLicenseChanged(res)};function LockBufferElement(arrayBlockId,callback){this._arrayBlockId=arrayBlockId?arrayBlockId.slice():null;this._callback=callback}function DocsCoApi(options){if(options){this.onAuthParticipantsChanged=options.onAuthParticipantsChanged;this.onParticipantsChanged=options.onParticipantsChanged;this.onMessage=options.onMessage;this.onServerVersion=
|
|
options.onServerVersion;this.onCursor=options.onCursor;this.onMeta=options.onMeta;this.onSession=options.onSession;this.onExpiredToken=options.onExpiredToken;this.onForceSave=options.onForceSave;this.onHasForgotten=options.onHasForgotten;this.onLocksAcquired=options.onLocksAcquired;this.onLocksReleased=options.onLocksReleased;this.onLocksReleasedEnd=options.onLocksReleasedEnd;this.onRelockFailed=options.onRelockFailed;this.onDisconnect=options.onDisconnect;this.onWarning=options.onWarning;this.onSetIndexUser=
|
|
options.onSetIndexUser;this.onSpellCheckInit=options.onSpellCheckInit;this.onSaveChanges=options.onSaveChanges;this.onFirstLoadChangesEnd=options.onFirstLoadChangesEnd;this.onConnectionStateChanged=options.onConnectionStateChanged;this.onUnSaveLock=options.onUnSaveLock;this.onRecalcLocks=options.onRecalcLocks;this.onDocumentOpen=options.onDocumentOpen;this.onFirstConnect=options.onFirstConnect;this.onLicense=options.onLicense;this.onLicenseChanged=options.onLicenseChanged}this._state=ConnectionState.None;
|
|
this._participants={};this._participantsTimestamp;this._countEditUsers=0;this._countUsers=0;this._countCalls=0;this._waitingForResponse={};this.isLicenseInit=false;this._locks={};this._msgBuffer=[];this._msgInputBuffer=[];this._lockCallbacks={};this._lockCallbacksErrorTimerId={};this._saveCallback=[];this.saveLockCallbackErrorTimeOutId=null;this.saveCallbackErrorTimeOutId=null;this.unSaveLockCallbackErrorTimeOutId=null;this._id=null;this._sessionTimeConnect=null;this._allChangesSaved=null;this._lastForceSaveButtonTime=
|
|
null;this._lastForceSaveTimeoutTime=null;this._indexUser=-1;this.isCoAuthoring=false;this.isCloseCoAuthoring=false;this.websocketMaxPayloadSize=1572864;this.currentIndex=0;this.currentIndexEnd=0;this.deleteIndex=0;this.arrayChanges=null;this.lastOtherSaveTime=-1;this.lastOwnSaveTime=-1;this.changesIndex=0;this.excelAdditionalInfo=null;this.canUnlockDocument=false;this.canReleaseLocks=false;this._url="";this.reconnectTimeout=null;this.attemptCount=0;this.maxAttemptCount=50;this.reconnectInterval=2E3;
|
|
this.errorTimeOut=1E4;this.errorTimeOutSave=6E4;this._docid=null;this._documentCallbackUrl=null;this._token=null;this._user=null;this._userId="Anonymous";this.ownedLockBlocks=[];this.sockjs_url=null;this.sockjs=null;this.editorType=-1;this._isExcel=false;this._isPresentation=false;this._isAuth=false;this._documentFormatSave=0;this.mode=undefined;this.permissions=undefined;this.lang=undefined;this.jwtOpen=undefined;this.jwtSession=undefined;this.encrypted=undefined;this.IsAnonymousUser=undefined;this._isViewer=
|
|
false;this._isReSaveAfterAuth=false;this._lockBuffer=[];this._authChanges=[];this._authOtherChanges=[]}DocsCoApi.prototype.isRightURL=function(){return""!=this._url};DocsCoApi.prototype.set_url=function(url){this._url=url};DocsCoApi.prototype.get_state=function(){return this._state};DocsCoApi.prototype.check_state=function(){return ConnectionState.Authorized===this._state||ConnectionState.SaveChanges===this._state||ConnectionState.AskSaveChanges===this._state};DocsCoApi.prototype.get_indexUser=function(){return this._indexUser};
|
|
DocsCoApi.prototype.get_isAuth=function(){return this._isAuth};DocsCoApi.prototype.get_jwt=function(){return this.jwtSession||this.jwtOpen};DocsCoApi.prototype.getSessionId=function(){return this._id};DocsCoApi.prototype.getUserConnectionId=function(){return this._userId};DocsCoApi.prototype.getLocks=function(){return this._locks};DocsCoApi.prototype._sendBufferedLocks=function(){var elem;for(var i=0,length=this._lockBuffer.length;i<length;++i){elem=this._lockBuffer[i];this.askLock(elem._arrayBlockId,
|
|
elem._callback)}this._lockBuffer=[]};DocsCoApi.prototype.askLock=function(arrayBlockId,callback){if(ConnectionState.SaveChanges===this._state||ConnectionState.AskSaveChanges===this._state){this._lockBuffer.push(new LockBufferElement(arrayBlockId,callback));return}var t=this;var i=0;var lengthArray=arrayBlockId?arrayBlockId.length:0;var isLock=false;var idLockInArray=null;for(;i<lengthArray;++i){idLockInArray=this._isExcel||this._isPresentation?arrayBlockId[i]["guid"]:arrayBlockId[i];if(this._locks[idLockInArray]&&
|
|
0!==this._locks[idLockInArray].state){isLock=true;break}}if(0===lengthArray)isLock=true;idLockInArray=this._isExcel||this._isPresentation?arrayBlockId[0]["guid"]:arrayBlockId[0];if(!isLock){if(this._lockCallbacksErrorTimerId.hasOwnProperty(idLockInArray))return;this._locks[idLockInArray]={"state":1};if(callback){this._lockCallbacks[idLockInArray]=callback;this._lockCallbacksErrorTimerId[idLockInArray]=window.setTimeout(function(){if(t._lockCallbacks.hasOwnProperty(idLockInArray)){t._lockCallbacks[idLockInArray]({error:"Timed out"});
|
|
delete t._lockCallbacks[idLockInArray];delete t._lockCallbacksErrorTimerId[idLockInArray]}},this.errorTimeOut)}this._send({"type":"getLock","block":arrayBlockId})}else window.setTimeout(function(){if(callback)callback({error:idLockInArray+"-lock"})},100)};DocsCoApi.prototype.askSaveChanges=function(callback){if(this._saveCallback[this._saveCallback.length-1])return;if(null!==this.saveLockCallbackErrorTimeOutId)clearTimeout(this.saveLockCallbackErrorTimeOutId);if(ConnectionState.Authorized!==this._state){this.saveLockCallbackErrorTimeOutId=
|
|
window.setTimeout(function(){if(callback)callback({error:"No connection"})},100);return}if(callback){var t=this;var indexCallback=this._saveCallback.length;this._saveCallback[indexCallback]=callback;this.saveLockCallbackErrorTimeOutId=window.setTimeout(function(){t.saveLockCallbackErrorTimeOutId=null;var oTmpCallback=t._saveCallback[indexCallback];if(oTmpCallback){t._saveCallback[indexCallback]=null;oTmpCallback({error:"Timed out"});t._state=ConnectionState.Authorized;t._sendBufferedLocks()}},this.errorTimeOut)}this._state=
|
|
ConnectionState.AskSaveChanges;this._send({"type":"isSaveLock"})};DocsCoApi.prototype.unSaveLock=function(){var t=this;this.unSaveLockCallbackErrorTimeOutId=window.setTimeout(function(){t.unSaveLockCallbackErrorTimeOutId=null;t.unSaveLock()},this.errorTimeOut);this._send({"type":"unSaveLock"})};DocsCoApi.prototype.releaseLocks=function(blockId){if(this._locks[blockId]&&2===this._locks[blockId].state)this._locks[blockId]={"state":0}};DocsCoApi.prototype._reSaveChanges=function(reSaveType){this.saveChanges(this.arrayChanges,
|
|
this.currentIndex,undefined,undefined,reSaveType)};DocsCoApi.prototype.saveChanges=function(arrayChanges,currentIndex,deleteIndex,excelAdditionalInfo,reSave){if(null===currentIndex){this.deleteIndex=deleteIndex;if(null!=this.deleteIndex&&-1!==this.deleteIndex)this.deleteIndex+=this.changesIndex;this.currentIndex=0;this.arrayChanges=arrayChanges;this.excelAdditionalInfo=excelAdditionalInfo}else this.currentIndex=currentIndex;var startIndex,endIndex;startIndex=endIndex=this.currentIndex;var curBytes=
|
|
0;for(;endIndex<arrayChanges.length&&curBytes<this.websocketMaxPayloadSize;++endIndex)curBytes+=arrayChanges[endIndex].length+9;this.currentIndexEnd=endIndex;if(endIndex===arrayChanges.length)for(var key in this._locks)if(this._locks.hasOwnProperty(key))if(2===this._locks[key].state)delete this._locks[key];var t=this;this.saveCallbackErrorTimeOutId=window.setTimeout(function(){t.saveCallbackErrorTimeOutId=null;t._reSaveChanges(1)},this.errorTimeOutSave);this._state=ConnectionState.SaveChanges;this._send({"type":"saveChanges",
|
|
"changes":JSON.stringify(arrayChanges.slice(startIndex,endIndex)),"startSaveChanges":startIndex===0,"endSaveChanges":endIndex===arrayChanges.length,"isCoAuthoring":this.isCoAuthoring,"isExcel":this._isExcel,"deleteIndex":this.deleteIndex,"excelAdditionalInfo":this.excelAdditionalInfo?JSON.stringify(this.excelAdditionalInfo):null,"unlock":this.canUnlockDocument,"releaseLocks":this.canReleaseLocks,"reSave":reSave})};DocsCoApi.prototype.unLockDocument=function(isSave,deleteIndex){this.deleteIndex=deleteIndex;
|
|
if(null!=this.deleteIndex&&-1!==this.deleteIndex)this.deleteIndex+=this.changesIndex;this._send({"type":"unLockDocument","isSave":isSave,"unlock":this.canUnlockDocument,"deleteIndex":this.deleteIndex,"releaseLocks":this.canReleaseLocks})};DocsCoApi.prototype.getUsers=function(){if(this.onAuthParticipantsChanged)this.onAuthParticipantsChanged(this._participants,this._userId)};DocsCoApi.prototype.disconnect=function(opt_code,opt_reason){this.isCloseCoAuthoring=true;if(opt_code)this.sockjs.close(opt_code,
|
|
opt_reason);else{this._send({"type":"close"});this._state=ConnectionState.ClosedCoAuth}};DocsCoApi.prototype.extendSession=function(idleTime){this._send({"type":"extendSession","idletime":idleTime})};DocsCoApi.prototype.versionHistory=function(data){this._send({"type":"versionHistory","cmd":data})};DocsCoApi.prototype.forceSave=function(){var res=false;var newForceSaveButtonTime=Math.max(this.lastOtherSaveTime,this.lastOwnSaveTime);if(this._lastForceSaveButtonTime<newForceSaveButtonTime){this._lastForceSaveButtonTime=
|
|
newForceSaveButtonTime;this._send({"type":"forceSaveStart"});res=true}return res};DocsCoApi.prototype.callPRC=function(data,timeout,callback){var t=this;var responseKey=++this._countCalls;this._waitingForResponse[responseKey]=callback;if(timeout>0)setTimeout(function(){t._onPRC(responseKey,true,undefined)},timeout);this._send({"type":"rpc","responseKey":responseKey,"data":data});return true};DocsCoApi.prototype._onPRC=function(responseKey,isTimeout,response){var callback=this._waitingForResponse[responseKey];
|
|
delete this._waitingForResponse[responseKey];if(callback)callback(isTimeout,response)};DocsCoApi.prototype.openDocument=function(data){this._send({"type":"openDocument","message":data})};DocsCoApi.prototype.sendRawData=function(data){this._sendRaw(data)};DocsCoApi.prototype.getMessages=function(){this._send({"type":"getMessages"})};DocsCoApi.prototype.sendMessage=function(message){if(typeof message==="string")this._send({"type":"message","message":message})};DocsCoApi.prototype.sendCursor=function(cursor){if(typeof cursor===
|
|
"string")this._send({"type":"cursor","cursor":cursor})};DocsCoApi.prototype.sendChangesError=function(data){if(typeof data==="string")this._send({"type":"changesError","stack":data})};DocsCoApi.prototype._applyPrebuffered=function(){for(var i=0;i<this._msgInputBuffer.length;++i)this._msgInputBuffer[i]();this._msgInputBuffer=[]};DocsCoApi.prototype._sendPrebuffered=function(){for(var i=0;i<this._msgBuffer.length;i++)this._sendRaw(this._msgBuffer[i]);this._msgBuffer=[]};DocsCoApi.prototype._send=function(data,
|
|
useEncryption){if(!useEncryption&&data&&data["type"]=="saveChanges"&&AscCommon.EncryptionWorker&&AscCommon.EncryptionWorker.isInit())return AscCommon.EncryptionWorker.sendChanges(this,data,AscCommon.EncryptionMessageType.Encrypt);if(data!==null&&typeof data==="object")if(this._state>0)this.sockjs.send(JSON.stringify(data));else this._msgBuffer.push(JSON.stringify(data))};DocsCoApi.prototype._sendRaw=function(data){if(data!==null&&typeof data==="string")if(this._state>0)this.sockjs.send(data);else this._msgBuffer.push(data)};
|
|
DocsCoApi.prototype._onMessages=function(data,clear){if(this.check_state()&&data["messages"]&&this.onMessage)this.onMessage(data["messages"],clear)};DocsCoApi.prototype._onServerVersion=function(data){if(this.onServerVersion)this.onServerVersion(data["buildVersion"],data["buildNumber"])};DocsCoApi.prototype._onCursor=function(data){if(this.check_state()&&data["messages"]&&this.onCursor)this.onCursor(data["messages"])};DocsCoApi.prototype._onMeta=function(data){if(data["messages"]&&this.onMeta)this.onMeta(data["messages"])};
|
|
DocsCoApi.prototype._onSession=function(data){if(this.check_state()&&data["messages"]&&this.onSession)this.onSession(data["messages"])};DocsCoApi.prototype._onExpiredToken=function(data){if(this.onExpiredToken)this.onExpiredToken(data)};DocsCoApi.prototype._onHasForgotten=function(data){if(this.onHasForgotten)this.onHasForgotten()};DocsCoApi.prototype._onRefreshToken=function(jwt){this.jwtOpen=undefined;if(jwt)this.jwtSession=jwt};DocsCoApi.prototype._onForceSaveStart=function(data){var code=data["code"];
|
|
if(code===c_oAscServerCommandErrors.NoError){this._lastForceSaveButtonTime=data["time"];this.onForceSave({type:c_oAscForceSaveTypes.Button,start:true})}else if(code===c_oAscServerCommandErrors.NotModified)this.onForceSave({type:c_oAscForceSaveTypes.Button,refuse:true});else this.onWarning(Asc.c_oAscError.ID.Unknown)};DocsCoApi.prototype._onForceSave=function(data){var type=data["type"];if(c_oAscForceSaveTypes.Button===type){if(this._lastForceSaveButtonTime==data["time"])this.onForceSave({type:type,
|
|
success:data["success"]})}else if(data["start"]){this.onForceSave({type:type,start:true});this._lastForceSaveTimeoutTime=data["time"]}else if(this._lastForceSaveTimeoutTime==data["time"])this.onForceSave({type:type,success:data["success"]})};DocsCoApi.prototype._onGetLock=function(data){if(this.check_state()&&data["locks"])for(var key in data["locks"])if(data["locks"].hasOwnProperty(key)){var lock=data["locks"][key],blockTmp=this._isExcel||this._isPresentation?lock["block"]["guid"]:key,blockValue=
|
|
this._isExcel||this._isPresentation?lock["block"]:key;if(lock!==null){var changed=true;if(this._locks[blockTmp]&&1!==this._locks[blockTmp].state)changed=!(this._locks[blockTmp].state===(lock["user"]===this._userId?2:3)&&this._locks[blockTmp]["user"]===lock["user"]&&this._locks[blockTmp]["time"]===lock["time"]&&this._locks[blockTmp]["block"]===blockTmp);if(changed)this._locks[blockTmp]={"state":lock["user"]===this._userId?2:3,"user":lock["user"],"time":lock["time"],"block":blockTmp,"blockValue":blockValue};
|
|
if(this._lockCallbacks.hasOwnProperty(blockTmp)){if(lock["user"]===this._userId)this._lockCallbacks[blockTmp]({"lock":this._locks[blockTmp]});else this._lockCallbacks[blockTmp]({"error":"Already locked by "+lock["user"]});if(this._lockCallbacksErrorTimerId.hasOwnProperty(blockTmp)){clearTimeout(this._lockCallbacksErrorTimerId[blockTmp]);delete this._lockCallbacksErrorTimerId[blockTmp]}delete this._lockCallbacks[blockTmp]}if(this.onLocksAcquired&&changed)this.onLocksAcquired(this._locks[blockTmp])}}};
|
|
DocsCoApi.prototype._onReleaseLock=function(data){if(this.check_state()&&data["locks"]){var bSendEnd=false;for(var block in data["locks"])if(data["locks"].hasOwnProperty(block)){var lock=data["locks"][block],blockTmp=this._isExcel||this._isPresentation?lock["block"]["guid"]:lock["block"];if(lock!==null){this._locks[blockTmp]={"state":0,"user":lock["user"],"time":lock["time"],"changes":lock["changes"],"block":lock["block"]};if(this.onLocksReleased){this.onLocksReleased(this._locks[blockTmp],false);
|
|
bSendEnd=true}}}if(bSendEnd&&this.onLocksReleasedEnd)this.onLocksReleasedEnd()}};DocsCoApi.prototype._documentOpen=function(data){this.onDocumentOpen(data)};DocsCoApi.prototype._onSaveChanges=function(data,useEncryption){if(!this.check_state()){if(!this.get_isAuth())this._authOtherChanges.push(data);return}if(!useEncryption&&AscCommon.EncryptionWorker&&AscCommon.EncryptionWorker.isInit())return AscCommon.EncryptionWorker.sendChanges(this,data,AscCommon.EncryptionMessageType.Decrypt);if(data["locks"]){var bSendEnd=
|
|
false;for(var block in data["locks"])if(data["locks"].hasOwnProperty(block)){var lock=data["locks"][block];if(lock!==null){var blockTmp=this._isExcel||this._isPresentation?lock["block"]["guid"]:lock["block"];this._locks[blockTmp]={"state":0,"user":lock["user"],"time":lock["time"],"changes":lock["changes"],"block":lock["block"]};if(this.onLocksReleased){this.onLocksReleased(this._locks[blockTmp],true);bSendEnd=true}}}if(bSendEnd&&this.onLocksReleasedEnd)this.onLocksReleasedEnd()}this._updateChanges(data["changes"],
|
|
data["changesIndex"],false);if(this.onRecalcLocks)this.onRecalcLocks(data["excelAdditionalInfo"])};DocsCoApi.prototype._onStartCoAuthoring=function(isStartEvent,isWaitAuth){if(isWaitAuth&&false===this.isCoAuthoring&&!this.onStartCoAuthoring){var errorMsg="Error: connection state changed waitAuth"+";this.onStartCoAuthoring:"+!!this.onStartCoAuthoring;this.sendChangesError(errorMsg)}if(false===this.isCoAuthoring){this.isCoAuthoring=true;if(this.onStartCoAuthoring)this.onStartCoAuthoring(isStartEvent,
|
|
isWaitAuth)}else if(isWaitAuth){this.canUnlockDocument=true;this.unLockDocument(false)}};DocsCoApi.prototype._onEndCoAuthoring=function(isStartEvent){if(true===this.isCoAuthoring){this.isCoAuthoring=false;if(this.onEndCoAuthoring)this.onEndCoAuthoring(isStartEvent)}};DocsCoApi.prototype._onSaveLock=function(data){if(null!=data["saveLock"]){var indexCallback=this._saveCallback.length-1;var oTmpCallback=this._saveCallback[indexCallback];if(oTmpCallback){if(null!==this.saveLockCallbackErrorTimeOutId){clearTimeout(this.saveLockCallbackErrorTimeOutId);
|
|
this.saveLockCallbackErrorTimeOutId=null}this._saveCallback[indexCallback]=null;oTmpCallback(data)}}if(null==data["saveLock"]||data["error"]||data["saveLock"]){this._state=ConnectionState.Authorized;this._sendBufferedLocks()}};DocsCoApi.prototype._onUnSaveLock=function(data){if(null!==this.saveCallbackErrorTimeOutId){clearTimeout(this.saveCallbackErrorTimeOutId);this.saveCallbackErrorTimeOutId=null}if(null!==this.unSaveLockCallbackErrorTimeOutId){clearTimeout(this.unSaveLockCallbackErrorTimeOutId);
|
|
this.unSaveLockCallbackErrorTimeOutId=null}this._state=ConnectionState.Authorized;this._sendBufferedLocks();if(-1!==data["index"])this.changesIndex=data["index"];if(-1!==data["time"])this.lastOwnSaveTime=data["time"];if(this.onUnSaveLock)this.onUnSaveLock()};DocsCoApi.prototype._updateChanges=function(allServerChanges,changesIndex,bFirstLoad){if(this.onSaveChanges){this.changesIndex=changesIndex;if(allServerChanges)for(var i=0;i<allServerChanges.length;++i){var change=allServerChanges[i];var changesOneUser=
|
|
change["change"];if(changesOneUser){if(change["user"]!==this._userId)this.lastOtherSaveTime=change["time"];this.onSaveChanges(JSON.parse(changesOneUser),change["useridoriginal"],bFirstLoad)}}}};DocsCoApi.prototype._onSetIndexUser=function(data){if(this.onSetIndexUser)this.onSetIndexUser(data)};DocsCoApi.prototype._onSpellCheckInit=function(data){if(this.onSpellCheckInit)this.onSpellCheckInit(data)};DocsCoApi.prototype._onSavePartChanges=function(data){if(null!==this.saveCallbackErrorTimeOutId){clearTimeout(this.saveCallbackErrorTimeOutId);
|
|
this.saveCallbackErrorTimeOutId=null}if(-1!==data["changesIndex"])this.changesIndex=data["changesIndex"];this.saveChanges(this.arrayChanges,this.currentIndexEnd)};DocsCoApi.prototype._onPreviousLocks=function(locks,previousLocks){var i=0;if(locks&&previousLocks){for(var block in locks)if(locks.hasOwnProperty(block)){var lock=locks[block];if(lock!==null&&lock["block"])for(i=0;i<previousLocks.length;i++)if(previousLocks[i]===lock["block"]&&lock["user"]===this._userId){previousLocks.remove(i);break}}if(previousLocks.length>
|
|
0&&this.onRelockFailed)this.onRelockFailed(previousLocks);previousLocks=[]}};DocsCoApi.prototype._onParticipantsChanged=function(participants,needChanged){var participantsNew={};var countEditUsersNew=0;var countUsersNew=0;var tmpUser;var i;var usersStateChanged=[];if(participants)for(i=0;i<participants.length;++i){tmpUser=new AscCommon.asc_CUser(participants[i]);tmpUser.setState(true);participantsNew[tmpUser.asc_getId()]=tmpUser;if(!tmpUser.asc_getView())++countEditUsersNew;++countUsersNew}if(needChanged){for(i in this._participants)if(!(participantsNew[i]&&
|
|
this._participants[i].isEqual(participantsNew[i]))){tmpUser=this._participants[i];tmpUser.setState(false);usersStateChanged.push(tmpUser)}for(i in participantsNew)if(!(this._participants[i]&&this._participants[i].isEqual(participantsNew[i]))){tmpUser=participantsNew[i];tmpUser.setState(true);usersStateChanged.push(tmpUser)}}this._participants=participantsNew;this._countEditUsers=countEditUsersNew;this._countUsers=countUsersNew;return usersStateChanged};DocsCoApi.prototype._onAuthParticipantsChanged=
|
|
function(participants){this._participants={};this._countEditUsers=0;this._countUsers=0;if(participants){this._onParticipantsChanged(participants);if(this.onAuthParticipantsChanged)this.onAuthParticipantsChanged(this._participants,this._userId);if(1<this._countEditUsers)this._onStartCoAuthoring(true);else this._onEndCoAuthoring(true)}};DocsCoApi.prototype._onConnectionStateChanged=function(data){var t=this;if(!this.check_state()){this._msgInputBuffer.push(function(){t._onConnectionStateChanged(data)});
|
|
return}var isWaitAuth=data["waitAuth"];var usersStateChanged;if(isWaitAuth&&!(this.onConnectionStateChanged&&(!this._participantsTimestamp||this._participantsTimestamp<=data["participantsTimestamp"]))){var errorMsg="Error: connection state changed waitAuth"+";onConnectionStateChanged:"+!!this.onConnectionStateChanged+";this._participantsTimestamp:"+this._participantsTimestamp+";data.participantsTimestamp:"+data["participantsTimestamp"];this.sendChangesError(errorMsg)}if(this.onConnectionStateChanged&&
|
|
(!this._participantsTimestamp||this._participantsTimestamp<=data["participantsTimestamp"])){this._participantsTimestamp=data["participantsTimestamp"];usersStateChanged=this._onParticipantsChanged(data["participants"],true);if(isWaitAuth&&!(usersStateChanged.length>0&&1<this._countEditUsers)){var errorMsg="Error: connection state changed waitAuth"+";usersStateChanged:"+JSON.stringify(usersStateChanged)+";this._countEditUsers:"+this._countEditUsers;this.sendChangesError(errorMsg)}if(usersStateChanged.length>
|
|
0){if(1<this._countEditUsers)this._onStartCoAuthoring(false,isWaitAuth);else this._onEndCoAuthoring(false);this.onParticipantsChanged(this._participants);for(var i=0;i<usersStateChanged.length;++i)this.onConnectionStateChanged(usersStateChanged[i])}}};DocsCoApi.prototype._onLicenseChanged=function(data){this.onLicenseChanged(data["licenseType"])};DocsCoApi.prototype._onDrop=function(data){this.disconnect();var code=data&&data["code"]||c_oCloseCode.drop;this.onDisconnect(data?data["description"]:"",
|
|
code)};DocsCoApi.prototype._onWarning=function(data){this.onWarning(Asc.c_oAscError.ID.Warning)};DocsCoApi.prototype._onLicense=function(data){if(!this.isLicenseInit){this.isLicenseInit=true;this.onLicense(data["license"])}};DocsCoApi.prototype._onAuth=function(data){var t=this;this._onRefreshToken(data["jwt"]);if(true===this._isAuth){this._state=ConnectionState.Authorized;if(this.isCloseCoAuthoring)return;this._onServerVersion(data);this._onLicenseChanged(data);this._onAuthParticipantsChanged(data["participants"]);
|
|
this._onMessages(data,true);this._onGetLock(data);this._applyPrebuffered();if(this._isReSaveAfterAuth){this._isReSaveAfterAuth=false;var callbackAskSaveChanges=function(e){if(false===e["saveLock"])t._reSaveChanges(2);else setTimeout(function(){t.askSaveChanges(callbackAskSaveChanges)},1E3)};this.askSaveChanges(callbackAskSaveChanges)}return}if(data["result"]===1){this._isAuth=true;this._state=ConnectionState.Authorized;this._id=data["sessionId"];this._indexUser=data["indexUser"];this._userId=this._user.asc_getId()+
|
|
this._indexUser;this._sessionTimeConnect=data["sessionTimeConnect"];if(data["settings"]){if(data["settings"]["reconnection"]){this.maxAttemptCount=data["settings"]["reconnection"]["attempts"];this.reconnectInterval=data["settings"]["reconnection"]["delay"]}if(data["settings"]["websocketMaxPayloadSize"])this.websocketMaxPayloadSize=data["settings"]["websocketMaxPayloadSize"]}this._onLicenseChanged(data);this._onAuthParticipantsChanged(data["participants"]);this._onSpellCheckInit(data["g_cAscSpellCheckUrl"]);
|
|
this._onSetIndexUser(this._indexUser);this._onMessages(data,false);this._onGetLock(data);if(data["hasForgotten"])this._onHasForgotten();if(window["AscApplyChanges"]&&window["AscChanges"]){var userOfflineChanges=window["AscChanges"],changeOneUser;for(var i=0;i<userOfflineChanges.length;++i){changeOneUser=userOfflineChanges[i];for(var j=0;j<changeOneUser.length;++j)this.onSaveChanges(changeOneUser[j],null,true)}}this._updateAuthChanges();if(this.onFirstLoadChangesEnd)this.onFirstLoadChangesEnd();this._applyPrebuffered();
|
|
this._sendPrebuffered()}};DocsCoApi.prototype._onAuthChanges=function(data){this._authChanges.push(data["changes"])};DocsCoApi.prototype._updateAuthChanges=function(){var changesIndex=0,i,changes,data,indexDiff;for(i=0;i<this._authChanges.length;++i){changes=this._authChanges[i];changesIndex+=changes.length;this._updateChanges(changes,changesIndex,true)}this._authChanges=[];for(i=0;i<this._authOtherChanges.length;++i){data=this._authOtherChanges[i];indexDiff=data["changesIndex"]-changesIndex;if(indexDiff>
|
|
0){if(indexDiff>=data["changes"].length)changes=data["changes"];else changes=data["changes"].splice(data["changes"].length-indexDiff,indexDiff);changesIndex+=changes.length;this._updateChanges(changes,changesIndex,true)}}this._authOtherChanges=[]};DocsCoApi.prototype.init=function(user,docid,documentCallbackUrl,token,editorType,documentFormatSave,docInfo){this._user=user;this._docid=null;this._documentCallbackUrl=documentCallbackUrl;this._token=token;this.ownedLockBlocks=[];this.sockjs_url=null;this.editorType=
|
|
editorType;this._isExcel=c_oEditorId.Spreadsheet===editorType;this._isPresentation=c_oEditorId.Presentation===editorType;this._isAuth=false;this._documentFormatSave=documentFormatSave;this.mode=docInfo.get_Mode();this.permissions=docInfo.get_Permissions();this.lang=docInfo.get_Lang();this.jwtOpen=docInfo.get_Token();this.encrypted=docInfo.get_Encrypted();this.IsAnonymousUser=docInfo.get_IsAnonymousUser();this.setDocId(docid);this._initSocksJs()};DocsCoApi.prototype.getDocId=function(){return this._docid};
|
|
DocsCoApi.prototype.setDocId=function(docid){this._docid=docid;this.sockjs_url=AscCommon.getBaseUrl()+"../../../../doc/"+docid+"/c"};DocsCoApi.prototype.auth=function(isViewer,opt_openCmd,opt_isIdle){this._isViewer=isViewer;if(this._locks){this.ownedLockBlocks=[];for(var block in this._locks)if(this._locks.hasOwnProperty(block)){var lock=this._locks[block];if(lock["state"]===2)this.ownedLockBlocks.push(lock["blockValue"])}this._locks={}}this._send({"type":"auth","docid":this._docid,"documentCallbackUrl":this._documentCallbackUrl,
|
|
"token":this._token,"user":{"id":this._user.asc_getId(),"username":this._user.asc_getUserName(),"firstname":this._user.asc_getFirstName(),"lastname":this._user.asc_getLastName(),"indexUser":this._indexUser},"editorType":this.editorType,"lastOtherSaveTime":this.lastOtherSaveTime,"block":this.ownedLockBlocks,"sessionId":this._id,"sessionTimeConnect":this._sessionTimeConnect,"sessionTimeIdle":opt_isIdle>=0?opt_isIdle:0,"documentFormatSave":this._documentFormatSave,"view":this._isViewer,"isCloseCoAuthoring":this.isCloseCoAuthoring,
|
|
"openCmd":opt_openCmd,"lang":this.lang,"mode":this.mode,"permissions":this.permissions,"encrypted":this.encrypted,"IsAnonymousUser":this.IsAnonymousUser,"jwtOpen":this.jwtOpen,"jwtSession":this.jwtSession})};DocsCoApi.prototype._initSocksJs=function(){var t=this;var sockjs;sockjs=this.sockjs={};var send=function(data){setTimeout(function(){sockjs.onmessage({data:JSON.stringify(data)})})};var license={type:"license",license:{type:3,mode:0,rights:1,buildVersion:"5.2.6",buildNumber:2}};var channel;require(["/common/outer/worker-channel.js",
|
|
"/common/common-util.js"],function(Channel,Util){var msgEv=Util.mkEvent();var p=window.parent;if(editor&&editor.isReporterMode){p=window.opener;window.parent=p}else window.APP=p&&p.APP;window.addEventListener("message",function(msg){if(msg.source!==p)return;msgEv.fire(msg)});var postMsg=function(data){p.postMessage(data,"*")};Channel.create(msgEv,postMsg,function(chan){channel=chan;send(license);chan.on("CMD",function(obj){send(obj)})})});sockjs.onopen=function(){t._state=ConnectionState.WaitAuth;
|
|
t.onFirstConnect()};sockjs.onopen();sockjs.close=function(){console.error("Close realtime")};sockjs.send=function(data){try{var obj=JSON.parse(data)}catch(e){console.error(e);return}if(channel)channel.event("CMD",obj)};sockjs.onmessage=function(e){t._onServerMessage(e.data)};return sockjs};DocsCoApi.prototype._onServerOpen=function(){if(this.reconnectTimeout){clearTimeout(this.reconnectTimeout);this.reconnectTimeout=null;this.attemptCount=0}this._state=ConnectionState.WaitAuth;this.onFirstConnect()};
|
|
DocsCoApi.prototype._onServerMessage=function(data){var dataObject=JSON.parse(data);switch(dataObject["type"]){case "auth":this._onAuth(dataObject);break;case "message":this._onMessages(dataObject,false);break;case "cursor":this._onCursor(dataObject);break;case "meta":this._onMeta(dataObject);break;case "getLock":this._onGetLock(dataObject);break;case "releaseLock":this._onReleaseLock(dataObject);break;case "connectState":this._onConnectionStateChanged(dataObject);break;case "saveChanges":this._onSaveChanges(dataObject);
|
|
break;case "authChanges":this._onAuthChanges(dataObject);break;case "saveLock":this._onSaveLock(dataObject);break;case "unSaveLock":this._onUnSaveLock(dataObject);break;case "savePartChanges":this._onSavePartChanges(dataObject);break;case "drop":this._onDrop(dataObject);break;case "waitAuth":break;case "error":this._onDrop(dataObject);break;case "documentOpen":this._documentOpen(dataObject);break;case "warning":this._onWarning(dataObject);break;case "license":this._onLicense(dataObject);break;case "session":this._onSession(dataObject);
|
|
break;case "refreshToken":this._onRefreshToken(dataObject["messages"]);break;case "expiredToken":this._onExpiredToken(dataObject);break;case "forceSaveStart":this._onForceSaveStart(dataObject["messages"]);break;case "forceSave":this._onForceSave(dataObject["messages"]);break;case "rpc":this._onPRC(dataObject["responseKey"],false,dataObject["data"]);break}};DocsCoApi.prototype._onServerClose=function(evt){if(ConnectionState.SaveChanges===this._state){this._isReSaveAfterAuth=true;if(null!==this.saveCallbackErrorTimeOutId){clearTimeout(this.saveCallbackErrorTimeOutId);
|
|
this.saveCallbackErrorTimeOutId=null}}this._state=ConnectionState.Reconnect;var bIsDisconnectAtAll=c_oCloseCode.serverShutdown<=evt.code&&evt.code<=c_oCloseCode.drop||this.attemptCount>=this.maxAttemptCount;var code=null;if(bIsDisconnectAtAll){this._state=ConnectionState.ClosedAll;code=evt.code}if(this.onDisconnect)this.onDisconnect(evt.reason,code);if(!bIsDisconnectAtAll)this._tryReconnect()};DocsCoApi.prototype._reconnect=function(){delete this.sockjs;this._initSocksJs()};DocsCoApi.prototype._tryReconnect=
|
|
function(){var t=this;if(this.reconnectTimeout){clearTimeout(this.reconnectTimeout);t.reconnectTimeout=null}++this.attemptCount;this.reconnectTimeout=setTimeout(function(){t._reconnect()},this.reconnectInterval)};window["AscCommon"]=window["AscCommon"]||{};window["AscCommon"].CDocsCoApi=CDocsCoApi})(window);"use strict";
|
|
(function(window){var CSpellCheckApi=function(){this._SpellCheckApi=new SpellCheckApi;this._onlineWork=false;this.onDisconnect=null;this.onSpellCheck=null};CSpellCheckApi.prototype.init=function(docid){if(this._SpellCheckApi&&this._SpellCheckApi.isRightURL()){var t=this;this._SpellCheckApi.onDisconnect=function(e,isDisconnectAtAll,isCloseCoAuthoring){t.callback_OnDisconnect(e,isDisconnectAtAll,isCloseCoAuthoring)};this._SpellCheckApi.onSpellCheck=function(e){t.callback_OnSpellCheck(e)};this._SpellCheckApi.onInit=
|
|
function(e){t.callback_OnInit(e)};this._SpellCheckApi.init(docid);this._onlineWork=true}};CSpellCheckApi.prototype.set_url=function(url){if(this._SpellCheckApi)this._SpellCheckApi.set_url(url)};CSpellCheckApi.prototype.get_state=function(){if(this._SpellCheckApi)return this._SpellCheckApi.get_state();return 0};CSpellCheckApi.prototype.disconnect=function(){if(this._SpellCheckApi&&this._onlineWork)this._SpellCheckApi.disconnect()};CSpellCheckApi.prototype.spellCheck=function(spellCheckData){if(this._SpellCheckApi&&
|
|
this._onlineWork)this._SpellCheckApi.spellCheck(spellCheckData)};CSpellCheckApi.prototype.checkDictionary=function(lang){if(this._SpellCheckApi&&this._onlineWork)return this._SpellCheckApi.checkDictionary(lang);return true};CSpellCheckApi.prototype.callback_OnSpellCheck=function(e){if(this.onSpellCheck)return this.onSpellCheck(e)};CSpellCheckApi.prototype.callback_OnInit=function(e){if(this.onInit)return this.onInit(e)};CSpellCheckApi.prototype.callback_OnDisconnect=function(e,isDisconnectAtAll,isCloseCoAuthoring){if(this.onDisconnect)return this.onDisconnect(e,
|
|
isDisconnectAtAll,isCloseCoAuthoring)};var SpellCheckApi=function(){this.onDisconnect=null;this.onConnect=null;this.onSpellCheck=null;this.onInit=null;this._state=0;this.isCloseCoAuthoring=false;this.isInit=false;this.languages=null;this.dataNeedSend=[];this._url=""};SpellCheckApi.prototype.isRightURL=function(){return""!==this._url};SpellCheckApi.prototype.set_url=function(url){this._url=url};SpellCheckApi.prototype.get_state=function(){return this._state};SpellCheckApi.prototype.spellCheck=function(spellCheckData){this._send({"type":"spellCheck",
|
|
"spellCheckData":spellCheckData})};SpellCheckApi.prototype.checkDictionary=function(lang){return!this.isInit||!!this.languages[lang]};SpellCheckApi.prototype.disconnect=function(){this.isCloseCoAuthoring=true;return this.sockjs.close()};SpellCheckApi.prototype._send=function(data){if(data!==null&&typeof data==="object")if(this._state>0)this.sockjs.send(JSON.stringify(data));else this.dataNeedSend.push(data)};SpellCheckApi.prototype._sendAfterConnect=function(){var data;while(this._state>0&&undefined!==
|
|
(data=this.dataNeedSend.shift()))this._send(data)};SpellCheckApi.prototype._onSpellCheck=function(data){if(data["spellCheckData"]&&this.onSpellCheck)this.onSpellCheck(data["spellCheckData"])};SpellCheckApi.prototype._onInit=function(data){if(!this.isInit&&data["languages"]){if(this.onInit)this.onInit(data["languages"]);this.languages=data["languages"].reduce(function(map,value){map[value]=1;return map},{});this.isInit=true}};var reconnectTimeout,attemptCount=0;function initSocksJs(url,docsCoApi){if(window["IS_NATIVE_EDITOR"])return;
|
|
var sockjs=new (AscCommon.getSockJs())(url,null,{"transports":["websocket","xdr-polling","xhr-polling","iframe-xhr-polling","jsonp-polling"]});sockjs.onopen=function(){if(reconnectTimeout){clearTimeout(reconnectTimeout);attemptCount=0}docsCoApi._state=1;if(docsCoApi.onConnect)docsCoApi.onConnect();docsCoApi._sendAfterConnect()};sockjs.onmessage=function(e){var dataObject=JSON.parse(e.data);var type=dataObject.type;switch(type){case "spellCheck":docsCoApi._onSpellCheck(dataObject);break;case "init":docsCoApi._onInit(dataObject);
|
|
break}};sockjs.onclose=function(evt){docsCoApi._state=-1;var bIsDisconnectAtAll=attemptCount>=20||docsCoApi.isCloseCoAuthoring;if(bIsDisconnectAtAll)docsCoApi._state=3;if(docsCoApi.onDisconnect)docsCoApi.onDisconnect(evt.reason,bIsDisconnectAtAll,docsCoApi.isCloseCoAuthoring);if(docsCoApi.isCloseCoAuthoring)return;if(attemptCount<20)tryReconnect()};function tryReconnect(){if(reconnectTimeout)clearTimeout(reconnectTimeout);attemptCount++;reconnectTimeout=setTimeout(function(){delete docsCoApi.sockjs;
|
|
docsCoApi.sockjs=initSocksJs(url,docsCoApi)},500*attemptCount)}return sockjs}SpellCheckApi.prototype.init=function(docid){this._docid=docid;var re=/^https?:\/\//;var spellcheckUrl=this._url+"/doc/"+docid+"/c";if(re.test(this._url))this.sockjs_url=spellcheckUrl;else this.sockjs_url=AscCommon.getBaseUrl()+"../../../.."+spellcheckUrl;this.sockjs=initSocksJs(this.sockjs_url,this)};window["AscCommon"]=window["AscCommon"]||{};window["AscCommon"].CSpellCheckApi=CSpellCheckApi})(window);"use strict";
|
|
(function(window,undefined){var Asc=window["Asc"];var AscCommon=window["AscCommon"];var prot;var c_oAscMouseMoveDataTypes=Asc.c_oAscMouseMoveDataTypes;var c_oAscColor=Asc.c_oAscColor;var c_oAscFill=Asc.c_oAscFill;var c_oAscFillBlipType=Asc.c_oAscFillBlipType;var c_oAscChartTypeSettings=Asc.c_oAscChartTypeSettings;var c_oAscTickMark=Asc.c_oAscTickMark;var c_oAscAxisType=Asc.c_oAscAxisType;var c_oAscArrUserColors=[16757719,7929702,56805,10081791,12884479,16751001,6748927,16762931,6865407,15650047,16737894,
|
|
3407768,16759142,10852863,6750176,16774656,13926655,13815039,3397375,11927347,16752947,9404671,4980531,16744678,3407830,15919360,16731553,52479,13330175,16743219,3386367,14221056,16737966,1896960,65484,10970879,16759296,16711680,13496832,62072,49906,16734720,10682112,7890687,16731610,65406,38655,16747008,59890,12733951,15859712,47077,15050496,15224319,10154496,58807,16724950,1759488,9981439,15064320,15893248,16724883,58737,15007744,36594,12772608,12137471,6442495,15039488,16718470,14274816,53721,
|
|
16718545,1625088,15881472,13419776,32985,16711800,1490688,16711884,8991743,13407488,41932,7978752,15028480,52387,15007927,12114176,1421824,55726,13041893,10665728,30924,49049,14241024,36530,11709440,13397504,45710,34214];function CreateAscColorCustom(r,g,b,auto){var ret=new asc_CColor;ret.type=c_oAscColor.COLOR_TYPE_SRGB;ret.r=r;ret.g=g;ret.b=b;ret.a=255;ret.Auto=undefined===auto?false:auto;return ret}function CreateAscColor(unicolor){if(null==unicolor||null==unicolor.color)return new asc_CColor;
|
|
var ret=new asc_CColor;ret.r=unicolor.RGBA.R;ret.g=unicolor.RGBA.G;ret.b=unicolor.RGBA.B;ret.a=unicolor.RGBA.A;var _color=unicolor.color;switch(_color.type){case c_oAscColor.COLOR_TYPE_SRGB:case c_oAscColor.COLOR_TYPE_SYS:{break}case c_oAscColor.COLOR_TYPE_PRST:case c_oAscColor.COLOR_TYPE_SCHEME:{ret.type=_color.type;ret.value=_color.id;break}default:break}return ret}var uuid=[];for(var i=0;i<256;i++)uuid[i]=(i<16?"0":"")+i.toString(16);function CreateUUID(isNoDashes){var d0=Math.random()*4294967295|
|
|
0;var d1=Math.random()*4294967295|0;var d2=Math.random()*4294967295|0;var d3=Math.random()*4294967295|0;if(isNoDashes)return uuid[d0&255]+uuid[d0>>8&255]+uuid[d0>>16&255]+uuid[d0>>24&255]+uuid[d1&255]+uuid[d1>>8&255]+uuid[d1>>16&15|64]+uuid[d1>>24&255]+uuid[d2&63|128]+uuid[d2>>8&255]+uuid[d2>>16&255]+uuid[d2>>24&255]+uuid[d3&255]+uuid[d3>>8&255]+uuid[d3>>16&255]+uuid[d3>>24&255];else return uuid[d0&255]+uuid[d0>>8&255]+uuid[d0>>16&255]+uuid[d0>>24&255]+"-"+uuid[d1&255]+uuid[d1>>8&255]+"-"+uuid[d1>>
|
|
16&15|64]+uuid[d1>>24&255]+"-"+uuid[d2&63|128]+uuid[d2>>8&255]+"-"+uuid[d2>>16&255]+uuid[d2>>24&255]+uuid[d3&255]+uuid[d3>>8&255]+uuid[d3>>16&255]+uuid[d3>>24&255]}function CreateGUID(){function s4(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}var val="{"+s4()+s4()+"-"+s4()+"-"+s4()+"-"+s4()+"-"+s4()+s4()+s4()+"}";val=val.toUpperCase();return val}function CreateUInt32(){return Math.floor(Math.random()*4294967296)}function FixDurableId(val){var res=val&2147483647;return 2147483647!==
|
|
res?res:res-1}function CreateDurableId(){return FixDurableId(CreateUInt32())}function ExtendPrototype(dst,src){for(var k in src.prototype)dst.prototype[k]=src.prototype[k]}function isFileBuild(){return window["NATIVE_EDITOR_ENJINE"]&&!window["IS_NATIVE_EDITOR"]&&!window["DoctRendererMode"]}function checkCanvasInDiv(sDivId){var oDiv=document.getElementById(sDivId);if(!oDiv)return null;var aChildren=oDiv.children;var oCanvas=null,i;for(i=0;i<aChildren.length;++i)if(aChildren[i].nodeName&&aChildren[i].nodeName.toUpperCase()===
|
|
"CANVAS"){oCanvas=aChildren[i];break}if(null===oCanvas){var rPR=AscCommon.AscBrowser.retinaPixelRatio;oCanvas=document.createElement("canvas");oCanvas.style.width="100%";oCanvas.style.height="100%";oDiv.appendChild(oCanvas);oCanvas.width=Math.round(oCanvas.clientWidth*rPR);oCanvas.height=Math.round(oCanvas.clientHeight*rPR)}return oCanvas}var c_oLicenseResult={Error:1,Expired:2,Success:3,UnknownUser:4,Connections:5,ExpiredTrial:6,SuccessLimit:7,UsersCount:8,ConnectionsOS:9,UsersCountOS:10,ExpiredLimited:11};
|
|
var c_oRights={None:0,Edit:1,Review:2,Comment:3,View:4};var c_oLicenseMode={None:0,Trial:1,Developer:2,Limited:4};var EPluginDataType={none:"none",text:"text",ole:"ole",html:"html",desktop:"desktop"};function asc_CSignatureLine(){this.id=undefined;this.guid="";this.signer1="";this.signer2="";this.email="";this.instructions="";this.showDate=false;this.valid=0;this.image="";this.date="";this.isvisible=false;this.isrequested=false}asc_CSignatureLine.prototype.correct=function(){if(this.id==null)this.id=
|
|
"0";if(this.guid==null)this.guid="";if(this.signer1==null)this.signer1="";if(this.signer2==null)this.signer2="";if(this.email==null)this.email="";if(this.instructions==null)this.instructions="";if(this.showDate==null)this.showDate=false;if(this.valid==null)this.valid=0;if(this.image==null)this.image="";if(this.date==null)this.date="";if(this.isvisible==null)this.isvisible=false};asc_CSignatureLine.prototype.asc_getId=function(){return this.id};asc_CSignatureLine.prototype.asc_setId=function(v){this.id=
|
|
v};asc_CSignatureLine.prototype.asc_getGuid=function(){return this.guid};asc_CSignatureLine.prototype.asc_setGuid=function(v){this.guid=v};asc_CSignatureLine.prototype.asc_getSigner1=function(){return this.signer1};asc_CSignatureLine.prototype.asc_setSigner1=function(v){this.signer1=v};asc_CSignatureLine.prototype.asc_getSigner2=function(){return this.signer2};asc_CSignatureLine.prototype.asc_setSigner2=function(v){this.signer2=v};asc_CSignatureLine.prototype.asc_getEmail=function(){return this.email};
|
|
asc_CSignatureLine.prototype.asc_setEmail=function(v){this.email=v};asc_CSignatureLine.prototype.asc_getInstructions=function(){return this.instructions};asc_CSignatureLine.prototype.asc_setInstructions=function(v){this.instructions=v};asc_CSignatureLine.prototype.asc_getShowDate=function(){return this.showDate!==false};asc_CSignatureLine.prototype.asc_setShowDate=function(v){this.showDate=v};asc_CSignatureLine.prototype.asc_getValid=function(){return this.valid};asc_CSignatureLine.prototype.asc_setValid=
|
|
function(v){this.valid=v};asc_CSignatureLine.prototype.asc_getDate=function(){return this.date};asc_CSignatureLine.prototype.asc_setDate=function(v){this.date=v};asc_CSignatureLine.prototype.asc_getVisible=function(){return this.isvisible};asc_CSignatureLine.prototype.asc_setVisible=function(v){this.isvisible=v};asc_CSignatureLine.prototype.asc_getRequested=function(){return this.isrequested};asc_CSignatureLine.prototype.asc_setRequested=function(v){this.isrequested=v};function asc_CAscEditorPermissions(){this.licenseType=
|
|
c_oLicenseResult.Error;this.licenseMode=c_oLicenseMode.None;this.isLight=false;this.rights=c_oRights.None;this.canCoAuthoring=true;this.canReaderMode=true;this.canBranding=false;this.customization=false;this.isAutosaveEnable=true;this.AutosaveMinInterval=300;this.isAnalyticsEnable=false;this.buildVersion=null;this.buildNumber=null;this.betaVersion="false";return this}asc_CAscEditorPermissions.prototype.asc_getLicenseType=function(){return this.licenseType};asc_CAscEditorPermissions.prototype.asc_getCanCoAuthoring=
|
|
function(){return this.canCoAuthoring};asc_CAscEditorPermissions.prototype.asc_getCanReaderMode=function(){return this.canReaderMode};asc_CAscEditorPermissions.prototype.asc_getCanBranding=function(){return this.canBranding};asc_CAscEditorPermissions.prototype.asc_getCustomization=function(){return this.customization};asc_CAscEditorPermissions.prototype.asc_getIsAutosaveEnable=function(){return this.isAutosaveEnable};asc_CAscEditorPermissions.prototype.asc_getAutosaveMinInterval=function(){return this.AutosaveMinInterval};
|
|
asc_CAscEditorPermissions.prototype.asc_getIsAnalyticsEnable=function(){return this.isAnalyticsEnable};asc_CAscEditorPermissions.prototype.asc_getIsLight=function(){return this.isLight};asc_CAscEditorPermissions.prototype.asc_getLicenseMode=function(){return this.licenseMode};asc_CAscEditorPermissions.prototype.asc_getRights=function(){return this.rights};asc_CAscEditorPermissions.prototype.asc_getBuildVersion=function(){return this.buildVersion};asc_CAscEditorPermissions.prototype.asc_getBuildNumber=
|
|
function(){return this.buildNumber};asc_CAscEditorPermissions.prototype.asc_getIsBeta=function(){return this.betaVersion==="true"};asc_CAscEditorPermissions.prototype.setLicenseType=function(v){this.licenseType=v};asc_CAscEditorPermissions.prototype.setCanBranding=function(v){this.canBranding=v};asc_CAscEditorPermissions.prototype.setCustomization=function(v){this.customization=v};asc_CAscEditorPermissions.prototype.setIsLight=function(v){this.isLight=v};asc_CAscEditorPermissions.prototype.setLicenseMode=
|
|
function(v){this.licenseMode=v};asc_CAscEditorPermissions.prototype.setRights=function(v){this.rights=v};asc_CAscEditorPermissions.prototype.setBuildVersion=function(v){this.buildVersion=v};asc_CAscEditorPermissions.prototype.setBuildNumber=function(v){this.buildNumber=v};function asc_CAxNumFmt(oAxis){this.formatCode="General";this.sourceLinked=true;this.axis=oAxis;if(oAxis){var oNumFmt=oAxis.numFmt;if(oNumFmt){this.formatCode=oNumFmt.formatCode;this.sourceLinked=oNumFmt.sourceLinked}}}asc_CAxNumFmt.prototype.getFormatCode=
|
|
function(){if(this.sourceLinked)if(this.axis)return this.axis.getSourceFormatCode();else return"General";return this.formatCode||"General"};asc_CAxNumFmt.prototype.putFormatCode=function(v){this.formatCode=v};asc_CAxNumFmt.prototype.getFormatCellsInfo=function(){var num_format=AscCommon.oNumFormatCache.get(this.getFormatCode());return num_format.getTypeInfo()};asc_CAxNumFmt.prototype.getSourceLinked=function(){return this.sourceLinked};asc_CAxNumFmt.prototype.putSourceLinked=function(v){this.sourceLinked=
|
|
v};asc_CAxNumFmt.prototype.isEqual=function(v){if(!v)return false;return this.formatCode===v.formatCode&&this.sourceLinked===v.sourceLinked};asc_CAxNumFmt.prototype.isCorrect=function(){return typeof this.formatCode==="string"&&this.formatCode.length>0};function asc_ValAxisSettings(){this.minValRule=null;this.minVal=null;this.maxValRule=null;this.maxVal=null;this.invertValOrder=null;this.logScale=null;this.logBase=null;this.dispUnitsRule=null;this.units=null;this.showUnitsOnChart=null;this.majorTickMark=
|
|
null;this.minorTickMark=null;this.tickLabelsPos=null;this.crossesRule=null;this.crosses=null;this.axisType=c_oAscAxisType.val;this.show=true;this.label=null;this.gridlines=null;this.numFmt=null}asc_ValAxisSettings.prototype.isEqual=function(oPr){if(!oPr)return false;if(this.minValRule!==oPr.minValRule)return false;if(this.minVal!==oPr.minVal)return false;if(this.maxValRule!==oPr.maxValRule)return false;if(this.maxVal!==oPr.maxVal)return false;if(this.invertValOrder!==oPr.invertValOrder)return false;
|
|
if(this.logScale!==oPr.logScale)return false;if(this.logBase!==oPr.logBase)return false;if(this.dispUnitsRule!==oPr.dispUnitsRule)return false;if(this.units!==oPr.units)return false;if(this.showUnitsOnChart!==oPr.showUnitsOnChart)return false;if(this.majorTickMark!==oPr.majorTickMark)return false;if(this.minorTickMark!==oPr.minorTickMark)return false;if(this.tickLabelsPos!==oPr.tickLabelsPos)return false;if(this.crossesRule!==oPr.crossesRule)return false;if(this.crosses!==oPr.crosses)return false;
|
|
if(this.axisType!==oPr.axisType)return false;if(this.show!==oPr.show)return false;if(this.label!==oPr.label)return false;if(this.gridlines!==oPr.gridlines)return false;var bEqualNumFmt=false;if(this.numFmt)bEqualNumFmt=this.numFmt.isEqual(oPr.numFmt);else bEqualNumFmt=this.numFmt===oPr.numFmt;if(!bEqualNumFmt)return false;return true};asc_ValAxisSettings.prototype.putAxisType=function(v){this.axisType=v};asc_ValAxisSettings.prototype.putMinValRule=function(v){this.minValRule=v};asc_ValAxisSettings.prototype.putMinVal=
|
|
function(v){this.minVal=v};asc_ValAxisSettings.prototype.putMaxValRule=function(v){this.maxValRule=v};asc_ValAxisSettings.prototype.putMaxVal=function(v){this.maxVal=v};asc_ValAxisSettings.prototype.putInvertValOrder=function(v){this.invertValOrder=v};asc_ValAxisSettings.prototype.putLogScale=function(v){this.logScale=v};asc_ValAxisSettings.prototype.putLogBase=function(v){this.logBase=v};asc_ValAxisSettings.prototype.putUnits=function(v){this.units=v};asc_ValAxisSettings.prototype.putShowUnitsOnChart=
|
|
function(v){this.showUnitsOnChart=v};asc_ValAxisSettings.prototype.putMajorTickMark=function(v){this.majorTickMark=v};asc_ValAxisSettings.prototype.putMinorTickMark=function(v){this.minorTickMark=v};asc_ValAxisSettings.prototype.putTickLabelsPos=function(v){this.tickLabelsPos=v};asc_ValAxisSettings.prototype.putCrossesRule=function(v){this.crossesRule=v};asc_ValAxisSettings.prototype.putCrosses=function(v){this.crosses=v};asc_ValAxisSettings.prototype.putDispUnitsRule=function(v){this.dispUnitsRule=
|
|
v};asc_ValAxisSettings.prototype.getAxisType=function(){return this.axisType};asc_ValAxisSettings.prototype.getDispUnitsRule=function(){return this.dispUnitsRule};asc_ValAxisSettings.prototype.getMinValRule=function(){return this.minValRule};asc_ValAxisSettings.prototype.getMinVal=function(){return this.minVal};asc_ValAxisSettings.prototype.getMaxValRule=function(){return this.maxValRule};asc_ValAxisSettings.prototype.getMaxVal=function(){return this.maxVal};asc_ValAxisSettings.prototype.getInvertValOrder=
|
|
function(){return this.invertValOrder};asc_ValAxisSettings.prototype.getLogScale=function(){return this.logScale};asc_ValAxisSettings.prototype.getLogBase=function(){return this.logBase};asc_ValAxisSettings.prototype.getUnits=function(){return this.units};asc_ValAxisSettings.prototype.getShowUnitsOnChart=function(){return this.showUnitsOnChart};asc_ValAxisSettings.prototype.getMajorTickMark=function(){return this.majorTickMark};asc_ValAxisSettings.prototype.getMinorTickMark=function(){return this.minorTickMark};
|
|
asc_ValAxisSettings.prototype.getTickLabelsPos=function(){return this.tickLabelsPos};asc_ValAxisSettings.prototype.getCrossesRule=function(){return this.crossesRule};asc_ValAxisSettings.prototype.getCrosses=function(){return this.crosses};asc_ValAxisSettings.prototype.setDefault=function(){this.putMinValRule(Asc.c_oAscValAxisRule.auto);this.putMaxValRule(Asc.c_oAscValAxisRule.auto);this.putTickLabelsPos(Asc.c_oAscTickLabelsPos.TICK_LABEL_POSITION_NEXT_TO);this.putInvertValOrder(false);this.putDispUnitsRule(Asc.c_oAscValAxUnits.none);
|
|
this.putMajorTickMark(c_oAscTickMark.TICK_MARK_OUT);this.putMinorTickMark(c_oAscTickMark.TICK_MARK_NONE);this.putCrossesRule(Asc.c_oAscCrossesRule.auto);this.putShow(true)};asc_ValAxisSettings.prototype.getShow=function(){return this.show};asc_ValAxisSettings.prototype.putShow=function(val){this.show=val};asc_ValAxisSettings.prototype.getLabel=function(){return this.label};asc_ValAxisSettings.prototype.putLabel=function(v){this.label=v};asc_ValAxisSettings.prototype.getGridlines=function(){return this.gridlines};
|
|
asc_ValAxisSettings.prototype.putGridlines=function(v){this.gridlines=v};asc_ValAxisSettings.prototype.getNumFmt=function(){return this.numFmt};asc_ValAxisSettings.prototype.putNumFmt=function(v){this.numFmt=v};asc_ValAxisSettings.prototype.read=function(_params,_cursor){var _continue=true;while(_continue){var _attr=_params[_cursor.pos++];switch(_attr){case 0:{this.putMinValRule(_params[_cursor.pos++]);break}case 1:{this.putMinVal(_params[_cursor.pos++]);break}case 2:{this.putMaxValRule(_params[_cursor.pos++]);
|
|
break}case 3:{this.putMaxVal(_params[_cursor.pos++]);break}case 4:{this.putInvertValOrder(_params[_cursor.pos++]);break}case 5:{this.putLogScale(_params[_cursor.pos++]);break}case 6:{this.putLogBase(_params[_cursor.pos++]);break}case 7:{this.putDispUnitsRule(_params[_cursor.pos++]);break}case 8:{this.putUnits(_params[_cursor.pos++]);break}case 9:{this.putShowUnitsOnChart(_params[_cursor.pos++]);break}case 10:{this.putMajorTickMark(_params[_cursor.pos++]);break}case 11:{this.putMinorTickMark(_params[_cursor.pos++]);
|
|
break}case 12:{this.putTickLabelsPos(_params[_cursor.pos++]);break}case 13:{this.putCrossesRule(_params[_cursor.pos++]);break}case 14:{this.putCrosses(_params[_cursor.pos++]);break}case 15:{this.putAxisType(_params[_cursor.pos++]);break}case 255:default:{_continue=false;break}}}};asc_ValAxisSettings.prototype.write=function(_type,_stream){_stream["WriteByte"](_type);if(this.minValRule!==undefined&&this.minValRule!==null){_stream["WriteByte"](0);_stream["WriteLong"](this.minValRule)}if(this.minVal!==
|
|
undefined&&this.minVal!==null){_stream["WriteByte"](1);_stream["WriteLong"](this.minVal)}if(this.maxValRule!==undefined&&this.maxValRule!==null){_stream["WriteByte"](2);_stream["WriteLong"](this.maxValRule)}if(this.maxVal!==undefined&&this.maxVal!==null){_stream["WriteByte"](3);_stream["WriteLong"](this.maxVal)}if(this.invertValOrder!==undefined&&this.invertValOrder!==null){_stream["WriteByte"](4);_stream["WriteBool"](this.invertValOrder)}if(this.logScale!==undefined&&this.logScale!==null){_stream["WriteByte"](5);
|
|
_stream["WriteBool"](this.logScale)}if(this.logBase!==undefined&&this.logBase!==null){_stream["WriteByte"](6);_stream["WriteLong"](this.logBase)}if(this.dispUnitsRule!==undefined&&this.dispUnitsRule!==null){_stream["WriteByte"](7);_stream["WriteLong"](this.dispUnitsRule)}if(this.units!==undefined&&this.units!==null){_stream["WriteByte"](8);_stream["WriteLong"](this.units)}if(this.showUnitsOnChart!==undefined&&this.showUnitsOnChart!==null){_stream["WriteByte"](9);_stream["WriteBool"](this.showUnitsOnChart)}if(this.majorTickMark!==
|
|
undefined&&this.majorTickMark!==null){_stream["WriteByte"](10);_stream["WriteLong"](this.majorTickMark)}if(this.minorTickMark!==undefined&&this.minorTickMark!==null){_stream["WriteByte"](11);_stream["WriteLong"](this.minorTickMark)}if(this.tickLabelsPos!==undefined&&this.tickLabelsPos!==null){_stream["WriteByte"](12);_stream["WriteLong"](this.tickLabelsPos)}if(this.crossesRule!==undefined&&this.crossesRule!==null){_stream["WriteByte"](13);_stream["WriteLong"](this.crossesRule)}if(this.crosses!==undefined&&
|
|
this.crosses!==null){_stream["WriteByte"](14);_stream["WriteLong"](this.crosses)}if(this.axisType!==undefined&&this.axisType!==null){_stream["WriteByte"](15);_stream["WriteLong"](this.axisType)}_stream["WriteByte"](255)};function asc_CatAxisSettings(){this.intervalBetweenTick=null;this.intervalBetweenLabelsRule=null;this.intervalBetweenLabels=null;this.invertCatOrder=null;this.labelsAxisDistance=null;this.majorTickMark=null;this.minorTickMark=null;this.tickLabelsPos=null;this.crossesRule=null;this.crosses=
|
|
null;this.labelsPosition=null;this.axisType=c_oAscAxisType.cat;this.crossMinVal=null;this.crossMaxVal=null;this.show=true;this.label=null;this.gridlines=null;this.numFmt=null;this.auto=false}asc_CatAxisSettings.prototype.isEqual=function(oPr){if(!oPr)return false;if(this.intervalBetweenTick!==oPr.intervalBetweenTick)return false;if(this.intervalBetweenLabelsRule!==oPr.intervalBetweenLabelsRule)return false;if(this.intervalBetweenLabels!==oPr.intervalBetweenLabels)return false;if(this.invertCatOrder!==
|
|
oPr.invertCatOrder)return false;if(this.labelsAxisDistance!==oPr.labelsAxisDistance)return false;if(this.majorTickMark!==oPr.majorTickMark)return false;if(this.minorTickMark!==oPr.minorTickMark)return false;if(this.tickLabelsPos!==oPr.tickLabelsPos)return false;if(this.crossesRule!==oPr.crossesRule)return false;if(this.crosses!==oPr.crosses)return false;if(this.labelsPosition!==oPr.labelsPosition)return false;if(this.axisType!==oPr.axisType)return false;if(this.crossMinVal!==oPr.crossMinVal)return false;
|
|
if(this.crossMaxVal!==oPr.crossMaxVal)return false;if(this.show!==oPr.show)return false;if(this.label!==oPr.label)return false;if(this.gridlines!==oPr.gridlines)return false;if(this.auto!==oPr.auto)return false;var bEqualNumFmt=false;if(this.numFmt)bEqualNumFmt=this.numFmt.isEqual(oPr.numFmt);else bEqualNumFmt=this.numFmt===oPr.numFmt;if(!bEqualNumFmt)return false;return true};asc_CatAxisSettings.prototype.putIntervalBetweenTick=function(v){this.intervalBetweenTick=v};asc_CatAxisSettings.prototype.putIntervalBetweenLabelsRule=
|
|
function(v){this.intervalBetweenLabelsRule=v};asc_CatAxisSettings.prototype.putIntervalBetweenLabels=function(v){this.intervalBetweenLabels=v};asc_CatAxisSettings.prototype.putInvertCatOrder=function(v){this.invertCatOrder=v};asc_CatAxisSettings.prototype.putLabelsAxisDistance=function(v){this.labelsAxisDistance=v};asc_CatAxisSettings.prototype.putMajorTickMark=function(v){this.majorTickMark=v};asc_CatAxisSettings.prototype.putMinorTickMark=function(v){this.minorTickMark=v};asc_CatAxisSettings.prototype.putTickLabelsPos=
|
|
function(v){this.tickLabelsPos=v};asc_CatAxisSettings.prototype.putCrossesRule=function(v){this.crossesRule=v};asc_CatAxisSettings.prototype.putCrosses=function(v){this.crosses=v};asc_CatAxisSettings.prototype.putAxisType=function(v){this.axisType=v};asc_CatAxisSettings.prototype.putLabelsPosition=function(v){this.labelsPosition=v};asc_CatAxisSettings.prototype.getIntervalBetweenTick=function(v){return this.intervalBetweenTick};asc_CatAxisSettings.prototype.getIntervalBetweenLabelsRule=function(){return this.intervalBetweenLabelsRule};
|
|
asc_CatAxisSettings.prototype.getIntervalBetweenLabels=function(){return this.intervalBetweenLabels};asc_CatAxisSettings.prototype.getInvertCatOrder=function(){return this.invertCatOrder};asc_CatAxisSettings.prototype.getLabelsAxisDistance=function(){return this.labelsAxisDistance};asc_CatAxisSettings.prototype.getMajorTickMark=function(){return this.majorTickMark};asc_CatAxisSettings.prototype.getMinorTickMark=function(){return this.minorTickMark};asc_CatAxisSettings.prototype.getTickLabelsPos=function(){return this.tickLabelsPos};
|
|
asc_CatAxisSettings.prototype.getCrossesRule=function(){return this.crossesRule};asc_CatAxisSettings.prototype.getCrosses=function(){return this.crosses};asc_CatAxisSettings.prototype.getAxisType=function(){return this.axisType};asc_CatAxisSettings.prototype.getLabelsPosition=function(){return this.labelsPosition};asc_CatAxisSettings.prototype.getCrossMinVal=function(){return this.crossMinVal};asc_CatAxisSettings.prototype.getCrossMaxVal=function(){return this.crossMaxVal};asc_CatAxisSettings.prototype.putCrossMinVal=
|
|
function(val){this.crossMinVal=val};asc_CatAxisSettings.prototype.putCrossMaxVal=function(val){this.crossMaxVal=val};asc_CatAxisSettings.prototype.setDefault=function(){this.putIntervalBetweenLabelsRule(Asc.c_oAscBetweenLabelsRule.auto);this.putLabelsPosition(Asc.c_oAscLabelsPosition.betweenDivisions);this.putTickLabelsPos(Asc.c_oAscTickLabelsPos.TICK_LABEL_POSITION_NEXT_TO);this.putLabelsAxisDistance(100);this.putMajorTickMark(c_oAscTickMark.TICK_MARK_OUT);this.putMinorTickMark(c_oAscTickMark.TICK_MARK_NONE);
|
|
this.putIntervalBetweenTick(1);this.putCrossesRule(Asc.c_oAscCrossesRule.auto);this.putShow(true);this.putAuto(true)};asc_CatAxisSettings.prototype.getShow=function(){return this.show};asc_CatAxisSettings.prototype.putShow=function(val){this.show=val};asc_CatAxisSettings.prototype.getLabel=function(){return this.label};asc_CatAxisSettings.prototype.putLabel=function(v){this.label=v};asc_CatAxisSettings.prototype.getGridlines=function(){return this.gridlines};asc_CatAxisSettings.prototype.putGridlines=
|
|
function(v){this.gridlines=v};asc_CatAxisSettings.prototype.getNumFmt=function(){return this.numFmt};asc_CatAxisSettings.prototype.putNumFmt=function(v){this.numFmt=v};asc_CatAxisSettings.prototype.getAuto=function(){return this.auto};asc_CatAxisSettings.prototype.putAuto=function(v){this.auto=v};asc_CatAxisSettings.prototype.read=function(_params,_cursor){var _continue=true;while(_continue){var _attr=_params[_cursor.pos++];switch(_attr){case 0:{this.putIntervalBetweenTick(_params[_cursor.pos++]);
|
|
break}case 1:{this.putIntervalBetweenLabelsRule(_params[_cursor.pos++]);break}case 2:{this.putIntervalBetweenLabels(_params[_cursor.pos++]);break}case 3:{this.putInvertCatOrder(_params[_cursor.pos++]);break}case 4:{this.putLabelsAxisDistance(_params[_cursor.pos++]);break}case 5:{this.putLabelsPosition(_params[_cursor.pos++]);break}case 6:{this.putMajorTickMark(_params[_cursor.pos++]);break}case 7:{this.putMinorTickMark(_params[_cursor.pos++]);break}case 8:{this.putTickLabelsPos(_params[_cursor.pos++]);
|
|
break}case 9:{this.putCrossesRule(_params[_cursor.pos++]);break}case 10:{this.putCrosses(_params[_cursor.pos++]);break}case 11:{this.putAxisType(_params[_cursor.pos++]);break}case 12:{this.putCrossMinVal(_params[_cursor.pos++]);break}case 13:{this.putCrossMaxVal(_params[_cursor.pos++]);break}case 255:default:{_continue=false;break}}}};asc_CatAxisSettings.prototype.write=function(_type,_stream){_stream["WriteByte"](_type);if(this.getIntervalBetweenTick()!==undefined&&this.getIntervalBetweenTick()!==
|
|
null){_stream["WriteByte"](0);_stream["WriteDouble2"](this.getIntervalBetweenTick())}if(this.getIntervalBetweenLabelsRule()!==undefined&&this.getIntervalBetweenLabelsRule()!==null){_stream["WriteByte"](1);_stream["WriteLong"](this.getIntervalBetweenLabelsRule())}if(this.getIntervalBetweenLabels()!==undefined&&this.getIntervalBetweenLabels()!==null){_stream["WriteByte"](2);_stream["WriteDouble2"](this.getIntervalBetweenLabels())}if(this.getInvertCatOrder()!==undefined&&this.getInvertCatOrder()!==null){_stream["WriteByte"](3);
|
|
_stream["WriteBool"](this.getInvertCatOrder())}if(this.getLabelsAxisDistance()!==undefined&&this.getLabelsAxisDistance()!==null){_stream["WriteByte"](4);_stream["WriteDouble2"](this.getLabelsAxisDistance())}if(this.getTickLabelsPos()!==undefined&&this.getTickLabelsPos()!==null){_stream["WriteByte"](5);_stream["WriteLong"](this.getTickLabelsPos())}if(this.getMajorTickMark()!==undefined&&this.getMajorTickMark()!==null){_stream["WriteByte"](6);_stream["WriteLong"](this.getMajorTickMark())}if(this.getMinorTickMark()!==
|
|
undefined&&this.getMinorTickMark()!==null){_stream["WriteByte"](7);_stream["WriteLong"](this.getMinorTickMark())}if(this.getTickLabelsPos()!==undefined&&this.getTickLabelsPos()!==null){_stream["WriteByte"](8);_stream["WriteLong"](this.getTickLabelsPos())}if(this.getCrossesRule()!==undefined&&this.getCrossesRule()!==null){_stream["WriteByte"](9);_stream["WriteLong"](this.getCrossesRule())}if(this.getCrosses()!==undefined&&this.getCrosses()!==null){_stream["WriteByte"](10);_stream["WriteLong"](this.getCrosses())}if(this.getAxisType()!==
|
|
undefined&&this.getAxisType()!==null){_stream["WriteByte"](11);_stream["WriteLong"](this.getAxisType())}if(this.getCrossMinVal()!==undefined&&this.getCrossMinVal()!==null){_stream["WriteByte"](12);_stream["WriteLong"](this.getCrossMinVal())}if(this.getCrossMaxVal()!==undefined&&this.getCrossMaxVal()!==null){_stream["WriteByte"](13);_stream["WriteLong"](this.getCrossMaxVal())}_stream["WriteByte"](255)};function asc_ChartSettings(){this.style=null;this.title=null;this.rowCols=null;this.legendPos=null;
|
|
this.dataLabelsPos=null;this.type=null;this.showSerName=null;this.showCatName=null;this.showVal=null;this.separator=null;this.inColumns=null;this.sRange=null;this.showMarker=null;this.bLine=null;this.smooth=null;this.chartSpace=null;this.bStartEdit=false;this.horizontalAxes=[];this.verticalAxes=[];this.depthAxes=[]}asc_ChartSettings.prototype.putHorAxisProps=function(v){if(!AscCommon.isRealObject(v))this.horizontalAxes.length=0;else this.horizontalAxes[0]=v};asc_ChartSettings.prototype.getHorAxisProps=
|
|
function(){return this.horizontalAxes[0]||null};asc_ChartSettings.prototype.putVertAxisProps=function(v){if(!AscCommon.isRealObject(v))this.verticalAxes.length=0;else this.verticalAxes[0]=v};asc_ChartSettings.prototype.getVertAxisProps=function(){return this.verticalAxes[0]||null};asc_ChartSettings.prototype.putShowHorAxis=function(v){var oAx=this.horizontalAxes[0];if(oAx)oAx.putShow(v)};asc_ChartSettings.prototype.getShowHorAxis=function(){var oAx=this.horizontalAxes[0];if(oAx)return oAx.getShow();
|
|
return false};asc_ChartSettings.prototype.putShowVerAxis=function(v){var oAx=this.verticalAxes[0];if(oAx)oAx.putShow(v)};asc_ChartSettings.prototype.getShowVerAxis=function(){var oAx=this.verticalAxes[0];if(oAx)return oAx.getShow();return false};asc_ChartSettings.prototype.putHorAxisLabel=function(v){var oAx=this.horizontalAxes[0];if(oAx)oAx.putLabel(v)};asc_ChartSettings.prototype.getHorAxisLabel=function(){var oAx=this.horizontalAxes[0];if(oAx)return oAx.getLabel();return null};asc_ChartSettings.prototype.putVertAxisLabel=
|
|
function(v){var oAx=this.verticalAxes[0];if(oAx)return oAx.getLabel();return null};asc_ChartSettings.prototype.getVertAxisLabel=function(){var oAx=this.verticalAxes[0];if(oAx)return oAx.getLabel();return null};asc_ChartSettings.prototype.putHorGridLines=function(v){var oAx=this.verticalAxes[0];if(oAx)oAx.putGridlines(v)};asc_ChartSettings.prototype.getHorGridLines=function(){var oAx=this.verticalAxes[0];if(oAx)return oAx.getGridlines();return null};asc_ChartSettings.prototype.putVertGridLines=function(v){var oAx=
|
|
this.horizontalAxes[0];if(oAx)oAx.putGridlines(v)};asc_ChartSettings.prototype.getVertGridLines=function(){var oAx=this.horizontalAxes[0];if(oAx)return oAx.getGridlines();return null};asc_ChartSettings.prototype.getHorAxesProps=function(){return this.horizontalAxes};asc_ChartSettings.prototype.getVertAxesProps=function(){return this.verticalAxes};asc_ChartSettings.prototype.getDepthAxesProps=function(){return this.depthAxes};asc_ChartSettings.prototype.addHorAxesProps=function(v){this.horizontalAxes.push(v)};
|
|
asc_ChartSettings.prototype.addVertAxesProps=function(v){this.verticalAxes.push(v)};asc_ChartSettings.prototype.addDepthAxesProps=function(v){this.depthAxes.push(v)};asc_ChartSettings.prototype.removeAllAxesProps=function(v){this.horizontalAxes.length=0;this.verticalAxes.length=0;this.depthAxes.length=0};asc_ChartSettings.prototype.equalBool=function(a,b){return!!a===!!b};asc_ChartSettings.prototype.isEqual=function(oPr){if(!oPr)return false;if(this.style!==oPr.style)return false;if(this.title!==
|
|
oPr.title)return false;if(this.rowCols!==oPr.rowCols)return false;if(this.legendPos!==oPr.legendPos)return false;if(this.dataLabelsPos!==oPr.dataLabelsPos)return false;if(this.type!==oPr.type)return false;if(!this.equalBool(this.showSerName,oPr.showSerName))return false;if(!this.equalBool(this.showCatName,oPr.showCatName))return false;if(!this.equalBool(this.showVal,oPr.showVal))return false;if(this.separator!==oPr.separator&&!(this.separator===" "&&oPr.separator==null||oPr.separator===" "&&this.separator==
|
|
null))return false;if(this.sRange!==oPr.sRange)return false;if(!this.equalBool(this.inColumns,oPr.inColumns))return false;if(!this.equalBool(this.showMarker,oPr.showMarker))return false;if(!this.equalBool(this.bLine,oPr.bLine))return false;if(!this.equalBool(this.smooth,oPr.smooth))return false;if(this.verticalAxes.length!==oPr.verticalAxes.length)return false;if(this.horizontalAxes.length!==oPr.horizontalAxes.length)return false;var nAx;for(nAx=0;nAx<this.verticalAxes.length;++nAx)if(!this.verticalAxes[nAx].isEqual(oPr.verticalAxes[nAx]))return false;
|
|
for(nAx=0;nAx<this.horizontalAxes.length;++nAx)if(!this.horizontalAxes[nAx].isEqual(oPr.horizontalAxes[nAx]))return false;return true};asc_ChartSettings.prototype.isEmpty=function(){return this.isEqual(new asc_ChartSettings)};asc_ChartSettings.prototype.putShowMarker=function(v){this.showMarker=v};asc_ChartSettings.prototype.getShowMarker=function(){return this.showMarker};asc_ChartSettings.prototype.putLine=function(v){this.bLine=v};asc_ChartSettings.prototype.getLine=function(){return this.bLine};
|
|
asc_ChartSettings.prototype.putRanges=function(aRanges){if(Array.isArray(aRanges)&&aRanges.length>0){var sRange="=";for(var nRange=0;nRange<aRanges.length;++nRange){if(nRange>0)sRange+=",";sRange+=aRanges[nRange]}this.sRange=sRange}else this.sRange=null};asc_ChartSettings.prototype.getRanges=function(){var sRange=this.sRange;if(typeof sRange==="string"&&sRange>0){if(sRange.charAt(0)==="=")sRange=sRange.slice(1);return sRange.split(",")}else return[]};asc_ChartSettings.prototype.putSmooth=function(v){this.smooth=
|
|
v};asc_ChartSettings.prototype.getSmooth=function(){return this.smooth};asc_ChartSettings.prototype.putStyle=function(index){if(!AscFormat.isRealNumber(index)){this.style=null;return}this.style=parseInt(index,10);if(this.bStartEdit&&this.chartSpace)if(AscFormat.isRealNumber(this.style)){var aStyle=AscCommon.g_oChartStyles[this.type]&&AscCommon.g_oChartStyles[this.type][this.style-1];if(Array.isArray(aStyle)){this.chartSpace.applyChartStyleByIds(aStyle);this.updateChart()}}};asc_ChartSettings.prototype.getStyle=
|
|
function(){return this.style};asc_ChartSettings.prototype.putRange=function(range){this.sRange=range};asc_ChartSettings.prototype.setRange=function(sRange){if(this.chartSpace){this.chartSpace.setRange(sRange);this.updateChart()}};asc_ChartSettings.prototype.isValidRange=function(sRange){return AscFormat.isValidChartRange(sRange)};asc_ChartSettings.prototype.getRange=function(){if(this.chartSpace)return this.chartSpace.getCommonRange();return this.sRange};asc_ChartSettings.prototype.putInColumns=function(inColumns){this.inColumns=
|
|
inColumns};asc_ChartSettings.prototype.getInColumns=function(){return this.inColumns};asc_ChartSettings.prototype.getInRows=function(){if(this.inColumns===true||this.inColumns===false)return!this.inColumns;return null};asc_ChartSettings.prototype.putTitle=function(v){this.title=v};asc_ChartSettings.prototype.getTitle=function(){return this.title};asc_ChartSettings.prototype.putRowCols=function(v){this.rowCols=v};asc_ChartSettings.prototype.getRowCols=function(){return this.rowCols};asc_ChartSettings.prototype.putLegendPos=
|
|
function(v){this.legendPos=v};asc_ChartSettings.prototype.putDataLabelsPos=function(v){this.dataLabelsPos=v};asc_ChartSettings.prototype.getLegendPos=function(v){return this.legendPos};asc_ChartSettings.prototype.getDataLabelsPos=function(v){return this.dataLabelsPos};asc_ChartSettings.prototype.getType=function(){if(this.chartSpace)return this.chartSpace.getChartType();return this.type};asc_ChartSettings.prototype.checkParams=function(){if(this.type===null||this.type===Asc.c_oAscChartTypeSettings.comboAreaBar||
|
|
this.type===Asc.c_oAscChartTypeSettings.comboBarLine||this.type===Asc.c_oAscChartTypeSettings.comboBarLineSecondary||this.type===Asc.c_oAscChartTypeSettings.comboCustom)return;if(AscFormat.getIsMarkerByType(this.type))this.showMarker=true;else this.showMarker=false;if(AscFormat.getIsSmoothByType(this.type))this.smooth=true;else this.smooth=false;if(AscFormat.getIsLineByType(this.type))this.bLine=true;else this.bLine=false};asc_ChartSettings.prototype.putType=function(v){this.type=v;this.checkParams()};
|
|
asc_ChartSettings.prototype.putShowSerName=function(v){this.showSerName=v};asc_ChartSettings.prototype.putShowCatName=function(v){this.showCatName=v};asc_ChartSettings.prototype.putShowVal=function(v){this.showVal=v};asc_ChartSettings.prototype.getShowSerName=function(){return this.showSerName};asc_ChartSettings.prototype.getShowCatName=function(){return this.showCatName};asc_ChartSettings.prototype.getShowVal=function(){return this.showVal};asc_ChartSettings.prototype.putSeparator=function(v){this.separator=
|
|
v};asc_ChartSettings.prototype.getSeparator=function(){return this.separator};asc_ChartSettings.prototype.sendErrorOnChangeType=function(nType){var oApi=Asc.editor||editor;if(oApi){oApi.sendEvent("asc_onError",nType,Asc.c_oAscError.Level.NoCritical);if(oApi.UpdateInterfaceState)oApi.UpdateInterfaceState()}};asc_ChartSettings.prototype.changeType=function(type){if(this.chartSpace){if(type===Asc.c_oAscChartTypeSettings.stock)if(!this.chartSpace.canChangeToStockChart()){this.sendErrorOnChangeType(Asc.c_oAscError.ID.StockChartError);
|
|
return false}if(type===Asc.c_oAscChartTypeSettings.comboCustom||type===Asc.c_oAscChartTypeSettings.comboAreaBar||type===Asc.c_oAscChartTypeSettings.comboBarLine||type===Asc.c_oAscChartTypeSettings.comboBarLineSecondary)if(!this.chartSpace.canChangeToComboChart()){this.sendErrorOnChangeType(Asc.c_oAscError.ID.ComboSeriesError);return false}this.putType(type);if(this.chartSpace){var oController=this.chartSpace.getDrawingObjectsController();if(oController){var oThis=this;var oChartSpace=this.chartSpace;
|
|
oController.checkSelectedObjectsAndCallback(function(){oChartSpace.changeChartType(type);oThis.updateChart();var oApi=Asc.editor||editor;if(oApi)if(oApi.UpdateInterfaceState)oApi.UpdateInterfaceState()},[],false,0,[])}}}else this.putType(type);return true};asc_ChartSettings.prototype.getSeries=function(){if(this.chartSpace)return this.chartSpace.getAllSeries();return[]};asc_ChartSettings.prototype.getCatValues=function(){if(this.chartSpace)return this.chartSpace.getCatValues();return[]};asc_ChartSettings.prototype.getCatFormula=
|
|
function(){if(this.chartSpace)return this.chartSpace.getCatFormula();return""};asc_ChartSettings.prototype.setCatFormula=function(sFormula){if(this.chartSpace)return this.chartSpace.setCatFormula(sFormula);this.updateChart()};asc_ChartSettings.prototype.isValidCatFormula=function(sFormula){if(sFormula===""||sFormula===null)return Asc.c_oAscError.ID.No;return AscFormat.ExecuteNoHistory(function(){var oCat=new AscFormat.CCat;return oCat.setValues(sFormula).getError()},this,[])};asc_ChartSettings.prototype.switchRowCol=
|
|
function(){var nError=Asc.c_oAscError.ID.No;if(this.chartSpace)nError=this.chartSpace.switchRowCol();this.updateChart();return nError};asc_ChartSettings.prototype.addSeries=function(){var oRet=null;if(this.chartSpace)oRet=this.chartSpace.addNewSeries();this.updateChart();return oRet};asc_ChartSettings.prototype.addScatterSeries=function(){var oRet=null;if(this.chartSpace)oRet=this.chartSpace.addNewSeries();this.updateChart();return oRet};asc_ChartSettings.prototype.startEdit=function(){this.bStartEdit=
|
|
true;AscCommon.History.Create_NewPoint();AscCommon.History.StartTransaction()};asc_ChartSettings.prototype.endEdit=function(){if(AscCommon.History.Is_LastPointEmpty()){this.cancelEdit();return}this.bStartEdit=false;AscCommon.History.EndTransaction();this.updateChart()};asc_ChartSettings.prototype.cancelEdit=function(){this.bStartEdit=false;AscCommon.History.EndTransaction();AscCommon.History.Undo();AscCommon.History.Clear_Redo();AscCommon.History._sendCanUndoRedo();this.updateChart()};asc_ChartSettings.prototype.startEditData=
|
|
function(){AscCommon.History.SavePointIndex()};asc_ChartSettings.prototype.cancelEditData=function(){AscCommon.History.UndoToPointIndex();this.updateChart()};asc_ChartSettings.prototype.endEditData=function(){AscCommon.History.ClearPointIndex();this.updateChart()};asc_ChartSettings.prototype.updateChart=function(){if(this.chartSpace)this.chartSpace.onDataUpdate()};asc_ChartSettings.prototype.read=function(_params,_cursor){var _continue=true;var oAxPr;var nHorAxislabel=null,nVertAxisLabel=null;var nHorGridlines=
|
|
null,nVertGridlines=null;while(_continue){var _attr=_params[_cursor.pos++];switch(_attr){case 0:{this.putStyle(_params[_cursor.pos++]);break}case 1:{this.putTitle(_params[_cursor.pos++]);break}case 2:{this.putRowCols(_params[_cursor.pos++]);break}case 3:{nHorAxislabel=_params[_cursor.pos++];break}case 4:{nVertAxisLabel=_params[_cursor.pos++];break}case 5:{this.putLegendPos(_params[_cursor.pos++]);break}case 6:{this.putDataLabelsPos(_params[_cursor.pos++]);break}case 7:{_cursor.pos++;break}case 8:{_cursor.pos++;
|
|
break}case 9:{nHorGridlines=_params[_cursor.pos++];break}case 10:{nVertGridlines=_params[_cursor.pos++];break}case 11:{this.putType(_params[_cursor.pos++]);break}case 12:{this.putShowSerName(_params[_cursor.pos++]);break}case 13:{this.putShowCatName(_params[_cursor.pos++]);break}case 14:{this.putShowVal(_params[_cursor.pos++]);break}case 15:{this.putSeparator(_params[_cursor.pos++]);break}case 16:{oAxPr=new asc_ValAxisSettings;oAxPr.read(_params,_cursor);this.addHorAxesProps(oAxPr);break}case 17:{oAxPr=
|
|
new asc_ValAxisSettings;oAxPr.read(_params,_cursor);this.addVertAxesProps(oAxPr);break}case 18:{this.putRange(_params[_cursor.pos++]);break}case 19:{this.putInColumns(_params[_cursor.pos++]);break}case 20:{this.putShowMarker(_params[_cursor.pos++]);break}case 21:{this.putLine(_params[_cursor.pos++]);break}case 22:{this.putSmooth(_params[_cursor.pos++]);break}case 23:{oAxPr=new asc_CatAxisSettings;oAxPr.read(_params,_cursor);this.addHorAxesProps(oAxPr);break}case 24:{oAxPr=new asc_CatAxisSettings;
|
|
oAxPr.read(_params,_cursor);this.addVertAxesProps(oAxPr);break}case 255:default:{_continue=false;break}}}oAxPr=this.horizontalAxes[0];if(oAxPr){if(nHorAxislabel!==null)oAxPr.putLabel(nHorAxislabel);if(nVertGridlines!==null)oAxPr.putGridlines(nVertGridlines)}oAxPr=this.verticalAxes[0];if(oAxPr){if(nVertAxisLabel!==null)oAxPr.putLabel(nVertAxisLabel);if(nHorGridlines!==null)oAxPr.putGridlines(nHorGridlines)}};asc_ChartSettings.prototype.write=function(_type,_stream){_stream["WriteByte"](_type);if(this.style!==
|
|
undefined&&this.style!==null){_stream["WriteByte"](0);_stream["WriteLong"](this.style)}if(this.title!==undefined&&this.title!==null){_stream["WriteByte"](1);_stream["WriteLong"](this.title)}if(this.rowCols!==undefined&&this.rowCols!==null){_stream["WriteByte"](2);_stream["WriteLong"](this.rowCols)}var nLabel=this.horizontalAxes[0]&&this.horizontalAxes[0].getLabel();if(nLabel!==undefined&&nLabel!==null){_stream["WriteByte"](3);_stream["WriteLong"](nLabel)}nLabel=this.verticalAxes[0]&&this.verticalAxes[0].getLabel();
|
|
if(nLabel!==undefined&&nLabel!==null){_stream["WriteByte"](4);_stream["WriteLong"](nLabel)}if(this.legendPos!==undefined&&this.legendPos!==null){_stream["WriteByte"](5);_stream["WriteLong"](this.legendPos)}if(this.dataLabelsPos!==undefined&&this.dataLabelsPos!==null){_stream["WriteByte"](6);_stream["WriteLong"](this.dataLabelsPos)}var nGridlines=this.verticalAxes[0]&&this.verticalAxes[0].getGridlines();if(nGridlines!==undefined&&nGridlines!==null){_stream["WriteByte"](9);_stream["WriteLong"](nGridlines)}nGridlines=
|
|
this.horizontalAxes[0]&&this.horizontalAxes[0].getGridlines();if(nGridlines!==undefined&&nGridlines!==null){_stream["WriteByte"](10);_stream["WriteLong"](nGridlines)}if(this.type!==undefined&&this.type!==null){_stream["WriteByte"](11);_stream["WriteLong"](this.type)}if(this.showSerName!==undefined&&this.showSerName!==null){_stream["WriteByte"](12);_stream["WriteBool"](this.showSerName)}if(this.showCatName!==undefined&&this.showCatName!==null){_stream["WriteByte"](13);_stream["WriteBool"](this.showCatName)}if(this.showVal!==
|
|
undefined&&this.showVal!==null){_stream["WriteByte"](14);_stream["WriteBool"](this.showVal)}if(this.separator!==undefined&&this.separator!==null){_stream["WriteByte"](15);_stream["WriteString2"](this.separator)}var oHorAx=this.getHorAxesProps()[0];var oVertAx=this.getVertAxesProps()[0];if(undefined!=oHorAx&&null!=oHorAx&&oHorAx.getAxisType()==Asc.c_oAscAxisType.val)oHorAx.write(16,_stream);if(undefined!=oVertAx&&null!=oVertAx&&oVertAx.getAxisType()==Asc.c_oAscAxisType.val)oVertAx.write(17,_stream);
|
|
var sRange=this.getRange();if(sRange!==undefined&&sRange!==null){_stream["WriteByte"](18);_stream["WriteString2"](sRange)}if(this.inColumns!==undefined&&this.inColumns!==null){_stream["WriteByte"](19);_stream["WriteBool"](this.inColumns)}if(this.showMarker!==undefined&&this.showMarker!==null){_stream["WriteByte"](20);_stream["WriteBool"](this.showMarker)}if(this.bLine!==undefined&&this.bLine!==null){_stream["WriteByte"](21);_stream["WriteBool"](this.bLine)}if(this.smooth!==undefined&&this.smooth!==
|
|
null){_stream["WriteByte"](22);_stream["WriteBool"](this.showVal)}if(undefined!=oHorAx&&null!=oHorAx&&oHorAx.getAxisType()==Asc.c_oAscAxisType.cat)oHorAx.write(23,_stream);if(undefined!=oVertAx&&null!=oVertAx&&oVertAx.getAxisType()==Asc.c_oAscAxisType.cat)oVertAx.write(24,_stream);_stream["WriteByte"](255)};function asc_CRect(x,y,width,height){this._x=x;this._y=y;this._width=width;this._height=height}asc_CRect.prototype={asc_getX:function(){return this._x},asc_getY:function(){return this._y},asc_getWidth:function(){return this._width},
|
|
asc_getHeight:function(){return this._height}};function CColor(r,g,b,a){this.r=undefined==r?0:r;this.g=undefined==g?0:g;this.b=undefined==b?0:b;this.a=undefined==a?1:a}CColor.prototype={constructor:CColor,getR:function(){return this.r},get_r:function(){return this.r},put_r:function(v){this.r=v;this.hex=undefined},getG:function(){return this.g},get_g:function(){return this.g},put_g:function(v){this.g=v;this.hex=undefined},getB:function(){return this.b},get_b:function(){return this.b},put_b:function(v){this.b=
|
|
v;this.hex=undefined},getA:function(){return this.a},get_hex:function(){if(!this.hex){var r=this.r.toString(16);var g=this.g.toString(16);var b=this.b.toString(16);this.hex=(r.length==1?"0"+r:r)+(g.length==1?"0"+g:g)+(b.length==1?"0"+b:b)}return this.hex},Compare:function(Color){return this.r===Color.r&&this.g===Color.g&&this.b===Color.b&&this.a===Color.a},Copy:function(){return new CColor(this.r,this.g,this.b,this.a)},getVal:function(){return(this.r<<16&16711680)+(this.g<<8&65280)+this.b}};function asc_CColor(){this.type=
|
|
c_oAscColor.COLOR_TYPE_SRGB;this.value=null;this.r=0;this.g=0;this.b=0;this.a=255;this.Auto=false;this.Mods=[];this.ColorSchemeId=-1;if(1===arguments.length){this.r=arguments[0].r;this.g=arguments[0].g;this.b=arguments[0].b}else{if(3<=arguments.length){this.r=arguments[0];this.g=arguments[1];this.b=arguments[2]}if(4===arguments.length)this.a=arguments[3]}}asc_CColor.prototype={constructor:asc_CColor,asc_getR:function(){return this.r},asc_putR:function(v){this.r=v;this.hex=undefined},asc_getG:function(){return this.g},
|
|
asc_putG:function(v){this.g=v;this.hex=undefined},asc_getB:function(){return this.b},asc_putB:function(v){this.b=v;this.hex=undefined},asc_getA:function(){return this.a},asc_putA:function(v){this.a=v;this.hex=undefined},asc_getType:function(){return this.type},asc_putType:function(v){this.type=v},asc_getValue:function(){return this.value},asc_putValue:function(v){this.value=v},asc_getHex:function(){if(!this.hex){var a=this.a.toString(16);var r=this.r.toString(16);var g=this.g.toString(16);var b=this.b.toString(16);
|
|
this.hex=(a.length==1?"0"+a:a)+(r.length==1?"0"+r:r)+(g.length==1?"0"+g:g)+(b.length==1?"0"+b:b)}return this.hex},asc_getColor:function(){return new CColor(this.r,this.g,this.b)},asc_putAuto:function(v){this.Auto=v},asc_getAuto:function(){return this.Auto}};function asc_CTextBorder(obj){if(obj){if(obj.Color instanceof asc_CColor)this.Color=obj.Color;else this.Color=undefined!=obj.Color&&null!=obj.Color?CreateAscColorCustom(obj.Color.r,obj.Color.g,obj.Color.b):null;this.Size=undefined!=obj.Size?obj.Size:
|
|
null;this.Value=undefined!=obj.Value?obj.Value:null;this.Space=undefined!=obj.Space?obj.Space:null}else{this.Color=CreateAscColorCustom(0,0,0);this.Size=.5*window["AscCommonWord"].g_dKoef_pt_to_mm;this.Value=window["AscCommonWord"].border_Single;this.Space=0}}asc_CTextBorder.prototype.asc_getColor=function(){return this.Color};asc_CTextBorder.prototype.asc_putColor=function(v){this.Color=v};asc_CTextBorder.prototype.asc_getSize=function(){return this.Size};asc_CTextBorder.prototype.asc_putSize=function(v){this.Size=
|
|
v};asc_CTextBorder.prototype.asc_getValue=function(){return this.Value};asc_CTextBorder.prototype.asc_putValue=function(v){this.Value=v};asc_CTextBorder.prototype.asc_getSpace=function(){return this.Space};asc_CTextBorder.prototype.asc_putSpace=function(v){this.Space=v};asc_CTextBorder.prototype.asc_getForSelectedCells=function(){return this.ForSelectedCells};asc_CTextBorder.prototype.asc_putForSelectedCells=function(v){this.ForSelectedCells=v};function asc_CParagraphBorders(obj){if(obj){this.Left=
|
|
undefined!=obj.Left&&null!=obj.Left?new asc_CTextBorder(obj.Left):null;this.Top=undefined!=obj.Top&&null!=obj.Top?new asc_CTextBorder(obj.Top):null;this.Right=undefined!=obj.Right&&null!=obj.Right?new asc_CTextBorder(obj.Right):null;this.Bottom=undefined!=obj.Bottom&&null!=obj.Bottom?new asc_CTextBorder(obj.Bottom):null;this.Between=undefined!=obj.Between&&null!=obj.Between?new asc_CTextBorder(obj.Between):null}else{this.Left=null;this.Top=null;this.Right=null;this.Bottom=null;this.Between=null}}
|
|
asc_CParagraphBorders.prototype={asc_getLeft:function(){return this.Left},asc_putLeft:function(v){this.Left=v?new asc_CTextBorder(v):null},asc_getTop:function(){return this.Top},asc_putTop:function(v){this.Top=v?new asc_CTextBorder(v):null},asc_getRight:function(){return this.Right},asc_putRight:function(v){this.Right=v?new asc_CTextBorder(v):null},asc_getBottom:function(){return this.Bottom},asc_putBottom:function(v){this.Bottom=v?new asc_CTextBorder(v):null},asc_getBetween:function(){return this.Between},
|
|
asc_putBetween:function(v){this.Between=v?new asc_CTextBorder(v):null}};function asc_CListType(obj){if(obj){this.Type=undefined==obj.Type?null:obj.Type;this.SubType=undefined==obj.Type?null:obj.SubType}else{this.Type=null;this.SubType=null}}asc_CListType.prototype.asc_getListType=function(){return this.Type};asc_CListType.prototype.asc_getListSubType=function(){return this.SubType};function asc_CTextFontFamily(obj){if(obj){this.Name=undefined!=obj.Name?obj.Name:null;this.Index=undefined!=obj.Index?
|
|
obj.Index:null}else{this.Name="Times New Roman";this.Index=-1}}asc_CTextFontFamily.prototype={asc_getName:function(){var _name=AscFonts.g_fontApplication?AscFonts.g_fontApplication.NameToInterface[this.Name]:null;return _name?_name:this.Name},asc_getIndex:function(){return this.Index},asc_putName:function(v){this.Name=v},asc_putIndex:function(v){this.Index=v}};function asc_CParagraphTab(Pos,Value,Leader){this.Pos=Pos;this.Value=Value;this.Leader=Leader}asc_CParagraphTab.prototype.asc_getValue=function(){return this.Value};
|
|
asc_CParagraphTab.prototype.asc_putValue=function(v){this.Value=v};asc_CParagraphTab.prototype.asc_getPos=function(){return this.Pos};asc_CParagraphTab.prototype.asc_putPos=function(v){this.Pos=v};asc_CParagraphTab.prototype.asc_getLeader=function(){if(Asc.c_oAscTabLeader.Heavy===this.Leader)return Asc.c_oAscTabLeader.Underscore;return this.Leader};asc_CParagraphTab.prototype.asc_putLeader=function(v){this.Leader=v};function asc_CParagraphTabs(obj){this.Tabs=[];if(undefined!=obj){var Count=obj.Tabs.length;
|
|
for(var Index=0;Index<Count;Index++)this.Tabs.push(new asc_CParagraphTab(obj.Tabs[Index].Pos,obj.Tabs[Index].Value,obj.Tabs[Index].Leader))}}asc_CParagraphTabs.prototype={asc_getCount:function(){return this.Tabs.length},asc_getTab:function(Index){return this.Tabs[Index]},asc_addTab:function(Tab){this.Tabs.push(Tab)},asc_clear:function(){this.Tabs.length=0}};function asc_CParagraphShd(obj){if(obj){this.Value=undefined!=obj.Value?obj.Value:null;if(null!==this.Value&&this.Value!==Asc.c_oAscShd.Nil)this.Value=
|
|
Asc.c_oAscShd.Clear;if(obj.GetSimpleColor)if(Asc.c_oAscShd.Clear===obj.Value&&obj.Unifill&&obj.Unifill.fill&&obj.Unifill.fill.type===c_oAscFill.FILL_TYPE_SOLID&&obj.Unifill.fill.color)this.Color=CreateAscColor(obj.Unifill.fill.color);else{var oColor=obj.GetSimpleColor();this.Color=CreateAscColorCustom(oColor.r,oColor.g,oColor.b,oColor.Auto)}else if(obj.Unifill&&obj.Unifill.fill&&obj.Unifill.fill.type===c_oAscFill.FILL_TYPE_SOLID&&obj.Unifill.fill.color)this.Color=CreateAscColor(obj.Unifill.fill.color);
|
|
else this.Color=undefined!=obj.Color&&null!=obj.Color?CreateAscColorCustom(obj.Color.r,obj.Color.g,obj.Color.b):null}else{this.Value=Asc.c_oAscShdNil;this.Color=CreateAscColorCustom(255,255,255);this.Fill=CreateAscColorCustom(255,255,255)}}asc_CParagraphShd.prototype={asc_getValue:function(){return this.Value},asc_putValue:function(v){this.Value=v},asc_getColor:function(){return this.Color},asc_putColor:function(v){this.Color=v?v:null;this.Fill=v?v:null}};function asc_CParagraphFrame(obj){if(obj){this.FromDropCapMenu=
|
|
false;this.DropCap=obj.DropCap;this.H=obj.H;this.HAnchor=obj.HAnchor;this.HRule=obj.HRule;this.HSpace=obj.HSpace;this.Lines=obj.Lines;this.VAnchor=obj.VAnchor;this.VSpace=obj.VSpace;this.W=obj.W;this.Wrap=obj.Wrap;this.X=obj.X;this.XAlign=obj.XAlign;this.Y=obj.Y;this.YAlign=obj.YAlign;this.Brd=undefined!=obj.Brd&&null!=obj.Brd?new asc_CParagraphBorders(obj.Brd):null;this.Shd=undefined!=obj.Shd&&null!=obj.Shd?new asc_CParagraphShd(obj.Shd):null;this.FontFamily=undefined!=obj.FontFamily&&null!=obj.FontFamily?
|
|
new asc_CTextFontFamily(obj.FontFamily):null}else{this.FromDropCapMenu=false;this.DropCap=undefined;this.H=undefined;this.HAnchor=undefined;this.HRule=undefined;this.HSpace=undefined;this.Lines=undefined;this.VAnchor=undefined;this.VSpace=undefined;this.W=undefined;this.Wrap=undefined;this.X=undefined;this.XAlign=undefined;this.Y=undefined;this.YAlign=undefined;this.Shd=null;this.Brd=null;this.FontFamily=null}}asc_CParagraphFrame.prototype.asc_getDropCap=function(){return this.DropCap};asc_CParagraphFrame.prototype.asc_putDropCap=
|
|
function(v){this.DropCap=v};asc_CParagraphFrame.prototype.asc_getH=function(){return this.H};asc_CParagraphFrame.prototype.asc_putH=function(v){this.H=v};asc_CParagraphFrame.prototype.asc_getHAnchor=function(){return this.HAnchor};asc_CParagraphFrame.prototype.asc_putHAnchor=function(v){this.HAnchor=v};asc_CParagraphFrame.prototype.asc_getHRule=function(){return this.HRule};asc_CParagraphFrame.prototype.asc_putHRule=function(v){this.HRule=v};asc_CParagraphFrame.prototype.asc_getHSpace=function(){return this.HSpace};
|
|
asc_CParagraphFrame.prototype.asc_putHSpace=function(v){this.HSpace=v};asc_CParagraphFrame.prototype.asc_getLines=function(){return this.Lines};asc_CParagraphFrame.prototype.asc_putLines=function(v){this.Lines=v};asc_CParagraphFrame.prototype.asc_getVAnchor=function(){return this.VAnchor};asc_CParagraphFrame.prototype.asc_putVAnchor=function(v){this.VAnchor=v};asc_CParagraphFrame.prototype.asc_getVSpace=function(){return this.VSpace};asc_CParagraphFrame.prototype.asc_putVSpace=function(v){this.VSpace=
|
|
v};asc_CParagraphFrame.prototype.asc_getW=function(){return this.W};asc_CParagraphFrame.prototype.asc_putW=function(v){this.W=v};asc_CParagraphFrame.prototype.asc_getWrap=function(){return this.Wrap};asc_CParagraphFrame.prototype.asc_putWrap=function(v){this.Wrap=v};asc_CParagraphFrame.prototype.asc_getX=function(){return this.X};asc_CParagraphFrame.prototype.asc_putX=function(v){this.X=v};asc_CParagraphFrame.prototype.asc_getXAlign=function(){return this.XAlign};asc_CParagraphFrame.prototype.asc_putXAlign=
|
|
function(v){this.XAlign=v};asc_CParagraphFrame.prototype.asc_getY=function(){return this.Y};asc_CParagraphFrame.prototype.asc_putY=function(v){this.Y=v};asc_CParagraphFrame.prototype.asc_getYAlign=function(){return this.YAlign};asc_CParagraphFrame.prototype.asc_putYAlign=function(v){this.YAlign=v};asc_CParagraphFrame.prototype.asc_getBorders=function(){return this.Brd};asc_CParagraphFrame.prototype.asc_putBorders=function(v){this.Brd=v};asc_CParagraphFrame.prototype.asc_getShade=function(){return this.Shd};
|
|
asc_CParagraphFrame.prototype.asc_putShade=function(v){this.Shd=v};asc_CParagraphFrame.prototype.asc_getFontFamily=function(){return this.FontFamily};asc_CParagraphFrame.prototype.asc_putFontFamily=function(v){this.FontFamily=v};asc_CParagraphFrame.prototype.asc_putFromDropCapMenu=function(v){this.FromDropCapMenu=v};function asc_CParagraphSpacing(obj){if(obj){this.Line=undefined!=obj.Line?obj.Line:null;this.LineRule=undefined!=obj.LineRule?obj.LineRule:null;this.Before=undefined!=obj.Before?obj.Before:
|
|
null;this.After=undefined!=obj.After?obj.After:null}else{this.Line=undefined;this.LineRule=undefined;this.Before=undefined;this.After=undefined}}asc_CParagraphSpacing.prototype={asc_getLine:function(){return this.Line},asc_getLineRule:function(){return this.LineRule},asc_getBefore:function(){return this.Before},asc_getAfter:function(){return this.After},asc_putLine:function(v){this.Line=v},asc_putLineRule:function(v){this.LineRule=v},asc_putBefore:function(v){this.Before=v},asc_putAfter:function(v){this.After=
|
|
v}};function asc_CParagraphInd(obj){if(obj){this.Left=undefined!=obj.Left?obj.Left:null;this.Right=undefined!=obj.Right?obj.Right:null;this.FirstLine=undefined!=obj.FirstLine?obj.FirstLine:null}else{this.Left=undefined;this.Right=undefined;this.FirstLine=undefined}}asc_CParagraphInd.prototype={asc_getLeft:function(){return this.Left},asc_putLeft:function(v){this.Left=v},asc_getRight:function(){return this.Right},asc_putRight:function(v){this.Right=v},asc_getFirstLine:function(){return this.FirstLine},
|
|
asc_putFirstLine:function(v){this.FirstLine=v}};function asc_CParagraphProperty(obj){if(obj){this.ContextualSpacing=undefined!=obj.ContextualSpacing?obj.ContextualSpacing:null;this.Ind=undefined!=obj.Ind&&null!=obj.Ind?new asc_CParagraphInd(obj.Ind):null;this.KeepLines=undefined!=obj.KeepLines?obj.KeepLines:null;this.KeepNext=undefined!=obj.KeepNext?obj.KeepNext:undefined;this.WidowControl=undefined!=obj.WidowControl?obj.WidowControl:undefined;this.PageBreakBefore=undefined!=obj.PageBreakBefore?obj.PageBreakBefore:
|
|
null;this.Spacing=undefined!=obj.Spacing&&null!=obj.Spacing?new asc_CParagraphSpacing(obj.Spacing):null;this.Brd=undefined!=obj.Brd&&null!=obj.Brd?new asc_CParagraphBorders(obj.Brd):null;this.Shd=undefined!=obj.Shd&&null!=obj.Shd?new asc_CParagraphShd(obj.Shd):null;this.Tabs=undefined!=obj.Tabs?new asc_CParagraphTabs(obj.Tabs):undefined;this.DefaultTab=obj.DefaultTab!=null?obj.DefaultTab:window["AscCommonWord"].Default_Tab_Stop;this.Locked=undefined!=obj.Locked&&null!=obj.Locked?obj.Locked:false;
|
|
this.CanAddTable=undefined!=obj.CanAddTable?obj.CanAddTable:true;this.FramePr=undefined!=obj.FramePr?new asc_CParagraphFrame(obj.FramePr):undefined;this.CanAddDropCap=undefined!=obj.CanAddDropCap?obj.CanAddDropCap:false;this.CanAddImage=undefined!=obj.CanAddImage?obj.CanAddImage:false;this.Subscript=undefined!=obj.Subscript?obj.Subscript:undefined;this.Superscript=undefined!=obj.Superscript?obj.Superscript:undefined;this.SmallCaps=undefined!=obj.SmallCaps?obj.SmallCaps:undefined;this.AllCaps=undefined!=
|
|
obj.AllCaps?obj.AllCaps:undefined;this.Strikeout=undefined!=obj.Strikeout?obj.Strikeout:undefined;this.DStrikeout=undefined!=obj.DStrikeout?obj.DStrikeout:undefined;this.TextSpacing=undefined!=obj.TextSpacing?obj.TextSpacing:undefined;this.Position=undefined!=obj.Position?obj.Position:undefined;this.Jc=undefined!=obj.Jc?obj.Jc:undefined;this.ListType=undefined!=obj.ListType?obj.ListType:undefined;this.OutlineLvl=undefined!=obj.OutlineLvl?obj.OutlineLvl:undefined;this.OutlineLvlStyle=undefined!=obj.OutlineLvlStyle?
|
|
obj.OutlineLvlStyle:false;this.SuppressLineNumbers=undefined!==obj.SuppressLineNumbers?obj.SuppressLineNumbers:false;this.Bullet=obj.Bullet;var oBullet=obj.Bullet;if(oBullet)oBullet.FirstTextPr=obj.FirstTextPr;this.CanDeleteBlockCC=undefined!==obj.CanDeleteBlockCC?obj.CanDeleteBlockCC:true;this.CanEditBlockCC=undefined!==obj.CanEditBlockCC?obj.CanEditBlockCC:true;this.CanDeleteInlineCC=undefined!==obj.CanDeleteInlineCC?obj.CanDeleteInlineCC:true;this.CanEditInlineCC=undefined!==obj.CanEditInlineCC?
|
|
obj.CanEditInlineCC:true}else{this.ContextualSpacing=undefined;this.Ind=new asc_CParagraphInd;this.KeepLines=undefined;this.KeepNext=undefined;this.WidowControl=undefined;this.PageBreakBefore=undefined;this.Spacing=new asc_CParagraphSpacing;this.Brd=undefined;this.Shd=undefined;this.Locked=false;this.CanAddTable=true;this.Tabs=undefined;this.Subscript=undefined;this.Superscript=undefined;this.SmallCaps=undefined;this.AllCaps=undefined;this.Strikeout=undefined;this.DStrikeout=undefined;this.TextSpacing=
|
|
undefined;this.Position=undefined;this.Jc=undefined;this.ListType=undefined;this.OutlineLvl=undefined;this.OutlineLvlStyle=false;this.SuppressLineNumbers=false;this.Bullet=undefined;this.CanDeleteBlockCC=true;this.CanEditBlockCC=true;this.CanDeleteInlineCC=true;this.CanEditInlineCC=true}}asc_CParagraphProperty.prototype={asc_getContextualSpacing:function(){return this.ContextualSpacing},asc_putContextualSpacing:function(v){this.ContextualSpacing=v},asc_getInd:function(){return this.Ind},asc_putInd:function(v){this.Ind=
|
|
v},asc_getJc:function(){return this.Jc},asc_putJc:function(v){this.Jc=v},asc_getKeepLines:function(){return this.KeepLines},asc_putKeepLines:function(v){this.KeepLines=v},asc_getKeepNext:function(){return this.KeepNext},asc_putKeepNext:function(v){this.KeepNext=v},asc_getPageBreakBefore:function(){return this.PageBreakBefore},asc_putPageBreakBefore:function(v){this.PageBreakBefore=v},asc_getWidowControl:function(){return this.WidowControl},asc_putWidowControl:function(v){this.WidowControl=v},asc_getSpacing:function(){return this.Spacing},
|
|
asc_putSpacing:function(v){this.Spacing=v},asc_getBorders:function(){return this.Brd},asc_putBorders:function(v){this.Brd=v},asc_getShade:function(){return this.Shd},asc_putShade:function(v){this.Shd=v},asc_getLocked:function(){return this.Locked},asc_getCanAddTable:function(){return this.CanAddTable},asc_getSubscript:function(){return this.Subscript},asc_putSubscript:function(v){this.Subscript=v},asc_getSuperscript:function(){return this.Superscript},asc_putSuperscript:function(v){this.Superscript=
|
|
v},asc_getSmallCaps:function(){return this.SmallCaps},asc_putSmallCaps:function(v){this.SmallCaps=v},asc_getAllCaps:function(){return this.AllCaps},asc_putAllCaps:function(v){this.AllCaps=v},asc_getStrikeout:function(){return this.Strikeout},asc_putStrikeout:function(v){this.Strikeout=v},asc_getDStrikeout:function(){return this.DStrikeout},asc_putDStrikeout:function(v){this.DStrikeout=v},asc_getTextSpacing:function(){return this.TextSpacing},asc_putTextSpacing:function(v){this.TextSpacing=v},asc_getPosition:function(){return this.Position},
|
|
asc_putPosition:function(v){this.Position=v},asc_getTabs:function(){return this.Tabs},asc_putTabs:function(v){this.Tabs=v},asc_getDefaultTab:function(){return this.DefaultTab},asc_putDefaultTab:function(v){this.DefaultTab=v},asc_getFramePr:function(){return this.FramePr},asc_putFramePr:function(v){this.FramePr=v},asc_getCanAddDropCap:function(){return this.CanAddDropCap},asc_getCanAddImage:function(){return this.CanAddImage},asc_getOutlineLvl:function(){return this.OutlineLvl},asc_putOutLineLvl:function(nLvl){this.OutlineLvl=
|
|
nLvl},asc_getOutlineLvlStyle:function(){return this.OutlineLvlStyle},asc_getSuppressLineNumbers:function(){return this.SuppressLineNumbers},asc_putSuppressLineNumbers:function(isSuppress){this.SuppressLineNumbers=isSuppress},asc_putBullet:function(val){this.Bullet=val},asc_getBullet:function(){return this.Bullet},asc_putBulletSize:function(size){if(!this.Bullet)this.Bullet=new Asc.asc_CBullet;this.Bullet.asc_putSize(size)},asc_getBulletSize:function(){if(!this.Bullet)return undefined;return this.Bullet.asc_getSize()},
|
|
asc_putBulletColor:function(color){if(!this.Bullet)this.Bullet=new Asc.asc_CBullet;this.Bullet.asc_putColor(color)},asc_getBulletColor:function(){if(!this.Bullet)return undefined;return this.Bullet.asc_getColor()},asc_putNumStartAt:function(NumStartAt){if(!this.Bullet)this.Bullet=new Asc.asc_CBullet;this.Bullet.asc_putNumStartAt(NumStartAt)},asc_getNumStartAt:function(){if(!this.Bullet)return undefined;return this.Bullet.asc_getNumStartAt()},asc_getBulletFont:function(){if(!this.Bullet)return undefined;
|
|
return this.Bullet.asc_getFont()},asc_putBulletFont:function(v){if(!this.Bullet)this.Bullet=new Asc.asc_CBullet;this.Bullet.asc_putFont(v)},asc_getBulletSymbol:function(){if(!this.Bullet)return undefined;return this.Bullet.asc_getSymbol()},asc_putBulletSymbol:function(v){if(!this.Bullet)this.Bullet=new Asc.asc_CBullet;this.Bullet.asc_putSymbol(v)},asc_canDeleteBlockContentControl:function(){return this.CanDeleteBlockCC},asc_canEditBlockContentControl:function(){return this.CanEditBlockCC},asc_canDeleteInlineContentControl:function(){return this.CanDeleteInlineCC},
|
|
asc_canEditInlineContentControl:function(){return this.CanEditInlineCC}};function asc_CTexture(){this.Id=0;this.Image=""}asc_CTexture.prototype={asc_getId:function(){return this.Id},asc_getImage:function(){return this.Image}};function asc_CImageSize(width,height,isCorrect){this.Width=undefined==width?0:width;this.Height=undefined==height?0:height;this.IsCorrect=isCorrect}asc_CImageSize.prototype={asc_getImageWidth:function(){return this.Width},asc_getImageHeight:function(){return this.Height},asc_getIsCorrect:function(){return this.IsCorrect}};
|
|
function asc_CPaddings(obj){if(obj){this.Left=undefined==obj.Left?null:obj.Left;this.Top=undefined==obj.Top?null:obj.Top;this.Bottom=undefined==obj.Bottom?null:obj.Bottom;this.Right=undefined==obj.Right?null:obj.Right}else{this.Left=null;this.Top=null;this.Bottom=null;this.Right=null}}asc_CPaddings.prototype={asc_getLeft:function(){return this.Left},asc_putLeft:function(v){this.Left=v},asc_getTop:function(){return this.Top},asc_putTop:function(v){this.Top=v},asc_getBottom:function(){return this.Bottom},
|
|
asc_putBottom:function(v){this.Bottom=v},asc_getRight:function(){return this.Right},asc_putRight:function(v){this.Right=v}};function asc_CShapeProperty(){this.type=null;this.fill=null;this.stroke=null;this.paddings=null;this.canFill=true;this.canChangeArrows=false;this.bFromChart=false;this.bFromGroup=false;this.bFromImage=false;this.Locked=false;this.w=null;this.h=null;this.vert=null;this.verticalTextAlign=null;this.textArtProperties=null;this.lockAspect=null;this.title=null;this.description=null;
|
|
this.columnNumber=null;this.columnSpace=null;this.textFitType=null;this.vertOverflowType=null;this.signatureId=null;this.rot=null;this.rotAdd=null;this.flipH=null;this.flipV=null;this.flipHInvert=null;this.flipVInvert=null;this.shadow=undefined;this.anchor=null}asc_CShapeProperty.prototype={constructor:asc_CShapeProperty,asc_getType:function(){return this.type},asc_putType:function(v){this.type=v},asc_getFill:function(){return this.fill},asc_putFill:function(v){this.fill=v},asc_getStroke:function(){return this.stroke},
|
|
asc_putStroke:function(v){this.stroke=v},asc_getPaddings:function(){return this.paddings},asc_putPaddings:function(v){this.paddings=v},asc_getCanFill:function(){return this.canFill},asc_putCanFill:function(v){this.canFill=v},asc_getCanChangeArrows:function(){return this.canChangeArrows},asc_setCanChangeArrows:function(v){this.canChangeArrows=v},asc_getFromChart:function(){return this.bFromChart},asc_setFromChart:function(v){this.bFromChart=v},asc_getFromGroup:function(){return this.bFromGroup},asc_setFromGroup:function(v){this.bFromGroup=
|
|
v},asc_getLocked:function(){return this.Locked},asc_setLocked:function(v){this.Locked=v},asc_getWidth:function(){return this.w},asc_putWidth:function(v){this.w=v},asc_getHeight:function(){return this.h},asc_putHeight:function(v){this.h=v},asc_getVerticalTextAlign:function(){return this.verticalTextAlign},asc_putVerticalTextAlign:function(v){this.verticalTextAlign=v},asc_getVert:function(){return this.vert},asc_putVert:function(v){this.vert=v},asc_getTextArtProperties:function(){return this.textArtProperties},
|
|
asc_putTextArtProperties:function(v){this.textArtProperties=v},asc_getLockAspect:function(){return this.lockAspect},asc_putLockAspect:function(v){this.lockAspect=v},asc_getTitle:function(){return this.title},asc_putTitle:function(v){this.title=v},asc_getDescription:function(){return this.description},asc_putDescription:function(v){this.description=v},asc_getColumnNumber:function(){return this.columnNumber},asc_putColumnNumber:function(v){this.columnNumber=v},asc_getColumnSpace:function(){return this.columnSpace},
|
|
asc_getTextFitType:function(){return this.textFitType},asc_getVertOverflowType:function(){return this.vertOverflowType},asc_putColumnSpace:function(v){this.columnSpace=v},asc_putTextFitType:function(v){this.textFitType=v},asc_putVertOverflowType:function(v){this.vertOverflowType=v},asc_getSignatureId:function(){return this.signatureId},asc_putSignatureId:function(v){this.signatureId=v},asc_getFromImage:function(){return this.bFromImage},asc_putFromImage:function(v){this.bFromImage=v},asc_getRot:function(){return this.rot},
|
|
asc_putRot:function(v){this.rot=v},asc_getRotAdd:function(){return this.rotAdd},asc_putRotAdd:function(v){this.rotAdd=v},asc_getFlipH:function(){return this.flipH},asc_putFlipH:function(v){this.flipH=v},asc_getFlipV:function(){return this.flipV},asc_putFlipV:function(v){this.flipV=v},asc_getFlipHInvert:function(){return this.flipHInvert},asc_putFlipHInvert:function(v){this.flipHInvert=v},asc_getFlipVInvert:function(){return this.flipVInvert},asc_putFlipVInvert:function(v){this.flipVInvert=v},asc_getShadow:function(){return this.shadow},
|
|
asc_putShadow:function(v){this.shadow=v},asc_getAnchor:function(){return this.anchor},asc_putAnchor:function(v){this.anchor=v}};function asc_TextArtProperties(obj){if(obj){this.Fill=obj.Fill;this.Line=obj.Line;this.Form=obj.Form;this.Style=obj.Style}else{this.Fill=undefined;this.Line=undefined;this.Form=undefined;this.Style=undefined}}asc_TextArtProperties.prototype.asc_putFill=function(oAscFill){this.Fill=oAscFill};asc_TextArtProperties.prototype.asc_getFill=function(){return this.Fill};asc_TextArtProperties.prototype.asc_putLine=
|
|
function(oAscStroke){this.Line=oAscStroke};asc_TextArtProperties.prototype.asc_getLine=function(){return this.Line};asc_TextArtProperties.prototype.asc_putForm=function(sForm){this.Form=sForm};asc_TextArtProperties.prototype.asc_getForm=function(){return this.Form};asc_TextArtProperties.prototype.asc_putStyle=function(Style){this.Style=Style};asc_TextArtProperties.prototype.asc_getStyle=function(){return this.Style};function CImagePositionH(obj){if(obj){this.RelativeFrom=undefined===obj.RelativeFrom?
|
|
undefined:obj.RelativeFrom;this.UseAlign=undefined===obj.UseAlign?undefined:obj.UseAlign;this.Align=undefined===obj.Align?undefined:obj.Align;this.Value=undefined===obj.Value?undefined:obj.Value;this.Percent=undefined===obj.Percent?undefined:obj.Percent}else{this.RelativeFrom=undefined;this.UseAlign=undefined;this.Align=undefined;this.Value=undefined;this.Percent=undefined}}CImagePositionH.prototype.get_RelativeFrom=function(){return this.RelativeFrom};CImagePositionH.prototype.put_RelativeFrom=function(v){this.RelativeFrom=
|
|
v};CImagePositionH.prototype.get_UseAlign=function(){return this.UseAlign};CImagePositionH.prototype.put_UseAlign=function(v){this.UseAlign=v};CImagePositionH.prototype.get_Align=function(){return this.Align};CImagePositionH.prototype.put_Align=function(v){this.Align=v};CImagePositionH.prototype.get_Value=function(){return this.Value};CImagePositionH.prototype.put_Value=function(v){this.Value=v};CImagePositionH.prototype.get_Percent=function(){return this.Percent};CImagePositionH.prototype.put_Percent=
|
|
function(v){this.Percent=v};function CImagePositionV(obj){if(obj){this.RelativeFrom=undefined===obj.RelativeFrom?undefined:obj.RelativeFrom;this.UseAlign=undefined===obj.UseAlign?undefined:obj.UseAlign;this.Align=undefined===obj.Align?undefined:obj.Align;this.Value=undefined===obj.Value?undefined:obj.Value;this.Percent=undefined===obj.Percent?undefined:obj.Percent}else{this.RelativeFrom=undefined;this.UseAlign=undefined;this.Align=undefined;this.Value=undefined;this.Percent=undefined}}CImagePositionV.prototype.get_RelativeFrom=
|
|
function(){return this.RelativeFrom};CImagePositionV.prototype.put_RelativeFrom=function(v){this.RelativeFrom=v};CImagePositionV.prototype.get_UseAlign=function(){return this.UseAlign};CImagePositionV.prototype.put_UseAlign=function(v){this.UseAlign=v};CImagePositionV.prototype.get_Align=function(){return this.Align};CImagePositionV.prototype.put_Align=function(v){this.Align=v};CImagePositionV.prototype.get_Value=function(){return this.Value};CImagePositionV.prototype.put_Value=function(v){this.Value=
|
|
v};CImagePositionV.prototype.get_Percent=function(){return this.Percent};CImagePositionV.prototype.put_Percent=function(v){this.Percent=v};function CPosition(obj){if(obj){this.X=undefined==obj.X?null:obj.X;this.Y=undefined==obj.Y?null:obj.Y}else{this.X=null;this.Y=null}}CPosition.prototype.get_X=function(){return this.X};CPosition.prototype.put_X=function(v){this.X=v};CPosition.prototype.get_Y=function(){return this.Y};CPosition.prototype.put_Y=function(v){this.Y=v};function asc_CImgProperty(obj){if(obj){this.CanBeFlow=
|
|
undefined!=obj.CanBeFlow?obj.CanBeFlow:true;this.Width=undefined!=obj.Width?obj.Width:undefined;this.Height=undefined!=obj.Height?obj.Height:undefined;this.WrappingStyle=undefined!=obj.WrappingStyle?obj.WrappingStyle:undefined;this.Paddings=undefined!=obj.Paddings?new asc_CPaddings(obj.Paddings):undefined;this.Position=undefined!=obj.Position?new CPosition(obj.Position):undefined;this.AllowOverlap=undefined!=obj.AllowOverlap?obj.AllowOverlap:undefined;this.PositionH=undefined!=obj.PositionH?new CImagePositionH(obj.PositionH):
|
|
undefined;this.PositionV=undefined!=obj.PositionV?new CImagePositionV(obj.PositionV):undefined;this.SizeRelH=undefined!=obj.SizeRelH?new CImagePositionH(obj.SizeRelH):undefined;this.SizeRelV=undefined!=obj.SizeRelV?new CImagePositionV(obj.SizeRelV):undefined;this.Internal_Position=undefined!=obj.Internal_Position?obj.Internal_Position:null;this.ImageUrl=undefined!=obj.ImageUrl?obj.ImageUrl:null;this.Token=obj.Token;this.Locked=undefined!=obj.Locked?obj.Locked:false;this.lockAspect=undefined!=obj.lockAspect?
|
|
obj.lockAspect:false;this.ChartProperties=undefined!=obj.ChartProperties?obj.ChartProperties:null;this.ShapeProperties=undefined!=obj.ShapeProperties?obj.ShapeProperties:null;this.SlicerProperties=undefined!=obj.SlicerProperties?obj.SlicerProperties:null;this.ChangeLevel=undefined!=obj.ChangeLevel?obj.ChangeLevel:null;this.Group=obj.Group!=undefined?obj.Group:null;this.fromGroup=obj.fromGroup!=undefined?obj.fromGroup:null;this.severalCharts=obj.severalCharts!=undefined?obj.severalCharts:false;this.severalChartTypes=
|
|
obj.severalChartTypes!=undefined?obj.severalChartTypes:undefined;this.severalChartStyles=obj.severalChartStyles!=undefined?obj.severalChartStyles:undefined;this.verticalTextAlign=obj.verticalTextAlign!=undefined?obj.verticalTextAlign:undefined;this.vert=obj.vert!=undefined?obj.vert:undefined;this.pluginGuid=obj.pluginGuid!==undefined?obj.pluginGuid:undefined;this.pluginData=obj.pluginData!==undefined?obj.pluginData:undefined;this.oleWidth=obj.oleWidth!=undefined?obj.oleWidth:undefined;this.oleHeight=
|
|
obj.oleHeight!=undefined?obj.oleHeight:undefined;this.title=obj.title!=undefined?obj.title:undefined;this.description=obj.description!=undefined?obj.description:undefined;this.columnNumber=obj.columnNumber!=undefined?obj.columnNumber:undefined;this.columnSpace=obj.columnSpace!=undefined?obj.columnSpace:undefined;this.textFitType=obj.textFitType!=undefined?obj.textFitType:undefined;this.vertOverflowType=obj.vertOverflowType!=undefined?obj.vertOverflowType:undefined;this.shadow=obj.shadow!=undefined?
|
|
obj.shadow:undefined;this.rot=obj.rot!=undefined?obj.rot:undefined;this.flipH=obj.flipH!=undefined?obj.flipH:undefined;this.flipV=obj.flipV!=undefined?obj.flipV:undefined;this.resetCrop=obj.resetCrop!=undefined?obj.resetCrop:undefined;this.anchor=obj.anchor!=undefined?obj.anchor:undefined}else{this.CanBeFlow=true;this.Width=undefined;this.Height=undefined;this.WrappingStyle=undefined;this.Paddings=undefined;this.Position=undefined;this.PositionH=undefined;this.PositionV=undefined;this.SizeRelH=undefined;
|
|
this.SizeRelV=undefined;this.Internal_Position=null;this.ImageUrl=null;this.Token=undefined;this.Locked=false;this.ChartProperties=null;this.ShapeProperties=null;this.SlicerProperties=null;this.ChangeLevel=null;this.Group=null;this.fromGroup=null;this.severalCharts=false;this.severalChartTypes=undefined;this.severalChartStyles=undefined;this.verticalTextAlign=undefined;this.vert=undefined;this.pluginGuid=undefined;this.pluginData=undefined;this.oleWidth=undefined;this.oleHeight=undefined;this.title=
|
|
undefined;this.description=undefined;this.columnNumber=undefined;this.columnSpace=undefined;this.textFitType=undefined;this.vertOverflowType=undefined;this.rot=undefined;this.rotAdd=undefined;this.flipH=undefined;this.flipV=undefined;this.resetCrop=undefined;this.anchor=undefined}}asc_CImgProperty.prototype={constructor:asc_CImgProperty,asc_getChangeLevel:function(){return this.ChangeLevel},asc_putChangeLevel:function(v){this.ChangeLevel=v},asc_getCanBeFlow:function(){return this.CanBeFlow},asc_getWidth:function(){return this.Width},
|
|
asc_putWidth:function(v){this.Width=v},asc_getHeight:function(){return this.Height},asc_putHeight:function(v){this.Height=v},asc_getWrappingStyle:function(){return this.WrappingStyle},asc_putWrappingStyle:function(v){this.WrappingStyle=v},asc_getPaddings:function(){return this.Paddings},asc_putPaddings:function(v){this.Paddings=v},asc_getAllowOverlap:function(){return this.AllowOverlap},asc_putAllowOverlap:function(v){this.AllowOverlap=v},asc_getPosition:function(){return this.Position},asc_putPosition:function(v){this.Position=
|
|
v},asc_getPositionH:function(){return this.PositionH},asc_putPositionH:function(v){this.PositionH=v},asc_getPositionV:function(){return this.PositionV},asc_putPositionV:function(v){this.PositionV=v},asc_getSizeRelH:function(){return this.SizeRelH},asc_putSizeRelH:function(v){this.SizeRelH=v},asc_getSizeRelV:function(){return this.SizeRelV},asc_putSizeRelV:function(v){this.SizeRelV=v},asc_getValue_X:function(RelativeFrom){if(null!=this.Internal_Position)return this.Internal_Position.Calculate_X_Value(RelativeFrom);
|
|
return 0},asc_getValue_Y:function(RelativeFrom){if(null!=this.Internal_Position)return this.Internal_Position.Calculate_Y_Value(RelativeFrom);return 0},asc_getImageUrl:function(){return this.ImageUrl},asc_putImageUrl:function(v,sToken){this.ImageUrl=v;this.Token=sToken},asc_getGroup:function(){return this.Group},asc_putGroup:function(v){this.Group=v},asc_getFromGroup:function(){return this.fromGroup},asc_putFromGroup:function(v){this.fromGroup=v},asc_getisChartProps:function(){return this.isChartProps},
|
|
asc_putisChartPross:function(v){this.isChartProps=v},asc_getSeveralCharts:function(){return this.severalCharts},asc_putSeveralCharts:function(v){this.severalCharts=v},asc_getSeveralChartTypes:function(){return this.severalChartTypes},asc_putSeveralChartTypes:function(v){this.severalChartTypes=v},asc_getSeveralChartStyles:function(){return this.severalChartStyles},asc_putSeveralChartStyles:function(v){this.severalChartStyles=v},asc_getVerticalTextAlign:function(){return this.verticalTextAlign},asc_putVerticalTextAlign:function(v){this.verticalTextAlign=
|
|
v},asc_getVert:function(){return this.vert},asc_putVert:function(v){this.vert=v},asc_getLocked:function(){return this.Locked},asc_getLockAspect:function(){return this.lockAspect},asc_putLockAspect:function(v){this.lockAspect=v},asc_getChartProperties:function(){return this.ChartProperties},asc_putChartProperties:function(v){this.ChartProperties=v},asc_getShapeProperties:function(){return this.ShapeProperties},asc_putShapeProperties:function(v){this.ShapeProperties=v},asc_getSlicerProperties:function(){return this.SlicerProperties},
|
|
asc_putSlicerProperties:function(v){this.SlicerProperties=v},asc_getOriginSize:function(api){if(window["AscFormat"].isRealNumber(this.oleWidth)&&window["AscFormat"].isRealNumber(this.oleHeight))return new asc_CImageSize(this.oleWidth,this.oleHeight,true);if(this.ImageUrl===null)return new asc_CImageSize(50,50,false);var origW=0;var origH=0;var _image=api.ImageLoader.map_image_index[AscCommon.getFullImageSrc2(this.ImageUrl)];if(_image!=undefined&&_image.Image!=null&&_image.Status==window["AscFonts"].ImageLoadStatus.Complete){origW=
|
|
_image.Image.width;origH=_image.Image.height}else if(window["AscDesktopEditor"]&&window["AscDesktopEditor"]["GetImageOriginalSize"]){var _size=window["AscDesktopEditor"]["GetImageOriginalSize"](this.ImageUrl);if(_size["W"]!=0&&_size["H"]!=0){origW=_size["W"];origH=_size["H"]}}if(origW!=0&&origH!=0){var __w=Math.max(origW*AscCommon.g_dKoef_pix_to_mm,1);var __h=Math.max(origH*AscCommon.g_dKoef_pix_to_mm,1);return new asc_CImageSize(__w,__h,true)}return new asc_CImageSize(50,50,false)},asc_getPluginGuid:function(){return this.pluginGuid},
|
|
asc_putPluginGuid:function(v){this.pluginGuid=v},asc_getPluginData:function(){return this.pluginData},asc_putPluginData:function(v){this.pluginData=v},asc_getTitle:function(){return this.title},asc_putTitle:function(v){this.title=v},asc_getDescription:function(){return this.description},asc_putDescription:function(v){this.description=v},asc_getColumnNumber:function(){return this.columnNumber},asc_putColumnNumber:function(v){this.columnNumber=v},asc_getColumnSpace:function(){return this.columnSpace},
|
|
asc_getTextFitType:function(){return this.textFitType},asc_getVertOverflowType:function(){return this.vertOverflowType},asc_putColumnSpace:function(v){this.columnSpace=v},asc_putTextFitType:function(v){this.textFitType=v},asc_putVertOverflowType:function(v){this.vertOverflowType=v},asc_getSignatureId:function(){if(this.ShapeProperties)return this.ShapeProperties.asc_getSignatureId();return undefined},asc_getRot:function(){return this.rot},asc_putRot:function(v){this.rot=v},asc_getRotAdd:function(){return this.rotAdd},
|
|
asc_putRotAdd:function(v){this.rotAdd=v},asc_getFlipH:function(){return this.flipH},asc_putFlipH:function(v){this.flipH=v},asc_getFlipHInvert:function(){return this.flipHInvert},asc_putFlipHInvert:function(v){this.flipHInvert=v},asc_getFlipV:function(){return this.flipV},asc_putFlipV:function(v){this.flipV=v},asc_getFlipVInvert:function(){return this.flipVInvert},asc_putFlipVInvert:function(v){this.flipVInvert=v},asc_putResetCrop:function(v){this.resetCrop=v},asc_getShadow:function(){return this.shadow},
|
|
asc_putShadow:function(v){this.shadow=v},asc_getAnchor:function(){return this.anchor},asc_putAnchor:function(v){this.anchor=v}};function asc_CSelectedObject(type,val){this.Type=undefined!=type?type:null;this.Value=undefined!=val?val:null}asc_CSelectedObject.prototype.asc_getObjectType=function(){return this.Type};asc_CSelectedObject.prototype.asc_getObjectValue=function(){return this.Value};function asc_CShapeFill(){this.type=null;this.fill=null;this.transparent=null}asc_CShapeFill.prototype={asc_getType:function(){return this.type},
|
|
asc_putType:function(v){this.type=v},asc_getFill:function(){return this.fill},asc_putFill:function(v){this.fill=v},asc_getTransparent:function(){return this.transparent},asc_putTransparent:function(v){this.transparent=v},asc_CheckForseSet:function(){if(null!=this.transparent)return true;if(null!=this.fill&&this.fill.Positions!=null)return true;return false}};function asc_CFillBlip(){this.type=c_oAscFillBlipType.STRETCH;this.url="";this.token=undefined;this.texture_id=null}asc_CFillBlip.prototype=
|
|
{asc_getType:function(){return this.type},asc_putType:function(v){this.type=v},asc_getUrl:function(){return this.url},asc_putUrl:function(v,sToken){this.url=v;this.token=sToken},asc_getTextureId:function(){return this.texture_id},asc_putTextureId:function(v){this.texture_id=v}};function asc_CFillHatch(){this.PatternType=undefined;this.fgClr=undefined;this.bgClr=undefined}asc_CFillHatch.prototype={asc_getPatternType:function(){return this.PatternType},asc_putPatternType:function(v){this.PatternType=
|
|
v},asc_getColorFg:function(){return this.fgClr},asc_putColorFg:function(v){this.fgClr=v},asc_getColorBg:function(){return this.bgClr},asc_putColorBg:function(v){this.bgClr=v}};function asc_CFillGrad(){this.Colors=undefined;this.Positions=undefined;this.GradType=0;this.LinearAngle=undefined;this.LinearScale=true;this.PathType=0}asc_CFillGrad.prototype={asc_getColors:function(){return this.Colors},asc_putColors:function(v){this.Colors=v},asc_getPositions:function(){return this.Positions},asc_putPositions:function(v){this.Positions=
|
|
v},asc_getGradType:function(){return this.GradType},asc_putGradType:function(v){this.GradType=v},asc_getLinearAngle:function(){return this.LinearAngle},asc_putLinearAngle:function(v){this.LinearAngle=v},asc_getLinearScale:function(){return this.LinearScale},asc_putLinearScale:function(v){this.LinearScale=v},asc_getPathType:function(){return this.PathType},asc_putPathType:function(v){this.PathType=v}};function asc_CFillSolid(){this.color=new asc_CColor}asc_CFillSolid.prototype={asc_getColor:function(){return this.color},
|
|
asc_putColor:function(v){this.color=v}};function asc_CStroke(){this.type=null;this.width=null;this.color=null;this.prstDash=null;this.LineJoin=null;this.LineCap=null;this.LineBeginStyle=null;this.LineBeginSize=null;this.LineEndStyle=null;this.LineEndSize=null;this.canChangeArrows=false}asc_CStroke.prototype={asc_getType:function(){return this.type},asc_putType:function(v){this.type=v},asc_getWidth:function(){return this.width},asc_putWidth:function(v){this.width=v},asc_getColor:function(){return this.color},
|
|
asc_putColor:function(v){this.color=v},asc_getLinejoin:function(){return this.LineJoin},asc_putLinejoin:function(v){this.LineJoin=v},asc_getLinecap:function(){return this.LineCap},asc_putLinecap:function(v){this.LineCap=v},asc_getLinebeginstyle:function(){return this.LineBeginStyle},asc_putLinebeginstyle:function(v){this.LineBeginStyle=v},asc_getLinebeginsize:function(){return this.LineBeginSize},asc_putLinebeginsize:function(v){this.LineBeginSize=v},asc_getLineendstyle:function(){return this.LineEndStyle},
|
|
asc_putLineendstyle:function(v){this.LineEndStyle=v},asc_getLineendsize:function(){return this.LineEndSize},asc_putLineendsize:function(v){this.LineEndSize=v},asc_getCanChangeArrows:function(){return this.canChangeArrows},asc_putPrstDash:function(v){this.prstDash=v},asc_getPrstDash:function(){return this.prstDash}};function CAscColorScheme(){this.colors=[];this.name="";this.scheme=null;this.summ=0}CAscColorScheme.prototype.get_colors=function(){return this.colors};CAscColorScheme.prototype.get_name=
|
|
function(){return this.name};CAscColorScheme.prototype.get_dk1=function(){return this.colors[0]};CAscColorScheme.prototype.get_lt1=function(){return this.colors[1]};CAscColorScheme.prototype.get_dk2=function(){return this.colors[2]};CAscColorScheme.prototype.get_lt2=function(){return this.colors[3]};CAscColorScheme.prototype.get_accent1=function(){return this.colors[4]};CAscColorScheme.prototype.get_accent2=function(){return this.colors[5]};CAscColorScheme.prototype.get_accent3=function(){return this.colors[6]};
|
|
CAscColorScheme.prototype.get_accent4=function(){return this.colors[7]};CAscColorScheme.prototype.get_accent5=function(){return this.colors[8]};CAscColorScheme.prototype.get_accent6=function(){return this.colors[9]};CAscColorScheme.prototype.get_hlink=function(){return this.colors[10]};CAscColorScheme.prototype.get_folHlink=function(){return this.colors[11]};CAscColorScheme.prototype.putColor=function(color){this.colors.push(color);this.summ+=color.getVal()};CAscColorScheme.prototype.isEqual=function(oColorScheme){if(this.summ===
|
|
oColorScheme.summ){for(var i=0;i<this.colors.length;++i){var oColor1=this.colors[i];var oColor2=oColorScheme.colors[i];if(!(!oColor1&&!oColor2||oColor2&&oColor2&&oColor1.Compare(oColor2)))return false}return this.name===oColorScheme.name}return false};function CMouseMoveData(obj){if(obj){this.Type=undefined!=obj.Type?obj.Type:c_oAscMouseMoveDataTypes.Common;this.X_abs=undefined!=obj.X_abs?obj.X_abs:0;this.Y_abs=undefined!=obj.Y_abs?obj.Y_abs:0;switch(this.Type){case c_oAscMouseMoveDataTypes.Hyperlink:{this.Hyperlink=
|
|
undefined!=obj.PageNum?obj.PageNum:0;break}case c_oAscMouseMoveDataTypes.LockedObject:{this.UserId=undefined!=obj.UserId?obj.UserId:"";this.HaveChanges=undefined!=obj.HaveChanges?obj.HaveChanges:false;this.LockedObjectType=undefined!=obj.LockedObjectType?obj.LockedObjectType:Asc.c_oAscMouseMoveLockedObjectType.Common;break}case c_oAscMouseMoveDataTypes.Footnote:{this.Text="";this.Number=1;break}case c_oAscMouseMoveDataTypes.Review:{this.ReviewChange=obj&&obj.ReviewChange?obj.ReviewChange:null;break}}}else{this.Type=
|
|
c_oAscMouseMoveDataTypes.Common;this.X_abs=0;this.Y_abs=0}}CMouseMoveData.prototype.get_Type=function(){return this.Type};CMouseMoveData.prototype.get_X=function(){return this.X_abs};CMouseMoveData.prototype.get_Y=function(){return this.Y_abs};CMouseMoveData.prototype.get_Hyperlink=function(){return this.Hyperlink};CMouseMoveData.prototype.get_UserId=function(){return this.UserId};CMouseMoveData.prototype.get_HaveChanges=function(){return this.HaveChanges};CMouseMoveData.prototype.get_LockedObjectType=
|
|
function(){return this.LockedObjectType};CMouseMoveData.prototype.get_FootnoteText=function(){return this.Text};CMouseMoveData.prototype.get_FootnoteNumber=function(){return this.Number};CMouseMoveData.prototype.get_FormHelpText=function(){return this.Text};CMouseMoveData.prototype.get_ReviewChange=function(){return this.ReviewChange};function CHyperlinkProperty(obj){if(obj){this.Text=undefined!=obj.Text?obj.Text:null;this.Value=undefined!=obj.Value?obj.Value:"";this.ToolTip=undefined!=obj.ToolTip?
|
|
obj.ToolTip:"";this.Class=undefined!==obj.Class?obj.Class:null;this.Anchor=undefined!==obj.Anchor?obj.Anchor:null;this.Heading=obj.Heading?obj.Heading:null}else{this.Text=null;this.Value="";this.ToolTip="";this.Class=null;this.Anchor=null;this.Heading=null}}CHyperlinkProperty.prototype.get_Value=function(){return this.Value};CHyperlinkProperty.prototype.put_Value=function(v){this.Value=v};CHyperlinkProperty.prototype.get_ToolTip=function(){return this.ToolTip};CHyperlinkProperty.prototype.put_ToolTip=
|
|
function(v){this.ToolTip=v?v.slice(0,Asc.c_oAscMaxTooltipLength):v};CHyperlinkProperty.prototype.get_Text=function(){return this.Text};CHyperlinkProperty.prototype.put_Text=function(v){this.Text=v};CHyperlinkProperty.prototype.put_InternalHyperlink=function(oClass){this.Class=oClass};CHyperlinkProperty.prototype.get_InternalHyperlink=function(){return this.Class};CHyperlinkProperty.prototype.is_TopOfDocument=function(){return this.Anchor==="_top"};CHyperlinkProperty.prototype.put_TopOfDocument=function(){this.Anchor=
|
|
"_top"};CHyperlinkProperty.prototype.get_Bookmark=function(){return this.Anchor};CHyperlinkProperty.prototype.put_Bookmark=function(sBookmark){this.Anchor=sBookmark};CHyperlinkProperty.prototype.is_Heading=function(){return this.Heading instanceof AscCommonWord.Paragraph?true:false};CHyperlinkProperty.prototype.put_Heading=function(oParagraph){this.Heading=oParagraph};CHyperlinkProperty.prototype.get_Heading=function(){return this.Heading};window["Asc"]["CHyperlinkProperty"]=window["Asc"].CHyperlinkProperty=
|
|
CHyperlinkProperty;CHyperlinkProperty.prototype["get_Value"]=CHyperlinkProperty.prototype.get_Value;CHyperlinkProperty.prototype["put_Value"]=CHyperlinkProperty.prototype.put_Value;CHyperlinkProperty.prototype["get_ToolTip"]=CHyperlinkProperty.prototype.get_ToolTip;CHyperlinkProperty.prototype["put_ToolTip"]=CHyperlinkProperty.prototype.put_ToolTip;CHyperlinkProperty.prototype["get_Text"]=CHyperlinkProperty.prototype.get_Text;CHyperlinkProperty.prototype["put_Text"]=CHyperlinkProperty.prototype.put_Text;
|
|
CHyperlinkProperty.prototype["get_InternalHyperlink"]=CHyperlinkProperty.prototype.get_InternalHyperlink;CHyperlinkProperty.prototype["put_InternalHyperlink"]=CHyperlinkProperty.prototype.put_InternalHyperlink;CHyperlinkProperty.prototype["is_TopOfDocument"]=CHyperlinkProperty.prototype.is_TopOfDocument;CHyperlinkProperty.prototype["put_TopOfDocument"]=CHyperlinkProperty.prototype.put_TopOfDocument;CHyperlinkProperty.prototype["get_Bookmark"]=CHyperlinkProperty.prototype.get_Bookmark;CHyperlinkProperty.prototype["put_Bookmark"]=
|
|
CHyperlinkProperty.prototype.put_Bookmark;CHyperlinkProperty.prototype["is_Heading"]=CHyperlinkProperty.prototype.is_Heading;CHyperlinkProperty.prototype["put_Heading"]=CHyperlinkProperty.prototype.put_Heading;CHyperlinkProperty.prototype["get_Heading"]=CHyperlinkProperty.prototype.get_Heading;function asc_CUserInfo(){this.Id=null;this.FullName=null;this.FirstName=null;this.LastName=null;this.IsAnonymousUser=false}asc_CUserInfo.prototype.asc_putId=asc_CUserInfo.prototype.put_Id=function(v){this.Id=
|
|
v};asc_CUserInfo.prototype.asc_getId=asc_CUserInfo.prototype.get_Id=function(){return this.Id};asc_CUserInfo.prototype.asc_putFullName=asc_CUserInfo.prototype.put_FullName=function(v){this.FullName=v};asc_CUserInfo.prototype.asc_getFullName=asc_CUserInfo.prototype.get_FullName=function(){return this.FullName};asc_CUserInfo.prototype.asc_putFirstName=asc_CUserInfo.prototype.put_FirstName=function(v){this.FirstName=v};asc_CUserInfo.prototype.asc_getFirstName=asc_CUserInfo.prototype.get_FirstName=function(){return this.FirstName};
|
|
asc_CUserInfo.prototype.asc_putLastName=asc_CUserInfo.prototype.put_LastName=function(v){this.LastName=v};asc_CUserInfo.prototype.asc_getLastName=asc_CUserInfo.prototype.get_LastName=function(){return this.LastName};asc_CUserInfo.prototype.asc_getIsAnonymousUser=asc_CUserInfo.prototype.get_IsAnonymousUser=function(){return this.IsAnonymousUser};asc_CUserInfo.prototype.asc_putIsAnonymousUser=asc_CUserInfo.prototype.put_IsAnonymousUser=function(v){this.IsAnonymousUser=v};function asc_CDocInfo(){this.Id=
|
|
null;this.Url=null;this.Title=null;this.Format=null;this.VKey=null;this.Token=null;this.UserInfo=null;this.Options=null;this.CallbackUrl=null;this.TemplateReplacement=null;this.Mode=null;this.Permissions=null;this.Lang=null;this.OfflineApp=false;this.Encrypted;this.EncryptedInfo;this.IsEnabledPlugins=true;this.IsEnabledMacroses=true}prot=asc_CDocInfo.prototype;prot.get_Id=prot.asc_getId=function(){return this.Id};prot.put_Id=prot.asc_putId=function(v){this.Id=v};prot.get_Url=prot.asc_getUrl=function(){return this.Url};
|
|
prot.put_Url=prot.asc_putUrl=function(v){this.Url=v};prot.get_Title=prot.asc_getTitle=function(){return this.Title};prot.put_Title=prot.asc_putTitle=function(v){this.Title=v};prot.get_Format=prot.asc_getFormat=function(){return this.Format};prot.put_Format=prot.asc_putFormat=function(v){this.Format=v};prot.get_VKey=prot.asc_getVKey=function(){return this.VKey};prot.put_VKey=prot.asc_putVKey=function(v){this.VKey=v};prot.get_Token=prot.asc_getToken=function(){return this.Token};prot.put_Token=prot.asc_putToken=
|
|
function(v){this.Token=v};prot.get_OfflineApp=function(){return this.OfflineApp};prot.put_OfflineApp=function(v){this.OfflineApp=v};prot.get_UserId=prot.asc_getUserId=function(){return this.UserInfo?this.UserInfo.get_Id():null};prot.get_UserName=prot.asc_getUserName=function(){return this.UserInfo?this.UserInfo.get_FullName():null};prot.get_FirstName=prot.asc_getFirstName=function(){return this.UserInfo?this.UserInfo.get_FirstName():null};prot.get_LastName=prot.asc_getLastName=function(){return this.UserInfo?
|
|
this.UserInfo.get_LastName():null};prot.get_IsAnonymousUser=prot.get_IsAnonymousUser=function(){return this.UserInfo?this.UserInfo.get_IsAnonymousUser():null};prot.get_Options=prot.asc_getOptions=function(){return this.Options};prot.put_Options=prot.asc_putOptions=function(v){this.Options=v};prot.get_CallbackUrl=prot.asc_getCallbackUrl=function(){return this.CallbackUrl};prot.put_CallbackUrl=prot.asc_putCallbackUrl=function(v){this.CallbackUrl=v};prot.get_TemplateReplacement=prot.asc_getTemplateReplacement=
|
|
function(){return this.TemplateReplacement};prot.put_TemplateReplacement=prot.asc_putTemplateReplacement=function(v){this.TemplateReplacement=v};prot.get_UserInfo=prot.asc_getUserInfo=function(){return this.UserInfo};prot.put_UserInfo=prot.asc_putUserInfo=function(v){this.UserInfo=v};prot.get_Mode=prot.asc_getMode=function(){return this.Mode};prot.put_Mode=prot.asc_putMode=function(v){this.Mode=v};prot.get_Permissions=prot.asc_getPermissions=function(){return this.Permissions};prot.put_Permissions=
|
|
prot.asc_putPermissions=function(v){this.Permissions=v};prot.get_Lang=prot.asc_getLang=function(){return this.Lang};prot.put_Lang=prot.asc_putLang=function(v){this.Lang=v};prot.get_Encrypted=prot.asc_getEncrypted=function(){return this.Encrypted};prot.put_Encrypted=prot.asc_putEncrypted=function(v){this.Encrypted=v};prot.get_EncryptedInfo=prot.asc_getEncryptedInfo=function(){return this.EncryptedInfo};prot.put_EncryptedInfo=prot.asc_putEncryptedInfo=function(v){this.EncryptedInfo=v};prot.get_IsEnabledPlugins=
|
|
prot.asc_getIsEnabledPlugins=function(){return this.IsEnabledPlugins};prot.put_IsEnabledPlugins=prot.asc_putIsEnabledPlugins=function(v){this.IsEnabledPlugins=v};prot.get_IsEnabledMacroses=prot.asc_getIsEnabledMacroses=function(){return this.IsEnabledMacroses};prot.put_IsEnabledMacroses=prot.asc_putIsEnabledMacroses=function(v){this.IsEnabledMacroses=v};function COpenProgress(){this.Type=Asc.c_oAscAsyncAction.Open;this.FontsCount=0;this.CurrentFont=0;this.ImagesCount=0;this.CurrentImage=0}COpenProgress.prototype.asc_getType=
|
|
function(){return this.Type};COpenProgress.prototype.asc_getFontsCount=function(){return this.FontsCount};COpenProgress.prototype.asc_getCurrentFont=function(){return this.CurrentFont};COpenProgress.prototype.asc_getImagesCount=function(){return this.ImagesCount};COpenProgress.prototype.asc_getCurrentImage=function(){return this.CurrentImage};function CErrorData(){this.Value=0}CErrorData.prototype.put_Value=function(v){this.Value=v};CErrorData.prototype.get_Value=function(){return this.Value};function CAscMathType(){this.Id=
|
|
0;this.X=0;this.Y=0}CAscMathType.prototype.get_Id=function(){return this.Id};CAscMathType.prototype.get_X=function(){return this.X};CAscMathType.prototype.get_Y=function(){return this.Y};function CAscMathCategory(){this.Id=0;this.Data=[];this.W=0;this.H=0}CAscMathCategory.prototype.get_Id=function(){return this.Id};CAscMathCategory.prototype.get_Data=function(){return this.Data};CAscMathCategory.prototype.get_W=function(){return this.W};CAscMathCategory.prototype.get_H=function(){return this.H};CAscMathCategory.prototype.private_Sort=
|
|
function(){this.Data.sort(function(a,b){return a.Id-b.Id})};function CStyleImage(name,type,image,uiPriority){this.name=name;this.displayName=null;this.type=type;this.image=image;this.uiPriority=uiPriority}CStyleImage.prototype.asc_getId=CStyleImage.prototype.asc_getName=CStyleImage.prototype.get_Name=function(){return this.name};CStyleImage.prototype.asc_getDisplayName=function(){return this.displayName};CStyleImage.prototype.asc_getType=CStyleImage.prototype.get_Type=function(){return this.type};
|
|
CStyleImage.prototype.asc_getImage=function(){return this.image};function asc_CSpellCheckProperty(Word,Checked,Variants,ParaId,Element){this.Word=Word;this.Checked=Checked;this.Variants=Variants;this.ParaId=ParaId;this.Element=Element}asc_CSpellCheckProperty.prototype.get_Word=function(){return this.Word};asc_CSpellCheckProperty.prototype.get_Checked=function(){return this.Checked};asc_CSpellCheckProperty.prototype.get_Variants=function(){return this.Variants};function CWatermarkOnDraw(htmlContent,
|
|
api){this.api=api;this.isFontsLoaded=false;this.inputContentSrc=htmlContent;if(typeof this.inputContentSrc==="object")this.inputContentSrc=JSON.stringify(this.inputContentSrc);this.replaceMap={};this.image=null;this.imageBase64=undefined;this.width=0;this.height=0;this.transparent=.3;this.zoom=1;this.calculatezoom=-1;this.contentObjects=null;this.CheckParams=function(){this.replaceMap["%user_name%"]=this.api.User.userName;var content=this.inputContentSrc;for(var key in this.replaceMap){if(!this.replaceMap.hasOwnProperty(key))continue;
|
|
content=content.replace(new RegExp(key,"g"),this.replaceMap[key])}this.contentObjects={};try{var _objTmp=JSON.parse(content);this.contentObjects=_objTmp}catch(err){}this.transparent=undefined==this.contentObjects["transparent"]?.3:this.contentObjects["transparent"]};this.Generate=function(){if(!this.isFontsLoaded)return;if(this.zoom==this.calculatezoom)return;this.calculatezoom=this.zoom;this.privateGenerateShape(this.contentObjects)};this.Draw=function(context,dw_or_dx,dh_or_dy,dw,dh){if(!this.image||
|
|
!this.isFontsLoaded)return;var x=0;var y=0;if(undefined==dw){x=dw_or_dx-this.width>>1;y=dh_or_dy-this.height>>1}else{x=dw_or_dx+(dw-this.width)/2>>0;y=dh_or_dy+(dh-this.height)/2>>0}var oldGlobalAlpha=context.globalAlpha;context.globalAlpha=this.transparent;context.drawImage(this.image,x,y);context.globalAlpha=oldGlobalAlpha};this.StartRenderer=function(){var canvasTransparent=document.createElement("canvas");canvasTransparent.width=this.image.width;canvasTransparent.height=this.image.height;var ctx=
|
|
canvasTransparent.getContext("2d");ctx.globalAlpha=this.transparent;ctx.drawImage(this.image,0,0);this.imageBase64=canvasTransparent.toDataURL("image/png");canvasTransparent=null};this.EndRenderer=function(){delete this.imageBase64;this.imageBase64=undefined};this.DrawOnRenderer=function(renderer,w,h){var wMM=this.width*AscCommon.g_dKoef_pix_to_mm/this.zoom;var hMM=this.height*AscCommon.g_dKoef_pix_to_mm/this.zoom;var x=(w-wMM)/2;var y=(h-hMM)/2;renderer.UseOriginImageUrl=true;renderer.drawImage(this.imageBase64,
|
|
x,y,wMM,hMM);renderer.UseOriginImageUrl=false};this.privateGenerateShape=function(obj){AscFormat.ExecuteNoHistory(function(obj){var oShape=new AscFormat.CShape;var bWord=false;var oApi=Asc["editor"]||editor;if(!oApi)return null;switch(oApi.getEditorId()){case AscCommon.c_oEditorId.Word:{oShape.setWordShape(true);bWord=true;break}case AscCommon.c_oEditorId.Presentation:{oShape.setWordShape(false);oShape.setParent(oApi.WordControl.m_oLogicDocument.Slides[oApi.WordControl.m_oLogicDocument.CurPage]);
|
|
break}case AscCommon.c_oEditorId.Spreadsheet:{oShape.setWordShape(false);oShape.setWorksheet(oApi.wb.getWorksheet().model);break}}var _oldTrackRevision=false;if(oApi.getEditorId()==AscCommon.c_oEditorId.Word&&oApi.WordControl&&oApi.WordControl.m_oLogicDocument)_oldTrackRevision=oApi.WordControl.m_oLogicDocument.GetLocalTrackRevisions();if(false!==_oldTrackRevision)oApi.WordControl.m_oLogicDocument.SetLocalTrackRevisions(false);var bRemoveDocument=false;if(oApi.WordControl&&!oApi.WordControl.m_oLogicDocument){bRemoveDocument=
|
|
true;oApi.WordControl.m_oLogicDocument=new AscCommonWord.CDocument;oApi.WordControl.m_oDrawingDocument.m_oLogicDocument=oApi.WordControl.m_oLogicDocument}oShape.setBDeleted(false);oShape.spPr=new AscFormat.CSpPr;oShape.spPr.setParent(oShape);oShape.spPr.setXfrm(new AscFormat.CXfrm);oShape.spPr.xfrm.setParent(oShape.spPr);oShape.spPr.xfrm.setOffX(0);oShape.spPr.xfrm.setOffY(0);oShape.spPr.xfrm.setExtX(obj["width"]);oShape.spPr.xfrm.setExtY(obj["height"]);oShape.spPr.xfrm.setRot(AscFormat.normalizeRotate(obj["rotate"]?
|
|
obj["rotate"]*Math.PI/180:0));oShape.spPr.setGeometry(AscFormat.CreateGeometry(obj["type"]));if(obj["fill"]&&obj["fill"].length===3)oShape.spPr.setFill(AscFormat.CreteSolidFillRGB(obj["fill"][0],obj["fill"][1],obj["fill"][2]));if(AscFormat.isRealNumber(obj["stroke-width"])||Array.isArray(obj["stroke"])&&obj["stroke"].length===3){var oUnifill;if(Array.isArray(obj["stroke"])&&obj["stroke"].length===3)oUnifill=AscFormat.CreteSolidFillRGB(obj["stroke"][0],obj["stroke"][1],obj["stroke"][2]);else oUnifill=
|
|
AscFormat.CreteSolidFillRGB(0,0,0);oShape.spPr.setLn(AscFormat.CreatePenFromParams(oUnifill,undefined,undefined,undefined,undefined,AscFormat.isRealNumber(obj["stroke-width"])?obj["stroke-width"]:12700/36E3))}if(bWord)oShape.createTextBoxContent();else oShape.createTextBody();var align=obj["align"];if(undefined!=align)oShape.setVerticalAlign(align);if(Array.isArray(obj["margins"])&&obj["margins"].length===4)oShape.setPaddings({Left:obj["margins"][0],Top:obj["margins"][1],Right:obj["margins"][2],Bottom:obj["margins"][3]});
|
|
var oContent=oShape.getDocContent();var aParagraphsS=obj["paragraphs"];if(aParagraphsS.length>0)oContent.Content.length=0;for(var i=0;i<aParagraphsS.length;++i){var oCurParS=aParagraphsS[i];var oNewParagraph=new AscCommonWord.Paragraph(oContent.DrawingDocument,oContent,!bWord);if(AscFormat.isRealNumber(oCurParS["align"]))oNewParagraph.Set_Align(oCurParS["align"]);if(Array.isArray(oCurParS["fill"])&&oCurParS["fill"].length===3){var oShd=new AscCommonWord.CDocumentShd;oShd.Value=Asc.c_oAscShdClear;
|
|
oShd.Color.r=oCurParS["fill"][0];oShd.Color.g=oCurParS["fill"][1];oShd.Color.b=oCurParS["fill"][2];oShd.Fill=new AscCommonWord.CDocumentColor;oShd.Fill.r=oCurParS["fill"][0];oShd.Fill.g=oCurParS["fill"][1];oShd.Fill.b=oCurParS["fill"][2];oNewParagraph.Set_Shd(oShd,true)}if(AscFormat.isRealNumber(oCurParS["linespacing"]))oNewParagraph.Set_Spacing({Line:oCurParS["linespacing"],Before:0,After:0,LineRule:Asc.linerule_Auto},true);var aRunsS=oCurParS["runs"];for(var j=0;j<aRunsS.length;++j){var oRunS=aRunsS[j];
|
|
var oRun=new AscCommonWord.ParaRun(oNewParagraph,false);if(Array.isArray(oRunS["fill"])&&oRunS["fill"].length===3)oRun.Set_Unifill(AscFormat.CreteSolidFillRGB(oRunS["fill"][0],oRunS["fill"][1],oRunS["fill"][2]));var fontFamilyName=oRunS["font-family"]?oRunS["font-family"]:"Arial";var fontSize=oRunS["font-size"]!=null?oRunS["font-size"]:50;oRun.Set_RFonts_Ascii({Name:fontFamilyName,Index:-1});oRun.Set_RFonts_CS({Name:fontFamilyName,Index:-1});oRun.Set_RFonts_EastAsia({Name:fontFamilyName,Index:-1});
|
|
oRun.Set_RFonts_HAnsi({Name:fontFamilyName,Index:-1});oRun.Set_FontSize(fontSize);oRun.Set_Bold(oRunS["bold"]===true);oRun.Set_Italic(oRunS["italic"]===true);oRun.Set_Strikeout(oRunS["strikeout"]===true);oRun.Set_Underline(oRunS["underline"]===true);var sCustomText=oRunS["text"];if(sCustomText==="<%br%>")oRun.AddToContent(0,new AscCommonWord.ParaNewLine(AscCommonWord.break_Line),false);else oRun.AddText(sCustomText);oNewParagraph.Internal_Content_Add(j,oRun,false)}oContent.Internal_Content_Add(oContent.Content.length,
|
|
oNewParagraph)}var bLoad=AscCommon.g_oIdCounter.m_bLoad;AscCommon.g_oIdCounter.Set_Load(false);oShape.recalculate();if(oShape.bWordShape)oShape.recalculateText();AscCommon.g_oIdCounter.Set_Load(bLoad);var oldShowParaMarks;if(window.editor){oldShowParaMarks=oApi.ShowParaMarks;oApi.ShowParaMarks=false}AscCommon.IsShapeToImageConverter=true;var _bounds_cheker=new AscFormat.CSlideBoundsChecker;var w_mm=210;var h_mm=297;var w_px=AscCommon.AscBrowser.convertToRetinaValue(w_mm*AscCommon.g_dKoef_mm_to_pix*
|
|
this.zoom,true);var h_px=AscCommon.AscBrowser.convertToRetinaValue(h_mm*AscCommon.g_dKoef_mm_to_pix*this.zoom,true);_bounds_cheker.init(w_px,h_px,w_mm,h_mm);_bounds_cheker.transform(1,0,0,1,0,0);_bounds_cheker.AutoCheckLineWidth=true;_bounds_cheker.CheckLineWidth(oShape);oShape.draw(_bounds_cheker,0);_bounds_cheker.CorrectBounds2();var _need_pix_width=_bounds_cheker.Bounds.max_x-_bounds_cheker.Bounds.min_x+1;var _need_pix_height=_bounds_cheker.Bounds.max_y-_bounds_cheker.Bounds.min_y+1;if(_need_pix_width<=
|
|
0||_need_pix_height<=0)return;if(!this.image)this.image=document.createElement("canvas");this.image.width=_need_pix_width;this.image.height=_need_pix_height;this.width=_need_pix_width;this.height=_need_pix_height;var _ctx=this.image.getContext("2d");var g=new AscCommon.CGraphics;g.init(_ctx,w_px,h_px,w_mm,h_mm);g.m_oFontManager=AscCommon.g_fontManager;g.m_oCoordTransform.tx=-_bounds_cheker.Bounds.min_x;g.m_oCoordTransform.ty=-_bounds_cheker.Bounds.min_y;g.transform(1,0,0,1,0,0);oShape.draw(g,0);AscCommon.IsShapeToImageConverter=
|
|
false;if(bRemoveDocument){oApi.WordControl.m_oLogicDocument=null;oApi.WordControl.m_oDrawingDocument.m_oLogicDocument=null}if(window.editor)oApi.ShowParaMarks=oldShowParaMarks;if(false!==_oldTrackRevision)oApi.WordControl.m_oLogicDocument.SetLocalTrackRevisions(_oldTrackRevision)},this,[obj])};this.onReady=function(){this.isFontsLoaded=true;var oApi=this.api;switch(oApi.editorId){case AscCommon.c_oEditorId.Word:{if(oApi.WordControl){if(oApi.watermarkDraw){oApi.watermarkDraw.zoom=oApi.WordControl.m_nZoomValue/
|
|
100;oApi.watermarkDraw.Generate()}oApi.WordControl.OnRePaintAttack()}break}case AscCommon.c_oEditorId.Presentation:{if(oApi.WordControl){if(oApi.watermarkDraw){oApi.watermarkDraw.zoom=oApi.WordControl.m_nZoomValue/100;oApi.watermarkDraw.Generate()}oApi.WordControl.OnRePaintAttack()}break}case AscCommon.c_oEditorId.Spreadsheet:{var ws=oApi.wb&&oApi.wb.getWorksheet();if(ws&&ws.objectRender&&ws.objectRender)ws.objectRender.OnUpdateOverlay();break}}};this.checkOnReady=function(){this.CheckParams();var fonts=
|
|
[];var pars=this.contentObjects["paragraphs"];var i,j;for(i=0;i<pars.length;i++){var runs=pars[i]["runs"];for(j=0;j<runs.length;j++){if(undefined===runs[j]["font-family"])runs[j]["font-family"]="Arial";fonts.push(runs[j]["font-family"])}}for(i=0;i<fonts.length;i++)fonts[i]=new AscFonts.CFont(AscFonts.g_fontApplication.GetFontInfoName(fonts[i]),0,"",0,null);if(false===AscCommon.g_font_loader.CheckFontsNeedLoading(fonts)){this.onReady();return false}this.api.asyncMethodCallback=function(){var oApi=
|
|
Asc["editor"]||editor;oApi.watermarkDraw.onReady()};AscCommon.g_font_loader.LoadDocumentFonts2(fonts)}}function CPluginVariation(){this.description="";this.url="";this.help="";this.baseUrl="";this.index=0;this.icons=["1x","2x"];this.isViewer=false;this.EditorsSupport=["word","cell","slide"];this.isSystem=false;this.isVisual=false;this.isModal=false;this.isInsideMode=false;this.isCustomWindow=false;this.initDataType=EPluginDataType.none;this.initData="";this.isUpdateOleOnResize=false;this.buttons=
|
|
[{"text":"Ok","primary":true},{"text":"Cancel","primary":false}];this.size=undefined;this.initOnSelectionChanged=undefined;this.events=[];this.eventsMap={}}CPluginVariation.prototype["get_Description"]=function(){return this.description};CPluginVariation.prototype["set_Description"]=function(value){this.description=value};CPluginVariation.prototype["get_Url"]=function(){return this.url};CPluginVariation.prototype["set_Url"]=function(value){this.url=value};CPluginVariation.prototype["get_Help"]=function(){return this.help};
|
|
CPluginVariation.prototype["set_Help"]=function(value){this.help=value};CPluginVariation.prototype["get_Icons"]=function(){return this.icons};CPluginVariation.prototype["set_Icons"]=function(value){this.icons=value};CPluginVariation.prototype["get_System"]=function(){return this.isSystem};CPluginVariation.prototype["set_System"]=function(value){this.isSystem=value};CPluginVariation.prototype["get_Viewer"]=function(){return this.isViewer};CPluginVariation.prototype["set_Viewer"]=function(value){this.isViewer=
|
|
value};CPluginVariation.prototype["get_EditorsSupport"]=function(){return this.EditorsSupport};CPluginVariation.prototype["set_EditorsSupport"]=function(value){this.EditorsSupport=value};CPluginVariation.prototype["get_Visual"]=function(){return this.isVisual};CPluginVariation.prototype["set_Visual"]=function(value){this.isVisual=value};CPluginVariation.prototype["get_Modal"]=function(){return this.isModal};CPluginVariation.prototype["set_Modal"]=function(value){this.isModal=value};CPluginVariation.prototype["get_InsideMode"]=
|
|
function(){return this.isInsideMode};CPluginVariation.prototype["set_InsideMode"]=function(value){this.isInsideMode=value};CPluginVariation.prototype["get_CustomWindow"]=function(){return this.isCustomWindow};CPluginVariation.prototype["set_CustomWindow"]=function(value){this.isCustomWindow=value};CPluginVariation.prototype["get_InitDataType"]=function(){return this.initDataType};CPluginVariation.prototype["set_InitDataType"]=function(value){this.initDataType=value};CPluginVariation.prototype["get_InitData"]=
|
|
function(){return this.initData};CPluginVariation.prototype["set_InitData"]=function(value){this.initData=value};CPluginVariation.prototype["get_UpdateOleOnResize"]=function(){return this.isUpdateOleOnResize};CPluginVariation.prototype["set_UpdateOleOnResize"]=function(value){this.isUpdateOleOnResize=value};CPluginVariation.prototype["get_Buttons"]=function(){return this.buttons};CPluginVariation.prototype["set_Buttons"]=function(value){this.buttons=value};CPluginVariation.prototype["get_Size"]=function(){return this.size};
|
|
CPluginVariation.prototype["set_Size"]=function(value){this.size=value};CPluginVariation.prototype["get_InitOnSelectionChanged"]=function(){return this.initOnSelectionChanged};CPluginVariation.prototype["set_InitOnSelectionChanged"]=function(value){this.initOnSelectionChanged=value};CPluginVariation.prototype["get_Events"]=function(){return this.events};CPluginVariation.prototype["set_Events"]=function(value){if(!value)return;this.events=value.slice(0,value.length);this.eventsMap={};for(var i=0;i<
|
|
this.events.length;i++)this.eventsMap[this.events[i]]=true};CPluginVariation.prototype["serialize"]=function(){var _object={};_object["description"]=this.description;_object["url"]=this.url;_object["help"]=this.help;_object["index"]=this.index;_object["icons"]=this.icons;_object["isViewer"]=this.isViewer;_object["EditorsSupport"]=this.EditorsSupport;_object["isSystem"]=this.isSystem;_object["isVisual"]=this.isVisual;_object["isModal"]=this.isModal;_object["isInsideMode"]=this.isInsideMode;_object["isCustomWindow"]=
|
|
this.isCustomWindow;_object["initDataType"]=this.initDataType;_object["initData"]=this.initData;_object["isUpdateOleOnResize"]=this.isUpdateOleOnResize;_object["buttons"]=this.buttons;_object["size"]=this.size;_object["initOnSelectionChanged"]=this.initOnSelectionChanged;return _object};CPluginVariation.prototype["deserialize"]=function(_object){this.description=_object["description"]!=null?_object["description"]:this.description;this.url=_object["url"]!=null?_object["url"]:this.url;this.help=_object["help"]!=
|
|
null?_object["help"]:this.help;this.index=_object["index"]!=null?_object["index"]:this.index;this.icons=_object["icons"]!=null?_object["icons"]:this.icons;this.isViewer=_object["isViewer"]!=null?_object["isViewer"]:this.isViewer;this.EditorsSupport=_object["EditorsSupport"]!=null?_object["EditorsSupport"]:this.EditorsSupport;this.isVisual=_object["isVisual"]!=null?_object["isVisual"]:this.isVisual;this.isModal=_object["isModal"]!=null?_object["isModal"]:this.isModal;this.isSystem=_object["isSystem"]!=
|
|
null?_object["isSystem"]:this.isSystem;this.isInsideMode=_object["isInsideMode"]!=null?_object["isInsideMode"]:this.isInsideMode;this.isCustomWindow=_object["isCustomWindow"]!=null?_object["isCustomWindow"]:this.isCustomWindow;this.initDataType=_object["initDataType"]!=null?_object["initDataType"]:this.initDataType;this.initData=_object["initData"]!=null?_object["initData"]:this.initData;this.isUpdateOleOnResize=_object["isUpdateOleOnResize"]!=null?_object["isUpdateOleOnResize"]:this.isUpdateOleOnResize;
|
|
this.buttons=_object["buttons"]!=null?_object["buttons"]:this.buttons;if(_object["events"]!=null)this["set_Events"](_object["events"]);this.size=_object["size"]!=null?_object["size"]:this.size;this.initOnSelectionChanged=_object["initOnSelectionChanged"]!=null?_object["initOnSelectionChanged"]:this.initOnSelectionChanged};function CPlugin(){this.name="";this.guid="";this.baseUrl="";this.minVersion="";this.variations=[]}CPlugin.prototype["get_Name"]=function(){return this.name};CPlugin.prototype["set_Name"]=
|
|
function(value){this.name=value};CPlugin.prototype["get_Guid"]=function(){return this.guid};CPlugin.prototype["set_Guid"]=function(value){this.guid=value};CPlugin.prototype["get_BaseUrl"]=function(){return this.baseUrl};CPlugin.prototype["set_BaseUrl"]=function(value){this.baseUrl=value};CPlugin.prototype["get_MinVersion"]=function(){return this.minVersion};CPlugin.prototype["set_MinVersion"]=function(value){this.minVersion=value};CPlugin.prototype["get_Variations"]=function(){return this.variations};
|
|
CPlugin.prototype["set_Variations"]=function(value){this.variations=value};CPlugin.prototype["serialize"]=function(){var _object={};_object["name"]=this.name;_object["guid"]=this.guid;_object["baseUrl"]=this.baseUrl;_object["variations"]=[];for(var i=0;i<this.variations.length;i++)_object["variations"].push(this.variations[i].serialize());return _object};CPlugin.prototype["deserialize"]=function(_object){this.name=_object["name"]!=null?_object["name"]:this.name;this.guid=_object["guid"]!=null?_object["guid"]:
|
|
this.guid;this.baseUrl=_object["baseUrl"]!=null?_object["baseUrl"]:this.baseUrl;this.minVersion=_object["minVersion"]!=null?_object["minVersion"]:this.minVersion;this.variations=[];for(var i=0;i<_object["variations"].length;i++){var _variation=new CPluginVariation;_variation["deserialize"](_object["variations"][i]);this.variations.push(_variation)}};window["AscCommon"]=window["AscCommon"]||{};window["Asc"]=window["Asc"]||{};window["Asc"]["c_oAscArrUserColors"]=window["Asc"].c_oAscArrUserColors=c_oAscArrUserColors;
|
|
window["AscCommon"].CreateAscColorCustom=CreateAscColorCustom;window["AscCommon"].CreateAscColor=CreateAscColor;window["AscCommon"].CreateGUID=CreateGUID;window["AscCommon"].CreateUUID=CreateUUID;window["AscCommon"].CreateUInt32=CreateUInt32;window["AscCommon"].CreateDurableId=CreateDurableId;window["AscCommon"].FixDurableId=FixDurableId;window["AscCommon"].ExtendPrototype=ExtendPrototype;window["Asc"]["c_oLicenseResult"]=window["Asc"].c_oLicenseResult=c_oLicenseResult;prot=c_oLicenseResult;prot["Error"]=
|
|
prot.Error;prot["Expired"]=prot.Expired;prot["Success"]=prot.Success;prot["UnknownUser"]=prot.UnknownUser;prot["Connections"]=prot.Connections;prot["ExpiredTrial"]=prot.ExpiredTrial;prot["SuccessLimit"]=prot.SuccessLimit;prot["UsersCount"]=prot.UsersCount;prot["ConnectionsOS"]=prot.ConnectionsOS;prot["UsersCountOS"]=prot.UsersCountOS;prot["ExpiredLimited"]=prot.ExpiredLimited;window["Asc"]["c_oRights"]=window["Asc"].c_oRights=c_oRights;prot=c_oRights;prot["None"]=prot.None;prot["Edit"]=prot.Edit;
|
|
prot["Review"]=prot.Review;prot["Comment"]=prot.Comment;prot["View"]=prot.View;window["Asc"]["c_oLicenseMode"]=window["Asc"].c_oLicenseMode=c_oLicenseMode;prot=c_oLicenseMode;prot["None"]=prot.None;prot["Trial"]=prot.Trial;prot["Developer"]=prot.Developer;prot["Limited"]=prot.Limited;window["Asc"]["EPluginDataType"]=window["Asc"].EPluginDataType=EPluginDataType;prot=EPluginDataType;prot["none"]=prot.none;prot["text"]=prot.text;prot["ole"]=prot.ole;prot["html"]=prot.html;window["AscCommon"]["asc_CSignatureLine"]=
|
|
window["AscCommon"].asc_CSignatureLine=asc_CSignatureLine;prot=asc_CSignatureLine.prototype;prot["asc_getId"]=prot.asc_getId;prot["asc_setId"]=prot.asc_setId;prot["asc_getGuid"]=prot.asc_getGuid;prot["asc_setGuid"]=prot.asc_setGuid;prot["asc_getSigner1"]=prot.asc_getSigner1;prot["asc_setSigner1"]=prot.asc_setSigner1;prot["asc_getSigner2"]=prot.asc_getSigner2;prot["asc_setSigner2"]=prot.asc_setSigner2;prot["asc_getEmail"]=prot.asc_getEmail;prot["asc_setEmail"]=prot.asc_setEmail;prot["asc_getInstructions"]=
|
|
prot.asc_getInstructions;prot["asc_setInstructions"]=prot.asc_setInstructions;prot["asc_getShowDate"]=prot.asc_getShowDate;prot["asc_setShowDate"]=prot.asc_setShowDate;prot["asc_getValid"]=prot.asc_getValid;prot["asc_setValid"]=prot.asc_setValid;prot["asc_getDate"]=prot.asc_getDate;prot["asc_setDate"]=prot.asc_setDate;prot["asc_getVisible"]=prot.asc_getVisible;prot["asc_setVisible"]=prot.asc_setVisible;prot["asc_getRequested"]=prot.asc_getRequested;prot["asc_setRequested"]=prot.asc_setRequested;window["AscCommon"].asc_CAscEditorPermissions=
|
|
asc_CAscEditorPermissions;prot=asc_CAscEditorPermissions.prototype;prot["asc_getLicenseType"]=prot.asc_getLicenseType;prot["asc_getCanCoAuthoring"]=prot.asc_getCanCoAuthoring;prot["asc_getCanReaderMode"]=prot.asc_getCanReaderMode;prot["asc_getCanBranding"]=prot.asc_getCanBranding;prot["asc_getCustomization"]=prot.asc_getCustomization;prot["asc_getIsAutosaveEnable"]=prot.asc_getIsAutosaveEnable;prot["asc_getAutosaveMinInterval"]=prot.asc_getAutosaveMinInterval;prot["asc_getIsAnalyticsEnable"]=prot.asc_getIsAnalyticsEnable;
|
|
prot["asc_getIsLight"]=prot.asc_getIsLight;prot["asc_getLicenseMode"]=prot.asc_getLicenseMode;prot["asc_getRights"]=prot.asc_getRights;prot["asc_getBuildVersion"]=prot.asc_getBuildVersion;prot["asc_getBuildNumber"]=prot.asc_getBuildNumber;prot["asc_getIsBeta"]=prot.asc_getIsBeta;window["AscCommon"].asc_CAxNumFmt=asc_CAxNumFmt;prot=asc_CAxNumFmt.prototype;prot["getFormatCode"]=prot.getFormatCode;prot["putFormatCode"]=prot.putFormatCode;prot["getFormatCellsInfo"]=prot.getFormatCellsInfo;prot["getSourceLinked"]=
|
|
prot.getSourceLinked;prot["putSourceLinked"]=prot.putSourceLinked;window["AscCommon"].asc_ValAxisSettings=asc_ValAxisSettings;prot=asc_ValAxisSettings.prototype;prot["putMinValRule"]=prot.putMinValRule;prot["putMinVal"]=prot.putMinVal;prot["putMaxValRule"]=prot.putMaxValRule;prot["putMaxVal"]=prot.putMaxVal;prot["putInvertValOrder"]=prot.putInvertValOrder;prot["putLogScale"]=prot.putLogScale;prot["putLogBase"]=prot.putLogBase;prot["putUnits"]=prot.putUnits;prot["putShowUnitsOnChart"]=prot.putShowUnitsOnChart;
|
|
prot["putMajorTickMark"]=prot.putMajorTickMark;prot["putMinorTickMark"]=prot.putMinorTickMark;prot["putTickLabelsPos"]=prot.putTickLabelsPos;prot["putCrossesRule"]=prot.putCrossesRule;prot["putCrosses"]=prot.putCrosses;prot["putDispUnitsRule"]=prot.putDispUnitsRule;prot["getDispUnitsRule"]=prot.getDispUnitsRule;prot["putAxisType"]=prot.putAxisType;prot["getAxisType"]=prot.getAxisType;prot["getMinValRule"]=prot.getMinValRule;prot["getMinVal"]=prot.getMinVal;prot["getMaxValRule"]=prot.getMaxValRule;
|
|
prot["getMaxVal"]=prot.getMaxVal;prot["getInvertValOrder"]=prot.getInvertValOrder;prot["getLogScale"]=prot.getLogScale;prot["getLogBase"]=prot.getLogBase;prot["getUnits"]=prot.getUnits;prot["getShowUnitsOnChart"]=prot.getShowUnitsOnChart;prot["getMajorTickMark"]=prot.getMajorTickMark;prot["getMinorTickMark"]=prot.getMinorTickMark;prot["getTickLabelsPos"]=prot.getTickLabelsPos;prot["getCrossesRule"]=prot.getCrossesRule;prot["getCrosses"]=prot.getCrosses;prot["setDefault"]=prot.setDefault;prot["getShow"]=
|
|
prot.getShow;prot["putShow"]=prot.putShow;prot["putLabel"]=prot.putLabel;prot["getLabel"]=prot.getLabel;prot["putGridlines"]=prot.putGridlines;prot["getGridlines"]=prot.getGridlines;prot["putNumFmt"]=prot.putNumFmt;prot["getNumFmt"]=prot.getNumFmt;window["AscCommon"].asc_CatAxisSettings=asc_CatAxisSettings;prot=asc_CatAxisSettings.prototype;prot["putIntervalBetweenTick"]=prot.putIntervalBetweenTick;prot["putIntervalBetweenLabelsRule"]=prot.putIntervalBetweenLabelsRule;prot["putIntervalBetweenLabels"]=
|
|
prot.putIntervalBetweenLabels;prot["putInvertCatOrder"]=prot.putInvertCatOrder;prot["putLabelsAxisDistance"]=prot.putLabelsAxisDistance;prot["putMajorTickMark"]=prot.putMajorTickMark;prot["putMinorTickMark"]=prot.putMinorTickMark;prot["putTickLabelsPos"]=prot.putTickLabelsPos;prot["putCrossesRule"]=prot.putCrossesRule;prot["putCrosses"]=prot.putCrosses;prot["putAxisType"]=prot.putAxisType;prot["putLabelsPosition"]=prot.putLabelsPosition;prot["putCrossMaxVal"]=prot.putCrossMaxVal;prot["putCrossMinVal"]=
|
|
prot.putCrossMinVal;prot["getIntervalBetweenTick"]=prot.getIntervalBetweenTick;prot["getIntervalBetweenLabelsRule"]=prot.getIntervalBetweenLabelsRule;prot["getIntervalBetweenLabels"]=prot.getIntervalBetweenLabels;prot["getInvertCatOrder"]=prot.getInvertCatOrder;prot["getLabelsAxisDistance"]=prot.getLabelsAxisDistance;prot["getMajorTickMark"]=prot.getMajorTickMark;prot["getMinorTickMark"]=prot.getMinorTickMark;prot["getTickLabelsPos"]=prot.getTickLabelsPos;prot["getCrossesRule"]=prot.getCrossesRule;
|
|
prot["getCrosses"]=prot.getCrosses;prot["getAxisType"]=prot.getAxisType;prot["getLabelsPosition"]=prot.getLabelsPosition;prot["getCrossMaxVal"]=prot.getCrossMaxVal;prot["getCrossMinVal"]=prot.getCrossMinVal;prot["setDefault"]=prot.setDefault;prot["getShow"]=prot.getShow;prot["putShow"]=prot.putShow;prot["getLabel"]=prot.getLabel;prot["putLabel"]=prot.putLabel;prot["putGridlines"]=prot.putGridlines;prot["getGridlines"]=prot.getGridlines;prot["putNumFmt"]=prot.putNumFmt;prot["getNumFmt"]=prot.getNumFmt;
|
|
prot["getAuto"]=prot.getAuto;prot["putAuto"]=prot.putAuto;window["Asc"]["asc_ChartSettings"]=window["Asc"].asc_ChartSettings=asc_ChartSettings;prot=asc_ChartSettings.prototype;prot["putStyle"]=prot.putStyle;prot["putTitle"]=prot.putTitle;prot["putRowCols"]=prot.putRowCols;prot["putHorAxisLabel"]=prot.putHorAxisLabel;prot["putVertAxisLabel"]=prot.putVertAxisLabel;prot["putLegendPos"]=prot.putLegendPos;prot["putDataLabelsPos"]=prot.putDataLabelsPos;prot["putCatAx"]=prot.putCatAx;prot["putValAx"]=prot.putValAx;
|
|
prot["getStyle"]=prot.getStyle;prot["getTitle"]=prot.getTitle;prot["getRowCols"]=prot.getRowCols;prot["getHorAxisLabel"]=prot.getHorAxisLabel;prot["getVertAxisLabel"]=prot.getVertAxisLabel;prot["getLegendPos"]=prot.getLegendPos;prot["getDataLabelsPos"]=prot.getDataLabelsPos;prot["getHorGridLines"]=prot.getHorGridLines;prot["putHorGridLines"]=prot.putHorGridLines;prot["getVertGridLines"]=prot.getVertGridLines;prot["putVertGridLines"]=prot.putVertGridLines;prot["getType"]=prot.getType;prot["putType"]=
|
|
prot.putType;prot["putShowSerName"]=prot.putShowSerName;prot["getShowSerName"]=prot.getShowSerName;prot["putShowCatName"]=prot.putShowCatName;prot["getShowCatName"]=prot.getShowCatName;prot["putShowVal"]=prot.putShowVal;prot["getShowVal"]=prot.getShowVal;prot["putSeparator"]=prot.putSeparator;prot["getSeparator"]=prot.getSeparator;prot["putHorAxisProps"]=prot.putHorAxisProps;prot["getHorAxisProps"]=prot.getHorAxisProps;prot["putVertAxisProps"]=prot.putVertAxisProps;prot["getVertAxisProps"]=prot.getVertAxisProps;
|
|
prot["putRange"]=prot.putRange;prot["getRange"]=prot.getRange;prot["putRanges"]=prot.putRanges;prot["getRanges"]=prot.getRanges;prot["putInColumns"]=prot.putInColumns;prot["getInColumns"]=prot.getInColumns;prot["getInRows"]=prot.getInRows;prot["putShowMarker"]=prot.putShowMarker;prot["getShowMarker"]=prot.getShowMarker;prot["putLine"]=prot.putLine;prot["getLine"]=prot.getLine;prot["putSmooth"]=prot.putSmooth;prot["getSmooth"]=prot.getSmooth;prot["changeType"]=prot.changeType;prot["putShowHorAxis"]=
|
|
prot.putShowHorAxis;prot["getShowHorAxis"]=prot.getShowHorAxis;prot["putShowVerAxis"]=prot.putShowVerAxis;prot["getShowVerAxis"]=prot.getShowVerAxis;prot["getSeries"]=prot.getSeries;prot["getCatValues"]=prot.getCatValues;prot["switchRowCol"]=prot.switchRowCol;prot["addSeries"]=prot.addSeries;prot["addScatterSeries"]=prot.addScatterSeries;prot["getCatFormula"]=prot.getCatFormula;prot["setCatFormula"]=prot.setCatFormula;prot["isValidCatFormula"]=prot.isValidCatFormula;prot["setRange"]=prot.setRange;
|
|
prot["isValidRange"]=prot.isValidRange;prot["startEdit"]=prot.startEdit;prot["endEdit"]=prot.endEdit;prot["cancelEdit"]=prot.cancelEdit;prot["startEditData"]=prot.startEditData;prot["cancelEditData"]=prot.cancelEditData;prot["endEditData"]=prot.endEditData;prot["getHorAxesProps"]=prot.getHorAxesProps;prot["getVertAxesProps"]=prot.getVertAxesProps;prot["getDepthAxesProps"]=prot.getDepthAxesProps;window["AscCommon"].asc_CRect=asc_CRect;prot=asc_CRect.prototype;prot["asc_getX"]=prot.asc_getX;prot["asc_getY"]=
|
|
prot.asc_getY;prot["asc_getWidth"]=prot.asc_getWidth;prot["asc_getHeight"]=prot.asc_getHeight;window["AscCommon"].CColor=CColor;prot=CColor.prototype;prot["getR"]=prot.getR;prot["get_r"]=prot.get_r;prot["put_r"]=prot.put_r;prot["getG"]=prot.getG;prot["get_g"]=prot.get_g;prot["put_g"]=prot.put_g;prot["getB"]=prot.getB;prot["get_b"]=prot.get_b;prot["put_b"]=prot.put_b;prot["getA"]=prot.getA;prot["get_hex"]=prot.get_hex;window["Asc"]["asc_CColor"]=window["Asc"].asc_CColor=asc_CColor;prot=asc_CColor.prototype;
|
|
prot["get_r"]=prot["asc_getR"]=prot.asc_getR;prot["put_r"]=prot["asc_putR"]=prot.asc_putR;prot["get_g"]=prot["asc_getG"]=prot.asc_getG;prot["put_g"]=prot["asc_putG"]=prot.asc_putG;prot["get_b"]=prot["asc_getB"]=prot.asc_getB;prot["put_b"]=prot["asc_putB"]=prot.asc_putB;prot["get_a"]=prot["asc_getA"]=prot.asc_getA;prot["put_a"]=prot["asc_putA"]=prot.asc_putA;prot["get_auto"]=prot["asc_getAuto"]=prot.asc_getAuto;prot["put_auto"]=prot["asc_putAuto"]=prot.asc_putAuto;prot["get_type"]=prot["asc_getType"]=
|
|
prot.asc_getType;prot["put_type"]=prot["asc_putType"]=prot.asc_putType;prot["get_value"]=prot["asc_getValue"]=prot.asc_getValue;prot["put_value"]=prot["asc_putValue"]=prot.asc_putValue;prot["get_hex"]=prot["asc_getHex"]=prot.asc_getHex;prot["get_color"]=prot["asc_getColor"]=prot.asc_getColor;prot["get_hex"]=prot["asc_getHex"]=prot.asc_getHex;window["Asc"]["asc_CTextBorder"]=window["Asc"].asc_CTextBorder=asc_CTextBorder;prot=asc_CTextBorder.prototype;prot["get_Color"]=prot["asc_getColor"]=prot.asc_getColor;
|
|
prot["put_Color"]=prot["asc_putColor"]=prot.asc_putColor;prot["get_Size"]=prot["asc_getSize"]=prot.asc_getSize;prot["put_Size"]=prot["asc_putSize"]=prot.asc_putSize;prot["get_Value"]=prot["asc_getValue"]=prot.asc_getValue;prot["put_Value"]=prot["asc_putValue"]=prot.asc_putValue;prot["get_Space"]=prot["asc_getSpace"]=prot.asc_getSpace;prot["put_Space"]=prot["asc_putSpace"]=prot.asc_putSpace;prot["get_ForSelectedCells"]=prot["asc_getForSelectedCells"]=prot.asc_getForSelectedCells;prot["put_ForSelectedCells"]=
|
|
prot["asc_putForSelectedCells"]=prot.asc_putForSelectedCells;window["Asc"]["asc_CParagraphBorders"]=window["Asc"].asc_CParagraphBorders=asc_CParagraphBorders;prot=asc_CParagraphBorders.prototype;prot["get_Left"]=prot["asc_getLeft"]=prot.asc_getLeft;prot["put_Left"]=prot["asc_putLeft"]=prot.asc_putLeft;prot["get_Top"]=prot["asc_getTop"]=prot.asc_getTop;prot["put_Top"]=prot["asc_putTop"]=prot.asc_putTop;prot["get_Right"]=prot["asc_getRight"]=prot.asc_getRight;prot["put_Right"]=prot["asc_putRight"]=
|
|
prot.asc_putRight;prot["get_Bottom"]=prot["asc_getBottom"]=prot.asc_getBottom;prot["put_Bottom"]=prot["asc_putBottom"]=prot.asc_putBottom;prot["get_Between"]=prot["asc_getBetween"]=prot.asc_getBetween;prot["put_Between"]=prot["asc_putBetween"]=prot.asc_putBetween;window["AscCommon"].asc_CListType=asc_CListType;prot=asc_CListType.prototype;prot["get_ListType"]=prot["asc_getListType"]=prot.asc_getListType;prot["get_ListSubType"]=prot["asc_getListSubType"]=prot.asc_getListSubType;window["AscCommon"].asc_CTextFontFamily=
|
|
asc_CTextFontFamily;window["AscCommon"]["asc_CTextFontFamily"]=asc_CTextFontFamily;prot=asc_CTextFontFamily.prototype;prot["get_Name"]=prot["asc_getName"]=prot.get_Name=prot.asc_getName;prot["get_Index"]=prot["asc_getIndex"]=prot.get_Index=prot.asc_getIndex;prot["put_Name"]=prot["asc_putName"]=prot.put_Name=prot.asc_putName;prot["put_Index"]=prot["asc_putIndex"]=prot.put_Index=prot.asc_putIndex;window["Asc"]["asc_CParagraphTab"]=window["Asc"].asc_CParagraphTab=asc_CParagraphTab;prot=asc_CParagraphTab.prototype;
|
|
prot["get_Value"]=prot["asc_getValue"]=prot.asc_getValue;prot["put_Value"]=prot["asc_putValue"]=prot.asc_putValue;prot["get_Pos"]=prot["asc_getPos"]=prot.asc_getPos;prot["put_Pos"]=prot["asc_putPos"]=prot.asc_putPos;prot["get_Leader"]=prot["asc_getLeader"]=prot.asc_getLeader;prot["put_Leader"]=prot["asc_putLeader"]=prot.asc_putLeader;window["Asc"]["asc_CParagraphTabs"]=window["Asc"].asc_CParagraphTabs=asc_CParagraphTabs;prot=asc_CParagraphTabs.prototype;prot["get_Count"]=prot["asc_getCount"]=prot.asc_getCount;
|
|
prot["get_Tab"]=prot["asc_getTab"]=prot.asc_getTab;prot["add_Tab"]=prot["asc_addTab"]=prot.asc_addTab;prot["clear"]=prot.clear=prot["asc_clear"]=prot.asc_clear;window["Asc"]["asc_CParagraphShd"]=window["Asc"].asc_CParagraphShd=asc_CParagraphShd;prot=asc_CParagraphShd.prototype;prot["get_Value"]=prot["asc_getValue"]=prot.asc_getValue;prot["put_Value"]=prot["asc_putValue"]=prot.asc_putValue;prot["get_Color"]=prot["asc_getColor"]=prot.asc_getColor;prot["put_Color"]=prot["asc_putColor"]=prot.asc_putColor;
|
|
window["Asc"]["asc_CParagraphFrame"]=window["Asc"].asc_CParagraphFrame=asc_CParagraphFrame;prot=asc_CParagraphFrame.prototype;prot["asc_getDropCap"]=prot["get_DropCap"]=prot.asc_getDropCap;prot["asc_putDropCap"]=prot["put_DropCap"]=prot.asc_putDropCap;prot["asc_getH"]=prot["get_H"]=prot.asc_getH;prot["asc_putH"]=prot["put_H"]=prot.asc_putH;prot["asc_getHAnchor"]=prot["get_HAnchor"]=prot.asc_getHAnchor;prot["asc_putHAnchor"]=prot["put_HAnchor"]=prot.asc_putHAnchor;prot["asc_getHRule"]=prot["get_HRule"]=
|
|
prot.asc_getHRule;prot["asc_putHRule"]=prot["put_HRule"]=prot.asc_putHRule;prot["asc_getHSpace"]=prot["get_HSpace"]=prot.asc_getHSpace;prot["asc_putHSpace"]=prot["put_HSpace"]=prot.asc_putHSpace;prot["asc_getLines"]=prot["get_Lines"]=prot.asc_getLines;prot["asc_putLines"]=prot["put_Lines"]=prot.asc_putLines;prot["asc_getVAnchor"]=prot["get_VAnchor"]=prot.asc_getVAnchor;prot["asc_putVAnchor"]=prot["put_VAnchor"]=prot.asc_putVAnchor;prot["asc_getVSpace"]=prot["get_VSpace"]=prot.asc_getVSpace;prot["asc_putVSpace"]=
|
|
prot["put_VSpace"]=prot.asc_putVSpace;prot["asc_getW"]=prot["get_W"]=prot.asc_getW;prot["asc_putW"]=prot["put_W"]=prot.asc_putW;prot["asc_getWrap"]=prot["get_Wrap"]=prot.asc_getWrap;prot["asc_putWrap"]=prot["put_Wrap"]=prot.asc_putWrap;prot["asc_getX"]=prot["get_X"]=prot.asc_getX;prot["asc_putX"]=prot["put_X"]=prot.asc_putX;prot["asc_getXAlign"]=prot["get_XAlign"]=prot.asc_getXAlign;prot["asc_putXAlign"]=prot["put_XAlign"]=prot.asc_putXAlign;prot["asc_getY"]=prot["get_Y"]=prot.asc_getY;prot["asc_putY"]=
|
|
prot["put_Y"]=prot.asc_putY;prot["asc_getYAlign"]=prot["get_YAlign"]=prot.asc_getYAlign;prot["asc_putYAlign"]=prot["put_YAlign"]=prot.asc_putYAlign;prot["asc_getBorders"]=prot["get_Borders"]=prot.asc_getBorders;prot["asc_putBorders"]=prot["put_Borders"]=prot.asc_putBorders;prot["asc_getShade"]=prot["get_Shade"]=prot.asc_getShade;prot["asc_putShade"]=prot["put_Shade"]=prot.asc_putShade;prot["asc_getFontFamily"]=prot["get_FontFamily"]=prot.asc_getFontFamily;prot["asc_putFontFamily"]=prot["put_FontFamily"]=
|
|
prot.asc_putFontFamily;prot["asc_putFromDropCapMenu"]=prot["put_FromDropCapMenu"]=prot.asc_putFromDropCapMenu;window["AscCommon"].asc_CParagraphSpacing=asc_CParagraphSpacing;prot=asc_CParagraphSpacing.prototype;prot["get_Line"]=prot["asc_getLine"]=prot.asc_getLine;prot["put_Line"]=prot["asc_putLine"]=prot.asc_putLine;prot["get_LineRule"]=prot["asc_getLineRule"]=prot.asc_getLineRule;prot["put_LineRule"]=prot["asc_putLineRule"]=prot.asc_putLineRule;prot["get_Before"]=prot["asc_getBefore"]=prot.asc_getBefore;
|
|
prot["put_Before"]=prot["asc_putBefore"]=prot.asc_putBefore;prot["get_After"]=prot["asc_getAfter"]=prot.asc_getAfter;prot["put_After"]=prot["asc_putAfter"]=prot.asc_putAfter;window["Asc"]["asc_CParagraphInd"]=window["Asc"].asc_CParagraphInd=asc_CParagraphInd;prot=asc_CParagraphInd.prototype;prot["get_Left"]=prot["asc_getLeft"]=prot.asc_getLeft;prot["put_Left"]=prot["asc_putLeft"]=prot.asc_putLeft;prot["get_Right"]=prot["asc_getRight"]=prot.asc_getRight;prot["put_Right"]=prot["asc_putRight"]=prot.asc_putRight;
|
|
prot["get_FirstLine"]=prot["asc_getFirstLine"]=prot.asc_getFirstLine;prot["put_FirstLine"]=prot["asc_putFirstLine"]=prot.asc_putFirstLine;window["Asc"]["asc_CParagraphProperty"]=window["Asc"].asc_CParagraphProperty=asc_CParagraphProperty;prot=asc_CParagraphProperty.prototype;prot["get_ContextualSpacing"]=prot["asc_getContextualSpacing"]=prot.asc_getContextualSpacing;prot["put_ContextualSpacing"]=prot["asc_putContextualSpacing"]=prot.asc_putContextualSpacing;prot["get_Ind"]=prot["asc_getInd"]=prot.asc_getInd;
|
|
prot["put_Ind"]=prot["asc_putInd"]=prot.asc_putInd;prot["get_Jc"]=prot["asc_getJc"]=prot.asc_getJc;prot["put_Jc"]=prot["asc_putJc"]=prot.asc_putJc;prot["get_KeepLines"]=prot["asc_getKeepLines"]=prot.asc_getKeepLines;prot["put_KeepLines"]=prot["asc_putKeepLines"]=prot.asc_putKeepLines;prot["get_KeepNext"]=prot["asc_getKeepNext"]=prot.asc_getKeepNext;prot["put_KeepNext"]=prot["asc_putKeepNext"]=prot.asc_putKeepNext;prot["get_PageBreakBefore"]=prot["asc_getPageBreakBefore"]=prot.asc_getPageBreakBefore;
|
|
prot["put_PageBreakBefore"]=prot["asc_putPageBreakBefore"]=prot.asc_putPageBreakBefore;prot["get_WidowControl"]=prot["asc_getWidowControl"]=prot.asc_getWidowControl;prot["put_WidowControl"]=prot["asc_putWidowControl"]=prot.asc_putWidowControl;prot["get_Spacing"]=prot["asc_getSpacing"]=prot.asc_getSpacing;prot["put_Spacing"]=prot["asc_putSpacing"]=prot.asc_putSpacing;prot["get_Borders"]=prot["asc_getBorders"]=prot.asc_getBorders;prot["put_Borders"]=prot["asc_putBorders"]=prot.asc_putBorders;prot["get_Shade"]=
|
|
prot["asc_getShade"]=prot.asc_getShade;prot["put_Shade"]=prot["asc_putShade"]=prot.asc_putShade;prot["get_Locked"]=prot["asc_getLocked"]=prot.asc_getLocked;prot["get_CanAddTable"]=prot["asc_getCanAddTable"]=prot.asc_getCanAddTable;prot["get_Subscript"]=prot["asc_getSubscript"]=prot.asc_getSubscript;prot["put_Subscript"]=prot["asc_putSubscript"]=prot.asc_putSubscript;prot["get_Superscript"]=prot["asc_getSuperscript"]=prot.asc_getSuperscript;prot["put_Superscript"]=prot["asc_putSuperscript"]=prot.asc_putSuperscript;
|
|
prot["get_SmallCaps"]=prot["asc_getSmallCaps"]=prot.asc_getSmallCaps;prot["put_SmallCaps"]=prot["asc_putSmallCaps"]=prot.asc_putSmallCaps;prot["get_AllCaps"]=prot["asc_getAllCaps"]=prot.asc_getAllCaps;prot["put_AllCaps"]=prot["asc_putAllCaps"]=prot.asc_putAllCaps;prot["get_Strikeout"]=prot["asc_getStrikeout"]=prot.asc_getStrikeout;prot["put_Strikeout"]=prot["asc_putStrikeout"]=prot.asc_putStrikeout;prot["get_DStrikeout"]=prot["asc_getDStrikeout"]=prot.asc_getDStrikeout;prot["put_DStrikeout"]=prot["asc_putDStrikeout"]=
|
|
prot.asc_putDStrikeout;prot["get_TextSpacing"]=prot["asc_getTextSpacing"]=prot.asc_getTextSpacing;prot["put_TextSpacing"]=prot["asc_putTextSpacing"]=prot.asc_putTextSpacing;prot["get_Position"]=prot["asc_getPosition"]=prot.asc_getPosition;prot["put_Position"]=prot["asc_putPosition"]=prot.asc_putPosition;prot["get_Tabs"]=prot["asc_getTabs"]=prot.asc_getTabs;prot["put_Tabs"]=prot["asc_putTabs"]=prot.asc_putTabs;prot["get_DefaultTab"]=prot["asc_getDefaultTab"]=prot.asc_getDefaultTab;prot["put_DefaultTab"]=
|
|
prot["asc_putDefaultTab"]=prot.asc_putDefaultTab;prot["get_FramePr"]=prot["asc_getFramePr"]=prot.asc_getFramePr;prot["put_FramePr"]=prot["asc_putFramePr"]=prot.asc_putFramePr;prot["get_CanAddDropCap"]=prot["asc_getCanAddDropCap"]=prot.asc_getCanAddDropCap;prot["get_CanAddImage"]=prot["asc_getCanAddImage"]=prot.asc_getCanAddImage;prot["get_OutlineLvl"]=prot["asc_getOutlineLvl"]=prot.asc_getOutlineLvl;prot["put_OutlineLvl"]=prot["asc_putOutLineLvl"]=prot.asc_putOutLineLvl;prot["get_OutlineLvlStyle"]=
|
|
prot["asc_getOutlineLvlStyle"]=prot.asc_getOutlineLvlStyle;prot["get_SuppressLineNumbers"]=prot["asc_getSuppressLineNumbers"]=prot.asc_getSuppressLineNumbers;prot["put_SuppressLineNumbers"]=prot["asc_putSuppressLineNumbers"]=prot.asc_putSuppressLineNumbers;prot["put_Bullet"]=prot["asc_putBullet"]=prot.asc_putBullet;prot["get_Bullet"]=prot["asc_getBullet"]=prot.asc_getBullet;prot["put_BulletSize"]=prot["asc_putBulletSize"]=prot.asc_putBulletSize;prot["get_BulletSize"]=prot["asc_getBulletSize"]=prot.asc_getBulletSize;
|
|
prot["put_BulletColor"]=prot["asc_putBulletColor"]=prot.asc_putBulletColor;prot["get_BulletColor"]=prot["asc_getBulletColor"]=prot.asc_getBulletColor;prot["put_NumStartAt"]=prot["asc_putNumStartAt"]=prot.asc_putNumStartAt;prot["get_NumStartAt"]=prot["asc_getNumStartAt"]=prot.asc_getNumStartAt;prot["get_BulletFont"]=prot["asc_getBulletFont"]=prot.asc_getBulletFont;prot["put_BulletFont"]=prot["asc_putBulletFont"]=prot.asc_putBulletFont;prot["get_BulletSymbol"]=prot["asc_getBulletSymbol"]=prot.asc_getBulletSymbol;
|
|
prot["put_BulletSymbol"]=prot["asc_putBulletSymbol"]=prot.asc_putBulletSymbol;prot["can_DeleteBlockContentControl"]=prot["asc_canDeleteBlockContentControl"]=prot.asc_canDeleteBlockContentControl;prot["can_EditBlockContentControl"]=prot["asc_canEditBlockContentControl"]=prot.asc_canEditBlockContentControl;prot["can_DeleteInlineContentControl"]=prot["asc_canDeleteInlineContentControl"]=prot.asc_canDeleteInlineContentControl;prot["can_EditInlineContentControl"]=prot["asc_canEditInlineContentControl"]=
|
|
prot.asc_canEditInlineContentControl;window["AscCommon"].asc_CTexture=asc_CTexture;prot=asc_CTexture.prototype;prot["get_id"]=prot["asc_getId"]=prot.asc_getId;prot["get_image"]=prot["asc_getImage"]=prot.asc_getImage;window["AscCommon"].asc_CImageSize=asc_CImageSize;prot=asc_CImageSize.prototype;prot["get_ImageWidth"]=prot["asc_getImageWidth"]=prot.asc_getImageWidth;prot["get_ImageHeight"]=prot["asc_getImageHeight"]=prot.asc_getImageHeight;prot["get_IsCorrect"]=prot["asc_getIsCorrect"]=prot.asc_getIsCorrect;
|
|
window["Asc"]["asc_CPaddings"]=window["Asc"].asc_CPaddings=asc_CPaddings;prot=asc_CPaddings.prototype;prot["get_Left"]=prot["asc_getLeft"]=prot.asc_getLeft;prot["put_Left"]=prot["asc_putLeft"]=prot.asc_putLeft;prot["get_Top"]=prot["asc_getTop"]=prot.asc_getTop;prot["put_Top"]=prot["asc_putTop"]=prot.asc_putTop;prot["get_Bottom"]=prot["asc_getBottom"]=prot.asc_getBottom;prot["put_Bottom"]=prot["asc_putBottom"]=prot.asc_putBottom;prot["get_Right"]=prot["asc_getRight"]=prot.asc_getRight;prot["put_Right"]=
|
|
prot["asc_putRight"]=prot.asc_putRight;window["Asc"]["asc_CShapeProperty"]=window["Asc"].asc_CShapeProperty=asc_CShapeProperty;prot=asc_CShapeProperty.prototype;prot["get_type"]=prot["asc_getType"]=prot.asc_getType;prot["put_type"]=prot["asc_putType"]=prot.asc_putType;prot["get_fill"]=prot["asc_getFill"]=prot.asc_getFill;prot["put_fill"]=prot["asc_putFill"]=prot.asc_putFill;prot["get_stroke"]=prot["asc_getStroke"]=prot.asc_getStroke;prot["put_stroke"]=prot["asc_putStroke"]=prot.asc_putStroke;prot["get_paddings"]=
|
|
prot["asc_getPaddings"]=prot.asc_getPaddings;prot["put_paddings"]=prot["asc_putPaddings"]=prot.asc_putPaddings;prot["get_CanFill"]=prot["asc_getCanFill"]=prot.asc_getCanFill;prot["put_CanFill"]=prot["asc_putCanFill"]=prot.asc_putCanFill;prot["get_CanChangeArrows"]=prot["asc_getCanChangeArrows"]=prot.asc_getCanChangeArrows;prot["set_CanChangeArrows"]=prot["asc_setCanChangeArrows"]=prot.asc_setCanChangeArrows;prot["get_FromChart"]=prot["asc_getFromChart"]=prot.asc_getFromChart;prot["set_FromChart"]=
|
|
prot["asc_setFromChart"]=prot.asc_setFromChart;prot["get_FromGroup"]=prot["asc_getFromGroup"]=prot.asc_getFromGroup;prot["set_FromGroup"]=prot["asc_setFromGroup"]=prot.asc_setFromGroup;prot["get_Locked"]=prot["asc_getLocked"]=prot.asc_getLocked;prot["set_Locked"]=prot["asc_setLocked"]=prot.asc_setLocked;prot["get_Width"]=prot["asc_getWidth"]=prot.asc_getWidth;prot["put_Width"]=prot["asc_putWidth"]=prot.asc_putWidth;prot["get_Height"]=prot["asc_getHeight"]=prot.asc_getHeight;prot["put_Height"]=prot["asc_putHeight"]=
|
|
prot.asc_putHeight;prot["get_VerticalTextAlign"]=prot["asc_getVerticalTextAlign"]=prot.asc_getVerticalTextAlign;prot["put_VerticalTextAlign"]=prot["asc_putVerticalTextAlign"]=prot.asc_putVerticalTextAlign;prot["get_Vert"]=prot["asc_getVert"]=prot.asc_getVert;prot["put_Vert"]=prot["asc_putVert"]=prot.asc_putVert;prot["get_TextArtProperties"]=prot["asc_getTextArtProperties"]=prot.asc_getTextArtProperties;prot["put_TextArtProperties"]=prot["asc_putTextArtProperties"]=prot.asc_putTextArtProperties;prot["get_LockAspect"]=
|
|
prot["asc_getLockAspect"]=prot.asc_getLockAspect;prot["put_LockAspect"]=prot["asc_putLockAspect"]=prot.asc_putLockAspect;prot["get_Title"]=prot["asc_getTitle"]=prot.asc_getTitle;prot["put_Title"]=prot["asc_putTitle"]=prot.asc_putTitle;prot["get_Description"]=prot["asc_getDescription"]=prot.asc_getDescription;prot["put_Description"]=prot["asc_putDescription"]=prot.asc_putDescription;prot["get_ColumnNumber"]=prot["asc_getColumnNumber"]=prot.asc_getColumnNumber;prot["put_ColumnNumber"]=prot["asc_putColumnNumber"]=
|
|
prot.asc_putColumnNumber;prot["get_ColumnSpace"]=prot["asc_getColumnSpace"]=prot.asc_getColumnSpace;prot["get_TextFitType"]=prot["asc_getTextFitType"]=prot.asc_getTextFitType;prot["get_VertOverflowType"]=prot["asc_getVertOverflowType"]=prot.asc_getVertOverflowType;prot["put_ColumnSpace"]=prot["asc_putColumnSpace"]=prot.asc_putColumnSpace;prot["put_TextFitType"]=prot["asc_putTextFitType"]=prot.asc_putTextFitType;prot["put_VertOverflowType"]=prot["asc_putVertOverflowType"]=prot.asc_putVertOverflowType;
|
|
prot["get_SignatureId"]=prot["asc_getSignatureId"]=prot.asc_getSignatureId;prot["put_SignatureId"]=prot["asc_putSignatureId"]=prot.asc_putSignatureId;prot["get_FromImage"]=prot["asc_getFromImage"]=prot.asc_getFromImage;prot["put_FromImage"]=prot["asc_putFromImage"]=prot.asc_putFromImage;prot["get_Rot"]=prot["asc_getRot"]=prot.asc_getRot;prot["put_Rot"]=prot["asc_putRot"]=prot.asc_putRot;prot["get_RotAdd"]=prot["asc_getRotAdd"]=prot.asc_getRotAdd;prot["put_RotAdd"]=prot["asc_putRotAdd"]=prot.asc_putRotAdd;
|
|
prot["get_FlipH"]=prot["asc_getFlipH"]=prot.asc_getFlipH;prot["put_FlipH"]=prot["asc_putFlipH"]=prot.asc_putFlipH;prot["get_FlipV"]=prot["asc_getFlipV"]=prot.asc_getFlipV;prot["put_FlipV"]=prot["asc_putFlipV"]=prot.asc_putFlipV;prot["get_FlipHInvert"]=prot["asc_getFlipHInvert"]=prot.asc_getFlipHInvert;prot["put_FlipHInvert"]=prot["asc_putFlipHInvert"]=prot.asc_putFlipHInvert;prot["get_FlipVInvert"]=prot["asc_getFlipVInvert"]=prot.asc_getFlipVInvert;prot["put_FlipVInvert"]=prot["asc_putFlipVInvert"]=
|
|
prot.asc_putFlipVInvert;prot["put_Shadow"]=prot.put_Shadow=prot["put_shadow"]=prot.put_shadow=prot["asc_putShadow"]=prot.asc_putShadow;prot["get_Shadow"]=prot.get_Shadow=prot["get_shadow"]=prot.get_shadow=prot["asc_getShadow"]=prot.asc_getShadow;prot["put_Anchor"]=prot.put_Anchor=prot["asc_putAnchor"]=prot.asc_putAnchor;prot["get_Anchor"]=prot.get_Anchor=prot["asc_getAnchor"]=prot.asc_getAnchor;window["Asc"]["asc_TextArtProperties"]=window["Asc"].asc_TextArtProperties=asc_TextArtProperties;prot=asc_TextArtProperties.prototype;
|
|
prot["asc_putFill"]=prot.asc_putFill;prot["asc_getFill"]=prot.asc_getFill;prot["asc_putLine"]=prot.asc_putLine;prot["asc_getLine"]=prot.asc_getLine;prot["asc_putForm"]=prot.asc_putForm;prot["asc_getForm"]=prot.asc_getForm;prot["asc_putStyle"]=prot.asc_putStyle;prot["asc_getStyle"]=prot.asc_getStyle;window["Asc"]["CImagePositionH"]=window["Asc"].CImagePositionH=CImagePositionH;prot=CImagePositionH.prototype;prot["get_RelativeFrom"]=prot.get_RelativeFrom;prot["put_RelativeFrom"]=prot.put_RelativeFrom;
|
|
prot["get_UseAlign"]=prot.get_UseAlign;prot["put_UseAlign"]=prot.put_UseAlign;prot["get_Align"]=prot.get_Align;prot["put_Align"]=prot.put_Align;prot["get_Value"]=prot.get_Value;prot["put_Value"]=prot.put_Value;prot["get_Percent"]=prot.get_Percent;prot["put_Percent"]=prot.put_Percent;window["Asc"]["CImagePositionV"]=window["Asc"].CImagePositionV=CImagePositionV;prot=CImagePositionV.prototype;prot["get_RelativeFrom"]=prot.get_RelativeFrom;prot["put_RelativeFrom"]=prot.put_RelativeFrom;prot["get_UseAlign"]=
|
|
prot.get_UseAlign;prot["put_UseAlign"]=prot.put_UseAlign;prot["get_Align"]=prot.get_Align;prot["put_Align"]=prot.put_Align;prot["get_Value"]=prot.get_Value;prot["put_Value"]=prot.put_Value;prot["get_Percent"]=prot.get_Percent;prot["put_Percent"]=prot.put_Percent;window["Asc"]["CPosition"]=window["Asc"].CPosition=CPosition;prot=CPosition.prototype;prot["get_X"]=prot.get_X;prot["put_X"]=prot.put_X;prot["get_Y"]=prot.get_Y;prot["put_Y"]=prot.put_Y;window["Asc"]["asc_CImgProperty"]=window["Asc"].asc_CImgProperty=
|
|
asc_CImgProperty;prot=asc_CImgProperty.prototype;prot["get_ChangeLevel"]=prot["asc_getChangeLevel"]=prot.asc_getChangeLevel;prot["put_ChangeLevel"]=prot["asc_putChangeLevel"]=prot.asc_putChangeLevel;prot["get_CanBeFlow"]=prot["asc_getCanBeFlow"]=prot.asc_getCanBeFlow;prot["get_Width"]=prot["asc_getWidth"]=prot.asc_getWidth;prot["put_Width"]=prot["asc_putWidth"]=prot.asc_putWidth;prot["get_Height"]=prot["asc_getHeight"]=prot.asc_getHeight;prot["put_Height"]=prot["asc_putHeight"]=prot.asc_putHeight;
|
|
prot["get_WrappingStyle"]=prot["asc_getWrappingStyle"]=prot.asc_getWrappingStyle;prot["put_WrappingStyle"]=prot["asc_putWrappingStyle"]=prot.asc_putWrappingStyle;prot["get_Paddings"]=prot["asc_getPaddings"]=prot.asc_getPaddings;prot["put_Paddings"]=prot["asc_putPaddings"]=prot.asc_putPaddings;prot["get_AllowOverlap"]=prot["asc_getAllowOverlap"]=prot.asc_getAllowOverlap;prot["put_AllowOverlap"]=prot["asc_putAllowOverlap"]=prot.asc_putAllowOverlap;prot["get_Position"]=prot["asc_getPosition"]=prot.asc_getPosition;
|
|
prot["put_Position"]=prot["asc_putPosition"]=prot.asc_putPosition;prot["get_PositionH"]=prot["asc_getPositionH"]=prot.asc_getPositionH;prot["put_PositionH"]=prot["asc_putPositionH"]=prot.asc_putPositionH;prot["get_PositionV"]=prot["asc_getPositionV"]=prot.asc_getPositionV;prot["put_PositionV"]=prot["asc_putPositionV"]=prot.asc_putPositionV;prot["get_SizeRelH"]=prot["asc_getSizeRelH"]=prot.asc_getSizeRelH;prot["put_SizeRelH"]=prot["asc_putSizeRelH"]=prot.asc_putSizeRelH;prot["get_SizeRelV"]=prot["asc_getSizeRelV"]=
|
|
prot.asc_getSizeRelV;prot["put_SizeRelV"]=prot["asc_putSizeRelV"]=prot.asc_putSizeRelV;prot["get_Value_X"]=prot["asc_getValue_X"]=prot.asc_getValue_X;prot["get_Value_Y"]=prot["asc_getValue_Y"]=prot.asc_getValue_Y;prot["get_ImageUrl"]=prot["asc_getImageUrl"]=prot.asc_getImageUrl;prot["put_ImageUrl"]=prot["asc_putImageUrl"]=prot.asc_putImageUrl;prot["get_Group"]=prot["asc_getGroup"]=prot.asc_getGroup;prot["put_Group"]=prot["asc_putGroup"]=prot.asc_putGroup;prot["get_FromGroup"]=prot["asc_getFromGroup"]=
|
|
prot.asc_getFromGroup;prot["put_FromGroup"]=prot["asc_putFromGroup"]=prot.asc_putFromGroup;prot["get_isChartProps"]=prot["asc_getisChartProps"]=prot.asc_getisChartProps;prot["put_isChartPross"]=prot["asc_putisChartPross"]=prot.asc_putisChartPross;prot["get_SeveralCharts"]=prot["asc_getSeveralCharts"]=prot.asc_getSeveralCharts;prot["put_SeveralCharts"]=prot["asc_putSeveralCharts"]=prot.asc_putSeveralCharts;prot["get_SeveralChartTypes"]=prot["asc_getSeveralChartTypes"]=prot.asc_getSeveralChartTypes;
|
|
prot["put_SeveralChartTypes"]=prot["asc_putSeveralChartTypes"]=prot.asc_putSeveralChartTypes;prot["get_SeveralChartStyles"]=prot["asc_getSeveralChartStyles"]=prot.asc_getSeveralChartStyles;prot["put_SeveralChartStyles"]=prot["asc_putSeveralChartStyles"]=prot.asc_putSeveralChartStyles;prot["get_VerticalTextAlign"]=prot["asc_getVerticalTextAlign"]=prot.asc_getVerticalTextAlign;prot["put_VerticalTextAlign"]=prot["asc_putVerticalTextAlign"]=prot.asc_putVerticalTextAlign;prot["get_Vert"]=prot["asc_getVert"]=
|
|
prot.asc_getVert;prot["put_Vert"]=prot["asc_putVert"]=prot.asc_putVert;prot["get_Locked"]=prot["asc_getLocked"]=prot.asc_getLocked;prot["getLockAspect"]=prot["asc_getLockAspect"]=prot.asc_getLockAspect;prot["putLockAspect"]=prot["asc_putLockAspect"]=prot.asc_putLockAspect;prot["get_ChartProperties"]=prot["asc_getChartProperties"]=prot.asc_getChartProperties;prot["put_ChartProperties"]=prot["asc_putChartProperties"]=prot.asc_putChartProperties;prot["get_ShapeProperties"]=prot["asc_getShapeProperties"]=
|
|
prot.asc_getShapeProperties;prot["put_ShapeProperties"]=prot["asc_putShapeProperties"]=prot.asc_putShapeProperties;prot["put_SlicerProperties"]=prot["asc_putSlicerProperties"]=prot.asc_putSlicerProperties;prot["get_SlicerProperties"]=prot["asc_getSlicerProperties"]=prot.asc_getSlicerProperties;prot["get_OriginSize"]=prot["asc_getOriginSize"]=prot.asc_getOriginSize;prot["get_PluginGuid"]=prot["asc_getPluginGuid"]=prot.asc_getPluginGuid;prot["put_PluginGuid"]=prot["asc_putPluginGuid"]=prot.asc_putPluginGuid;
|
|
prot["get_PluginData"]=prot["asc_getPluginData"]=prot.asc_getPluginData;prot["put_PluginData"]=prot["asc_putPluginData"]=prot.asc_putPluginData;prot["get_Rot"]=prot["asc_getRot"]=prot.asc_getRot;prot["put_Rot"]=prot["asc_putRot"]=prot.asc_putRot;prot["get_RotAdd"]=prot["asc_getRotAdd"]=prot.asc_getRotAdd;prot["put_RotAdd"]=prot["asc_putRotAdd"]=prot.asc_putRotAdd;prot["get_FlipH"]=prot["asc_getFlipH"]=prot.asc_getFlipH;prot["put_FlipH"]=prot["asc_putFlipH"]=prot.asc_putFlipH;prot["get_FlipV"]=prot["asc_getFlipV"]=
|
|
prot.asc_getFlipV;prot["put_FlipV"]=prot["asc_putFlipV"]=prot.asc_putFlipV;prot["get_FlipHInvert"]=prot["asc_getFlipHInvert"]=prot.asc_getFlipHInvert;prot["put_FlipHInvert"]=prot["asc_putFlipHInvert"]=prot.asc_putFlipHInvert;prot["get_FlipVInvert"]=prot["asc_getFlipVInvert"]=prot.asc_getFlipVInvert;prot["put_FlipVInvert"]=prot["asc_putFlipVInvert"]=prot.asc_putFlipVInvert;prot["put_ResetCrop"]=prot["asc_putResetCrop"]=prot.asc_putResetCrop;prot["get_Title"]=prot["asc_getTitle"]=prot.asc_getTitle;
|
|
prot["put_Title"]=prot["asc_putTitle"]=prot.asc_putTitle;prot["get_Description"]=prot["asc_getDescription"]=prot.asc_getDescription;prot["put_Description"]=prot["asc_putDescription"]=prot.asc_putDescription;prot["get_ColumnNumber"]=prot["asc_getColumnNumber"]=prot.asc_getColumnNumber;prot["put_ColumnNumber"]=prot["asc_putColumnNumber"]=prot.asc_putColumnNumber;prot["get_ColumnSpace"]=prot["asc_getColumnSpace"]=prot.asc_getColumnSpace;prot["get_TextFitType"]=prot["asc_getTextFitType"]=prot.asc_getTextFitType;
|
|
prot["get_VertOverflowType"]=prot["asc_getVertOverflowType"]=prot.asc_getVertOverflowType;prot["put_ColumnSpace"]=prot["asc_putColumnSpace"]=prot.asc_putColumnSpace;prot["put_TextFitType"]=prot["asc_putTextFitType"]=prot.asc_putTextFitType;prot["put_VertOverflowType"]=prot["asc_putVertOverflowType"]=prot.asc_putVertOverflowType;prot["asc_getSignatureId"]=prot["asc_getSignatureId"]=prot.asc_getSignatureId;prot["put_Shadow"]=prot.put_Shadow=prot["put_shadow"]=prot.put_shadow=prot["asc_putShadow"]=prot.asc_putShadow;
|
|
prot["get_Shadow"]=prot.get_Shadow=prot["get_shadow"]=prot.get_shadow=prot["asc_getShadow"]=prot.asc_getShadow;prot["put_Anchor"]=prot.put_Anchor=prot["asc_putAnchor"]=prot.asc_putAnchor;prot["get_Anchor"]=prot.get_Anchor=prot["asc_getAnchor"]=prot.asc_getAnchor;window["AscCommon"].asc_CSelectedObject=asc_CSelectedObject;prot=asc_CSelectedObject.prototype;prot["get_ObjectType"]=prot["asc_getObjectType"]=prot.asc_getObjectType;prot["get_ObjectValue"]=prot["asc_getObjectValue"]=prot.asc_getObjectValue;
|
|
window["Asc"]["asc_CShapeFill"]=window["Asc"].asc_CShapeFill=asc_CShapeFill;prot=asc_CShapeFill.prototype;prot["get_type"]=prot["asc_getType"]=prot.asc_getType;prot["put_type"]=prot["asc_putType"]=prot.asc_putType;prot["get_fill"]=prot["asc_getFill"]=prot.asc_getFill;prot["put_fill"]=prot["asc_putFill"]=prot.asc_putFill;prot["get_transparent"]=prot["asc_getTransparent"]=prot.asc_getTransparent;prot["put_transparent"]=prot["asc_putTransparent"]=prot.asc_putTransparent;prot["asc_CheckForseSet"]=prot["asc_CheckForseSet"]=
|
|
prot.asc_CheckForseSet;window["Asc"]["asc_CFillBlip"]=window["Asc"].asc_CFillBlip=asc_CFillBlip;prot=asc_CFillBlip.prototype;prot["get_type"]=prot["asc_getType"]=prot.asc_getType;prot["put_type"]=prot["asc_putType"]=prot.asc_putType;prot["get_url"]=prot["asc_getUrl"]=prot.asc_getUrl;prot["put_url"]=prot["asc_putUrl"]=prot.asc_putUrl;prot["get_texture_id"]=prot["asc_getTextureId"]=prot.asc_getTextureId;prot["put_texture_id"]=prot["asc_putTextureId"]=prot.asc_putTextureId;window["Asc"]["asc_CFillHatch"]=
|
|
window["Asc"].asc_CFillHatch=asc_CFillHatch;prot=asc_CFillHatch.prototype;prot["get_pattern_type"]=prot["asc_getPatternType"]=prot.asc_getPatternType;prot["put_pattern_type"]=prot["asc_putPatternType"]=prot.asc_putPatternType;prot["get_color_fg"]=prot["asc_getColorFg"]=prot.asc_getColorFg;prot["put_color_fg"]=prot["asc_putColorFg"]=prot.asc_putColorFg;prot["get_color_bg"]=prot["asc_getColorBg"]=prot.asc_getColorBg;prot["put_color_bg"]=prot["asc_putColorBg"]=prot.asc_putColorBg;window["Asc"]["asc_CFillGrad"]=
|
|
window["Asc"].asc_CFillGrad=asc_CFillGrad;prot=asc_CFillGrad.prototype;prot["get_colors"]=prot["asc_getColors"]=prot.asc_getColors;prot["put_colors"]=prot["asc_putColors"]=prot.asc_putColors;prot["get_positions"]=prot["asc_getPositions"]=prot.asc_getPositions;prot["put_positions"]=prot["asc_putPositions"]=prot.asc_putPositions;prot["get_grad_type"]=prot["asc_getGradType"]=prot.asc_getGradType;prot["put_grad_type"]=prot["asc_putGradType"]=prot.asc_putGradType;prot["get_linear_angle"]=prot["asc_getLinearAngle"]=
|
|
prot.asc_getLinearAngle;prot["put_linear_angle"]=prot["asc_putLinearAngle"]=prot.asc_putLinearAngle;prot["get_linear_scale"]=prot["asc_getLinearScale"]=prot.asc_getLinearScale;prot["put_linear_scale"]=prot["asc_putLinearScale"]=prot.asc_putLinearScale;prot["get_path_type"]=prot["asc_getPathType"]=prot.asc_getPathType;prot["put_path_type"]=prot["asc_putPathType"]=prot.asc_putPathType;window["Asc"]["asc_CFillSolid"]=window["Asc"].asc_CFillSolid=asc_CFillSolid;prot=asc_CFillSolid.prototype;prot["get_color"]=
|
|
prot["asc_getColor"]=prot.asc_getColor;prot["put_color"]=prot["asc_putColor"]=prot.asc_putColor;window["Asc"]["asc_CStroke"]=window["Asc"].asc_CStroke=asc_CStroke;prot=asc_CStroke.prototype;prot["get_type"]=prot["asc_getType"]=prot.asc_getType;prot["put_type"]=prot["asc_putType"]=prot.asc_putType;prot["get_width"]=prot["asc_getWidth"]=prot.asc_getWidth;prot["put_width"]=prot["asc_putWidth"]=prot.asc_putWidth;prot["get_color"]=prot["asc_getColor"]=prot.asc_getColor;prot["put_color"]=prot["asc_putColor"]=
|
|
prot.asc_putColor;prot["get_linejoin"]=prot["asc_getLinejoin"]=prot.asc_getLinejoin;prot["put_linejoin"]=prot["asc_putLinejoin"]=prot.asc_putLinejoin;prot["get_linecap"]=prot["asc_getLinecap"]=prot.asc_getLinecap;prot["put_linecap"]=prot["asc_putLinecap"]=prot.asc_putLinecap;prot["get_linebeginstyle"]=prot["asc_getLinebeginstyle"]=prot.asc_getLinebeginstyle;prot["put_linebeginstyle"]=prot["asc_putLinebeginstyle"]=prot.asc_putLinebeginstyle;prot["get_linebeginsize"]=prot["asc_getLinebeginsize"]=prot.asc_getLinebeginsize;
|
|
prot["put_linebeginsize"]=prot["asc_putLinebeginsize"]=prot.asc_putLinebeginsize;prot["get_lineendstyle"]=prot["asc_getLineendstyle"]=prot.asc_getLineendstyle;prot["put_lineendstyle"]=prot["asc_putLineendstyle"]=prot.asc_putLineendstyle;prot["get_lineendsize"]=prot["asc_getLineendsize"]=prot.asc_getLineendsize;prot["put_lineendsize"]=prot["asc_putLineendsize"]=prot.asc_putLineendsize;prot["get_canChangeArrows"]=prot["asc_getCanChangeArrows"]=prot.asc_getCanChangeArrows;prot["put_prstDash"]=prot["asc_putPrstDash"]=
|
|
prot.asc_putPrstDash;prot["get_prstDash"]=prot["asc_getPrstDash"]=prot.asc_getPrstDash;window["AscCommon"].CAscColorScheme=CAscColorScheme;prot=CAscColorScheme.prototype;prot["get_colors"]=prot.get_colors;prot["get_name"]=prot.get_name;window["AscCommon"].CMouseMoveData=CMouseMoveData;prot=CMouseMoveData.prototype;prot["get_Type"]=prot.get_Type;prot["get_X"]=prot.get_X;prot["get_Y"]=prot.get_Y;prot["get_Hyperlink"]=prot.get_Hyperlink;prot["get_UserId"]=prot.get_UserId;prot["get_HaveChanges"]=prot.get_HaveChanges;
|
|
prot["get_LockedObjectType"]=prot.get_LockedObjectType;prot["get_FootnoteText"]=prot.get_FootnoteText;prot["get_FootnoteNumber"]=prot.get_FootnoteNumber;prot["get_FormHelpText"]=prot.get_FormHelpText;prot["get_ReviewChange"]=prot.get_ReviewChange;window["Asc"]["asc_CUserInfo"]=window["Asc"].asc_CUserInfo=asc_CUserInfo;prot=asc_CUserInfo.prototype;prot["asc_putId"]=prot["put_Id"]=prot.asc_putId;prot["asc_getId"]=prot["get_Id"]=prot.asc_getId;prot["asc_putFullName"]=prot["put_FullName"]=prot.asc_putFullName;
|
|
prot["asc_getFullName"]=prot["get_FullName"]=prot.asc_getFullName;prot["asc_putFirstName"]=prot["put_FirstName"]=prot.asc_putFirstName;prot["asc_getFirstName"]=prot["get_FirstName"]=prot.asc_getFirstName;prot["asc_putLastName"]=prot["put_LastName"]=prot.asc_putLastName;prot["asc_getLastName"]=prot["get_LastName"]=prot.asc_getLastName;prot["asc_putIsAnonymousUser"]=prot["put_IsAnonymousUser"]=prot.asc_putIsAnonymousUser;prot["asc_getIsAnonymousUser"]=prot["get_IsAnonymousUser"]=prot.asc_getIsAnonymousUser;
|
|
window["Asc"]["asc_CDocInfo"]=window["Asc"].asc_CDocInfo=asc_CDocInfo;prot=asc_CDocInfo.prototype;prot["get_Id"]=prot["asc_getId"]=prot.asc_getId;prot["put_Id"]=prot["asc_putId"]=prot.asc_putId;prot["get_Url"]=prot["asc_getUrl"]=prot.asc_getUrl;prot["put_Url"]=prot["asc_putUrl"]=prot.asc_putUrl;prot["get_Title"]=prot["asc_getTitle"]=prot.asc_getTitle;prot["put_Title"]=prot["asc_putTitle"]=prot.asc_putTitle;prot["get_Format"]=prot["asc_getFormat"]=prot.asc_getFormat;prot["put_Format"]=prot["asc_putFormat"]=
|
|
prot.asc_putFormat;prot["get_VKey"]=prot["asc_getVKey"]=prot.asc_getVKey;prot["put_VKey"]=prot["asc_putVKey"]=prot.asc_putVKey;prot["get_UserId"]=prot["asc_getUserId"]=prot.asc_getUserId;prot["get_UserName"]=prot["asc_getUserName"]=prot.asc_getUserName;prot["get_Options"]=prot["asc_getOptions"]=prot.asc_getOptions;prot["put_Options"]=prot["asc_putOptions"]=prot.asc_putOptions;prot["get_CallbackUrl"]=prot["asc_getCallbackUrl"]=prot.asc_getCallbackUrl;prot["put_CallbackUrl"]=prot["asc_putCallbackUrl"]=
|
|
prot.asc_putCallbackUrl;prot["get_TemplateReplacement"]=prot["asc_getTemplateReplacement"]=prot.asc_getTemplateReplacement;prot["put_TemplateReplacement"]=prot["asc_putTemplateReplacement"]=prot.asc_putTemplateReplacement;prot["get_UserInfo"]=prot["asc_getUserInfo"]=prot.asc_getUserInfo;prot["put_UserInfo"]=prot["asc_putUserInfo"]=prot.asc_putUserInfo;prot["get_Token"]=prot["asc_getToken"]=prot.asc_getToken;prot["put_Token"]=prot["asc_putToken"]=prot.asc_putToken;prot["get_Mode"]=prot["asc_getMode"]=
|
|
prot.asc_getMode;prot["put_Mode"]=prot["asc_putMode"]=prot.asc_putMode;prot["get_Permissions"]=prot["asc_getPermissions"]=prot.asc_getPermissions;prot["put_Permissions"]=prot["asc_putPermissions"]=prot.asc_putPermissions;prot["get_Lang"]=prot["asc_getLang"]=prot.asc_getLang;prot["put_Lang"]=prot["asc_putLang"]=prot.asc_putLang;prot["get_Encrypted"]=prot["asc_getEncrypted"]=prot.asc_getEncrypted;prot["put_Encrypted"]=prot["asc_putEncrypted"]=prot.asc_putEncrypted;prot["get_EncryptedInfo"]=prot["asc_getEncryptedInfo"]=
|
|
prot.asc_getEncryptedInfo;prot["put_EncryptedInfo"]=prot["asc_putEncryptedInfo"]=prot.asc_putEncryptedInfo;prot["get_IsEnabledPlugins"]=prot["asc_getIsEnabledPlugins"]=prot.asc_getIsEnabledPlugins;prot["put_IsEnabledPlugins"]=prot["asc_putIsEnabledPlugins"]=prot.asc_putIsEnabledPlugins;prot["get_IsEnabledMacroses"]=prot["asc_getIsEnabledMacroses"]=prot.asc_getIsEnabledMacroses;prot["put_IsEnabledMacroses"]=prot["asc_putIsEnabledMacroses"]=prot.asc_putIsEnabledMacroses;window["AscCommon"].COpenProgress=
|
|
COpenProgress;prot=COpenProgress.prototype;prot["asc_getType"]=prot.asc_getType;prot["asc_getFontsCount"]=prot.asc_getFontsCount;prot["asc_getCurrentFont"]=prot.asc_getCurrentFont;prot["asc_getImagesCount"]=prot.asc_getImagesCount;prot["asc_getCurrentImage"]=prot.asc_getCurrentImage;window["AscCommon"].CErrorData=CErrorData;prot=CErrorData.prototype;prot["put_Value"]=prot.put_Value;prot["get_Value"]=prot.get_Value;window["AscCommon"].CAscMathType=CAscMathType;prot=CAscMathType.prototype;prot["get_Id"]=
|
|
prot.get_Id;prot["get_X"]=prot.get_X;prot["get_Y"]=prot.get_Y;window["AscCommon"].CAscMathCategory=CAscMathCategory;prot=CAscMathCategory.prototype;prot["get_Id"]=prot.get_Id;prot["get_Data"]=prot.get_Data;prot["get_W"]=prot.get_W;prot["get_H"]=prot.get_H;window["AscCommon"].CStyleImage=CStyleImage;prot=CStyleImage.prototype;prot["asc_getId"]=prot["asc_getName"]=prot["get_Name"]=prot.asc_getName;prot["asc_getDisplayName"]=prot.asc_getDisplayName;prot["asc_getType"]=prot["get_Type"]=prot.asc_getType;
|
|
prot["asc_getImage"]=prot.asc_getImage;window["AscCommon"].asc_CSpellCheckProperty=asc_CSpellCheckProperty;prot=asc_CSpellCheckProperty.prototype;prot["get_Word"]=prot.get_Word;prot["get_Checked"]=prot.get_Checked;prot["get_Variants"]=prot.get_Variants;window["AscCommon"].CWatermarkOnDraw=CWatermarkOnDraw;window["AscCommon"].isFileBuild=isFileBuild;window["AscCommon"].checkCanvasInDiv=checkCanvasInDiv;window["Asc"]["CPluginVariation"]=window["Asc"].CPluginVariation=CPluginVariation;window["Asc"]["CPlugin"]=
|
|
window["Asc"].CPlugin=CPlugin})(window);"use strict";
|
|
(function(window,undefined){function inherit(proto){function F(){}F.prototype=proto;return new F}if(!Object.create||!Object["create"])Object["create"]=Object.create=inherit;var c_oSerConstants={ErrorFormat:-2,ErrorUnknown:-1,ReadOk:0,ReadUnknown:1,ErrorStream:85};var c_oSerPropLenType={Null:0,Byte:1,Short:2,Three:3,Long:4,Double:5,Variable:6,Double64:7,Long64:8};var c_oSer_ColorObjectType={Rgb:0,Type:1,Theme:2,Tint:3};var c_oSer_ColorType={Auto:0};var c_oSerBorderType={Color:0,Space:1,Size:2,Value:3,
|
|
ColorTheme:4,SpacePoint:5,Size8Point:6};var c_oSerBordersType={left:0,top:1,right:2,bottom:3,insideV:4,insideH:5,start:6,end:7,tl2br:8,tr2bl:9,bar:10,between:11};var c_oSerPaddingType={left:0,top:1,right:2,bottom:3,leftTwips:4,topTwips:5,rightTwips:6,bottomTwips:7};var c_oSerShdType={Value:0,Color:1,ColorTheme:2,Fill:3,FillTheme:4};var c_oSer_ColorThemeType={Auto:0,Color:1,Tint:2,Shade:3};var c_oSerBookmark={Id:0,Name:1,DisplacedByCustomXml:2,ColFirst:3,ColLast:4};function BinaryCommonWriter(memory){this.memory=
|
|
memory}BinaryCommonWriter.prototype.WriteItem=function(type,fWrite){this.memory.WriteByte(type);this.WriteItemWithLength(fWrite)};BinaryCommonWriter.prototype.WriteItemStart=function(type,fWrite){this.memory.WriteByte(type);return this.WriteItemWithLengthStart(fWrite)};BinaryCommonWriter.prototype.WriteItemEnd=function(nStart){this.WriteItemWithLengthEnd(nStart)};BinaryCommonWriter.prototype.WriteItemWithLength=function(fWrite){var nStart=this.WriteItemWithLengthStart();fWrite();this.WriteItemWithLengthEnd(nStart)};
|
|
BinaryCommonWriter.prototype.WriteItemWithLengthStart=function(){var nStart=this.memory.GetCurPosition();this.memory.Skip(4);return nStart};BinaryCommonWriter.prototype.WriteItemWithLengthEnd=function(nStart){var nEnd=this.memory.GetCurPosition();this.memory.Seek(nStart);this.memory.WriteLong(nEnd-nStart-4);this.memory.Seek(nEnd)};BinaryCommonWriter.prototype.WriteBorder=function(border){var _this=this;if(null!=border.Value){var color=null;if(null!=border.Color)color=border.Color;else if(null!=border.Unifill){var doc=
|
|
window.editor.WordControl.m_oLogicDocument;border.Unifill.check(doc.Get_Theme(),doc.Get_ColorMap());var RGBA=border.Unifill.getRGBAColor();color=new window["AscCommonWord"].CDocumentColor(RGBA.R,RGBA.G,RGBA.B)}if(null!=color&&!color.Auto)this.WriteColor(c_oSerBorderType.Color,color);if(null!=border.Space){this.memory.WriteByte(c_oSerBorderType.SpacePoint);this.memory.WriteByte(c_oSerPropLenType.Long);this.writeMmToPt(border.Space)}if(null!=border.Size){this.memory.WriteByte(c_oSerBorderType.Size8Point);
|
|
this.memory.WriteByte(c_oSerPropLenType.Long);this.writeMmToPt(8*border.Size)}if(null!=border.Unifill||null!=border.Color&&border.Color.Auto){this.memory.WriteByte(c_oSerBorderType.ColorTheme);this.memory.WriteByte(c_oSerPropLenType.Variable);this.WriteItemWithLength(function(){_this.WriteColorTheme(border.Unifill,border.Color)})}this.memory.WriteByte(c_oSerBorderType.Value);this.memory.WriteByte(c_oSerPropLenType.Byte);this.memory.WriteByte(border.Value)}};BinaryCommonWriter.prototype.WriteBorders=
|
|
function(Borders){var oThis=this;if(null!=Borders.Left)this.WriteItem(c_oSerBordersType.left,function(){oThis.WriteBorder(Borders.Left)});if(null!=Borders.Top)this.WriteItem(c_oSerBordersType.top,function(){oThis.WriteBorder(Borders.Top)});if(null!=Borders.Right)this.WriteItem(c_oSerBordersType.right,function(){oThis.WriteBorder(Borders.Right)});if(null!=Borders.Bottom)this.WriteItem(c_oSerBordersType.bottom,function(){oThis.WriteBorder(Borders.Bottom)});if(null!=Borders.InsideV)this.WriteItem(c_oSerBordersType.insideV,
|
|
function(){oThis.WriteBorder(Borders.InsideV)});if(null!=Borders.InsideH)this.WriteItem(c_oSerBordersType.insideH,function(){oThis.WriteBorder(Borders.InsideH)});if(null!=Borders.Between)this.WriteItem(c_oSerBordersType.between,function(){oThis.WriteBorder(Borders.Between)})};BinaryCommonWriter.prototype.WriteColor=function(type,color){this.memory.WriteByte(type);this.memory.WriteByte(c_oSerPropLenType.Three);this.memory.WriteByte(color.r);this.memory.WriteByte(color.g);this.memory.WriteByte(color.b)};
|
|
BinaryCommonWriter.prototype.WriteShd=function(Shd){var _this=this;if(null!=Shd.Value){this.memory.WriteByte(c_oSerShdType.Value);this.memory.WriteByte(c_oSerPropLenType.Byte);this.memory.WriteByte(Shd.Value)}var color=null;if(null!=Shd.Color)color=Shd.Color;else if(null!=Shd.Unifill){var doc=editor.WordControl.m_oLogicDocument;Shd.Unifill.check(doc.Get_Theme(),doc.Get_ColorMap());var RGBA=Shd.Unifill.getRGBAColor();color=new AscCommonWord.CDocumentColor(RGBA.R,RGBA.G,RGBA.B)}var fill=null;if(null!=
|
|
Shd.Fill)fill=Shd.Fill;else if(null!=Shd.themeFill){var doc=editor.WordControl.m_oLogicDocument;Shd.themeFill.check(doc.Get_Theme(),doc.Get_ColorMap());var RGBA=Shd.themeFill.getRGBAColor();fill=new AscCommonWord.CDocumentColor(RGBA.R,RGBA.G,RGBA.B)}if(null!=color&&!color.Auto)this.WriteColor(c_oSerShdType.Color,color);if(null!=fill&&!fill.Auto)this.WriteColor(c_oSerShdType.Fill,fill);if(null!=Shd.Unifill||null!=Shd.Color&&Shd.Color.Auto){this.memory.WriteByte(c_oSerShdType.FillTheme);this.memory.WriteByte(c_oSerPropLenType.Variable);
|
|
this.WriteItemWithLength(function(){_this.WriteColorTheme(Shd.Unifill,Shd.Color)})}if(Shd.themeFill||Shd.Fill&&Shd.Fill.Auto){this.memory.WriteByte(c_oSerShdType.ColorTheme);this.memory.WriteByte(c_oSerPropLenType.Variable);this.WriteItemWithLength(function(){_this.WriteColorTheme(Shd.themeFill,Shd.Fill)})}else if(Shd.Unifill){this.memory.WriteByte(c_oSerShdType.ColorTheme);this.memory.WriteByte(c_oSerPropLenType.Variable);this.WriteItemWithLength(function(){_this.WriteColorTheme(Shd.Unifill,Shd.Fill)})}};
|
|
BinaryCommonWriter.prototype.WritePaddings=function(Paddings){if(null!=Paddings.L){this.memory.WriteByte(c_oSerPaddingType.leftTwips);this.memory.WriteByte(c_oSerPropLenType.Long);this.writeMmToTwips(Paddings.L)}if(null!=Paddings.T){this.memory.WriteByte(c_oSerPaddingType.topTwips);this.memory.WriteByte(c_oSerPropLenType.Long);this.writeMmToTwips(Paddings.T)}if(null!=Paddings.R){this.memory.WriteByte(c_oSerPaddingType.rightTwips);this.memory.WriteByte(c_oSerPropLenType.Long);this.writeMmToTwips(Paddings.R)}if(null!=
|
|
Paddings.B){this.memory.WriteByte(c_oSerPaddingType.bottomTwips);this.memory.WriteByte(c_oSerPropLenType.Long);this.writeMmToTwips(Paddings.B)}};BinaryCommonWriter.prototype.WriteColorSpreadsheet=function(color){if(!color){this.memory.WriteByte(c_oSer_ColorObjectType.Type);this.memory.WriteByte(c_oSerPropLenType.Byte);this.memory.WriteByte(c_oSer_ColorType.Auto);return}if(color instanceof AscCommonExcel.ThemeColor){if(null!=color.theme){this.memory.WriteByte(c_oSer_ColorObjectType.Theme);this.memory.WriteByte(c_oSerPropLenType.Byte);
|
|
this.memory.WriteByte(color.theme)}if(null!=color.tint){this.memory.WriteByte(c_oSer_ColorObjectType.Tint);this.memory.WriteByte(c_oSerPropLenType.Double);this.memory.WriteDouble2(color.tint)}}else{this.memory.WriteByte(c_oSer_ColorObjectType.Rgb);this.memory.WriteByte(c_oSerPropLenType.Long);this.memory.WriteLong(color.getRgb())}};BinaryCommonWriter.prototype.WriteColorTheme=function(unifill,color){if(null!=color&&color.Auto){this.memory.WriteByte(c_oSer_ColorThemeType.Auto);this.memory.WriteByte(c_oSerPropLenType.Null)}if(null!=
|
|
unifill&&null!=unifill.fill&&null!=unifill.fill.color&&unifill.fill.color.color instanceof AscFormat.CSchemeColor){var uniColor=unifill.fill.color;if(null!=uniColor.color){var EThemeColor=AscCommonWord.EThemeColor;var nFormatId=EThemeColor.themecolorNone;switch(uniColor.color.id){case 0:nFormatId=EThemeColor.themecolorAccent1;break;case 1:nFormatId=EThemeColor.themecolorAccent2;break;case 2:nFormatId=EThemeColor.themecolorAccent3;break;case 3:nFormatId=EThemeColor.themecolorAccent4;break;case 4:nFormatId=
|
|
EThemeColor.themecolorAccent5;break;case 5:nFormatId=EThemeColor.themecolorAccent6;break;case 6:nFormatId=EThemeColor.themecolorBackground1;break;case 7:nFormatId=EThemeColor.themecolorBackground2;break;case 8:nFormatId=EThemeColor.themecolorDark1;break;case 9:nFormatId=EThemeColor.themecolorDark2;break;case 10:nFormatId=EThemeColor.themecolorFollowedHyperlink;break;case 11:nFormatId=EThemeColor.themecolorHyperlink;break;case 12:nFormatId=EThemeColor.themecolorLight1;break;case 13:nFormatId=EThemeColor.themecolorLight2;
|
|
break;case 14:nFormatId=EThemeColor.themecolorNone;break;case 15:nFormatId=EThemeColor.themecolorText1;break;case 16:nFormatId=EThemeColor.themecolorText2;break}this.memory.WriteByte(c_oSer_ColorThemeType.Color);this.memory.WriteByte(c_oSerPropLenType.Byte);this.memory.WriteByte(nFormatId)}if(null!=uniColor.Mods)for(var i=0,length=uniColor.Mods.Mods.length;i<length;++i){var mod=uniColor.Mods.Mods[i];if("wordTint"==mod.name){this.memory.WriteByte(c_oSer_ColorThemeType.Tint);this.memory.WriteByte(c_oSerPropLenType.Byte);
|
|
this.memory.WriteByte(Math.round(mod.val))}else if("wordShade"==mod.name){this.memory.WriteByte(c_oSer_ColorThemeType.Shade);this.memory.WriteByte(c_oSerPropLenType.Byte);this.memory.WriteByte(Math.round(mod.val))}}}};BinaryCommonWriter.prototype.WriteBookmark=function(bookmark){var oThis=this;if(null!==bookmark.BookmarkId)this.WriteItem(c_oSerBookmark.Id,function(){oThis.memory.WriteLong(bookmark.BookmarkId)});if(bookmark.IsStart()&&null!==bookmark.BookmarkName){this.memory.WriteByte(c_oSerBookmark.Name);
|
|
this.memory.WriteString2(bookmark.BookmarkName)}};BinaryCommonWriter.prototype.mmToTwips=function(val){return Math.round(AscCommonWord.g_dKoef_mm_to_twips*val)};BinaryCommonWriter.prototype.writeMmToTwips=function(val){return this.memory.WriteLong(this.mmToTwips(val))};BinaryCommonWriter.prototype.writeMmToPt=function(val){return this.memory.WriteLong(Math.round(AscCommonWord.g_dKoef_mm_to_pt*val))};BinaryCommonWriter.prototype.writeMmToEmu=function(val){return this.memory.WriteLong(Math.round(AscCommonWord.g_dKoef_mm_to_emu*
|
|
val))};BinaryCommonWriter.prototype.writeMmToUEmu=function(val){return this.memory.WriteULong(Math.round(AscCommonWord.g_dKoef_mm_to_emu*val))};function Binary_CommonReader(stream){this.stream=stream}Binary_CommonReader.prototype.ReadTable=function(fReadContent){var res=c_oSerConstants.ReadOk;res=this.stream.EnterFrame(4);if(c_oSerConstants.ReadOk!=res)return res;var stLen=this.stream.GetULongLE();res=this.stream.EnterFrame(stLen);if(c_oSerConstants.ReadOk!=res)return res;return this.Read1(stLen,
|
|
fReadContent)};Binary_CommonReader.prototype.Read1=function(stLen,fRead){var res=c_oSerConstants.ReadOk;var stCurPos=0;while(stCurPos<stLen){this.stream.bLast=false;var type=this.stream.GetUChar();var length=this.stream.GetULongLE();if(stCurPos+length+5>=stLen)this.stream.bLast=true;res=fRead(type,length);if(res===c_oSerConstants.ReadUnknown){res=this.stream.Skip2(length);if(c_oSerConstants.ReadOk!=res)return res}else if(res!==c_oSerConstants.ReadOk)return res;stCurPos+=length+5}return res};Binary_CommonReader.prototype.Read2=
|
|
function(stLen,fRead){var res=c_oSerConstants.ReadOk;var stCurPos=0;while(stCurPos<stLen){var type=this.stream.GetUChar();var lenType=this.stream.GetUChar();var nCurPosShift=2;var nRealLen;switch(lenType){case c_oSerPropLenType.Null:nRealLen=0;break;case c_oSerPropLenType.Byte:nRealLen=1;break;case c_oSerPropLenType.Short:nRealLen=2;break;case c_oSerPropLenType.Three:nRealLen=3;break;case c_oSerPropLenType.Long:case c_oSerPropLenType.Double:nRealLen=4;break;case c_oSerPropLenType.Double64:nRealLen=
|
|
8;break;case c_oSerPropLenType.Long:nRealLen=8;break;case c_oSerPropLenType.Variable:nRealLen=this.stream.GetULongLE();nCurPosShift+=4;break;default:return c_oSerConstants.ErrorUnknown}res=fRead(type,nRealLen);if(res===c_oSerConstants.ReadUnknown){res=this.stream.Skip2(nRealLen);if(c_oSerConstants.ReadOk!=res)return res}else if(res!==c_oSerConstants.ReadOk)return res;stCurPos+=nRealLen+nCurPosShift}return res};Binary_CommonReader.prototype.Read2Spreadsheet=function(stLen,fRead){var res=c_oSerConstants.ReadOk;
|
|
var stCurPos=0;while(stCurPos<stLen){var type=this.stream.GetUChar();var lenType=this.stream.GetUChar();var nCurPosShift=2;var nRealLen;switch(lenType){case c_oSerPropLenType.Null:nRealLen=0;break;case c_oSerPropLenType.Byte:nRealLen=1;break;case c_oSerPropLenType.Short:nRealLen=2;break;case c_oSerPropLenType.Three:nRealLen=3;break;case c_oSerPropLenType.Long:nRealLen=4;break;case c_oSerPropLenType.Double:nRealLen=8;break;case c_oSerPropLenType.Double64:nRealLen=8;break;case c_oSerPropLenType.Long:nRealLen=
|
|
8;break;case c_oSerPropLenType.Variable:nRealLen=this.stream.GetULongLE();nCurPosShift+=4;break;default:return c_oSerConstants.ErrorUnknown}res=fRead(type,nRealLen);if(res===c_oSerConstants.ReadUnknown){res=this.stream.Skip2(nRealLen);if(c_oSerConstants.ReadOk!=res)return res}else if(res!==c_oSerConstants.ReadOk)return res;stCurPos+=nRealLen+nCurPosShift}return res};Binary_CommonReader.prototype.ReadDouble=function(){var dRes=0;dRes|=this.stream.GetUChar();dRes|=this.stream.GetUChar()<<8;dRes|=this.stream.GetUChar()<<
|
|
16;dRes|=this.stream.GetUChar()<<24;dRes/=1E5;return dRes};Binary_CommonReader.prototype.ReadColor=function(){var r=this.stream.GetUChar();var g=this.stream.GetUChar();var b=this.stream.GetUChar();return new AscCommonWord.CDocumentColor(r,g,b)};Binary_CommonReader.prototype.ReadShd=function(type,length,Shd,themeColor,themeFill){var res=c_oSerConstants.ReadOk;var oThis=this;switch(type){case c_oSerShdType.Value:Shd.Value=this.stream.GetUChar();break;case c_oSerShdType.Color:Shd.Color=this.ReadColor();
|
|
break;case c_oSerShdType.ColorTheme:res=this.Read2(length,function(t,l){return oThis.ReadColorTheme(t,l,themeFill)});break;case c_oSerShdType.Fill:Shd.Fill=this.ReadColor();break;case c_oSerShdType.FillTheme:res=this.Read2(length,function(t,l){return oThis.ReadColorTheme(t,l,themeColor)});break;default:res=c_oSerConstants.ReadUnknown;break}return res};Binary_CommonReader.prototype.ReadColorSpreadsheet=function(type,length,color){var res=c_oSerConstants.ReadOk;if(c_oSer_ColorObjectType.Type==type)color.auto=
|
|
c_oSer_ColorType.Auto==this.stream.GetUChar();else if(c_oSer_ColorObjectType.Rgb==type)color.rgb=16777215&this.stream.GetULongLE();else if(c_oSer_ColorObjectType.Theme==type)color.theme=this.stream.GetUChar();else if(c_oSer_ColorObjectType.Tint==type)color.tint=this.stream.GetDoubleLE();else res=c_oSerConstants.ReadUnknown;return res};Binary_CommonReader.prototype.ReadColorTheme=function(type,length,color){var res=c_oSerConstants.ReadOk;if(c_oSer_ColorThemeType.Auto==type)color.Auto=true;else if(c_oSer_ColorThemeType.Color==
|
|
type)color.Color=this.stream.GetByte();else if(c_oSer_ColorThemeType.Tint==type)color.Tint=this.stream.GetByte();else if(c_oSer_ColorThemeType.Shade==type)color.Shade=this.stream.GetByte();else res=c_oSerConstants.ReadUnknown;return res};Binary_CommonReader.prototype.ReadBookmark=function(type,length,bookmark){var res=c_oSerConstants.ReadOk;if(c_oSerBookmark.Id===type)bookmark.BookmarkId=this.stream.GetULongLE();else if(c_oSerBookmark.Name===type)bookmark.BookmarkName=this.stream.GetString2LE(length);
|
|
else res=c_oSerConstants.ReadUnknown;return res};function FT_Stream2(data,size){this.obj=null;this.data=data;this.size=size;this.pos=0;this.cur=0;this.bLast=false}FT_Stream2.prototype.Seek=function(_pos){if(_pos>this.size)return c_oSerConstants.ErrorStream;this.pos=_pos;return c_oSerConstants.ReadOk};FT_Stream2.prototype.Seek2=function(_cur){if(_cur>this.size)return c_oSerConstants.ErrorStream;this.cur=_cur;return c_oSerConstants.ReadOk};FT_Stream2.prototype.Skip=function(_skip){if(_skip<0)return c_oSerConstants.ErrorStream;
|
|
return this.Seek(this.pos+_skip)};FT_Stream2.prototype.Skip2=function(_skip){if(_skip<0)return c_oSerConstants.ErrorStream;return this.Seek2(this.cur+_skip)};FT_Stream2.prototype.GetUChar=function(){if(this.cur>=this.size)return 0;return this.data[this.cur++]};FT_Stream2.prototype.GetChar=function(){if(this.cur>=this.size)return 0;var m=this.data[this.cur++];if(m>127)m-=256;return m};FT_Stream2.prototype.GetByte=function(){return this.GetUChar()};FT_Stream2.prototype.GetBool=function(){var Value=
|
|
this.GetUChar();return Value==0?false:true};FT_Stream2.prototype.GetUShortLE=function(){if(this.cur+1>=this.size)return 0;return this.data[this.cur++]|this.data[this.cur++]<<8};FT_Stream2.prototype.GetShortLE=function(){return AscFonts.FT_Common.UShort_To_Short(this.GetUShortLE())};FT_Stream2.prototype.GetULongLE=function(){if(this.cur+3>=this.size)return 0;return this.data[this.cur++]|this.data[this.cur++]<<8|this.data[this.cur++]<<16|this.data[this.cur++]<<24};FT_Stream2.prototype.GetLongLE=function(){return AscFonts.FT_Common.UintToInt(this.GetULongLE())};
|
|
FT_Stream2.prototype.GetLong=function(){return this.GetULongLE()};FT_Stream2.prototype.GetULong=function(){return this.GetULongLE()};var tempHelp=new ArrayBuffer(8);var tempHelpUnit=new Uint8Array(tempHelp);var tempHelpFloat=new Float64Array(tempHelp);FT_Stream2.prototype.GetDoubleLE=function(){if(this.cur+7>=this.size)return 0;tempHelpUnit[0]=this.GetUChar();tempHelpUnit[1]=this.GetUChar();tempHelpUnit[2]=this.GetUChar();tempHelpUnit[3]=this.GetUChar();tempHelpUnit[4]=this.GetUChar();tempHelpUnit[5]=
|
|
this.GetUChar();tempHelpUnit[6]=this.GetUChar();tempHelpUnit[7]=this.GetUChar();return tempHelpFloat[0];var arr=[];for(var i=0;i<8;++i)arr.push(this.GetUChar());return this.doubleDecodeLE754(arr)};FT_Stream2.prototype.doubleDecodeLE754=function(a){var s,e,m,i,d,nBits,mLen,eLen,eBias,eMax;var el={len:8,mLen:52,rt:0};mLen=el.mLen,eLen=el.len*8-el.mLen-1,eMax=(1<<eLen)-1,eBias=eMax>>1;i=el.len-1;d=-1;s=a[i];i+=d;nBits=-7;for(e=s&(1<<-nBits)-1,s>>=-nBits,nBits+=eLen;nBits>0;e=e*256+a[i],i+=d,nBits-=8);
|
|
for(m=e&(1<<-nBits)-1,e>>=-nBits,nBits+=mLen;nBits>0;m=m*256+a[i],i+=d,nBits-=8);switch(e){case 0:e=1-eBias;break;case eMax:return m?NaN:(s?-1:1)*Infinity;default:m=m+Math.pow(2,mLen);e=e-eBias;break}return(s?-1:1)*m*Math.pow(2,e-mLen)};FT_Stream2.prototype.GetUOffsetLE=function(){if(this.cur+2>=this.size)return c_oSerConstants.ReadOk;return this.data[this.cur++]|this.data[this.cur++]<<8|this.data[this.cur++]<<16};FT_Stream2.prototype.GetString2=function(){var Len=this.GetLong();return this.GetString2LE(Len)};
|
|
FT_Stream2.prototype.GetString2LE=function(len){if(this.cur+len>this.size)return"";var a=[];for(var i=0;i+1<len;i+=2)a.push(String.fromCharCode(this.data[this.cur+i]|this.data[this.cur+i+1]<<8));this.cur+=len;return a.join("")};FT_Stream2.prototype.GetString=function(){var Len=this.GetLong();if(this.cur+2*Len>this.size)return"";var t="";for(var i=0;i+1<2*Len;i+=2){var uni=this.data[this.cur+i];uni|=this.data[this.cur+i+1]<<8;t+=String.fromCharCode(uni)}this.cur+=2*Len;return t};FT_Stream2.prototype.GetCurPos=
|
|
function(){return this.cur};FT_Stream2.prototype.GetSize=function(){return this.size};FT_Stream2.prototype.EnterFrame=function(count){if(this.size-this.pos<count)return c_oSerConstants.ErrorStream;this.cur=this.pos;this.pos+=count;return c_oSerConstants.ReadOk};FT_Stream2.prototype.GetDouble=function(){var dRes=0;dRes|=this.GetUChar();dRes|=this.GetUChar()<<8;dRes|=this.GetUChar()<<16;dRes|=this.GetUChar()<<24;dRes/=1E5;return dRes};FT_Stream2.prototype.GetBuffer=function(length){var res=new Array(length);
|
|
for(var i=0;i<length;++i)res[i]=this.data[this.cur++];return res};FT_Stream2.prototype.ToFileStream=function(){var res=new AscCommon.FileStream;this.ToFileStream2(res);return res};FT_Stream2.prototype.ToFileStream2=function(stream){stream.obj=this.obj;stream.data=this.data;stream.size=this.size;stream.pos=this.pos;stream.cur=this.cur};FT_Stream2.prototype.FromFileStream=function(stream){this.obj=stream.obj;this.data=stream.data;this.size=stream.size;this.pos=stream.pos;this.cur=stream.cur};FT_Stream2.prototype.XlsbReadRecordType=
|
|
function(){var nValue=this.GetUChar();if(0!=(nValue&128)){var nPart=this.GetUChar();nValue=nValue&127|(nPart&127)<<7}return nValue};FT_Stream2.prototype.XlsbSkipRecord=function(){this.Skip2(this.XlsbReadRecordLength())};FT_Stream2.prototype.XlsbReadRecordLength=function(){var nValue=0;for(var i=0;i<4;++i){var nPart=this.GetUChar();nValue|=(nPart&127)<<7*i;if(0==(nPart&128))break}return nValue};var gc_nMaxRow=1048576;var gc_nMaxCol=16384;var gc_nMaxRow0=gc_nMaxRow-1;var gc_nMaxCol0=gc_nMaxCol-1;function CellAddressUtils(){this._oCodeA=
|
|
"A".charCodeAt(0);this._aColnumToColstr=[];this.oCellAddressCache={};this.colnumToColstrFromWsView=function(col){var sResult=this._aColnumToColstr[col];if(null!=sResult)return sResult;if(col==0)return"";var col0=col-1;var text=String.fromCharCode(65+col0%26);return this._aColnumToColstr[col]=col0<26?text:this.colnumToColstrFromWsView(Math.floor(col0/26))+text};this.colnumToColstr=function(num){var sResult=this._aColnumToColstr[num];if(!sResult){sResult="";if(num>0){var columnNumber=num;var currentLetterNumber;
|
|
while(columnNumber>0){currentLetterNumber=(columnNumber-1)%26;sResult=String.fromCharCode(currentLetterNumber+65)+sResult;columnNumber=(columnNumber-(currentLetterNumber+1))/26}}this._aColnumToColstr[num]=sResult}return sResult};this.colstrToColnum=function(col_str){var col_num=0;for(var i=0;i<col_str.length;++i)col_num=26*col_num+(col_str.charCodeAt(i)-this._oCodeA+1);return col_num};this.getCellId=function(row,col){return g_oCellAddressUtils.colnumToColstr(col+1)+(row+1)};this.getCellAddress=function(sId){var oRes=
|
|
this.oCellAddressCache[sId];if(null==oRes){oRes=new CellAddress(sId);this.oCellAddressCache[sId]=oRes}return oRes}}var g_oCellAddressUtils=new CellAddressUtils;function CellBase(r,c){this.row=r;this.col=c}CellBase.prototype.clean=function(){this.row=0;this.col=0};CellBase.prototype.clone=function(){return new CellBase(this.row,this.col)};CellBase.prototype.isEqual=function(cell){return this.row===cell.row&&this.col===cell.col};CellBase.prototype.isEmpty=function(){return 0===this.row&&0===this.col};
|
|
CellBase.prototype.getName=function(){return g_oCellAddressUtils.colnumToColstr(this.col+1)+(this.row+1)};function CellAddress(){var argc=arguments.length;this._valid=true;this._invalidId=false;this._invalidCoord=false;this.id=null;this.row=null;this.col=null;this.bRowAbs=false;this.bColAbs=false;this.bIsCol=false;this.bIsRow=false;this.colLetter=null;if(1==argc){this.id=arguments[0].toUpperCase();this._invalidCoord=true;this._checkId()}else if(2==argc){this.row=arguments[0];this.col=arguments[1];
|
|
this._checkCoord();this._invalidId=true}else if(3==argc){this.row=arguments[0]+1;this.col=arguments[1]+1;this._checkCoord();this._invalidId=true}}CellAddress.prototype=Object.create(CellBase.prototype);CellAddress.prototype.constructor=CellAddress;CellAddress.prototype._isDigit=function(symbol){return"0"<=symbol&&symbol<="9"};CellAddress.prototype._isAlpha=function(symbol){return"A"<=symbol&&symbol<="Z"};CellAddress.prototype._checkId=function(){this._invalidCoord=true;this._recalculate(true,false);
|
|
this._checkCoord()};CellAddress.prototype._checkCoord=function(){if(!(this.row>=1&&this.row<=gc_nMaxRow))this._valid=false;else if(!(this.col>=1&&this.col<=gc_nMaxCol))this._valid=false;else this._valid=true};CellAddress.prototype._recalculate=function(bCoord,bId){if(bCoord&&this._invalidCoord){this._invalidCoord=false;var sId=this.id;this.row=this.col=0;var indexes={},i=-1,indexesCount=0;while((i=sId.indexOf("$",i+1))!=-1)indexes[i-indexesCount++]=1;if(indexesCount<=2){if(indexesCount>0)sId=sId.replace(/\$/g,
|
|
"");var nIdLength=sId.length;if(nIdLength>0){var nIndex=0;while(this._isAlpha(sId.charAt(nIndex))&&nIndex<nIdLength)nIndex++;if(0==nIndex){this.bIsRow=true;this.col=1;this.colLetter=g_oCellAddressUtils.colnumToColstr(this.col);this.row=sId.substring(nIndex)-0;if(null!=indexes[0]){this.bRowAbs=true;indexesCount--}}else if(nIndex==nIdLength){this.bIsCol=true;this.colLetter=sId;this.col=g_oCellAddressUtils.colstrToColnum(this.colLetter);this.row=1;if(null!=indexes[0]){this.bColAbs=true;indexesCount--}}else{this.colLetter=
|
|
sId.substring(0,nIndex);this.col=g_oCellAddressUtils.colstrToColnum(this.colLetter);this.row=sId.substring(nIndex)-0;if(null!=indexes[0]){this.bColAbs=true;indexesCount--}if(null!=indexes[nIndex]){this.bRowAbs=true;indexesCount--}}if(indexesCount>0)this.row=this.col=0}}}else if(bId&&this._invalidId){this._invalidId=false;this.colLetter=g_oCellAddressUtils.colnumToColstr(this.col);if(this.bIsCol)this.id=this.colLetter;else if(this.bIsRow)this.id=this.row;else this.id=this.colLetter+this.row}};CellAddress.prototype.isValid=
|
|
function(){return this._valid};CellAddress.prototype.getID=function(){this._recalculate(false,true);return this.id};CellAddress.prototype.getIDAbsolute=function(){this._recalculate(true,false);return"$"+this.getColLetter()+"$"+this.getRow()};CellAddress.prototype.getRow=function(){this._recalculate(true,false);return this.row};CellAddress.prototype.getRow0=function(){this._recalculate(true,false);return this.row-1};CellAddress.prototype.getRowAbs=function(){this._recalculate(true,false);return this.bRowAbs};
|
|
CellAddress.prototype.getIsRow=function(){this._recalculate(true,false);return this.bIsRow};CellAddress.prototype.getCol=function(){this._recalculate(true,false);return this.col};CellAddress.prototype.getCol0=function(){this._recalculate(true,false);return this.col-1};CellAddress.prototype.getColAbs=function(){this._recalculate(true,false);return this.bColAbs};CellAddress.prototype.getIsCol=function(){this._recalculate(true,false);return this.bIsCol};CellAddress.prototype.getColLetter=function(){this._recalculate(false,
|
|
true);return this.colLetter};CellAddress.prototype.setRow=function(val){if(!(this.row>=0&&this.row<=gc_nMaxRow))this._valid=false;this._invalidId=true;this.row=val};CellAddress.prototype.setCol=function(val){if(!(val>=0&&val<=gc_nMaxCol))return;this._invalidId=true;this.col=val};CellAddress.prototype.setId=function(val){this._invalidCoord=true;this.id=val;this._checkId()};CellAddress.prototype.moveRow=function(diff){var val=this.row+diff;if(!(val>=0&&val<=gc_nMaxRow))return;this._invalidId=true;this.row=
|
|
val};CellAddress.prototype.moveCol=function(diff){var val=this.col+diff;if(!(val>=0&&val<=gc_nMaxCol))return;this._invalidId=true;this.col=val};function isRealObject(obj){return obj!==null&&typeof obj==="object"}function FileStream(data,size){this.obj=null;this.data=data;this.size=size;this.pos=0;this.cur=0;this.Seek=function(_pos){if(_pos>this.size)return 1;this.pos=_pos;return 0};this.Seek2=function(_cur){if(_cur>this.size)return 1;this.cur=_cur;return 0};this.Skip=function(_skip){if(_skip<0)return 1;
|
|
return this.Seek(this.pos+_skip)};this.Skip2=function(_skip){if(_skip<0)return 1;return this.Seek2(this.cur+_skip)};this.GetUChar=function(){if(this.cur>=this.size)return 0;return this.data[this.cur++]};this.GetBool=function(){if(this.cur>=this.size)return 0;return this.data[this.cur++]==1?true:false};this.GetUShort=function(){if(this.cur+1>=this.size)return 0;return this.data[this.cur++]|this.data[this.cur++]<<8};this.GetULong=function(){if(this.cur+3>=this.size)return 0;var r=this.data[this.cur++]|
|
|
this.data[this.cur++]<<8|this.data[this.cur++]<<16|this.data[this.cur++]<<24;if(r<0)r+=4294967295+1;return r};this.GetLong=function(){if(this.cur+3>=this.size)return 0;return this.data[this.cur++]|this.data[this.cur++]<<8|this.data[this.cur++]<<16|this.data[this.cur++]<<24};this.GetDouble=function(){if(this.cur+7>=this.size)return 0;tempHelpUnit[0]=this.GetUChar();tempHelpUnit[1]=this.GetUChar();tempHelpUnit[2]=this.GetUChar();tempHelpUnit[3]=this.GetUChar();tempHelpUnit[4]=this.GetUChar();tempHelpUnit[5]=
|
|
this.GetUChar();tempHelpUnit[6]=this.GetUChar();tempHelpUnit[7]=this.GetUChar();return tempHelpFloat[0]};this.GetString=function(len){len*=2;if(this.cur+len>this.size)return"";var t="";for(var i=0;i<len;i+=2){var _c=this.data[this.cur+i+1]<<8|this.data[this.cur+i];if(_c==0)break;t+=String.fromCharCode(_c)}this.cur+=len;return t};this.GetString1=function(len){if(this.cur+len>this.size)return"";var t="";for(var i=0;i<len;i++){var _c=this.data[this.cur+i];if(_c==0)break;t+=String.fromCharCode(_c)}this.cur+=
|
|
len;return t};this.GetString2=function(){var len=this.GetULong();return this.GetString(len)};this.GetString2A=function(){var len=this.GetULong();return this.GetString1(len)};this.EnterFrame=function(count){if(this.pos>=this.size||this.size-this.pos<count)return 1;this.cur=this.pos;this.pos+=count;return 0};this.SkipRecord=function(){var _len=this.GetULong();this.Skip2(_len)};this.GetPercentage=function(){var s=this.GetString2();var _len=s.length;if(_len==0)return null;var _ret=null;if(_len-1==s.indexOf("%")){s.substring(0,
|
|
_len-1);_ret=parseFloat(s);if(isNaN(_ret))_ret=null}else{_ret=parseFloat(s);if(isNaN(_ret))_ret=null;else _ret/=1E3}return _ret}}function GetUTF16_fromUnicodeChar(code){if(code<65536)return String.fromCharCode(code);else{code-=65536;return String.fromCharCode(55296|code>>10&1023)+String.fromCharCode(56320|code&1023)}}function GetStringUtf8(reader,len){if(reader.cur+len>reader.size)return"";var _res="";var end=reader.cur+len;var val=0;while(reader.cur<end){var byteMain=reader.data[reader.cur];if(0==
|
|
(byteMain&128)){_res+=GetUTF16_fromUnicodeChar(byteMain);++reader.cur}else if(0==(byteMain&32)){val=(byteMain&31)<<6|reader.data[reader.cur+1]&63;_res+=GetUTF16_fromUnicodeChar(val);reader.cur+=2}else if(0==(byteMain&16)){val=(byteMain&15)<<12|(reader.data[reader.cur+1]&63)<<6|reader.data[reader.cur+2]&63;_res+=GetUTF16_fromUnicodeChar(val);reader.cur+=3}else if(0==(byteMain&8)){val=(byteMain&7)<<18|(reader.data[reader.cur+1]&63)<<12|(reader.data[reader.cur+2]&63)<<6|reader.data[reader.cur+3]&63;
|
|
_res+=GetUTF16_fromUnicodeChar(val);reader.cur+=4}else if(0==(byteMain&4)){val=(byteMain&3)<<24|(reader.data[reader.cur+1]&63)<<18|(reader.data[reader.cur+2]&63)<<12|(reader.data[reader.cur+3]&63)<<6|reader.data[reader.cur+4]&63;_res+=GetUTF16_fromUnicodeChar(val);reader.cur+=5}else{val=(byteMain&1)<<30|(reader.data[reader.cur+1]&63)<<24|(reader.data[reader.cur+2]&63)<<18|(reader.data[reader.cur+3]&63)<<12|(reader.data[reader.cur+4]&63)<<6|reader.data[reader.cur+5]&63;_res+=GetUTF16_fromUnicodeChar(val);
|
|
reader.cur+=6}}return _res}window["AscCommon"]=window["AscCommon"]||{};window["AscCommon"].c_oSerConstants=c_oSerConstants;window["AscCommon"].c_oSerPropLenType=c_oSerPropLenType;window["AscCommon"].c_oSer_ColorType=c_oSer_ColorType;window["AscCommon"].c_oSerBorderType=c_oSerBorderType;window["AscCommon"].c_oSerBordersType=c_oSerBordersType;window["AscCommon"].c_oSerPaddingType=c_oSerPaddingType;window["AscCommon"].BinaryCommonWriter=BinaryCommonWriter;window["AscCommon"].Binary_CommonReader=Binary_CommonReader;
|
|
window["AscCommon"].FT_Stream2=FT_Stream2;window["AscCommon"].gc_nMaxRow=gc_nMaxRow;window["AscCommon"].gc_nMaxCol=gc_nMaxCol;window["AscCommon"].gc_nMaxRow0=gc_nMaxRow0;window["AscCommon"].gc_nMaxCol0=gc_nMaxCol0;window["AscCommon"].g_oCellAddressUtils=g_oCellAddressUtils;window["AscCommon"].CellBase=CellBase;window["AscCommon"].CellAddress=CellAddress;window["AscCommon"].isRealObject=isRealObject;window["AscCommon"].FileStream=FileStream;window["AscCommon"].GetStringUtf8=GetStringUtf8;window["AscCommon"].g_nodeAttributeStart=
|
|
250;window["AscCommon"].g_nodeAttributeEnd=251})(window);"use strict";
|
|
(function(window,undefined){var AscBrowser=AscCommon.AscBrowser;var locktype_None=AscCommon.locktype_None;var locktype_Mine=AscCommon.locktype_Mine;var locktype_Other=AscCommon.locktype_Other;var locktype_Other2=AscCommon.locktype_Other2;var locktype_Other3=AscCommon.locktype_Other3;var contentchanges_Add=AscCommon.contentchanges_Add;var CColor=AscCommon.CColor;var g_oCellAddressUtils=AscCommon.g_oCellAddressUtils;var c_oAscFileType=Asc.c_oAscFileType;if(typeof String.prototype.startsWith!=="function"){String.prototype.startsWith=
|
|
function(str){return this.indexOf(str)===0};String.prototype["startsWith"]=String.prototype.startsWith}if(typeof String.prototype.endsWith!=="function"){String.prototype.endsWith=function(suffix){return this.indexOf(suffix,this.length-suffix.length)!==-1};String.prototype["endsWith"]=String.prototype.endsWith}if(typeof String.prototype.repeat!=="function"){String.prototype.repeat=function(count){if(this==null)throw new TypeError("can't convert "+this+" to object");var str=""+this;count=+count;if(count!=
|
|
count)count=0;if(count<0)throw new RangeError("repeat count must be non-negative");if(count==Infinity)throw new RangeError("repeat count must be less than infinity");count=Math.floor(count);if(str.length==0||count==0)return"";if(str.length*count>=1<<28)throw new RangeError("repeat count must not overflow maximum string size");var rpt="";for(;;){if((count&1)==1)rpt+=str;count>>>=1;if(count==0)break;str+=str}return rpt};String.prototype["repeat"]=String.prototype.repeat}if(typeof String.prototype.padStart!==
|
|
"function"){String.prototype.padStart=function padStart(targetLength,padString){targetLength=targetLength>>0;padString=String(padString||" ");if(this.length>targetLength)return String(this);else{targetLength=targetLength-this.length;if(targetLength>padString.length)padString+=padString.repeat(targetLength/padString.length);return padString.slice(0,targetLength)+String(this)}};String.prototype["padStart"]=String.prototype.padStart}Number.isInteger=Number.isInteger||function(value){return typeof value===
|
|
"number"&&Number.isFinite(value)&&!(value%1)};Number.isFinite=Number.isFinite||function(value){return typeof value==="number"&&isFinite(value)};String.prototype.strongMatch=function(regExp){if(regExp&®Exp instanceof RegExp){var arr=this.toString().match(regExp);return!!(arr&&arr.length>0&&arr[0].length==this.length)}return false};RegExp.escape=function(text){return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};if(typeof require==="function"&&!window["XRegExp"])window["XRegExp"]=require("xregexp");
|
|
var oZipImages=null;var sDownloadServiceLocalUrl="../../../../downloadas";var sUploadServiceLocalUrl="../../../../upload";var sUploadServiceLocalUrlOld="../../../../uploadold";var sSaveFileLocalUrl="../../../../savefile";var nMaxRequestLength=5242880;function getSockJs(){return window["SockJS"]||require("sockjs")}function getJSZipUtils(){return window["JSZipUtils"]||require("jsziputils")}function getJSZip(){return window["JSZip"]||require("jszip")}function JSZipWrapper(){this.files={}}JSZipWrapper.prototype.loadAsync=
|
|
function(data,options){var t=this;if(window["native"])return new Promise(function(resolve,reject){var retFiles=null;if(options&&options["base64"]===true)retFiles=window["native"]["ZipOpenBase64"](data);else retFiles=window["native"]["ZipOpen"](data);if(null!=retFiles){for(var id in retFiles)t.files[id]=new JSZipObjectWrapper(retFiles[id]);resolve(t)}else reject(new Error("Failed archive"))});return AscCommon.getJSZip().loadAsync(data,options).then(function(zip){for(var id in zip.files)t.files[id]=
|
|
new JSZipObjectWrapper(zip.files[id]);return t})};JSZipWrapper.prototype.close=function(){if(window["native"])window["native"]["ZipClose"]()};function JSZipObjectWrapper(data){this.data=data}JSZipObjectWrapper.prototype.async=function(type){if(window["native"]){var t=this;return new Promise(function(resolve,reject){var ret=window["native"]["ZipFileAsString"](t.data);if(null!=ret)resolve(ret);else reject(new Error("Failed file in archive"))})}return this.data.async(type)};function getBaseUrl(){var indexHtml=
|
|
window["location"]["href"];var questInd=indexHtml.indexOf("?");if(questInd>0)indexHtml=indexHtml.substring(0,questInd);return indexHtml.substring(0,indexHtml.lastIndexOf("/")+1)}function getEncodingParams(){var res=[];for(var i=0;i<AscCommon.c_oAscEncodings.length;++i){var encoding=AscCommon.c_oAscEncodings[i];var newElem={"codepage":encoding[0],"lcid":encoding[1],"name":encoding[3]};res.push(newElem)}return res}function getEncodingByBOM(data){var res={encoding:AscCommon.c_oAscCodePageNone,size:0};
|
|
if(data.length>=2){res.size=2;if(255==data[0]&&254==data[1])res.encoding=AscCommon.c_oAscCodePageUtf16;else if(254==data[0]&&255==data[1])res.encoding=AscCommon.c_oAscCodePageUtf16BE;else if(data.length>=3){res.size=3;if(239==data[0]&&187==data[1]&&191==data[2])res.encoding=AscCommon.c_oAscCodePageUtf8;else if(data.length>=4){res.size=4;if(255==data[0]&&254==data[1]&&0==data[2]&&0==data[3])res.encoding=AscCommon.c_oAscCodePageUtf32;else if(0==data[0]&&0==data[1]&&254==data[2]&&255==data[3])res.encoding=
|
|
AscCommon.c_oAscCodePageUtf32BE;else if(43==data[0]&&47==data[1]&&118==data[2]&&56==data[3])res.encoding=AscCommon.c_oAscCodePageUtf7;else if(43==data[0]&&47==data[1]&&118==data[2]&&57==data[3])res.encoding=AscCommon.c_oAscCodePageUtf7;else if(43==data[0]&&47==data[1]&&118==data[2]&&43==data[3])res.encoding=AscCommon.c_oAscCodePageUtf7;else if(43==data[0]&&47==data[1]&&118==data[2]&&47==data[3])res.encoding=AscCommon.c_oAscCodePageUtf7}}}return res}function DocumentUrls(){this.urls={};this.urlsReverse=
|
|
{};this.documentUrl="";this.imageCount=0}DocumentUrls.prototype={mediaPrefix:"media/",init:function(urls){this.addUrls(urls)},getUrls:function(){return this.urls},addUrls:function(urls){for(var i in urls){var url=urls[i];this.urls[i]=url;this.urlsReverse[url]=i;this.imageCount++}if(window["IS_NATIVE_EDITOR"])window["native"]["setUrlsCount"](this.imageCount)},addImageUrl:function(strPath,url){var urls={};urls[this.mediaPrefix+strPath]=url;this.addUrls(urls)},getImageUrl:function(strPath){return this.getUrl(this.mediaPrefix+
|
|
strPath)},getImageLocal:function(url){if(url&&0===url.indexOf("data:image"))return null;var imageLocal=this.getLocal(url);if(imageLocal&&this.mediaPrefix==imageLocal.substring(0,this.mediaPrefix.length))imageLocal=imageLocal.substring(this.mediaPrefix.length);return imageLocal},imagePath2Local:function(imageLocal){if(imageLocal&&this.mediaPrefix==imageLocal.substring(0,this.mediaPrefix.length))imageLocal=imageLocal.substring(this.mediaPrefix.length);return imageLocal},getUrl:function(strPath){if(this.urls)return this.urls[strPath];
|
|
return null},getLocal:function(url){if(this.urlsReverse){var res=this.urlsReverse[url];if(!res&&typeof editor!=="undefined"&&editor.ThemeLoader&&0==url.indexOf(editor.ThemeLoader.ThemesUrlAbs))res=url.substring(editor.ThemeLoader.ThemesUrlAbs.length);return res}return null},getMaxIndex:function(url){return this.imageCount},getImageUrlsWithOtherExtention:function(imageLocal){var res=[];var filename=GetFileName(imageLocal);for(var i in this.urls)if(0==i.indexOf(this.mediaPrefix+filename+".")&&this.mediaPrefix+
|
|
imageLocal!==i)res.push(this.urls[i]);return res}};var g_oDocumentUrls=new DocumentUrls;function CHTMLCursor(){this.map={};this.mapRetina={};this.value=function(param){var ret=this.map[param];if(AscCommon.AscBrowser.isCustomScalingAbove2()&&this.mapRetina[param])ret=this.mapRetina[param];return ret?ret:param};this.register=function(type,name,target,default_css_value){if(AscBrowser.isIE||AscBrowser.isIeEdge){this.map[type]="url(../../../../sdkjs/common/Images/cursors/"+name+".cur), "+default_css_value;
|
|
this.mapRetina[type]="url(../../../../sdkjs/common/Images/cursors/"+name+"_2x.cur), "+default_css_value}else if(window.opera)this.map[type]=default_css_value;else if(!AscCommon.AscBrowser.isChrome&&!AscCommon.AscBrowser.isSafari)this.map[type]="url('../../../../sdkjs/common/Images/cursors/"+name+".svg') "+target+", url('../../../../sdkjs/common/Images/cursors/"+name+".png') "+target+", "+default_css_value;else this.map[type]="-webkit-image-set(url(../../../../sdkjs/common/Images/cursors/"+name+".png) 1x,"+
|
|
" url(../../../../sdkjs/common/Images/cursors/"+name+"_2x.png) 2x) "+target+", "+default_css_value}}function OpenFileResult(){this.bSerFormat=false;this.data=null;this.url=null;this.changes=null}function saveWithParts(fSendCommand,fCallback,fCallbackRequest,oAdditionalData,dataContainer){var index=dataContainer.index;if(null==dataContainer.part&&(!dataContainer.data||dataContainer.data.length<=nMaxRequestLength))oAdditionalData["savetype"]=AscCommon.c_oAscSaveTypes.CompleteAll;else{if(0==index){oAdditionalData["savetype"]=
|
|
AscCommon.c_oAscSaveTypes.PartStart;dataContainer.count=Math.ceil(dataContainer.data.length/nMaxRequestLength)}else if(index!=dataContainer.count-1)oAdditionalData["savetype"]=AscCommon.c_oAscSaveTypes.Part;else oAdditionalData["savetype"]=AscCommon.c_oAscSaveTypes.Complete;if(typeof dataContainer.data==="string")dataContainer.part=dataContainer.data.substring(index*nMaxRequestLength,(index+1)*nMaxRequestLength);else dataContainer.part=dataContainer.data.subarray(index*nMaxRequestLength,(index+1)*
|
|
nMaxRequestLength)}dataContainer.index++;oAdditionalData["saveindex"]=dataContainer.index;fSendCommand(function(incomeObject,done,status){if(null!=incomeObject&&"ok"==incomeObject["status"])if(dataContainer.index<dataContainer.count){oAdditionalData["savekey"]=incomeObject["data"];saveWithParts(fSendCommand,fCallback,fCallbackRequest,oAdditionalData,dataContainer)}else{if(fCallbackRequest)fCallbackRequest(incomeObject,status)}else fCallbackRequest?fCallbackRequest(incomeObject,status):fCallback(incomeObject,
|
|
status)},oAdditionalData,dataContainer)}function loadFileContent(url,callback,opt_responseType){asc_ajax({url:url,dataType:"text",responseType:opt_responseType,success:callback,error:function(){callback(null)}})}function getImageFromChanges(name){var content;var ext=GetFileExtension(name);if("svg"===ext)ext+="+xml";if(null!==ext&&oZipImages&&(content=oZipImages[name]))return"data:image/"+ext+";base64,"+AscCommon.Base64Encode(content,content.length,0);return null}function initStreamFromResponse(httpRequest){var stream;
|
|
if(typeof ArrayBuffer!=="undefined")stream=new Uint8Array(httpRequest.response);else if(AscCommon.AscBrowser.isIE){var _response=(new VBArray(httpRequest["responseBody"])).toArray();var srcLen=_response.length;var pointer=g_memory.Alloc(srcLen);var tempStream=new AscCommon.FT_Stream2(pointer.data,srcLen);tempStream.obj=pointer.obj;stream=tempStream.data;var index=0;while(index<srcLen){stream[index]=_response[index];index++}}return stream}function checkStreamSignature(stream,Signature){if(stream.length>
|
|
Signature.length){for(var i=0;i<Signature.length;++i)if(stream[i]!==Signature.charCodeAt(i))return false;return true}return false}function openFileCommand(binUrl,changesUrl,Signature,callback){var bError=false,oResult=new OpenFileResult,bEndLoadFile=false,bEndLoadChanges=false;var onEndOpen=function(){if(bEndLoadFile&&bEndLoadChanges)if(callback)callback(bError,oResult)};var sFileUrl=binUrl;sFileUrl=sFileUrl.replace(/\\/g,"/");if(!window["IS_NATIVE_EDITOR"])loadFileContent(sFileUrl,function(httpRequest){var url;
|
|
var nIndex=sFileUrl.lastIndexOf("/");url=-1!==nIndex?sFileUrl.substring(0,nIndex+1):sFileUrl;if(httpRequest){var stream=initStreamFromResponse(httpRequest);if(stream){oResult.bSerFormat=checkStreamSignature(stream,Signature);oResult.data=stream}else bError=true}else bError=true;bEndLoadFile=true;onEndOpen()},"arraybuffer");if(changesUrl){oZipImages={};getJSZipUtils().getBinaryContent(changesUrl,function(err,data){if(err){bEndLoadChanges=true;bError=true;onEndOpen();return}oResult.changes=[];getJSZip().loadAsync(data).then(function(zipChanges){var relativePaths=
|
|
[];var promises=[];zipChanges.forEach(function(relativePath,file){relativePaths.push(relativePath);promises.push(file.async(relativePath.endsWith(".json")?"string":"uint8array"))});Promise.all(promises).then(function(values){var relativePath;for(var i=0;i<values.length;++i)if((relativePath=relativePaths[i]).endsWith(".json"))oResult.changes[parseInt(relativePath.slice("changes".length))]=JSON.parse(values[i]);else oZipImages[relativePath]=values[i];bEndLoadChanges=true;onEndOpen()})})})}else{oZipImages=
|
|
null;bEndLoadChanges=true}if(window["IS_NATIVE_EDITOR"]){var stream=window["native"]["openFileCommand"](sFileUrl,changesUrl,Signature);var url;var nIndex=sFileUrl.lastIndexOf("/");url=-1!==nIndex?sFileUrl.substring(0,nIndex+1):sFileUrl;if(stream){oResult.bSerFormat=checkStreamSignature(stream,Signature);oResult.data=stream}else bError=true;bEndLoadFile=true;onEndOpen()}}function sendCommand(editor,fCallback,rdata,dataContainer){var docConnectionId=editor.CoAuthoringApi.getDocId();if(docConnectionId&&
|
|
docConnectionId!==rdata["id"])rdata["docconnectionid"]=docConnectionId;if(null==rdata["savetype"]){editor.CoAuthoringApi.openDocument(rdata);return}rdata["userconnectionid"]=editor.CoAuthoringApi.getUserConnectionId();asc_ajax({type:"POST",url:sDownloadServiceLocalUrl+"/"+rdata["id"]+"?cmd="+encodeURIComponent(JSON.stringify(rdata)),data:dataContainer.part||dataContainer.data,contentType:"application/octet-stream",error:function(httpRequest,statusText,status){if(fCallback)fCallback(null,true,status)},
|
|
success:function(httpRequest){if(fCallback)fCallback(JSON.parse(httpRequest.responseText),true)}})}function sendSaveFile(docId,userId,title,jwt,data,fError,fsuccess){var cmd={"id":docId,"userid":userId,"tokenSession":jwt,"outputpath":title};asc_ajax({type:"POST",url:sSaveFileLocalUrl+"/"+docId+"?cmd="+encodeURIComponent(JSON.stringify(cmd)),data:data,contentType:"application/octet-stream",error:fError,success:fsuccess})}function mapAscServerErrorToAscError(nServerError,nAction){var nRes=Asc.c_oAscError.ID.Unknown;
|
|
switch(nServerError){case c_oAscServerError.NoError:nRes=Asc.c_oAscError.ID.No;break;case c_oAscServerError.TaskQueue:case c_oAscServerError.TaskResult:nRes=Asc.c_oAscError.ID.Database;break;case c_oAscServerError.ConvertDownload:nRes=Asc.c_oAscError.ID.DownloadError;break;case c_oAscServerError.ConvertTimeout:case c_oAscServerError.ConvertDeadLetter:nRes=Asc.c_oAscError.ID.ConvertationTimeout;break;case c_oAscServerError.ConvertDRM:case c_oAscServerError.ConvertPASSWORD:nRes=Asc.c_oAscError.ID.ConvertationPassword;
|
|
break;case c_oAscServerError.ConvertLIMITS:nRes=Asc.c_oAscError.ID.ConvertationOpenLimitError;break;case c_oAscServerError.ConvertCONVERT_CORRUPTED:case c_oAscServerError.ConvertLIBREOFFICE:case c_oAscServerError.ConvertPARAMS:case c_oAscServerError.ConvertNEED_PARAMS:case c_oAscServerError.ConvertUnknownFormat:case c_oAscServerError.ConvertReadFile:case c_oAscServerError.Convert:nRes=AscCommon.c_oAscAdvancedOptionsAction.Save===nAction?Asc.c_oAscError.ID.ConvertationSaveError:Asc.c_oAscError.ID.ConvertationOpenError;
|
|
break;case c_oAscServerError.UploadContentLength:nRes=Asc.c_oAscError.ID.UplImageSize;break;case c_oAscServerError.UploadExtension:nRes=Asc.c_oAscError.ID.UplImageExt;break;case c_oAscServerError.UploadCountFiles:nRes=Asc.c_oAscError.ID.UplImageFileCount;break;case c_oAscServerError.UploadURL:nRes=Asc.c_oAscError.ID.UplImageUrl;break;case c_oAscServerError.UploadDocumentContentLength:nRes=Asc.c_oAscError.ID.UplDocumentSize;break;case c_oAscServerError.UploadDocumentExtension:nRes=Asc.c_oAscError.ID.UplDocumentExt;
|
|
break;case c_oAscServerError.UploadDocumentCountFiles:nRes=Asc.c_oAscError.ID.UplDocumentFileCount;break;case c_oAscServerError.VKey:nRes=Asc.c_oAscError.ID.FileVKey;break;case c_oAscServerError.VKeyEncrypt:nRes=Asc.c_oAscError.ID.VKeyEncrypt;break;case c_oAscServerError.VKeyKeyExpire:nRes=Asc.c_oAscError.ID.KeyExpire;break;case c_oAscServerError.VKeyUserCountExceed:nRes=Asc.c_oAscError.ID.UserCountExceed;break;case c_oAscServerError.Password:nRes=Asc.c_oAscError.ID.Password;break;case c_oAscServerError.ChangeDocInfo:nRes=
|
|
Asc.c_oAscError.ID.AccessDeny;break;case c_oAscServerError.Storage:case c_oAscServerError.StorageFileNoFound:case c_oAscServerError.StorageRead:case c_oAscServerError.StorageWrite:case c_oAscServerError.StorageRemoveDir:case c_oAscServerError.StorageCreateDir:case c_oAscServerError.StorageGetInfo:case c_oAscServerError.Upload:case c_oAscServerError.ReadRequestStream:case c_oAscServerError.Unknown:nRes=Asc.c_oAscError.ID.Unknown;break}return nRes}function joinUrls(base,relative){var stack=base.split("/"),
|
|
parts=relative.split("/");stack.pop();for(var i=0;i<parts.length;i++){if(parts[i]==".")continue;if(parts[i]=="..")stack.pop();else stack.push(parts[i])}return stack.join("/")}function getFullImageSrc2(src){if(window["NATIVE_EDITOR_ENJINE"])return src;var start=src.slice(0,6);if(0===start.indexOf("theme")&&editor.ThemeLoader)return editor.ThemeLoader.ThemesUrlAbs+src;if(0!==start.indexOf("http:")&&0!==start.indexOf("data:")&&0!==start.indexOf("https:")&&0!==start.indexOf("file:")&&0!==start.indexOf("ftp:")){var srcFull=
|
|
g_oDocumentUrls.getImageUrl(src);if(srcFull)return srcFull}return src}function fSortAscending(a,b){return a-b}function fSortDescending(a,b){return b-a}function isLeadingSurrogateChar(nCharCode){return nCharCode>=55296&&nCharCode<=57343}function decodeSurrogateChar(nLeadingChar,nTrailingChar){if(nLeadingChar<56320&&nTrailingChar>=56320&&nTrailingChar<=57343)return 65536+((nLeadingChar&1023)<<10)|nTrailingChar&1023;else return null}function encodeSurrogateChar(nUnicode){if(nUnicode<65536)return String.fromCharCode(nUnicode);
|
|
else{nUnicode=nUnicode-65536;var nLeadingChar=55296|nUnicode>>10;var nTrailingChar=56320|nUnicode&1023;return String.fromCharCode(nLeadingChar)+String.fromCharCode(nTrailingChar)}}function convertUnicodeToUTF16(sUnicode){var sUTF16="";var nLength=sUnicode.length;for(var nPos=0;nPos<nLength;nPos++)sUTF16+=encodeSurrogateChar(sUnicode[nPos]);return sUTF16}function convertUTF16toUnicode(sUTF16){var sUnicode=[];var nLength=sUTF16.length;for(var nPos=0;nPos<nLength;nPos++){var nUnicode=null;var nCharCode=
|
|
sUTF16.charCodeAt(nPos);if(isLeadingSurrogateChar(nCharCode)){if(nPos+1<nLength){nPos++;var nTrailingChar=sUTF16.charCodeAt(nPos);nUnicode=decodeSurrogateChar(nCharCode,nTrailingChar)}}else nUnicode=nCharCode;if(null!==nUnicode)sUnicode.push(nUnicode)}return sUnicode}function CUnicodeStringEmulator(array){this.arr=array;this.len=this.arr.length;this.pos=0}CUnicodeStringEmulator.prototype={getUnicodeIterator:function(){return this},isOutside:function(){return this.pos>=this.len},isInside:function(){return this.pos<
|
|
this.len},value:function(){if(this.pos>=this.len)return 0;return this.arr[this.pos]},next:function(){this.pos++},position:function(){return this.pos}};CUnicodeStringEmulator.prototype.check=CUnicodeStringEmulator.prototype.isInside;function CUnicodeIterator(str){this._position=0;this._index=0;this._str=str}CUnicodeIterator.prototype={isOutside:function(){return this._index>=this._str.length},isInside:function(){return this._index<this._str.length},value:function(){if(this._index>=this._str.length)return 0;
|
|
var nCharCode=this._str.charCodeAt(this._index);if(!AscCommon.isLeadingSurrogateChar(nCharCode))return nCharCode;if(this._str.length-1==this._index)return nCharCode;var nTrailingChar=this._str.charCodeAt(this._index+1);return AscCommon.decodeSurrogateChar(nCharCode,nTrailingChar)},next:function(){if(this._index>=this._str.length)return;this._position++;if(!AscCommon.isLeadingSurrogateChar(this._str.charCodeAt(this._index))){++this._index;return}if(this._index==this._str.length-1){++this._index;return}this._index+=
|
|
2},position:function(){return this._position}};CUnicodeIterator.prototype.check=CUnicodeIterator.prototype.isInside;String.prototype.getUnicodeIterator=function(){return new CUnicodeIterator(this)};function test_ws_name2(){var str_namedRanges="[A-Z_\u0080-\u0081\u0083\u0085-\u0087\u0089-\u008a\u008c-\u0091\u0093-\u0094\u0096-\u0097\u0099-\u009a\u009c-\u009f\u00a1-\u00a5\u00a7-\u00a8\u00aa\u00ad\u00af-\u00ba\u00bc-\u02b8\u02bb-\u02c1\u02c7\u02c9-\u02cb\u02cd\u02d0-\u02d1\u02d8-\u02db\u02dd\u02e0-\u02e4\u02ee\u0370-\u0373\u0376-\u0377\u037a-\u037d\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u0523\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0621-\u064a\u066e-\u066f\u0671-\u06d3\u06d5\u06e5-\u06e6\u06ee-\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4-\u07f5\u07fa\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0972\u097b-\u097f\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc-\u09dd\u09df-\u09e1\u09f0-\u09f1\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0-\u0ae1\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3d\u0b5c-\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c33\u0c35-\u0c39\u0c3d\u0c58-\u0c59\u0c60-\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0-\u0ce1\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d28\u0d2a-\u0d39\u0d3d\u0d60-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e3a\u0e40-\u0e4e\u0e81-\u0e82\u0e84\u0e87-\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa-\u0eab\u0ead-\u0eb0\u0eb2-\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edd\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8b\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065-\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10d0-\u10fa\u10fc\u1100-\u1159\u115f-\u11a2\u11a8-\u11f9\u1200-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f4\u1401-\u166c\u166f-\u1676\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f0\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u1900-\u191c\u1950-\u196d\u1970-\u1974\u1980-\u19a9\u19c1-\u19c7\u1a00-\u1a16\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae-\u1baf\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2010\u2013-\u2016\u2018\u201c-\u201d\u2020-\u2021\u2025-\u2027\u2030\u2032-\u2033\u2035\u203b\u2071\u2074\u207f\u2081-\u2084\u2090-\u2094\u2102-\u2103\u2105\u2107\u2109-\u2113\u2115-\u2116\u2119-\u211d\u2121-\u2122\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2153-\u2154\u215b-\u215e\u2160-\u2188\u2190-\u2199\u21d2\u21d4\u2200\u2202-\u2203\u2207-\u2208\u220b\u220f\u2211\u2215\u221a\u221d-\u2220\u2223\u2225\u2227-\u222c\u222e\u2234-\u2237\u223c-\u223d\u2248\u224c\u2252\u2260-\u2261\u2264-\u2267\u226a-\u226b\u226e-\u226f\u2282-\u2283\u2286-\u2287\u2295\u2299\u22a5\u22bf\u2312\u2460-\u24b5\u24d0-\u24e9\u2500-\u254b\u2550-\u2574\u2581-\u258f\u2592-\u2595\u25a0-\u25a1\u25a3-\u25a9\u25b2-\u25b3\u25b6-\u25b7\u25bc-\u25bd\u25c0-\u25c1\u25c6-\u25c8\u25cb\u25ce-\u25d1\u25e2-\u25e5\u25ef\u2605-\u2606\u2609\u260e-\u260f\u261c\u261e\u2640\u2642\u2660-\u2661\u2663-\u2665\u2667-\u266a\u266c-\u266d\u266f\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2c6f\u2c71-\u2c7d\u2c80-\u2ce4\u2d00-\u2d25\u2d30-\u2d65\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3000-\u3003\u3005-\u3017\u301d-\u301f\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31b7\u31f0-\u321c\u3220-\u3229\u3231-\u3232\u3239\u3260-\u327b\u327f\u32a3-\u32a8\u3303\u330d\u3314\u3318\u3322-\u3323\u3326-\u3327\u332b\u3336\u333b\u3349-\u334a\u334d\u3351\u3357\u337b-\u337e\u3380-\u3384\u3388-\u33ca\u33cd-\u33d3\u33d5-\u33d6\u33d8\u33db-\u33dd\u3400-\u4db5\u4e00-\u9fc3\ua000-\ua48c\ua500-\ua60c\ua610-\ua61f\ua62a-\ua62b\ua640-\ua65f\ua662-\ua66e\ua680-\ua697\ua722-\ua787\ua78b-\ua78c\ua7fb-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua90a-\ua925\ua930-\ua946\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uac00-\ud7a3\ue000-\uf848\uf900-\ufa2d\ufa30-\ufa6a\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe30-\ufe31\ufe33-\ufe44\ufe49-\ufe52\ufe54-\ufe57\ufe59-\ufe66\ufe68-\ufe6b\ufe70-\ufe74\ufe76-\ufefc\uff01-\uff5e\uff61-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc\uffe0-\uffe6]",
|
|
str_namedSheetsRange="\u0001-&(-)+--;->@^`{-\u007f\u0082\u0084\u008b\u0092\u0095\u0098\u009b\u00a0\u00a6\u00a9\u00ab-\u00ac\u00ae\u00bb\u0378-\u0379\u037e-\u0383\u0387\u038b\u038d\u03a2\u0524-\u0530\u0557-\u0558\u055a-\u0560\u0588-\u0590\u05be\u05c0\u05c3\u05c6\u05c8-\u05cf\u05eb-\u05ef\u05f3-\u05ff\u0604-\u0605\u0609-\u060a\u060c-\u060d\u061b-\u061e\u0620\u065f\u066a-\u066d\u06d4\u0700-\u070e\u074b-\u074c\u07b2-\u07bf\u07f7-\u07f9\u07fb-\u0900\u093a-\u093b\u094e-\u094f\u0955-\u0957\u0964-\u0965\u0970\u0973-\u097a\u0980\u0984\u098d-\u098e\u0991-\u0992\u09a9\u09b1\u09b3-\u09b5\u09ba-\u09bb\u09c5-\u09c6\u09c9-\u09ca\u09cf-\u09d6\u09d8-\u09db\u09de\u09e4-\u09e5\u09fb-\u0a00\u0a04\u0a0b-\u0a0e\u0a11-\u0a12\u0a29\u0a31\u0a34\u0a37\u0a3a-\u0a3b\u0a3d\u0a43-\u0a46\u0a49-\u0a4a\u0a4e-\u0a50\u0a52-\u0a58\u0a5d\u0a5f-\u0a65\u0a76-\u0a80\u0a84\u0a8e\u0a92\u0aa9\u0ab1\u0ab4\u0aba-\u0abb\u0ac6\u0aca\u0ace-\u0acf\u0ad1-\u0adf\u0ae4-\u0ae5\u0af0\u0af2-\u0b00\u0b04\u0b0d-\u0b0e\u0b11-\u0b12\u0b29\u0b31\u0b34\u0b3a-\u0b3b\u0b45-\u0b46\u0b49-\u0b4a\u0b4e-\u0b55\u0b58-\u0b5b\u0b5e\u0b64-\u0b65\u0b72-\u0b81\u0b84\u0b8b-\u0b8d\u0b91\u0b96-\u0b98\u0b9b\u0b9d\u0ba0-\u0ba2\u0ba5-\u0ba7\u0bab-\u0bad\u0bba-\u0bbd\u0bc3-\u0bc5\u0bc9\u0bce-\u0bcf\u0bd1-\u0bd6\u0bd8-\u0be5\u0bfb-\u0c00\u0c04\u0c0d\u0c11\u0c29\u0c34\u0c3a-\u0c3c\u0c45\u0c49\u0c4e-\u0c54\u0c57\u0c5a-\u0c5f\u0c64-\u0c65\u0c70-\u0c77\u0c80-\u0c81\u0c84\u0c8d\u0c91\u0ca9\u0cb4\u0cba-\u0cbb\u0cc5\u0cc9\u0cce-\u0cd4\u0cd7-\u0cdd\u0cdf\u0ce4-\u0ce5\u0cf0\u0cf3-\u0d01\u0d04\u0d0d\u0d11\u0d29\u0d3a-\u0d3c\u0d45\u0d49\u0d4e-\u0d56\u0d58-\u0d5f\u0d64-\u0d65\u0d76-\u0d78\u0d80-\u0d81\u0d84\u0d97-\u0d99\u0db2\u0dbc\u0dbe-\u0dbf\u0dc7-\u0dc9\u0dcb-\u0dce\u0dd5\u0dd7\u0de0-\u0df1\u0df4-\u0e00\u0e3b-\u0e3e\u0e4f\u0e5a-\u0e80\u0e83\u0e85-\u0e86\u0e89\u0e8b-\u0e8c\u0e8e-\u0e93\u0e98\u0ea0\u0ea4\u0ea6\u0ea8-\u0ea9\u0eac\u0eba\u0ebe-\u0ebf\u0ec5\u0ec7\u0ece-\u0ecf\u0eda-\u0edb\u0ede-\u0eff\u0f04-\u0f12\u0f3a-\u0f3d\u0f48\u0f6d-\u0f70\u0f85\u0f8c-\u0f8f\u0f98\u0fbd\u0fcd\u0fd0-\u0fff\u104a-\u104f\u109a-\u109d\u10c6-\u10cf\u10fb\u10fd-\u10ff\u115a-\u115e\u11a3-\u11a7\u11fa-\u11ff\u1249\u124e-\u124f\u1257\u1259\u125e-\u125f\u1289\u128e-\u128f\u12b1\u12b6-\u12b7\u12bf\u12c1\u12c6-\u12c7\u12d7\u1311\u1316-\u1317\u135b-\u135e\u1361-\u1368\u137d-\u137f\u139a-\u139f\u13f5-\u1400\u166d-\u166e\u1677-\u167f\u169b-\u169f\u16eb-\u16ed\u16f1-\u16ff\u170d\u1715-\u171f\u1735-\u173f\u1754-\u175f\u176d\u1771\u1774-\u177f\u17d4-\u17d6\u17d8-\u17da\u17de-\u17df\u17ea-\u17ef\u17fa-\u180a\u180f\u181a-\u181f\u1878-\u187f\u18ab-\u18ff\u191d-\u191f\u192c-\u192f\u193c-\u193f\u1941-\u1945\u196e-\u196f\u1975-\u197f\u19aa-\u19af\u19ca-\u19cf\u19da-\u19df\u1a1c-\u1aff\u1b4c-\u1b4f\u1b5a-\u1b60\u1b7d-\u1b7f\u1bab-\u1bad\u1bba-\u1bff\u1c38-\u1c3f\u1c4a-\u1c4c\u1c7e-\u1cff\u1de7-\u1dfd\u1f16-\u1f17\u1f1e-\u1f1f\u1f46-\u1f47\u1f4e-\u1f4f\u1f58\u1f5a\u1f5c\u1f5e\u1f7e-\u1f7f\u1fb5\u1fc5\u1fd4-\u1fd5\u1fdc\u1ff0-\u1ff1\u1ff5\u1fff\u2011-\u2012\u2017\u2019-\u201b\u201e-\u201f\u2022-\u2024\u2031\u2034\u2036-\u203a\u203c-\u2043\u2045-\u2051\u2053-\u205e\u2065-\u2069\u2072-\u2073\u207d-\u207e\u208d-\u208f\u2095-\u209f\u20b6-\u20cf\u20f1-\u20ff\u2150-\u2152\u2189-\u218f\u2329-\u232a\u23e8-\u23ff\u2427-\u243f\u244b-\u245f\u269e-\u269f\u26bd-\u26bf\u26c4-\u2700\u2705\u270a-\u270b\u2728\u274c\u274e\u2753-\u2755\u2757\u275f-\u2760\u2768-\u2775\u2795-\u2797\u27b0\u27bf\u27c5-\u27c6\u27cb\u27cd-\u27cf\u27e6-\u27ef\u2983-\u2998\u29d8-\u29db\u29fc-\u29fd\u2b4d-\u2b4f\u2b55-\u2bff\u2c2f\u2c5f\u2c70\u2c7e-\u2c7f\u2ceb-\u2cfc\u2cfe-\u2cff\u2d26-\u2d2f\u2d66-\u2d6e\u2d70-\u2d7f\u2d97-\u2d9f\u2da7\u2daf\u2db7\u2dbf\u2dc7\u2dcf\u2dd7\u2ddf\u2e00-\u2e2e\u2e30-\u2e7f\u2e9a\u2ef4-\u2eff\u2fd6-\u2fef\u2ffc-\u2fff\u3018-\u301c\u3030\u303d\u3040\u3097-\u3098\u30a0\u3100-\u3104\u312e-\u3130\u318f\u31b8-\u31bf\u31e4-\u31ef\u321f\u3244-\u324f\u32ff\u4db6-\u4dbf\u9fc4-\u9fff\ua48d-\ua48f\ua4c7-\ua4ff\ua60d-\ua60f\ua62c-\ua63f\ua660-\ua661\ua673-\ua67b\ua67e\ua698-\ua6ff\ua78d-\ua7fa\ua82c-\ua83f\ua874-\ua87f\ua8c5-\ua8cf\ua8da-\ua8ff\ua92f\ua954-\ua9ff\uaa37-\uaa3f\uaa4e-\uaa4f\uaa5a-\uabff\ud7a4-\ud7ff\ufa2e-\ufa2f\ufa6b-\ufa6f\ufada-\ufaff\ufb07-\ufb12\ufb18-\ufb1c\ufb37\ufb3d\ufb3f\ufb42\ufb45\ufbb2-\ufbd2\ufd3e-\ufd4f\ufd90-\ufd91\ufdc8-\ufdef\ufdfe-\ufdff\ufe10-\ufe1f\ufe27-\ufe2f\ufe32\ufe45-\ufe48\ufe53\ufe58\ufe67\ufe6c-\ufe6f\ufe75\ufefd-\ufefe\uff00\uff5f-\uff60\uffbf-\uffc1\uffc8-\uffc9\uffd0-\uffd1\uffd8-\uffd9\uffdd-\uffdf\uffe7\uffef-\ufff8\ufffe-\uffff",
|
|
str_operator=",\\s-+/^&%<=>",str_excludeCharts="'*\\[\\]\\:/?";this.regExp_namedRanges=new RegExp(str_namedRanges,"i");this.regExp_namedSheetsRange=new RegExp("["+str_namedSheetsRange+"]","ig");this.regExp_strOperator=new RegExp("["+str_operator+"]","ig");this.regExp_strExcludeCharts=new RegExp("["+str_excludeCharts+"]","ig");this.test=function(str){var ch1=str.substr(0,1);this.regExp_strExcludeCharts.lastIndex=0;this.regExp_namedRanges.lastIndex=0;this.regExp_namedSheetsRange.lastIndex=0;this.regExp_strOperator.lastIndex=
|
|
0;var validName=this.isValidName(str);if(!validName)return validName;if(!this.regExp_namedRanges.test(ch1))return false;else{if(this.regExp_namedSheetsRange.test(str)||this.regExp_strOperator.test(str))return false;var match=str.match(rx_ref);if(match!=null){var m1=match[1],m2=match[2];if(match.length>=3&&g_oCellAddressUtils.colstrToColnum(m1.substr(0,m1.length-m2.length))<=AscCommon.gc_nMaxCol&&parseInt(m2)<=AscCommon.gc_nMaxRow)return false}return true}};this.isValidName=function(str){if(str.length>=
|
|
32||str.length===0)return undefined;for(var i=0;i<str.length;i++)if(str[i]==="'"&&(i===0||i===str.length-1))return undefined;else if(str[i]==="]"||str[i]==="["||str[i]===":"||str[i]==="?"||str[i]==="*"||str[i]==="\\"||str[i]==="/")return undefined;return true};return this}function test_defName(){var nameRangeRE=new RegExp("(^(["+str_namedRanges+"_])(["+str_namedRanges+"_0-9]*)$)","i");this.test=function(str){var match,m1,m2;if(!nameRangeRE.test(str)&&"_xlnm.print_area"!==str)return false;match=str.match(rx_ref);
|
|
if(match!=null){m1=match[1];m2=match[2];if(match.length>=3&&g_oCellAddressUtils.colstrToColnum(m1.substr(0,m1.length-m2.length))<=AscCommon.gc_nMaxCol&&parseInt(m2)<=AscCommon.gc_nMaxRow)return false}return true};return this}var cStrucTableReservedWords={all:"#All",data:"#Data",headers:"#Headers",totals:"#Totals",thisrow:"#This Row",at:"@"};var FormulaTablePartInfo={all:1,data:2,headers:3,totals:4,thisRow:5,columns:6};var cStrucTableLocalColumns=null;var cBoolOrigin={"t":"TRUE","f":"FALSE"};var cBoolLocal=
|
|
{};var cErrorOrigin={"nil":"#NULL!","div":"#DIV/0!","value":"#VALUE!","ref":"#REF!","name":"#NAME?","num":"#NUM!","na":"#N/A","getdata":"#GETTING_DATA","uf":"#UNSUPPORTED_FUNCTION!"};var cErrorLocal={};function build_local_rx(data){rx_table_local=build_rx_table(data?data["StructureTables"]:null);rx_bool_local=build_rx_bool(data&&data["CONST_TRUE_FALSE"]||cBoolOrigin);rx_error_local=build_rx_error(data?data["CONST_ERROR"]:null)}function build_rx_table(local){cStrucTableLocalColumns=local?local:{"h":"Headers",
|
|
"d":"Data","a":"All","tr":"This Row","t":"Totals"};return build_rx_table_cur()}function build_rx_table_cur(){var loc_all=cStrucTableLocalColumns["a"],loc_headers=cStrucTableLocalColumns["h"],loc_data=cStrucTableLocalColumns["d"],loc_totals=cStrucTableLocalColumns["t"],loc_this_row=cStrucTableLocalColumns["tr"],structured_tables_headata=new XRegExp("(?:\\[\\#"+loc_headers+"\\]\\"+FormulaSeparators.functionArgumentSeparator+"\\[\\#"+loc_data+"\\])"),structured_tables_datals=new XRegExp("(?:\\[\\#"+
|
|
loc_data+"\\]\\"+FormulaSeparators.functionArgumentSeparator+"\\[\\#"+loc_totals+"\\])"),structured_tables_userColumn=new XRegExp("(?:'\\[|'\\]|[^[\\]])+"),structured_tables_reservedColumn=new XRegExp("\\#(?:"+loc_all+"|"+loc_headers+"|"+loc_totals+"|"+loc_data+"|"+loc_this_row+")|@");return XRegExp.build("^(?<tableName>{{tableName}})\\[(?<columnName>{{columnName}})?\\]",{"tableName":new XRegExp("^(:?["+str_namedRanges+"]["+str_namedRanges+"\\d.]*)"),"columnName":XRegExp.build("(?<reservedColumn>{{reservedColumn}})|(?<oneColumn>{{userColumn}})|(?<columnRange>{{userColumnRange}})|(?<hdtcc>{{hdtcc}})",
|
|
{"userColumn":structured_tables_userColumn,"reservedColumn":structured_tables_reservedColumn,"userColumnRange":XRegExp.build("\\[(?<colStart>{{uc}})\\]\\:\\[(?<colEnd>{{uc}})\\]",{"uc":structured_tables_userColumn}),"hdtcc":XRegExp.build("(?<hdt>\\[{{rc}}\\]|{{hd}}|{{dt}})(?:\\"+FormulaSeparators.functionArgumentSeparator+"(?:\\[(?<hdtcstart>{{uc}})\\])(?:\\:(?:\\[(?<hdtcend>{{uc}})\\]))?)?",{"rc":structured_tables_reservedColumn,"hd":structured_tables_headata,"dt":structured_tables_datals,"uc":structured_tables_userColumn})})},
|
|
"i")}function build_rx_bool(local){var t=cBoolLocal.t=local["t"].toUpperCase();var f=cBoolLocal.f=local["f"].toUpperCase();return new RegExp("^("+t+"|"+f+")([-+*\\/^&%<=>: ;),}]|$)","i")}function build_rx_error(local){local=local?local:{"nil":"#NULL!","div":"#DIV/0!","value":"#VALUE!","ref":"#REF!","name":"#NAME\\?","num":"#NUM!","na":"#N/A","getdata":"#GETTING_DATA","uf":"#UNSUPPORTED_FUNCTION!"};cErrorLocal["nil"]=local["nil"];cErrorLocal["div"]=local["div"];cErrorLocal["value"]=local["value"];
|
|
cErrorLocal["ref"]=local["ref"];cErrorLocal["name"]=local["name"];cErrorLocal["num"]=local["num"];cErrorLocal["na"]=local["na"];cErrorLocal["getdata"]=local["getdata"];cErrorLocal["uf"]=local["uf"];return new RegExp("^("+cErrorLocal["nil"]+"|"+cErrorLocal["div"]+"|"+cErrorLocal["value"]+"|"+cErrorLocal["ref"]+"|"+cErrorLocal["name"]+"|"+cErrorLocal["num"]+"|"+cErrorLocal["na"]+"|"+cErrorLocal["getdata"]+"|"+cErrorLocal["uf"]+")","i")}var PostMessageType={UploadImage:0,ExtensionExist:1};var c_oAscServerError=
|
|
{NoError:0,Unknown:-1,ReadRequestStream:-3,ChangeDocInfo:-5,TaskQueue:-20,TaskResult:-40,Storage:-60,StorageFileNoFound:-61,StorageRead:-62,StorageWrite:-63,StorageRemoveDir:-64,StorageCreateDir:-65,StorageGetInfo:-66,Convert:-80,ConvertDownload:-81,ConvertUnknownFormat:-82,ConvertTimeout:-83,ConvertReadFile:-84,ConvertCONVERT_CORRUPTED:-86,ConvertLIBREOFFICE:-87,ConvertPARAMS:-88,ConvertNEED_PARAMS:-89,ConvertDRM:-90,ConvertPASSWORD:-91,ConvertICU:-92,ConvertLIMITS:-93,ConvertDeadLetter:-99,Upload:-100,
|
|
UploadContentLength:-101,UploadExtension:-102,UploadCountFiles:-103,UploadURL:-104,UploadDocumentContentLength:-105,UploadDocumentExtension:-106,UploadDocumentCountFiles:-107,VKey:-120,VKeyEncrypt:-121,VKeyKeyExpire:-122,VKeyUserCountExceed:-123,Password:-180};var c_oAscImageUploadProp={MaxFileSize:25E6,SupportedFormats:["jpg","jpeg","jpe","png","gif","bmp"]};var c_oAscDocumentUploadProp={MaxFileSize:104857600,SupportedFormats:["docx","doc","docm","dot","dotm","dotx","epub","fodt","odt","ott","rtf",
|
|
"wps"]};var c_oAscTextUploadProp={MaxFileSize:25E6,SupportedFormats:["txt","csv"]};function GetFileExtension(sName){var nIndex=sName?sName.lastIndexOf("."):-1;if(-1!=nIndex)return sName.substring(nIndex+1).toLowerCase();return null}function GetFileName(sName){var nIndex=sName?sName.lastIndexOf("."):-1;if(-1!=nIndex)return sName.substring(0,nIndex);return null}function changeFileExtention(sName,sNewExt,opt_lengthLimit){var sOldExt=GetFileExtension(sName);var nIndexEnd=sOldExt?sName.length-sOldExt.length-
|
|
1:sName.length;if(opt_lengthLimit&&nIndexEnd+sNewExt.length+1>opt_lengthLimit)nIndexEnd=opt_lengthLimit-sNewExt.length-1;if(nIndexEnd<sName.length)return sName.substring(0,nIndexEnd)+"."+sNewExt;else return sName+"."+sNewExt}function getExtentionByFormat(format){switch(format){case c_oAscFileType.PDF:case c_oAscFileType.PDFA:return"pdf";break;case c_oAscFileType.HTML:return"html";break;case c_oAscFileType.DOCX:return"docx";break;case c_oAscFileType.DOC:return"doc";break;case c_oAscFileType.ODT:return"odt";
|
|
break;case c_oAscFileType.RTF:return"rtf";break;case c_oAscFileType.TXT:return"txt";break;case c_oAscFileType.MHT:return"mht";break;case c_oAscFileType.EPUB:return"epub";break;case c_oAscFileType.FB2:return"fb2";break;case c_oAscFileType.MOBI:return"mobi";break;case c_oAscFileType.DOCM:return"docm";break;case c_oAscFileType.DOTX:return"dotx";break;case c_oAscFileType.DOTM:return"dotm";break;case c_oAscFileType.FODT:return"fodt";break;case c_oAscFileType.OTT:return"ott";break;case c_oAscFileType.DOCY:return"doct";
|
|
break;case c_oAscFileType.CANVAS_WORD:return"bin";break;case c_oAscFileType.JSON:return"json";break;case c_oAscFileType.XLSX:return"xlsx";break;case c_oAscFileType.XLS:return"xls";break;case c_oAscFileType.ODS:return"ods";break;case c_oAscFileType.CSV:return"csv";break;case c_oAscFileType.XLSM:return"xlsm";break;case c_oAscFileType.XLTX:return"xltx";break;case c_oAscFileType.XLTM:return"xltm";break;case c_oAscFileType.FODS:return"fods";break;case c_oAscFileType.OTS:return"ots";break;case c_oAscFileType.XLSY:return"xlst";
|
|
break;case c_oAscFileType.PPTX:return"pptx";break;case c_oAscFileType.PPT:return"ppt";break;case c_oAscFileType.ODP:return"odp";break;case c_oAscFileType.PPSX:return"ppsx";break;case c_oAscFileType.PPTM:return"pptm";break;case c_oAscFileType.PPSM:return"ppsm";break;case c_oAscFileType.POTX:return"potx";break;case c_oAscFileType.POTM:return"potm";break;case c_oAscFileType.FODP:return"fodp";break;case c_oAscFileType.OTP:return"otp";break}return""}function InitOnMessage(callback){if(window.addEventListener)window.addEventListener("message",
|
|
function(event){if(null!=event&&null!=event.data)try{var data=JSON.parse(event.data);if(null!=data&&null!=data["type"]&&PostMessageType.UploadImage==data["type"])if(c_oAscServerError.NoError==data["error"]){var urls=data["urls"];if(urls){g_oDocumentUrls.addUrls(urls);var firstUrl;for(var i in urls)if(urls.hasOwnProperty(i)){firstUrl=urls[i];break}callback(Asc.c_oAscError.ID.No,firstUrl)}}else callback(mapAscServerErrorToAscError(data["error"]));else if(data["type"]==="onExternalPluginMessage"){if(!window.g_asc_plugins)return;
|
|
if(data["subType"]=="internalCommand")switch(data.data.type){case "onbeforedrop":case "ondrop":{window.g_asc_plugins.api.privateDropEvent(data.data);return}default:break}window.g_asc_plugins.sendToAllPlugins(event.data)}else if(data["type"]==="onExternalPluginMessageCallback"){if(!window.g_asc_plugins)return;window.parent&&window.parent.postMessage(event.data,"*")}else if(data["type"]==="emulateUploadInFrame")if(window["_private_emulate_upload"]){window["_private_emulate_upload"](data["name"],data["content"]);
|
|
window["_private_emulate_upload"]=undefined}}catch(err){}},false)}function getAcceptByArray(arr){var res="."+arr[0];for(var i=1;i<arr.length;++i)res+=",."+arr[i];return res}function _ShowFileDialog(accept,allowEncryption,allowMultiple,fValidate,callback){if(AscCommon.AscBrowser.isNeedEmulateUpload&&window["emulateUpload"]){window["emulateUpload"](function(name,content){if(content===""){callback(Asc.c_oAscError.ID.Unknown);return}var stream=AscFonts.CreateFontData2(content);var blob=new Blob([stream.data.slice(0,
|
|
stream.size)]);blob.name=name;blob.fileName=name;var nError=fValidate([blob]);callback(mapAscServerErrorToAscError(nError),[blob])},":<iframe><image>");return}if(allowEncryption&&AscCommon.EncryptionWorker&&AscCommon.EncryptionWorker.isCryptoImages()){AscCommon.EncryptionWorker.addCryproImagesFromDialog(callback);return}if("undefined"!=typeof FileReader){var fileName=GetUploadInput(accept,allowMultiple,function(e){if(e&&e.target&&e.target.files){var nError=fValidate(e.target.files);callback(mapAscServerErrorToAscError(nError),
|
|
e.target.files)}else callback(Asc.c_oAscError.ID.Unknown)});fileName.click()}else return false}function ShowImageFileDialog(documentId,documentUserId,jwt,callback,callbackOld){if(false===_ShowFileDialog("image/*",true,true,ValidateUploadImage,callback)){var frameWindow=GetUploadIFrame();var url=sUploadServiceLocalUrlOld+"/"+documentId+"/"+documentUserId+"/"+g_oDocumentUrls.getMaxIndex();if(jwt)url+="?token="+encodeURIComponent(jwt);var content='<html><head></head><body><form action="'+url+'" method="POST" enctype="multipart/form-data"><input id="apiiuFile" name="apiiuFile" type="file" accept="image/*" size="1"><input id="apiiuSubmit" name="apiiuSubmit" type="submit" style="display:none;"></form></body></html>';
|
|
frameWindow.document.open();frameWindow.document.write(content);frameWindow.document.close();var fileName=frameWindow.document.getElementById("apiiuFile");var fileSubmit=frameWindow.document.getElementById("apiiuSubmit");fileName.onchange=function(e){if(e&&e.target&&e.target.files){var nError=ValidateUploadImage(e.target.files);if(c_oAscServerError.NoError!=nError){callbackOld(mapAscServerErrorToAscError(nError));return}}callbackOld(Asc.c_oAscError.ID.No);fileSubmit.click()};fileName.click()}}function ShowDocumentFileDialog(callback){if(false===
|
|
_ShowFileDialog(getAcceptByArray(c_oAscDocumentUploadProp.SupportedFormats),false,false,ValidateUploadDocument,callback))callback(Asc.c_oAscError.ID.Unknown)}function ShowTextFileDialog(callback){if(false===_ShowFileDialog(getAcceptByArray(c_oAscTextUploadProp.SupportedFormats),false,false,ValidateUploadText,callback))callback(Asc.c_oAscError.ID.Unknown)}function InitDragAndDrop(oHtmlElement,callback){if("undefined"!=typeof FileReader&&null!=oHtmlElement){oHtmlElement["ondragover"]=function(e){e.preventDefault();
|
|
e.dataTransfer.dropEffect=CanDropFiles(e)?"copy":"none";if(e.dataTransfer.dropEffect=="copy"){var editor=window["Asc"]["editor"]?window["Asc"]["editor"]:window.editor;editor.beginInlineDropTarget(e)}return false};oHtmlElement["ondrop"]=function(e){e.preventDefault();var files=e.dataTransfer.files;var nError=ValidateUploadImage(files);var editor=window["Asc"]["editor"]?window["Asc"]["editor"]:window.editor;editor.endInlineDropTarget(e);if(nError==c_oAscServerError.UploadCountFiles){try{var htmlValue=
|
|
e.dataTransfer.getData("text/html");if(htmlValue&&!AscCommon.AscBrowser.isIE){var index=htmlValue.indexOf("StartHTML");var indexHtml=htmlValue.indexOf("<html");if(-1==indexHtml)indexHtml=htmlValue.indexOf("<HTML");if(index>0&&indexHtml>0&&index<indexHtml)htmlValue=htmlValue.substr(indexHtml);editor["pluginMethod_PasteHtml"](htmlValue);return}}catch(err){}try{var textValue=e.dataTransfer.getData("text/plain");if(textValue){editor["pluginMethod_PasteText"](textValue);return}}catch(err$16){}try{var textValue=
|
|
e.dataTransfer.getData("Text");if(textValue){editor["pluginMethod_PasteText"](textValue);return}}catch(err$17){}}callback(mapAscServerErrorToAscError(nError),files)}}}function UploadImageFiles(files,documentId,documentUserId,jwt,callback){window.parent.APP.UploadImageFiles(files,documentId,documentUserId,jwt,function(err,urls){callback(err||Asc.c_oAscError.ID.No,urls)});return;if(files.length>0){var url=sUploadServiceLocalUrl+"/"+documentId+"/"+documentUserId+"/"+g_oDocumentUrls.getMaxIndex();var aFiles=
|
|
[];for(var i=files.length-1;i>-1;--i)aFiles.push(files[i]);var file=aFiles.pop();var aResultUrls=[];var fOnReadyChnageState=function(){if(4==this.readyState)if(this.status==200||this.status==1223){var urls=JSON.parse(this.responseText);g_oDocumentUrls.addUrls(urls);for(var i in urls)if(urls.hasOwnProperty(i)){aResultUrls.push(urls[i]);break}if(aFiles.length===0)callback(Asc.c_oAscError.ID.No,aResultUrls);else{file=aFiles.pop();var xhr=new XMLHttpRequest;url=sUploadServiceLocalUrl+"/"+documentId+"/"+
|
|
documentUserId+"/"+g_oDocumentUrls.getMaxIndex();xhr.open("POST",url,true);xhr.setRequestHeader("Content-Type",file.type||"application/octet-stream");xhr.setRequestHeader("Authorization","Bearer "+jwt);xhr.onreadystatechange=fOnReadyChnageState;xhr.send(file)}}else if(this.status===403)callback(Asc.c_oAscError.ID.VKeyEncrypt);else callback(Asc.c_oAscError.ID.UplImageUrl)};var xhr=new XMLHttpRequest;xhr.open("POST",url,true);xhr.setRequestHeader("Content-Type",file.type||"application/octet-stream");
|
|
xhr.setRequestHeader("Authorization","Bearer "+jwt);xhr.onreadystatechange=fOnReadyChnageState;xhr.send(file)}else callback(Asc.c_oAscError.ID.UplImageFileCount)}function UploadImageUrls(files,documentId,documentUserId,jwt,callback){if(files.length>0){var url=sUploadServiceLocalUrl+"/"+documentId+"/"+documentUserId+"/"+g_oDocumentUrls.getMaxIndex();var aFiles=[];for(var i=files.length-1;i>-1;--i)aFiles.push(files[i]);var file=aFiles.pop();var aResultUrls=[];var fOnReadyChnageState=function(){if(4==
|
|
this.readyState)if(this.status==200||this.status==1223){var urls=JSON.parse(this.responseText);g_oDocumentUrls.addUrls(urls);for(var i in urls)if(urls.hasOwnProperty(i)){aResultUrls.push({path:i,url:urls[i]});break}if(aFiles.length===0)callback(aResultUrls);else{file=aFiles.pop();var xhr=new XMLHttpRequest;url=sUploadServiceLocalUrl+"/"+documentId+"/"+documentUserId+"/"+g_oDocumentUrls.getMaxIndex();xhr.open("POST",url,true);xhr.setRequestHeader("Content-Type",file.type||"application/octet-stream");
|
|
xhr.setRequestHeader("Authorization","Bearer "+jwt);xhr.onreadystatechange=fOnReadyChnageState;xhr.send(file)}}else callback([])};var xhr=new XMLHttpRequest;xhr.open("POST",url,true);xhr.setRequestHeader("Content-Type",file.type||"application/octet-stream");xhr.setRequestHeader("Authorization","Bearer "+jwt);xhr.onreadystatechange=fOnReadyChnageState;xhr.send(file)}else callback(Asc.c_oAscError.ID.UplImageFileCount)}function ValidateUpload(files,eUploadExtension,eUploadContentLength,eUploadCountFiles,
|
|
c_oAscUploadProp){var nRes=c_oAscServerError.NoError;if(files.length>0)for(var i=0,length=files.length;i<length;i++){var file=files[i];var sName=file.name;if(sName){var bSupported=false;var ext=GetFileExtension(sName);if(null!==ext)for(var j=0,length2=c_oAscUploadProp.SupportedFormats.length;j<length2;j++)if(c_oAscUploadProp.SupportedFormats[j]==ext){bSupported=true;break}if(false==bSupported)nRes=eUploadExtension}if(Asc.c_oAscError.ID.No==nRes){var nSize=file.size;if(nSize&&c_oAscUploadProp.MaxFileSize<
|
|
nSize)nRes=eUploadContentLength}if(c_oAscServerError.NoError!=nRes)break}else nRes=eUploadCountFiles;return nRes}function ValidateUploadImage(files){return ValidateUpload(files,c_oAscServerError.UploadExtension,c_oAscServerError.UploadContentLength,c_oAscServerError.UploadCountFiles,c_oAscImageUploadProp)}function ValidateUploadDocument(files){return ValidateUpload(files,c_oAscServerError.UploadDocumentExtension,c_oAscServerError.UploadDocumentContentLength,c_oAscServerError.UploadDocumentCountFiles,
|
|
c_oAscDocumentUploadProp)}function ValidateUploadText(files){return ValidateUpload(files,c_oAscServerError.UploadDocumentExtension,c_oAscServerError.UploadDocumentContentLength,c_oAscServerError.UploadDocumentCountFiles,c_oAscTextUploadProp)}function CanDropFiles(event){var editor=window["Asc"]["editor"]?window["Asc"]["editor"]:window.editor;if(!editor.isEnabledDropTarget())return false;var bRes=false;if(event.dataTransfer.types)for(var i=0,length=event.dataTransfer.types.length;i<length;++i){var type=
|
|
event.dataTransfer.types[i].toLowerCase();if(type=="files"){if(AscCommon.AscBrowser.isSafari)return true;if(event.dataTransfer.items)for(var j=0,length2=event.dataTransfer.items.length;j<length2;j++){var item=event.dataTransfer.items[j];if(item.type&&item.kind&&"file"==item.kind.toLowerCase()){bRes=false;for(var k=0,length3=c_oAscImageUploadProp.SupportedFormats.length;k<length3;k++)if(-1!=item.type.indexOf(c_oAscImageUploadProp.SupportedFormats[k])){bRes=true;break}if(false==bRes)break}}else bRes=
|
|
true;break}else if(type=="text"||type=="text/plain"||type=="text/html"){bRes=true;break}}return bRes}function GetUploadIFrame(){var sIFrameName="apiImageUpload";var oImageUploader=document.getElementById(sIFrameName);if(!oImageUploader){var frame=document.createElement("iframe");frame.name=sIFrameName;frame.id=sIFrameName;frame.setAttribute("style","position:absolute;left:-2px;top:-2px;width:1px;height:1px;z-index:-1000;");document.body.appendChild(frame)}return window.frames[sIFrameName]}function GetUploadInput(accept,
|
|
allowMultiple,onchange){var inputName="apiiuFile";var input=document.getElementById(inputName);if(input)document.body.removeChild(input);input=document.createElement("input");input.setAttribute("id",inputName);input.setAttribute("name",inputName);input.setAttribute("type","file");input.setAttribute("accept",accept);input.setAttribute("style","position:absolute;left:-2px;top:-2px;width:1px;height:1px;z-index:-1000;cursor:pointer;");if(allowMultiple)input.setAttribute("multiple",true);input.onchange=
|
|
onchange;document.body.appendChild(input);return input}var FormulaSeparators={arrayRowSeparatorDef:";",arrayColSeparatorDef:",",digitSeparatorDef:".",functionArgumentSeparatorDef:",",arrayRowSeparator:";",arrayColSeparator:",",digitSeparator:".",functionArgumentSeparator:","};var g_oCodeSpace=32;var g_oCodeLineFeed=10;var g_arrCodeOperators=[37,38,42,43,45,47,58,94];var g_oStartCodeOperatorsCompare=60;var g_oEndCodeOperatorsCompare=62;var g_oCodeLeftParentheses=40;var g_oCodeRightParentheses=41;var g_oCodeLeftBrace=
|
|
123;var g_oCodeRightBrace=125;var str_namedRanges="A-Za-z_\u0080-\u0081\u0083\u0085-\u0087\u0089-\u008a\u008c-\u0091\u0093-\u0094\u0096-\u0097\u0099-\u009a\u009c-\u009f\u00a1-\u00a5\u00a7-\u00a8\u00aa\u00ad\u00af-\u00ba\u00bc-\u02b8\u02bb-\u02c1\u02c7\u02c9-\u02cb\u02cd\u02d0-\u02d1\u02d8-\u02db\u02dd\u02e0-\u02e4\u02ee\u0370-\u0373\u0376-\u0377\u037a-\u037d\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u0523\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0621-\u064a\u066e-\u066f\u0671-\u06d3\u06d5\u06e5-\u06e6\u06ee-\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4-\u07f5\u07fa\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0972\u097b-\u097f\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc-\u09dd\u09df-\u09e1\u09f0-\u09f1\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0-\u0ae1\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3d\u0b5c-\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c33\u0c35-\u0c39\u0c3d\u0c58-\u0c59\u0c60-\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0-\u0ce1\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d28\u0d2a-\u0d39\u0d3d\u0d60-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e3a\u0e40-\u0e4e\u0e81-\u0e82\u0e84\u0e87-\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa-\u0eab\u0ead-\u0eb0\u0eb2-\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edd\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8b\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065-\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10d0-\u10fa\u10fc\u1100-\u1159\u115f-\u11a2\u11a8-\u11f9\u1200-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f4\u1401-\u166c\u166f-\u1676\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f0\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u1900-\u191c\u1950-\u196d\u1970-\u1974\u1980-\u19a9\u19c1-\u19c7\u1a00-\u1a16\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae-\u1baf\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u200e\u2010\u2013-\u2016\u2018\u201c-\u201d\u2020-\u2021\u2025-\u2027\u2030\u2032-\u2033\u2035\u203b\u2071\u2074\u207f\u2081-\u2084\u2090-\u2094\u2102-\u2103\u2105\u2107\u2109-\u2113\u2115-\u2116\u2119-\u211d\u2121-\u2122\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2153-\u2154\u215b-\u215e\u2160-\u2188\u2190-\u2199\u21d2\u21d4\u2200\u2202-\u2203\u2207-\u2208\u220b\u220f\u2211\u2215\u221a\u221d-\u2220\u2223\u2225\u2227-\u222c\u222e\u2234-\u2237\u223c-\u223d\u2248\u224c\u2252\u2260-\u2261\u2264-\u2267\u226a-\u226b\u226e-\u226f\u2282-\u2283\u2286-\u2287\u2295\u2299\u22a5\u22bf\u2312\u2460-\u24b5\u24d0-\u24e9\u2500-\u254b\u2550-\u2574\u2581-\u258f\u2592-\u2595\u25a0-\u25a1\u25a3-\u25a9\u25b2-\u25b3\u25b6-\u25b7\u25bc-\u25bd\u25c0-\u25c1\u25c6-\u25c8\u25cb\u25ce-\u25d1\u25e2-\u25e5\u25ef\u2605-\u2606\u2609\u260e-\u260f\u261c\u261e\u2640\u2642\u2660-\u2661\u2663-\u2665\u2667-\u266a\u266c-\u266d\u266f\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2c6f\u2c71-\u2c7d\u2c80-\u2ce4\u2d00-\u2d25\u2d30-\u2d65\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3000-\u3003\u3005-\u3017\u301d-\u301f\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31b7\u31f0-\u321c\u3220-\u3229\u3231-\u3232\u3239\u3260-\u327b\u327f\u32a3-\u32a8\u3303\u330d\u3314\u3318\u3322-\u3323\u3326-\u3327\u332b\u3336\u333b\u3349-\u334a\u334d\u3351\u3357\u337b-\u337e\u3380-\u3384\u3388-\u33ca\u33cd-\u33d3\u33d5-\u33d6\u33d8\u33db-\u33dd\u3400-\u4db5\u4e00-\u9fc3\ua000-\ua48c\ua500-\ua60c\ua610-\ua61f\ua62a-\ua62b\ua640-\ua65f\ua662-\ua66e\ua680-\ua697\ua722-\ua787\ua78b-\ua78c\ua7fb-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua90a-\ua925\ua930-\ua946\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uac00-\ud7a3\ue000-\uf848\uf900-\ufa2d\ufa30-\ufa6a\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe30-\ufe31\ufe33-\ufe44\ufe49-\ufe52\ufe54-\ufe57\ufe59-\ufe66\ufe68-\ufe6b\ufe70-\ufe74\ufe76-\ufefc\uff01-\uff5e\uff61-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc\uffe0-\uffe6",
|
|
str_namedSheetsRange="\u0001-&(-)+--;->@^`{-\u007f\u0082\u0084\u008b\u0092\u0095\u0098\u009b\u00a0\u00a6\u00a9\u00ab-\u00ac\u00ae\u00bb\u0378-\u0379\u037e-\u0383\u0387\u038b\u038d\u03a2\u0524-\u0530\u0557-\u0558\u055a-\u0560\u0588-\u0590\u05be\u05c0\u05c3\u05c6\u05c8-\u05cf\u05eb-\u05ef\u05f3-\u05ff\u0604-\u0605\u0609-\u060a\u060c-\u060d\u061b-\u061e\u0620\u065f\u066a-\u066d\u06d4\u0700-\u070e\u074b-\u074c\u07b2-\u07bf\u07f7-\u07f9\u07fb-\u0900\u093a-\u093b\u094e-\u094f\u0955-\u0957\u0964-\u0965\u0970\u0973-\u097a\u0980\u0984\u098d-\u098e\u0991-\u0992\u09a9\u09b1\u09b3-\u09b5\u09ba-\u09bb\u09c5-\u09c6\u09c9-\u09ca\u09cf-\u09d6\u09d8-\u09db\u09de\u09e4-\u09e5\u09fb-\u0a00\u0a04\u0a0b-\u0a0e\u0a11-\u0a12\u0a29\u0a31\u0a34\u0a37\u0a3a-\u0a3b\u0a3d\u0a43-\u0a46\u0a49-\u0a4a\u0a4e-\u0a50\u0a52-\u0a58\u0a5d\u0a5f-\u0a65\u0a76-\u0a80\u0a84\u0a8e\u0a92\u0aa9\u0ab1\u0ab4\u0aba-\u0abb\u0ac6\u0aca\u0ace-\u0acf\u0ad1-\u0adf\u0ae4-\u0ae5\u0af0\u0af2-\u0b00\u0b04\u0b0d-\u0b0e\u0b11-\u0b12\u0b29\u0b31\u0b34\u0b3a-\u0b3b\u0b45-\u0b46\u0b49-\u0b4a\u0b4e-\u0b55\u0b58-\u0b5b\u0b5e\u0b64-\u0b65\u0b72-\u0b81\u0b84\u0b8b-\u0b8d\u0b91\u0b96-\u0b98\u0b9b\u0b9d\u0ba0-\u0ba2\u0ba5-\u0ba7\u0bab-\u0bad\u0bba-\u0bbd\u0bc3-\u0bc5\u0bc9\u0bce-\u0bcf\u0bd1-\u0bd6\u0bd8-\u0be5\u0bfb-\u0c00\u0c04\u0c0d\u0c11\u0c29\u0c34\u0c3a-\u0c3c\u0c45\u0c49\u0c4e-\u0c54\u0c57\u0c5a-\u0c5f\u0c64-\u0c65\u0c70-\u0c77\u0c80-\u0c81\u0c84\u0c8d\u0c91\u0ca9\u0cb4\u0cba-\u0cbb\u0cc5\u0cc9\u0cce-\u0cd4\u0cd7-\u0cdd\u0cdf\u0ce4-\u0ce5\u0cf0\u0cf3-\u0d01\u0d04\u0d0d\u0d11\u0d29\u0d3a-\u0d3c\u0d45\u0d49\u0d4e-\u0d56\u0d58-\u0d5f\u0d64-\u0d65\u0d76-\u0d78\u0d80-\u0d81\u0d84\u0d97-\u0d99\u0db2\u0dbc\u0dbe-\u0dbf\u0dc7-\u0dc9\u0dcb-\u0dce\u0dd5\u0dd7\u0de0-\u0df1\u0df4-\u0e00\u0e3b-\u0e3e\u0e4f\u0e5a-\u0e80\u0e83\u0e85-\u0e86\u0e89\u0e8b-\u0e8c\u0e8e-\u0e93\u0e98\u0ea0\u0ea4\u0ea6\u0ea8-\u0ea9\u0eac\u0eba\u0ebe-\u0ebf\u0ec5\u0ec7\u0ece-\u0ecf\u0eda-\u0edb\u0ede-\u0eff\u0f04-\u0f12\u0f3a-\u0f3d\u0f48\u0f6d-\u0f70\u0f85\u0f8c-\u0f8f\u0f98\u0fbd\u0fcd\u0fd0-\u0fff\u104a-\u104f\u109a-\u109d\u10c6-\u10cf\u10fb\u10fd-\u10ff\u115a-\u115e\u11a3-\u11a7\u11fa-\u11ff\u1249\u124e-\u124f\u1257\u1259\u125e-\u125f\u1289\u128e-\u128f\u12b1\u12b6-\u12b7\u12bf\u12c1\u12c6-\u12c7\u12d7\u1311\u1316-\u1317\u135b-\u135e\u1361-\u1368\u137d-\u137f\u139a-\u139f\u13f5-\u1400\u166d-\u166e\u1677-\u167f\u169b-\u169f\u16eb-\u16ed\u16f1-\u16ff\u170d\u1715-\u171f\u1735-\u173f\u1754-\u175f\u176d\u1771\u1774-\u177f\u17d4-\u17d6\u17d8-\u17da\u17de-\u17df\u17ea-\u17ef\u17fa-\u180a\u180f\u181a-\u181f\u1878-\u187f\u18ab-\u18ff\u191d-\u191f\u192c-\u192f\u193c-\u193f\u1941-\u1945\u196e-\u196f\u1975-\u197f\u19aa-\u19af\u19ca-\u19cf\u19da-\u19df\u1a1c-\u1aff\u1b4c-\u1b4f\u1b5a-\u1b60\u1b7d-\u1b7f\u1bab-\u1bad\u1bba-\u1bff\u1c38-\u1c3f\u1c4a-\u1c4c\u1c7e-\u1cff\u1de7-\u1dfd\u1f16-\u1f17\u1f1e-\u1f1f\u1f46-\u1f47\u1f4e-\u1f4f\u1f58\u1f5a\u1f5c\u1f5e\u1f7e-\u1f7f\u1fb5\u1fc5\u1fd4-\u1fd5\u1fdc\u1ff0-\u1ff1\u1ff5\u1fff\u200e\u2011-\u2012\u2017\u2019-\u201b\u201e-\u201f\u2022-\u2024\u2031\u2034\u2036-\u203a\u203c-\u2043\u2045-\u2051\u2053-\u205e\u2065-\u2069\u2072-\u2073\u207d-\u207e\u208d-\u208f\u2095-\u209f\u20b6-\u20cf\u20f1-\u20ff\u2150-\u2152\u2189-\u218f\u2329-\u232a\u23e8-\u23ff\u2427-\u243f\u244b-\u245f\u269e-\u269f\u26bd-\u26bf\u26c4-\u2700\u2705\u270a-\u270b\u2728\u274c\u274e\u2753-\u2755\u2757\u275f-\u2760\u2768-\u2775\u2795-\u2797\u27b0\u27bf\u27c5-\u27c6\u27cb\u27cd-\u27cf\u27e6-\u27ef\u2983-\u2998\u29d8-\u29db\u29fc-\u29fd\u2b4d-\u2b4f\u2b55-\u2bff\u2c2f\u2c5f\u2c70\u2c7e-\u2c7f\u2ceb-\u2cfc\u2cfe-\u2cff\u2d26-\u2d2f\u2d66-\u2d6e\u2d70-\u2d7f\u2d97-\u2d9f\u2da7\u2daf\u2db7\u2dbf\u2dc7\u2dcf\u2dd7\u2ddf\u2e00-\u2e2e\u2e30-\u2e7f\u2e9a\u2ef4-\u2eff\u2fd6-\u2fef\u2ffc-\u2fff\u3018-\u301c\u3030\u303d\u3040\u3097-\u3098\u30a0\u3100-\u3104\u312e-\u3130\u318f\u31b8-\u31bf\u31e4-\u31ef\u321f\u3244-\u324f\u32ff\u4db6-\u4dbf\u9fc4-\u9fff\ua48d-\ua48f\ua4c7-\ua4ff\ua60d-\ua60f\ua62c-\ua63f\ua660-\ua661\ua673-\ua67b\ua67e\ua698-\ua6ff\ua78d-\ua7fa\ua82c-\ua83f\ua874-\ua87f\ua8c5-\ua8cf\ua8da-\ua8ff\ua92f\ua954-\ua9ff\uaa37-\uaa3f\uaa4e-\uaa4f\uaa5a-\uabff\ud7a4-\ud7ff\ufa2e-\ufa2f\ufa6b-\ufa6f\ufada-\ufaff\ufb07-\ufb12\ufb18-\ufb1c\ufb37\ufb3d\ufb3f\ufb42\ufb45\ufbb2-\ufbd2\ufd3e-\ufd4f\ufd90-\ufd91\ufdc8-\ufdef\ufdfe-\ufdff\ufe10-\ufe1f\ufe27-\ufe2f\ufe32\ufe45-\ufe48\ufe53\ufe58\ufe67\ufe6c-\ufe6f\ufe75\ufefd-\ufefe\uff00\uff5f-\uff60\uffbf-\uffc1\uffc8-\uffc9\uffd0-\uffd1\uffd8-\uffd9\uffdd-\uffdf\uffe7\uffef-\ufff8\ufffe-\uffff",
|
|
rx_operators=/^ *[-+*\/^&%<=>:] */,rg=new XRegExp("^((?:_xlfn.)?[\\p{L}\\d._]+ *)[-+*/^&%<=>:;\\(\\)]"),rgRange=/^(\$?[A-Za-z]+\$?\d+:\$?[A-Za-z]+\$?\d+)(?:[-+*\/^&%<=>: ;),]|$)/,rgRangeR1C1=/^(([Rr]{1}(\[)?(-?\d*)(\])?)([Cc]{1}(\[)?(-?\d*)(\])?):([Rr]{1}(\[)?(-?\d*)(\])?)([Cc]{1}(\[)?(-?\d*)(\])?))([-+*\/^&%<=>: ;),]|$)/,rgCols=/^(\$?[A-Za-z]+:\$?[A-Za-z]+)(?:[-+*\/^&%<=>: ;),]|$)/,rgColsR1C1=/^(([Cc]{1}(\[)?(-?\d*)(\])?(:)?)([Cc]?(\[)?(-?\d*)(\])?))([-+*\/^&%<=>: ;),]|$)/,rgRows=/^(\$?\d+:\$?\d+)(?:[-+*\/^&%<=>: ;),]|$)/,
|
|
rgRowsR1C1=/^(([Rr]{1}(\[)?(-?\d*)(\])?(:)?)([Rr]?(\[)?(-?\d*)(\])?))([-+*\/^&%<=>: ;),]|$)/,rx_ref=/^ *(\$?[A-Za-z]{1,3}\$?(\d{1,7}))([-+*\/^&%<=>: ;),]|$)/,rx_refAll=/^(\$?[A-Za-z]+\$?(\d+))([-+*\/^&%<=>: ;),]|$)/,rx_refR1C1=/^(([Rr]{1}(\[)?(-?\d*)(\])?)([Cc]{1}(\[)?(-?\d*)(\])?))([-+*\/^&%<=>: ;),]|$)/,rx_ref3D_non_quoted=new XRegExp("^(?<name_from>["+str_namedRanges+"]["+str_namedRanges+"\\d.]*)(:(?<name_to>["+str_namedRanges+"]["+str_namedRanges+"\\d.]*))?!","i"),rx_ref3D_quoted=new XRegExp("^'(?<name_from>(?:''|[^\\[\\]'\\/*?:])*)(?::(?<name_to>(?:''|[^\\[\\]'\\/*?:])*))?'!"),
|
|
rx_ref3D_non_quoted_2=new XRegExp("^(?<name_from>["+str_namedRanges+"\\d]["+str_namedRanges+"\\d.]*)(:(?<name_to>["+str_namedRanges+"\\d]["+str_namedRanges+"\\d.]*))?!","i"),rx_ref3D=new XRegExp("^(?<name_from>[^:]+)(:(?<name_to>[^:]+))?!"),rx_number=/^ *[+-]?\d*(\d|\.)\d*([eE][+-]?\d+)?/,rx_RightParentheses=/^ *\)/,rx_Comma=/^ *[,;] */,rx_arraySeparators=/^ *[,;] */,rx_error=build_rx_error(null),rx_error_local=build_rx_error(null),rx_bool=build_rx_bool(cBoolOrigin),rx_bool_local=rx_bool,rx_string=
|
|
/^"((""|[^"])*)"/,rx_test_ws_name=new test_ws_name2,rx_space_g=/\s/g,rx_space=/\s/,rx_intersect=/^ +/,rg_str_allLang=/[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0345\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05B0-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0657\u0659-\u065F\u066E-\u06D3\u06D5-\u06DC\u06E1-\u06E8\u06ED-\u06EF\u06FA-\u06FC\u06FF\u0710-\u073F\u074D-\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0817\u081A-\u082C\u0840-\u0858\u08A0\u08A2-\u08AC\u08E4-\u08E9\u08F0-\u08FE\u0900-\u093B\u093D-\u094C\u094E-\u0950\u0955-\u0963\u0971-\u0977\u0979-\u097F\u0981-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD-\u09C4\u09C7\u09C8\u09CB\u09CC\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09F0\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3E-\u0A42\u0A47\u0A48\u0A4B\u0A4C\u0A51\u0A59-\u0A5C\u0A5E\u0A70-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD-\u0AC5\u0AC7-\u0AC9\u0ACB\u0ACC\u0AD0\u0AE0-\u0AE3\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D-\u0B44\u0B47\u0B48\u0B4B\u0B4C\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD0\u0BD7\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4C\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C82\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCC\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CF1\u0CF2\u0D02\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4C\u0D4E\u0D57\u0D60-\u0D63\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E46\u0E4D\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0ECD\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F71-\u0F81\u0F88-\u0F97\u0F99-\u0FBC\u1000-\u1036\u1038\u103B-\u103F\u1050-\u1062\u1065-\u1068\u106E-\u1086\u108E\u109C\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135F\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1713\u1720-\u1733\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17B3\u17B6-\u17C8\u17D7\u17DC\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191C\u1920-\u192B\u1930-\u1938\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A1B\u1A20-\u1A5E\u1A61-\u1A74\u1AA7\u1B00-\u1B33\u1B35-\u1B43\u1B45-\u1B4B\u1B80-\u1BA9\u1BAC-\u1BAF\u1BBA-\u1BE5\u1BE7-\u1BF1\u1C00-\u1C35\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u24B6-\u24E9\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA674-\uA67B\uA67F-\uA697\uA69F-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA827\uA840-\uA873\uA880-\uA8C3\uA8F2-\uA8F7\uA8FB\uA90A-\uA92A\uA930-\uA952\uA960-\uA97C\uA980-\uA9B2\uA9B4-\uA9BF\uA9CF\uAA00-\uAA36\uAA40-\uAA4D\uAA60-\uAA76\uAA7A\uAA80-\uAABE\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF5\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABEA\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,
|
|
rx_name=new XRegExp("^(?<name>"+"["+str_namedRanges+"]["+str_namedRanges+"\\d.]*)([-+*\\/^&%<=>: ;/\n/),]|$)"),rx_defName=new test_defName,rx_arraySeparatorsDef=/^ *[,;] */,rx_numberDef=/^ *[+-]?\d*(\d|\.)\d*([eE][+-]?\d+)?/,rx_CommaDef=/^ *[,;] */,rx_ControlSymbols=/^ *[\u0000-\u001F\u007F-\u009F] */,emailRe=/^(mailto:)?([a-z0-9'\._-]+@[a-z0-9\.-]+\.[a-z0-9]{2,4})([a-\u044f\u04510-9\._%+-=\? :&]*)/i,ipRe=/^(((https?)|(ftps?)):\/\/)?([\-\w\u0430-\u044f\u0451]*:?[\-\w\u0430-\u044f\u0451]*@)?(((1[0-9]{2}|2[0-4][0-9]|25[0-5]|[1-9][0-9]|[0-9])\.){3}(1[0-9]{2}|2[0-4][0-9]|25[0-5]|[1-9][0-9]|[0-9]))(:\d+)?(\/[%\-\w\u0430-\u044f\u0451]*(\.[\w\u0430-\u044f\u0451]{2,})?(([\w\u0430-\u044f\u0451\-\.\?\\\/+@&#;:`~=%!,\(\)]*)(\.[\w\u0430-\u044f\u0451]{2,})?)*)*\/?/i,
|
|
hostnameRe=/^(((https?)|(ftps?)):\/\/)?([\-\w\u0430-\u044f\u0451]*:?[\-\w\u0430-\u044f\u0451]*@)?(([\-\w\u0430-\u044f\u0451]+\.)+[\w\u0430-\u044f\u0451\-]{2,}(:\d+)?(\/[%\-\w\u0430-\u044f\u0451]*(\.[\w\u0430-\u044f\u0451]{2,})?(([\w\u0430-\u044f\u0451\-\.\?\\\/+@&#;:`'~=%!,\(\)]*)(\.[\w\u0430-\u044f\u0451]{2,})?)*)*\/?)/i,localRe=/^(((https?)|(ftps?)):\/\/)([\-\w\u0430-\u044f\u0451]*:?[\-\w\u0430-\u044f\u0451]*@)?(([\-\w\u0430-\u044f\u0451]+)(:\d+)?(\/[%\-\w\u0430-\u044f\u0451]*(\.[\w\u0430-\u044f\u0451]{2,})?(([\w\u0430-\u044f\u0451\-\.\?\\\/+@&#;:`'~=%!,\(\)]*)(\.[\w\u0430-\u044f\u0451]{2,})?)*)*\/?)/i,
|
|
rx_table=build_rx_table(null),rx_table_local=build_rx_table(null);function getUrlType(url){var checkvalue=url.replace(new RegExp(" ","g"),"%20");var isEmail;var isvalid=checkvalue.strongMatch(hostnameRe);!isvalid&&(isvalid=checkvalue.strongMatch(ipRe));!isvalid&&(isvalid=checkvalue.strongMatch(localRe));isEmail=checkvalue.strongMatch(emailRe);!isvalid&&(isvalid=isEmail);return isvalid?isEmail?AscCommon.c_oAscUrlType.Email:AscCommon.c_oAscUrlType.Http:AscCommon.c_oAscUrlType.Invalid}function prepareUrl(url,
|
|
type){if(!/(((^https?)|(^ftp)):\/\/)|(^mailto:)/i.test(url))url=(AscCommon.c_oAscUrlType.Email==type?"mailto:":"http://")+url;return url.replace(new RegExp("%20","g")," ")}function parserHelper(){this.operand_str=null;this.pCurrPos=null}parserHelper.prototype._reset=function(){this.operand_str=null;this.pCurrPos=null};parserHelper.prototype.isControlSymbols=function(formula,start_pos,digitDelim){if(this instanceof parserHelper)this._reset();var match=formula.substring(start_pos).match(rx_ControlSymbols);
|
|
if(match!=null){this.operand_str=match[0];this.pCurrPos+=match[0].length;return true}return false};parserHelper.prototype.isOperator=function(formula,start_pos){if(this instanceof parserHelper)this._reset();var code,find=false,length=formula.length;while(start_pos!==length){code=formula.charCodeAt(start_pos);if(-1!==g_arrCodeOperators.indexOf(code)){this.operand_str=formula[start_pos];++start_pos;find=true;break}else if(g_oStartCodeOperatorsCompare<=code&&code<=g_oEndCodeOperatorsCompare){this.operand_str=
|
|
formula[start_pos];++start_pos;while(start_pos!==length){code=formula.charCodeAt(start_pos);if(g_oStartCodeOperatorsCompare>code||code>g_oEndCodeOperatorsCompare)break;this.operand_str+=formula[start_pos];++start_pos}find=true;break}else if(code===g_oCodeSpace||code===g_oCodeLineFeed)++start_pos;else break}if(find){while(start_pos!==length){code=formula.charCodeAt(start_pos);if(code!==g_oCodeSpace&&code!==g_oCodeLineFeed)break;++start_pos}this.pCurrPos=start_pos;return true}return false};parserHelper.prototype.isFunc=
|
|
function(formula,start_pos){if(this instanceof parserHelper)this._reset();var frml=formula.substring(start_pos);var match=frml.match(rg);if(match!=null)if(match.length==2){this.pCurrPos+=match[1].length;this.operand_str=match[1];return true}return false};parserHelper.prototype.convertFromR1C1=function(r,c,isAbsRow,isAbsCol){var activeCell=AscCommonExcel.g_ActiveCell;var colStr,rowStr,res="";var getColStr=function(){var col;if(c<0){var tempCol=!isAbsCol&&activeCell?activeCell.c1+1+c:c;if(tempCol<=
|
|
0)tempCol=AscCommon.gc_nMaxCol+tempCol;col=g_oCellAddressUtils.colnumToColstrFromWsView(tempCol)}else col=g_oCellAddressUtils.colnumToColstrFromWsView(!isAbsCol&&activeCell?activeCell.c1+1+c:c);return col};var getRowStr=function(){var row;if(r<0){var tempRow=!isAbsRow&&activeCell?activeCell.r1+1+r:r;if(tempRow<=0)tempRow=AscCommon.gc_nMaxRow+tempRow;row=tempRow+""}else row=!isAbsRow&&activeCell?activeCell.r1+1+r+"":r+"";return row};if(r!==null&&c!==null){if(isNaN(r)){r=0;isAbsRow=false}if(isNaN(c)){c=
|
|
0;isAbsCol=false}colStr=getColStr();rowStr=getRowStr();if(isAbsCol)colStr="$"+colStr;if(isAbsRow)rowStr="$"+rowStr;res=colStr+rowStr}else if(c!==null){if(isNaN(c)){c=0;isAbsCol=false}colStr=getColStr();if(isAbsCol)colStr="$"+colStr;res=colStr}else if(r!==null){if(isNaN(r)){r=0;isAbsRow=false}rowStr=getRowStr();if(isAbsRow)rowStr="$"+rowStr;res=rowStr}return res};parserHelper.prototype.isArea=function(formula,start_pos){if(this instanceof parserHelper)this._reset();var checkAbs=function(val1,val2){var res=
|
|
null;if(val1===val2&&val1===undefined)res=true;else if(val1==="["&&val2==="]")res=false;return res};var checkMatchRowCol=function(tempMatch){var res=true;if(tempMatch[9]!==""&&tempMatch[9]!==undefined&&!(tempMatch[6]===":"&&tempMatch[7]!==""&&tempMatch[7]!==undefined))res=false;else if(tempMatch[7]!==""&&tempMatch[7]!==undefined&&tempMatch[6]!==":")res=false;else if((tempMatch[7]===""||tempMatch[7]===undefined)&&tempMatch[6]===":")res=false;return res};var R1C1Mode=AscCommonExcel.g_R1C1Mode;var subSTR=
|
|
formula.substring(start_pos);var match;if(!R1C1Mode){match=subSTR.match(rgRange)||subSTR.match(rgCols)||subSTR.match(rgRows);if(match!=null){var m0=match[1].split(":");if(g_oCellAddressUtils.getCellAddress(m0[0]).isValid()&&g_oCellAddressUtils.getCellAddress(m0[1]).isValid()){this.pCurrPos+=match[1].length;this.operand_str=match[1];return true}}}else{var abs1Val,abs2Val,abs3Val,abs4Val,ref1,ref2;if((match=subSTR.match(rgRangeR1C1))!==null){abs1Val=checkAbs(match[3],match[5]);abs2Val=checkAbs(match[7],
|
|
match[9]);abs3Val=checkAbs(match[11],match[13]);abs4Val=checkAbs(match[15],match[17]);if(abs1Val!==null&&abs2Val!==null&&abs3Val!==null&&abs4Val!==null){ref1=AscCommon.parserHelp.convertFromR1C1(parseInt(match[4]),parseInt(match[8]),abs1Val,abs2Val);ref2=AscCommon.parserHelp.convertFromR1C1(parseInt(match[12]),parseInt(match[16]),abs3Val,abs4Val);if(g_oCellAddressUtils.getCellAddress(ref1).isValid()&&g_oCellAddressUtils.getCellAddress(ref2).isValid()){this.pCurrPos+=match[1].length;this.operand_str=
|
|
match[1];this.real_str=ref1+":"+ref2;return true}}}else if(null!=(match=subSTR.match(rgColsR1C1))){if(checkMatchRowCol(match)){abs1Val=checkAbs(match[3],match[5]);abs2Val=checkAbs(match[8],match[10]);if(abs1Val!==null&&abs2Val!==null){ref1=AscCommon.parserHelp.convertFromR1C1(null,parseInt(match[4]),null,abs1Val);ref2=""!==match[7]?AscCommon.parserHelp.convertFromR1C1(null,parseInt(match[9]),null,abs2Val):ref1;if(g_oCellAddressUtils.getCellAddress(ref1).isValid()&&g_oCellAddressUtils.getCellAddress(ref2).isValid()){this.pCurrPos+=
|
|
match[1].length;this.operand_str=match[1];this.real_str=ref1+":"+ref2;return true}}}}else if(null!=(match=subSTR.match(rgRowsR1C1)))if(checkMatchRowCol(match)){abs1Val=checkAbs(match[3],match[5]);abs2Val=checkAbs(match[8],match[10]);if(abs1Val!==null&&abs2Val!==null){ref1=AscCommon.parserHelp.convertFromR1C1(parseInt(match[4]),null,abs1Val);ref2=""!==match[7]?AscCommon.parserHelp.convertFromR1C1(parseInt(match[9]),null,abs2Val):ref1;if(g_oCellAddressUtils.getCellAddress(ref1).isValid()&&g_oCellAddressUtils.getCellAddress(ref2).isValid()){this.pCurrPos+=
|
|
match[1].length;this.operand_str=match[1];this.real_str=ref1+":"+ref2;return true}}}}return false};parserHelper.prototype.isRef=function(formula,start_pos,allRef){if(this instanceof parserHelper)this._reset();var R1C1Mode=AscCommonExcel.g_R1C1Mode;var substr=formula.substring(start_pos),match;var m0,m1;if(!R1C1Mode){match=substr.match(rx_ref);if(match!=null){m0=match[0];m1=match[1];if(g_oCellAddressUtils.getCellAddress(m1).isValid()){this.pCurrPos+=m0.indexOf(" ")>-1?m0.length-1:m1.length;this.operand_str=
|
|
m1;return true}else if(allRef){match=substr.match(rx_refAll);if((match!=null||match!=undefined)&&match.length>=3){m1=match[1];this.pCurrPos+=m1.length;this.operand_str=m1;return true}}}}else{match=substr.match(rx_refR1C1);if(match!=null&&(match[3]===match[5]||match[3]==="["&&match[5]==="]")&&(match[7]===match[9]||match[7]==="["&&match[9]==="]")){m0=match[0];m1=match[1];var ref=AscCommon.parserHelp.convertFromR1C1(parseInt(match[4]),parseInt(match[8]),!match[3],!match[7]);if(g_oCellAddressUtils.getCellAddress(ref).isValid()){this.pCurrPos+=
|
|
m0.indexOf(" ")>-1?m0.length-1:m1.length;this.operand_str=m1;this.real_str=ref;return true}}}return false};parserHelper.prototype.is3DRef=function(formula,start_pos,support_digital_start){if(this instanceof parserHelper)this._reset();var subSTR=formula.substring(start_pos),match=XRegExp.exec(subSTR,rx_ref3D_quoted)||XRegExp.exec(subSTR,rx_ref3D_non_quoted);if(!match&&support_digital_start)match=XRegExp.exec(subSTR,rx_ref3D_non_quoted_2);if(match!=null){this.pCurrPos+=match[0].length;this.operand_str=
|
|
match[1];return[true,match["name_from"]?match["name_from"].replace(/''/g,"'"):null,match["name_to"]?match["name_to"].replace(/''/g,"'"):null]}return[false,null,null]};parserHelper.prototype.isNextPtg=function(formula,start_pos,digitDelim){if(this instanceof parserHelper)this._reset();var subSTR=formula.substring(start_pos),match;if(subSTR.match(rx_RightParentheses)==null&&subSTR.match(digitDelim?rx_Comma:rx_CommaDef)==null&&subSTR.match(rx_operators)==null&&(match=subSTR.match(rx_intersect))!=null){this.pCurrPos+=
|
|
match[0].length;this.operand_str=match[0][0];return true}return false};parserHelper.prototype.isNumber=function(formula,start_pos,digitDelim){if(this instanceof parserHelper)this._reset();var match=formula.substring(start_pos).match(digitDelim?rx_number:rx_numberDef);if(match!=null){this.operand_str=match[0].replace(FormulaSeparators.digitSeparator,FormulaSeparators.digitSeparatorDef);this.pCurrPos+=match[0].length;return true}return false};parserHelper.prototype.isLeftParentheses=function(formula,
|
|
start_pos){if(this instanceof parserHelper)this._reset();var code,find=false,length=formula.length;while(start_pos!==length){code=formula.charCodeAt(start_pos);if(code===g_oCodeLeftParentheses){this.operand_str=formula[start_pos];++start_pos;find=true;break}else if(code===g_oCodeSpace)++start_pos;else break}if(find){while(start_pos!==length){code=formula.charCodeAt(start_pos);if(code!==g_oCodeSpace)break;++start_pos}this.pCurrPos=start_pos;return true}return false};parserHelper.prototype.isRightParentheses=
|
|
function(formula,start_pos){if(this instanceof parserHelper)this._reset();var code,find=false,length=formula.length;while(start_pos!==length){code=formula.charCodeAt(start_pos);if(code===g_oCodeRightParentheses){this.operand_str=formula[start_pos];++start_pos;find=true;break}else if(code===g_oCodeSpace)++start_pos;else break}if(find){while(start_pos!==length){code=formula.charCodeAt(start_pos);if(code!==g_oCodeSpace)break;++start_pos}this.pCurrPos=start_pos;return true}};parserHelper.prototype.isComma=
|
|
function(formula,start_pos,digitDelim){if(this instanceof parserHelper)this._reset();var match=formula.substring(start_pos).match(digitDelim?rx_Comma:rx_CommaDef);if(match!=null){this.operand_str=match[0];this.pCurrPos+=match[0].length;return true}return false};parserHelper.prototype.isArraySeparator=function(formula,start_pos,digitDelim){if(this instanceof parserHelper)this._reset();var match=formula.substring(start_pos).match(digitDelim?rx_arraySeparators:rx_arraySeparatorsDef);if(match!=null){this.operand_str=
|
|
match[0];this.pCurrPos+=match[0].length;return true}return false};parserHelper.prototype.isError=function(formula,start_pos,local){if(this instanceof parserHelper)this._reset();var match=formula.substring(start_pos).match(local?rx_error_local:rx_error);if(match!=null){this.operand_str=match[0];this.pCurrPos+=match[0].length;return true}return false};parserHelper.prototype.isBoolean=function(formula,start_pos,local){if(this instanceof parserHelper)this._reset();var match=formula.substring(start_pos).match(local?
|
|
rx_bool_local:rx_bool);if(match!=null){this.operand_str=match[1];this.pCurrPos+=match[1].length;return true}return false};parserHelper.prototype.isString=function(formula,start_pos){if(this instanceof parserHelper)this._reset();var match=formula.substring(start_pos).match(rx_string);if(match!=null){this.operand_str=match[1];this.pCurrPos+=match[0].length;return true}return false};parserHelper.prototype.isName=function(formula,start_pos){if(this instanceof parserHelper)this._reset();var subSTR=formula.substring(start_pos),
|
|
match=XRegExp.exec(subSTR,rx_name);if(match!=null){var name=match["name"];if(name&&0!==name.length&&name.toUpperCase()!==cBoolLocal.t&&name.toUpperCase()!==cBoolLocal.f){this.pCurrPos+=name.length;this.operand_str=name;return true}this.operand_str=name}return false};parserHelper.prototype.isName3D=function(formula,start_pos){if(this instanceof parserHelper)this._reset();var _is3DRef=this.is3DRef(formula,start_pos);if(_is3DRef&&_is3DRef[0]&&_is3DRef[1]&&_is3DRef[1].length){var _startPos=this.pCurrPos;
|
|
var _isArea=this.isArea(formula,_startPos);var _isRef=!_isArea&&this.isRef(formula,_startPos);return!_isRef&&!_isArea&&this.isName(formula,_startPos)}return false};parserHelper.prototype.isLeftBrace=function(formula,start_pos){if(this instanceof parserHelper)this._reset();var code,find=false,length=formula.length;while(start_pos!==length){code=formula.charCodeAt(start_pos);if(code===g_oCodeLeftBrace){this.operand_str=formula[start_pos];++start_pos;find=true;break}else if(code===g_oCodeSpace)++start_pos;
|
|
else break}if(find){while(start_pos!==length){code=formula.charCodeAt(start_pos);if(code!==g_oCodeSpace)break;++start_pos}this.pCurrPos=start_pos;return true}};parserHelper.prototype.isRightBrace=function(formula,start_pos){if(this instanceof parserHelper)this._reset();var code,find=false,length=formula.length;while(start_pos!==length){code=formula.charCodeAt(start_pos);if(code===g_oCodeRightBrace){this.operand_str=formula[start_pos];++start_pos;find=true;break}else if(code===g_oCodeSpace)++start_pos;
|
|
else break}if(find){while(start_pos!==length){code=formula.charCodeAt(start_pos);if(code!==g_oCodeSpace)break;++start_pos}this.pCurrPos=start_pos;return true}};parserHelper.prototype.isTable=function(formula,start_pos,local){if(this instanceof parserHelper)this._reset();var subSTR=formula.substring(start_pos),match=XRegExp.exec(subSTR,local?rx_table_local:rx_table);if(match!=null&&match["tableName"]){this.operand_str=match[0];this.pCurrPos+=match[0].length;return match}return false};parserHelper.prototype.parse3DRef=
|
|
function(formula){var is3DRefResult=this.is3DRef(formula,0);if(is3DRefResult&&true===is3DRefResult[0]){var sheetName=is3DRefResult[1];var indexStartRange=null!==this.pCurrPos?this.pCurrPos:formula.indexOf("!")+1;if(this.isArea(formula,indexStartRange)||this.isRef(formula,indexStartRange))if(this.operand_str.length==formula.substring(indexStartRange).length)return{sheet:sheetName,sheet2:is3DRefResult[2],range:this.operand_str};else return null}return null};parserHelper.prototype.get3DRef=function(sheet,
|
|
range){sheet=sheet.split(":");var wsFrom=sheet[0],wsTo=sheet[1]===undefined?wsFrom:sheet[1];if(rx_test_ws_name.test(wsFrom)&&rx_test_ws_name.test(wsTo))return(wsFrom!==wsTo?wsFrom+":"+wsTo:wsFrom)+"!"+range;else{wsFrom=wsFrom.replace(/'/g,"''");wsTo=wsTo.replace(/'/g,"''");return"'"+(wsFrom!==wsTo?wsFrom+":"+wsTo:wsFrom)+"'!"+range}};parserHelper.prototype.getEscapeSheetName=function(sheet){return rx_test_ws_name.test(sheet)?sheet:"'"+sheet.replace(/'/g,"''")+"'"};parserHelper.prototype.checkDataRange=
|
|
function(model,wb,dialogType,dataRange,fullCheck,isRows,subType){var result,range,sheetModel,checkChangeRange;if(Asc.c_oAscSelectionDialogType.Chart===dialogType){if(dataRange)if(Asc.c_oAscError.ID.No===AscFormat.isValidChartRange(dataRange))range=AscFormat.fParseChartFormulaExternal(dataRange)}else if(Asc.c_oAscSelectionDialogType.PivotTableData===dialogType||Asc.c_oAscSelectionDialogType.PivotTableReport===dialogType){result=parserHelp.parse3DRef(dataRange);if(result){sheetModel=model.getWorksheetByName(result.sheet);
|
|
if(sheetModel)range=AscCommonExcel.g_oRangeCache.getAscRange(result.range)}else if(Asc.c_oAscSelectionDialogType.PivotTableReport===dialogType)range=AscCommonExcel.g_oRangeCache.getAscRange(dataRange);if(!range)range=AscCommon.rx_defName.test(dataRange);if(!range)range=parserHelp.isTable(dataRange,0,true)}else if(Asc.c_oAscSelectionDialogType.PrintTitles===dialogType)if(dataRange==="")return Asc.c_oAscError.ID.No;else range=AscCommonExcel.g_oRangeCache.getAscRange(dataRange);else if(Asc.c_oAscSelectionDialogType.DataValidation===
|
|
dialogType)if(dataRange===null||dataRange==="")return Asc.c_oAscError.ID.DataValidateMustEnterValue;else{if(typeof dataRange==="string"){result=parserHelp.parse3DRef(dataRange);if(result){sheetModel=model.getWorksheetByName(result.sheet);if(sheetModel)range=AscCommonExcel.g_oRangeCache.getAscRange(result.range)}}}else range=AscCommonExcel.g_oRangeCache.getAscRange(dataRange);if(!range&&Asc.c_oAscSelectionDialogType.DataValidation!==dialogType&&Asc.c_oAscSelectionDialogType.ConditionalFormattingRule!==
|
|
dialogType)return Asc.c_oAscError.ID.DataRangeError;if(fullCheck)if(Asc.c_oAscSelectionDialogType.Chart===dialogType){var oDataRefs=new AscFormat.CChartDataRefs(null);return oDataRefs.checkDataRange(dataRange,isRows,subType)}else if(Asc.c_oAscSelectionDialogType.FormatTable===dialogType)if(true===wb.getWorksheet().model.autoFilters.isRangeIntersectionTableOrFilter(range))return Asc.c_oAscError.ID.AutoFilterDataRangeError;else if(wb.getWorksheet().intersectionFormulaArray(range,true,true))return Asc.c_oAscError.ID.MultiCellsInTablesFormulaArray;
|
|
else{if(range&&Asc.c_oAscSelectionType.RangeCells!==range.getType())return Asc.c_oAscError.ID.LargeRangeWarning}else if(Asc.c_oAscSelectionDialogType.FormatTableChangeRange===dialogType){checkChangeRange=wb.getWorksheet().af_checkChangeRange(range);if(null!==checkChangeRange)return checkChangeRange}else if(Asc.c_oAscSelectionDialogType.CustomSort===dialogType){checkChangeRange=wb.getWorksheet().checkCustomSortRange(range,isRows);if(null!==checkChangeRange)return checkChangeRange}else if(Asc.c_oAscSelectionDialogType.PivotTableData===
|
|
dialogType){if(!Asc.CT_pivotTableDefinition.prototype.isValidDataRef(dataRange))return c_oAscError.ID.PivotLabledColumns}else if(Asc.c_oAscSelectionDialogType.PivotTableReport===dialogType){var location=Asc.CT_pivotTableDefinition.prototype.parseDataRef(dataRange);if(location){sheetModel=location.ws;if(!sheetModel)sheetModel=model.getActiveWs();var newRange=new Asc.Range(location.bbox.c1,location.bbox.r1,location.bbox.c1+AscCommonExcel.NEW_PIVOT_LAST_COL_OFFSET,location.bbox.r1+AscCommonExcel.NEW_PIVOT_LAST_ROW_OFFSET);
|
|
return sheetModel.checkPivotReportLocationForError([newRange])}else return Asc.c_oAscError.ID.DataRangeError}else if(Asc.c_oAscSelectionDialogType.DataValidation===dialogType){var dataValidaionTest=AscCommonExcel.CDataValidation.prototype.isValidDataRef(model.getActiveWs(),dataRange,subType);if(null!==dataValidaionTest)return dataValidaionTest}else if(Asc.c_oAscSelectionDialogType.ConditionalFormattingRule===dialogType)if(dataRange===null||dataRange==="")return Asc.c_oAscError.ID.DataRangeError;else{if(dataRange[0]===
|
|
"=")dataRange=dataRange.slice(1);if(!parserHelp.isArea(dataRange)&&!parserHelp.isRef(dataRange)&&!parserHelp.isTable(dataRange))return Asc.c_oAscError.ID.DataRangeError}return Asc.c_oAscError.ID.No};parserHelper.prototype.setDigitSeparator=function(sep){if(sep!=FormulaSeparators.digitSeparatorDef){FormulaSeparators.digitSeparator=sep;FormulaSeparators.arrayRowSeparator=";";FormulaSeparators.arrayColSeparator="\\";FormulaSeparators.functionArgumentSeparator=";";rx_number=new RegExp("^ *[+-]?\\d*(\\d|\\"+
|
|
FormulaSeparators.digitSeparator+")\\d*([eE][+-]?\\d+)?");rx_Comma=new RegExp("^ *["+FormulaSeparators.functionArgumentSeparator+"] *");rx_arraySeparators=new RegExp("^ *["+FormulaSeparators.arrayRowSeparator+"\\"+FormulaSeparators.arrayColSeparator+"] *")}else{FormulaSeparators.arrayRowSeparator=FormulaSeparators.arrayRowSeparatorDef;FormulaSeparators.arrayColSeparator=FormulaSeparators.arrayColSeparatorDef;FormulaSeparators.digitSeparator=FormulaSeparators.digitSeparatorDef;FormulaSeparators.functionArgumentSeparator=
|
|
FormulaSeparators.functionArgumentSeparatorDef;rx_number=new RegExp("^ *[+-]?\\d*(\\d|\\"+FormulaSeparators.digitSeparatorDef+")\\d*([eE][+-]?\\d+)?");rx_Comma=new RegExp("^ *["+FormulaSeparators.functionArgumentSeparatorDef+"] *");rx_arraySeparators=new RegExp("^ *["+FormulaSeparators.arrayRowSeparatorDef+"\\"+FormulaSeparators.arrayColSeparatorDef+"] *")}rx_table_local=build_rx_table_cur()};parserHelper.prototype.getColumnTypeByName=function(value){var res;switch(value.toLowerCase()){case "#"+cStrucTableLocalColumns["a"].toLocaleLowerCase():case cStrucTableReservedWords.all.toLocaleLowerCase():res=
|
|
FormulaTablePartInfo.all;break;case "#"+cStrucTableLocalColumns["d"].toLocaleLowerCase():case cStrucTableReservedWords.data.toLocaleLowerCase():res=FormulaTablePartInfo.data;break;case "#"+cStrucTableLocalColumns["h"].toLocaleLowerCase():case cStrucTableReservedWords.headers.toLocaleLowerCase():res=FormulaTablePartInfo.headers;break;case "#"+cStrucTableLocalColumns["t"].toLocaleLowerCase():case cStrucTableReservedWords.totals.toLocaleLowerCase():res=FormulaTablePartInfo.totals;break;case "#"+cStrucTableLocalColumns["tr"].toLocaleLowerCase():case cStrucTableReservedWords.at.toLocaleLowerCase():case cStrucTableReservedWords.thisrow.toLocaleLowerCase():res=
|
|
FormulaTablePartInfo.thisRow;break;default:res=FormulaTablePartInfo.data;break}return res};parserHelper.prototype.getColumnNameByType=function(value,local){switch(value){case FormulaTablePartInfo.all:{if(local)return"#"+cStrucTableLocalColumns["a"];return cStrucTableReservedWords.all}case FormulaTablePartInfo.data:{if(local)return"#"+cStrucTableLocalColumns["d"];return cStrucTableReservedWords.data}case FormulaTablePartInfo.headers:{if(local)return"#"+cStrucTableLocalColumns["h"];return cStrucTableReservedWords.headers}case FormulaTablePartInfo.totals:{if(local)return"#"+
|
|
cStrucTableLocalColumns["t"];return cStrucTableReservedWords.totals}case FormulaTablePartInfo.thisRow:{if(local)return"#"+cStrucTableLocalColumns["tr"];return cStrucTableReservedWords.thisrow}}return null};var parserHelp=new parserHelper;var g_oHtmlCursor=new CHTMLCursor;var kCurFormatPainterWord="de-formatpainter";g_oHtmlCursor.register(kCurFormatPainterWord,"text_copy","2 11","pointer");function asc_ajax(obj){var url="",type="GET",async=true,data=null,dataType,error=null,success=null,httpRequest=
|
|
null,contentType="application/x-www-form-urlencoded",responseType="",init=function(obj){if(typeof obj.url!=="undefined")url=obj.url;if(typeof obj.type!=="undefined")type=obj.type;if(typeof obj.async!=="undefined")async=obj.async;if(typeof obj.data!=="undefined")data=obj.data;if(typeof obj.dataType!=="undefined")dataType=obj.dataType;if(typeof obj.error!=="undefined")error=obj.error;if(typeof obj.success!=="undefined")success=obj.success;if(typeof obj.contentType!=="undefined")contentType=obj.contentType;
|
|
if(typeof obj.responseType!=="undefined")responseType=obj.responseType;if(window.XMLHttpRequest){httpRequest=new XMLHttpRequest;if(httpRequest.overrideMimeType&&dataType)httpRequest.overrideMimeType(dataType)}else if(window.ActiveXObject)try{httpRequest=new ActiveXObject("Msxml2.XMLHTTP")}catch(e$18){try{httpRequest=new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}httpRequest.onreadystatechange=function(){respons(this)};send()},send=function(){httpRequest.open(type,url,async);if(type==="POST")httpRequest.setRequestHeader("Content-Type",
|
|
contentType);if(responseType)httpRequest.responseType=responseType;httpRequest.send(data)},respons=function(httpRequest){switch(httpRequest.readyState){case 0:break;case 1:break;case 2:break;case 3:break;case 4:if(httpRequest.status===200||httpRequest.status===1223){if(typeof success==="function")success(httpRequest)}else if(typeof error==="function")error(httpRequest,httpRequest.statusText,httpRequest.status);break}};init(obj)}function CIdCounter(){this.m_sUserId=null;this.m_bLoad=true;this.m_bRead=
|
|
false;this.m_nIdCounterLoad=0;this.m_nIdCounterEdit=0}CIdCounter.prototype.Get_NewId=function(){if(true===this.m_bLoad||null===this.m_sUserId){this.m_nIdCounterLoad++;return""+this.m_nIdCounterLoad}else{this.m_nIdCounterEdit++;return""+this.m_sUserId+"_"+this.m_nIdCounterEdit}};CIdCounter.prototype.Set_UserId=function(sUserId){this.m_sUserId=sUserId};CIdCounter.prototype.Set_Load=function(bValue){this.m_bLoad=bValue};CIdCounter.prototype.Clear=function(){this.m_sUserId=null;this.m_bLoad=true;this.m_nIdCounterLoad=
|
|
0;this.m_nIdCounterEdit=0};function CLock(){this.Type=locktype_None;this.UserId=null}CLock.prototype.Get_Type=function(){return this.Type};CLock.prototype.Set_Type=function(NewType,Redraw){if(NewType===locktype_None)this.UserId=null;this.Type=NewType;var oApi=editor;var oLogicDocument=oApi.WordControl.m_oLogicDocument;if(false!=Redraw&&oLogicDocument){var oDrawingDocument=oLogicDocument.DrawingDocument;oDrawingDocument.ClearCachePages();oDrawingDocument.FirePaint();if(oApi.editorId===AscCommon.c_oEditorId.Presentation){var oCurSlide=
|
|
oLogicDocument.Slides[oLogicDocument.CurPage];if(oCurSlide&&oCurSlide.notesShape&&oCurSlide.notesShape.Lock===this)oDrawingDocument.Notes_OnRecalculate(oLogicDocument.CurPage,oCurSlide.NotesWidth,oCurSlide.getNotesHeight())}var oRevisionsStack=oApi.asc_GetRevisionsChangesStack();var arrParagraphs=[];for(var nIndex=0,nCount=oRevisionsStack.length;nIndex<nCount;++nIndex)arrParagraphs.push(oRevisionsStack[nIndex].get_Paragraph());var bNeedUpdate=false;for(var nIndex=0,nCount=arrParagraphs.length;nIndex<
|
|
nCount;++nIndex)if(arrParagraphs[nIndex].GetLock()===this){bNeedUpdate=true;break}if(bNeedUpdate){oLogicDocument.TrackRevisionsManager.Clear_VisibleChanges();oLogicDocument.Document_UpdateInterfaceState(false)}}};CLock.prototype.Check=function(Id){if(this.Type===locktype_Mine)AscCommon.CollaborativeEditing.Add_CheckLock(false);else if(this.Type===locktype_Other||this.Type===locktype_Other2||this.Type===locktype_Other3)AscCommon.CollaborativeEditing.Add_CheckLock(true);else AscCommon.CollaborativeEditing.Add_CheckLock(Id)};
|
|
CLock.prototype.Lock=function(bMine){if(locktype_None===this.Type)if(true===bMine)this.Type=locktype_Mine;else true.Type=locktype_Other};CLock.prototype.Is_Locked=function(){if(locktype_None!=this.Type&&locktype_Mine!=this.Type)return true;return false};CLock.prototype.Set_UserId=function(UserId){this.UserId=UserId};CLock.prototype.Get_UserId=function(){return this.UserId};CLock.prototype.Have_Changes=function(){if(locktype_Other2===this.Type||locktype_Other3===this.Type)return true;return false};
|
|
function CContentChanges(){this.m_aChanges=[]}CContentChanges.prototype.Add=function(Changes){this.m_aChanges.push(Changes)};CContentChanges.prototype.RemoveByHistoryItem=function(Item){for(var nIndex=0,nCount=this.m_aChanges.length;nIndex<nCount;++nIndex)if(this.m_aChanges[nIndex].m_pData===Item){this.m_aChanges.splice(nIndex,1);return}};CContentChanges.prototype.Clear=function(){this.m_aChanges.length=0};CContentChanges.prototype.Check=function(Type,Pos){var CurPos=Pos;var Count=this.m_aChanges.length;
|
|
for(var Index=0;Index<Count;Index++){var NewPos=this.m_aChanges[Index].Check_Changes(Type,CurPos);if(false===NewPos)return false;CurPos=NewPos}return CurPos};CContentChanges.prototype.Refresh=function(){var Count=this.m_aChanges.length;for(var Index=0;Index<Count;Index++)this.m_aChanges[Index].Refresh_BinaryData()};function CContentChangesElement(Type,Pos,Count,Data){this.m_nType=Type;this.m_nCount=Count;this.m_pData=Data;this.m_aPositions=this.Make_ArrayOfSimpleActions(Type,Pos,Count)}CContentChangesElement.prototype.Refresh_BinaryData=
|
|
function(){var Binary_Writer=AscCommon.History.BinaryWriter;var Binary_Pos=Binary_Writer.GetCurPosition();this.m_pData.Data.UseArray=true;this.m_pData.Data.PosArray=this.m_aPositions;Binary_Writer.WriteString2(this.m_pData.Class.Get_Id());Binary_Writer.WriteLong(this.m_pData.Data.Type);this.m_pData.Data.WriteToBinary(Binary_Writer);var Binary_Len=Binary_Writer.GetCurPosition()-Binary_Pos;this.m_pData.Binary.Pos=Binary_Pos;this.m_pData.Binary.Len=Binary_Len};CContentChangesElement.prototype.Check_Changes=
|
|
function(Type,Pos){var CurPos=Pos;if(contentchanges_Add===Type)for(var Index=0;Index<this.m_nCount;Index++){if(false!==this.m_aPositions[Index])if(CurPos<=this.m_aPositions[Index])this.m_aPositions[Index]++;else if(contentchanges_Add===this.m_nType)CurPos++;else CurPos--}else for(var Index=0;Index<this.m_nCount;Index++)if(false!==this.m_aPositions[Index])if(CurPos<this.m_aPositions[Index])this.m_aPositions[Index]--;else if(CurPos>this.m_aPositions[Index])if(contentchanges_Add===this.m_nType)CurPos++;
|
|
else CurPos--;else if(AscCommon.contentchanges_Remove===this.m_nType){this.m_aPositions[Index]=false;return false}else CurPos++;return CurPos};CContentChangesElement.prototype.Make_ArrayOfSimpleActions=function(Type,Pos,Count){var Positions=[];if(contentchanges_Add===Type)for(var Index=0;Index<Count;Index++)Positions[Index]=Pos+Index;else for(var Index=0;Index<Count;Index++)Positions[Index]=Pos;return Positions};function CorrectMMToTwips(mm){return(mm*20*72/25.4+.5|0)*25.4/20/72}function TwipsToMM(nTwips){return(null!==
|
|
nTwips&&undefined!==nTwips?nTwips:1)*25.4/20/72}function MMToTwips(mm){return mm*20*72/25.4+.5|0}function RomanToInt(sRoman){sRoman=sRoman.toUpperCase();if(sRoman<1)return 0;else if(!/^M*(?:D?C{0,3}|C[MD])(?:L?X{0,3}|X[CL])(?:V?I{0,3}|I[XV])$/i.test(sRoman))return NaN;var chars={"M":1E3,"CM":900,"D":500,"CD":400,"C":100,"XC":90,"L":50,"XL":40,"X":10,"IX":9,"V":5,"IV":4,"I":1};var arabic=0;sRoman.replace(/[MDLV]|C[MD]?|X[CL]?|I[XV]?/g,function(i){arabic+=chars[i]});return arabic}function LatinNumberingToInt(sLetters){sLetters=
|
|
sLetters.toUpperCase();if(sLetters.length<=0)return NaN;var nLen=sLetters.length;var nFirstCharCode=sLetters.charCodeAt(0);if(65>nFirstCharCode||nFirstCharCode>90)return NaN;for(var nPos=1;nPos<nLen;++nPos)if(sLetters.charCodeAt(nPos)!==nFirstCharCode)return NaN;return nFirstCharCode-64+26*(nLen-1)}function IntToNumberFormat(nValue,nFormat){var sResult="";switch(nFormat){case Asc.c_oAscNumberingFormat.Bullet:{break}case Asc.c_oAscNumberingFormat.Decimal:{sResult=""+nValue;break}case Asc.c_oAscNumberingFormat.DecimalZero:{sResult=
|
|
""+nValue;if(1===sResult.length)sResult="0"+sResult;break}case Asc.c_oAscNumberingFormat.DecimalEnclosedCircle:{if(nValue<=20)sResult=String.fromCharCode(9312+nValue-1);else sResult=""+nValue;break}case Asc.c_oAscNumberingFormat.LowerLetter:case Asc.c_oAscNumberingFormat.UpperLetter:{var Num=nValue-1;var Count=(Num-Num%26)/26;var Ost=Num%26;var Letter;if(Asc.c_oAscNumberingFormat.LowerLetter===nFormat)Letter=String.fromCharCode(Ost+97);else Letter=String.fromCharCode(Ost+65);for(var nIndex=0;nIndex<
|
|
Count+1;++nIndex)sResult+=Letter;break}case Asc.c_oAscNumberingFormat.RussianLower:case Asc.c_oAscNumberingFormat.RussianUpper:{var Num=nValue-1;var Count=(Num-Num%29)/29;var Ost=Num%29;if(Ost>25)Ost+=3;else if(Ost>24)Ost+=2;else if(Ost>8)Ost++;var Letter;if(Asc.c_oAscNumberingFormat.RussianLower===nFormat)Letter=String.fromCharCode(Ost+1072);else Letter=String.fromCharCode(Ost+1040);for(var nIndex=0;nIndex<Count+1;++nIndex)sResult+=Letter;break}case Asc.c_oAscNumberingFormat.LowerRoman:case Asc.c_oAscNumberingFormat.UpperRoman:{var Num=
|
|
nValue;var Rims;if(Asc.c_oAscNumberingFormat.LowerRoman===nFormat)Rims=["m","cm","d","cd","c","xc","l","xl","x","ix","v","iv","i"," "];else Rims=["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"," "];var Vals=[1E3,900,500,400,100,90,50,40,10,9,5,4,1,0];var nIndex=0;while(Num>0){while(Vals[nIndex]<=Num){sResult+=Rims[nIndex];Num-=Vals[nIndex]}nIndex++;if(nIndex>=Rims.length)break}break}case Asc.c_oAscNumberingFormat.ChineseCounting:{var arrChinese=[String.fromCharCode(9675),String.fromCharCode(19968),
|
|
String.fromCharCode(20108),String.fromCharCode(19977),String.fromCharCode(22235),String.fromCharCode(20116),String.fromCharCode(20845),String.fromCharCode(19971),String.fromCharCode(20843),String.fromCharCode(20061),String.fromCharCode(21313)];var nQuotient=nValue/10|0;var nRemainder=nValue-nQuotient*10;if(nQuotient<10&&nQuotient>0){if(0!==nRemainder)sResult=arrChinese[nRemainder]+sResult;sResult=arrChinese[10]+sResult;if(1===nQuotient)nQuotient=0}else sResult=arrChinese[nRemainder]+sResult;var nRemValue=
|
|
nQuotient;while(nQuotient>0){nQuotient=nRemValue/10|0;nRemainder=nRemValue-nQuotient*10;sResult=arrChinese[nRemainder]+sResult;nRemValue=nQuotient}break}case Asc.c_oAscNumberingFormat.ChineseCountingThousand:{var arrChinese={0:String.fromCharCode(9675),1:String.fromCharCode(19968),2:String.fromCharCode(20108),3:String.fromCharCode(19977),4:String.fromCharCode(22235),5:String.fromCharCode(20116),6:String.fromCharCode(20845),7:String.fromCharCode(19971),8:String.fromCharCode(20843),9:String.fromCharCode(20061),
|
|
10:String.fromCharCode(21313),100:String.fromCharCode(30334),1E3:String.fromCharCode(21315),1E4:String.fromCharCode(19975)};var nRemValue=nValue;while(true){var nTTQuotient=nRemValue/1E4|0;var nTTRemainder=nRemValue-nTTQuotient*1E4;nRemValue=nTTQuotient;var sGroup="",isPrevZero=false;if(nTTQuotient>0)sGroup+=arrChinese[1E4];else isPrevZero=true;if(nTTRemainder<=0){sResult=sGroup+sResult;if(nRemValue<=0)break;continue}var nQuotient=nTTRemainder/1E3|0;var nRemainder=nTTRemainder-nQuotient*1E3;if(0!==
|
|
nQuotient){sGroup+=arrChinese[nQuotient]+arrChinese[1E3];isPrevZero=false}else if(nTTQuotient>0){sGroup+=arrChinese[0];isPrevZero=true}if(nRemainder<=0){sResult=sGroup+sResult;if(nRemValue<=0)break;continue}nQuotient=nRemainder/100|0;nRemainder=nRemainder-nQuotient*100;if(0!==nQuotient){sGroup+=arrChinese[nQuotient]+arrChinese[100];isPrevZero=false}else if(!isPrevZero){sGroup+=arrChinese[0];isPrevZero=true}if(nRemainder<=0){sResult=sGroup+sResult;if(nRemValue<=0)break;continue}nQuotient=nRemainder/
|
|
10|0;nRemainder=nRemainder-nQuotient*10;if(0!==nQuotient){if(nValue<20)sGroup+=arrChinese[10];else sGroup+=arrChinese[nQuotient]+arrChinese[10];isPrevZero=false}else if(!isPrevZero){sGroup+=arrChinese[0];isPrevZero=true}if(0!==nRemainder)sGroup+=arrChinese[nRemainder];sResult=sGroup+sResult;if(nRemValue<=0)break}break}case Asc.c_oAscNumberingFormat.ChineseLegalSimplified:{var arrChinese={0:String.fromCharCode(38646),1:String.fromCharCode(22777),2:String.fromCharCode(36144),3:String.fromCharCode(21441),
|
|
4:String.fromCharCode(32902),5:String.fromCharCode(20237),6:String.fromCharCode(38470),7:String.fromCharCode(26578),8:String.fromCharCode(25420),9:String.fromCharCode(29590),10:String.fromCharCode(25342),100:String.fromCharCode(20336),1E3:String.fromCharCode(20191),1E4:String.fromCharCode(33836)};var nRemValue=nValue;while(true){var nTTQuotient=nRemValue/1E4|0;var nTTRemainder=nRemValue-nTTQuotient*1E4;nRemValue=nTTQuotient;var sGroup="",isPrevZero=false;if(nTTQuotient>0)sGroup+=arrChinese[1E4];else isPrevZero=
|
|
true;if(nTTRemainder<=0){sResult=sGroup+sResult;if(nRemValue<=0)break;continue}var nQuotient=nTTRemainder/1E3|0;var nRemainder=nTTRemainder-nQuotient*1E3;if(0!==nQuotient){sGroup+=arrChinese[nQuotient]+arrChinese[1E3];isPrevZero=false}else if(nTTQuotient>0){sGroup+=arrChinese[0];isPrevZero=true}if(nRemainder<=0){sResult=sGroup+sResult;if(nRemValue<=0)break;continue}nQuotient=nRemainder/100|0;nRemainder=nRemainder-nQuotient*100;if(0!==nQuotient){sGroup+=arrChinese[nQuotient]+arrChinese[100];isPrevZero=
|
|
false}else if(!isPrevZero){sGroup+=arrChinese[0];isPrevZero=true}if(nRemainder<=0){sResult=sGroup+sResult;if(nRemValue<=0)break;continue}nQuotient=nRemainder/10|0;nRemainder=nRemainder-nQuotient*10;if(0!==nQuotient){sGroup+=arrChinese[nQuotient]+arrChinese[10];isPrevZero=false}else if(!isPrevZero){sGroup+=arrChinese[0];isPrevZero=true}if(0!==nRemainder)sGroup+=arrChinese[nRemainder];sResult=sGroup+sResult;if(nRemValue<=0)break}break}}return sResult}function CorrectFontSize(nFontSize,isCeil){return isCeil?
|
|
Math.ceil(nFontSize*2)/2:Math.floor(nFontSize*2)/2}var c_oAscSpaces=[];c_oAscSpaces[10]=1;c_oAscSpaces[32]=1;c_oAscSpaces[8194]=1;c_oAscSpaces[8195]=1;c_oAscSpaces[8197]=1;c_oAscSpaces[12288]=1;c_oAscSpaces[65279]=1;function IsSpace(nUnicode){return!!c_oAscSpaces[nUnicode]}function private_IsAbbreviation(sWord){if(sWord.toUpperCase()===sWord){for(var nPos=0,nLen=sWord.length;nPos<nLen;++nPos){var nCharCode=sWord.charCodeAt(nPos);if(44032<=nCharCode&&nCharCode<=55203||4352<=nCharCode&&nCharCode<=4607||
|
|
12592<=nCharCode&&nCharCode<=12687||43360<=nCharCode&&nCharCode<=43391||55216<=nCharCode&&nCharCode<=55295||19968<=nCharCode&&nCharCode<=40959||13312<=nCharCode&&nCharCode<=19903||131072<=nCharCode&&nCharCode<=173791||173824<=nCharCode&&nCharCode<=177983||177984<=nCharCode&&nCharCode<=178207||178208<=nCharCode&&nCharCode<=183983||63744<=nCharCode&&nCharCode<=64255||194560<=nCharCode&&nCharCode<=195103)return false}return true}return false}var g_oUserColorById={},g_oUserNextColorIndex=0;function getUserColorById(userId,
|
|
userName,isDark,isNumericValue){if(window.parent.APP&&window.parent.APP.getUserColor)try{var CPColor=window.parent.APP.getUserColor(userId);if(CPColor)return true===isNumericValue?CPColor.r<<16&16711680|CPColor.g<<8&65280|CPColor.b&255:new CColor(CPColor.r,CPColor.g,CPColor.b,CPColor.a)}catch(e){}if((!userId||""===userId)&&(!userName||""===userName))return new CColor(0,0,0,255);var res;if(g_oUserColorById.hasOwnProperty(userId))res=g_oUserColorById[userId];else if(g_oUserColorById.hasOwnProperty(userName))res=
|
|
g_oUserColorById[userName];else{var nColor=Asc.c_oAscArrUserColors[g_oUserNextColorIndex%Asc.c_oAscArrUserColors.length];++g_oUserNextColorIndex;res=g_oUserColorById[userId||userName]=new CUserCacheColor(nColor)}if(!res)return new CColor(0,0,0,255);var oColor=true===isDark?res.Dark:res.Light;return true===isNumericValue?oColor.r<<16&16711680|oColor.g<<8&65280|oColor.b&255:oColor}function isNullOrEmptyString(str){return str==undefined||str==null||str==""}function unleakString(s){return(" "+s).substr(1)}
|
|
function readValAttr(attr){if(attr()){var val=attr()["val"];return val?val:null}return null}function getNumFromXml(val){return val?val-0:null}function getColorFromXml(attr){if(attr()){var vals=attr();if(null!=vals["theme"])return AscCommonExcel.g_oColorManager.getThemeColor(getNumFromXml(vals["theme"]),getNumFromXml(vals["tint"]));else if(null!=vals["rgb"])return new AscCommonExcel.RgbColor(16777215&getNumFromXml(vals["rgb"]))}return null}function getBoolFromXml(val){return"0"!==val&&"false"!==val&&
|
|
"off"!==val}function CUserCacheColor(nColor){this.Light=null;this.Dark=null;this.init(nColor)}CUserCacheColor.prototype.init=function(nColor){var r=nColor>>16&255;var g=nColor>>8&255;var b=nColor&255;var Y=Math.max(0,Math.min(255,.299*r+.587*g+.114*b));var Cb=Math.max(0,Math.min(255,128-.168736*r-.331264*g+.5*b));var Cr=Math.max(0,Math.min(255,128+.5*r-.418688*g-.081312*b));if(Y>63)Y=63;var R=Math.max(0,Math.min(255,Y+1.402*(Cr-128)))|0;var G=Math.max(0,Math.min(255,Y-.34414*(Cb-128)-.71414*(Cr-128)))|
|
|
0;var B=Math.max(0,Math.min(255,Y+1.772*(Cb-128)))|0;this.Light=new CColor(r,g,b,255);this.Dark=new CColor(R,G,B,255)};function loadScript(url,onSuccess,onError){if(window["NATIVE_EDITOR_ENJINE"]===true||window["Native"]!==undefined){onSuccess();return}if(window["AscDesktopEditor"]&&window["local_load_add"]){var _context={"completeLoad":function(){return onSuccess()}};window["local_load_add"](_context,"sdk-all-from-min",url);var _ret_param=window["AscDesktopEditor"]["LoadJS"](url);if(2!=_ret_param)window["local_load_remove"](url);
|
|
if(_ret_param==1){setTimeout(onSuccess,1);return}else if(_ret_param==2)return}var backoff=new AscCommon.Backoff(AscCommon.g_oBackoffDefaults);loadScriptWithBackoff(backoff,url,onSuccess,onError)}function loadScriptWithBackoff(backoff,url,onSuccess,onError){var script=document.createElement("script");script.type="text/javascript";script.src=url;script.onload=onSuccess;script.onerror=function(){backoff.attempt(onError,function(){loadScriptWithBackoff(backoff,url,onSuccess,onError)})};document.head.appendChild(script)}
|
|
function loadSdk(sdkName,onSuccess,onError){if(window["AscNotLoadAllScript"])onSuccess();else{var urlArgs=window.parent&&window.parent.APP&&window.parent.APP.urlArgs||"";loadScript("./../../../../sdkjs/"+sdkName+"/sdk-all.js?"+urlArgs,onSuccess,onError)}}function loadChartStyles(onSuccess,onError){loadScript("../../../../sdkjs/common/Charts/ChartStyles.js",onSuccess,onError)}function getAltGr(e){var ctrlKey=e.metaKey||e.ctrlKey;var altKey=e.altKey;return altKey&&(AscBrowser.isMacOs?!ctrlKey:ctrlKey)}
|
|
function getColorSchemeByName(sName){for(var i=0;i<AscCommon.g_oUserColorScheme.length;++i){var tmp=AscCommon.g_oUserColorScheme[i];if(tmp&&tmp.name===sName)return getColorSchemeByIdx(i)}return null}function getColorSchemeByIdx(idx){var tmp=AscCommon.g_oUserColorScheme[idx];if(tmp){var scheme=new AscFormat.ClrScheme,_c;scheme.name=tmp.name;_c=tmp.get_dk1();scheme.colors[8]=AscFormat.CreateUniColorRGB(_c.r,_c.g,_c.b);_c=tmp.get_lt1();scheme.colors[12]=AscFormat.CreateUniColorRGB(_c.r,_c.g,_c.b);_c=
|
|
tmp.get_dk2();scheme.colors[9]=AscFormat.CreateUniColorRGB(_c.r,_c.g,_c.b);_c=tmp.get_lt2();scheme.colors[13]=AscFormat.CreateUniColorRGB(_c.r,_c.g,_c.b);_c=tmp.get_accent1();scheme.colors[0]=AscFormat.CreateUniColorRGB(_c.r,_c.g,_c.b);_c=tmp.get_accent2();scheme.colors[1]=AscFormat.CreateUniColorRGB(_c.r,_c.g,_c.b);_c=tmp.get_accent3();scheme.colors[2]=AscFormat.CreateUniColorRGB(_c.r,_c.g,_c.b);_c=tmp.get_accent4();scheme.colors[3]=AscFormat.CreateUniColorRGB(_c.r,_c.g,_c.b);_c=tmp.get_accent5();
|
|
scheme.colors[4]=AscFormat.CreateUniColorRGB(_c.r,_c.g,_c.b);_c=tmp.get_accent6();scheme.colors[5]=AscFormat.CreateUniColorRGB(_c.r,_c.g,_c.b);_c=tmp.get_hlink();scheme.colors[11]=AscFormat.CreateUniColorRGB(_c.r,_c.g,_c.b);_c=tmp.get_folHlink();scheme.colors[10]=AscFormat.CreateUniColorRGB(_c.r,_c.g,_c.b);return scheme}return null}function getAscColorScheme(_scheme,theme){var elem,_c;var _rgba={R:0,G:0,B:0,A:255};elem=new AscCommon.CAscColorScheme;elem.scheme=_scheme;elem.name=_scheme.name;_scheme.colors[8].Calculate(theme,
|
|
null,null,null,_rgba);_c=_scheme.colors[8].RGBA;elem.putColor(new AscCommon.CColor(_c.R,_c.G,_c.B));_scheme.colors[12].Calculate(theme,null,null,null,_rgba);_c=_scheme.colors[12].RGBA;elem.putColor(new AscCommon.CColor(_c.R,_c.G,_c.B));_scheme.colors[9].Calculate(theme,null,null,null,_rgba);_c=_scheme.colors[9].RGBA;elem.putColor(new AscCommon.CColor(_c.R,_c.G,_c.B));_scheme.colors[13].Calculate(theme,null,null,null,_rgba);_c=_scheme.colors[13].RGBA;elem.putColor(new AscCommon.CColor(_c.R,_c.G,_c.B));
|
|
_scheme.colors[0].Calculate(theme,null,null,null,_rgba);_c=_scheme.colors[0].RGBA;elem.putColor(new AscCommon.CColor(_c.R,_c.G,_c.B));_scheme.colors[1].Calculate(theme,null,null,null,_rgba);_c=_scheme.colors[1].RGBA;elem.putColor(new AscCommon.CColor(_c.R,_c.G,_c.B));_scheme.colors[2].Calculate(theme,null,null,null,_rgba);_c=_scheme.colors[2].RGBA;elem.putColor(new AscCommon.CColor(_c.R,_c.G,_c.B));_scheme.colors[3].Calculate(theme,null,null,null,_rgba);_c=_scheme.colors[3].RGBA;elem.putColor(new AscCommon.CColor(_c.R,
|
|
_c.G,_c.B));_scheme.colors[4].Calculate(theme,null,null,null,_rgba);_c=_scheme.colors[4].RGBA;elem.putColor(new AscCommon.CColor(_c.R,_c.G,_c.B));_scheme.colors[5].Calculate(theme,null,null,null,_rgba);_c=_scheme.colors[5].RGBA;elem.putColor(new AscCommon.CColor(_c.R,_c.G,_c.B));_scheme.colors[11].Calculate(theme,null,null,null,_rgba);_c=_scheme.colors[11].RGBA;elem.putColor(new AscCommon.CColor(_c.R,_c.G,_c.B));_scheme.colors[10].Calculate(theme,null,null,null,_rgba);_c=_scheme.colors[10].RGBA;elem.putColor(new AscCommon.CColor(_c.R,
|
|
_c.G,_c.B));return elem}function getIndexColorSchemeInArray(result,asc_color_scheme){for(var j=0;j<result.length;++j)if(result[j].isEqual(asc_color_scheme))return j;return-1}function checkAddColorScheme(result,asc_color_scheme,nStartIndex){var nIndex=getIndexColorSchemeInArray(result,asc_color_scheme);if(nIndex>-1)return nIndex;var nStartIndex_=nStartIndex;if(nStartIndex===null)nStartIndex_=result.length;result.splice(nStartIndex_,0,asc_color_scheme);return nStartIndex_}function isEastAsianScript(value){return 12544<=
|
|
value&&value<=12591||12704<=value&&value<=12735||19968<=value&&value<=40938||13312<=value&&value<=19893||131072<=value&&value<=173782||173824<=value&&value<=177972||177984<=value&&value<=178205||178208<=value&&value<=183969||183984<=value&&value<=191456||63744<=value&&value<=64255||194560<=value&&value<=195103||12032<=value&&value<=12255||11904<=value&&value<=12031||12736<=value&&value<=12783||12272<=value&&value<=12287||4352<=value&&value<=4607||43360<=value&&value<=43391||55216<=value&&value<=55295||
|
|
12592<=value&&value<=12687||65280<=value&&value<=65519||44032<=value&&value<=55215||12352<=value&&value<=12447||110848<=value&&value<=110895||110592<=value&&value<=110847||12688<=value&&value<=12703||12448<=value&&value<=12543||12784<=value&&value<=12799||42192<=value&&value<=42239||93952<=value&&value<=94111||110960<=value&&value<=111359||94208<=value&&value<=100332||100352<=value&&value<=101119||40960<=value&&value<=42127||42128<=value&&value<=42191}var g_oIdCounter=new CIdCounter;window.Asc.g_signature_drawer=
|
|
null;function CSignatureDrawer(id,api,w,h){window.Asc.g_signature_drawer=this;this.Api=api;this.CanvasParent=document.getElementById(id);this.Canvas=document.createElement("canvas");this.Canvas.style.position="absolute";this.Canvas.style.left="0px";this.Canvas.style.top="0px";var _width=parseInt(this.CanvasParent.offsetWidth);var _height=parseInt(this.CanvasParent.offsetHeight);if(0==_width)_width=300;if(0==_height)_height=80;this.Canvas.width=_width;this.Canvas.height=_height;this.CanvasParent.appendChild(this.Canvas);
|
|
this.Image="";this.ImageHtml=null;this.Text="";this.Font="Arial";this.Size=10;this.Italic=true;this.Bold=false;this.Width=w;this.Height=h;this.CanvasReturn=null;this.IsAsync=false}CSignatureDrawer.prototype.getCanvas=function(){return this.CanvasReturn==null?this.Canvas:this.CanvasReturn};CSignatureDrawer.prototype.getImages=function(){if(!this.isValid())return["",""];this.CanvasReturn=document.createElement("canvas");this.CanvasReturn.width=this.Width*AscCommon.g_dKoef_mm_to_pix;this.CanvasReturn.height=
|
|
this.Height*AscCommon.g_dKoef_mm_to_pix;if(this.Text!="")this.drawText();else this.drawImage();var _ret=[];_ret.push(this.CanvasReturn.toDataURL("image/png"));var _ctx=this.CanvasReturn.getContext("2d");_ctx.strokeStyle="#FF0000";_ctx.lineWidth=2;_ctx.moveTo(0,0);_ctx.lineTo(this.CanvasReturn.width,this.CanvasReturn.height);_ctx.moveTo(0,this.CanvasReturn.height);_ctx.lineTo(this.CanvasReturn.width,0);_ctx.stroke();_ret.push(this.CanvasReturn.toDataURL("image/png"));this.CanvasReturn=null;return _ret};
|
|
CSignatureDrawer.prototype.setText=function(text,font,size,isItalic,isBold){if(this.IsAsync){this.Text=text;return}this.Image="";this.ImageHtml=null;this.Text=text;this.Font=font;this.Size=size;this.Italic=isItalic;this.Bold=isBold;this.IsAsync=true;AscFonts.FontPickerByCharacter.checkText(this.Text,this,function(){this.IsAsync=false;var loader=AscCommon.g_font_loader;var fontinfo=AscFonts.g_fontApplication.GetFontInfo(font);var isasync=loader.LoadFont(fontinfo,function(){window.Asc.g_signature_drawer.Api.sync_EndAction(Asc.c_oAscAsyncActionType.Information,
|
|
Asc.c_oAscAsyncAction.LoadFont);window.Asc.g_signature_drawer.drawText()});if(false===isasync)this.drawText()})};CSignatureDrawer.prototype.drawText=function(){var _oldTurn=this.Api.isViewMode;var _oldMarks=this.Api.ShowParaMarks;this.Api.isViewMode=true;this.Api.ShowParaMarks=false;AscFormat.ExecuteNoHistory(AscCommon.DrawTextByCenter,this,[]);this.Api.isViewMode=_oldTurn;this.Api.ShowParaMarks=_oldMarks};CSignatureDrawer.prototype.drawImage=function(){var _canvas=this.getCanvas();var w=_canvas.width;
|
|
var h=_canvas.height;var _ctx=_canvas.getContext("2d");_ctx.clearRect(0,0,w,h);var im_w=this.ImageHtml.width;var im_h=this.ImageHtml.height;var _x=0;var _y=0;var _w=0;var _h=0;var koef1=w/h;var koef2=im_w/im_h;if(koef1>koef2){_h=h;_w=koef2*_h>>0;_y=0;_x=w-_w>>1}else{_w=w;_h=_w/koef2>>0;_x=0;_y=h-_h>>1}_ctx.drawImage(this.ImageHtml,_x,_y,_w,_h)};CSignatureDrawer.prototype.selectImage=CSignatureDrawer.prototype["selectImage"]=function(){this.Text="";window["AscDesktopEditor"]["OpenFilenameDialog"]("images",
|
|
false,function(_file){var file=_file;if(Array.isArray(file))file=file[0];if(!file)return;var _drawer=window.Asc.g_signature_drawer;_drawer.Image=window["AscDesktopEditor"]["GetImageBase64"](file);_drawer.ImageHtml=new Image;_drawer.ImageHtml.onload=function(){window.Asc.g_signature_drawer.drawImage()};_drawer.ImageHtml.src=_drawer.Image;_drawer=null})};CSignatureDrawer.prototype.isValid=function(){return this.Image!=""||this.Text!=""};CSignatureDrawer.prototype.destroy=function(){window.Asc.g_signature_drawer.CanvasParent.removeChild(this.Canvas);
|
|
delete window.Asc.g_signature_drawer};function CSignatureImage(){this.ImageValidBase64="";this.ImageInvalidBase64="";this.ImageValid=null;this.ImageInvalid=null;this.Valid=false;this.Loading=0;this.Remove=function(){this.ImageValidBase64="";this.ImageInvalidBase64="";this.ImageValid=null;this.ImageInvalid=null;this.Valid=false;this.Loading=0};this.Register=function(_api,_guid){if(_api.ImageLoader.map_image_index[_guid])return;var _obj={Image:this.Valid?this.ImageValid:this.ImageInvalid,Status:AscFonts.ImageLoadStatus.Complete,
|
|
src:_guid};_api.ImageLoader.map_image_index[_guid]=_obj};this.Unregister=function(_api,_guid){if(_api.ImageLoader.map_image_index[_guid])delete _api.ImageLoader.map_image_index[_guid]}}function CShortcuts(){this.List={};this.CustomCounter=0;this.CustomActions={}}CShortcuts.prototype.Add=function(nType,nCode,isCtrl,isShift,isAlt){this.List[this.private_GetIndex(nCode,isCtrl,isShift,isAlt)]=nType};CShortcuts.prototype.Get=function(nCode,isCtrl,isShift,isAlt){var nType=this.List[this.private_GetIndex(nCode,
|
|
isCtrl,isShift,isAlt)];return undefined!==nType?nType:0};CShortcuts.prototype.private_GetIndex=function(nCode,isCtrl,isShift,isAlt){return nCode<<8|(isCtrl?4:0)|(isShift?2:0)|(isAlt?1:0)};CShortcuts.prototype.CheckType=function(nType){for(var nIndex in this.List)if(this.List[nIndex]===nType)return{KeyCode:nIndex>>>8,CtrlKey:!!(nIndex&4),ShiftKey:!!(nIndex&2),AltKey:!!(nIndex&1)};return null};CShortcuts.prototype.Remove=function(nCode,isCtrl,isShift,isAlt){delete this.List[this.private_GetIndex(nCode,
|
|
isCtrl,isShift,isAlt)]};CShortcuts.prototype.RemoveByType=function(nType){for(var nIndex in this.List)if(this.List[nIndex]===nType)delete this.List[nIndex]};CShortcuts.prototype.GetNewCustomType=function(){return 16711680|this.CustomCounter++};CShortcuts.prototype.IsCustomType=function(nType){return nType>=16711680};CShortcuts.prototype.GetCustomAction=function(nType){return this.CustomActions[nType]};CShortcuts.prototype.AddCustomActionSymbol=function(nCharCode,sFont){var nType=this.GetNewCustomType();
|
|
this.CustomActions[nType]=new CCustomShortcutActionSymbol(nCharCode,sFont);return nType};function CCustomShortcutActionSymbol(nCharCode,sFont){this.CharCode=nCharCode;this.Font=sFont}CCustomShortcutActionSymbol.prototype.Type=AscCommon.c_oAscCustomShortcutType.Symbol;AscCommon.EncryptionMessageType={Encrypt:0,Decrypt:1};function CEncryptionData(){this._init=false;this.arrData=[];this.arrImages=[];this.handleChangesCallback=null;this.isChangesHandled=false;this.cryptoMode=0;this.isChartEditor=false;
|
|
this.isExistDecryptedChanges=false;this.cryptoPrefix=window["AscDesktopEditor"]&&window["AscDesktopEditor"]["GetEncryptedHeader"]?window["AscDesktopEditor"]["GetEncryptedHeader"]():"ENCRYPTED;";this.cryptoPrefixLen=this.cryptoPrefix.length;this.editorId=null;this.nextChangesTimeoutId=-1;this.isPasswordCryptoPresent=false;this.init=function(){this._init=true};this.isInit=function(){return this._init};this.isNeedCrypt=function(){if(window.g_asc_plugins)if(!window.g_asc_plugins.isRunnedEncryption())return false;
|
|
if(!window["AscDesktopEditor"])return false;if(this.isChartEditor)return false;if(2==this.cryptoMode)return true;if(0===window["AscDesktopEditor"]["CryptoMode"])return false;return true};this.isCryptoImages=function(){return this.isNeedCrypt()&&this.isPasswordCryptoPresent};this.addCryproImagesFromDialog=function(callback){var _this=this;window["AscDesktopEditor"]["OpenFilenameDialog"]("images",true,function(files){if(!files)return;if(!Array.isArray(files))files=[files];if(0===files.length)return;
|
|
var _files=[];var _options={isImageCrypt:true,callback:callback,ext:[]};for(var i=0;i<files.length;i++){_files.push(window["AscDesktopEditor"]["GetImageBase64"](files[i],true));_options.ext.push(AscCommon.GetFileExtension(files[i]))}_this.sendChanges(this,_files,AscCommon.EncryptionMessageType.Encrypt,_options)})};this.addCryproImagesFromUrls=function(urls,callback){var _editor=window["Asc"]["editor"]?window["Asc"]["editor"]:window.editor;_editor.sync_StartAction(Asc.c_oAscAsyncActionType.BlockInteraction,
|
|
Asc.c_oAscAsyncAction.LoadImage);var _this=this;window["AscDesktopEditor"]["DownloadFiles"](urls,[],function(files){_editor.sync_EndAction(Asc.c_oAscAsyncActionType.BlockInteraction,Asc.c_oAscAsyncAction.LoadImage);_editor.sync_StartAction(Asc.c_oAscAsyncActionType.BlockInteraction,Asc.c_oAscAsyncAction.UploadImage);var _files=[];var _options={isImageCrypt:true,isUrls:true,callback:callback,ext:[],api:_editor};for(var elem in files){_files.push(window["AscDesktopEditor"]["GetImageBase64"](files[elem],
|
|
true));_options.ext.push(window["AscDesktopEditor"]["GetImageFormat"](files[elem]));window["AscDesktopEditor"]["RemoveFile"](files[elem])}_this.sendChanges(this,_files,AscCommon.EncryptionMessageType.Encrypt,_options)})};this.onDecodeError=function(){var _editor=window["Asc"]["editor"]?window["Asc"]["editor"]:window.editor;_editor.sendEvent("asc_onError",Asc.c_oAscError.ID.DataEncrypted,Asc.c_oAscError.Level.Critical)};this.checkEditorId=function(){if(null==this.editorId){var _editor=window["Asc"]["editor"]?
|
|
window["Asc"]["editor"]:window.editor;this.editorId=_editor.editorId}};this.decryptImage=function(src,img,data){this.sendChanges(this,[data],AscCommon.EncryptionMessageType.Decrypt,{isImageDecrypt:true,src:src,img:img})};this.nextChanges=function(){this.nextChangesTimeoutId=setTimeout(function(){AscCommon.EncryptionWorker.sendChanges(undefined,undefined);this.nextChangesTimeoutId=-1},10)};this.sendChanges=function(sender,data,type,options){if(!this.isNeedCrypt()){if(AscCommon.EncryptionMessageType.Encrypt==
|
|
type)sender._send(data,true);else if(AscCommon.EncryptionMessageType.Decrypt==type){if(this.isExistEncryptedChanges(data["changes"])){this.onDecodeError();return}sender._onSaveChanges(data,true)}return}if(undefined!==type)this.arrData.push({sender:sender,type:type,data:data,options:options});if(this.arrData.length==0)return;if(undefined!==type&&(1!=this.arrData.length||!this.isChangesHandled))return;if(undefined!==type&&-1!=this.nextChangesTimeoutId){clearTimeout(this.nextChangesTimeoutId);this.nextChangesTimeoutId=
|
|
-1}if(AscCommon.EncryptionMessageType.Encrypt==this.arrData[0].type)if(this.arrData[0].options&&this.arrData[0].options.isImageCrypt)window.g_asc_plugins.sendToEncryption({"type":"encryptData","data":this.arrData[0].data});else window.g_asc_plugins.sendToEncryption({"type":"encryptData","data":JSON.parse(this.arrData[0].data["changes"])});else if(AscCommon.EncryptionMessageType.Decrypt==this.arrData[0].type)if(this.arrData[0].options&&this.arrData[0].options.isImageDecrypt)window.g_asc_plugins.sendToEncryption({"type":"decryptData",
|
|
"data":this.arrData[0].data});else window.g_asc_plugins.sendToEncryption({"type":"decryptData","data":this.arrData[0].data["changes"]})};this.receiveChanges=function(obj){var data=obj["data"];var check=obj["check"];if(!check){this.onDecodeError();return}if(this.handleChangesCallback){this.isExistDecryptedChanges=true;this.checkEditorId();if(this.editorId==AscCommon.c_oEditorId.Spreadsheet)for(var i=data.length-1;i>=0;i--)this.handleChangesCallback.changesBase[i]=data[i];else for(var i=data.length-
|
|
1;i>=0;i--)this.handleChangesCallback.changesBase[i].m_pData=data[i];this.isChangesHandled=true;this.handleChangesCallback.callback.call(this.handleChangesCallback.sender);this.handleChangesCallback=null;this.nextChanges();return}var obj=this.arrData[0];this.arrData.splice(0,1);if(AscCommon.EncryptionMessageType.Encrypt==obj.type)if(obj.options&&obj.options.isImageCrypt){for(var i=0;i<data.length;i++)if(this.cryptoPrefix==data[i].substr(0,this.cryptoPrefixLen))data[i]=this.cryptoPrefix+obj.options.ext[i]+
|
|
";"+data[i].substr(this.cryptoPrefixLen);if(!obj.options.isUrls)obj.options.callback(Asc.c_oAscError.ID.No,data);else AscCommon.UploadImageUrls(data,obj.options.api.documentId,obj.options.api.documentUserId,obj.options.api.CoAuthoringApi.get_jwt(),function(urls){obj.options.api.sync_EndAction(Asc.c_oAscAsyncActionType.BlockInteraction,Asc.c_oAscAsyncAction.UploadImage);obj.options.callback(urls)})}else{obj.data["changes"]=JSON.stringify(data);obj.sender._send(obj.data,true)}else if(AscCommon.EncryptionMessageType.Decrypt==
|
|
obj.type)if(obj.options&&obj.options.isImageDecrypt){window["AscDesktopEditor"]["ResaveFile"](obj.options.src,data[0]);obj.options.img["onload_crypto"](obj.options.src)}else{this.isExistDecryptedChanges=true;obj.data["changes"]=data;obj.sender._onSaveChanges(obj.data,true)}this.nextChanges()};this.isExistEncryptedChanges=function(_array){if(0==_array.length)return false;this.checkEditorId();var isChangesMode=_array[0]["change"]?true:false;var _prefix="";var _checkPrefixLen=this.cryptoPrefixLen+1;
|
|
if(isChangesMode){for(var i=_array.length-1;i>=0;i--)if(_array[i]["change"].length>_checkPrefixLen){_prefix=_array[i]["change"].substr(0,_checkPrefixLen);if(-1!=_prefix.indexOf(this.cryptoPrefix)){isCrypted=true;break}}return isCrypted}var isCrypted=false;if(this.editorId==AscCommon.c_oEditorId.Spreadsheet)for(var i=_array.length-1;i>=0;i--){if(_array[i].length>_checkPrefixLen){_prefix=_array[i].substr(0,_checkPrefixLen);if(-1!=_prefix.indexOf(this.cryptoPrefix)){isCrypted=true;break}}}else for(var i=
|
|
_array.length-1;i>=0;i--)if(_array[i].m_pData.length>_checkPrefixLen){_prefix=_array[i].m_pData.substr(0,_checkPrefixLen);if(-1!=_prefix.indexOf(this.cryptoPrefix)){isCrypted=true;break}}return isCrypted};this.handleChanges=function(_array,_sender,_callback){if(0==_array.length||!this.isNeedCrypt()){if(this.isExistEncryptedChanges(_array)){this.onDecodeError();return}this.isChangesHandled=true;_callback.call(_sender);return}this.handleChangesCallback={changesBase:_array,changes:[],sender:_sender,
|
|
callback:_callback};this.checkEditorId();if(this.editorId==AscCommon.c_oEditorId.Spreadsheet)for(var i=_array.length-1;i>=0;i--)this.handleChangesCallback.changes[i]=_array[i];else for(var i=_array.length-1;i>=0;i--)this.handleChangesCallback.changes[i]=_array[i].m_pData;window.g_asc_plugins.sendToEncryption({"type":"decryptData","data":this.handleChangesCallback.changes})};this.asc_setAdvancedOptions=function(api,idOption,option){if(window.isNativeOpenPassword){window["AscDesktopEditor"]["NativeViewerOpen"](option.asc_getPassword());
|
|
return}if(window.isCloudCryptoDownloadAs)return false;if(!this.isNeedCrypt())return false;window.checkPasswordFromPlugin=true;if(window["Asc"].c_oAscAdvancedOptionsID.TXT===idOption){var _param="<m_nCsvTxtEncoding>"+option.asc_getCodePage()+"</m_nCsvTxtEncoding>";window["AscDesktopEditor"]["SetAdvancedOptions"](_param)}else if(window["Asc"].c_oAscAdvancedOptionsID.CSV===idOption){var delimiter=option.asc_getDelimiter();var delimiterChar=option.asc_getDelimiterChar();var _param="";_param+="<m_nCsvTxtEncoding>"+
|
|
option.asc_getCodePage()+"</m_nCsvTxtEncoding>";if(null!=delimiter)_param+="<m_nCsvDelimiter>"+delimiter+"</m_nCsvDelimiter>";if(null!=delimiterChar)_param+="<m_nCsvDelimiterChar>"+delimiterChar+"</m_nCsvDelimiterChar>";window["AscDesktopEditor"]["SetAdvancedOptions"](_param)}else if(window["Asc"].c_oAscAdvancedOptionsID.DRM===idOption){var _param="<m_sPassword>"+AscCommon.CopyPasteCorrectString(option.asc_getPassword())+"</m_sPassword>";api.currentPassword=option.asc_getPassword();window["AscDesktopEditor"]["SetAdvancedOptions"](_param)}return true}}
|
|
AscCommon.EncryptionWorker=new CEncryptionData;function CMouseSmoothWheelCorrector(t,scrollFunction){this._deltaX=0;this._deltaY=0;this._isBreakX=false;this._isBreakY=false;this._timeoutCorrector=-1;this._api=t;this._scrollFunction=scrollFunction;this._normalDelta=120;this._isNormalDeltaActive=false;this.setNormalDeltaActive=function(value){this._isNormalDeltaActive=true;this._normalDelta=value};this.isBreakX=function(){return this._isBreakX};this.isBreakY=function(){return this._isBreakY};this.get_DeltaX=
|
|
function(wheelDeltaX){this._isBreakX=false;if(!AscCommon.AscBrowser.isMacOs)return wheelDeltaX;this._deltaX+=wheelDeltaX;if(Math.abs(this._deltaX)>=this._normalDelta)return this._isNormalDeltaActive?this._deltaX>0?this._normalDelta:-this._normalDelta:this._deltaX;this._isBreakX=true;return 0};this.get_DeltaY=function(wheelDeltaY){this._isBreakY=false;if(!AscCommon.AscBrowser.isMacOs)return wheelDeltaY;this._deltaY+=wheelDeltaY;if(Math.abs(this._deltaY)>=this._normalDelta)return this._isNormalDeltaActive?
|
|
this._deltaY>0?this._normalDelta:-this._normalDelta:this._deltaY;this._isBreakY=true;return 0};this.checkBreak=function(){if(-1!=this._timeoutCorrector){clearTimeout(this._timeoutCorrector);this._timeoutCorrector=-1}if((this._isBreakX||this._isBreakY)&&this._scrollFunction){var obj={t:this,x:this._isBreakX?this._deltaX:0,y:this._isBreakY?this._deltaY:0};this._timeoutCorrector=setTimeout(function(){var t=obj.t;t._scrollFunction.call(t._api,obj.x,obj.y);t._timeoutCorrector=-1;t._deltaX=0;t._deltaY=
|
|
0},100)}if(!this._isBreakX)this._deltaX=0;if(!this._isBreakY)this._deltaY=0;this._isBreakX=false;this._isBreakY=false}}AscCommon.CMouseSmoothWheelCorrector=CMouseSmoothWheelCorrector;function CTranslateManager(){this.mapTranslate={}}CTranslateManager.prototype.init=function(map){this.mapTranslate=map||{}};CTranslateManager.prototype.getValue=function(key){return this.mapTranslate.hasOwnProperty(key)?this.mapTranslate[key]:key};function CPolygonPoint2(X,Y){this.X=X;this.Y=Y}function CPolygonVectors(){this.Page=
|
|
-1;this.VX=[];this.VY=[]}function CPolygonPath(precision){this.Page=-1;this.Direction=1;this.precision=precision;this.Points=[]}CPolygonPath.prototype.PushPoint=function(x,y){this.Points.push(new CPolygonPoint2(x/this.precision,y/this.precision))};CPolygonPath.prototype.CorrectExtremePoints=function(){var Lng=this.Points.length;this.Points[0].X=this.Points[Lng-1].X;this.Points[Lng-1].Y=this.Points[0].Y};function CPolygon(){this.Vectors=[];this.precision=1E3}CPolygon.prototype.fill=function(arrBounds){this.Vectors.length=
|
|
0;if(arrBounds.length<=0)return;var nStartLineIndex=0,nStartIndex=0,CountLines=arrBounds.length,CountBounds;while(nStartLineIndex<arrBounds.length){CountBounds=arrBounds[nStartLineIndex].length;while(nStartIndex<CountBounds)if(arrBounds[nStartLineIndex][nStartIndex].W<.001)nStartIndex++;else break;if(nStartIndex<CountBounds)break;nStartLineIndex++;nStartIndex=0}if(nStartLineIndex>=arrBounds.length)return;var CurrentPage=arrBounds[nStartLineIndex][nStartIndex].Page,CurrentVectors=new CPolygonVectors,
|
|
VectorsX=CurrentVectors.VX,VectorsY=CurrentVectors.VY;CurrentVectors.Page=CurrentPage;this.Vectors.push(CurrentVectors);for(var LineIndex=nStartLineIndex;LineIndex<CountLines;nStartIndex=0,LineIndex++){if(arrBounds[LineIndex][nStartIndex].Page!==CurrentPage){CurrentPage=arrBounds[LineIndex][nStartIndex].Page;CurrentVectors=new CPolygonVectors;VectorsX=CurrentVectors.VX;VectorsY=CurrentVectors.VY;CurrentVectors.Page=CurrentPage;this.Vectors.push(CurrentVectors)}for(var Index=nStartIndex;Index<arrBounds[LineIndex].length;Index++){var oBound=
|
|
arrBounds[LineIndex][Index];if(oBound.W<.001)continue;var x1=Math.round(oBound.X*this.precision),x2=Math.round((oBound.X+oBound.W)*this.precision),y1=Math.round(oBound.Y*this.precision),y2=Math.round((oBound.Y+oBound.H)*this.precision);if(VectorsX[y1]==undefined)VectorsX[y1]={};this.IntersectionX(VectorsX,x2,x1,y1);if(VectorsY[x1]==undefined)VectorsY[x1]={};this.IntersectionY(VectorsY,y1,y2,x1);if(VectorsX[y2]==undefined)VectorsX[y2]={};this.IntersectionX(VectorsX,x1,x2,y2);if(VectorsY[x2]==undefined)VectorsY[x2]=
|
|
{};this.IntersectionY(VectorsY,y2,y1,x2)}}};CPolygon.prototype.IntersectionX=function(VectorsX,BeginX,EndX,Y){var CurrentVector={};CurrentVector[BeginX]=EndX;var VX=VectorsX[Y];if(BeginX>EndX)while(true==this.IntersectVectorX(CurrentVector,VX));else while(true==this.IntersectVectorX(VX,CurrentVector));for(var X in CurrentVector){var VBeginX=parseInt(X);var VEndX=CurrentVector[VBeginX];if(VBeginX!==VEndX||VX[VBeginX]===undefined)VX[VBeginX]=VEndX}};CPolygon.prototype.IntersectVectorX=function(VectorOpp,
|
|
VectorClW){for(var X in VectorOpp){var VBeginX=parseInt(X);var VEndX=VectorOpp[VBeginX];if(VEndX==VBeginX)continue;for(var ClwX in VectorClW){var ClwBeginX=parseInt(ClwX);var ClwEndX=VectorClW[ClwBeginX];var bIntersection=false;if(ClwBeginX==ClwEndX)continue;if(ClwBeginX<=VEndX&&VBeginX<=ClwEndX){VectorOpp[VBeginX]=VBeginX;VectorClW[ClwBeginX]=VEndX;VectorClW[VBeginX]=ClwEndX;bIntersection=true}else if(VEndX<=ClwBeginX&&ClwEndX<=VBeginX){VectorClW[ClwBeginX]=ClwBeginX;VectorOpp[VBeginX]=ClwEndX;VectorOpp[ClwBeginX]=
|
|
VEndX;bIntersection=true}else if(ClwBeginX<VEndX&&VEndX<ClwEndX){VectorClW[ClwBeginX]=VEndX;VectorOpp[VBeginX]=ClwEndX;bIntersection=true}else if(ClwBeginX<VBeginX&&VBeginX<ClwEndX){VectorOpp[ClwBeginX]=VEndX;VectorClW[VBeginX]=ClwEndX;delete VectorOpp[VBeginX];delete VectorClW[ClwBeginX];bIntersection=true}if(bIntersection==true)return true}}return false};CPolygon.prototype.IntersectionY=function(VectorsY,BeginY,EndY,X){var bIntersect=false;for(var y in VectorsY[X]){var CurBeginY=parseInt(y);var CurEndY=
|
|
VectorsY[X][CurBeginY];var minY,maxY;if(CurBeginY<CurEndY){minY=CurBeginY;maxY=CurEndY}else{minY=CurEndY;maxY=CurBeginY}var bInterSection=!(maxY<=BeginY&&maxY<=EndY||minY>=BeginY&&minY>=EndY),bDirection=(CurBeginY-CurEndY)*(BeginY-EndY)<0;if(bInterSection&&bDirection){VectorsY[X][CurBeginY]=EndY;VectorsY[X][BeginY]=CurEndY;bIntersect=true}}if(bIntersect==false)VectorsY[X][BeginY]=EndY};CPolygon.prototype.GetPaths=function(shift){var Paths=[];shift*=this.precision;for(var PageIndex=0;PageIndex<this.Vectors.length;PageIndex++){var y,
|
|
x1,x2,x,y1,y2;var VectorsX=this.Vectors[PageIndex].VX,VectorsY=this.Vectors[PageIndex].VY,Page=this.Vectors[PageIndex].Page;for(var LineIndex in VectorsX)for(var Index in VectorsX[LineIndex]){var Polygon=new CPolygonPath(this.precision);Polygon.Page=Page;y=parseInt(LineIndex);x1=parseInt(Index);x2=VectorsX[y][x1];VectorsX[y][x1]=-1;var Direction=x1>x2?1:-1;var minY=y;var SignRightLeft,SignDownUp;var X,Y;if(x2!==-1){SignRightLeft=x1>x2?1:-1;Y=y-SignRightLeft*shift;Polygon.PushPoint(x1,Y);while(true){x=
|
|
x2;y1=y;y2=VectorsY[x][y1];if(y2==-1)break;else if(y2==undefined)return[];VectorsY[x][y1]=-1;SignDownUp=y1>y2?1:-1;X=x+SignDownUp*shift;Polygon.PushPoint(X,Y);y=y2;x1=x;x2=VectorsX[y][x1];if(x2==-1)break;else if(x2==undefined)return[];VectorsX[y][x1]=-1;SignRightLeft=x1>x2?1:-1;Y=y-SignRightLeft*shift;Polygon.PushPoint(X,Y);if(y<minY){minY=y;Direction=x1>x2?1:-1}}Polygon.PushPoint(X,Y);Polygon.CorrectExtremePoints();Polygon.Direction=Direction;Paths.push(Polygon)}}}return Paths};function CMathTrack(){this.MathRect=
|
|
{IsActive:false,Bounds:[],ContentSelection:null};this.MathPolygons=[];this.MathSelectPolygons=[]}CMathTrack.prototype.Update=function(IsActive,IsContentActive,oMath,PixelError){this.MathRect.IsActive=IsActive;if(true===IsActive&&null!==oMath){var selectBounds=true===IsContentActive?oMath.Get_ContentSelection():null;if(selectBounds!=null){var SelectPolygon=new CPolygon;SelectPolygon.fill(selectBounds);this.MathSelectPolygons=SelectPolygon.GetPaths(0)}else this.MathSelectPolygons.length=0;var arrBounds=
|
|
oMath.Get_Bounds();if(arrBounds.length<=0)return;var MPolygon=new CPolygon;MPolygon.fill(arrBounds);this.MathPolygons=MPolygon.GetPaths(PixelError)}};CMathTrack.prototype.Draw=function(overlay,oPath,shiftX,shiftY,color,dKoefX,dKoefY,left,top,transform){var ctx=overlay.m_oContext;var rPR=AscCommon.AscBrowser.retinaPixelRatio;ctx.strokeStyle=color;var lineW=Math.round(rPR);ctx.lineWidth=lineW;ctx.beginPath();if(shiftX>.1||shiftY>.1){shiftX=Math.round(shiftX*rPR);shiftY=Math.round(shiftY*rPR)}var isRoundDraw=
|
|
transform&&!AscCommon.global_MatrixTransformer.IsIdentity2(transform)?false:true;var Points=oPath.Points;var nCount=Points.length;var PrevX=Points[nCount-2].X,PrevY=Points[nCount-2].Y;var x,y;var eps=1E-4;for(var nIndex=0;nIndex<nCount;nIndex++){x=transform?transform.TransformPointX(Points[nIndex].X,Points[nIndex].Y):Points[nIndex].X;y=transform?transform.TransformPointY(Points[nIndex].X,Points[nIndex].Y):Points[nIndex].Y;x=(left+dKoefX*x)*rPR;y=(top+dKoefY*y)*rPR;if(shiftX>.1||shiftY>.1){if(PrevX>
|
|
Points[nIndex].X+eps){x-=shiftX;y-=shiftY}else if(PrevX<Points[nIndex].X-eps){x+=shiftX;y+=shiftY}if(PrevY>Points[nIndex].Y+eps){x+=shiftX;y-=shiftY}else if(PrevY<Points[nIndex].Y-eps){x-=shiftX;y+=shiftY}}PrevX=Points[nIndex].X;PrevY=Points[nIndex].Y;if(isRoundDraw){x=(x>>0)+lineW/2;y=(y>>0)+lineW/2}overlay.CheckPoint(x,y);if(0==nIndex)overlay.m_oContext.moveTo(x,y);else overlay.m_oContext.lineTo(x,y)}overlay.m_oContext.closePath();ctx.closePath();ctx.stroke();ctx.beginPath()};CMathTrack.prototype.DrawSelectPolygon=
|
|
function(overlay,oPath,dKoefX,dKoefY,left,top,m){var ctx=overlay.m_oContext;ctx.fillStyle="#375082";ctx.beginPath();var Points=oPath.Points;var nPointIndex;var _x,_y,x,y,p;var rPR=AscCommon.AscBrowser.retinaPixelRatio;for(nPointIndex=0;nPointIndex<Points.length-1;nPointIndex++){p=Points[nPointIndex];if(!m){_x=(left+dKoefX*p.X)*rPR;_y=(top+dKoefY*p.Y)*rPR}else{x=p.X;y=p.Y;_x=(left+dKoefX*m.TransformPointX(x,y))*rPR;_y=(top+dKoefY*m.TransformPointY(x,y))*rPR}overlay.CheckPoint(_x,_y);if(0==nPointIndex)ctx.moveTo((_x>>
|
|
0)+.5*Math.round(rPR),(_y>>0)+.5*Math.round(rPR));else ctx.lineTo((_x>>0)+.5*Math.round(rPR),(_y>>0)+.5*Math.round(rPR))}ctx.globalAlpha=.2;ctx.fill();ctx.globalAlpha=1};CMathTrack.prototype.IsActive=function(){return this.MathRect.IsActive};CMathTrack.prototype.GetPolygonsCount=function(){return this.MathPolygons.length};CMathTrack.prototype.GetPolygon=function(nIndex){return this.MathPolygons[nIndex]};CMathTrack.prototype.GetSelectPathsCount=function(){return this.MathSelectPolygons.length};CMathTrack.prototype.GetSelectPath=
|
|
function(nIndex){return this.MathSelectPolygons[nIndex]};if(!Array.prototype.findIndex)Object.defineProperty(Array.prototype,"findIndex",{value:function(predicate){if(this==null)throw new TypeError("Array.prototype.findIndex called on null or undefined");if(typeof predicate!=="function")throw new TypeError("predicate must be a function");var list=Object(this);var length=list.length>>>0;var thisArg=arguments[1];var value;for(var i=0;i<length;i++){value=list[i];if(predicate.call(thisArg,value,i,list))return i}return-1}});
|
|
if(!Array.prototype.fill)Object.defineProperty(Array.prototype,"fill",{value:function(value){if(this==null)throw new TypeError("this is null or not defined");var O=Object(this);var len=O.length>>>0;var start=arguments[1];var relativeStart=start>>0;var k=relativeStart<0?Math.max(len+relativeStart,0):Math.min(relativeStart,len);var end=arguments[2];var relativeEnd=end===undefined?len:end>>0;var final=relativeEnd<0?Math.max(len+relativeEnd,0):Math.min(relativeEnd,len);while(k<final){O[k]=value;k++}return O}});
|
|
if(typeof Int8Array!=="undefined"&&!Int8Array.prototype.fill)Int8Array.prototype.fill=Array.prototype.fill;if(typeof Uint8Array!=="undefined"&&!Uint8Array.prototype.fill)Uint8Array.prototype.fill=Array.prototype.fill;if(typeof Uint8ClampedArray!=="undefined"&&!Uint8ClampedArray.prototype.fill)Uint8ClampedArray.prototype.fill=Array.prototype.fill;if(typeof Int16Array!=="undefined"&&!Int16Array.prototype.fill)Int16Array.prototype.fill=Array.prototype.fill;if(typeof Uint16Array!=="undefined"&&!Uint16Array.prototype.fill)Uint16Array.prototype.fill=
|
|
Array.prototype.fill;if(typeof Int32Array!=="undefined"&&!Int32Array.prototype.fill)Int32Array.prototype.fill=Array.prototype.fill;if(typeof Uint32Array!=="undefined"&&!Uint32Array.prototype.fill)Uint32Array.prototype.fill=Array.prototype.fill;if(typeof Float32Array!=="undefined"&&!Float32Array.prototype.fill)Float32Array.prototype.fill=Array.prototype.fill;if(typeof Float64Array!=="undefined"&&!Float64Array.prototype.fill)Float64Array.prototype.fill=Array.prototype.fill;if(typeof Uint8Array!=="undefined"&&
|
|
!Uint8Array.prototype.slice)Uint8Array.prototype.slice=Array.prototype.slice;function parseText(text,options,bTrimSpaces){var delimiterChar;if(options.asc_getDelimiterChar())delimiterChar=options.asc_getDelimiterChar();else switch(options.asc_getDelimiter()){case AscCommon.c_oAscCsvDelimiter.None:delimiterChar=undefined;break;case AscCommon.c_oAscCsvDelimiter.Tab:delimiterChar="\t";break;case AscCommon.c_oAscCsvDelimiter.Semicolon:delimiterChar=";";break;case AscCommon.c_oAscCsvDelimiter.Colon:delimiterChar=
|
|
":";break;case AscCommon.c_oAscCsvDelimiter.Comma:delimiterChar=",";break;case AscCommon.c_oAscCsvDelimiter.Space:delimiterChar=" ";break}var matrix=[];var rows=text.split(/\r?\n/);for(var i=0;i<rows.length;++i){var row=rows[i];if(" "===delimiterChar&&bTrimSpaces){var addSpace=false;if(row[0]===delimiterChar)addSpace=true;row=addSpace?delimiterChar+row.trim():row.trim()}matrix.push(row.split(delimiterChar))}return matrix}function getTimeISO8601(dateStr){if(dateStr)if(dateStr.endsWith("Z"))return Date.parse(dateStr);
|
|
else return Date.parse(dateStr+"Z");return NaN}function valueToMmType(value){var oVal=parseFloat(value);var oType;if(!isNaN(oVal)){if(-1!==value.indexOf("%")){oType="%";oVal/=100}else if(-1!==value.indexOf("px")){oType="px";oVal*=AscCommon.g_dKoef_pix_to_mm}else if(-1!==value.indexOf("in")){oType="in";oVal*=AscCommonWord.g_dKoef_in_to_mm}else if(-1!==value.indexOf("cm")){oType="cm";oVal*=10}else if(-1!==value.indexOf("mm"))oType="mm";else if(-1!==value.indexOf("pt")){oType="pt";oVal*=AscCommonWord.g_dKoef_pt_to_mm}else if(-1!==
|
|
value.indexOf("pc")){oType="pc";oVal*=AscCommonWord.g_dKoef_pc_to_mm}else oType="none";return{val:oVal,type:oType}}return null}function valueToMm(value){var obj=valueToMmType(value);if(obj&&"%"!==obj.type&&"none"!==obj.type)return obj.val;return null}function arrayMove(array,from,to){array.splice(to,0,array.splice(from,1)[0])}function getRangeArray(start,stop){var res=new Array(stop-start);for(var i=start;i<stop;++i)res[i-start]=i;return res}var g_oBackoffDefaults={retries:2,factor:2,minTimeout:100,
|
|
maxTimeout:2E3,randomize:true};function Backoff(opts){this.attempts=0;this.opts=opts}Backoff.prototype.attempt=function(fError,fRetry){var timeout=this.nextTimeout();if(timeout>0)setTimeout(function(){fRetry()},timeout);else fError()};Backoff.prototype.nextTimeout=function(){var timeout=-1;if(this.attempts<this.opts.retries){timeout=this.createTimeout(this.attempts,this.opts);this.attempts++}return timeout};Backoff.prototype.createTimeout=function(attempt,opts){var random=opts.randomize?Math.random()+
|
|
1:1;var timeout=Math.round(random*opts.minTimeout*Math.pow(opts.factor,attempt));timeout=Math.min(timeout,opts.maxTimeout);return timeout};function backoffOnError(obj,onError,onRetry){if(!onRetry)return onError;var backoff=new Backoff(g_oBackoffDefaults);return function(){var timeout=backoff.nextTimeout();if(timeout>0)setTimeout(function(){onRetry.call(obj,obj)},timeout);else if(onError)onError.apply(obj,arguments)}}function backoffOnErrorImg(img,onRetry){if(!onRetry)onRetry=function(img){img.setAttribute("src",
|
|
img.getAttribute("src"))};img.onerror=backoffOnError(img,img.onerror,onRetry)}function isEmptyObject(obj){for(var name in obj)return false;return true}function CStringNode(element,par){this.element=element;this.partner=null;this.par=par;if(typeof element==="string"){this.children=[];for(var oIterator=element.getUnicodeIterator();oIterator.check();oIterator.next()){var nCharCode=oIterator.value();this.children.push(new CStringNode(nCharCode,this))}}}CStringNode.prototype.children=[];CStringNode.prototype.equals=
|
|
function(oNode){return this.element===oNode.element};CStringNode.prototype.forEachDescendant=function(callback,T){this.children.forEach(function(node){node.forEach(callback,T)})};CStringNode.prototype.forEach=function(callback,T){callback.call(T,this);this.children.forEach(function(node){node.forEach(callback,T)})};function CDiffMatching(){}CDiffMatching.prototype.get=function(oNode){return oNode.partner};CDiffMatching.prototype.put=function(oNode1,oNode2){oNode1.partner=oNode2;oNode2.partner=oNode1};
|
|
function CStringChange(oOperation){this.pos=-1;this.deleteCount=0;this.insert=[];var oAnchor=oOperation.anchor;this.pos=oAnchor.index;if(Array.isArray(oOperation.remove))this.deleteCount=oOperation.remove.length;var nIndex,oNode;if(Array.isArray(oOperation.insert))for(nIndex=0;nIndex<oOperation.insert.length;++nIndex){oNode=oOperation.insert[nIndex];this.insert.push(oNode.element)}}CStringChange.prototype.getPos=function(){return this.pos};CStringChange.prototype.getDeleteCount=function(){return this.deleteCount};
|
|
CStringChange.prototype.getInsertSymbols=function(){return this.insert};function getTextDelta(sBase,sReplace){var aDelta=[];var oBaseNode=new CStringNode(sBase,null);var oReplaceNode=new CStringNode(sReplace,null);var oMatching=new CDiffMatching;oMatching.put(oBaseNode,oReplaceNode);var oDiff=new AscCommon.Diff(oBaseNode,oReplaceNode);oDiff.equals=function(a,b){return a.equals(b)};oDiff.matchTrees(oMatching);var oDeltaCollector=new AscCommon.DeltaCollector(oMatching,oBaseNode,oReplaceNode);oDeltaCollector.forEachChange(function(oOperation){aDelta.push(new CStringChange(oOperation))});
|
|
return aDelta}function _getIntegerByDivide(val){var test=val;for(var i=0;i<10;i++){test=(val-i)*AscCommon.AscBrowser.retinaPixelRatio;if(test>0&&Math.abs(test-(test>>0))<.001)return{start:val-i,end:test>>0}}return{start:val,end:AscCommon.AscBrowser.convertToRetinaValue(val,true)}}function setCanvasSize(element,width,height,is_correction){if(element.width===width&&element.height===height)return;if(true!==is_correction){element.width=width;element.height=height;return}var data=element.getContext("2d").getImageData(0,
|
|
0,element.width,element.height);element.width=width;element.height=height;element.getContext("2d").putImageData(data,0,0)}function calculateCanvasSize(element,is_correction,is_wait_correction){if(true!==is_correction&&undefined!==element.correctionTimeout){clearTimeout(element.correctionTimeout);element.correctionTimeout=undefined}var scale=AscCommon.AscBrowser.retinaPixelRatio;if(Math.abs(scale-(scale>>0))<.001){setCanvasSize(element,scale*parseInt(element.style.width),scale*parseInt(element.style.height),
|
|
is_correction);return}var rect=element.getBoundingClientRect();var isCorrectRect=rect.width===0&&rect.height===0?false:true;if(is_wait_correction||!isCorrectRect){var isNoVisibleElement=false;if(element.style.display==="none")isNoVisibleElement=true;else if(element.parentNode&&element.parentNode.style.display==="none")isNoVisibleElement=true;if(!isNoVisibleElement)element.correctionTimeout=setTimeout(function(){calculateCanvasSize(element,true)},100);if(!isCorrectRect){var style_width=parseInt(element.style.width);
|
|
var style_height=parseInt(element.style.height);rect={x:0,left:0,y:0,top:0,width:style_width,right:style_width,height:style_height,bottom:style_height}}}var new_width=0;var new_height=0;if(true||!AscCommon.AscBrowser.isMozilla){new_width=Math.round(scale*rect.right)-Math.round(scale*rect.left);new_height=Math.round(scale*rect.bottom)-Math.round(scale*rect.top)}else{var sizeW=_getIntegerByDivide(rect.width);var sizeH=_getIntegerByDivide(rect.height);if(sizeW.start!==rect.width)element.style.width=
|
|
sizeW.start+"px";if(sizeH.start!==rect.height)element.style.height=sizeH.start+"px";new_width=sizeW.end;new_height=sizeH.end}setCanvasSize(element,new_width,new_height,is_correction)}function CRC32(){this.m_aTable=[];this.private_InitTable()}CRC32.prototype.private_InitTable=function(){var CRC_POLY=3988292384;var nChar;for(var nIndex=0;nIndex<256;nIndex++){nChar=nIndex;for(var nCounter=0;nCounter<8;nCounter++)nChar=nChar&1?nChar>>>1^CRC_POLY:nChar>>>1;this.m_aTable[nIndex]=nChar}};CRC32.prototype.Calculate_ByString=
|
|
function(sStr,nSize){var CRC_MASK=3523407757;var nCRC=0^-1;for(var nIndex=0;nIndex<nSize;nIndex++){nCRC=this.m_aTable[(nCRC^sStr.charCodeAt(nIndex))&255]^nCRC>>>8;nCRC^=CRC_MASK}return(nCRC^-1)>>>0};CRC32.prototype.Calculate_ByByteArray=function(aArray,nSize){var CRC_MASK=3523407757;var nCRC=0^-1;for(var nIndex=0;nIndex<nSize;nIndex++){nCRC=nCRC>>>8^this.m_aTable[(nCRC^aArray[nIndex])&255];nCRC^=CRC_MASK}return(nCRC^-1)>>>0};var g_oCRC32=new CRC32;window["AscCommon"]=window["AscCommon"]||{};window["AscCommon"].getSockJs=
|
|
getSockJs;window["AscCommon"].getJSZipUtils=getJSZipUtils;window["AscCommon"].getJSZip=getJSZip;window["AscCommon"].getBaseUrl=getBaseUrl;window["AscCommon"].getEncodingParams=getEncodingParams;window["AscCommon"].getEncodingByBOM=getEncodingByBOM;window["AscCommon"].saveWithParts=saveWithParts;window["AscCommon"].loadFileContent=loadFileContent;window["AscCommon"].getImageFromChanges=getImageFromChanges;window["AscCommon"].openFileCommand=openFileCommand;window["AscCommon"].sendCommand=sendCommand;
|
|
window["AscCommon"].sendSaveFile=sendSaveFile;window["AscCommon"].mapAscServerErrorToAscError=mapAscServerErrorToAscError;window["AscCommon"].joinUrls=joinUrls;window["AscCommon"].getFullImageSrc2=getFullImageSrc2;window["AscCommon"].fSortAscending=fSortAscending;window["AscCommon"].fSortDescending=fSortDescending;window["AscCommon"].isLeadingSurrogateChar=isLeadingSurrogateChar;window["AscCommon"].decodeSurrogateChar=decodeSurrogateChar;window["AscCommon"].encodeSurrogateChar=encodeSurrogateChar;
|
|
window["AscCommon"].convertUnicodeToUTF16=convertUnicodeToUTF16;window["AscCommon"].convertUTF16toUnicode=convertUTF16toUnicode;window["AscCommon"].build_local_rx=build_local_rx;window["AscCommon"].GetFileName=GetFileName;window["AscCommon"].GetFileExtension=GetFileExtension;window["AscCommon"].changeFileExtention=changeFileExtention;window["AscCommon"].getExtentionByFormat=getExtentionByFormat;window["AscCommon"].InitOnMessage=InitOnMessage;window["AscCommon"].ShowImageFileDialog=ShowImageFileDialog;
|
|
window["AscCommon"].ShowDocumentFileDialog=ShowDocumentFileDialog;window["AscCommon"].ShowTextFileDialog=ShowTextFileDialog;window["AscCommon"].InitDragAndDrop=InitDragAndDrop;window["AscCommon"].UploadImageFiles=UploadImageFiles;window["AscCommon"].UploadImageUrls=UploadImageUrls;window["AscCommon"].CanDropFiles=CanDropFiles;window["AscCommon"].getUrlType=getUrlType;window["AscCommon"].prepareUrl=prepareUrl;window["AscCommon"].getUserColorById=getUserColorById;window["AscCommon"].isNullOrEmptyString=
|
|
isNullOrEmptyString;window["AscCommon"].unleakString=unleakString;window["AscCommon"].readValAttr=readValAttr;window["AscCommon"].getNumFromXml=getNumFromXml;window["AscCommon"].getColorFromXml=getColorFromXml;window["AscCommon"].getBoolFromXml=getBoolFromXml;window["AscCommon"].initStreamFromResponse=initStreamFromResponse;window["AscCommon"].checkStreamSignature=checkStreamSignature;window["AscCommon"].DocumentUrls=DocumentUrls;window["AscCommon"].OpenFileResult=OpenFileResult;window["AscCommon"].CLock=
|
|
CLock;window["AscCommon"].CContentChanges=CContentChanges;window["AscCommon"].CContentChangesElement=CContentChangesElement;window["AscCommon"].CorrectMMToTwips=CorrectMMToTwips;window["AscCommon"].TwipsToMM=TwipsToMM;window["AscCommon"].MMToTwips=MMToTwips;window["AscCommon"].RomanToInt=RomanToInt;window["AscCommon"].LatinNumberingToInt=LatinNumberingToInt;window["AscCommon"].IntToNumberFormat=IntToNumberFormat;window["AscCommon"].IsSpace=IsSpace;window["AscCommon"].CorrectFontSize=CorrectFontSize;
|
|
window["AscCommon"].loadSdk=loadSdk;window["AscCommon"].loadScript=loadScript;window["AscCommon"].loadChartStyles=loadChartStyles;window["AscCommon"].getAltGr=getAltGr;window["AscCommon"].getColorSchemeByName=getColorSchemeByName;window["AscCommon"].getColorSchemeByIdx=getColorSchemeByIdx;window["AscCommon"].getAscColorScheme=getAscColorScheme;window["AscCommon"].checkAddColorScheme=checkAddColorScheme;window["AscCommon"].getIndexColorSchemeInArray=getIndexColorSchemeInArray;window["AscCommon"].isEastAsianScript=
|
|
isEastAsianScript;window["AscCommon"].CMathTrack=CMathTrack;window["AscCommon"].CPolygon=CPolygon;window["AscCommon"].JSZipWrapper=JSZipWrapper;window["AscCommon"].g_oDocumentUrls=g_oDocumentUrls;window["AscCommon"].FormulaTablePartInfo=FormulaTablePartInfo;window["AscCommon"].cBoolLocal=cBoolLocal;window["AscCommon"].cErrorOrigin=cErrorOrigin;window["AscCommon"].cErrorLocal=cErrorLocal;window["AscCommon"].FormulaSeparators=FormulaSeparators;window["AscCommon"].rx_space_g=rx_space_g;window["AscCommon"].rx_space=
|
|
rx_space;window["AscCommon"].rx_defName=rx_defName;window["AscCommon"].kCurFormatPainterWord=kCurFormatPainterWord;window["AscCommon"].parserHelp=parserHelp;window["AscCommon"].g_oIdCounter=g_oIdCounter;window["AscCommon"].g_oHtmlCursor=g_oHtmlCursor;window["AscCommon"].g_oBackoffDefaults=g_oBackoffDefaults;window["AscCommon"].Backoff=Backoff;window["AscCommon"].backoffOnErrorImg=backoffOnErrorImg;window["AscCommon"].isEmptyObject=isEmptyObject;window["AscCommon"].CSignatureDrawer=window["AscCommon"]["CSignatureDrawer"]=
|
|
CSignatureDrawer;var prot=CSignatureDrawer.prototype;prot["getImages"]=prot.getImages;prot["setText"]=prot.setText;prot["selectImage"]=prot.selectImage;prot["isValid"]=prot.isValid;prot["destroy"]=prot.destroy;window["AscCommon"].translateManager=new CTranslateManager;window["AscCommon"].parseText=parseText;window["AscCommon"].getTimeISO8601=getTimeISO8601;window["AscCommon"].valueToMm=valueToMm;window["AscCommon"].valueToMmType=valueToMmType;window["AscCommon"].arrayMove=arrayMove;window["AscCommon"].getRangeArray=
|
|
getRangeArray;window["AscCommon"].CUnicodeStringEmulator=CUnicodeStringEmulator;window["AscCommon"].calculateCanvasSize=calculateCanvasSize;window["AscCommon"].private_IsAbbreviation=private_IsAbbreviation;window["AscCommon"].getTextDelta=getTextDelta;window["AscCommon"].rx_test_ws_name=rx_test_ws_name;window["AscCommon"].CShortcuts=window["AscCommon"]["CShortcuts"]=CShortcuts;prot=CShortcuts.prototype;prot["Add"]=prot.Add;prot["Get"]=prot.Get;prot["CheckType"]=prot.CheckType;prot["Remove"]=prot.Remove;
|
|
prot["RemoveByType"]=prot.RemoveByType;prot["GetNewCustomType"]=prot.GetNewCustomType;prot["IsCustomType"]=prot.IsCustomType;prot["GetCustomAction"]=prot.GetCustomAction;prot["AddCustomActionSymbol"]=prot.AddCustomActionSymbol;window["AscCommon"].CCustomShortcutActionSymbol=window["AscCommon"]["CCustomShortcutActionSymbol"]=CCustomShortcutActionSymbol;window["AscCommon"].g_oCRC32=g_oCRC32})(window);
|
|
window["asc_initAdvancedOptions"]=function(_code,_file_hash,_docInfo){if(window.isNativeOpenPassword)return window["NativeFileOpen_error"](window.isNativeOpenPassword,_file_hash,_docInfo);var _editor=window["Asc"]["editor"]?window["Asc"]["editor"]:window.editor;if(_code==90||_code==91){if(window["AscDesktopEditor"]&&0!==window["AscDesktopEditor"]["CryptoMode"]&&!_editor.isLoadFullApi){_editor.asc_initAdvancedOptions_params=[];_editor.asc_initAdvancedOptions_params.push(_code);_editor.asc_initAdvancedOptions_params.push(_file_hash);
|
|
_editor.asc_initAdvancedOptions_params.push(_docInfo);return}if(AscCommon.EncryptionWorker.isNeedCrypt()&&!window.checkPasswordFromPlugin){window.checkPasswordFromPlugin=true;window.g_asc_plugins.sendToEncryption({"type":"getPasswordByFile","hash":_file_hash,"docinfo":_docInfo});return}}window.checkPasswordFromPlugin=false;_editor._onNeedParams(undefined,_code==90||_code==91?true:undefined)};
|
|
window["asc_IsNeedBuildCryptedFile"]=function(){if(!window["AscDesktopEditor"]||!window["AscDesktopEditor"]["CryptoMode"])return false;var _api=window["Asc"]["editor"]?window["Asc"]["editor"]:window.editor;var _returnValue=false;var _users=null;if(_api.CoAuthoringApi&&_api.CoAuthoringApi._CoAuthoringApi&&_api.CoAuthoringApi._CoAuthoringApi._participants)_users=_api.CoAuthoringApi._CoAuthoringApi._participants;var _usersCount=0;for(var _user in _users)_usersCount++;var isOne=1>=_usersCount?true:false;
|
|
if(!isOne)_returnValue=false;else if(null!=AscCommon.History.SavedIndex&&-1!=AscCommon.History.SavedIndex)_returnValue=true;else if(_api.editorId==AscCommon.c_oEditorId.Spreadsheet){if(AscCommon.EncryptionWorker.isExistDecryptedChanges)_returnValue=true}else if(0!=AscCommon.CollaborativeEditing.m_aAllChanges.length)_returnValue=true;window["AscDesktopEditor"]["execCommand"]("encrypt:isneedbuild",""+_returnValue);return _returnValue};
|
|
window["UpdateSystemPlugins"]=function(){var _plugins=JSON.parse(window["AscDesktopEditor"]["GetInstallPlugins"]());_plugins[0]["url"]=_plugins[0]["url"].replace(" ","%20");_plugins[1]["url"]=_plugins[1]["url"].replace(" ","%20");for(var k=0;k<2;k++){var _pluginsCur=_plugins[k];var _len=_pluginsCur["pluginsData"].length;for(var i=0;i<_len;i++){_pluginsCur["pluginsData"][i]["baseUrl"]=_pluginsCur["url"]+_pluginsCur["pluginsData"][i]["guid"].substring(4)+"/";if(!window["AscDesktopEditor"]["IsLocalFile"]())_pluginsCur["pluginsData"][i]["baseUrl"]=
|
|
"ascdesktop://plugin_content/"+_pluginsCur["pluginsData"][i]["baseUrl"]}}var _array=[];for(var k=0;k<2;k++){var _pluginsCur=_plugins[k];var _len=_pluginsCur["pluginsData"].length;for(var i=0;i<_len;i++){var _plugin=_pluginsCur["pluginsData"][i];for(var j=0;j<_plugin["variations"].length;j++){var _variation=_plugin["variations"][j];if(_variation["initDataType"]=="desktop"){if(_variation["initData"]=="encryption"){var _mode=_variation["cryptoMode"];if(!_mode)_mode="1";AscCommon.EncryptionWorker.cryptoMode=
|
|
parseInt(_mode);_array.push(_plugin);break}_array.push(_plugin);break}}}}var _arraySystem=[];for(var i=0;i<_array.length;i++){var plugin=new Asc.CPlugin;plugin["deserialize"](_array[i]);_arraySystem.push(plugin)}window.g_asc_plugins.registerSystem("",_arraySystem);window.g_asc_plugins.runAllSystem()};
|
|
window["buildCryptoFile_Start"]=function(){var _editor=window.Asc.editor?window.Asc.editor:window.editor;_editor.sync_StartAction(Asc.c_oAscAsyncActionType.BlockInteraction,Asc.c_oAscAsyncAction.Save);window.g_asc_plugins.sendToEncryption({"type":"generatePassword"})};
|
|
window["buildCryptoFile_End"]=function(url,error,hash,password){var _editor=window.Asc.editor?window.Asc.editor:window.editor;_editor.sync_EndAction(Asc.c_oAscAsyncActionType.BlockInteraction,Asc.c_oAscAsyncAction.Save);if(0!=error){_editor.sendEvent("asc_onError",Asc.c_oAscError.ID.ConvertationSaveError,Asc.c_oAscError.Level.NoCritical);return}_editor._callbackPluginEndAction=function(){this._callbackPluginEndAction=null;_editor.sync_StartAction(Asc.c_oAscAsyncActionType.BlockInteraction,Asc.c_oAscAsyncAction.Save);
|
|
var xhr=new XMLHttpRequest;xhr.open("GET","ascdesktop://fonts/"+url,true);xhr.responseType="arraybuffer";if(xhr.overrideMimeType)xhr.overrideMimeType("text/plain; charset=x-user-defined");else xhr.setRequestHeader("Accept-Charset","x-user-defined");xhr.onload=function(){if(this.status!=200)return;var fileData=new Uint8Array(this.response);var ext=".docx";switch(_editor.editorId){case AscCommon.c_oEditorId.Presentation:ext=".pptx";break;case AscCommon.c_oEditorId.Spreadsheet:ext=".xlsx";break;default:break}AscCommon.sendSaveFile(_editor.documentId,
|
|
_editor.documentUserId,"output"+ext,_editor.asc_getSessionToken(),fileData,function(err){_editor.sync_EndAction(Asc.c_oAscAsyncActionType.BlockInteraction,Asc.c_oAscAsyncAction.Save);_editor.sendEvent("asc_onError",Asc.c_oAscError.ID.ConvertationSaveError,Asc.c_oAscError.Level.Critical);window["AscDesktopEditor"]["buildCryptedEnd"](false)},function(httpRequest){try{var data={"accounts":httpRequest.responseText?JSON.parse(httpRequest.responseText):undefined,"hash":hash,"password":password,"type":"share",
|
|
"docinfo":_editor.currentDocumentInfoNext};_editor.currentDocumentInfoNext=undefined;window["AscDesktopEditor"]["sendSystemMessage"](data);window["AscDesktopEditor"]["CallInAllWindows"]("function(){ if (window.DesktopUpdateFile) { window.DesktopUpdateFile(undefined); } }");_editor.sync_EndAction(Asc.c_oAscAsyncActionType.BlockInteraction,Asc.c_oAscAsyncAction.Save);setTimeout(function(){window["AscDesktopEditor"]["buildCryptedEnd"](true)},1E3)}catch(err){}})};xhr.send(null)};window.g_asc_plugins.sendToEncryption({"type":"setPasswordByFile",
|
|
"hash":hash,"password":password})};
|
|
window["NativeFileOpen_error"]=function(error,_file_hash,_docInfo){var _api=window["Asc"]["editor"]?window["Asc"]["editor"]:window.editor;if("password"==error){window.isNativeOpenPassword=error;if(window["AscDesktopEditor"]&&0!==window["AscDesktopEditor"]["CryptoMode"]&&!_api.isLoadFullApi){_api.asc_initAdvancedOptions_params=[];_api.asc_initAdvancedOptions_params.push(90);_api.asc_initAdvancedOptions_params.push(_file_hash);_api.asc_initAdvancedOptions_params.push(_docInfo);return}if(AscCommon.EncryptionWorker.isNeedCrypt()&&
|
|
!window.checkPasswordFromPlugin){window.checkPasswordFromPlugin=true;window.g_asc_plugins.sendToEncryption({"type":"getPasswordByFile","hash":_file_hash,"docinfo":_docInfo});return}window.checkPasswordFromPlugin=false;_api._onNeedParams(undefined,true)}else if("error"==error){_api.sendEvent("asc_onError",c_oAscError.ID.ConvertationOpenError,c_oAscError.Level.Critical);return}};
|
|
window["CryptoDownloadAsEnd"]=function(){var _editor=window.Asc.editor?window.Asc.editor:window.editor;_editor.sync_EndAction(Asc.c_oAscAsyncActionType.BlockInteraction,Asc.c_oAscAsyncAction.DownloadAs);window.isCloudCryptoDownloadAs=undefined};window["AscDesktopEditor_Save"]=function(){var _editor=window.Asc.editor?window.Asc.editor:window.editor;if(!_editor.asc_Save(false))window["AscDesktopEditor"]["OnSave"]()};"use strict";
|
|
(function(window,undefined){function GetHistoryPointStringDescription(nDescription){var sString="Unknown";switch(nDescription){case AscDFH.historydescription_Cut:sString="Cut";break;case AscDFH.historydescription_PasteButtonIE:sString="PasteButtonIE";break;case AscDFH.historydescription_PasteButtonNotIE:sString="PasteButtonNotIE";break;case AscDFH.historydescription_ChartDrawingObjects:sString="ChartDrawingObjects";break;case AscDFH.historydescription_CommonControllerCheckChartText:sString="CommonControllerCheckChartText";
|
|
break;case AscDFH.historydescription_CommonControllerUnGroup:sString="CommonControllerUnGroup";break;case AscDFH.historydescription_CommonControllerCheckSelected:sString="CommonControllerCheckSelected";break;case AscDFH.historydescription_CommonControllerSetGraphicObject:sString="CommonControllerSetGraphicObject";break;case AscDFH.historydescription_CommonStatesAddNewShape:sString="CommonStatesAddNewShape";break;case AscDFH.historydescription_CommonStatesRotate:sString="CommonStatesRotate";break;
|
|
case AscDFH.historydescription_PasteNative:sString="PasteNative";break;case AscDFH.historydescription_Document_GroupUnGroup:sString="Document_GroupUnGroup";break;case AscDFH.historydescription_Document_SetDefaultLanguage:sString="Document_SetDefaultLanguage";break;case AscDFH.historydescription_Document_ChangeColorScheme:sString="Document_ChangeColorScheme";break;case AscDFH.historydescription_Document_AddChart:sString="Document_AddChart";break;case AscDFH.historydescription_Document_EditChart:sString=
|
|
"Document_EditChart";break;case AscDFH.historydescription_Document_DragText:sString="Document_DragText";break;case AscDFH.historydescription_Document_DocumentContentExtendToPos:sString="Document_DocumentContentExtendToPos";break;case AscDFH.historydescription_Document_AddHeader:sString="Document_AddHeader";break;case AscDFH.historydescription_Document_AddFooter:sString="Document_AddFooter";break;case AscDFH.historydescription_Document_ParagraphExtendToPos:sString="Document_ParagraphExtendToPos";break;
|
|
case AscDFH.historydescription_Document_ParagraphChangeFrame:sString="Document_ParagraphChangeFrame";break;case AscDFH.historydescription_Document_ReplaceAll:sString="Document_ReplaceAll";break;case AscDFH.historydescription_Document_ReplaceSingle:sString="Document_ReplaceSingle";break;case AscDFH.historydescription_Document_TableAddNewRowByTab:sString="Document_TableAddNewRowByTab";break;case AscDFH.historydescription_Document_AddNewShape:sString="Document_AddNewShape";break;case AscDFH.historydescription_Document_EditWrapPolygon:sString=
|
|
"Document_EditWrapPolygon";break;case AscDFH.historydescription_Document_MoveInlineObject:sString="Document_MoveInlineObject";break;case AscDFH.historydescription_Document_CopyAndMoveInlineObject:sString="Document_CopyAndMoveInlineObject";break;case AscDFH.historydescription_Document_RotateInlineDrawing:sString="Document_RotateInlineDrawing";break;case AscDFH.historydescription_Document_RotateFlowDrawingCtrl:sString="Document_RotateFlowDrawingCtrl";break;case AscDFH.historydescription_Document_RotateFlowDrawingNoCtrl:sString=
|
|
"Document_RotateFlowDrawingNoCtrl";break;case AscDFH.historydescription_Document_MoveInGroup:sString="Document_MoveInGroup";break;case AscDFH.historydescription_Document_ChangeWrapContour:sString="Document_ChangeWrapContour";break;case AscDFH.historydescription_Document_ChangeWrapContourAddPoint:sString="Document_ChangeWrapContourAddPoint";break;case AscDFH.historydescription_Document_GrObjectsBringToFront:sString="Document_GrObjectsBringToFront";break;case AscDFH.historydescription_Document_GrObjectsBringForwardGroup:sString=
|
|
"Document_GrObjectsBringForwardGroup";break;case AscDFH.historydescription_Document_GrObjectsBringForward:sString="Document_GrObjectsBringForward";break;case AscDFH.historydescription_Document_GrObjectsSendToBackGroup:sString="Document_GrObjectsSendToBackGroup";break;case AscDFH.historydescription_Document_GrObjectsSendToBack:sString="Document_GrObjectsSendToBack";break;case AscDFH.historydescription_Document_GrObjectsBringBackwardGroup:sString="Document_GrObjectsBringBackwardGroup";break;case AscDFH.historydescription_Document_GrObjectsBringBackward:sString=
|
|
"Document_GrObjectsBringBackward";break;case AscDFH.historydescription_Document_GrObjectsChangeWrapPolygon:sString="Document_GrObjectsChangeWrapPolygon";break;case AscDFH.historydescription_Document_MathAutoCorrect:sString="Document_MathAutoCorrect";break;case AscDFH.historydescription_Document_SetFramePrWithFontFamily:sString="Document_SetFramePrWithFontFamily";break;case AscDFH.historydescription_Document_SetFramePr:sString="Document_SetFramePr";break;case AscDFH.historydescription_Document_SetFramePrWithFontFamilyLong:sString=
|
|
"Document_SetFramePrWithFontFamilyLong";break;case AscDFH.historydescription_Document_SetTextFontName:sString="Document_SetTextFontName";break;case AscDFH.historydescription_Document_SetTextFontSize:sString="Document_SetTextFontSize";break;case AscDFH.historydescription_Document_SetTextBold:sString="Document_SetTextBold";break;case AscDFH.historydescription_Document_SetTextItalic:sString="Document_SetTextItalic";break;case AscDFH.historydescription_Document_SetTextUnderline:sString="Document_SetTextUnderline";
|
|
break;case AscDFH.historydescription_Document_SetTextStrikeout:sString="Document_SetTextStrikeout";break;case AscDFH.historydescription_Document_SetTextDStrikeout:sString="Document_SetTextDStrikeout";break;case AscDFH.historydescription_Document_SetTextSpacing:sString="Document_SetTextSpacing";break;case AscDFH.historydescription_Document_SetTextCaps:sString="Document_SetTextCaps";break;case AscDFH.historydescription_Document_SetTextSmallCaps:sString="Document_SetTextSmallCaps";break;case AscDFH.historydescription_Document_SetTextPosition:sString=
|
|
"Document_SetTextPosition";break;case AscDFH.historydescription_Document_SetTextLang:sString="Document_SetTextLang";break;case AscDFH.historydescription_Document_SetParagraphLineSpacing:sString="Document_SetParagraphLineSpacing";break;case AscDFH.historydescription_Document_SetParagraphLineSpacingBeforeAfter:sString="Document_SetParagraphLineSpacingBeforeAfter";break;case AscDFH.historydescription_Document_IncFontSize:sString="Document_IncFontSize";break;case AscDFH.historydescription_Document_DecFontSize:sString=
|
|
"Document_DecFontSize";break;case AscDFH.historydescription_Document_SetParagraphBorders:sString="Document_SetParagraphBorders";break;case AscDFH.historydescription_Document_SetParagraphPr:sString="Document_SetParagraphPr";break;case AscDFH.historydescription_Document_SetParagraphAlign:sString="Document_SetParagraphAlign";break;case AscDFH.historydescription_Document_SetTextVertAlign:sString="Document_SetTextVertAlign";break;case AscDFH.historydescription_Document_SetParagraphNumbering:sString="Document_SetParagraphNumbering";
|
|
break;case AscDFH.historydescription_Document_SetParagraphStyle:sString="Document_SetParagraphStyle";break;case AscDFH.historydescription_Document_SetParagraphPageBreakBefore:sString="Document_SetParagraphPageBreakBefore";break;case AscDFH.historydescription_Document_SetParagraphWidowControl:sString="Document_SetParagraphWidowControl";break;case AscDFH.historydescription_Document_SetParagraphKeepLines:sString="Document_SetParagraphKeepLines";break;case AscDFH.historydescription_Document_SetParagraphKeepNext:sString=
|
|
"Document_SetParagraphKeepNext";break;case AscDFH.historydescription_Document_SetParagraphContextualSpacing:sString="Document_SetParagraphContextualSpacing";break;case AscDFH.historydescription_Document_SetTextHighlightNone:sString="Document_SetTextHighlightNone";break;case AscDFH.historydescription_Document_SetTextHighlightColor:sString="Document_SetTextHighlightColor";break;case AscDFH.historydescription_Document_SetTextColor:sString="Document_SetTextColor";break;case AscDFH.historydescription_Document_SetParagraphShd:sString=
|
|
"Document_SetParagraphShd";break;case AscDFH.historydescription_Document_SetParagraphIndent:sString="Document_SetParagraphIndent";break;case AscDFH.historydescription_Document_IncParagraphIndent:sString="Document_IncParagraphIndent";break;case AscDFH.historydescription_Document_DecParagraphIndent:sString="Document_DecParagraphIndent";break;case AscDFH.historydescription_Document_SetParagraphIndentRight:sString="Document_SetParagraphIndentRight";break;case AscDFH.historydescription_Document_SetParagraphIndentFirstLine:sString=
|
|
"Document_SetParagraphIndentFirstLine";break;case AscDFH.historydescription_Document_SetPageOrientation:sString="Document_SetPageOrientation";break;case AscDFH.historydescription_Document_SetPageSize:sString="Document_SetPageSize";break;case AscDFH.historydescription_Document_AddPageBreak:sString="Document_AddPageBreak";break;case AscDFH.historydescription_Document_AddPageNumToHdrFtr:sString="Document_AddPageNumToHdrFtr";break;case AscDFH.historydescription_Document_AddPageNumToCurrentPos:sString=
|
|
"Document_AddPageNumToCurrentPos";break;case AscDFH.historydescription_Document_SetHdrFtrDistance:sString="Document_SetHdrFtrDistance";break;case AscDFH.historydescription_Document_SetHdrFtrFirstPage:sString="Document_SetHdrFtrFirstPage";break;case AscDFH.historydescription_Document_SetHdrFtrEvenAndOdd:sString="Document_SetHdrFtrEvenAndOdd";break;case AscDFH.historydescription_Document_SetHdrFtrLink:sString="Document_SetHdrFtrLink";break;case AscDFH.historydescription_Document_AddTable:sString="Document_AddTable";
|
|
break;case AscDFH.historydescription_Document_TableAddRowAbove:sString="Document_TableAddRowAbove";break;case AscDFH.historydescription_Document_TableAddRowBelow:sString="Document_TableAddRowBelow";break;case AscDFH.historydescription_Document_TableAddColumnLeft:sString="Document_TableAddColumnLeft";break;case AscDFH.historydescription_Document_TableAddColumnRight:sString="Document_TableAddColumnRight";break;case AscDFH.historydescription_Document_TableRemoveRow:sString="Document_TableRemoveRow";
|
|
break;case AscDFH.historydescription_Document_TableRemoveColumn:sString="Document_TableRemoveColumn";break;case AscDFH.historydescription_Document_RemoveTable:sString="Document_RemoveTable";break;case AscDFH.historydescription_Document_MergeTableCells:sString="Document_MergeTableCells";break;case AscDFH.historydescription_Document_SplitTableCells:sString="Document_SplitTableCells";break;case AscDFH.historydescription_Document_ApplyTablePr:sString="Document_ApplyTablePr";break;case AscDFH.historydescription_Document_AddImageUrl:sString=
|
|
"Document_AddImageUrl";break;case AscDFH.historydescription_Document_AddImageUrlLong:sString="Document_AddImageUrlLong";break;case AscDFH.historydescription_Document_AddImageToPage:sString="Document_AddImageToPage";break;case AscDFH.historydescription_Document_ApplyImagePrWithUrl:sString="Document_ApplyImagePrWithUrl";break;case AscDFH.historydescription_Document_ApplyImagePrWithUrlLong:sString="Document_ApplyImagePrWithUrlLong";break;case AscDFH.historydescription_Document_ApplyImagePrWithFillUrl:sString=
|
|
"Document_ApplyImagePrWithFillUrl";break;case AscDFH.historydescription_Document_ApplyImagePrWithFillUrlLong:sString="Document_ApplyImagePrWithFillUrlLong";break;case AscDFH.historydescription_Document_ApplyImagePr:sString="Document_ApplyImagePr";break;case AscDFH.historydescription_Document_AddHyperlink:sString="Document_AddHyperlink";break;case AscDFH.historydescription_Document_ChangeHyperlink:sString="Document_ChangeHyperlink";break;case AscDFH.historydescription_Document_RemoveHyperlink:sString=
|
|
"Document_RemoveHyperlink";break;case AscDFH.historydescription_Document_ReplaceMisspelledWord:sString="Document_ReplaceMisspelledWord";break;case AscDFH.historydescription_Document_AddComment:sString="Document_AddComment";break;case AscDFH.historydescription_Document_RemoveComment:sString="Document_RemoveComment";break;case AscDFH.historydescription_Document_ChangeComment:sString="Document_ChangeComment";break;case AscDFH.historydescription_Document_SetTextFontNameLong:sString="Document_SetTextFontNameLong";
|
|
break;case AscDFH.historydescription_Document_AddImage:sString="Document_AddImage";break;case AscDFH.historydescription_Document_ClearFormatting:sString="Document_ClearFormatting";break;case AscDFH.historydescription_Document_AddSectionBreak:sString="Document_AddSectionBreak";break;case AscDFH.historydescription_Document_AddMath:sString="Document_AddMath";break;case AscDFH.historydescription_Document_SetParagraphTabs:sString="Document_SetParagraphTabs";break;case AscDFH.historydescription_Document_SetParagraphIndentFromRulers:sString=
|
|
"Document_SetParagraphIndentFromRulers";break;case AscDFH.historydescription_Document_SetDocumentMargin_Hor:sString="Document_SetDocumentMargin_Hor";break;case AscDFH.historydescription_Document_SetTableMarkup_Hor:sString="Document_SetTableMarkup_Hor";break;case AscDFH.historydescription_Document_SetDocumentMargin_Ver:sString="Document_SetDocumentMargin_Ver";break;case AscDFH.historydescription_Document_SetHdrFtrBounds:sString="Document_SetHdrFtrBounds";break;case AscDFH.historydescription_Document_SetTableMarkup_Ver:sString=
|
|
"Document_SetTableMarkup_Ver";break;case AscDFH.historydescription_Document_DocumentExtendToPos:sString="Document_DocumentExtendToPos";break;case AscDFH.historydescription_Document_AddDropCap:sString="Document_AddDropCap";break;case AscDFH.historydescription_Document_RemoveDropCap:sString="Document_RemoveDropCap";break;case AscDFH.historydescription_Document_SetTextHighlight:sString="Document_SetTextHighlight";break;case AscDFH.historydescription_Document_BackSpaceButton:sString="Document_BackSpaceButton";
|
|
break;case AscDFH.historydescription_Document_MoveParagraphByTab:sString="Document_MoveParagraphByTab";break;case AscDFH.historydescription_Document_AddTab:sString="Document_AddTab";break;case AscDFH.historydescription_Document_EnterButton:sString="Document_EnterButton";break;case AscDFH.historydescription_Document_SpaceButton:sString="Document_SpaceButton";break;case AscDFH.historydescription_Document_ShiftInsert:sString="Document_ShiftInsert";break;case AscDFH.historydescription_Document_ShiftInsertSafari:sString=
|
|
"Document_ShiftInsertSafari";break;case AscDFH.historydescription_Document_DeleteButton:sString="Document_DeleteButton";break;case AscDFH.historydescription_Document_ShiftDeleteButton:sString="Document_ShiftDeleteButton";break;case AscDFH.historydescription_Document_Shortcut_SetStyleHeading1:sString="Document_Shortcut_SetStyleHeading1";break;case AscDFH.historydescription_Document_Shortcut_SetStyleHeading2:sString="Document_Shortcut_SetStyleHeading2";break;case AscDFH.historydescription_Document_Shortcut_SetStyleHeading3:sString=
|
|
"Document_Shortcut_SetStyleHeading3";break;case AscDFH.historydescription_Document_SetTextStrikeoutHotKey:sString="Document_SetTextStrikeoutHotKey";break;case AscDFH.historydescription_Document_SetTextBoldHotKey:sString="Document_SetTextBoldHotKey";break;case AscDFH.historydescription_Document_SetParagraphAlignHotKey:sString="Document_SetParagraphAlignHotKey";break;case AscDFH.historydescription_Document_AddEuroLetter:sString="Document_AddEuroLetter";break;case AscDFH.historydescription_Document_SetTextItalicHotKey:sString=
|
|
"Document_SetTextItalicHotKey";break;case AscDFH.historydescription_Document_SetParagraphAlignHotKey2:sString="Document_SetParagraphAlignHotKey2";break;case AscDFH.historydescription_Document_SetParagraphNumberingHotKey:sString="Document_SetParagraphNumberingHotKey";break;case AscDFH.historydescription_Document_SetParagraphAlignHotKey3:sString="Document_SetParagraphAlignHotKey3";break;case AscDFH.historydescription_Document_AddPageNumHotKey:sString="Document_AddPageNumHotKey";break;case AscDFH.historydescription_Document_SetParagraphAlignHotKey4:sString=
|
|
"Document_SetParagraphAlignHotKey4";break;case AscDFH.historydescription_Document_SetTextUnderlineHotKey:sString="Document_SetTextUnderlineHotKey";break;case AscDFH.historydescription_Document_FormatPasteHotKey:sString="Document_FormatPasteHotKey";break;case AscDFH.historydescription_Document_PasteHotKey:sString="Document_PasteHotKey";break;case AscDFH.historydescription_Document_PasteSafariHotKey:sString="Document_PasteSafariHotKey";break;case AscDFH.historydescription_Document_CutHotKey:sString=
|
|
"Document_CutHotKey";break;case AscDFH.historydescription_Document_SetTextVertAlignHotKey:sString="Document_SetTextVertAlignHotKey";break;case AscDFH.historydescription_Document_AddMathHotKey:sString="Document_AddMathHotKey";break;case AscDFH.historydescription_Document_SetTextVertAlignHotKey2:sString="Document_SetTextVertAlignHotKey2";break;case AscDFH.historydescription_Document_MinusButton:sString="Document_MinusButton";break;case AscDFH.historydescription_Document_SetTextVertAlignHotKey3:sString=
|
|
"Document_SetTextVertAlignHotKey3";break;case AscDFH.historydescription_Document_AddLetter:sString="Document_AddLetter";break;case AscDFH.historydescription_Document_MoveTableBorder:sString="Document_MoveTableBorder";break;case AscDFH.historydescription_Document_FormatPasteHotKey2:sString="Document_FormatPasteHotKey2";break;case AscDFH.historydescription_Document_SetTextHighlight2:sString="Document_SetTextHighlight2";break;case AscDFH.historydescription_Document_AddTextFromTextBox:sString="Document_AddTextFromTextBox";
|
|
break;case AscDFH.historydescription_Document_AddMailMergeField:sString="Document_AddMailMergeField";break;case AscDFH.historydescription_Document_MoveInlineTable:sString="Document_MoveInlineTable";break;case AscDFH.historydescription_Document_MoveFlowTable:sString="Document_MoveFlowTable";break;case AscDFH.historydescription_Document_RestoreFieldTemplateText:sString="Document_RestoreFieldTemplateText";break;case AscDFH.historydescription_Spreadsheet_SetCellFontName:sString="Spreadsheet_SetCellFontName";
|
|
break;case AscDFH.historydescription_Spreadsheet_SetCellFontSize:sString="Spreadsheet_SetCellFontSize";break;case AscDFH.historydescription_Spreadsheet_SetCellBold:sString="Spreadsheet_SetCellBold";break;case AscDFH.historydescription_Spreadsheet_SetCellItalic:sString="Spreadsheet_SetCellItalic";break;case AscDFH.historydescription_Spreadsheet_SetCellUnderline:sString="Spreadsheet_SetCellUnderline";break;case AscDFH.historydescription_Spreadsheet_SetCellStrikeout:sString="Spreadsheet_SetCellStrikeout";
|
|
break;case AscDFH.historydescription_Spreadsheet_SetCellSubscript:sString="Spreadsheet_SetCellSubscript";break;case AscDFH.historydescription_Spreadsheet_SetCellSuperscript:sString="Spreadsheet_SetCellSuperscript";break;case AscDFH.historydescription_Spreadsheet_SetCellAlign:sString="Spreadsheet_SetCellAlign";break;case AscDFH.historydescription_Spreadsheet_SetCellVertAlign:sString="Spreadsheet_SetCellVertAlign";break;case AscDFH.historydescription_Spreadsheet_SetCellTextColor:sString="Spreadsheet_SetCellTextColor";
|
|
break;case AscDFH.historydescription_Spreadsheet_SetCellBackgroundColor:sString="Spreadsheet_SetCellBackgroundColor";break;case AscDFH.historydescription_Spreadsheet_SetCellIncreaseFontSize:sString="Spreadsheet_SetCellIncreaseFontSize";break;case AscDFH.historydescription_Spreadsheet_SetCellDecreaseFontSize:sString="Spreadsheet_SetCellDecreaseFontSize";break;case AscDFH.historydescription_Spreadsheet_SetCellHyperlinkAdd:sString="Spreadsheet_SetCellHyperlinkAdd";break;case AscDFH.historydescription_Spreadsheet_SetCellHyperlinkModify:sString=
|
|
"Spreadsheet_SetCellHyperlinkModify";break;case AscDFH.historydescription_Spreadsheet_SetCellHyperlinkRemove:sString="Spreadsheet_SetCellHyperlinkRemove";break;case AscDFH.historydescription_Spreadsheet_EditChart:sString="Spreadsheet_EditChart";break;case AscDFH.historydescription_Spreadsheet_Remove:sString="Spreadsheet_Remove";break;case AscDFH.historydescription_Spreadsheet_AddTab:sString="Spreadsheet_AddTab";break;case AscDFH.historydescription_Spreadsheet_AddNewParagraph:sString="Spreadsheet_AddNewParagraph";
|
|
break;case AscDFH.historydescription_Spreadsheet_AddSpace:sString="Spreadsheet_AddSpace";break;case AscDFH.historydescription_Spreadsheet_AddItem:sString="Spreadsheet_AddItem";break;case AscDFH.historydescription_Spreadsheet_PutPrLineSpacing:sString="Spreadsheet_PutPrLineSpacing";break;case AscDFH.historydescription_Spreadsheet_SetParagraphSpacing:sString="Spreadsheet_SetParagraphSpacing";break;case AscDFH.historydescription_Spreadsheet_SetGraphicObjectsProps:sString="Spreadsheet_SetGraphicObjectsProps";
|
|
break;case AscDFH.historydescription_Spreadsheet_ParaApply:sString="Spreadsheet_ParaApply";break;case AscDFH.historydescription_Spreadsheet_GraphicObjectLayer:sString="Spreadsheet_GraphicObjectLayer";break;case AscDFH.historydescription_Spreadsheet_ParagraphAdd:sString="Spreadsheet_ParagraphAdd";break;case AscDFH.historydescription_Spreadsheet_CreateGroup:sString="Spreadsheet_CreateGroup";break;case AscDFH.historydescription_CommonDrawings_ChangeAdj:sString="CommonDrawings_ChangeAdj";break;case AscDFH.historydescription_CommonDrawings_EndTrack:sString=
|
|
"CommonDrawings_EndTrack";break;case AscDFH.historydescription_CommonDrawings_CopyCtrl:sString="CommonDrawings_CopyCtrl";break;case AscDFH.historydescription_Presentation_ParaApply:sString="Presentation_ParaApply";break;case AscDFH.historydescription_Presentation_ParaFormatPaste:sString="Presentation_ParaFormatPaste";break;case AscDFH.historydescription_Presentation_AddNewParagraph:sString="Presentation_AddNewParagraph";break;case AscDFH.historydescription_Presentation_CreateGroup:sString="Presentation_CreateGroup";
|
|
break;case AscDFH.historydescription_Presentation_UnGroup:sString="Presentation_UnGroup";break;case AscDFH.historydescription_Presentation_AddChart:sString="Presentation_AddChart";break;case AscDFH.historydescription_Presentation_EditChart:sString="Presentation_EditChart";break;case AscDFH.historydescription_Presentation_ParagraphAdd:sString="Presentation_ParagraphAdd";break;case AscDFH.historydescription_Presentation_ParagraphClearFormatting:sString="Presentation_ParagraphClearFormatting";break;
|
|
case AscDFH.historydescription_Presentation_SetParagraphAlign:sString="Presentation_SetParagraphAlign";break;case AscDFH.historydescription_Presentation_SetParagraphSpacing:sString="Presentation_SetParagraphSpacing";break;case AscDFH.historydescription_Presentation_SetParagraphTabs:sString="Presentation_SetParagraphTabs";break;case AscDFH.historydescription_Presentation_SetParagraphIndent:sString="Presentation_SetParagraphIndent";break;case AscDFH.historydescription_Presentation_SetParagraphNumbering:sString=
|
|
"Presentation_SetParagraphNumbering";break;case AscDFH.historydescription_Presentation_ParagraphIncDecFontSize:sString="Presentation_ParagraphIncDecFontSize";break;case AscDFH.historydescription_Presentation_ParagraphIncDecIndent:sString="Presentation_ParagraphIncDecIndent";break;case AscDFH.historydescription_Presentation_SetImageProps:sString="Presentation_SetImageProps";break;case AscDFH.historydescription_Presentation_SetShapeProps:sString="Presentation_SetShapeProps";break;case AscDFH.historydescription_Presentation_ChartApply:sString=
|
|
"Presentation_ChartApply";break;case AscDFH.historydescription_Presentation_ChangeShapeType:sString="Presentation_ChangeShapeType";break;case AscDFH.historydescription_Presentation_SetVerticalAlign:sString="Presentation_SetVerticalAlign";break;case AscDFH.historydescription_Presentation_HyperlinkAdd:sString="Presentation_HyperlinkAdd";break;case AscDFH.historydescription_Presentation_HyperlinkModify:sString="Presentation_HyperlinkModify";break;case AscDFH.historydescription_Presentation_HyperlinkRemove:sString=
|
|
"Presentation_HyperlinkRemove";break;case AscDFH.historydescription_Presentation_DistHor:sString="Presentation_DistHor";break;case AscDFH.historydescription_Presentation_DistVer:sString="Presentation_DistVer";break;case AscDFH.historydescription_Presentation_BringToFront:sString="Presentation_BringToFront";break;case AscDFH.historydescription_Presentation_BringForward:sString="Presentation_BringForward";break;case AscDFH.historydescription_Presentation_SendToBack:sString="Presentation_SendToBack";
|
|
break;case AscDFH.historydescription_Presentation_BringBackward:sString="Presentation_BringBackward";break;case AscDFH.historydescription_Presentation_ApplyTransition:sString="Presentation_ApplyTransition";break;case AscDFH.historydescription_Presentation_MoveSlidesToEnd:sString="Presentation_MoveSlidesToEnd";break;case AscDFH.historydescription_Presentation_MoveSlidesNextPos:sString="Presentation_MoveSlidesNextPos";break;case AscDFH.historydescription_Presentation_MoveSlidesPrevPos:sString="Presentation_MoveSlidesPrevPos";
|
|
break;case AscDFH.historydescription_Presentation_MoveSlidesToStart:sString="Presentation_MoveSlidesToStart";break;case AscDFH.historydescription_Presentation_MoveComments:sString="Presentation_MoveComments";break;case AscDFH.historydescription_Presentation_TableBorder:sString="Presentation_TableBorder";break;case AscDFH.historydescription_Presentation_AddFlowImage:sString="Presentation_AddFlowImage";break;case AscDFH.historydescription_Presentation_AddFlowTable:sString="Presentation_AddFlowTable";
|
|
break;case AscDFH.historydescription_Presentation_ChangeBackground:sString="Presentation_ChangeBackground";break;case AscDFH.historydescription_Presentation_AddNextSlide:sString="Presentation_AddNextSlide";break;case AscDFH.historydescription_Presentation_ShiftSlides:sString="Presentation_ShiftSlides";break;case AscDFH.historydescription_Presentation_DeleteSlides:sString="Presentation_DeleteSlides";break;case AscDFH.historydescription_Presentation_ChangeLayout:sString="Presentation_ChangeLayout";
|
|
break;case AscDFH.historydescription_Presentation_ChangeSlideSize:sString="Presentation_ChangeSlideSize";break;case AscDFH.historydescription_Presentation_ChangeColorScheme:sString="Presentation_ChangeColorScheme";break;case AscDFH.historydescription_Presentation_AddComment:sString="Presentation_AddComment";break;case AscDFH.historydescription_Presentation_ChangeComment:sString="Presentation_ChangeComment";break;case AscDFH.historydescription_Presentation_PutTextPrFontName:sString="Presentation_PutTextPrFontName";
|
|
break;case AscDFH.historydescription_Presentation_PutTextPrFontSize:sString="Presentation_PutTextPrFontSize";break;case AscDFH.historydescription_Presentation_PutTextPrBold:sString="Presentation_PutTextPrBold";break;case AscDFH.historydescription_Presentation_PutTextPrItalic:sString="Presentation_PutTextPrItalic";break;case AscDFH.historydescription_Presentation_PutTextPrUnderline:sString="Presentation_PutTextPrUnderline";break;case AscDFH.historydescription_Presentation_PutTextPrStrikeout:sString=
|
|
"Presentation_PutTextPrStrikeout";break;case AscDFH.historydescription_Presentation_PutTextPrLineSpacing:sString="Presentation_PutTextPrLineSpacing";break;case AscDFH.historydescription_Presentation_PutTextPrSpacingBeforeAfter:sString="Presentation_PutTextPrSpacingBeforeAfter";break;case AscDFH.historydescription_Presentation_PutTextPrIncreaseFontSize:sString="Presentation_PutTextPrIncreaseFontSize";break;case AscDFH.historydescription_Presentation_PutTextPrDecreaseFontSize:sString="Presentation_PutTextPrDecreaseFontSize";
|
|
break;case AscDFH.historydescription_Presentation_PutTextPrAlign:sString="Presentation_PutTextPrAlign";break;case AscDFH.historydescription_Presentation_PutTextPrBaseline:sString="Presentation_PutTextPrBaseline";break;case AscDFH.historydescription_Presentation_PutTextPrListType:sString="Presentation_PutTextPrListType";break;case AscDFH.historydescription_Presentation_PutTextColor:sString="Presentation_PutTextColor";break;case AscDFH.historydescription_Presentation_PutTextColor2:sString="Presentation_PutTextColor2";
|
|
break;case AscDFH.historydescription_Presentation_PutPrIndent:sString="Presentation_PutPrIndent";break;case AscDFH.historydescription_Presentation_PutPrIndentRight:sString="Presentation_PutPrIndentRight";break;case AscDFH.historydescription_Presentation_PutPrFirstLineIndent:sString="Presentation_PutPrFirstLineIndent";break;case AscDFH.historydescription_Presentation_AddPageBreak:sString="Presentation_AddPageBreak";break;case AscDFH.historydescription_Presentation_AddRowAbove:sString="Presentation_AddRowAbove";
|
|
break;case AscDFH.historydescription_Presentation_AddRowBelow:sString="Presentation_AddRowBelow";break;case AscDFH.historydescription_Presentation_AddColLeft:sString="Presentation_AddColLeft";break;case AscDFH.historydescription_Presentation_AddColRight:sString="Presentation_AddColRight";break;case AscDFH.historydescription_Presentation_RemoveRow:sString="Presentation_RemoveRow";break;case AscDFH.historydescription_Presentation_RemoveCol:sString="Presentation_RemoveCol";break;case AscDFH.historydescription_Presentation_RemoveTable:sString=
|
|
"Presentation_RemoveTable";break;case AscDFH.historydescription_Presentation_MergeCells:sString="Presentation_MergeCells";break;case AscDFH.historydescription_Presentation_SplitCells:sString="Presentation_SplitCells";break;case AscDFH.historydescription_Presentation_TblApply:sString="Presentation_TblApply";break;case AscDFH.historydescription_Presentation_RemoveComment:sString="Presentation_RemoveComment";break;case AscDFH.historydescription_Presentation_EndFontLoad:sString="Presentation_EndFontLoad";
|
|
break;case AscDFH.historydescription_Presentation_ChangeTheme:sString="Presentation_ChangeTheme";break;case AscDFH.historydescription_Presentation_TableMoveFromRulers:sString="Presentation_TableMoveFromRulers";break;case AscDFH.historydescription_Presentation_TableMoveFromRulersInline:sString="Presentation_TableMoveFromRulersInline";break;case AscDFH.historydescription_Presentation_PasteOnThumbnails:sString="Presentation_PasteOnThumbnails";break;case AscDFH.historydescription_Presentation_PasteOnThumbnailsSafari:sString=
|
|
"Presentation_PasteOnThumbnailsSafari";break;case AscDFH.historydescription_Document_ConvertOldEquation:sString="Document_ConvertOldEquation";break;case AscDFH.historydescription_Document_AddNewStyle:sString="Document_AddNewStyle";break;case AscDFH.historydescription_Document_RemoveStyle:sString="Document_RemoveStyle";break;case AscDFH.historydescription_Document_AddTextArt:sString="Document_AddTextArt";break;case AscDFH.historydescription_Document_RemoveAllCustomStyles:sString="Document_RemoveAllCustomStyles";
|
|
break;case AscDFH.historydescription_Document_AcceptAllRevisionChanges:sString="Document_AcceptAllRevisionChanges";break;case AscDFH.historydescription_Document_RejectAllRevisionChanges:sString="Document_RejectAllRevisionChanges";break;case AscDFH.historydescription_Document_AcceptRevisionChange:sString="Document_AcceptRevisionChange";break;case AscDFH.historydescription_Document_RejectRevisionChange:sString="Document_RejectRevisionChange";break;case AscDFH.historydescription_Document_AcceptRevisionChangesBySelection:sString=
|
|
"Document_AcceptRevisionChangesBySelection";break;case AscDFH.historydescription_Document_RejectRevisionChangesBySelection:sString="Document_RejectRevisionChangesBySelection";break;case AscDFH.historydescription_Document_AddLetterUnion:sString="Document_AddLetterUnion";break;case AscDFH.historydescription_Document_SetColumnsFromRuler:sString="Document_SetColumnsFromRuler";break;case AscDFH.historydescription_Document_SetColumnsProps:sString="Document_SetColumnsProps";break;case AscDFH.historydescription_Document_AddColumnBreak:sString=
|
|
"Document_AddColumnBreak";break;case AscDFH.historydescription_Document_AddTabToMath:sString="Document_AddTabToMath";break;case AscDFH.historydescription_Document_ApplyPrToMath:sString="Document_ApplyPrToMath";break;case AscDFH.historydescription_Document_SetMathProps:sString="Document_SetMathProps";break;case AscDFH.historydescription_Document_SetSectionProps:sString="Document_SetColumnsProps";break;case AscDFH.historydescription_Document_ApiBuilder:sString="Document_ApiBuilder";break;case AscDFH.historydescription_Document_AddOleObject:sString=
|
|
"Document_AddOleObject";break;case AscDFH.historydescription_Document_EditOleObject:sString="Document_EditOleObject";break;case AscDFH.historydescription_Document_CompositeInput:sString="Document_CompositeInput";break;case AscDFH.historydescription_Document_CompositeInputReplace:sString="Document_CompositeInputReplace";break;case AscDFH.historydescription_Document_AddPageCount:sString="Document_AddPageCount";break;case AscDFH.historydescription_Document_AddFootnote:sString="Document_AddFootnote";
|
|
break;case AscDFH.historydescription_Document_SetFootnotePr:sString="Document_SetFootnotePr";break;case AscDFH.historydescription_Document_RemoveAllFootnotes:sString="Document_RemoveAllFootnotes";break;case AscDFH.historydescription_Document_InsertDocumentsByUrls:sString="Document_InsertDocumentsByUrls";break;case AscDFH.historydescription_Document_AddBlockLevelContentControl:sString="Document_AddBlockLevelContentControl";break;case AscDFH.historydescription_Document_AddInlineLevelContentControl:sString=
|
|
"Document_AddInlineLevelContentControl";break;case AscDFH.historydescription_Document_RemoveContentControl:sString="Document_RemoveContentControl";break;case AscDFH.historydescription_Document_RemoveContentControlWrapper:sString="Document_RemoveContentControlWrapper";break;case AscDFH.historydescription_Document_ChangeContentControlProperties:sString="Document_ChangeContentControlProperties";break;case AscDFH.historydescription_DocumentMacros_Data:sString="DocumentMacros_Data";break;case AscDFH.historydescription_Document_AddBookmark:sString=
|
|
"Document_AddBookmark";break;case AscDFH.historydescription_Document_AddTableOfContents:sString="Document_AddTableOfContents";break;case AscDFH.historydescription_Document_ChangeOutlineLevel:sString="Document_ChangeOutlineLevel";break;case AscDFH.historydescription_Document_AddElementToOutline:sString="Document_AddElementToOutline";break;case AscDFH.historydescription_Document_ResizeTable:sString="Document_ResizeTable";break;case AscDFH.historydescription_Document_RemoveComplexField:sString="Document_RemoveComplexField";
|
|
break;case AscDFH.historydescription_Document_SetComplexFieldPr:sString="Document_SetComplexFieldPr";break;case AscDFH.historydescription_Document_UpdateTableOfContents:sString="Document_UpdateTableOfContents";break;case AscDFH.historydescription_Document_SectionStartPage:sString="Document_SectionStartPage";break;case AscDFH.historydescription_Document_DistributeTableCells:sString="Document_DistributeTableCells";break;case AscDFH.historydescription_Document_RemoveBookmark:sString="Document_RemoveBookmark";
|
|
break;case AscDFH.historydescription_Document_ContinueNumbering:sString="Document_ContinueNumbering";break;case AscDFH.historydescription_Document_RestartNumbering:sString="Document_RestartNumbering";break;case AscDFH.historydescription_Document_AutomaticListAsType:sString="Document_AutomaticListAsType";break;case AscDFH.historydescription_Document_CreateNum:sString="Document_CreateNum";break;case AscDFH.historydescription_Document_ChangeNumLvl:sString="Document_ChangeNumLvl";break;case AscDFH.historydescription_Document_AutoCorrectSmartQuotes:sString=
|
|
"Document_AutoCorrectSmartQuotes";break;case AscDFH.historydescription_Document_AutoCorrectHyphensWithDash:sString="Document_AutoCorrectHyphensWithDash";break;case AscDFH.historydescription_Document_SetGlobalSdtHighlightColor:sString="Document_SetGlobalSdtHighlightColor";break;case AscDFH.historydescription_Document_SetGlobalSdtShowHighlight:sString="Document_SetGlobalSdtShowHighlight";break;case AscDFH.historydescription_Document_UpdateFields:sString="Document_UpdateFields";break;case AscDFH.historydescription_Document_AddBlankPage:sString=
|
|
"Document_AddBlankPage";break;case AscDFH.historydescription_Document_AddTableFormula:sString="Document_AddTableFormula";break;case AscDFH.historydescription_Document_ChangeTableFormula:sString="Document_ChangeTableFormula";break;case AscDFH.historydescription_Document_SetParagraphOutlineLvl:sString="Document_SetParagraphOutlineLvl";break;case AscDFH.historydescription_Document_RemoveTableCells:sString="Document_RemoveTableCells";break;case AscDFH.historydescription_Document_AddContentControlCheckBox:sString=
|
|
"Document_AddContentControlCheckBox";break;case AscDFH.historydescription_Document_SetContentControlCheckBoxPr:sString="Document_SetContentControlCheckBoxPr";break;case AscDFH.historydescription_Document_AddContentControlPicture:sString="Document_AddContentControlPicture";break;case AscDFH.historydescription_Document_SetContentControlPictureUrl:sString="Document_SetContentControlPictureUrl";break;case AscDFH.historydescription_Document_RemoveAllComments:sString="Document_RemoveAllComments";break;
|
|
case AscDFH.historydescription_Document_AddContentControlList:sString="Document_AddContentControlList";break;case AscDFH.historydescription_Document_SetContentControlListPr:sString="Document_SetContentControlListPr";break;case AscDFH.historydescription_Document_SelectContentControlListItem:sString="Document_SelectContentControlListItem";break;case AscDFH.historydescription_Document_AddContentControlDatePicker:sString="Document_AddContentControlDatePicker";break;case AscDFH.historydescription_Document_SetContentControlDatePickerPr:sString=
|
|
"Document_SetContentControlDatePickerPr";break;case AscDFH.historydescription_Document_AddTextWithProperties:sString="Document_AddTextWithProperties";break;case AscDFH.historydescription_Document_AddCaption:sString="Document_AddCaption";break;case AscDFH.historydescription_Document_CompareDocuments:sString="Document_CompareDocuments";break;case AscDFH.historydescription_Document_DrawNewTable:sString="Document_DrawNewTable";break;case AscDFH.historydescription_Document_DrawTable:sString="Document_DrawTable";
|
|
break;case AscDFH.historydescription_Document_AddDateTimeField:sString="Document_AddDateTimeField";break;case AscDFH.historydescription_Document_SetContentControlTextPlaceholder:sString="Document_SetContentControlTextPlaceholder";break;case AscDFH.historydescription_Document_AddEndnote:sString="Document_AddEndnote";break;case AscDFH.historydescription_Document_AddContentControlTextForm:sString="Document_AddContentControlTextForm";break;case AscDFH.historydescription_Document_SetEndnotePr:sString=
|
|
"Document_SetEndnotePr";break;case AscDFH.historydescription_Document_ConvertFootnoteType:sString="Document_ConvertFootnoteType";break;case AscDFH.historydescription_Document_AutoCorrectCommon:sString="Document_AutoCorrectCommon";break;case AscDFH.historydescription_Document_Shortcut_ClearFormatting:sString="Document_Shortcut_ClearFormatting";break;case AscDFH.historydescription_Document_Shortcut_AddNonBreakingSpace:sString="Document_Shortcut_AddNonBreakingSpace";break;case AscDFH.historydescription_Document_SetParagraphSuppressLineNumbers:sString=
|
|
"Document_SetParagraphSuppressLineNumbers";break;case AscDFH.historydescription_Document_SetLineNumbersProps:sString="Document_SetLineNumbersProps";break;case AscDFH.historydescription_Document_AddCrossRef:sString="Document_AddCrossRef";break;case AscDFH.historydescription_Document_ClearAllSpecialForms:sString="Document_ClearAllSpecialForms";break;case AscDFH.historydescription_Document_ChangeTextCase:sString="Document_ChangeTextCase";break;case AscDFH.historydescription_Document_SetNumberingLvl:sString=
|
|
"Document_SetNumberingLvl";break;case AscDFH.historydescription_Document_SetTrackRevisions:sString="Document_SetTrackRevisions";break;case AscDFH.historydescription_Document_SetContentControlText:sString="Document_SetContentControlText";break;case AscDFH.historydescription_Document_ClearContentControl:sString="Document_ClearContentControl";break;case AscDFH.historydescription_Document_AutoCorrectFirstLetterOfSentence:sString="Document_AutoCorrectFirstLetterOfSentence";break;case AscDFH.historydescription_Document_ConvertTextToTable:sString=
|
|
"Document_ConvertTextToTable";break;case AscDFH.historydescription_Document_ConvertTableToText:sString="Document_ConvertTableToText";case AscDFH.historydescription_Document_ResolveAllComments:sString="Document_ResolveAllComments";break;case AscDFH.historydescription_Document_ConvertFormFixedType:sString="Document_ConvertFormFixedType";break}return sString}function GetHistoryClassTypeByChangeType(nChangeType){return nChangeType>>16&65535}window["AscDFH"]=window["AscDFH"]||{};window["AscDFH"].GetHistoryPointStringDescription=
|
|
GetHistoryPointStringDescription;window["AscDFH"].GetHistoryClassTypeByChangeType=GetHistoryClassTypeByChangeType;window["AscDFH"].historyitem_recalctype_Inline=0;window["AscDFH"].historyitem_recalctype_Flow=1;window["AscDFH"].historyitem_recalctype_HdrFtr=2;window["AscDFH"].historyitem_recalctype_Drawing=3;window["AscDFH"].historyitem_recalctype_NotesEnd=4;window["AscDFH"].historyitem_type_Unknown=0<<16;window["AscDFH"].historyitem_type_TableId=1<<16;window["AscDFH"].historyitem_type_Document=2<<
|
|
16;window["AscDFH"].historyitem_type_Paragraph=3<<16;window["AscDFH"].historyitem_type_TextPr=4<<16;window["AscDFH"].historyitem_type_Drawing=5<<16;window["AscDFH"].historyitem_type_DrawingObjects=6<<16;window["AscDFH"].historyitem_type_FlowObjects=7<<16;window["AscDFH"].historyitem_type_FlowImage=8<<16;window["AscDFH"].historyitem_type_Table=9<<16;window["AscDFH"].historyitem_type_TableRow=10<<16;window["AscDFH"].historyitem_type_TableCell=11<<16;window["AscDFH"].historyitem_type_DocumentContent=
|
|
12<<16;window["AscDFH"].historyitem_type_FlowTable=13<<16;window["AscDFH"].historyitem_type_HdrFtrController=14<<16;window["AscDFH"].historyitem_type_HdrFtr=15<<16;window["AscDFH"].historyitem_type_AbstractNum=16<<16;window["AscDFH"].historyitem_type_Comment=17<<16;window["AscDFH"].historyitem_type_Comments=18<<16;window["AscDFH"].historyitem_type_Image=19<<16;window["AscDFH"].historyitem_type_GrObjects=20<<16;window["AscDFH"].historyitem_type_Hyperlink=21<<16;window["AscDFH"].historyitem_type_Style=
|
|
23<<16;window["AscDFH"].historyitem_type_Styles=24<<16;window["AscDFH"].historyitem_type_ChartTitle=25<<16;window["AscDFH"].historyitem_type_Math=26<<16;window["AscDFH"].historyitem_type_CommentMark=27<<16;window["AscDFH"].historyitem_type_ParaRun=28<<16;window["AscDFH"].historyitem_type_MathContent=29<<16;window["AscDFH"].historyitem_type_Section=30<<16;window["AscDFH"].historyitem_type_acc=31<<16;window["AscDFH"].historyitem_type_bar=32<<16;window["AscDFH"].historyitem_type_borderBox=33<<16;window["AscDFH"].historyitem_type_box=
|
|
34<<16;window["AscDFH"].historyitem_type_delimiter=35<<16;window["AscDFH"].historyitem_type_eqArr=36<<16;window["AscDFH"].historyitem_type_frac=37<<16;window["AscDFH"].historyitem_type_mathFunc=38<<16;window["AscDFH"].historyitem_type_groupChr=39<<16;window["AscDFH"].historyitem_type_lim=40<<16;window["AscDFH"].historyitem_type_matrix=41<<16;window["AscDFH"].historyitem_type_nary=42<<16;window["AscDFH"].historyitem_type_integral=43<<16;window["AscDFH"].historyitem_type_double_integral=44<<16;window["AscDFH"].historyitem_type_triple_integral=
|
|
45<<16;window["AscDFH"].historyitem_type_contour_integral=46<<16;window["AscDFH"].historyitem_type_surface_integral=47<<16;window["AscDFH"].historyitem_type_volume_integral=48<<16;window["AscDFH"].historyitem_type_phant=49<<16;window["AscDFH"].historyitem_type_rad=50<<16;window["AscDFH"].historyitem_type_deg_subsup=51<<16;window["AscDFH"].historyitem_type_iterators=52<<16;window["AscDFH"].historyitem_type_deg=53<<16;window["AscDFH"].historyitem_type_ParaComment=54<<16;window["AscDFH"].historyitem_type_Field=
|
|
55<<16;window["AscDFH"].historyitem_type_Footnotes=56<<16;window["AscDFH"].historyitem_type_FootEndNote=57<<16;window["AscDFH"].historyitem_type_Presentation=58<<16;window["AscDFH"].historyitem_type_BlockLevelSdt=59<<16;window["AscDFH"].historyitem_type_SdtPr=60<<16;window["AscDFH"].historyitem_type_InlineLevelSdt=61<<16;window["AscDFH"].historyitem_type_ParaBookmark=62<<16;window["AscDFH"].historyitem_type_Num=63<<16;window["AscDFH"].historyitem_type_PresentationField=64<<16;window["AscDFH"].historyitem_type_ParaRevisionMove=
|
|
65<<16;window["AscDFH"].historyitem_type_RunRevisionMove=66<<16;window["AscDFH"].historyitem_type_GlossaryDocument=67<<16;window["AscDFH"].historyitem_type_DocPart=68<<16;window["AscDFH"].historyitem_type_Endnotes=69<<16;window["AscDFH"].historyitem_type_CommonShape=1E3<<16;window["AscDFH"].historyitem_type_ColorMod=1001<<16;window["AscDFH"].historyitem_type_ColorModifiers=1002<<16;window["AscDFH"].historyitem_type_SysColor=1003<<16;window["AscDFH"].historyitem_type_PrstColor=1004<<16;window["AscDFH"].historyitem_type_RGBColor=
|
|
1005<<16;window["AscDFH"].historyitem_type_SchemeColor=1006<<16;window["AscDFH"].historyitem_type_UniColor=1007<<16;window["AscDFH"].historyitem_type_SrcRect=1008<<16;window["AscDFH"].historyitem_type_BlipFill=1009<<16;window["AscDFH"].historyitem_type_SolidFill=1010<<16;window["AscDFH"].historyitem_type_Gs=1011<<16;window["AscDFH"].historyitem_type_GradLin=1012<<16;window["AscDFH"].historyitem_type_GradPath=1013<<16;window["AscDFH"].historyitem_type_GradFill=1014<<16;window["AscDFH"].historyitem_type_PathFill=
|
|
1015<<16;window["AscDFH"].historyitem_type_NoFill=1016<<16;window["AscDFH"].historyitem_type_UniFill=1017<<16;window["AscDFH"].historyitem_type_EndArrow=1018<<16;window["AscDFH"].historyitem_type_LineJoin=1019<<16;window["AscDFH"].historyitem_type_Ln=1020<<16;window["AscDFH"].historyitem_type_DefaultShapeDefinition=1021<<16;window["AscDFH"].historyitem_type_CNvPr=1022<<16;window["AscDFH"].historyitem_type_NvPr=1023<<16;window["AscDFH"].historyitem_type_Ph=1024<<16;window["AscDFH"].historyitem_type_UniNvPr=
|
|
1025<<16;window["AscDFH"].historyitem_type_StyleRef=1026<<16;window["AscDFH"].historyitem_type_FontRef=1027<<16;window["AscDFH"].historyitem_type_Chart=1028<<16;window["AscDFH"].historyitem_type_ChartSpace=1029<<16;window["AscDFH"].historyitem_type_Legend=1030<<16;window["AscDFH"].historyitem_type_Layout=1031<<16;window["AscDFH"].historyitem_type_LegendEntry=1032<<16;window["AscDFH"].historyitem_type_PivotFmt=1033<<16;window["AscDFH"].historyitem_type_DLbl=1034<<16;window["AscDFH"].historyitem_type_Marker=
|
|
1035<<16;window["AscDFH"].historyitem_type_PlotArea=1036<<16;window["AscDFH"].historyitem_type_Axis=1037<<16;window["AscDFH"].historyitem_type_NumFmt=1038<<16;window["AscDFH"].historyitem_type_Scaling=1039<<16;window["AscDFH"].historyitem_type_DTable=1040<<16;window["AscDFH"].historyitem_type_LineChart=1041<<16;window["AscDFH"].historyitem_type_DLbls=1042<<16;window["AscDFH"].historyitem_type_UpDownBars=1043<<16;window["AscDFH"].historyitem_type_BarChart=1044<<16;window["AscDFH"].historyitem_type_BubbleChart=
|
|
1045<<16;window["AscDFH"].historyitem_type_DoughnutChart=1046<<16;window["AscDFH"].historyitem_type_OfPieChart=1047<<16;window["AscDFH"].historyitem_type_PieChart=1048<<16;window["AscDFH"].historyitem_type_RadarChart=1049<<16;window["AscDFH"].historyitem_type_ScatterChart=1050<<16;window["AscDFH"].historyitem_type_StockChart=1051<<16;window["AscDFH"].historyitem_type_SurfaceChart=1052<<16;window["AscDFH"].historyitem_type_BandFmt=1053<<16;window["AscDFH"].historyitem_type_AreaChart=1054<<16;window["AscDFH"].historyitem_type_ScatterSer=
|
|
1055<<16;window["AscDFH"].historyitem_type_DPt=1056<<16;window["AscDFH"].historyitem_type_ErrBars=1057<<16;window["AscDFH"].historyitem_type_MinusPlus=1058<<16;window["AscDFH"].historyitem_type_NumLit=1059<<16;window["AscDFH"].historyitem_type_NumericPoint=1060<<16;window["AscDFH"].historyitem_type_NumRef=1061<<16;window["AscDFH"].historyitem_type_TrendLine=1062<<16;window["AscDFH"].historyitem_type_Tx=1063<<16;window["AscDFH"].historyitem_type_StrRef=1064<<16;window["AscDFH"].historyitem_type_StrCache=
|
|
1065<<16;window["AscDFH"].historyitem_type_StrPoint=1066<<16;window["AscDFH"].historyitem_type_XVal=1067<<16;window["AscDFH"].historyitem_type_MultiLvlStrRef=1068<<16;window["AscDFH"].historyitem_type_MultiLvlStrCache=1069<<16;window["AscDFH"].historyitem_type_StringLiteral=1070<<16;window["AscDFH"].historyitem_type_YVal=1071<<16;window["AscDFH"].historyitem_type_AreaSeries=1072<<16;window["AscDFH"].historyitem_type_Cat=1073<<16;window["AscDFH"].historyitem_type_PictureOptions=1074<<16;window["AscDFH"].historyitem_type_RadarSeries=
|
|
1075<<16;window["AscDFH"].historyitem_type_BarSeries=1076<<16;window["AscDFH"].historyitem_type_LineSeries=1077<<16;window["AscDFH"].historyitem_type_PieSeries=1078<<16;window["AscDFH"].historyitem_type_SurfaceSeries=1079<<16;window["AscDFH"].historyitem_type_BubbleSeries=1080<<16;window["AscDFH"].historyitem_type_ExternalData=1081<<16;window["AscDFH"].historyitem_type_PivotSource=1082<<16;window["AscDFH"].historyitem_type_Protection=1083<<16;window["AscDFH"].historyitem_type_ChartWall=1084<<16;window["AscDFH"].historyitem_type_View3d=
|
|
1085<<16;window["AscDFH"].historyitem_type_ChartText=1086<<16;window["AscDFH"].historyitem_type_ShapeStyle=1087<<16;window["AscDFH"].historyitem_type_Xfrm=1088<<16;window["AscDFH"].historyitem_type_SpPr=1089<<16;window["AscDFH"].historyitem_type_ClrScheme=1090<<16;window["AscDFH"].historyitem_type_ClrMap=1091<<16;window["AscDFH"].historyitem_type_ExtraClrScheme=1092<<16;window["AscDFH"].historyitem_type_FontCollection=1093<<16;window["AscDFH"].historyitem_type_FontScheme=1094<<16;window["AscDFH"].historyitem_type_FormatScheme=
|
|
1095<<16;window["AscDFH"].historyitem_type_ThemeElements=1096<<16;window["AscDFH"].historyitem_type_HF=1097<<16;window["AscDFH"].historyitem_type_BgPr=1098<<16;window["AscDFH"].historyitem_type_Bg=1099<<16;window["AscDFH"].historyitem_type_PrintSettings=1100<<16;window["AscDFH"].historyitem_type_HeaderFooterChart=1101<<16;window["AscDFH"].historyitem_type_PageMarginsChart=1102<<16;window["AscDFH"].historyitem_type_PageSetup=1103<<16;window["AscDFH"].historyitem_type_Shape=1104<<16;window["AscDFH"].historyitem_type_DispUnits=
|
|
1105<<16;window["AscDFH"].historyitem_type_GroupShape=1106<<16;window["AscDFH"].historyitem_type_ImageShape=1107<<16;window["AscDFH"].historyitem_type_Geometry=1108<<16;window["AscDFH"].historyitem_type_Path=1109<<16;window["AscDFH"].historyitem_type_TextBody=1110<<16;window["AscDFH"].historyitem_type_CatAx=1111<<16;window["AscDFH"].historyitem_type_ValAx=1112<<16;window["AscDFH"].historyitem_type_WrapPolygon=1113<<16;window["AscDFH"].historyitem_type_DateAx=1114<<16;window["AscDFH"].historyitem_type_SerAx=
|
|
1115<<16;window["AscDFH"].historyitem_type_Title=1116<<16;window["AscDFH"].historyitem_type_Slide=1117<<16;window["AscDFH"].historyitem_type_SlideLayout=1118<<16;window["AscDFH"].historyitem_type_SlideMaster=1119<<16;window["AscDFH"].historyitem_type_SlideComments=1120<<16;window["AscDFH"].historyitem_type_PropLocker=1121<<16;window["AscDFH"].historyitem_type_Theme=1122<<16;window["AscDFH"].historyitem_type_GraphicFrame=1123<<16;window["AscDFH"].historyitem_type_GrpFill=1124<<16;window["AscDFH"].historyitem_type_OleObject=
|
|
1125<<16;window["AscDFH"].historyitem_type_DrawingContent=1126<<16;window["AscDFH"].historyitem_type_Sparkline=1127<<16;window["AscDFH"].historyitem_type_NotesMaster=1128<<16;window["AscDFH"].historyitem_type_Notes=1129<<16;window["AscDFH"].historyitem_type_Cnx=1130<<16;window["AscDFH"].historyitem_type_PresentationSection=1131<<16;window["AscDFH"].historyitem_type_PivotTableDefinition=1132<<16;window["AscDFH"].historyitem_type_LockedCanvas=1133<<16;window["AscDFH"].historyitem_type_RelSizeAnchor=
|
|
1134<<16;window["AscDFH"].historyitem_type_AbsSizeAnchor=1135<<16;window["AscDFH"].historyitem_type_Core=1136<<16;window["AscDFH"].historyitem_type_SlicerView=1137<<16;window["AscDFH"].historyitem_type_PivotWorksheetSource=1138<<16;window["AscDFH"].historyitem_type_NamedSheetView=1139<<16;window["AscDFH"].historyitem_type_DataValidation=1140<<16;window["AscDFH"].historyitem_type_EmptyObject=1141<<16;window["AscDFH"].historyitem_type_Timing=1142<<16;window["AscDFH"].historyitem_type_CommonTimingList=
|
|
1143<<16;window["AscDFH"].historyitem_type_ObjectTarget=1144<<16;window["AscDFH"].historyitem_type_BldBase=1145<<16;window["AscDFH"].historyitem_type_BldDgm=1146<<16;window["AscDFH"].historyitem_type_BldGraphic=1147<<16;window["AscDFH"].historyitem_type_BldOleChart=1148<<16;window["AscDFH"].historyitem_type_BldP=1149<<16;window["AscDFH"].historyitem_type_BldSub=1150<<16;window["AscDFH"].historyitem_type_DirTransition=1151<<16;window["AscDFH"].historyitem_type_OptBlackTransition=1152<<16;window["AscDFH"].historyitem_type_GraphicEl=
|
|
1153<<16;window["AscDFH"].historyitem_type_IndexRg=1154<<16;window["AscDFH"].historyitem_type_Tmpl=1155<<16;window["AscDFH"].historyitem_type_Anim=1156<<16;window["AscDFH"].historyitem_type_CBhvr=1157<<16;window["AscDFH"].historyitem_type_CTn=1158<<16;window["AscDFH"].historyitem_type_Cond=1159<<16;window["AscDFH"].historyitem_type_Rtn=1160<<16;window["AscDFH"].historyitem_type_TgtEl=1161<<16;window["AscDFH"].historyitem_type_SndTgt=1162<<16;window["AscDFH"].historyitem_type_SpTgt=1163<<16;window["AscDFH"].historyitem_type_IterateData=
|
|
1164<<16;window["AscDFH"].historyitem_type_Tm=1165<<16;window["AscDFH"].historyitem_type_Tav=1166<<16;window["AscDFH"].historyitem_type_AnimVariant=1167<<16;window["AscDFH"].historyitem_type_AnimClr=1168<<16;window["AscDFH"].historyitem_type_AnimEffect=1169<<16;window["AscDFH"].historyitem_type_AnimMotion=1170<<16;window["AscDFH"].historyitem_type_AnimRot=1171<<16;window["AscDFH"].historyitem_type_AnimScale=1172<<16;window["AscDFH"].historyitem_type_Audio=1173<<16;window["AscDFH"].historyitem_type_CMediaNode=
|
|
1174<<16;window["AscDFH"].historyitem_type_Cmd=1175<<16;window["AscDFH"].historyitem_type_TimeNodeContainer=1176<<16;window["AscDFH"].historyitem_type_Seq=1177<<16;window["AscDFH"].historyitem_type_Set=1178<<16;window["AscDFH"].historyitem_type_Video=1179<<16;window["AscDFH"].historyitem_type_OleChartEl=1180<<16;window["AscDFH"].historyitem_type_TlPoint=1181<<16;window["AscDFH"].historyitem_type_SndAc=1182<<16;window["AscDFH"].historyitem_type_StSnd=1183<<16;window["AscDFH"].historyitem_type_TxEl=
|
|
1184<<16;window["AscDFH"].historyitem_type_Wheel=1185<<16;window["AscDFH"].historyitem_type_AttrName=1186<<16;window["AscDFH"].historyitem_type_AttrNameLst=1187<<16;window["AscDFH"].historyitem_type_BldLst=1188<<16;window["AscDFH"].historyitem_type_CondLst=1189<<16;window["AscDFH"].historyitem_type_ChildTnLst=1190<<16;window["AscDFH"].historyitem_type_Par=1191<<16;window["AscDFH"].historyitem_type_Excl=1192<<16;window["AscDFH"].historyitem_type_TmplLst=1193<<16;window["AscDFH"].historyitem_type_TnLst=
|
|
1194<<16;window["AscDFH"].historyitem_type_TavLst=1195<<16;window["AscDFH"].historyitem_type_SldSz=1196<<16;window["AscDFH"].historyitem_type_ChartStyle=1197<<16;window["AscDFH"].historyitem_type_ChartStyleEntry=1198<<16;window["AscDFH"].historyitem_type_MarkerLayout=1199<<16;window["AscDFH"].historyitem_type_DocumentMacros=2E3<<16;window["AscDFH"].historyitem_Unknown_Unknown=window["AscDFH"].historyitem_type_Unknown|0;window["AscDFH"].historyitem_TableId_Add=window["AscDFH"].historyitem_type_TableId|
|
|
1;window["AscDFH"].historyitem_TableId_Description=window["AscDFH"].historyitem_type_TableId|65535;window["AscDFH"].historyitem_Document_AddItem=window["AscDFH"].historyitem_type_Document|1;window["AscDFH"].historyitem_Document_RemoveItem=window["AscDFH"].historyitem_type_Document|2;window["AscDFH"].historyitem_Document_DefaultTab=window["AscDFH"].historyitem_type_Document|3;window["AscDFH"].historyitem_Document_EvenAndOddHeaders=window["AscDFH"].historyitem_type_Document|4;window["AscDFH"].historyitem_Document_DefaultLanguage=
|
|
window["AscDFH"].historyitem_type_Document|5;window["AscDFH"].historyitem_Document_MathSettings=window["AscDFH"].historyitem_type_Document|6;window["AscDFH"].historyitem_Document_SdtGlobalSettings=window["AscDFH"].historyitem_type_Document|7;window["AscDFH"].historyitem_Document_Settings_GutterAtTop=window["AscDFH"].historyitem_type_Document|8;window["AscDFH"].historyitem_Document_Settings_MirrorMargins=window["AscDFH"].historyitem_type_Document|9;window["AscDFH"].historyitem_Document_SpecialFormsGlobalSettings=
|
|
window["AscDFH"].historyitem_type_Document|10;window["AscDFH"].historyitem_Document_Settings_TrackRevisions=window["AscDFH"].historyitem_type_Document|11;window["AscDFH"].historyitem_Paragraph_AddItem=window["AscDFH"].historyitem_type_Paragraph|1;window["AscDFH"].historyitem_Paragraph_RemoveItem=window["AscDFH"].historyitem_type_Paragraph|2;window["AscDFH"].historyitem_Paragraph_Numbering=window["AscDFH"].historyitem_type_Paragraph|3;window["AscDFH"].historyitem_Paragraph_Align=window["AscDFH"].historyitem_type_Paragraph|
|
|
4;window["AscDFH"].historyitem_Paragraph_Ind_First=window["AscDFH"].historyitem_type_Paragraph|5;window["AscDFH"].historyitem_Paragraph_Ind_Right=window["AscDFH"].historyitem_type_Paragraph|6;window["AscDFH"].historyitem_Paragraph_Ind_Left=window["AscDFH"].historyitem_type_Paragraph|7;window["AscDFH"].historyitem_Paragraph_ContextualSpacing=window["AscDFH"].historyitem_type_Paragraph|8;window["AscDFH"].historyitem_Paragraph_KeepLines=window["AscDFH"].historyitem_type_Paragraph|9;window["AscDFH"].historyitem_Paragraph_KeepNext=
|
|
window["AscDFH"].historyitem_type_Paragraph|10;window["AscDFH"].historyitem_Paragraph_PageBreakBefore=window["AscDFH"].historyitem_type_Paragraph|11;window["AscDFH"].historyitem_Paragraph_Spacing_Line=window["AscDFH"].historyitem_type_Paragraph|12;window["AscDFH"].historyitem_Paragraph_Spacing_LineRule=window["AscDFH"].historyitem_type_Paragraph|13;window["AscDFH"].historyitem_Paragraph_Spacing_Before=window["AscDFH"].historyitem_type_Paragraph|14;window["AscDFH"].historyitem_Paragraph_Spacing_After=
|
|
window["AscDFH"].historyitem_type_Paragraph|15;window["AscDFH"].historyitem_Paragraph_Spacing_AfterAutoSpacing=window["AscDFH"].historyitem_type_Paragraph|16;window["AscDFH"].historyitem_Paragraph_Spacing_BeforeAutoSpacing=window["AscDFH"].historyitem_type_Paragraph|17;window["AscDFH"].historyitem_Paragraph_Shd_Value=window["AscDFH"].historyitem_type_Paragraph|18;window["AscDFH"].historyitem_Paragraph_Shd_Color=window["AscDFH"].historyitem_type_Paragraph|19;window["AscDFH"].historyitem_Paragraph_Shd_Unifill=
|
|
window["AscDFH"].historyitem_type_Paragraph|20;window["AscDFH"].historyitem_Paragraph_Shd=window["AscDFH"].historyitem_type_Paragraph|21;window["AscDFH"].historyitem_Paragraph_WidowControl=window["AscDFH"].historyitem_type_Paragraph|22;window["AscDFH"].historyitem_Paragraph_Tabs=window["AscDFH"].historyitem_type_Paragraph|23;window["AscDFH"].historyitem_Paragraph_PStyle=window["AscDFH"].historyitem_type_Paragraph|24;window["AscDFH"].historyitem_Paragraph_Borders_Between=window["AscDFH"].historyitem_type_Paragraph|
|
|
25;window["AscDFH"].historyitem_Paragraph_Borders_Bottom=window["AscDFH"].historyitem_type_Paragraph|26;window["AscDFH"].historyitem_Paragraph_Borders_Left=window["AscDFH"].historyitem_type_Paragraph|27;window["AscDFH"].historyitem_Paragraph_Borders_Right=window["AscDFH"].historyitem_type_Paragraph|28;window["AscDFH"].historyitem_Paragraph_Borders_Top=window["AscDFH"].historyitem_type_Paragraph|29;window["AscDFH"].historyitem_Paragraph_Pr=window["AscDFH"].historyitem_type_Paragraph|30;window["AscDFH"].historyitem_Paragraph_PresentationPr_Bullet=
|
|
window["AscDFH"].historyitem_type_Paragraph|31;window["AscDFH"].historyitem_Paragraph_PresentationPr_Level=window["AscDFH"].historyitem_type_Paragraph|32;window["AscDFH"].historyitem_Paragraph_FramePr=window["AscDFH"].historyitem_type_Paragraph|33;window["AscDFH"].historyitem_Paragraph_SectionPr=window["AscDFH"].historyitem_type_Paragraph|34;window["AscDFH"].historyitem_Paragraph_PrChange=window["AscDFH"].historyitem_type_Paragraph|35;window["AscDFH"].historyitem_Paragraph_PrReviewInfo=window["AscDFH"].historyitem_type_Paragraph|
|
|
36;window["AscDFH"].historyitem_Paragraph_OutlineLvl=window["AscDFH"].historyitem_type_Paragraph|37;window["AscDFH"].historyitem_Paragraph_DefaultTabSize=window["AscDFH"].historyitem_type_Paragraph|38;window["AscDFH"].historyitem_Paragraph_SuppressLineNumbers=window["AscDFH"].historyitem_type_Paragraph|39;window["AscDFH"].historyitem_Paragraph_Shd_Fill=window["AscDFH"].historyitem_type_Paragraph|40;window["AscDFH"].historyitem_TextPr_Bold=window["AscDFH"].historyitem_type_TextPr|1;window["AscDFH"].historyitem_TextPr_Italic=
|
|
window["AscDFH"].historyitem_type_TextPr|2;window["AscDFH"].historyitem_TextPr_Strikeout=window["AscDFH"].historyitem_type_TextPr|3;window["AscDFH"].historyitem_TextPr_Underline=window["AscDFH"].historyitem_type_TextPr|4;window["AscDFH"].historyitem_TextPr_FontSize=window["AscDFH"].historyitem_type_TextPr|5;window["AscDFH"].historyitem_TextPr_Color=window["AscDFH"].historyitem_type_TextPr|6;window["AscDFH"].historyitem_TextPr_VertAlign=window["AscDFH"].historyitem_type_TextPr|7;window["AscDFH"].historyitem_TextPr_HighLight=
|
|
window["AscDFH"].historyitem_type_TextPr|8;window["AscDFH"].historyitem_TextPr_RStyle=window["AscDFH"].historyitem_type_TextPr|9;window["AscDFH"].historyitem_TextPr_Spacing=window["AscDFH"].historyitem_type_TextPr|10;window["AscDFH"].historyitem_TextPr_DStrikeout=window["AscDFH"].historyitem_type_TextPr|11;window["AscDFH"].historyitem_TextPr_Caps=window["AscDFH"].historyitem_type_TextPr|12;window["AscDFH"].historyitem_TextPr_SmallCaps=window["AscDFH"].historyitem_type_TextPr|13;window["AscDFH"].historyitem_TextPr_Position=
|
|
window["AscDFH"].historyitem_type_TextPr|14;window["AscDFH"].historyitem_TextPr_Value=window["AscDFH"].historyitem_type_TextPr|15;window["AscDFH"].historyitem_TextPr_RFonts=window["AscDFH"].historyitem_type_TextPr|16;window["AscDFH"].historyitem_TextPr_RFonts_Ascii=window["AscDFH"].historyitem_type_TextPr|17;window["AscDFH"].historyitem_TextPr_RFonts_HAnsi=window["AscDFH"].historyitem_type_TextPr|18;window["AscDFH"].historyitem_TextPr_RFonts_CS=window["AscDFH"].historyitem_type_TextPr|19;window["AscDFH"].historyitem_TextPr_RFonts_EastAsia=
|
|
window["AscDFH"].historyitem_type_TextPr|20;window["AscDFH"].historyitem_TextPr_RFonts_Hint=window["AscDFH"].historyitem_type_TextPr|21;window["AscDFH"].historyitem_TextPr_Lang=window["AscDFH"].historyitem_type_TextPr|22;window["AscDFH"].historyitem_TextPr_Lang_Bidi=window["AscDFH"].historyitem_type_TextPr|23;window["AscDFH"].historyitem_TextPr_Lang_EastAsia=window["AscDFH"].historyitem_type_TextPr|24;window["AscDFH"].historyitem_TextPr_Lang_Val=window["AscDFH"].historyitem_type_TextPr|25;window["AscDFH"].historyitem_TextPr_Unifill=
|
|
window["AscDFH"].historyitem_type_TextPr|26;window["AscDFH"].historyitem_TextPr_FontSizeCS=window["AscDFH"].historyitem_type_TextPr|27;window["AscDFH"].historyitem_TextPr_Outline=window["AscDFH"].historyitem_type_TextPr|28;window["AscDFH"].historyitem_TextPr_Fill=window["AscDFH"].historyitem_type_TextPr|29;window["AscDFH"].historyitem_TextPr_HighlightColor=window["AscDFH"].historyitem_type_TextPr|30;window["AscDFH"].historyitem_Drawing_DrawingType=window["AscDFH"].historyitem_type_Drawing|1;window["AscDFH"].historyitem_Drawing_WrappingType=
|
|
window["AscDFH"].historyitem_type_Drawing|2;window["AscDFH"].historyitem_Drawing_Distance=window["AscDFH"].historyitem_type_Drawing|3;window["AscDFH"].historyitem_Drawing_AllowOverlap=window["AscDFH"].historyitem_type_Drawing|4;window["AscDFH"].historyitem_Drawing_PositionH=window["AscDFH"].historyitem_type_Drawing|5;window["AscDFH"].historyitem_Drawing_PositionV=window["AscDFH"].historyitem_type_Drawing|6;window["AscDFH"].historyitem_Drawing_BehindDoc=window["AscDFH"].historyitem_type_Drawing|7;
|
|
window["AscDFH"].historyitem_Drawing_SetGraphicObject=window["AscDFH"].historyitem_type_Drawing|8;window["AscDFH"].historyitem_Drawing_SetSimplePos=window["AscDFH"].historyitem_type_Drawing|9;window["AscDFH"].historyitem_Drawing_SetExtent=window["AscDFH"].historyitem_type_Drawing|10;window["AscDFH"].historyitem_Drawing_SetWrapPolygon=window["AscDFH"].historyitem_type_Drawing|11;window["AscDFH"].historyitem_Drawing_SetLocked=window["AscDFH"].historyitem_type_Drawing|12;window["AscDFH"].historyitem_Drawing_SetRelativeHeight=
|
|
window["AscDFH"].historyitem_type_Drawing|13;window["AscDFH"].historyitem_Drawing_SetEffectExtent=window["AscDFH"].historyitem_type_Drawing|14;window["AscDFH"].historyitem_Drawing_SetParent=window["AscDFH"].historyitem_type_Drawing|15;window["AscDFH"].historyitem_Drawing_SetParaMath=window["AscDFH"].historyitem_type_Drawing|16;window["AscDFH"].historyitem_Drawing_LayoutInCell=window["AscDFH"].historyitem_type_Drawing|17;window["AscDFH"].historyitem_Drawing_SetSizeRelH=window["AscDFH"].historyitem_type_Drawing|
|
|
18;window["AscDFH"].historyitem_Drawing_SetSizeRelV=window["AscDFH"].historyitem_type_Drawing|19;window["AscDFH"].historyitem_Drawing_Form=window["AscDFH"].historyitem_type_Drawing|20;window["AscDFH"].historyitem_Table_TableW=window["AscDFH"].historyitem_type_Table|1;window["AscDFH"].historyitem_Table_TableCellMar=window["AscDFH"].historyitem_type_Table|2;window["AscDFH"].historyitem_Table_TableAlign=window["AscDFH"].historyitem_type_Table|3;window["AscDFH"].historyitem_Table_TableInd=window["AscDFH"].historyitem_type_Table|
|
|
4;window["AscDFH"].historyitem_Table_TableBorder_Left=window["AscDFH"].historyitem_type_Table|5;window["AscDFH"].historyitem_Table_TableBorder_Top=window["AscDFH"].historyitem_type_Table|6;window["AscDFH"].historyitem_Table_TableBorder_Right=window["AscDFH"].historyitem_type_Table|7;window["AscDFH"].historyitem_Table_TableBorder_Bottom=window["AscDFH"].historyitem_type_Table|8;window["AscDFH"].historyitem_Table_TableBorder_InsideH=window["AscDFH"].historyitem_type_Table|9;window["AscDFH"].historyitem_Table_TableBorder_InsideV=
|
|
window["AscDFH"].historyitem_type_Table|10;window["AscDFH"].historyitem_Table_TableShd=window["AscDFH"].historyitem_type_Table|11;window["AscDFH"].historyitem_Table_Inline=window["AscDFH"].historyitem_type_Table|12;window["AscDFH"].historyitem_Table_AddRow=window["AscDFH"].historyitem_type_Table|13;window["AscDFH"].historyitem_Table_RemoveRow=window["AscDFH"].historyitem_type_Table|14;window["AscDFH"].historyitem_Table_TableGrid=window["AscDFH"].historyitem_type_Table|15;window["AscDFH"].historyitem_Table_TableLook=
|
|
window["AscDFH"].historyitem_type_Table|16;window["AscDFH"].historyitem_Table_TableStyleRowBandSize=window["AscDFH"].historyitem_type_Table|17;window["AscDFH"].historyitem_Table_TableStyleColBandSize=window["AscDFH"].historyitem_type_Table|18;window["AscDFH"].historyitem_Table_TableStyle=window["AscDFH"].historyitem_type_Table|19;window["AscDFH"].historyitem_Table_AllowOverlap=window["AscDFH"].historyitem_type_Table|20;window["AscDFH"].historyitem_Table_PositionH=window["AscDFH"].historyitem_type_Table|
|
|
21;window["AscDFH"].historyitem_Table_PositionV=window["AscDFH"].historyitem_type_Table|22;window["AscDFH"].historyitem_Table_Distance=window["AscDFH"].historyitem_type_Table|23;window["AscDFH"].historyitem_Table_Pr=window["AscDFH"].historyitem_type_Table|24;window["AscDFH"].historyitem_Table_TableLayout=window["AscDFH"].historyitem_type_Table|25;window["AscDFH"].historyitem_Table_TableDescription=window["AscDFH"].historyitem_type_Table|26;window["AscDFH"].historyitem_Table_TableCaption=window["AscDFH"].historyitem_type_Table|
|
|
27;window["AscDFH"].historyitem_Table_TableGridChange=window["AscDFH"].historyitem_type_Table|28;window["AscDFH"].historyitem_Table_PrChange=window["AscDFH"].historyitem_type_Table|29;window["AscDFH"].historyitem_TableRow_Before=window["AscDFH"].historyitem_type_TableRow|1;window["AscDFH"].historyitem_TableRow_After=window["AscDFH"].historyitem_type_TableRow|2;window["AscDFH"].historyitem_TableRow_CellSpacing=window["AscDFH"].historyitem_type_TableRow|3;window["AscDFH"].historyitem_TableRow_Height=
|
|
window["AscDFH"].historyitem_type_TableRow|4;window["AscDFH"].historyitem_TableRow_AddCell=window["AscDFH"].historyitem_type_TableRow|5;window["AscDFH"].historyitem_TableRow_RemoveCell=window["AscDFH"].historyitem_type_TableRow|6;window["AscDFH"].historyitem_TableRow_TableHeader=window["AscDFH"].historyitem_type_TableRow|7;window["AscDFH"].historyitem_TableRow_Pr=window["AscDFH"].historyitem_type_TableRow|8;window["AscDFH"].historyitem_TableRow_PrChange=window["AscDFH"].historyitem_type_TableRow|
|
|
9;window["AscDFH"].historyitem_TableRow_ReviewType=window["AscDFH"].historyitem_type_TableRow|10;window["AscDFH"].historyitem_TableCell_GridSpan=window["AscDFH"].historyitem_type_TableCell|1;window["AscDFH"].historyitem_TableCell_Margins=window["AscDFH"].historyitem_type_TableCell|2;window["AscDFH"].historyitem_TableCell_Shd=window["AscDFH"].historyitem_type_TableCell|3;window["AscDFH"].historyitem_TableCell_VMerge=window["AscDFH"].historyitem_type_TableCell|4;window["AscDFH"].historyitem_TableCell_Border_Left=
|
|
window["AscDFH"].historyitem_type_TableCell|5;window["AscDFH"].historyitem_TableCell_Border_Right=window["AscDFH"].historyitem_type_TableCell|6;window["AscDFH"].historyitem_TableCell_Border_Top=window["AscDFH"].historyitem_type_TableCell|7;window["AscDFH"].historyitem_TableCell_Border_Bottom=window["AscDFH"].historyitem_type_TableCell|8;window["AscDFH"].historyitem_TableCell_VAlign=window["AscDFH"].historyitem_type_TableCell|9;window["AscDFH"].historyitem_TableCell_W=window["AscDFH"].historyitem_type_TableCell|
|
|
10;window["AscDFH"].historyitem_TableCell_Pr=window["AscDFH"].historyitem_type_TableCell|11;window["AscDFH"].historyitem_TableCell_TextDirection=window["AscDFH"].historyitem_type_TableCell|12;window["AscDFH"].historyitem_TableCell_NoWrap=window["AscDFH"].historyitem_type_TableCell|13;window["AscDFH"].historyitem_TableCell_HMerge=window["AscDFH"].historyitem_type_TableCell|14;window["AscDFH"].historyitem_TableCell_PrChange=window["AscDFH"].historyitem_type_TableCell|15;window["AscDFH"].historyitem_DocumentContent_AddItem=
|
|
window["AscDFH"].historyitem_type_DocumentContent|1;window["AscDFH"].historyitem_DocumentContent_RemoveItem=window["AscDFH"].historyitem_type_DocumentContent|2;window["AscDFH"].historyitem_AbstractNum_LvlChange=window["AscDFH"].historyitem_type_AbstractNum|1;window["AscDFH"].historyitem_AbstractNum_TextPrChange=window["AscDFH"].historyitem_type_AbstractNum|2;window["AscDFH"].historyitem_AbstractNum_ParaPrChange=window["AscDFH"].historyitem_type_AbstractNum|3;window["AscDFH"].historyitem_AbstractNum_StyleLink=
|
|
window["AscDFH"].historyitem_type_AbstractNum|4;window["AscDFH"].historyitem_AbstractNum_NumStyleLink=window["AscDFH"].historyitem_type_AbstractNum|5;window["AscDFH"].historyitem_Num_LvlOverrideChange=window["AscDFH"].historyitem_type_Num|1;window["AscDFH"].historyitem_Num_AbstractNum=window["AscDFH"].historyitem_type_Num|2;window["AscDFH"].historyitem_PresentationField_Guid=window["AscDFH"].historyitem_type_PresentationField|1;window["AscDFH"].historyitem_PresentationField_FieldType=window["AscDFH"].historyitem_type_PresentationField|
|
|
2;window["AscDFH"].historyitem_PresentationField_PPr=window["AscDFH"].historyitem_type_PresentationField|3;window["AscDFH"].historyitem_Comment_Change=window["AscDFH"].historyitem_type_Comment|1;window["AscDFH"].historyitem_Comment_TypeInfo=window["AscDFH"].historyitem_type_Comment|2;window["AscDFH"].historyitem_Comment_Position=window["AscDFH"].historyitem_type_Comment|3;window["AscDFH"].historyitem_Comments_Add=window["AscDFH"].historyitem_type_Comments|1;window["AscDFH"].historyitem_Comments_Remove=
|
|
window["AscDFH"].historyitem_type_Comments|2;window["AscDFH"].historyitem_Hyperlink_Value=window["AscDFH"].historyitem_type_Hyperlink|1;window["AscDFH"].historyitem_Hyperlink_ToolTip=window["AscDFH"].historyitem_type_Hyperlink|2;window["AscDFH"].historyitem_Hyperlink_AddItem=window["AscDFH"].historyitem_type_Hyperlink|3;window["AscDFH"].historyitem_Hyperlink_RemoveItem=window["AscDFH"].historyitem_type_Hyperlink|4;window["AscDFH"].historyitem_Hyperlink_Anchor=window["AscDFH"].historyitem_type_Hyperlink|
|
|
5;window["AscDFH"].historyitem_Style_TextPr=window["AscDFH"].historyitem_type_Style|1;window["AscDFH"].historyitem_Style_ParaPr=window["AscDFH"].historyitem_type_Style|2;window["AscDFH"].historyitem_Style_TablePr=window["AscDFH"].historyitem_type_Style|3;window["AscDFH"].historyitem_Style_TableRowPr=window["AscDFH"].historyitem_type_Style|4;window["AscDFH"].historyitem_Style_TableCellPr=window["AscDFH"].historyitem_type_Style|5;window["AscDFH"].historyitem_Style_TableBand1Horz=window["AscDFH"].historyitem_type_Style|
|
|
6;window["AscDFH"].historyitem_Style_TableBand1Vert=window["AscDFH"].historyitem_type_Style|7;window["AscDFH"].historyitem_Style_TableBand2Horz=window["AscDFH"].historyitem_type_Style|8;window["AscDFH"].historyitem_Style_TableBand2Vert=window["AscDFH"].historyitem_type_Style|9;window["AscDFH"].historyitem_Style_TableFirstCol=window["AscDFH"].historyitem_type_Style|10;window["AscDFH"].historyitem_Style_TableFirstRow=window["AscDFH"].historyitem_type_Style|11;window["AscDFH"].historyitem_Style_TableLastCol=
|
|
window["AscDFH"].historyitem_type_Style|12;window["AscDFH"].historyitem_Style_TableLastRow=window["AscDFH"].historyitem_type_Style|13;window["AscDFH"].historyitem_Style_TableTLCell=window["AscDFH"].historyitem_type_Style|14;window["AscDFH"].historyitem_Style_TableTRCell=window["AscDFH"].historyitem_type_Style|15;window["AscDFH"].historyitem_Style_TableBLCell=window["AscDFH"].historyitem_type_Style|16;window["AscDFH"].historyitem_Style_TableBRCell=window["AscDFH"].historyitem_type_Style|17;window["AscDFH"].historyitem_Style_TableWholeTable=
|
|
window["AscDFH"].historyitem_type_Style|18;window["AscDFH"].historyitem_Style_Name=window["AscDFH"].historyitem_type_Style|101;window["AscDFH"].historyitem_Style_BasedOn=window["AscDFH"].historyitem_type_Style|102;window["AscDFH"].historyitem_Style_Next=window["AscDFH"].historyitem_type_Style|103;window["AscDFH"].historyitem_Style_Type=window["AscDFH"].historyitem_type_Style|104;window["AscDFH"].historyitem_Style_QFormat=window["AscDFH"].historyitem_type_Style|105;window["AscDFH"].historyitem_Style_UiPriority=
|
|
window["AscDFH"].historyitem_type_Style|106;window["AscDFH"].historyitem_Style_Hidden=window["AscDFH"].historyitem_type_Style|107;window["AscDFH"].historyitem_Style_SemiHidden=window["AscDFH"].historyitem_type_Style|108;window["AscDFH"].historyitem_Style_UnhideWhenUsed=window["AscDFH"].historyitem_type_Style|109;window["AscDFH"].historyitem_Style_Link=window["AscDFH"].historyitem_type_Style|110;window["AscDFH"].historyitem_Style_Custom=window["AscDFH"].historyitem_type_Style|111;window["AscDFH"].historyitem_Styles_Add=
|
|
window["AscDFH"].historyitem_type_Styles|1;window["AscDFH"].historyitem_Styles_Remove=window["AscDFH"].historyitem_type_Styles|2;window["AscDFH"].historyitem_Styles_ChangeDefaultTextPr=window["AscDFH"].historyitem_type_Styles|3;window["AscDFH"].historyitem_Styles_ChangeDefaultParaPr=window["AscDFH"].historyitem_type_Styles|4;window["AscDFH"].historyitem_Styles_ChangeDefaultParagraphId=window["AscDFH"].historyitem_type_Styles|5;window["AscDFH"].historyitem_Styles_ChangeDefaultCharacterId=window["AscDFH"].historyitem_type_Styles|
|
|
6;window["AscDFH"].historyitem_Styles_ChangeDefaultNumberingId=window["AscDFH"].historyitem_type_Styles|7;window["AscDFH"].historyitem_Styles_ChangeDefaultTableId=window["AscDFH"].historyitem_type_Styles|8;window["AscDFH"].historyitem_Styles_ChangeDefaultTableGridId=window["AscDFH"].historyitem_type_Styles|9;window["AscDFH"].historyitem_Styles_ChangeDefaultHeadingsId=window["AscDFH"].historyitem_type_Styles|10;window["AscDFH"].historyitem_Styles_ChangeDefaultParaListId=window["AscDFH"].historyitem_type_Styles|
|
|
11;window["AscDFH"].historyitem_Styles_ChangeDefaultHeaderId=window["AscDFH"].historyitem_type_Styles|12;window["AscDFH"].historyitem_Styles_ChangeDefaultFooterId=window["AscDFH"].historyitem_type_Styles|13;window["AscDFH"].historyitem_Styles_ChangeDefaultHyperlinkId=window["AscDFH"].historyitem_type_Styles|14;window["AscDFH"].historyitem_Styles_ChangeDefaultFootnoteTextId=window["AscDFH"].historyitem_type_Styles|15;window["AscDFH"].historyitem_Styles_ChangeDefaultFootnoteTextCharId=window["AscDFH"].historyitem_type_Styles|
|
|
16;window["AscDFH"].historyitem_Styles_ChangeDefaultFootnoteReferenceId=window["AscDFH"].historyitem_type_Styles|17;window["AscDFH"].historyitem_Styles_ChangeDefaultNoSpacingId=window["AscDFH"].historyitem_type_Styles|18;window["AscDFH"].historyitem_Styles_ChangeDefaultTitleId=window["AscDFH"].historyitem_type_Styles|19;window["AscDFH"].historyitem_Styles_ChangeDefaultSubtitleId=window["AscDFH"].historyitem_type_Styles|20;window["AscDFH"].historyitem_Styles_ChangeDefaultQuoteId=window["AscDFH"].historyitem_type_Styles|
|
|
21;window["AscDFH"].historyitem_Styles_ChangeDefaultIntenseQuoteId=window["AscDFH"].historyitem_type_Styles|22;window["AscDFH"].historyitem_Styles_ChangeDefaultCaption=window["AscDFH"].historyitem_type_Styles|23;window["AscDFH"].historyitem_Styles_ChangeDefaultEndnoteTextId=window["AscDFH"].historyitem_type_Styles|24;window["AscDFH"].historyitem_Styles_ChangeDefaultEndnoteTextCharId=window["AscDFH"].historyitem_type_Styles|25;window["AscDFH"].historyitem_Styles_ChangeDefaultEndnoteReferenceId=window["AscDFH"].historyitem_type_Styles|
|
|
26;window["AscDFH"].historyitem_MathContent_AddItem=window["AscDFH"].historyitem_type_Math|101;window["AscDFH"].historyitem_MathContent_RemoveItem=window["AscDFH"].historyitem_type_Math|102;window["AscDFH"].historyitem_MathContent_ArgSize=window["AscDFH"].historyitem_type_Math|103;window["AscDFH"].historyitem_MathPara_Jc=window["AscDFH"].historyitem_type_Math|201;window["AscDFH"].historyitem_MathBase_AddItems=window["AscDFH"].historyitem_type_Math|301;window["AscDFH"].historyitem_MathBase_RemoveItems=
|
|
window["AscDFH"].historyitem_type_Math|302;window["AscDFH"].historyitem_MathBase_FontSize=window["AscDFH"].historyitem_type_Math|303;window["AscDFH"].historyitem_MathBase_Shd=window["AscDFH"].historyitem_type_Math|304;window["AscDFH"].historyitem_MathBase_Color=window["AscDFH"].historyitem_type_Math|305;window["AscDFH"].historyitem_MathBase_Unifill=window["AscDFH"].historyitem_type_Math|306;window["AscDFH"].historyitem_MathBase_Underline=window["AscDFH"].historyitem_type_Math|307;window["AscDFH"].historyitem_MathBase_Strikeout=
|
|
window["AscDFH"].historyitem_type_Math|308;window["AscDFH"].historyitem_MathBase_DoubleStrikeout=window["AscDFH"].historyitem_type_Math|309;window["AscDFH"].historyitem_MathBase_Italic=window["AscDFH"].historyitem_type_Math|310;window["AscDFH"].historyitem_MathBase_Bold=window["AscDFH"].historyitem_type_Math|311;window["AscDFH"].historyitem_MathBase_RFontsAscii=window["AscDFH"].historyitem_type_Math|312;window["AscDFH"].historyitem_MathBase_RFontsHAnsi=window["AscDFH"].historyitem_type_Math|313;window["AscDFH"].historyitem_MathBase_RFontsCS=
|
|
window["AscDFH"].historyitem_type_Math|314;window["AscDFH"].historyitem_MathBase_RFontsEastAsia=window["AscDFH"].historyitem_type_Math|315;window["AscDFH"].historyitem_MathBase_RFontsHint=window["AscDFH"].historyitem_type_Math|316;window["AscDFH"].historyitem_MathBase_HighLight=window["AscDFH"].historyitem_type_Math|317;window["AscDFH"].historyitem_MathBase_ReviewType=window["AscDFH"].historyitem_type_Math|318;window["AscDFH"].historyitem_MathBase_TextFill=window["AscDFH"].historyitem_type_Math|319;
|
|
window["AscDFH"].historyitem_MathBase_TextOutline=window["AscDFH"].historyitem_type_Math|320;window["AscDFH"].historyitem_MathBase_HighlightColor=window["AscDFH"].historyitem_type_Math|321;window["AscDFH"].historyitem_MathBox_AlnAt=window["AscDFH"].historyitem_type_Math|401;window["AscDFH"].historyitem_MathBox_ForcedBreak=window["AscDFH"].historyitem_type_Math|402;window["AscDFH"].historyitem_MathFraction_Type=window["AscDFH"].historyitem_type_Math|501;window["AscDFH"].historyitem_MathRadical_HideDegree=
|
|
window["AscDFH"].historyitem_type_Math|601;window["AscDFH"].historyitem_MathNary_LimLoc=window["AscDFH"].historyitem_type_Math|701;window["AscDFH"].historyitem_MathNary_UpperLimit=window["AscDFH"].historyitem_type_Math|702;window["AscDFH"].historyitem_MathNary_LowerLimit=window["AscDFH"].historyitem_type_Math|703;window["AscDFH"].historyitem_MathDelimiter_BegOper=window["AscDFH"].historyitem_type_Math|801;window["AscDFH"].historyitem_MathDelimiter_EndOper=window["AscDFH"].historyitem_type_Math|802;
|
|
window["AscDFH"].historyitem_MathDelimiter_Grow=window["AscDFH"].historyitem_type_Math|803;window["AscDFH"].historyitem_MathDelimiter_Shape=window["AscDFH"].historyitem_type_Math|804;window["AscDFH"].historyitem_MathDelimiter_SetColumn=window["AscDFH"].historyitem_type_Math|805;window["AscDFH"].historyitem_MathGroupChar_Pr=window["AscDFH"].historyitem_type_Math|901;window["AscDFH"].historyitem_MathLimit_Type=window["AscDFH"].historyitem_type_Math|1001;window["AscDFH"].historyitem_MathBorderBox_Top=
|
|
window["AscDFH"].historyitem_type_Math|1101;window["AscDFH"].historyitem_MathBorderBox_Bot=window["AscDFH"].historyitem_type_Math|1102;window["AscDFH"].historyitem_MathBorderBox_Left=window["AscDFH"].historyitem_type_Math|1103;window["AscDFH"].historyitem_MathBorderBox_Right=window["AscDFH"].historyitem_type_Math|1104;window["AscDFH"].historyitem_MathBorderBox_Hor=window["AscDFH"].historyitem_type_Math|1105;window["AscDFH"].historyitem_MathBorderBox_Ver=window["AscDFH"].historyitem_type_Math|1106;
|
|
window["AscDFH"].historyitem_MathBorderBox_TopLTR=window["AscDFH"].historyitem_type_Math|1107;window["AscDFH"].historyitem_MathBorderBox_TopRTL=window["AscDFH"].historyitem_type_Math|1108;window["AscDFH"].historyitem_MathBar_LinePos=window["AscDFH"].historyitem_type_Math|1201;window["AscDFH"].historyitem_MathMatrix_AddRow=window["AscDFH"].historyitem_type_Math|1301;window["AscDFH"].historyitem_MathMatrix_RemoveRow=window["AscDFH"].historyitem_type_Math|1302;window["AscDFH"].historyitem_MathMatrix_AddColumn=
|
|
window["AscDFH"].historyitem_type_Math|1303;window["AscDFH"].historyitem_MathMatrix_RemoveColumn=window["AscDFH"].historyitem_type_Math|1304;window["AscDFH"].historyitem_MathMatrix_BaseJc=window["AscDFH"].historyitem_type_Math|1305;window["AscDFH"].historyitem_MathMatrix_ColumnJc=window["AscDFH"].historyitem_type_Math|1306;window["AscDFH"].historyitem_MathMatrix_Interval=window["AscDFH"].historyitem_type_Math|1307;window["AscDFH"].historyitem_MathMatrix_Plh=window["AscDFH"].historyitem_type_Math|
|
|
1308;window["AscDFH"].historyitem_MathDegree_SubSupType=window["AscDFH"].historyitem_type_Math|1401;window["AscDFH"].historyitem_ParaRun_AddItem=window["AscDFH"].historyitem_type_ParaRun|1;window["AscDFH"].historyitem_ParaRun_RemoveItem=window["AscDFH"].historyitem_type_ParaRun|2;window["AscDFH"].historyitem_ParaRun_Bold=window["AscDFH"].historyitem_type_ParaRun|3;window["AscDFH"].historyitem_ParaRun_Italic=window["AscDFH"].historyitem_type_ParaRun|4;window["AscDFH"].historyitem_ParaRun_Strikeout=
|
|
window["AscDFH"].historyitem_type_ParaRun|5;window["AscDFH"].historyitem_ParaRun_Underline=window["AscDFH"].historyitem_type_ParaRun|6;window["AscDFH"].historyitem_ParaRun_FontFamily=window["AscDFH"].historyitem_type_ParaRun|7;window["AscDFH"].historyitem_ParaRun_FontSize=window["AscDFH"].historyitem_type_ParaRun|8;window["AscDFH"].historyitem_ParaRun_Color=window["AscDFH"].historyitem_type_ParaRun|9;window["AscDFH"].historyitem_ParaRun_VertAlign=window["AscDFH"].historyitem_type_ParaRun|10;window["AscDFH"].historyitem_ParaRun_HighLight=
|
|
window["AscDFH"].historyitem_type_ParaRun|11;window["AscDFH"].historyitem_ParaRun_RStyle=window["AscDFH"].historyitem_type_ParaRun|12;window["AscDFH"].historyitem_ParaRun_Spacing=window["AscDFH"].historyitem_type_ParaRun|13;window["AscDFH"].historyitem_ParaRun_DStrikeout=window["AscDFH"].historyitem_type_ParaRun|14;window["AscDFH"].historyitem_ParaRun_Caps=window["AscDFH"].historyitem_type_ParaRun|15;window["AscDFH"].historyitem_ParaRun_SmallCaps=window["AscDFH"].historyitem_type_ParaRun|16;window["AscDFH"].historyitem_ParaRun_Position=
|
|
window["AscDFH"].historyitem_type_ParaRun|17;window["AscDFH"].historyitem_ParaRun_Value=window["AscDFH"].historyitem_type_ParaRun|18;window["AscDFH"].historyitem_ParaRun_RFonts=window["AscDFH"].historyitem_type_ParaRun|19;window["AscDFH"].historyitem_ParaRun_Lang=window["AscDFH"].historyitem_type_ParaRun|20;window["AscDFH"].historyitem_ParaRun_RFonts_Ascii=window["AscDFH"].historyitem_type_ParaRun|21;window["AscDFH"].historyitem_ParaRun_RFonts_HAnsi=window["AscDFH"].historyitem_type_ParaRun|22;window["AscDFH"].historyitem_ParaRun_RFonts_CS=
|
|
window["AscDFH"].historyitem_type_ParaRun|23;window["AscDFH"].historyitem_ParaRun_RFonts_EastAsia=window["AscDFH"].historyitem_type_ParaRun|24;window["AscDFH"].historyitem_ParaRun_RFonts_Hint=window["AscDFH"].historyitem_type_ParaRun|25;window["AscDFH"].historyitem_ParaRun_Lang_Bidi=window["AscDFH"].historyitem_type_ParaRun|26;window["AscDFH"].historyitem_ParaRun_Lang_EastAsia=window["AscDFH"].historyitem_type_ParaRun|27;window["AscDFH"].historyitem_ParaRun_Lang_Val=window["AscDFH"].historyitem_type_ParaRun|
|
|
28;window["AscDFH"].historyitem_ParaRun_TextPr=window["AscDFH"].historyitem_type_ParaRun|29;window["AscDFH"].historyitem_ParaRun_Unifill=window["AscDFH"].historyitem_type_ParaRun|30;window["AscDFH"].historyitem_ParaRun_Shd=window["AscDFH"].historyitem_type_ParaRun|31;window["AscDFH"].historyitem_ParaRun_MathStyle=window["AscDFH"].historyitem_type_ParaRun|32;window["AscDFH"].historyitem_ParaRun_MathPrp=window["AscDFH"].historyitem_type_ParaRun|33;window["AscDFH"].historyitem_ParaRun_ReviewType=window["AscDFH"].historyitem_type_ParaRun|
|
|
34;window["AscDFH"].historyitem_ParaRun_PrChange=window["AscDFH"].historyitem_type_ParaRun|35;window["AscDFH"].historyitem_ParaRun_TextFill=window["AscDFH"].historyitem_type_ParaRun|36;window["AscDFH"].historyitem_ParaRun_TextOutline=window["AscDFH"].historyitem_type_ParaRun|37;window["AscDFH"].historyitem_ParaRun_PrReviewInfo=window["AscDFH"].historyitem_type_ParaRun|38;window["AscDFH"].historyitem_ParaRun_ContentReviewInfo=window["AscDFH"].historyitem_type_ParaRun|39;window["AscDFH"].historyitem_ParaRun_OnStartSplit=
|
|
window["AscDFH"].historyitem_type_ParaRun|40;window["AscDFH"].historyitem_ParaRun_OnEndSplit=window["AscDFH"].historyitem_type_ParaRun|41;window["AscDFH"].historyitem_ParaRun_MathAlnAt=window["AscDFH"].historyitem_type_ParaRun|42;window["AscDFH"].historyitem_ParaRun_MathForcedBreak=window["AscDFH"].historyitem_type_ParaRun|43;window["AscDFH"].historyitem_ParaRun_HighlightColor=window["AscDFH"].historyitem_type_ParaRun|44;window["AscDFH"].historyitem_Section_PageSize_Orient=window["AscDFH"].historyitem_type_Section|
|
|
1;window["AscDFH"].historyitem_Section_PageSize_Size=window["AscDFH"].historyitem_type_Section|2;window["AscDFH"].historyitem_Section_PageMargins=window["AscDFH"].historyitem_type_Section|3;window["AscDFH"].historyitem_Section_Type=window["AscDFH"].historyitem_type_Section|4;window["AscDFH"].historyitem_Section_Borders_Left=window["AscDFH"].historyitem_type_Section|5;window["AscDFH"].historyitem_Section_Borders_Top=window["AscDFH"].historyitem_type_Section|6;window["AscDFH"].historyitem_Section_Borders_Right=
|
|
window["AscDFH"].historyitem_type_Section|7;window["AscDFH"].historyitem_Section_Borders_Bottom=window["AscDFH"].historyitem_type_Section|8;window["AscDFH"].historyitem_Section_Borders_Display=window["AscDFH"].historyitem_type_Section|9;window["AscDFH"].historyitem_Section_Borders_OffsetFrom=window["AscDFH"].historyitem_type_Section|10;window["AscDFH"].historyitem_Section_Borders_ZOrder=window["AscDFH"].historyitem_type_Section|11;window["AscDFH"].historyitem_Section_Header_First=window["AscDFH"].historyitem_type_Section|
|
|
12;window["AscDFH"].historyitem_Section_Header_Even=window["AscDFH"].historyitem_type_Section|13;window["AscDFH"].historyitem_Section_Header_Default=window["AscDFH"].historyitem_type_Section|14;window["AscDFH"].historyitem_Section_Footer_First=window["AscDFH"].historyitem_type_Section|15;window["AscDFH"].historyitem_Section_Footer_Even=window["AscDFH"].historyitem_type_Section|16;window["AscDFH"].historyitem_Section_Footer_Default=window["AscDFH"].historyitem_type_Section|17;window["AscDFH"].historyitem_Section_TitlePage=
|
|
window["AscDFH"].historyitem_type_Section|18;window["AscDFH"].historyitem_Section_PageMargins_Header=window["AscDFH"].historyitem_type_Section|19;window["AscDFH"].historyitem_Section_PageMargins_Footer=window["AscDFH"].historyitem_type_Section|20;window["AscDFH"].historyitem_Section_PageNumType_Start=window["AscDFH"].historyitem_type_Section|21;window["AscDFH"].historyitem_Section_Columns_EqualWidth=window["AscDFH"].historyitem_type_Section|22;window["AscDFH"].historyitem_Section_Columns_Space=window["AscDFH"].historyitem_type_Section|
|
|
23;window["AscDFH"].historyitem_Section_Columns_Num=window["AscDFH"].historyitem_type_Section|24;window["AscDFH"].historyitem_Section_Columns_Sep=window["AscDFH"].historyitem_type_Section|25;window["AscDFH"].historyitem_Section_Columns_Col=window["AscDFH"].historyitem_type_Section|26;window["AscDFH"].historyitem_Section_Columns_SetCols=window["AscDFH"].historyitem_type_Section|27;window["AscDFH"].historyitem_Section_Footnote_Pos=window["AscDFH"].historyitem_type_Section|28;window["AscDFH"].historyitem_Section_Footnote_NumStart=
|
|
window["AscDFH"].historyitem_type_Section|29;window["AscDFH"].historyitem_Section_Footnote_NumRestart=window["AscDFH"].historyitem_type_Section|30;window["AscDFH"].historyitem_Section_Footnote_NumFormat=window["AscDFH"].historyitem_type_Section|31;window["AscDFH"].historyitem_Section_PageMargins_Gutter=window["AscDFH"].historyitem_type_Section|32;window["AscDFH"].historyitem_Section_Gutter_RTL=window["AscDFH"].historyitem_type_Section|33;window["AscDFH"].historyitem_Section_Endnote_Pos=window["AscDFH"].historyitem_type_Section|
|
|
34;window["AscDFH"].historyitem_Section_Endnote_NumStart=window["AscDFH"].historyitem_type_Section|35;window["AscDFH"].historyitem_Section_Endnote_NumRestart=window["AscDFH"].historyitem_type_Section|36;window["AscDFH"].historyitem_Section_Endnote_NumFormat=window["AscDFH"].historyitem_type_Section|37;window["AscDFH"].historyitem_Section_LnNumType=window["AscDFH"].historyitem_type_Section|38;window["AscDFH"].historyitem_ParaComment_CommentId=window["AscDFH"].historyitem_type_ParaComment|1;window["AscDFH"].historyitem_Field_AddItem=
|
|
window["AscDFH"].historyitem_type_Field|1;window["AscDFH"].historyitem_Field_RemoveItem=window["AscDFH"].historyitem_type_Field|2;window["AscDFH"].historyitem_Field_FormFieldName=window["AscDFH"].historyitem_type_Field|3;window["AscDFH"].historyitem_Field_FormFieldDefaultText=window["AscDFH"].historyitem_type_Field|4;window["AscDFH"].historyitem_Footnotes_AddFootnote=window["AscDFH"].historyitem_type_Footnotes|1;window["AscDFH"].historyitem_Footnotes_SetSeparator=window["AscDFH"].historyitem_type_Footnotes|
|
|
2;window["AscDFH"].historyitem_Footnotes_SetContinuationSeparator=window["AscDFH"].historyitem_type_Footnotes|3;window["AscDFH"].historyitem_Footnotes_SetContinuationNotice=window["AscDFH"].historyitem_type_Footnotes|4;window["AscDFH"].historyitem_Footnotes_RemoveFootnote=window["AscDFH"].historyitem_type_Footnotes|5;window["AscDFH"].historyitem_GlossaryDocument_AddDocPart=window["AscDFH"].historyitem_type_GlossaryDocument|1;window["AscDFH"].historyitem_DocPart_Name=window["AscDFH"].historyitem_type_DocPart|
|
|
1;window["AscDFH"].historyitem_DocPart_Style=window["AscDFH"].historyitem_type_DocPart|2;window["AscDFH"].historyitem_DocPart_Types=window["AscDFH"].historyitem_type_DocPart|3;window["AscDFH"].historyitem_DocPart_Description=window["AscDFH"].historyitem_type_DocPart|4;window["AscDFH"].historyitem_DocPart_GUID=window["AscDFH"].historyitem_type_DocPart|5;window["AscDFH"].historyitem_DocPart_Category=window["AscDFH"].historyitem_type_DocPart|6;window["AscDFH"].historyitem_DocPart_Behavior=window["AscDFH"].historyitem_type_DocPart|
|
|
7;window["AscDFH"].historyitem_SdtPr_Alias=window["AscDFH"].historyitem_type_SdtPr|1;window["AscDFH"].historyitem_SdtPr_Id=window["AscDFH"].historyitem_type_SdtPr|2;window["AscDFH"].historyitem_SdtPr_Tag=window["AscDFH"].historyitem_type_SdtPr|3;window["AscDFH"].historyitem_SdtPr_Label=window["AscDFH"].historyitem_type_SdtPr|4;window["AscDFH"].historyitem_SdtPr_Lock=window["AscDFH"].historyitem_type_SdtPr|5;window["AscDFH"].historyitem_SdtPr_DocPartObj=window["AscDFH"].historyitem_type_SdtPr|6;window["AscDFH"].historyitem_SdtPr_Appearance=
|
|
window["AscDFH"].historyitem_type_SdtPr|7;window["AscDFH"].historyitem_SdtPr_Color=window["AscDFH"].historyitem_type_SdtPr|8;window["AscDFH"].historyitem_SdtPr_CheckBox=window["AscDFH"].historyitem_type_SdtPr|9;window["AscDFH"].historyitem_SdtPr_CheckBox_Checked=window["AscDFH"].historyitem_type_SdtPr|10;window["AscDFH"].historyitem_SdtPr_Picture=window["AscDFH"].historyitem_type_SdtPr|11;window["AscDFH"].historyitem_SdtPr_ComboBox=window["AscDFH"].historyitem_type_SdtPr|12;window["AscDFH"].historyitem_SdtPr_DropDownList=
|
|
window["AscDFH"].historyitem_type_SdtPr|13;window["AscDFH"].historyitem_SdtPr_DatePicker=window["AscDFH"].historyitem_type_SdtPr|14;window["AscDFH"].historyitem_SdtPr_TextPr=window["AscDFH"].historyitem_type_SdtPr|15;window["AscDFH"].historyitem_SdtPr_Placeholder=window["AscDFH"].historyitem_type_SdtPr|16;window["AscDFH"].historyitem_SdtPr_ShowingPlcHdr=window["AscDFH"].historyitem_type_SdtPr|17;window["AscDFH"].historyitem_SdtPr_Equation=window["AscDFH"].historyitem_type_SdtPr|18;window["AscDFH"].historyitem_SdtPr_Text=
|
|
window["AscDFH"].historyitem_type_SdtPr|19;window["AscDFH"].historyitem_SdtPr_Temporary=window["AscDFH"].historyitem_type_SdtPr|20;window["AscDFH"].historyitem_SdtPr_TextForm=window["AscDFH"].historyitem_type_SdtPr|21;window["AscDFH"].historyitem_SdtPr_FormPr=window["AscDFH"].historyitem_type_SdtPr|22;window["AscDFH"].historyitem_SdtPr_PictureFormPr=window["AscDFH"].historyitem_type_SdtPr|23;window["AscDFH"].historyitem_Endnotes_AddEndnote=window["AscDFH"].historyitem_type_Endnotes|1;window["AscDFH"].historyitem_Endnotes_RemoveEndnote=
|
|
window["AscDFH"].historyitem_type_Endnotes|2;window["AscDFH"].historyitem_AutoShapes_SetDrawingBaseCoors=window["AscDFH"].historyitem_type_CommonShape|101;window["AscDFH"].historyitem_AutoShapes_SetWorksheet=window["AscDFH"].historyitem_type_CommonShape|102;window["AscDFH"].historyitem_AutoShapes_AddToDrawingObjects=window["AscDFH"].historyitem_type_CommonShape|103;window["AscDFH"].historyitem_AutoShapes_RemoveFromDrawingObjects=window["AscDFH"].historyitem_type_CommonShape|104;window["AscDFH"].historyitem_AutoShapes_SetBFromSerialize=
|
|
window["AscDFH"].historyitem_type_CommonShape|105;window["AscDFH"].historyitem_AutoShapes_SetLocks=window["AscDFH"].historyitem_type_CommonShape|106;window["AscDFH"].historyitem_AutoShapes_SetDrawingBaseType=window["AscDFH"].historyitem_type_CommonShape|107;window["AscDFH"].historyitem_AutoShapes_SetDrawingBaseExt=window["AscDFH"].historyitem_type_CommonShape|108;window["AscDFH"].historyitem_AutoShapes_SetDrawingBasePos=window["AscDFH"].historyitem_type_CommonShape|109;window["AscDFH"].historyitem_AutoShapes_SetDrawingBaseEditAs=
|
|
window["AscDFH"].historyitem_type_CommonShape|110;window["AscDFH"].historyitem_ChartFormatSetChart=window["AscDFH"].historyitem_type_CommonShape|201;window["AscDFH"].historyitem_CommonChart_RemoveSeries=window["AscDFH"].historyitem_type_CommonShape|301;window["AscDFH"].historyitem_CommonSeries_RemoveDPt=window["AscDFH"].historyitem_type_CommonShape|302;window["AscDFH"].historyitem_CommonLit_RemoveDPt=window["AscDFH"].historyitem_type_CommonShape|303;window["AscDFH"].historyitem_CommonChartFormat_SetParent=
|
|
window["AscDFH"].historyitem_type_CommonShape|304;window["AscDFH"].historyitem_CommonSeries_SetIdx=window["AscDFH"].historyitem_type_CommonShape|305;window["AscDFH"].historyitem_CommonSeries_SetOrder=window["AscDFH"].historyitem_type_CommonShape|306;window["AscDFH"].historyitem_CommonSeries_SetTx=window["AscDFH"].historyitem_type_CommonShape|307;window["AscDFH"].historyitem_CommonSeries_SetSpPr=window["AscDFH"].historyitem_type_CommonShape|308;window["AscDFH"].historyitem_CommonChart_AddSeries=window["AscDFH"].historyitem_type_CommonShape|
|
|
309;window["AscDFH"].historyitem_CommonChart_SetDlbls=window["AscDFH"].historyitem_type_CommonShape|310;window["AscDFH"].historyitem_CommonChart_AddAxId=window["AscDFH"].historyitem_type_CommonShape|311;window["AscDFH"].historyitem_CommonChart_SetVaryColors=window["AscDFH"].historyitem_type_CommonShape|312;window["AscDFH"].historyitem_CommonChart_AddFilteredSeries=window["AscDFH"].historyitem_type_CommonShape|313;window["AscDFH"].historyitem_CommonChart_RemoveFilteredSeries=window["AscDFH"].historyitem_type_CommonShape|
|
|
314;window["AscDFH"].historyitem_Common_AddWatermark=window["AscDFH"].historyitem_type_CommonShape|401;window["AscDFH"].historyitem_Presentation_AddSlide=window["AscDFH"].historyitem_type_Presentation|1;window["AscDFH"].historyitem_Presentation_RemoveSlide=window["AscDFH"].historyitem_type_Presentation|2;window["AscDFH"].historyitem_Presentation_SlideSize=window["AscDFH"].historyitem_type_Presentation|3;window["AscDFH"].historyitem_Presentation_AddSlideMaster=window["AscDFH"].historyitem_type_Presentation|
|
|
4;window["AscDFH"].historyitem_Presentation_ChangeTheme=window["AscDFH"].historyitem_type_Presentation|5;window["AscDFH"].historyitem_Presentation_ChangeColorScheme=window["AscDFH"].historyitem_type_Presentation|6;window["AscDFH"].historyitem_Presentation_SetShowPr=window["AscDFH"].historyitem_type_Presentation|7;window["AscDFH"].historyitem_Presentation_SetDefaultTextStyle=window["AscDFH"].historyitem_type_Presentation|8;window["AscDFH"].historyitem_Presentation_AddSection=window["AscDFH"].historyitem_type_Presentation|
|
|
9;window["AscDFH"].historyitem_Presentation_RemoveSection=window["AscDFH"].historyitem_type_Presentation|10;window["AscDFH"].historyitem_Presentation_SetFirstSlideNum=window["AscDFH"].historyitem_type_Presentation|11;window["AscDFH"].historyitem_Presentation_SetShowSpecialPlsOnTitleSld=window["AscDFH"].historyitem_type_Presentation|12;window["AscDFH"].historyitem_ColorMod_SetName=window["AscDFH"].historyitem_type_ColorMod|1;window["AscDFH"].historyitem_ColorMod_SetVal=window["AscDFH"].historyitem_type_ColorMod|
|
|
2;window["AscDFH"].historyitem_ColorModifiers_AddColorMod=window["AscDFH"].historyitem_type_ColorModifiers|1;window["AscDFH"].historyitem_ColorModifiers_RemoveColorMod=window["AscDFH"].historyitem_type_ColorModifiers|2;window["AscDFH"].historyitem_SysColor_SetId=window["AscDFH"].historyitem_type_SysColor|1;window["AscDFH"].historyitem_SysColor_SetR=window["AscDFH"].historyitem_type_SysColor|2;window["AscDFH"].historyitem_SysColor_SetG=window["AscDFH"].historyitem_type_SysColor|3;window["AscDFH"].historyitem_SysColor_SetB=
|
|
window["AscDFH"].historyitem_type_SysColor|4;window["AscDFH"].historyitem_PrstColor_SetId=window["AscDFH"].historyitem_type_PrstColor|1;window["AscDFH"].historyitem_RGBColor_SetColor=window["AscDFH"].historyitem_type_RGBColor|1;window["AscDFH"].historyitem_SchemeColor_SetId=window["AscDFH"].historyitem_type_SchemeColor|1;window["AscDFH"].historyitem_UniColor_SetColor=window["AscDFH"].historyitem_type_UniColor|1;window["AscDFH"].historyitem_UniColor_SetMods=window["AscDFH"].historyitem_type_UniColor|
|
|
2;window["AscDFH"].historyitem_SrcRect_SetLTRB=window["AscDFH"].historyitem_type_SrcRect|1;window["AscDFH"].historyitem_BlipFill_SetRasterImageId=window["AscDFH"].historyitem_type_BlipFill|1;window["AscDFH"].historyitem_BlipFill_SetVectorImageBin=window["AscDFH"].historyitem_type_BlipFill|2;window["AscDFH"].historyitem_BlipFill_SetSrcRect=window["AscDFH"].historyitem_type_BlipFill|3;window["AscDFH"].historyitem_BlipFill_SetStretch=window["AscDFH"].historyitem_type_BlipFill|4;window["AscDFH"].historyitem_BlipFill_SetTile=
|
|
window["AscDFH"].historyitem_type_BlipFill|5;window["AscDFH"].historyitem_BlipFill_SetRotWithShape=window["AscDFH"].historyitem_type_BlipFill|6;window["AscDFH"].historyitem_SolidFill_SetColor=window["AscDFH"].historyitem_type_SolidFill|1;window["AscDFH"].historyitem_Gs_SetColor=window["AscDFH"].historyitem_type_Gs|1;window["AscDFH"].historyitem_Gs_SetPos=window["AscDFH"].historyitem_type_Gs|2;window["AscDFH"].historyitem_GradLin_SetAngle=window["AscDFH"].historyitem_type_GradLin|1;window["AscDFH"].historyitem_GradLin_SetScale=
|
|
window["AscDFH"].historyitem_type_GradLin|2;window["AscDFH"].historyitem_GradPath_SetPath=window["AscDFH"].historyitem_type_GradPath|1;window["AscDFH"].historyitem_GradPath_SetRect=window["AscDFH"].historyitem_type_GradPath|2;window["AscDFH"].historyitem_GradFill_AddColor=window["AscDFH"].historyitem_type_GradFill|1;window["AscDFH"].historyitem_GradFill_SetLin=window["AscDFH"].historyitem_type_GradFill|2;window["AscDFH"].historyitem_GradFill_SetPath=window["AscDFH"].historyitem_type_GradFill|3;window["AscDFH"].historyitem_PathFill_SetFType=
|
|
window["AscDFH"].historyitem_type_PathFill|1;window["AscDFH"].historyitem_PathFill_SetFgClr=window["AscDFH"].historyitem_type_PathFill|2;window["AscDFH"].historyitem_PathFill_SetBgClr=window["AscDFH"].historyitem_type_PathFill|3;window["AscDFH"].historyitem_UniFill_SetFill=window["AscDFH"].historyitem_type_UniFill|1;window["AscDFH"].historyitem_UniFill_SetTransparent=window["AscDFH"].historyitem_type_UniFill|2;window["AscDFH"].historyitem_EndArrow_SetType=window["AscDFH"].historyitem_type_EndArrow|
|
|
1;window["AscDFH"].historyitem_EndArrow_SetLen=window["AscDFH"].historyitem_type_EndArrow|2;window["AscDFH"].historyitem_EndArrow_SetW=window["AscDFH"].historyitem_type_EndArrow|3;window["AscDFH"].historyitem_LineJoin_SetType=window["AscDFH"].historyitem_type_LineJoin|1;window["AscDFH"].historyitem_LineJoin_SetLimit=window["AscDFH"].historyitem_type_LineJoin|2;window["AscDFH"].historyitem_Ln_SetFill=window["AscDFH"].historyitem_type_Ln|1;window["AscDFH"].historyitem_Ln_SetPrstDash=window["AscDFH"].historyitem_type_Ln|
|
|
2;window["AscDFH"].historyitem_Ln_SetJoin=window["AscDFH"].historyitem_type_Ln|3;window["AscDFH"].historyitem_Ln_SetHeadEnd=window["AscDFH"].historyitem_type_Ln|4;window["AscDFH"].historyitem_Ln_SetTailEnd=window["AscDFH"].historyitem_type_Ln|5;window["AscDFH"].historyitem_Ln_SetAlgn=window["AscDFH"].historyitem_type_Ln|6;window["AscDFH"].historyitem_Ln_SetCap=window["AscDFH"].historyitem_type_Ln|7;window["AscDFH"].historyitem_Ln_SetCmpd=window["AscDFH"].historyitem_type_Ln|8;window["AscDFH"].historyitem_Ln_SetW=
|
|
window["AscDFH"].historyitem_type_Ln|9;window["AscDFH"].historyitem_DefaultShapeDefinition_SetSpPr=window["AscDFH"].historyitem_type_DefaultShapeDefinition|1;window["AscDFH"].historyitem_DefaultShapeDefinition_SetBodyPr=window["AscDFH"].historyitem_type_DefaultShapeDefinition|2;window["AscDFH"].historyitem_DefaultShapeDefinition_SetLstStyle=window["AscDFH"].historyitem_type_DefaultShapeDefinition|3;window["AscDFH"].historyitem_DefaultShapeDefinition_SetStyle=window["AscDFH"].historyitem_type_DefaultShapeDefinition|
|
|
4;window["AscDFH"].historyitem_CNvPr_SetId=window["AscDFH"].historyitem_type_CNvPr|1;window["AscDFH"].historyitem_CNvPr_SetName=window["AscDFH"].historyitem_type_CNvPr|2;window["AscDFH"].historyitem_CNvPr_SetIsHidden=window["AscDFH"].historyitem_type_CNvPr|3;window["AscDFH"].historyitem_CNvPr_SetDescr=window["AscDFH"].historyitem_type_CNvPr|4;window["AscDFH"].historyitem_CNvPr_SetTitle=window["AscDFH"].historyitem_type_CNvPr|5;window["AscDFH"].historyitem_CNvPr_SetHlinkClick=window["AscDFH"].historyitem_type_CNvPr|
|
|
6;window["AscDFH"].historyitem_CNvPr_SetHlinkHover=window["AscDFH"].historyitem_type_CNvPr|7;window["AscDFH"].historyitem_NvPr_SetIsPhoto=window["AscDFH"].historyitem_type_NvPr|1;window["AscDFH"].historyitem_NvPr_SetUserDrawn=window["AscDFH"].historyitem_type_NvPr|2;window["AscDFH"].historyitem_NvPr_SetPh=window["AscDFH"].historyitem_type_NvPr|3;window["AscDFH"].historyitem_NvPr_SetUniMedia=window["AscDFH"].historyitem_type_NvPr|4;window["AscDFH"].historyitem_Ph_SetHasCustomPrompt=window["AscDFH"].historyitem_type_Ph|
|
|
1;window["AscDFH"].historyitem_Ph_SetIdx=window["AscDFH"].historyitem_type_Ph|2;window["AscDFH"].historyitem_Ph_SetOrient=window["AscDFH"].historyitem_type_Ph|3;window["AscDFH"].historyitem_Ph_SetSz=window["AscDFH"].historyitem_type_Ph|4;window["AscDFH"].historyitem_Ph_SetType=window["AscDFH"].historyitem_type_Ph|5;window["AscDFH"].historyitem_UniNvPr_SetCNvPr=window["AscDFH"].historyitem_type_UniNvPr|1;window["AscDFH"].historyitem_UniNvPr_SetUniPr=window["AscDFH"].historyitem_type_UniNvPr|2;window["AscDFH"].historyitem_UniNvPr_SetNvPr=
|
|
window["AscDFH"].historyitem_type_UniNvPr|3;window["AscDFH"].historyitem_UniNvPr_SetUniSpPr=window["AscDFH"].historyitem_type_UniNvPr|4;window["AscDFH"].historyitem_StyleRef_SetIdx=window["AscDFH"].historyitem_type_StyleRef|1;window["AscDFH"].historyitem_StyleRef_SetColor=window["AscDFH"].historyitem_type_StyleRef|2;window["AscDFH"].historyitem_FontRef_SetIdx=window["AscDFH"].historyitem_type_FontRef|1;window["AscDFH"].historyitem_FontRef_SetColor=window["AscDFH"].historyitem_type_FontRef|2;window["AscDFH"].historyitem_Chart_SetAutoTitleDeleted=
|
|
window["AscDFH"].historyitem_type_Chart|1;window["AscDFH"].historyitem_Chart_SetBackWall=window["AscDFH"].historyitem_type_Chart|2;window["AscDFH"].historyitem_Chart_SetDispBlanksAs=window["AscDFH"].historyitem_type_Chart|3;window["AscDFH"].historyitem_Chart_SetFloor=window["AscDFH"].historyitem_type_Chart|4;window["AscDFH"].historyitem_Chart_SetLegend=window["AscDFH"].historyitem_type_Chart|5;window["AscDFH"].historyitem_Chart_AddPivotFmt=window["AscDFH"].historyitem_type_Chart|6;window["AscDFH"].historyitem_Chart_SetPlotArea=
|
|
window["AscDFH"].historyitem_type_Chart|7;window["AscDFH"].historyitem_Chart_SetPlotVisOnly=window["AscDFH"].historyitem_type_Chart|8;window["AscDFH"].historyitem_Chart_SetShowDLblsOverMax=window["AscDFH"].historyitem_type_Chart|9;window["AscDFH"].historyitem_Chart_SetSideWall=window["AscDFH"].historyitem_type_Chart|10;window["AscDFH"].historyitem_Chart_SetTitle=window["AscDFH"].historyitem_type_Chart|11;window["AscDFH"].historyitem_Chart_SetView3D=window["AscDFH"].historyitem_type_Chart|12;window["AscDFH"].historyitem_ChartSpace_SetChart=
|
|
window["AscDFH"].historyitem_type_ChartSpace|1;window["AscDFH"].historyitem_ChartSpace_SetClrMapOvr=window["AscDFH"].historyitem_type_ChartSpace|2;window["AscDFH"].historyitem_ChartSpace_SetDate1904=window["AscDFH"].historyitem_type_ChartSpace|3;window["AscDFH"].historyitem_ChartSpace_SetExternalData=window["AscDFH"].historyitem_type_ChartSpace|4;window["AscDFH"].historyitem_ChartSpace_SetLang=window["AscDFH"].historyitem_type_ChartSpace|5;window["AscDFH"].historyitem_ChartSpace_SetPivotSource=window["AscDFH"].historyitem_type_ChartSpace|
|
|
6;window["AscDFH"].historyitem_ChartSpace_SetPrintSettings=window["AscDFH"].historyitem_type_ChartSpace|7;window["AscDFH"].historyitem_ChartSpace_SetProtection=window["AscDFH"].historyitem_type_ChartSpace|8;window["AscDFH"].historyitem_ChartSpace_SetRoundedCorners=window["AscDFH"].historyitem_type_ChartSpace|9;window["AscDFH"].historyitem_ChartSpace_SetSpPr=window["AscDFH"].historyitem_type_ChartSpace|10;window["AscDFH"].historyitem_ChartSpace_SetStyle=window["AscDFH"].historyitem_type_ChartSpace|
|
|
11;window["AscDFH"].historyitem_ChartSpace_SetTxPr=window["AscDFH"].historyitem_type_ChartSpace|12;window["AscDFH"].historyitem_ChartSpace_SetUserShapes=window["AscDFH"].historyitem_type_ChartSpace|13;window["AscDFH"].historyitem_ChartSpace_SetThemeOverride=window["AscDFH"].historyitem_type_ChartSpace|14;window["AscDFH"].historyitem_ChartSpace_SetGroup=window["AscDFH"].historyitem_type_ChartSpace|15;window["AscDFH"].historyitem_ChartSpace_SetParent=window["AscDFH"].historyitem_type_ChartSpace|16;
|
|
window["AscDFH"].historyitem_ChartSpace_SetNvGrFrProps=window["AscDFH"].historyitem_type_ChartSpace|17;window["AscDFH"].historyitem_ChartSpace_AddUserShape=window["AscDFH"].historyitem_type_ChartSpace|18;window["AscDFH"].historyitem_ChartSpace_RemoveUserShape=window["AscDFH"].historyitem_type_ChartSpace|19;window["AscDFH"].historyitem_ChartSpace_ChartStyle=window["AscDFH"].historyitem_type_ChartSpace|20;window["AscDFH"].historyitem_ChartSpace_ChartColors=window["AscDFH"].historyitem_type_ChartSpace|
|
|
21;window["AscDFH"].historyitem_Legend_SetLayout=window["AscDFH"].historyitem_type_Legend|1;window["AscDFH"].historyitem_Legend_AddLegendEntry=window["AscDFH"].historyitem_type_Legend|2;window["AscDFH"].historyitem_Legend_SetLegendPos=window["AscDFH"].historyitem_type_Legend|3;window["AscDFH"].historyitem_Legend_SetOverlay=window["AscDFH"].historyitem_type_Legend|4;window["AscDFH"].historyitem_Legend_SetSpPr=window["AscDFH"].historyitem_type_Legend|5;window["AscDFH"].historyitem_Legend_SetTxPr=window["AscDFH"].historyitem_type_Legend|
|
|
6;window["AscDFH"].historyitem_Layout_SetH=window["AscDFH"].historyitem_type_Layout|1;window["AscDFH"].historyitem_Layout_SetHMode=window["AscDFH"].historyitem_type_Layout|2;window["AscDFH"].historyitem_Layout_SetLayoutTarget=window["AscDFH"].historyitem_type_Layout|3;window["AscDFH"].historyitem_Layout_SetW=window["AscDFH"].historyitem_type_Layout|4;window["AscDFH"].historyitem_Layout_SetWMode=window["AscDFH"].historyitem_type_Layout|5;window["AscDFH"].historyitem_Layout_SetX=window["AscDFH"].historyitem_type_Layout|
|
|
6;window["AscDFH"].historyitem_Layout_SetXMode=window["AscDFH"].historyitem_type_Layout|7;window["AscDFH"].historyitem_Layout_SetY=window["AscDFH"].historyitem_type_Layout|8;window["AscDFH"].historyitem_Layout_SetYMode=window["AscDFH"].historyitem_type_Layout|9;window["AscDFH"].historyitem_Layout_SetParent=window["AscDFH"].historyitem_type_Layout|10;window["AscDFH"].historyitem_LegendEntry_SetDelete=window["AscDFH"].historyitem_type_LegendEntry|1;window["AscDFH"].historyitem_LegendEntry_SetIdx=window["AscDFH"].historyitem_type_LegendEntry|
|
|
2;window["AscDFH"].historyitem_LegendEntry_SetTxPr=window["AscDFH"].historyitem_type_LegendEntry|3;window["AscDFH"].historyitem_PivotFmt_SetDLbl=window["AscDFH"].historyitem_type_PivotFmt|1;window["AscDFH"].historyitem_PivotFmt_SetIdx=window["AscDFH"].historyitem_type_PivotFmt|2;window["AscDFH"].historyitem_PivotFmt_SetMarker=window["AscDFH"].historyitem_type_PivotFmt|3;window["AscDFH"].historyitem_PivotFmt_SetSpPr=window["AscDFH"].historyitem_type_PivotFmt|4;window["AscDFH"].historyitem_PivotFmt_SetTxPr=
|
|
window["AscDFH"].historyitem_type_PivotFmt|5;window["AscDFH"].historyitem_DLbl_SetDelete=window["AscDFH"].historyitem_type_DLbl|1;window["AscDFH"].historyitem_DLbl_SetDLblPos=window["AscDFH"].historyitem_type_DLbl|2;window["AscDFH"].historyitem_DLbl_SetIdx=window["AscDFH"].historyitem_type_DLbl|3;window["AscDFH"].historyitem_DLbl_SetLayout=window["AscDFH"].historyitem_type_DLbl|4;window["AscDFH"].historyitem_DLbl_SetNumFmt=window["AscDFH"].historyitem_type_DLbl|5;window["AscDFH"].historyitem_DLbl_SetSeparator=
|
|
window["AscDFH"].historyitem_type_DLbl|6;window["AscDFH"].historyitem_DLbl_SetShowBubbleSize=window["AscDFH"].historyitem_type_DLbl|7;window["AscDFH"].historyitem_DLbl_SetShowCatName=window["AscDFH"].historyitem_type_DLbl|8;window["AscDFH"].historyitem_DLbl_SetShowLegendKey=window["AscDFH"].historyitem_type_DLbl|9;window["AscDFH"].historyitem_DLbl_SetShowPercent=window["AscDFH"].historyitem_type_DLbl|10;window["AscDFH"].historyitem_DLbl_SetShowSerName=window["AscDFH"].historyitem_type_DLbl|11;window["AscDFH"].historyitem_DLbl_SetShowVal=
|
|
window["AscDFH"].historyitem_type_DLbl|12;window["AscDFH"].historyitem_DLbl_SetSpPr=window["AscDFH"].historyitem_type_DLbl|13;window["AscDFH"].historyitem_DLbl_SetTx=window["AscDFH"].historyitem_type_DLbl|14;window["AscDFH"].historyitem_DLbl_SetTxPr=window["AscDFH"].historyitem_type_DLbl|15;window["AscDFH"].historyitem_DLbl_SetParent=window["AscDFH"].historyitem_type_DLbl|16;window["AscDFH"].historyitem_Marker_SetSize=window["AscDFH"].historyitem_type_Marker|1;window["AscDFH"].historyitem_Marker_SetSpPr=
|
|
window["AscDFH"].historyitem_type_Marker|2;window["AscDFH"].historyitem_Marker_SetSymbol=window["AscDFH"].historyitem_type_Marker|3;window["AscDFH"].historyitem_PlotArea_AddChart=window["AscDFH"].historyitem_type_PlotArea|1;window["AscDFH"].historyitem_PlotArea_SetCatAx=window["AscDFH"].historyitem_type_PlotArea|2;window["AscDFH"].historyitem_PlotArea_SetDateAx=window["AscDFH"].historyitem_type_PlotArea|3;window["AscDFH"].historyitem_PlotArea_SetDTable=window["AscDFH"].historyitem_type_PlotArea|4;
|
|
window["AscDFH"].historyitem_PlotArea_SetLayout=window["AscDFH"].historyitem_type_PlotArea|5;window["AscDFH"].historyitem_PlotArea_SetSerAx=window["AscDFH"].historyitem_type_PlotArea|6;window["AscDFH"].historyitem_PlotArea_SetSpPr=window["AscDFH"].historyitem_type_PlotArea|7;window["AscDFH"].historyitem_PlotArea_SetValAx=window["AscDFH"].historyitem_type_PlotArea|8;window["AscDFH"].historyitem_PlotArea_AddAxis=window["AscDFH"].historyitem_type_PlotArea|9;window["AscDFH"].historyitem_PlotArea_RemoveChart=
|
|
window["AscDFH"].historyitem_type_PlotArea|10;window["AscDFH"].historyitem_PlotArea_RemoveAxis=window["AscDFH"].historyitem_type_PlotArea|11;window["AscDFH"].historyitem_NumFmt_SetFormatCode=window["AscDFH"].historyitem_type_NumFmt|1;window["AscDFH"].historyitem_NumFmt_SetSourceLinked=window["AscDFH"].historyitem_type_NumFmt|2;window["AscDFH"].historyitem_Scaling_SetLogBase=window["AscDFH"].historyitem_type_Scaling|1;window["AscDFH"].historyitem_Scaling_SetMax=window["AscDFH"].historyitem_type_Scaling|
|
|
2;window["AscDFH"].historyitem_Scaling_SetMin=window["AscDFH"].historyitem_type_Scaling|3;window["AscDFH"].historyitem_Scaling_SetOrientation=window["AscDFH"].historyitem_type_Scaling|4;window["AscDFH"].historyitem_Scaling_SetParent=window["AscDFH"].historyitem_type_Scaling|5;window["AscDFH"].historyitem_DTable_SetShowHorzBorder=window["AscDFH"].historyitem_type_DTable|1;window["AscDFH"].historyitem_DTable_SetShowKeys=window["AscDFH"].historyitem_type_DTable|2;window["AscDFH"].historyitem_DTable_SetShowOutline=
|
|
window["AscDFH"].historyitem_type_DTable|3;window["AscDFH"].historyitem_DTable_SetShowVertBorder=window["AscDFH"].historyitem_type_DTable|4;window["AscDFH"].historyitem_DTable_SetSpPr=window["AscDFH"].historyitem_type_DTable|5;window["AscDFH"].historyitem_DTable_SetTxPr=window["AscDFH"].historyitem_type_DTable|6;window["AscDFH"].historyitem_LineChart_AddAxId=window["AscDFH"].historyitem_type_LineChart|1;window["AscDFH"].historyitem_LineChart_SetDLbls=window["AscDFH"].historyitem_type_LineChart|2;
|
|
window["AscDFH"].historyitem_LineChart_SetDropLines=window["AscDFH"].historyitem_type_LineChart|3;window["AscDFH"].historyitem_LineChart_SetGrouping=window["AscDFH"].historyitem_type_LineChart|4;window["AscDFH"].historyitem_LineChart_SetHiLowLines=window["AscDFH"].historyitem_type_LineChart|5;window["AscDFH"].historyitem_LineChart_SetMarker=window["AscDFH"].historyitem_type_LineChart|6;window["AscDFH"].historyitem_LineChart_SetSmooth=window["AscDFH"].historyitem_type_LineChart|7;window["AscDFH"].historyitem_LineChart_SetUpDownBars=
|
|
window["AscDFH"].historyitem_type_LineChart|8;window["AscDFH"].historyitem_LineChart_SetVaryColors=window["AscDFH"].historyitem_type_LineChart|9;window["AscDFH"].historyitem_DLbls_SetDelete=window["AscDFH"].historyitem_type_DLbls|1;window["AscDFH"].historyitem_DLbls_SetDLbl=window["AscDFH"].historyitem_type_DLbls|2;window["AscDFH"].historyitem_DLbls_SetDLblPos=window["AscDFH"].historyitem_type_DLbls|3;window["AscDFH"].historyitem_DLbls_SetLeaderLines=window["AscDFH"].historyitem_type_DLbls|4;window["AscDFH"].historyitem_DLbls_SetNumFmt=
|
|
window["AscDFH"].historyitem_type_DLbls|5;window["AscDFH"].historyitem_DLbls_SetSeparator=window["AscDFH"].historyitem_type_DLbls|6;window["AscDFH"].historyitem_DLbls_SetShowBubbleSize=window["AscDFH"].historyitem_type_DLbls|7;window["AscDFH"].historyitem_DLbls_SetShowCatName=window["AscDFH"].historyitem_type_DLbls|8;window["AscDFH"].historyitem_DLbls_SetShowLeaderLines=window["AscDFH"].historyitem_type_DLbls|9;window["AscDFH"].historyitem_DLbls_SetShowLegendKey=window["AscDFH"].historyitem_type_DLbls|
|
|
10;window["AscDFH"].historyitem_DLbls_SetShowPercent=window["AscDFH"].historyitem_type_DLbls|11;window["AscDFH"].historyitem_DLbls_SetShowSerName=window["AscDFH"].historyitem_type_DLbls|12;window["AscDFH"].historyitem_DLbls_SetShowVal=window["AscDFH"].historyitem_type_DLbls|13;window["AscDFH"].historyitem_DLbls_SetSpPr=window["AscDFH"].historyitem_type_DLbls|14;window["AscDFH"].historyitem_DLbls_SetTxPr=window["AscDFH"].historyitem_type_DLbls|15;window["AscDFH"].historyitem_UpDownBars_SetDownBars=
|
|
window["AscDFH"].historyitem_type_UpDownBars|1;window["AscDFH"].historyitem_UpDownBars_SetGapWidth=window["AscDFH"].historyitem_type_UpDownBars|2;window["AscDFH"].historyitem_UpDownBars_SetUpBars=window["AscDFH"].historyitem_type_UpDownBars|3;window["AscDFH"].historyitem_BarChart_AddAxId=window["AscDFH"].historyitem_type_BarChart|1;window["AscDFH"].historyitem_BarChart_SetBarDir=window["AscDFH"].historyitem_type_BarChart|2;window["AscDFH"].historyitem_BarChart_SetDLbls=window["AscDFH"].historyitem_type_BarChart|
|
|
3;window["AscDFH"].historyitem_BarChart_SetGapWidth=window["AscDFH"].historyitem_type_BarChart|4;window["AscDFH"].historyitem_BarChart_SetGrouping=window["AscDFH"].historyitem_type_BarChart|5;window["AscDFH"].historyitem_BarChart_SetOverlap=window["AscDFH"].historyitem_type_BarChart|6;window["AscDFH"].historyitem_BarChart_SetSerLines=window["AscDFH"].historyitem_type_BarChart|7;window["AscDFH"].historyitem_BarChart_SetVaryColors=window["AscDFH"].historyitem_type_BarChart|8;window["AscDFH"].historyitem_BarChart_Set3D=
|
|
window["AscDFH"].historyitem_type_BarChart|9;window["AscDFH"].historyitem_BarChart_SetGapDepth=window["AscDFH"].historyitem_type_BarChart|10;window["AscDFH"].historyitem_BarChart_SetShape=window["AscDFH"].historyitem_type_BarChart|11;window["AscDFH"].historyitem_BubbleChart_AddAxId=window["AscDFH"].historyitem_type_BubbleChart|1;window["AscDFH"].historyitem_BubbleChart_SetBubble3D=window["AscDFH"].historyitem_type_BubbleChart|2;window["AscDFH"].historyitem_BubbleChart_SetBubbleScale=window["AscDFH"].historyitem_type_BubbleChart|
|
|
3;window["AscDFH"].historyitem_BubbleChart_SetDLbls=window["AscDFH"].historyitem_type_BubbleChart|4;window["AscDFH"].historyitem_BubbleChart_SetShowNegBubbles=window["AscDFH"].historyitem_type_BubbleChart|5;window["AscDFH"].historyitem_BubbleChart_SetSizeRepresents=window["AscDFH"].historyitem_type_BubbleChart|6;window["AscDFH"].historyitem_BubbleChart_SetVaryColors=window["AscDFH"].historyitem_type_BubbleChart|7;window["AscDFH"].historyitem_DoughnutChart_SetDLbls=window["AscDFH"].historyitem_type_DoughnutChart|
|
|
1;window["AscDFH"].historyitem_DoughnutChart_SetFirstSliceAng=window["AscDFH"].historyitem_type_DoughnutChart|2;window["AscDFH"].historyitem_DoughnutChart_SetHoleSize=window["AscDFH"].historyitem_type_DoughnutChart|3;window["AscDFH"].historyitem_DoughnutChart_SetVaryColor=window["AscDFH"].historyitem_type_DoughnutChart|4;window["AscDFH"].historyitem_OfPieChart_AddCustSplit=window["AscDFH"].historyitem_type_OfPieChart|1;window["AscDFH"].historyitem_OfPieChart_SetDLbls=window["AscDFH"].historyitem_type_OfPieChart|
|
|
2;window["AscDFH"].historyitem_OfPieChart_SetGapWidth=window["AscDFH"].historyitem_type_OfPieChart|3;window["AscDFH"].historyitem_OfPieChart_SetOfPieType=window["AscDFH"].historyitem_type_OfPieChart|4;window["AscDFH"].historyitem_OfPieChart_SetSecondPieSize=window["AscDFH"].historyitem_type_OfPieChart|5;window["AscDFH"].historyitem_OfPieChart_SetSerLines=window["AscDFH"].historyitem_type_OfPieChart|6;window["AscDFH"].historyitem_OfPieChart_SetSplitPos=window["AscDFH"].historyitem_type_OfPieChart|
|
|
7;window["AscDFH"].historyitem_OfPieChart_SetSplitType=window["AscDFH"].historyitem_type_OfPieChart|8;window["AscDFH"].historyitem_OfPieChart_SetVaryColors=window["AscDFH"].historyitem_type_OfPieChart|9;window["AscDFH"].historyitem_PieChart_SetDLbls=window["AscDFH"].historyitem_type_PieChart|1;window["AscDFH"].historyitem_PieChart_SetFirstSliceAng=window["AscDFH"].historyitem_type_PieChart|2;window["AscDFH"].historyitem_PieChart_SetVaryColors=window["AscDFH"].historyitem_type_PieChart|3;window["AscDFH"].historyitem_PieChart_3D=
|
|
window["AscDFH"].historyitem_type_PieChart|4;window["AscDFH"].historyitem_RadarChart_AddAxId=window["AscDFH"].historyitem_type_RadarChart|1;window["AscDFH"].historyitem_RadarChart_SetDLbls=window["AscDFH"].historyitem_type_RadarChart|2;window["AscDFH"].historyitem_RadarChart_SetRadarStyle=window["AscDFH"].historyitem_type_RadarChart|3;window["AscDFH"].historyitem_RadarChart_SetVaryColors=window["AscDFH"].historyitem_type_RadarChart|4;window["AscDFH"].historyitem_ScatterChart_AddAxId=window["AscDFH"].historyitem_type_ScatterChart|
|
|
1;window["AscDFH"].historyitem_ScatterChart_SetDLbls=window["AscDFH"].historyitem_type_ScatterChart|2;window["AscDFH"].historyitem_ScatterChart_SetScatterStyle=window["AscDFH"].historyitem_type_ScatterChart|3;window["AscDFH"].historyitem_ScatterChart_SetVaryColors=window["AscDFH"].historyitem_type_ScatterChart|4;window["AscDFH"].historyitem_StockChart_AddAxId=window["AscDFH"].historyitem_type_StockChart|1;window["AscDFH"].historyitem_StockChart_SetDLbls=window["AscDFH"].historyitem_type_StockChart|
|
|
2;window["AscDFH"].historyitem_StockChart_SetDropLines=window["AscDFH"].historyitem_type_StockChart|3;window["AscDFH"].historyitem_StockChart_SetHiLowLines=window["AscDFH"].historyitem_type_StockChart|4;window["AscDFH"].historyitem_StockChart_SetUpDownBars=window["AscDFH"].historyitem_type_StockChart|5;window["AscDFH"].historyitem_SurfaceChart_AddAxId=window["AscDFH"].historyitem_type_SurfaceChart|1;window["AscDFH"].historyitem_SurfaceChart_AddBandFmt=window["AscDFH"].historyitem_type_SurfaceChart|
|
|
2;window["AscDFH"].historyitem_SurfaceChart_SetWireframe=window["AscDFH"].historyitem_type_SurfaceChart|3;window["AscDFH"].historyitem_BandFmt_SetIdx=window["AscDFH"].historyitem_type_BandFmt|1;window["AscDFH"].historyitem_BandFmt_SetSpPr=window["AscDFH"].historyitem_type_BandFmt|2;window["AscDFH"].historyitem_AreaChart_AddAxId=window["AscDFH"].historyitem_type_AreaChart|1;window["AscDFH"].historyitem_AreaChart_SetDLbls=window["AscDFH"].historyitem_type_AreaChart|2;window["AscDFH"].historyitem_AreaChart_SetDropLines=
|
|
window["AscDFH"].historyitem_type_AreaChart|3;window["AscDFH"].historyitem_AreaChart_SetGrouping=window["AscDFH"].historyitem_type_AreaChart|4;window["AscDFH"].historyitem_AreaChart_SetVaryColors=window["AscDFH"].historyitem_type_AreaChart|5;window["AscDFH"].historyitem_ScatterSer_SetDLbls=window["AscDFH"].historyitem_type_ScatterSer|1;window["AscDFH"].historyitem_ScatterSer_SetDPt=window["AscDFH"].historyitem_type_ScatterSer|2;window["AscDFH"].historyitem_ScatterSer_SetErrBars=window["AscDFH"].historyitem_type_ScatterSer|
|
|
3;window["AscDFH"].historyitem_ScatterSer_SetIdx=window["AscDFH"].historyitem_type_ScatterSer|4;window["AscDFH"].historyitem_ScatterSer_SetMarker=window["AscDFH"].historyitem_type_ScatterSer|5;window["AscDFH"].historyitem_ScatterSer_SetOrder=window["AscDFH"].historyitem_type_ScatterSer|6;window["AscDFH"].historyitem_ScatterSer_SetSmooth=window["AscDFH"].historyitem_type_ScatterSer|7;window["AscDFH"].historyitem_ScatterSer_SetSpPr=window["AscDFH"].historyitem_type_ScatterSer|8;window["AscDFH"].historyitem_ScatterSer_SetTrendline=
|
|
window["AscDFH"].historyitem_type_ScatterSer|9;window["AscDFH"].historyitem_ScatterSer_SetXVal=window["AscDFH"].historyitem_type_ScatterSer|10;window["AscDFH"].historyitem_ScatterSer_SetYVal=window["AscDFH"].historyitem_type_ScatterSer|11;window["AscDFH"].historyitem_DPt_SetBubble3D=window["AscDFH"].historyitem_type_DPt|1;window["AscDFH"].historyitem_DPt_SetExplosion=window["AscDFH"].historyitem_type_DPt|2;window["AscDFH"].historyitem_DPt_SetIdx=window["AscDFH"].historyitem_type_DPt|3;window["AscDFH"].historyitem_DPt_SetInvertIfNegative=
|
|
window["AscDFH"].historyitem_type_DPt|4;window["AscDFH"].historyitem_DPt_SetMarker=window["AscDFH"].historyitem_type_DPt|5;window["AscDFH"].historyitem_DPt_SetPictureOptions=window["AscDFH"].historyitem_type_DPt|6;window["AscDFH"].historyitem_DPt_SetSpPr=window["AscDFH"].historyitem_type_DPt|7;window["AscDFH"].historyitem_ErrBars_SetErrBarType=window["AscDFH"].historyitem_type_ErrBars|1;window["AscDFH"].historyitem_ErrBars_SetErrDir=window["AscDFH"].historyitem_type_ErrBars|2;window["AscDFH"].historyitem_ErrBars_SetErrValType=
|
|
window["AscDFH"].historyitem_type_ErrBars|3;window["AscDFH"].historyitem_ErrBars_SetMinus=window["AscDFH"].historyitem_type_ErrBars|4;window["AscDFH"].historyitem_ErrBars_SetNoEndCap=window["AscDFH"].historyitem_type_ErrBars|5;window["AscDFH"].historyitem_ErrBars_SetPlus=window["AscDFH"].historyitem_type_ErrBars|6;window["AscDFH"].historyitem_ErrBars_SetSpPr=window["AscDFH"].historyitem_type_ErrBars|7;window["AscDFH"].historyitem_ErrBars_SetVal=window["AscDFH"].historyitem_type_ErrBars|8;window["AscDFH"].historyitem_MinusPlus_SetNumLit=
|
|
window["AscDFH"].historyitem_type_MinusPlus|1;window["AscDFH"].historyitem_MinusPlus_SetNumRef=window["AscDFH"].historyitem_type_MinusPlus|2;window["AscDFH"].historyitem_NumLit_SetFormatCode=window["AscDFH"].historyitem_type_NumLit|1;window["AscDFH"].historyitem_NumLit_AddPt=window["AscDFH"].historyitem_type_NumLit|2;window["AscDFH"].historyitem_NumLit_SetPtCount=window["AscDFH"].historyitem_type_NumLit|3;window["AscDFH"].historyitem_NumericPoint_SetFormatCode=window["AscDFH"].historyitem_type_NumericPoint|
|
|
1;window["AscDFH"].historyitem_NumericPoint_SetIdx=window["AscDFH"].historyitem_type_NumericPoint|2;window["AscDFH"].historyitem_NumericPoint_SetVal=window["AscDFH"].historyitem_type_NumericPoint|3;window["AscDFH"].historyitem_NumRef_SetF=window["AscDFH"].historyitem_type_NumRef|1;window["AscDFH"].historyitem_NumRef_SetNumCache=window["AscDFH"].historyitem_type_NumRef|2;window["AscDFH"].historyitem_Trendline_SetBackward=window["AscDFH"].historyitem_type_TrendLine|1;window["AscDFH"].historyitem_Trendline_SetDispEq=
|
|
window["AscDFH"].historyitem_type_TrendLine|2;window["AscDFH"].historyitem_Trendline_SetDispRSqr=window["AscDFH"].historyitem_type_TrendLine|3;window["AscDFH"].historyitem_Trendline_SetForward=window["AscDFH"].historyitem_type_TrendLine|4;window["AscDFH"].historyitem_Trendline_SetIntercept=window["AscDFH"].historyitem_type_TrendLine|5;window["AscDFH"].historyitem_Trendline_SetName=window["AscDFH"].historyitem_type_TrendLine|6;window["AscDFH"].historyitem_Trendline_SetOrder=window["AscDFH"].historyitem_type_TrendLine|
|
|
7;window["AscDFH"].historyitem_Trendline_SetPeriod=window["AscDFH"].historyitem_type_TrendLine|8;window["AscDFH"].historyitem_Trendline_SetSpPr=window["AscDFH"].historyitem_type_TrendLine|9;window["AscDFH"].historyitem_Trendline_SetTrendlineLbl=window["AscDFH"].historyitem_type_TrendLine|10;window["AscDFH"].historyitem_Trendline_SetTrendlineType=window["AscDFH"].historyitem_type_TrendLine|11;window["AscDFH"].historyitem_Tx_SetStrRef=window["AscDFH"].historyitem_type_Tx|1;window["AscDFH"].historyitem_Tx_SetVal=
|
|
window["AscDFH"].historyitem_type_Tx|2;window["AscDFH"].historyitem_StrRef_SetF=window["AscDFH"].historyitem_type_StrRef|1;window["AscDFH"].historyitem_StrRef_SetStrCache=window["AscDFH"].historyitem_type_StrRef|2;window["AscDFH"].historyitem_StrCache_AddPt=window["AscDFH"].historyitem_type_StrCache|1;window["AscDFH"].historyitem_StrCache_SetPtCount=window["AscDFH"].historyitem_type_StrCache|2;window["AscDFH"].historyitem_StrPoint_SetIdx=window["AscDFH"].historyitem_type_StrPoint|1;window["AscDFH"].historyitem_StrPoint_SetVal=
|
|
window["AscDFH"].historyitem_type_StrPoint|2;window["AscDFH"].historyitem_MultiLvlStrRef_SetF=window["AscDFH"].historyitem_type_MultiLvlStrRef|1;window["AscDFH"].historyitem_MultiLvlStrRef_SetMultiLvlStrCache=window["AscDFH"].historyitem_type_MultiLvlStrRef|2;window["AscDFH"].historyitem_MultiLvlStrCache_SetLvl=window["AscDFH"].historyitem_type_MultiLvlStrCache|1;window["AscDFH"].historyitem_MultiLvlStrCache_SetPtCount=window["AscDFH"].historyitem_type_MultiLvlStrCache|2;window["AscDFH"].historyitem_StringLiteral_SetPt=
|
|
window["AscDFH"].historyitem_type_StringLiteral|1;window["AscDFH"].historyitem_StringLiteral_SetPtCount=window["AscDFH"].historyitem_type_StringLiteral|2;window["AscDFH"].historyitem_YVal_SetNumLit=window["AscDFH"].historyitem_type_YVal|1;window["AscDFH"].historyitem_YVal_SetNumRef=window["AscDFH"].historyitem_type_YVal|2;window["AscDFH"].historyitem_AreaSeries_SetCat=window["AscDFH"].historyitem_type_AreaSeries|1;window["AscDFH"].historyitem_AreaSeries_SetDLbls=window["AscDFH"].historyitem_type_AreaSeries|
|
|
2;window["AscDFH"].historyitem_AreaSeries_SetDPt=window["AscDFH"].historyitem_type_AreaSeries|3;window["AscDFH"].historyitem_AreaSeries_SetErrBars=window["AscDFH"].historyitem_type_AreaSeries|4;window["AscDFH"].historyitem_AreaSeries_SetIdx=window["AscDFH"].historyitem_type_AreaSeries|5;window["AscDFH"].historyitem_AreaSeries_SetOrder=window["AscDFH"].historyitem_type_AreaSeries|6;window["AscDFH"].historyitem_AreaSeries_SetPictureOptions=window["AscDFH"].historyitem_type_AreaSeries|7;window["AscDFH"].historyitem_AreaSeries_SetSpPr=
|
|
window["AscDFH"].historyitem_type_AreaSeries|8;window["AscDFH"].historyitem_AreaSeries_SetTrendline=window["AscDFH"].historyitem_type_AreaSeries|9;window["AscDFH"].historyitem_AreaSeries_SetVal=window["AscDFH"].historyitem_type_AreaSeries|10;window["AscDFH"].historyitem_Cat_SetMultiLvlStrRef=window["AscDFH"].historyitem_type_Cat|1;window["AscDFH"].historyitem_Cat_SetNumLit=window["AscDFH"].historyitem_type_Cat|2;window["AscDFH"].historyitem_Cat_SetNumRef=window["AscDFH"].historyitem_type_Cat|3;window["AscDFH"].historyitem_Cat_SetStrLit=
|
|
window["AscDFH"].historyitem_type_Cat|4;window["AscDFH"].historyitem_Cat_SetStrRef=window["AscDFH"].historyitem_type_Cat|5;window["AscDFH"].historyitem_PictureOptions_SetApplyToEnd=window["AscDFH"].historyitem_type_PictureOptions|1;window["AscDFH"].historyitem_PictureOptions_SetApplyToFront=window["AscDFH"].historyitem_type_PictureOptions|2;window["AscDFH"].historyitem_PictureOptions_SetApplyToSides=window["AscDFH"].historyitem_type_PictureOptions|3;window["AscDFH"].historyitem_PictureOptions_SetPictureFormat=
|
|
window["AscDFH"].historyitem_type_PictureOptions|4;window["AscDFH"].historyitem_PictureOptions_SetPictureStackUnit=window["AscDFH"].historyitem_type_PictureOptions|5;window["AscDFH"].historyitem_RadarSeries_SetCat=window["AscDFH"].historyitem_type_RadarSeries|1;window["AscDFH"].historyitem_RadarSeries_SetDLbls=window["AscDFH"].historyitem_type_RadarSeries|2;window["AscDFH"].historyitem_RadarSeries_SetDPt=window["AscDFH"].historyitem_type_RadarSeries|3;window["AscDFH"].historyitem_RadarSeries_SetIdx=
|
|
window["AscDFH"].historyitem_type_RadarSeries|4;window["AscDFH"].historyitem_RadarSeries_SetMarker=window["AscDFH"].historyitem_type_RadarSeries|5;window["AscDFH"].historyitem_RadarSeries_SetOrder=window["AscDFH"].historyitem_type_RadarSeries|6;window["AscDFH"].historyitem_RadarSeries_SetSpPr=window["AscDFH"].historyitem_type_RadarSeries|7;window["AscDFH"].historyitem_RadarSeries_SetVal=window["AscDFH"].historyitem_type_RadarSeries|8;window["AscDFH"].historyitem_BarSeries_SetCat=window["AscDFH"].historyitem_type_BarSeries|
|
|
1;window["AscDFH"].historyitem_BarSeries_SetDLbls=window["AscDFH"].historyitem_type_BarSeries|2;window["AscDFH"].historyitem_BarSeries_SetDPt=window["AscDFH"].historyitem_type_BarSeries|3;window["AscDFH"].historyitem_BarSeries_SetErrBars=window["AscDFH"].historyitem_type_BarSeries|4;window["AscDFH"].historyitem_BarSeries_SetIdx=window["AscDFH"].historyitem_type_BarSeries|5;window["AscDFH"].historyitem_BarSeries_SetInvertIfNegative=window["AscDFH"].historyitem_type_BarSeries|6;window["AscDFH"].historyitem_BarSeries_SetOrder=
|
|
window["AscDFH"].historyitem_type_BarSeries|7;window["AscDFH"].historyitem_BarSeries_SetPictureOptions=window["AscDFH"].historyitem_type_BarSeries|8;window["AscDFH"].historyitem_BarSeries_SetShape=window["AscDFH"].historyitem_type_BarSeries|9;window["AscDFH"].historyitem_BarSeries_SetSpPr=window["AscDFH"].historyitem_type_BarSeries|10;window["AscDFH"].historyitem_BarSeries_SetTrendline=window["AscDFH"].historyitem_type_BarSeries|11;window["AscDFH"].historyitem_BarSeries_SetVal=window["AscDFH"].historyitem_type_BarSeries|
|
|
12;window["AscDFH"].historyitem_LineSeries_SetCat=window["AscDFH"].historyitem_type_LineSeries|1;window["AscDFH"].historyitem_LineSeries_SetDLbls=window["AscDFH"].historyitem_type_LineSeries|2;window["AscDFH"].historyitem_LineSeries_SetDPt=window["AscDFH"].historyitem_type_LineSeries|3;window["AscDFH"].historyitem_LineSeries_SetErrBars=window["AscDFH"].historyitem_type_LineSeries|4;window["AscDFH"].historyitem_LineSeries_SetIdx=window["AscDFH"].historyitem_type_LineSeries|5;window["AscDFH"].historyitem_LineSeries_SetMarker=
|
|
window["AscDFH"].historyitem_type_LineSeries|6;window["AscDFH"].historyitem_LineSeries_SetOrder=window["AscDFH"].historyitem_type_LineSeries|7;window["AscDFH"].historyitem_LineSeries_SetSmooth=window["AscDFH"].historyitem_type_LineSeries|8;window["AscDFH"].historyitem_LineSeries_SetSpPr=window["AscDFH"].historyitem_type_LineSeries|9;window["AscDFH"].historyitem_LineSeries_SetTrendline=window["AscDFH"].historyitem_type_LineSeries|10;window["AscDFH"].historyitem_LineSeries_SetVal=window["AscDFH"].historyitem_type_LineSeries|
|
|
11;window["AscDFH"].historyitem_PieSeries_SetCat=window["AscDFH"].historyitem_type_PieSeries|1;window["AscDFH"].historyitem_PieSeries_SetDLbls=window["AscDFH"].historyitem_type_PieSeries|2;window["AscDFH"].historyitem_PieSeries_SetDPt=window["AscDFH"].historyitem_type_PieSeries|3;window["AscDFH"].historyitem_PieSeries_SetExplosion=window["AscDFH"].historyitem_type_PieSeries|4;window["AscDFH"].historyitem_PieSeries_SetIdx=window["AscDFH"].historyitem_type_PieSeries|5;window["AscDFH"].historyitem_PieSeries_SetOrder=
|
|
window["AscDFH"].historyitem_type_PieSeries|6;window["AscDFH"].historyitem_PieSeries_SetSpPr=window["AscDFH"].historyitem_type_PieSeries|7;window["AscDFH"].historyitem_PieSeries_SetVal=window["AscDFH"].historyitem_type_PieSeries|8;window["AscDFH"].historyitem_SurfaceSeries_SetCat=window["AscDFH"].historyitem_type_SurfaceSeries|1;window["AscDFH"].historyitem_SurfaceSeries_SetIdx=window["AscDFH"].historyitem_type_SurfaceSeries|2;window["AscDFH"].historyitem_SurfaceSeries_SetOrder=window["AscDFH"].historyitem_type_SurfaceSeries|
|
|
3;window["AscDFH"].historyitem_SurfaceSeries_SetSpPr=window["AscDFH"].historyitem_type_SurfaceSeries|4;window["AscDFH"].historyitem_SurfaceSeries_SetVal=window["AscDFH"].historyitem_type_SurfaceSeries|5;window["AscDFH"].historyitem_BubbleSeries_SetBubble3D=window["AscDFH"].historyitem_type_BubbleSeries|1;window["AscDFH"].historyitem_BubbleSeries_SetBubbleSize=window["AscDFH"].historyitem_type_BubbleSeries|2;window["AscDFH"].historyitem_BubbleSeries_SetDLbls=window["AscDFH"].historyitem_type_BubbleSeries|
|
|
3;window["AscDFH"].historyitem_BubbleSeries_SetDPt=window["AscDFH"].historyitem_type_BubbleSeries|4;window["AscDFH"].historyitem_BubbleSeries_SetErrBars=window["AscDFH"].historyitem_type_BubbleSeries|5;window["AscDFH"].historyitem_BubbleSeries_SetIdx=window["AscDFH"].historyitem_type_BubbleSeries|6;window["AscDFH"].historyitem_BubbleSeries_SetInvertIfNegative=window["AscDFH"].historyitem_type_BubbleSeries|7;window["AscDFH"].historyitem_BubbleSeries_SetOrder=window["AscDFH"].historyitem_type_BubbleSeries|
|
|
8;window["AscDFH"].historyitem_BubbleSeries_SetSpPr=window["AscDFH"].historyitem_type_BubbleSeries|9;window["AscDFH"].historyitem_BubbleSeries_SetTrendline=window["AscDFH"].historyitem_type_BubbleSeries|10;window["AscDFH"].historyitem_BubbleSeries_SetXVal=window["AscDFH"].historyitem_type_BubbleSeries|11;window["AscDFH"].historyitem_BubbleSeries_SetYVal=window["AscDFH"].historyitem_type_BubbleSeries|12;window["AscDFH"].historyitem_ExternalData_SetAutoUpdate=window["AscDFH"].historyitem_type_ExternalData|
|
|
1;window["AscDFH"].historyitem_ExternalData_SetId=window["AscDFH"].historyitem_type_ExternalData|2;window["AscDFH"].historyitem_PivotSource_SetFmtId=window["AscDFH"].historyitem_type_PivotSource|1;window["AscDFH"].historyitem_PivotSource_SetName=window["AscDFH"].historyitem_type_PivotSource|2;window["AscDFH"].historyitem_Protection_SetChartObject=window["AscDFH"].historyitem_type_Protection|1;window["AscDFH"].historyitem_Protection_SetData=window["AscDFH"].historyitem_type_Protection|2;window["AscDFH"].historyitem_Protection_SetFormatting=
|
|
window["AscDFH"].historyitem_type_Protection|3;window["AscDFH"].historyitem_Protection_SetSelection=window["AscDFH"].historyitem_type_Protection|4;window["AscDFH"].historyitem_Protection_SetUserInterface=window["AscDFH"].historyitem_type_Protection|5;window["AscDFH"].historyitem_ChartWall_SetPictureOptions=window["AscDFH"].historyitem_type_ChartWall|1;window["AscDFH"].historyitem_ChartWall_SetSpPr=window["AscDFH"].historyitem_type_ChartWall|2;window["AscDFH"].historyitem_ChartWall_SetThickness=window["AscDFH"].historyitem_type_ChartWall|
|
|
3;window["AscDFH"].historyitem_View3d_SetDepthPercent=window["AscDFH"].historyitem_type_View3d|1;window["AscDFH"].historyitem_View3d_SetHPercent=window["AscDFH"].historyitem_type_View3d|2;window["AscDFH"].historyitem_View3d_SetPerspective=window["AscDFH"].historyitem_type_View3d|3;window["AscDFH"].historyitem_View3d_SetRAngAx=window["AscDFH"].historyitem_type_View3d|4;window["AscDFH"].historyitem_View3d_SetRotX=window["AscDFH"].historyitem_type_View3d|5;window["AscDFH"].historyitem_View3d_SetRotY=
|
|
window["AscDFH"].historyitem_type_View3d|6;window["AscDFH"].historyitem_ChartText_SetRich=window["AscDFH"].historyitem_type_ChartText|1;window["AscDFH"].historyitem_ChartText_SetStrRef=window["AscDFH"].historyitem_type_ChartText|2;window["AscDFH"].historyitem_ShapeStyle_SetLnRef=window["AscDFH"].historyitem_type_ShapeStyle|1;window["AscDFH"].historyitem_ShapeStyle_SetFillRef=window["AscDFH"].historyitem_type_ShapeStyle|2;window["AscDFH"].historyitem_ShapeStyle_SetFontRef=window["AscDFH"].historyitem_type_ShapeStyle|
|
|
3;window["AscDFH"].historyitem_ShapeStyle_SetEffectRef=window["AscDFH"].historyitem_type_ShapeStyle|4;window["AscDFH"].historyitem_Xfrm_SetOffX=window["AscDFH"].historyitem_type_Xfrm|1;window["AscDFH"].historyitem_Xfrm_SetOffY=window["AscDFH"].historyitem_type_Xfrm|2;window["AscDFH"].historyitem_Xfrm_SetExtX=window["AscDFH"].historyitem_type_Xfrm|3;window["AscDFH"].historyitem_Xfrm_SetExtY=window["AscDFH"].historyitem_type_Xfrm|4;window["AscDFH"].historyitem_Xfrm_SetChOffX=window["AscDFH"].historyitem_type_Xfrm|
|
|
5;window["AscDFH"].historyitem_Xfrm_SetChOffY=window["AscDFH"].historyitem_type_Xfrm|6;window["AscDFH"].historyitem_Xfrm_SetChExtX=window["AscDFH"].historyitem_type_Xfrm|7;window["AscDFH"].historyitem_Xfrm_SetChExtY=window["AscDFH"].historyitem_type_Xfrm|8;window["AscDFH"].historyitem_Xfrm_SetFlipH=window["AscDFH"].historyitem_type_Xfrm|9;window["AscDFH"].historyitem_Xfrm_SetFlipV=window["AscDFH"].historyitem_type_Xfrm|10;window["AscDFH"].historyitem_Xfrm_SetRot=window["AscDFH"].historyitem_type_Xfrm|
|
|
11;window["AscDFH"].historyitem_Xfrm_SetParent=window["AscDFH"].historyitem_type_Xfrm|12;window["AscDFH"].historyitem_SpPr_SetBwMode=window["AscDFH"].historyitem_type_SpPr|1;window["AscDFH"].historyitem_SpPr_SetXfrm=window["AscDFH"].historyitem_type_SpPr|2;window["AscDFH"].historyitem_SpPr_SetGeometry=window["AscDFH"].historyitem_type_SpPr|3;window["AscDFH"].historyitem_SpPr_SetFill=window["AscDFH"].historyitem_type_SpPr|4;window["AscDFH"].historyitem_SpPr_SetLn=window["AscDFH"].historyitem_type_SpPr|
|
|
5;window["AscDFH"].historyitem_SpPr_SetParent=window["AscDFH"].historyitem_type_SpPr|6;window["AscDFH"].historyitem_SpPr_SetEffectPr=window["AscDFH"].historyitem_type_SpPr|7;window["AscDFH"].historyitem_ClrScheme_AddClr=window["AscDFH"].historyitem_type_ClrScheme|1;window["AscDFH"].historyitem_ClrScheme_SetName=window["AscDFH"].historyitem_type_ClrScheme|2;window["AscDFH"].historyitem_ClrMap_SetClr=window["AscDFH"].historyitem_type_ClrMap|1;window["AscDFH"].historyitem_ExtraClrScheme_SetClrScheme=
|
|
window["AscDFH"].historyitem_type_ExtraClrScheme|1;window["AscDFH"].historyitem_ExtraClrScheme_SetClrMap=window["AscDFH"].historyitem_type_ExtraClrScheme|2;window["AscDFH"].historyitem_FontCollection_SetFontScheme=window["AscDFH"].historyitem_type_FontCollection|1;window["AscDFH"].historyitem_FontCollection_SetLatin=window["AscDFH"].historyitem_type_FontCollection|2;window["AscDFH"].historyitem_FontCollection_SetEA=window["AscDFH"].historyitem_type_FontCollection|3;window["AscDFH"].historyitem_FontCollection_SetCS=
|
|
window["AscDFH"].historyitem_type_FontCollection|4;window["AscDFH"].historyitem_FontScheme_SetName=window["AscDFH"].historyitem_type_FontScheme|1;window["AscDFH"].historyitem_FontScheme_SetMajorFont=window["AscDFH"].historyitem_type_FontScheme|2;window["AscDFH"].historyitem_FontScheme_SetMinorFont=window["AscDFH"].historyitem_type_FontScheme|3;window["AscDFH"].historyitem_FormatScheme_SetName=window["AscDFH"].historyitem_type_FormatScheme|1;window["AscDFH"].historyitem_FormatScheme_AddFillToStyleLst=
|
|
window["AscDFH"].historyitem_type_FormatScheme|2;window["AscDFH"].historyitem_FormatScheme_AddLnToStyleLst=window["AscDFH"].historyitem_type_FormatScheme|3;window["AscDFH"].historyitem_FormatScheme_AddEffectToStyleLst=window["AscDFH"].historyitem_type_FormatScheme|4;window["AscDFH"].historyitem_FormatScheme_AddBgFillToStyleLst=window["AscDFH"].historyitem_type_FormatScheme|5;window["AscDFH"].historyitem_ThemeElements_SetClrScheme=window["AscDFH"].historyitem_type_ThemeElements|1;window["AscDFH"].historyitem_ThemeElements_SetFontScheme=
|
|
window["AscDFH"].historyitem_type_ThemeElements|2;window["AscDFH"].historyitem_ThemeElements_SetFmtScheme=window["AscDFH"].historyitem_type_ThemeElements|3;window["AscDFH"].historyitem_HF_SetDt=window["AscDFH"].historyitem_type_HF|1;window["AscDFH"].historyitem_HF_SetFtr=window["AscDFH"].historyitem_type_HF|2;window["AscDFH"].historyitem_HF_SetHdr=window["AscDFH"].historyitem_type_HF|3;window["AscDFH"].historyitem_HF_SetSldNum=window["AscDFH"].historyitem_type_HF|4;window["AscDFH"].historyitem_BgPr_SetFill=
|
|
window["AscDFH"].historyitem_type_BgPr|1;window["AscDFH"].historyitem_BgPr_SetShadeToTitle=window["AscDFH"].historyitem_type_BgPr|2;window["AscDFH"].historyitem_BgSetBwMode=window["AscDFH"].historyitem_type_Bg|1;window["AscDFH"].historyitem_BgSetBgPr=window["AscDFH"].historyitem_type_Bg|2;window["AscDFH"].historyitem_BgSetBgRef=window["AscDFH"].historyitem_type_Bg|3;window["AscDFH"].historyitem_PrintSettingsSetHeaderFooter=window["AscDFH"].historyitem_type_PrintSettings|1;window["AscDFH"].historyitem_PrintSettingsSetPageMargins=
|
|
window["AscDFH"].historyitem_type_PrintSettings|2;window["AscDFH"].historyitem_PrintSettingsSetPageSetup=window["AscDFH"].historyitem_type_PrintSettings|3;window["AscDFH"].historyitem_HeaderFooterChartSetAlignWithMargins=window["AscDFH"].historyitem_type_HeaderFooterChart|1;window["AscDFH"].historyitem_HeaderFooterChartSetDifferentFirst=window["AscDFH"].historyitem_type_HeaderFooterChart|2;window["AscDFH"].historyitem_HeaderFooterChartSetDifferentOddEven=window["AscDFH"].historyitem_type_HeaderFooterChart|
|
|
3;window["AscDFH"].historyitem_HeaderFooterChartSetEvenFooter=window["AscDFH"].historyitem_type_HeaderFooterChart|4;window["AscDFH"].historyitem_HeaderFooterChartSetEvenHeader=window["AscDFH"].historyitem_type_HeaderFooterChart|5;window["AscDFH"].historyitem_HeaderFooterChartSetFirstFooter=window["AscDFH"].historyitem_type_HeaderFooterChart|6;window["AscDFH"].historyitem_HeaderFooterChartSetFirstHeader=window["AscDFH"].historyitem_type_HeaderFooterChart|7;window["AscDFH"].historyitem_HeaderFooterChartSetOddFooter=
|
|
window["AscDFH"].historyitem_type_HeaderFooterChart|8;window["AscDFH"].historyitem_HeaderFooterChartSetOddHeader=window["AscDFH"].historyitem_type_HeaderFooterChart|9;window["AscDFH"].historyitem_PageMarginsSetB=window["AscDFH"].historyitem_type_PageMarginsChart|1;window["AscDFH"].historyitem_PageMarginsSetFooter=window["AscDFH"].historyitem_type_PageMarginsChart|2;window["AscDFH"].historyitem_PageMarginsSetHeader=window["AscDFH"].historyitem_type_PageMarginsChart|3;window["AscDFH"].historyitem_PageMarginsSetL=
|
|
window["AscDFH"].historyitem_type_PageMarginsChart|4;window["AscDFH"].historyitem_PageMarginsSetR=window["AscDFH"].historyitem_type_PageMarginsChart|5;window["AscDFH"].historyitem_PageMarginsSetT=window["AscDFH"].historyitem_type_PageMarginsChart|6;window["AscDFH"].historyitem_PageSetupSetBlackAndWhite=window["AscDFH"].historyitem_type_PageSetup|1;window["AscDFH"].historyitem_PageSetupSetCopies=window["AscDFH"].historyitem_type_PageSetup|2;window["AscDFH"].historyitem_PageSetupSetDraft=window["AscDFH"].historyitem_type_PageSetup|
|
|
3;window["AscDFH"].historyitem_PageSetupSetFirstPageNumber=window["AscDFH"].historyitem_type_PageSetup|4;window["AscDFH"].historyitem_PageSetupSetHorizontalDpi=window["AscDFH"].historyitem_type_PageSetup|5;window["AscDFH"].historyitem_PageSetupSetOrientation=window["AscDFH"].historyitem_type_PageSetup|6;window["AscDFH"].historyitem_PageSetupSetPaperHeight=window["AscDFH"].historyitem_type_PageSetup|7;window["AscDFH"].historyitem_PageSetupSetPaperSize=window["AscDFH"].historyitem_type_PageSetup|8;
|
|
window["AscDFH"].historyitem_PageSetupSetPaperWidth=window["AscDFH"].historyitem_type_PageSetup|9;window["AscDFH"].historyitem_PageSetupSetUseFirstPageNumb=window["AscDFH"].historyitem_type_PageSetup|10;window["AscDFH"].historyitem_PageSetupSetVerticalDpi=window["AscDFH"].historyitem_type_PageSetup|11;window["AscDFH"].historyitem_ShapeSetBDeleted=window["AscDFH"].historyitem_type_Shape|1;window["AscDFH"].historyitem_ShapeSetNvSpPr=window["AscDFH"].historyitem_type_Shape|2;window["AscDFH"].historyitem_ShapeSetSpPr=
|
|
window["AscDFH"].historyitem_type_Shape|3;window["AscDFH"].historyitem_ShapeSetStyle=window["AscDFH"].historyitem_type_Shape|4;window["AscDFH"].historyitem_ShapeSetTxBody=window["AscDFH"].historyitem_type_Shape|5;window["AscDFH"].historyitem_ShapeSetTextBoxContent=window["AscDFH"].historyitem_type_Shape|6;window["AscDFH"].historyitem_ShapeSetParent=window["AscDFH"].historyitem_type_Shape|7;window["AscDFH"].historyitem_ShapeSetGroup=window["AscDFH"].historyitem_type_Shape|8;window["AscDFH"].historyitem_ShapeSetBodyPr=
|
|
window["AscDFH"].historyitem_type_Shape|9;window["AscDFH"].historyitem_ShapeSetWordShape=window["AscDFH"].historyitem_type_Shape|10;window["AscDFH"].historyitem_ShapeSetSignature=window["AscDFH"].historyitem_type_Shape|11;window["AscDFH"].historyitem_ShapeSetMacro=window["AscDFH"].historyitem_type_Shape|12;window["AscDFH"].historyitem_ShapeSetTextLink=window["AscDFH"].historyitem_type_Shape|13;window["AscDFH"].historyitem_DispUnitsSetBuiltInUnit=window["AscDFH"].historyitem_type_DispUnits|1;window["AscDFH"].historyitem_DispUnitsSetCustUnit=
|
|
window["AscDFH"].historyitem_type_DispUnits|2;window["AscDFH"].historyitem_DispUnitsSetDispUnitsLbl=window["AscDFH"].historyitem_type_DispUnits|3;window["AscDFH"].historyitem_DispUnitsSetParent=window["AscDFH"].historyitem_type_DispUnits|4;window["AscDFH"].historyitem_GroupShapeSetNvGrpSpPr=window["AscDFH"].historyitem_type_GroupShape|1;window["AscDFH"].historyitem_GroupShapeSetSpPr=window["AscDFH"].historyitem_type_GroupShape|2;window["AscDFH"].historyitem_GroupShapeAddToSpTree=window["AscDFH"].historyitem_type_GroupShape|
|
|
3;window["AscDFH"].historyitem_GroupShapeSetParent=window["AscDFH"].historyitem_type_GroupShape|4;window["AscDFH"].historyitem_GroupShapeSetGroup=window["AscDFH"].historyitem_type_GroupShape|5;window["AscDFH"].historyitem_GroupShapeRemoveFromSpTree=window["AscDFH"].historyitem_type_GroupShape|6;window["AscDFH"].historyitem_ImageShapeSetNvPicPr=window["AscDFH"].historyitem_type_ImageShape|1;window["AscDFH"].historyitem_ImageShapeSetSpPr=window["AscDFH"].historyitem_type_ImageShape|2;window["AscDFH"].historyitem_ImageShapeSetBlipFill=
|
|
window["AscDFH"].historyitem_type_ImageShape|3;window["AscDFH"].historyitem_ImageShapeSetParent=window["AscDFH"].historyitem_type_ImageShape|4;window["AscDFH"].historyitem_ImageShapeSetGroup=window["AscDFH"].historyitem_type_ImageShape|5;window["AscDFH"].historyitem_ImageShapeSetStyle=window["AscDFH"].historyitem_type_ImageShape|6;window["AscDFH"].historyitem_ImageShapeSetData=window["AscDFH"].historyitem_type_ImageShape|7;window["AscDFH"].historyitem_ImageShapeSetApplicationId=window["AscDFH"].historyitem_type_ImageShape|
|
|
8;window["AscDFH"].historyitem_ImageShapeSetPixSizes=window["AscDFH"].historyitem_type_ImageShape|9;window["AscDFH"].historyitem_ImageShapeSetObjectFile=window["AscDFH"].historyitem_type_ImageShape|10;window["AscDFH"].historyitem_ImageShapeSetOleType=window["AscDFH"].historyitem_type_ImageShape|11;window["AscDFH"].historyitem_ImageShapeSetBinaryData=window["AscDFH"].historyitem_type_ImageShape|12;window["AscDFH"].historyitem_GeometrySetParent=window["AscDFH"].historyitem_type_Geometry|1;window["AscDFH"].historyitem_GeometryAddAdj=
|
|
window["AscDFH"].historyitem_type_Geometry|2;window["AscDFH"].historyitem_GeometryAddGuide=window["AscDFH"].historyitem_type_Geometry|3;window["AscDFH"].historyitem_GeometryAddCnx=window["AscDFH"].historyitem_type_Geometry|4;window["AscDFH"].historyitem_GeometryAddHandleXY=window["AscDFH"].historyitem_type_Geometry|5;window["AscDFH"].historyitem_GeometryAddHandlePolar=window["AscDFH"].historyitem_type_Geometry|6;window["AscDFH"].historyitem_GeometryAddPath=window["AscDFH"].historyitem_type_Geometry|
|
|
7;window["AscDFH"].historyitem_GeometryAddRect=window["AscDFH"].historyitem_type_Geometry|8;window["AscDFH"].historyitem_GeometrySetPreset=window["AscDFH"].historyitem_type_Geometry|9;window["AscDFH"].historyitem_PathSetStroke=window["AscDFH"].historyitem_type_Path|1;window["AscDFH"].historyitem_PathSetExtrusionOk=window["AscDFH"].historyitem_type_Path|2;window["AscDFH"].historyitem_PathSetFill=window["AscDFH"].historyitem_type_Path|3;window["AscDFH"].historyitem_PathSetPathH=window["AscDFH"].historyitem_type_Path|
|
|
4;window["AscDFH"].historyitem_PathSetPathW=window["AscDFH"].historyitem_type_Path|5;window["AscDFH"].historyitem_PathAddPathCommand=window["AscDFH"].historyitem_type_Path|6;window["AscDFH"].historyitem_TextBodySetBodyPr=window["AscDFH"].historyitem_type_TextBody|1;window["AscDFH"].historyitem_TextBodySetLstStyle=window["AscDFH"].historyitem_type_TextBody|2;window["AscDFH"].historyitem_TextBodySetContent=window["AscDFH"].historyitem_type_TextBody|3;window["AscDFH"].historyitem_TextBodySetParent=window["AscDFH"].historyitem_type_TextBody|
|
|
4;window["AscDFH"].historyitem_CatAxSetAuto=window["AscDFH"].historyitem_type_CatAx|1;window["AscDFH"].historyitem_CatAxSetAxId=window["AscDFH"].historyitem_type_CatAx|2;window["AscDFH"].historyitem_CatAxSetAxPos=window["AscDFH"].historyitem_type_CatAx|3;window["AscDFH"].historyitem_CatAxSetCrossAx=window["AscDFH"].historyitem_type_CatAx|4;window["AscDFH"].historyitem_CatAxSetCrosses=window["AscDFH"].historyitem_type_CatAx|5;window["AscDFH"].historyitem_CatAxSetCrossesAt=window["AscDFH"].historyitem_type_CatAx|
|
|
6;window["AscDFH"].historyitem_CatAxSetDelete=window["AscDFH"].historyitem_type_CatAx|7;window["AscDFH"].historyitem_CatAxSetLblAlgn=window["AscDFH"].historyitem_type_CatAx|8;window["AscDFH"].historyitem_CatAxSetLblOffset=window["AscDFH"].historyitem_type_CatAx|9;window["AscDFH"].historyitem_CatAxSetMajorGridlines=window["AscDFH"].historyitem_type_CatAx|10;window["AscDFH"].historyitem_CatAxSetMajorTickMark=window["AscDFH"].historyitem_type_CatAx|11;window["AscDFH"].historyitem_CatAxSetMinorGridlines=
|
|
window["AscDFH"].historyitem_type_CatAx|12;window["AscDFH"].historyitem_CatAxSetMinorTickMark=window["AscDFH"].historyitem_type_CatAx|13;window["AscDFH"].historyitem_CatAxSetNoMultiLvlLbl=window["AscDFH"].historyitem_type_CatAx|14;window["AscDFH"].historyitem_CatAxSetNumFmt=window["AscDFH"].historyitem_type_CatAx|15;window["AscDFH"].historyitem_CatAxSetScaling=window["AscDFH"].historyitem_type_CatAx|16;window["AscDFH"].historyitem_CatAxSetSpPr=window["AscDFH"].historyitem_type_CatAx|17;window["AscDFH"].historyitem_CatAxSetTickLblPos=
|
|
window["AscDFH"].historyitem_type_CatAx|18;window["AscDFH"].historyitem_CatAxSetTickLblSkip=window["AscDFH"].historyitem_type_CatAx|19;window["AscDFH"].historyitem_CatAxSetTickMarkSkip=window["AscDFH"].historyitem_type_CatAx|20;window["AscDFH"].historyitem_CatAxSetTitle=window["AscDFH"].historyitem_type_CatAx|21;window["AscDFH"].historyitem_CatAxSetTxPr=window["AscDFH"].historyitem_type_CatAx|22;window["AscDFH"].historyitem_ValAxSetAxId=window["AscDFH"].historyitem_type_ValAx|1;window["AscDFH"].historyitem_ValAxSetAxPos=
|
|
window["AscDFH"].historyitem_type_ValAx|2;window["AscDFH"].historyitem_ValAxSetCrossAx=window["AscDFH"].historyitem_type_ValAx|3;window["AscDFH"].historyitem_ValAxSetCrossBetween=window["AscDFH"].historyitem_type_ValAx|4;window["AscDFH"].historyitem_ValAxSetCrosses=window["AscDFH"].historyitem_type_ValAx|5;window["AscDFH"].historyitem_ValAxSetCrossesAt=window["AscDFH"].historyitem_type_ValAx|6;window["AscDFH"].historyitem_ValAxSetDelete=window["AscDFH"].historyitem_type_ValAx|7;window["AscDFH"].historyitem_ValAxSetDispUnits=
|
|
window["AscDFH"].historyitem_type_ValAx|8;window["AscDFH"].historyitem_ValAxSetMajorGridlines=window["AscDFH"].historyitem_type_ValAx|9;window["AscDFH"].historyitem_ValAxSetMajorTickMark=window["AscDFH"].historyitem_type_ValAx|10;window["AscDFH"].historyitem_ValAxSetMajorUnit=window["AscDFH"].historyitem_type_ValAx|11;window["AscDFH"].historyitem_ValAxSetMinorGridlines=window["AscDFH"].historyitem_type_ValAx|12;window["AscDFH"].historyitem_ValAxSetMinorTickMark=window["AscDFH"].historyitem_type_ValAx|
|
|
13;window["AscDFH"].historyitem_ValAxSetMinorUnit=window["AscDFH"].historyitem_type_ValAx|14;window["AscDFH"].historyitem_ValAxSetNumFmt=window["AscDFH"].historyitem_type_ValAx|15;window["AscDFH"].historyitem_ValAxSetScaling=window["AscDFH"].historyitem_type_ValAx|16;window["AscDFH"].historyitem_ValAxSetSpPr=window["AscDFH"].historyitem_type_ValAx|17;window["AscDFH"].historyitem_ValAxSetTickLblPos=window["AscDFH"].historyitem_type_ValAx|18;window["AscDFH"].historyitem_ValAxSetTitle=window["AscDFH"].historyitem_type_ValAx|
|
|
19;window["AscDFH"].historyitem_ValAxSetTxPr=window["AscDFH"].historyitem_type_ValAx|20;window["AscDFH"].historyitem_WrapPolygonSetEdited=window["AscDFH"].historyitem_type_WrapPolygon|1;window["AscDFH"].historyitem_WrapPolygonSetRelPoints=window["AscDFH"].historyitem_type_WrapPolygon|2;window["AscDFH"].historyitem_WrapPolygonSetWrapSide=window["AscDFH"].historyitem_type_WrapPolygon|3;window["AscDFH"].historyitem_DateAxAuto=window["AscDFH"].historyitem_type_DateAx|1;window["AscDFH"].historyitem_DateAxAxId=
|
|
window["AscDFH"].historyitem_type_DateAx|2;window["AscDFH"].historyitem_DateAxAxPos=window["AscDFH"].historyitem_type_DateAx|3;window["AscDFH"].historyitem_DateAxBaseTimeUnit=window["AscDFH"].historyitem_type_DateAx|4;window["AscDFH"].historyitem_DateAxCrossAx=window["AscDFH"].historyitem_type_DateAx|5;window["AscDFH"].historyitem_DateAxCrosses=window["AscDFH"].historyitem_type_DateAx|6;window["AscDFH"].historyitem_DateAxCrossesAt=window["AscDFH"].historyitem_type_DateAx|7;window["AscDFH"].historyitem_DateAxDelete=
|
|
window["AscDFH"].historyitem_type_DateAx|8;window["AscDFH"].historyitem_DateAxLblOffset=window["AscDFH"].historyitem_type_DateAx|9;window["AscDFH"].historyitem_DateAxMajorGridlines=window["AscDFH"].historyitem_type_DateAx|10;window["AscDFH"].historyitem_DateAxMajorTickMark=window["AscDFH"].historyitem_type_DateAx|11;window["AscDFH"].historyitem_DateAxMajorTimeUnit=window["AscDFH"].historyitem_type_DateAx|12;window["AscDFH"].historyitem_DateAxMajorUnit=window["AscDFH"].historyitem_type_DateAx|13;window["AscDFH"].historyitem_DateAxMinorGridlines=
|
|
window["AscDFH"].historyitem_type_DateAx|14;window["AscDFH"].historyitem_DateAxMinorTickMark=window["AscDFH"].historyitem_type_DateAx|15;window["AscDFH"].historyitem_DateAxMinorTimeUnit=window["AscDFH"].historyitem_type_DateAx|16;window["AscDFH"].historyitem_DateAxMinorUnit=window["AscDFH"].historyitem_type_DateAx|17;window["AscDFH"].historyitem_DateAxNumFmt=window["AscDFH"].historyitem_type_DateAx|18;window["AscDFH"].historyitem_DateAxScaling=window["AscDFH"].historyitem_type_DateAx|19;window["AscDFH"].historyitem_DateAxSpPr=
|
|
window["AscDFH"].historyitem_type_DateAx|20;window["AscDFH"].historyitem_DateAxTickLblPos=window["AscDFH"].historyitem_type_DateAx|21;window["AscDFH"].historyitem_DateAxTitle=window["AscDFH"].historyitem_type_DateAx|22;window["AscDFH"].historyitem_DateAxTxPr=window["AscDFH"].historyitem_type_DateAx|23;window["AscDFH"].historyitem_SerAxSetAxId=window["AscDFH"].historyitem_type_SerAx|1;window["AscDFH"].historyitem_SerAxSetAxPos=window["AscDFH"].historyitem_type_SerAx|2;window["AscDFH"].historyitem_SerAxSetCrossAx=
|
|
window["AscDFH"].historyitem_type_SerAx|3;window["AscDFH"].historyitem_SerAxSetCrosses=window["AscDFH"].historyitem_type_SerAx|4;window["AscDFH"].historyitem_SerAxSetCrossesAt=window["AscDFH"].historyitem_type_SerAx|5;window["AscDFH"].historyitem_SerAxSetDelete=window["AscDFH"].historyitem_type_SerAx|6;window["AscDFH"].historyitem_SerAxSetMajorGridlines=window["AscDFH"].historyitem_type_SerAx|7;window["AscDFH"].historyitem_SerAxSetMajorTickMark=window["AscDFH"].historyitem_type_SerAx|8;window["AscDFH"].historyitem_SerAxSetMinorGridlines=
|
|
window["AscDFH"].historyitem_type_SerAx|9;window["AscDFH"].historyitem_SerAxSetMinorTickMark=window["AscDFH"].historyitem_type_SerAx|10;window["AscDFH"].historyitem_SerAxSetNumFmt=window["AscDFH"].historyitem_type_SerAx|11;window["AscDFH"].historyitem_SerAxSetScaling=window["AscDFH"].historyitem_type_SerAx|12;window["AscDFH"].historyitem_SerAxSetSpPr=window["AscDFH"].historyitem_type_SerAx|13;window["AscDFH"].historyitem_SerAxSetTickLblPos=window["AscDFH"].historyitem_type_SerAx|14;window["AscDFH"].historyitem_SerAxSetTickLblSkip=
|
|
window["AscDFH"].historyitem_type_SerAx|15;window["AscDFH"].historyitem_SerAxSetTickMarkSkip=window["AscDFH"].historyitem_type_SerAx|16;window["AscDFH"].historyitem_SerAxSetTitle=window["AscDFH"].historyitem_type_SerAx|17;window["AscDFH"].historyitem_SerAxSetTxPr=window["AscDFH"].historyitem_type_SerAx|18;window["AscDFH"].historyitem_Title_SetLayout=window["AscDFH"].historyitem_type_Title|1;window["AscDFH"].historyitem_Title_SetOverlay=window["AscDFH"].historyitem_type_Title|2;window["AscDFH"].historyitem_Title_SetSpPr=
|
|
window["AscDFH"].historyitem_type_Title|3;window["AscDFH"].historyitem_Title_SetTx=window["AscDFH"].historyitem_type_Title|4;window["AscDFH"].historyitem_Title_SetTxPr=window["AscDFH"].historyitem_type_Title|5;window["AscDFH"].historyitem_SlideSetComments=window["AscDFH"].historyitem_type_Slide|1;window["AscDFH"].historyitem_SlideSetShow=window["AscDFH"].historyitem_type_Slide|2;window["AscDFH"].historyitem_SlideSetShowPhAnim=window["AscDFH"].historyitem_type_Slide|3;window["AscDFH"].historyitem_SlideSetShowMasterSp=
|
|
window["AscDFH"].historyitem_type_Slide|4;window["AscDFH"].historyitem_SlideSetLayout=window["AscDFH"].historyitem_type_Slide|5;window["AscDFH"].historyitem_SlideSetNum=window["AscDFH"].historyitem_type_Slide|6;window["AscDFH"].historyitem_SlideSetTransition=window["AscDFH"].historyitem_type_Slide|7;window["AscDFH"].historyitem_SlideSetSize=window["AscDFH"].historyitem_type_Slide|8;window["AscDFH"].historyitem_SlideSetBg=window["AscDFH"].historyitem_type_Slide|9;window["AscDFH"].historyitem_SlideSetLocks=
|
|
window["AscDFH"].historyitem_type_Slide|10;window["AscDFH"].historyitem_SlideRemoveFromSpTree=window["AscDFH"].historyitem_type_Slide|11;window["AscDFH"].historyitem_SlideAddToSpTree=window["AscDFH"].historyitem_type_Slide|12;window["AscDFH"].historyitem_SlideSetCSldName=window["AscDFH"].historyitem_type_Slide|13;window["AscDFH"].historyitem_SlideSetClrMapOverride=window["AscDFH"].historyitem_type_Slide|14;window["AscDFH"].historyitem_SlideSetNotes=window["AscDFH"].historyitem_type_Slide|15;window["AscDFH"].historyitem_SlideSetTiming=
|
|
window["AscDFH"].historyitem_type_Slide|16;window["AscDFH"].historyitem_SlideLayoutSetMaster=window["AscDFH"].historyitem_type_SlideLayout|1;window["AscDFH"].historyitem_SlideLayoutSetMatchingName=window["AscDFH"].historyitem_type_SlideLayout|2;window["AscDFH"].historyitem_SlideLayoutSetType=window["AscDFH"].historyitem_type_SlideLayout|3;window["AscDFH"].historyitem_SlideLayoutSetBg=window["AscDFH"].historyitem_type_SlideLayout|4;window["AscDFH"].historyitem_SlideLayoutSetCSldName=window["AscDFH"].historyitem_type_SlideLayout|
|
|
5;window["AscDFH"].historyitem_SlideLayoutSetShow=window["AscDFH"].historyitem_type_SlideLayout|6;window["AscDFH"].historyitem_SlideLayoutSetShowPhAnim=window["AscDFH"].historyitem_type_SlideLayout|7;window["AscDFH"].historyitem_SlideLayoutSetShowMasterSp=window["AscDFH"].historyitem_type_SlideLayout|8;window["AscDFH"].historyitem_SlideLayoutSetClrMapOverride=window["AscDFH"].historyitem_type_SlideLayout|9;window["AscDFH"].historyitem_SlideLayoutAddToSpTree=window["AscDFH"].historyitem_type_SlideLayout|
|
|
10;window["AscDFH"].historyitem_SlideLayoutSetSize=window["AscDFH"].historyitem_type_SlideLayout|11;window["AscDFH"].historyitem_SlideLayoutSetHF=window["AscDFH"].historyitem_type_SlideLayout|12;window["AscDFH"].historyitem_SlideLayoutSetTiming=window["AscDFH"].historyitem_type_SlideLayout|13;window["AscDFH"].historyitem_SlideLayoutSetTransition=window["AscDFH"].historyitem_type_SlideLayout|14;window["AscDFH"].historyitem_SlideMasterAddToSpTree=window["AscDFH"].historyitem_type_SlideMaster|1;window["AscDFH"].historyitem_SlideMasterSetTheme=
|
|
window["AscDFH"].historyitem_type_SlideMaster|2;window["AscDFH"].historyitem_SlideMasterSetBg=window["AscDFH"].historyitem_type_SlideMaster|3;window["AscDFH"].historyitem_SlideMasterSetTxStyles=window["AscDFH"].historyitem_type_SlideMaster|4;window["AscDFH"].historyitem_SlideMasterSetCSldName=window["AscDFH"].historyitem_type_SlideMaster|5;window["AscDFH"].historyitem_SlideMasterSetClrMapOverride=window["AscDFH"].historyitem_type_SlideMaster|6;window["AscDFH"].historyitem_SlideMasterAddLayout=window["AscDFH"].historyitem_type_SlideMaster|
|
|
7;window["AscDFH"].historyitem_SlideMasterSetThemeIndex=window["AscDFH"].historyitem_type_SlideMaster|8;window["AscDFH"].historyitem_SlideMasterSetSize=window["AscDFH"].historyitem_type_SlideMaster|9;window["AscDFH"].historyitem_SlideMasterSetHF=window["AscDFH"].historyitem_type_SlideMaster|10;window["AscDFH"].historyitem_SlideMasterSetTiming=window["AscDFH"].historyitem_type_SlideMaster|11;window["AscDFH"].historyitem_SlideMasterSetTransition=window["AscDFH"].historyitem_type_SlideMaster|12;window["AscDFH"].historyitem_SlideCommentsAddComment=
|
|
window["AscDFH"].historyitem_type_SlideComments|1;window["AscDFH"].historyitem_SlideCommentsRemoveComment=window["AscDFH"].historyitem_type_SlideComments|2;window["AscDFH"].historyitem_PropLockerSetId=window["AscDFH"].historyitem_type_PropLocker|1;window["AscDFH"].historyitem_ThemeSetColorScheme=window["AscDFH"].historyitem_type_Theme|1;window["AscDFH"].historyitem_ThemeSetFontScheme=window["AscDFH"].historyitem_type_Theme|2;window["AscDFH"].historyitem_ThemeSetFmtScheme=window["AscDFH"].historyitem_type_Theme|
|
|
3;window["AscDFH"].historyitem_ThemeSetName=window["AscDFH"].historyitem_type_Theme|4;window["AscDFH"].historyitem_ThemeSetIsThemeOverride=window["AscDFH"].historyitem_type_Theme|5;window["AscDFH"].historyitem_ThemeSetSpDef=window["AscDFH"].historyitem_type_Theme|6;window["AscDFH"].historyitem_ThemeSetLnDef=window["AscDFH"].historyitem_type_Theme|7;window["AscDFH"].historyitem_ThemeSetTxDef=window["AscDFH"].historyitem_type_Theme|8;window["AscDFH"].historyitem_ThemeAddExtraClrScheme=window["AscDFH"].historyitem_type_Theme|
|
|
9;window["AscDFH"].historyitem_ThemeRemoveExtraClrScheme=window["AscDFH"].historyitem_type_Theme|10;window["AscDFH"].historyitem_GraphicFrameSetSpPr=window["AscDFH"].historyitem_type_GraphicFrame|1;window["AscDFH"].historyitem_GraphicFrameSetGraphicObject=window["AscDFH"].historyitem_type_GraphicFrame|2;window["AscDFH"].historyitem_GraphicFrameSetSetNvSpPr=window["AscDFH"].historyitem_type_GraphicFrame|3;window["AscDFH"].historyitem_GraphicFrameSetSetParent=window["AscDFH"].historyitem_type_GraphicFrame|
|
|
4;window["AscDFH"].historyitem_GraphicFrameSetSetGroup=window["AscDFH"].historyitem_type_GraphicFrame|5;window["AscDFH"].historyitem_Sparkline_Type=window["AscDFH"].historyitem_type_Sparkline|1;window["AscDFH"].historyitem_Sparkline_LineWeight=window["AscDFH"].historyitem_type_Sparkline|2;window["AscDFH"].historyitem_Sparkline_DisplayEmptyCellsAs=window["AscDFH"].historyitem_type_Sparkline|3;window["AscDFH"].historyitem_Sparkline_Markers=window["AscDFH"].historyitem_type_Sparkline|4;window["AscDFH"].historyitem_Sparkline_High=
|
|
window["AscDFH"].historyitem_type_Sparkline|5;window["AscDFH"].historyitem_Sparkline_Low=window["AscDFH"].historyitem_type_Sparkline|6;window["AscDFH"].historyitem_Sparkline_First=window["AscDFH"].historyitem_type_Sparkline|7;window["AscDFH"].historyitem_Sparkline_Last=window["AscDFH"].historyitem_type_Sparkline|8;window["AscDFH"].historyitem_Sparkline_Negative=window["AscDFH"].historyitem_type_Sparkline|9;window["AscDFH"].historyitem_Sparkline_DisplayXAxis=window["AscDFH"].historyitem_type_Sparkline|
|
|
10;window["AscDFH"].historyitem_Sparkline_DisplayHidden=window["AscDFH"].historyitem_type_Sparkline|11;window["AscDFH"].historyitem_Sparkline_MinAxisType=window["AscDFH"].historyitem_type_Sparkline|12;window["AscDFH"].historyitem_Sparkline_MaxAxisType=window["AscDFH"].historyitem_type_Sparkline|13;window["AscDFH"].historyitem_Sparkline_RightToLeft=window["AscDFH"].historyitem_type_Sparkline|14;window["AscDFH"].historyitem_Sparkline_ManualMax=window["AscDFH"].historyitem_type_Sparkline|15;window["AscDFH"].historyitem_Sparkline_ManualMin=
|
|
window["AscDFH"].historyitem_type_Sparkline|16;window["AscDFH"].historyitem_Sparkline_DateAxis=window["AscDFH"].historyitem_type_Sparkline|17;window["AscDFH"].historyitem_Sparkline_ColorSeries=window["AscDFH"].historyitem_type_Sparkline|18;window["AscDFH"].historyitem_Sparkline_ColorNegative=window["AscDFH"].historyitem_type_Sparkline|19;window["AscDFH"].historyitem_Sparkline_ColorAxis=window["AscDFH"].historyitem_type_Sparkline|20;window["AscDFH"].historyitem_Sparkline_ColorMarkers=window["AscDFH"].historyitem_type_Sparkline|
|
|
21;window["AscDFH"].historyitem_Sparkline_ColorFirst=window["AscDFH"].historyitem_type_Sparkline|22;window["AscDFH"].historyitem_Sparkline_colorLast=window["AscDFH"].historyitem_type_Sparkline|23;window["AscDFH"].historyitem_Sparkline_ColorHigh=window["AscDFH"].historyitem_type_Sparkline|24;window["AscDFH"].historyitem_Sparkline_ColorLow=window["AscDFH"].historyitem_type_Sparkline|25;window["AscDFH"].historyitem_Sparkline_F=window["AscDFH"].historyitem_type_Sparkline|26;window["AscDFH"].historyitem_Sparkline_ChangeData=
|
|
window["AscDFH"].historyitem_type_Sparkline|27;window["AscDFH"].historyitem_Sparkline_RemoveData=window["AscDFH"].historyitem_type_Sparkline|28;window["AscDFH"].historyitem_Sparkline_RemoveSparkline=window["AscDFH"].historyitem_type_Sparkline|29;window["AscDFH"].historyitem_NotesMasterSetHF=window["AscDFH"].historyitem_type_NotesMaster|1;window["AscDFH"].historyitem_NotesMasterSetNotesStyle=window["AscDFH"].historyitem_type_NotesMaster|2;window["AscDFH"].historyitem_NotesMasterSetNotesTheme=window["AscDFH"].historyitem_type_NotesMaster|
|
|
3;window["AscDFH"].historyitem_NotesMasterAddToSpTree=window["AscDFH"].historyitem_type_NotesMaster|4;window["AscDFH"].historyitem_NotesMasterRemoveFromTree=window["AscDFH"].historyitem_type_NotesMaster|5;window["AscDFH"].historyitem_NotesMasterSetBg=window["AscDFH"].historyitem_type_NotesMaster|6;window["AscDFH"].historyitem_NotesMasterAddToNotesLst=window["AscDFH"].historyitem_type_NotesMaster|7;window["AscDFH"].historyitem_NotesMasterSetName=window["AscDFH"].historyitem_type_NotesMaster|8;window["AscDFH"].historyitem_NotesSetClrMap=
|
|
window["AscDFH"].historyitem_type_Notes|1;window["AscDFH"].historyitem_NotesSetShowMasterPhAnim=window["AscDFH"].historyitem_type_Notes|2;window["AscDFH"].historyitem_NotesSetShowMasterSp=window["AscDFH"].historyitem_type_Notes|3;window["AscDFH"].historyitem_NotesAddToSpTree=window["AscDFH"].historyitem_type_Notes|4;window["AscDFH"].historyitem_NotesRemoveFromTree=window["AscDFH"].historyitem_type_Notes|5;window["AscDFH"].historyitem_NotesSetBg=window["AscDFH"].historyitem_type_Notes|6;window["AscDFH"].historyitem_NotesSetName=
|
|
window["AscDFH"].historyitem_type_Notes|7;window["AscDFH"].historyitem_NotesSetSlide=window["AscDFH"].historyitem_type_Notes|8;window["AscDFH"].historyitem_NotesSetNotesMaster=window["AscDFH"].historyitem_type_Notes|9;window["AscDFH"].historyitem_PresentationSectionSetName=window["AscDFH"].historyitem_type_PresentationSection|1;window["AscDFH"].historyitem_PresentationSectionSetGuid=window["AscDFH"].historyitem_type_PresentationSection|2;window["AscDFH"].historyitem_PresentationSectionSetStartIndex=
|
|
window["AscDFH"].historyitem_type_PresentationSection|3;window["AscDFH"].historyitem_RelSizeAnchorFromX=window["AscDFH"].historyitem_type_RelSizeAnchor|1;window["AscDFH"].historyitem_RelSizeAnchorFromY=window["AscDFH"].historyitem_type_RelSizeAnchor|2;window["AscDFH"].historyitem_RelSizeAnchorToX=window["AscDFH"].historyitem_type_RelSizeAnchor|3;window["AscDFH"].historyitem_RelSizeAnchorToY=window["AscDFH"].historyitem_type_RelSizeAnchor|4;window["AscDFH"].historyitem_RelSizeAnchorObject=window["AscDFH"].historyitem_type_RelSizeAnchor|
|
|
5;window["AscDFH"].historyitem_RelSizeAnchorParent=window["AscDFH"].historyitem_type_RelSizeAnchor|6;window["AscDFH"].historyitem_AbsSizeAnchorFromX=window["AscDFH"].historyitem_type_AbsSizeAnchor|1;window["AscDFH"].historyitem_AbsSizeAnchorFromY=window["AscDFH"].historyitem_type_AbsSizeAnchor|2;window["AscDFH"].historyitem_AbsSizeAnchorExtX=window["AscDFH"].historyitem_type_AbsSizeAnchor|3;window["AscDFH"].historyitem_AbsSizeAnchorExtY=window["AscDFH"].historyitem_type_AbsSizeAnchor|4;window["AscDFH"].historyitem_AbsSizeAnchorObject=
|
|
window["AscDFH"].historyitem_type_AbsSizeAnchor|5;window["AscDFH"].historyitem_AbsSizeAnchorParent=window["AscDFH"].historyitem_type_AbsSizeAnchor|6;window["AscDFH"].historyitem_DocumentMacros_Data=window["Asc"].historyitem_type_DocumentMacros|1;window["AscDFH"].historyitem_CoreProperties=window["AscDFH"].historyitem_type_Core|1;window["AscDFH"].historyitem_SlicerViewName=window["AscDFH"].historyitem_type_SlicerView|1;AscDFH.historyitem_TimingBldLst=AscDFH.historyitem_type_Timing|1;AscDFH.historyitem_TimingTnLst=
|
|
AscDFH.historyitem_type_Timing|2;AscDFH.historyitem_CommonTimingListAdd=AscDFH.historyitem_type_CommonTimingList|1;AscDFH.historyitem_CommonTimingListRemove=AscDFH.historyitem_type_CommonTimingList|2;AscDFH.historyitem_ObjectTargetSpid=AscDFH.historyitem_type_ObjectTarget|1;AscDFH.historyitem_BldBaseGrpId=AscDFH.historyitem_type_BldBase|1;AscDFH.historyitem_BldBaseUIExpand=AscDFH.historyitem_type_BldBase|2;AscDFH.historyitem_BldDgmBld=AscDFH.historyitem_type_BldDgm|1;AscDFH.historyitem_BldGraphicBldAsOne=
|
|
AscDFH.historyitem_type_BldGraphic|1;AscDFH.historyitem_BldGraphicBldSub=AscDFH.historyitem_type_BldGraphic|2;AscDFH.historyitem_BldOleChartAnimBg=AscDFH.historyitem_type_BldOleChart|1;AscDFH.historyitem_BldPTmplLst=AscDFH.historyitem_type_BldP|1;AscDFH.historyitem_BldPAdvAuto=AscDFH.historyitem_type_BldP|2;AscDFH.historyitem_BldPAutoUpdateAnimBg=AscDFH.historyitem_type_BldP|3;AscDFH.historyitem_BldPBldLvl=AscDFH.historyitem_type_BldP|4;AscDFH.historyitem_BldPBuild=AscDFH.historyitem_type_BldP|5;
|
|
AscDFH.historyitem_BldPRev=AscDFH.historyitem_type_BldP|6;AscDFH.historyitem_BldSubChart=AscDFH.historyitem_type_BldSub|1;AscDFH.historyitem_BldSubAnimBg=AscDFH.historyitem_type_BldSub|2;AscDFH.historyitem_BldSubBldChart=AscDFH.historyitem_type_BldSub|3;AscDFH.historyitem_BldSubBldDgm=AscDFH.historyitem_type_BldSub|4;AscDFH.historyitem_BldSubRev=AscDFH.historyitem_type_BldSub|5;AscDFH.historyitem_DirTransitionDir=AscDFH.historyitem_type_DirTransition|1;AscDFH.historyitem_OptBlackTransitionThruBlk=
|
|
AscDFH.historyitem_type_OptBlackTransition|1;AscDFH.historyitem_GraphicElDgmId=AscDFH.historyitem_type_GraphicEl|1;AscDFH.historyitem_GraphicElDgmBuildStep=AscDFH.historyitem_type_GraphicEl|2;AscDFH.historyitem_GraphicElChartBuildStep=AscDFH.historyitem_type_GraphicEl|3;AscDFH.historyitem_GraphicElSeriesIdx=AscDFH.historyitem_type_GraphicEl|4;AscDFH.historyitem_GraphicElCategoryIdx=AscDFH.historyitem_type_GraphicEl|5;AscDFH.historyitem_IndexRgSt=AscDFH.historyitem_type_IndexRg|1;AscDFH.historyitem_IndexRgEnd=
|
|
AscDFH.historyitem_type_IndexRg|2;AscDFH.historyitem_TmplLvl=AscDFH.historyitem_type_Tmpl|1;AscDFH.historyitem_TmplTnLst=AscDFH.historyitem_type_Tmpl|2;AscDFH.historyitem_AnimCBhvr=AscDFH.historyitem_type_Anim|1;AscDFH.historyitem_AnimTavLst=AscDFH.historyitem_type_Anim|2;AscDFH.historyitem_AnimBy=AscDFH.historyitem_type_Anim|3;AscDFH.historyitem_AnimCalcmode=AscDFH.historyitem_type_Anim|4;AscDFH.historyitem_AnimFrom=AscDFH.historyitem_type_Anim|5;AscDFH.historyitem_AnimTo=AscDFH.historyitem_type_Anim|
|
|
6;AscDFH.historyitem_AnimValueType=AscDFH.historyitem_type_Anim|7;AscDFH.historyitem_CBhvrAttrNameLst=AscDFH.historyitem_type_CBhvr|1;AscDFH.historyitem_CBhvrCTn=AscDFH.historyitem_type_CBhvr|2;AscDFH.historyitem_CBhvrTgtEl=AscDFH.historyitem_type_CBhvr|3;AscDFH.historyitem_CBhvrAccumulate=AscDFH.historyitem_type_CBhvr|4;AscDFH.historyitem_CBhvrAdditive=AscDFH.historyitem_type_CBhvr|5;AscDFH.historyitem_CBhvrBy=AscDFH.historyitem_type_CBhvr|6;AscDFH.historyitem_CBhvrFrom=AscDFH.historyitem_type_CBhvr|
|
|
7;AscDFH.historyitem_CBhvrOverride=AscDFH.historyitem_type_CBhvr|8;AscDFH.historyitem_CBhvrRctx=AscDFH.historyitem_type_CBhvr|9;AscDFH.historyitem_CBhvrTo=AscDFH.historyitem_type_CBhvr|10;AscDFH.historyitem_CBhvrXfrmType=AscDFH.historyitem_type_CBhvr|11;AscDFH.historyitem_CTnChildTnLst=AscDFH.historyitem_type_CTn|1;AscDFH.historyitem_CTnEndCondLst=AscDFH.historyitem_type_CTn|2;AscDFH.historyitem_CTnEndSync=AscDFH.historyitem_type_CTn|3;AscDFH.historyitem_CTnIterate=AscDFH.historyitem_type_CTn|4;AscDFH.historyitem_CTnStCondLst=
|
|
AscDFH.historyitem_type_CTn|5;AscDFH.historyitem_CTnSubTnLst=AscDFH.historyitem_type_CTn|6;AscDFH.historyitem_CTnAccel=AscDFH.historyitem_type_CTn|7;AscDFH.historyitem_CTnAfterEffect=AscDFH.historyitem_type_CTn|8;AscDFH.historyitem_CTnAutoRev=AscDFH.historyitem_type_CTn|9;AscDFH.historyitem_CTnBldLvl=AscDFH.historyitem_type_CTn|10;AscDFH.historyitem_CTnDecel=AscDFH.historyitem_type_CTn|11;AscDFH.historyitem_CTnDisplay=AscDFH.historyitem_type_CTn|12;AscDFH.historyitem_CTnDur=AscDFH.historyitem_type_CTn|
|
|
13;AscDFH.historyitem_CTnEvtFilter=AscDFH.historyitem_type_CTn|14;AscDFH.historyitem_CTnFill=AscDFH.historyitem_type_CTn|15;AscDFH.historyitem_CTnGrpId=AscDFH.historyitem_type_CTn|16;AscDFH.historyitem_CTnId=AscDFH.historyitem_type_CTn|17;AscDFH.historyitem_CTnMasterRel=AscDFH.historyitem_type_CTn|18;AscDFH.historyitem_CTnNodePh=AscDFH.historyitem_type_CTn|19;AscDFH.historyitem_CTnNodeType=AscDFH.historyitem_type_CTn|20;AscDFH.historyitem_CTnPresetClass=AscDFH.historyitem_type_CTn|21;AscDFH.historyitem_CTnPresetID=
|
|
AscDFH.historyitem_type_CTn|22;AscDFH.historyitem_CTnPresetSubtype=AscDFH.historyitem_type_CTn|23;AscDFH.historyitem_CTnRepeatCount=AscDFH.historyitem_type_CTn|24;AscDFH.historyitem_CTnRepeatDur=AscDFH.historyitem_type_CTn|25;AscDFH.historyitem_CTnRestart=AscDFH.historyitem_type_CTn|26;AscDFH.historyitem_CTnSpd=AscDFH.historyitem_type_CTn|27;AscDFH.historyitem_CTnSyncBehavior=AscDFH.historyitem_type_CTn|28;AscDFH.historyitem_CTnTmFilter=AscDFH.historyitem_type_CTn|29;AscDFH.historyitem_CondRtn=AscDFH.historyitem_type_Cond|
|
|
1;AscDFH.historyitem_CondTgtEl=AscDFH.historyitem_type_Cond|2;AscDFH.historyitem_CondTn=AscDFH.historyitem_type_Cond|3;AscDFH.historyitem_CondDelay=AscDFH.historyitem_type_Cond|4;AscDFH.historyitem_CondEvt=AscDFH.historyitem_type_Cond|5;AscDFH.historyitem_RtnVal=AscDFH.historyitem_type_Rtn|1;AscDFH.historyitem_TgtElInkTgt=AscDFH.historyitem_type_TgtEl|1;AscDFH.historyitem_TgtElSldTgt=AscDFH.historyitem_type_TgtEl|2;AscDFH.historyitem_TgtElSndTgt=AscDFH.historyitem_type_TgtEl|3;AscDFH.historyitem_TgtElSpTgt=
|
|
AscDFH.historyitem_type_TgtEl|4;AscDFH.historyitem_SndTgtEmbed=AscDFH.historyitem_type_SndTgt|1;AscDFH.historyitem_SndTgtName=AscDFH.historyitem_type_SndTgt|2;AscDFH.historyitem_SndTgtBuiltIn=AscDFH.historyitem_type_SndTgt|3;AscDFH.historyitem_SpTgtBg=AscDFH.historyitem_type_SpTgt|1;AscDFH.historyitem_SpTgtGraphicEl=AscDFH.historyitem_type_SpTgt|2;AscDFH.historyitem_SpTgtOleChartEl=AscDFH.historyitem_type_SpTgt|3;AscDFH.historyitem_SpTgtSubSpId=AscDFH.historyitem_type_SpTgt|4;AscDFH.historyitem_SpTgtTxEl=
|
|
AscDFH.historyitem_type_SpTgt|5;AscDFH.historyitem_IterateDataTmAbs=AscDFH.historyitem_type_IterateData|1;AscDFH.historyitem_IterateDataTmPct=AscDFH.historyitem_type_IterateData|2;AscDFH.historyitem_IterateDataBackwards=AscDFH.historyitem_type_IterateData|3;AscDFH.historyitem_IterateDataType=AscDFH.historyitem_type_IterateData|4;AscDFH.historyitem_TmVal=AscDFH.historyitem_type_Tm|1;AscDFH.historyitem_TavVal=AscDFH.historyitem_type_Tav|1;AscDFH.historyitem_TavFmla=AscDFH.historyitem_type_Tav|2;AscDFH.historyitem_TavTm=
|
|
AscDFH.historyitem_type_Tav|3;AscDFH.historyitem_AnimVariantBoolVal=AscDFH.historyitem_type_AnimVariant|1;AscDFH.historyitem_AnimVariantClrVal=AscDFH.historyitem_type_AnimVariant|2;AscDFH.historyitem_AnimVariantFltVal=AscDFH.historyitem_type_AnimVariant|3;AscDFH.historyitem_AnimVariantIntVal=AscDFH.historyitem_type_AnimVariant|4;AscDFH.historyitem_AnimVariantStrVal=AscDFH.historyitem_type_AnimVariant|5;AscDFH.historyitem_AnimClrByRGB=AscDFH.historyitem_type_AnimClr|1;AscDFH.historyitem_AnimClrByHSL=
|
|
AscDFH.historyitem_type_AnimClr|2;AscDFH.historyitem_AnimClrCBhvr=AscDFH.historyitem_type_AnimClr|3;AscDFH.historyitem_AnimClrFrom=AscDFH.historyitem_type_AnimClr|4;AscDFH.historyitem_AnimClrTo=AscDFH.historyitem_type_AnimClr|5;AscDFH.historyitem_AnimClrClrSpc=AscDFH.historyitem_type_AnimClr|6;AscDFH.historyitem_AnimClrDir=AscDFH.historyitem_type_AnimClr|7;AscDFH.historyitem_AnimEffectCBhvr=AscDFH.historyitem_type_AnimEffect|1;AscDFH.historyitem_AnimEffectProgress=AscDFH.historyitem_type_AnimEffect|
|
|
2;AscDFH.historyitem_AnimEffectFilter=AscDFH.historyitem_type_AnimEffect|3;AscDFH.historyitem_AnimEffectPrLst=AscDFH.historyitem_type_AnimEffect|4;AscDFH.historyitem_AnimEffectTransition=AscDFH.historyitem_type_AnimEffect|5;AscDFH.historyitem_AnimMotionBy=AscDFH.historyitem_type_AnimMotion|1;AscDFH.historyitem_AnimMotionCBhvr=AscDFH.historyitem_type_AnimMotion|2;AscDFH.historyitem_AnimMotionFrom=AscDFH.historyitem_type_AnimMotion|3;AscDFH.historyitem_AnimMotionRCtr=AscDFH.historyitem_type_AnimMotion|
|
|
4;AscDFH.historyitem_AnimMotionTo=AscDFH.historyitem_type_AnimMotion|5;AscDFH.historyitem_AnimMotionOrigin=AscDFH.historyitem_type_AnimMotion|6;AscDFH.historyitem_AnimMotionPath=AscDFH.historyitem_type_AnimMotion|7;AscDFH.historyitem_AnimMotionPathEditMode=AscDFH.historyitem_type_AnimMotion|8;AscDFH.historyitem_AnimMotionPtsTypes=AscDFH.historyitem_type_AnimMotion|9;AscDFH.historyitem_AnimMotionRAng=AscDFH.historyitem_type_AnimMotion|10;AscDFH.historyitem_AnimRotCBhvr=AscDFH.historyitem_type_AnimRot|
|
|
1;AscDFH.historyitem_AnimRotBy=AscDFH.historyitem_type_AnimRot|2;AscDFH.historyitem_AnimRotFrom=AscDFH.historyitem_type_AnimRot|3;AscDFH.historyitem_AnimRotTo=AscDFH.historyitem_type_AnimRot|4;AscDFH.historyitem_AnimScaleCBhvr=AscDFH.historyitem_type_AnimScale|1;AscDFH.historyitem_AnimScaleBy=AscDFH.historyitem_type_AnimScale|2;AscDFH.historyitem_AnimScaleFrom=AscDFH.historyitem_type_AnimScale|3;AscDFH.historyitem_AnimScaleTo=AscDFH.historyitem_type_AnimScale|4;AscDFH.historyitem_AnimScaleZoomContents=
|
|
AscDFH.historyitem_type_AnimScale|5;AscDFH.historyitem_AudioCMediaNode=AscDFH.historyitem_type_Audio|1;AscDFH.historyitem_AudioIsNarration=AscDFH.historyitem_type_Audio|2;AscDFH.historyitem_CMediaNodeCTn=AscDFH.historyitem_type_CMediaNode|1;AscDFH.historyitem_CMediaNodeTgtEl=AscDFH.historyitem_type_CMediaNode|2;AscDFH.historyitem_CMediaNodeMute=AscDFH.historyitem_type_CMediaNode|3;AscDFH.historyitem_CMediaNodeNumSld=AscDFH.historyitem_type_CMediaNode|4;AscDFH.historyitem_CMediaNodeShowWhenStopped=
|
|
AscDFH.historyitem_type_CMediaNode|5;AscDFH.historyitem_CMediaNodeVol=AscDFH.historyitem_type_CMediaNode|6;AscDFH.historyitem_CmdCBhvr=AscDFH.historyitem_type_Cmd|1;AscDFH.historyitem_CmdCmd=AscDFH.historyitem_type_Cmd|2;AscDFH.historyitem_CmdType=AscDFH.historyitem_type_Cmd|3;AscDFH.historyitem_OleChartElLvl=AscDFH.historyitem_type_OleChartEl|1;AscDFH.historyitem_OleChartElType=AscDFH.historyitem_type_OleChartEl|2;AscDFH.historyitem_TimeNodeContainerCTn=AscDFH.historyitem_type_TimeNodeContainer|
|
|
1;AscDFH.historyitem_SeqNextCondLst=AscDFH.historyitem_type_Seq|1;AscDFH.historyitem_SeqPrevCondLst=AscDFH.historyitem_type_Seq|2;AscDFH.historyitem_SeqConcurrent=AscDFH.historyitem_type_Seq|3;AscDFH.historyitem_SeqNextAc=AscDFH.historyitem_type_Seq|4;AscDFH.historyitem_SeqPrevAc=AscDFH.historyitem_type_Seq|5;AscDFH.historyitem_SetCBhvr=AscDFH.historyitem_type_Set|1;AscDFH.historyitem_SetTo=AscDFH.historyitem_type_Set|2;AscDFH.historyitem_VideoCMediaNode=AscDFH.historyitem_type_Video|1;AscDFH.historyitem_VideoFullScrn=
|
|
AscDFH.historyitem_type_Video|2;AscDFH.historyitem_OleChartElLvl=AscDFH.historyitem_type_OleChartEl|1;AscDFH.historyitem_OleChartElType=AscDFH.historyitem_type_OleChartEl|2;AscDFH.historyitem_TlPointX=AscDFH.historyitem_type_TlPoint|1;AscDFH.historyitem_TlPointY=AscDFH.historyitem_type_TlPoint|2;AscDFH.historyitem_SndAcEndSnd=AscDFH.historyitem_type_SndAc|1;AscDFH.historyitem_SndAcStSnd=AscDFH.historyitem_type_SndAc|2;AscDFH.historyitem_StSndSnd=AscDFH.historyitem_type_StSnd|1;AscDFH.historyitem_StSndLoop=
|
|
AscDFH.historyitem_type_StSnd|2;AscDFH.historyitem_TxElCharRg=AscDFH.historyitem_type_TxEl|1;AscDFH.historyitem_TxElPRg=AscDFH.historyitem_type_TxEl|2;AscDFH.historyitem_WheelSpokes=AscDFH.historyitem_type_Wheel|1;AscDFH.historyitem_AttrNameText=AscDFH.historyitem_type_AttrName|1;AscDFH.historyitem_SldSzCX=AscDFH.historyitem_type_SldSz|1;AscDFH.historyitem_SldSzCY=AscDFH.historyitem_type_SldSz|2;AscDFH.historyitem_SldSzType=AscDFH.historyitem_type_SldSz|3;AscDFH.historyitem_ChartStyleAxisTitle=AscDFH.historyitem_type_ChartStyle|
|
|
1;AscDFH.historyitem_ChartStyleCategoryAxis=AscDFH.historyitem_type_ChartStyle|2;AscDFH.historyitem_ChartStyleChartArea=AscDFH.historyitem_type_ChartStyle|3;AscDFH.historyitem_ChartStyleDataLabel=AscDFH.historyitem_type_ChartStyle|4;AscDFH.historyitem_ChartStyleDataLabelCallout=AscDFH.historyitem_type_ChartStyle|5;AscDFH.historyitem_ChartStyleDataPoint=AscDFH.historyitem_type_ChartStyle|5;AscDFH.historyitem_ChartStyleDataPoint3D=AscDFH.historyitem_type_ChartStyle|6;AscDFH.historyitem_ChartStyleDataPointLine=
|
|
AscDFH.historyitem_type_ChartStyle|7;AscDFH.historyitem_ChartStyleDataPointMarker=AscDFH.historyitem_type_ChartStyle|8;AscDFH.historyitem_ChartStyleDataPointWireframe=AscDFH.historyitem_type_ChartStyle|9;AscDFH.historyitem_ChartStyleDataTable=AscDFH.historyitem_type_ChartStyle|10;AscDFH.historyitem_ChartStyleDownBar=AscDFH.historyitem_type_ChartStyle|11;AscDFH.historyitem_ChartStyleDropLine=AscDFH.historyitem_type_ChartStyle|12;AscDFH.historyitem_ChartStyleErrorBar=AscDFH.historyitem_type_ChartStyle|
|
|
13;AscDFH.historyitem_ChartStyleFloor=AscDFH.historyitem_type_ChartStyle|14;AscDFH.historyitem_ChartStyleGridlineMajor=AscDFH.historyitem_type_ChartStyle|15;AscDFH.historyitem_ChartStyleGridlineMinor=AscDFH.historyitem_type_ChartStyle|16;AscDFH.historyitem_ChartStyleHiLoLine=AscDFH.historyitem_type_ChartStyle|17;AscDFH.historyitem_ChartStyleLeaderLine=AscDFH.historyitem_type_ChartStyle|18;AscDFH.historyitem_ChartStyleLegend=AscDFH.historyitem_type_ChartStyle|19;AscDFH.historyitem_ChartStylePlotArea=
|
|
AscDFH.historyitem_type_ChartStyle|20;AscDFH.historyitem_ChartStylePlotArea3D=AscDFH.historyitem_type_ChartStyle|21;AscDFH.historyitem_ChartStyleSeriesAxis=AscDFH.historyitem_type_ChartStyle|22;AscDFH.historyitem_ChartStyleSeriesLine=AscDFH.historyitem_type_ChartStyle|23;AscDFH.historyitem_ChartStyleTitle=AscDFH.historyitem_type_ChartStyle|24;AscDFH.historyitem_ChartStyleTrendline=AscDFH.historyitem_type_ChartStyle|25;AscDFH.historyitem_ChartStyleTrendlineLabel=AscDFH.historyitem_type_ChartStyle|
|
|
26;AscDFH.historyitem_ChartStyleUpBar=AscDFH.historyitem_type_ChartStyle|27;AscDFH.historyitem_ChartStyleValueAxis=AscDFH.historyitem_type_ChartStyle|28;AscDFH.historyitem_ChartStyleWall=AscDFH.historyitem_type_ChartStyle|29;AscDFH.historyitem_ChartStyleMarkerLayout=AscDFH.historyitem_type_ChartStyle|30;AscDFH.historyitem_ChartStyleMarkerId=AscDFH.historyitem_type_ChartStyle|31;AscDFH.historyitem_ChartStyleEntryType=AscDFH.historyitem_type_ChartStyleEntry|1;AscDFH.historyitem_ChartStyleEntryLineWidthScale=
|
|
AscDFH.historyitem_type_ChartStyleEntry|2;AscDFH.historyitem_ChartStyleEntryLnRef=AscDFH.historyitem_type_ChartStyleEntry|3;AscDFH.historyitem_ChartStyleEntryFillRef=AscDFH.historyitem_type_ChartStyleEntry|4;AscDFH.historyitem_ChartStyleEntryEffectRef=AscDFH.historyitem_type_ChartStyleEntry|5;AscDFH.historyitem_ChartStyleEntryFontRef=AscDFH.historyitem_type_ChartStyleEntry|6;AscDFH.historyitem_ChartStyleEntryDefRPr=AscDFH.historyitem_type_ChartStyleEntry|7;AscDFH.historyitem_ChartStyleEntryBodyPr=
|
|
AscDFH.historyitem_type_ChartStyleEntry|8;AscDFH.historyitem_ChartStyleEntrySpPr=AscDFH.historyitem_type_ChartStyleEntry|9;AscDFH.historyitem_MarkerLayoutSymbol=AscDFH.historyitem_type_MarkerLayout|1;AscDFH.historyitem_MarkerLayoutSize=AscDFH.historyitem_type_MarkerLayout|2;window["AscDFH"].historydescription_Cut=1;window["AscDFH"].historydescription_PasteButtonIE=2;window["AscDFH"].historydescription_PasteButtonNotIE=3;window["AscDFH"].historydescription_ChartDrawingObjects=4;window["AscDFH"].historydescription_CommonControllerCheckChartText=
|
|
5;window["AscDFH"].historydescription_CommonControllerUnGroup=6;window["AscDFH"].historydescription_CommonControllerCheckSelected=7;window["AscDFH"].historydescription_CommonControllerSetGraphicObject=8;window["AscDFH"].historydescription_CommonStatesAddNewShape=9;window["AscDFH"].historydescription_CommonStatesRotate=10;window["AscDFH"].historydescription_PasteNative=11;window["AscDFH"].historydescription_Document_GroupUnGroup=12;window["AscDFH"].historydescription_Document_SetDefaultLanguage=13;
|
|
window["AscDFH"].historydescription_Document_ChangeColorScheme=14;window["AscDFH"].historydescription_Document_AddChart=15;window["AscDFH"].historydescription_Document_EditChart=16;window["AscDFH"].historydescription_Document_DragText=17;window["AscDFH"].historydescription_Document_DocumentContentExtendToPos=18;window["AscDFH"].historydescription_Document_AddHeader=19;window["AscDFH"].historydescription_Document_AddFooter=20;window["AscDFH"].historydescription_Document_ParagraphExtendToPos=21;window["AscDFH"].historydescription_Document_ParagraphChangeFrame=
|
|
22;window["AscDFH"].historydescription_Document_ReplaceAll=23;window["AscDFH"].historydescription_Document_ReplaceSingle=24;window["AscDFH"].historydescription_Document_TableAddNewRowByTab=25;window["AscDFH"].historydescription_Document_AddNewShape=26;window["AscDFH"].historydescription_Document_EditWrapPolygon=27;window["AscDFH"].historydescription_Document_MoveInlineObject=28;window["AscDFH"].historydescription_Document_CopyAndMoveInlineObject=29;window["AscDFH"].historydescription_Document_RotateInlineDrawing=
|
|
30;window["AscDFH"].historydescription_Document_RotateFlowDrawingCtrl=31;window["AscDFH"].historydescription_Document_RotateFlowDrawingNoCtrl=32;window["AscDFH"].historydescription_Document_MoveInGroup=33;window["AscDFH"].historydescription_Document_ChangeWrapContour=34;window["AscDFH"].historydescription_Document_ChangeWrapContourAddPoint=35;window["AscDFH"].historydescription_Document_GrObjectsBringToFront=36;window["AscDFH"].historydescription_Document_GrObjectsBringForwardGroup=37;window["AscDFH"].historydescription_Document_GrObjectsBringForward=
|
|
38;window["AscDFH"].historydescription_Document_GrObjectsSendToBackGroup=39;window["AscDFH"].historydescription_Document_GrObjectsSendToBack=40;window["AscDFH"].historydescription_Document_GrObjectsBringBackwardGroup=41;window["AscDFH"].historydescription_Document_GrObjectsBringBackward=42;window["AscDFH"].historydescription_Document_GrObjectsChangeWrapPolygon=43;window["AscDFH"].historydescription_Document_MathAutoCorrect=44;window["AscDFH"].historydescription_Document_SetFramePrWithFontFamily=45;
|
|
window["AscDFH"].historydescription_Document_SetFramePr=46;window["AscDFH"].historydescription_Document_SetFramePrWithFontFamilyLong=47;window["AscDFH"].historydescription_Document_SetTextFontName=48;window["AscDFH"].historydescription_Document_SetTextFontSize=49;window["AscDFH"].historydescription_Document_SetTextBold=50;window["AscDFH"].historydescription_Document_SetTextItalic=51;window["AscDFH"].historydescription_Document_SetTextUnderline=52;window["AscDFH"].historydescription_Document_SetTextStrikeout=
|
|
53;window["AscDFH"].historydescription_Document_SetTextDStrikeout=54;window["AscDFH"].historydescription_Document_SetTextSpacing=55;window["AscDFH"].historydescription_Document_SetTextCaps=56;window["AscDFH"].historydescription_Document_SetTextSmallCaps=57;window["AscDFH"].historydescription_Document_SetTextPosition=58;window["AscDFH"].historydescription_Document_SetTextLang=59;window["AscDFH"].historydescription_Document_SetParagraphLineSpacing=60;window["AscDFH"].historydescription_Document_SetParagraphLineSpacingBeforeAfter=
|
|
61;window["AscDFH"].historydescription_Document_IncFontSize=62;window["AscDFH"].historydescription_Document_DecFontSize=63;window["AscDFH"].historydescription_Document_SetParagraphBorders=64;window["AscDFH"].historydescription_Document_SetParagraphPr=65;window["AscDFH"].historydescription_Document_SetParagraphAlign=66;window["AscDFH"].historydescription_Document_SetTextVertAlign=67;window["AscDFH"].historydescription_Document_SetParagraphNumbering=68;window["AscDFH"].historydescription_Document_SetParagraphStyle=
|
|
69;window["AscDFH"].historydescription_Document_SetParagraphPageBreakBefore=70;window["AscDFH"].historydescription_Document_SetParagraphWidowControl=71;window["AscDFH"].historydescription_Document_SetParagraphKeepLines=72;window["AscDFH"].historydescription_Document_SetParagraphKeepNext=73;window["AscDFH"].historydescription_Document_SetParagraphContextualSpacing=74;window["AscDFH"].historydescription_Document_SetTextHighlightNone=75;window["AscDFH"].historydescription_Document_SetTextHighlightColor=
|
|
76;window["AscDFH"].historydescription_Document_SetTextColor=77;window["AscDFH"].historydescription_Document_SetParagraphShd=78;window["AscDFH"].historydescription_Document_SetParagraphIndent=79;window["AscDFH"].historydescription_Document_IncParagraphIndent=80;window["AscDFH"].historydescription_Document_DecParagraphIndent=81;window["AscDFH"].historydescription_Document_SetParagraphIndentRight=82;window["AscDFH"].historydescription_Document_SetParagraphIndentFirstLine=83;window["AscDFH"].historydescription_Document_SetPageOrientation=
|
|
84;window["AscDFH"].historydescription_Document_SetPageSize=85;window["AscDFH"].historydescription_Document_AddPageBreak=86;window["AscDFH"].historydescription_Document_AddPageNumToHdrFtr=87;window["AscDFH"].historydescription_Document_AddPageNumToCurrentPos=88;window["AscDFH"].historydescription_Document_SetHdrFtrDistance=89;window["AscDFH"].historydescription_Document_SetHdrFtrFirstPage=90;window["AscDFH"].historydescription_Document_SetHdrFtrEvenAndOdd=91;window["AscDFH"].historydescription_Document_SetHdrFtrLink=
|
|
92;window["AscDFH"].historydescription_Document_AddTable=93;window["AscDFH"].historydescription_Document_TableAddRowAbove=94;window["AscDFH"].historydescription_Document_TableAddRowBelow=95;window["AscDFH"].historydescription_Document_TableAddColumnLeft=96;window["AscDFH"].historydescription_Document_TableAddColumnRight=97;window["AscDFH"].historydescription_Document_TableRemoveRow=98;window["AscDFH"].historydescription_Document_TableRemoveColumn=99;window["AscDFH"].historydescription_Document_RemoveTable=
|
|
100;window["AscDFH"].historydescription_Document_MergeTableCells=101;window["AscDFH"].historydescription_Document_SplitTableCells=102;window["AscDFH"].historydescription_Document_ApplyTablePr=103;window["AscDFH"].historydescription_Document_AddImageUrl=104;window["AscDFH"].historydescription_Document_AddImageUrlLong=105;window["AscDFH"].historydescription_Document_AddImageToPage=106;window["AscDFH"].historydescription_Document_ApplyImagePrWithUrl=107;window["AscDFH"].historydescription_Document_ApplyImagePrWithUrlLong=
|
|
108;window["AscDFH"].historydescription_Document_ApplyImagePrWithFillUrl=109;window["AscDFH"].historydescription_Document_ApplyImagePrWithFillUrlLong=110;window["AscDFH"].historydescription_Document_ApplyImagePr=111;window["AscDFH"].historydescription_Document_AddHyperlink=112;window["AscDFH"].historydescription_Document_ChangeHyperlink=113;window["AscDFH"].historydescription_Document_RemoveHyperlink=114;window["AscDFH"].historydescription_Document_ReplaceMisspelledWord=115;window["AscDFH"].historydescription_Document_AddComment=
|
|
116;window["AscDFH"].historydescription_Document_RemoveComment=117;window["AscDFH"].historydescription_Document_ChangeComment=118;window["AscDFH"].historydescription_Document_SetTextFontNameLong=119;window["AscDFH"].historydescription_Document_AddImage=120;window["AscDFH"].historydescription_Document_ClearFormatting=121;window["AscDFH"].historydescription_Document_AddSectionBreak=122;window["AscDFH"].historydescription_Document_AddMath=123;window["AscDFH"].historydescription_Document_SetParagraphTabs=
|
|
124;window["AscDFH"].historydescription_Document_SetParagraphIndentFromRulers=125;window["AscDFH"].historydescription_Document_SetDocumentMargin_Hor=126;window["AscDFH"].historydescription_Document_SetTableMarkup_Hor=127;window["AscDFH"].historydescription_Document_SetDocumentMargin_Ver=128;window["AscDFH"].historydescription_Document_SetHdrFtrBounds=129;window["AscDFH"].historydescription_Document_SetTableMarkup_Ver=130;window["AscDFH"].historydescription_Document_DocumentExtendToPos=131;window["AscDFH"].historydescription_Document_AddDropCap=
|
|
132;window["AscDFH"].historydescription_Document_RemoveDropCap=133;window["AscDFH"].historydescription_Document_SetTextHighlight=134;window["AscDFH"].historydescription_Document_BackSpaceButton=135;window["AscDFH"].historydescription_Document_MoveParagraphByTab=136;window["AscDFH"].historydescription_Document_AddTab=137;window["AscDFH"].historydescription_Document_EnterButton=138;window["AscDFH"].historydescription_Document_SpaceButton=139;window["AscDFH"].historydescription_Document_ShiftInsert=
|
|
140;window["AscDFH"].historydescription_Document_ShiftInsertSafari=141;window["AscDFH"].historydescription_Document_DeleteButton=142;window["AscDFH"].historydescription_Document_ShiftDeleteButton=143;window["AscDFH"].historydescription_Document_Shortcut_SetStyleHeading1=144;window["AscDFH"].historydescription_Document_Shortcut_SetStyleHeading2=145;window["AscDFH"].historydescription_Document_Shortcut_SetStyleHeading3=146;window["AscDFH"].historydescription_Document_SetTextStrikeoutHotKey=147;window["AscDFH"].historydescription_Document_SetTextBoldHotKey=
|
|
148;window["AscDFH"].historydescription_Document_SetParagraphAlignHotKey=149;window["AscDFH"].historydescription_Document_AddEuroLetter=150;window["AscDFH"].historydescription_Document_SetTextItalicHotKey=151;window["AscDFH"].historydescription_Document_SetParagraphAlignHotKey2=152;window["AscDFH"].historydescription_Document_SetParagraphNumberingHotKey=153;window["AscDFH"].historydescription_Document_SetParagraphAlignHotKey3=154;window["AscDFH"].historydescription_Document_AddPageNumHotKey=155;window["AscDFH"].historydescription_Document_SetParagraphAlignHotKey4=
|
|
156;window["AscDFH"].historydescription_Document_SetTextUnderlineHotKey=157;window["AscDFH"].historydescription_Document_FormatPasteHotKey=158;window["AscDFH"].historydescription_Document_PasteHotKey=159;window["AscDFH"].historydescription_Document_PasteSafariHotKey=160;window["AscDFH"].historydescription_Document_CutHotKey=161;window["AscDFH"].historydescription_Document_SetTextVertAlignHotKey=162;window["AscDFH"].historydescription_Document_AddMathHotKey=163;window["AscDFH"].historydescription_Document_SetTextVertAlignHotKey2=
|
|
164;window["AscDFH"].historydescription_Document_MinusButton=165;window["AscDFH"].historydescription_Document_SetTextVertAlignHotKey3=166;window["AscDFH"].historydescription_Document_AddLetter=167;window["AscDFH"].historydescription_Document_MoveTableBorder=168;window["AscDFH"].historydescription_Document_FormatPasteHotKey2=169;window["AscDFH"].historydescription_Document_SetTextHighlight2=170;window["AscDFH"].historydescription_Document_AddTextFromTextBox=171;window["AscDFH"].historydescription_Document_AddMailMergeField=
|
|
172;window["AscDFH"].historydescription_Document_MoveInlineTable=173;window["AscDFH"].historydescription_Document_MoveFlowTable=174;window["AscDFH"].historydescription_Document_RestoreFieldTemplateText=175;window["AscDFH"].historydescription_Spreadsheet_SetCellFontName=176;window["AscDFH"].historydescription_Spreadsheet_SetCellFontSize=177;window["AscDFH"].historydescription_Spreadsheet_SetCellBold=178;window["AscDFH"].historydescription_Spreadsheet_SetCellItalic=179;window["AscDFH"].historydescription_Spreadsheet_SetCellUnderline=
|
|
180;window["AscDFH"].historydescription_Spreadsheet_SetCellStrikeout=181;window["AscDFH"].historydescription_Spreadsheet_SetCellSubscript=182;window["AscDFH"].historydescription_Spreadsheet_SetCellSuperscript=183;window["AscDFH"].historydescription_Spreadsheet_SetCellAlign=184;window["AscDFH"].historydescription_Spreadsheet_SetCellVertAlign=185;window["AscDFH"].historydescription_Spreadsheet_SetCellTextColor=186;window["AscDFH"].historydescription_Spreadsheet_SetCellBackgroundColor=187;window["AscDFH"].historydescription_Spreadsheet_SetCellIncreaseFontSize=
|
|
188;window["AscDFH"].historydescription_Spreadsheet_SetCellDecreaseFontSize=189;window["AscDFH"].historydescription_Spreadsheet_SetCellHyperlinkAdd=190;window["AscDFH"].historydescription_Spreadsheet_SetCellHyperlinkModify=191;window["AscDFH"].historydescription_Spreadsheet_SetCellHyperlinkRemove=192;window["AscDFH"].historydescription_Spreadsheet_EditChart=193;window["AscDFH"].historydescription_Spreadsheet_Remove=194;window["AscDFH"].historydescription_Spreadsheet_AddTab=195;window["AscDFH"].historydescription_Spreadsheet_AddNewParagraph=
|
|
196;window["AscDFH"].historydescription_Spreadsheet_AddSpace=197;window["AscDFH"].historydescription_Spreadsheet_AddItem=198;window["AscDFH"].historydescription_Spreadsheet_PutPrLineSpacing=199;window["AscDFH"].historydescription_Spreadsheet_SetParagraphSpacing=200;window["AscDFH"].historydescription_Spreadsheet_SetGraphicObjectsProps=201;window["AscDFH"].historydescription_Spreadsheet_ParaApply=202;window["AscDFH"].historydescription_Spreadsheet_GraphicObjectLayer=203;window["AscDFH"].historydescription_Spreadsheet_ParagraphAdd=
|
|
204;window["AscDFH"].historydescription_Spreadsheet_CreateGroup=205;window["AscDFH"].historydescription_CommonDrawings_ChangeAdj=206;window["AscDFH"].historydescription_CommonDrawings_EndTrack=207;window["AscDFH"].historydescription_CommonDrawings_CopyCtrl=208;window["AscDFH"].historydescription_Presentation_ParaApply=209;window["AscDFH"].historydescription_Presentation_ParaFormatPaste=210;window["AscDFH"].historydescription_Presentation_AddNewParagraph=211;window["AscDFH"].historydescription_Presentation_CreateGroup=
|
|
212;window["AscDFH"].historydescription_Presentation_UnGroup=213;window["AscDFH"].historydescription_Presentation_AddChart=214;window["AscDFH"].historydescription_Presentation_EditChart=215;window["AscDFH"].historydescription_Presentation_ParagraphAdd=216;window["AscDFH"].historydescription_Presentation_ParagraphClearFormatting=217;window["AscDFH"].historydescription_Presentation_SetParagraphAlign=218;window["AscDFH"].historydescription_Presentation_SetParagraphSpacing=219;window["AscDFH"].historydescription_Presentation_SetParagraphTabs=
|
|
220;window["AscDFH"].historydescription_Presentation_SetParagraphIndent=221;window["AscDFH"].historydescription_Presentation_SetParagraphNumbering=222;window["AscDFH"].historydescription_Presentation_ParagraphIncDecFontSize=223;window["AscDFH"].historydescription_Presentation_ParagraphIncDecIndent=224;window["AscDFH"].historydescription_Presentation_SetImageProps=225;window["AscDFH"].historydescription_Presentation_SetShapeProps=226;window["AscDFH"].historydescription_Presentation_ChartApply=227;
|
|
window["AscDFH"].historydescription_Presentation_ChangeShapeType=228;window["AscDFH"].historydescription_Presentation_SetVerticalAlign=229;window["AscDFH"].historydescription_Presentation_HyperlinkAdd=230;window["AscDFH"].historydescription_Presentation_HyperlinkModify=231;window["AscDFH"].historydescription_Presentation_HyperlinkRemove=232;window["AscDFH"].historydescription_Presentation_DistHor=233;window["AscDFH"].historydescription_Presentation_DistVer=234;window["AscDFH"].historydescription_Presentation_BringToFront=
|
|
235;window["AscDFH"].historydescription_Presentation_BringForward=236;window["AscDFH"].historydescription_Presentation_SendToBack=237;window["AscDFH"].historydescription_Presentation_BringBackward=239;window["AscDFH"].historydescription_Presentation_ApplyTransition=240;window["AscDFH"].historydescription_Presentation_MoveSlidesToEnd=241;window["AscDFH"].historydescription_Presentation_MoveSlidesNextPos=242;window["AscDFH"].historydescription_Presentation_MoveSlidesPrevPos=243;window["AscDFH"].historydescription_Presentation_MoveSlidesToStart=
|
|
244;window["AscDFH"].historydescription_Presentation_MoveComments=245;window["AscDFH"].historydescription_Presentation_TableBorder=246;window["AscDFH"].historydescription_Presentation_AddFlowImage=247;window["AscDFH"].historydescription_Presentation_AddFlowTable=248;window["AscDFH"].historydescription_Presentation_ChangeBackground=249;window["AscDFH"].historydescription_Presentation_AddNextSlide=250;window["AscDFH"].historydescription_Presentation_ShiftSlides=251;window["AscDFH"].historydescription_Presentation_DeleteSlides=
|
|
252;window["AscDFH"].historydescription_Presentation_ChangeLayout=253;window["AscDFH"].historydescription_Presentation_ChangeSlideSize=254;window["AscDFH"].historydescription_Presentation_ChangeColorScheme=255;window["AscDFH"].historydescription_Presentation_AddComment=256;window["AscDFH"].historydescription_Presentation_ChangeComment=257;window["AscDFH"].historydescription_Presentation_PutTextPrFontName=258;window["AscDFH"].historydescription_Presentation_PutTextPrFontSize=259;window["AscDFH"].historydescription_Presentation_PutTextPrBold=
|
|
260;window["AscDFH"].historydescription_Presentation_PutTextPrItalic=261;window["AscDFH"].historydescription_Presentation_PutTextPrUnderline=262;window["AscDFH"].historydescription_Presentation_PutTextPrStrikeout=263;window["AscDFH"].historydescription_Presentation_PutTextPrLineSpacing=264;window["AscDFH"].historydescription_Presentation_PutTextPrSpacingBeforeAfter=265;window["AscDFH"].historydescription_Presentation_PutTextPrIncreaseFontSize=266;window["AscDFH"].historydescription_Presentation_PutTextPrDecreaseFontSize=
|
|
267;window["AscDFH"].historydescription_Presentation_PutTextPrAlign=268;window["AscDFH"].historydescription_Presentation_PutTextPrBaseline=269;window["AscDFH"].historydescription_Presentation_PutTextPrListType=270;window["AscDFH"].historydescription_Presentation_PutTextColor=271;window["AscDFH"].historydescription_Presentation_PutTextColor2=271;window["AscDFH"].historydescription_Presentation_PutPrIndent=271;window["AscDFH"].historydescription_Presentation_PutPrIndentRight=271;window["AscDFH"].historydescription_Presentation_PutPrFirstLineIndent=
|
|
271;window["AscDFH"].historydescription_Presentation_AddPageBreak=271;window["AscDFH"].historydescription_Presentation_AddRowAbove=272;window["AscDFH"].historydescription_Presentation_AddRowBelow=273;window["AscDFH"].historydescription_Presentation_AddColLeft=274;window["AscDFH"].historydescription_Presentation_AddColRight=275;window["AscDFH"].historydescription_Presentation_RemoveRow=276;window["AscDFH"].historydescription_Presentation_RemoveCol=277;window["AscDFH"].historydescription_Presentation_RemoveTable=
|
|
278;window["AscDFH"].historydescription_Presentation_MergeCells=279;window["AscDFH"].historydescription_Presentation_SplitCells=280;window["AscDFH"].historydescription_Presentation_TblApply=281;window["AscDFH"].historydescription_Presentation_RemoveComment=282;window["AscDFH"].historydescription_Presentation_EndFontLoad=283;window["AscDFH"].historydescription_Presentation_ChangeTheme=284;window["AscDFH"].historydescription_Presentation_TableMoveFromRulers=285;window["AscDFH"].historydescription_Presentation_TableMoveFromRulersInline=
|
|
286;window["AscDFH"].historydescription_Presentation_PasteOnThumbnails=287;window["AscDFH"].historydescription_Presentation_PasteOnThumbnailsSafari=288;window["AscDFH"].historydescription_Document_ConvertOldEquation=289;window["AscDFH"].historydescription_Presentation_SetVert=290;window["AscDFH"].historydescription_Document_AddNewStyle=291;window["AscDFH"].historydescription_Document_RemoveStyle=292;window["AscDFH"].historydescription_Document_AddTextArt=293;window["AscDFH"].historydescription_Document_RemoveAllCustomStyles=
|
|
294;window["AscDFH"].historydescription_Document_AcceptAllRevisionChanges=295;window["AscDFH"].historydescription_Document_RejectAllRevisionChanges=296;window["AscDFH"].historydescription_Document_AcceptRevisionChange=297;window["AscDFH"].historydescription_Document_RejectRevisionChange=298;window["AscDFH"].historydescription_Document_AcceptRevisionChangesBySelection=299;window["AscDFH"].historydescription_Document_RejectRevisionChangesBySelection=300;window["AscDFH"].historydescription_Document_AddLetterUnion=
|
|
301;window["AscDFH"].historydescription_Presentation_ApplyTransitionToAll=302;window["AscDFH"].historydescription_Document_SetColumnsFromRuler=303;window["AscDFH"].historydescription_Document_SetColumnsProps=304;window["AscDFH"].historydescription_Document_AddColumnBreak=305;window["AscDFH"].historydescription_Document_SetSectionProps=306;window["AscDFH"].historydescription_Document_AddTabToMath=307;window["AscDFH"].historydescription_Document_SetMathProps=308;window["AscDFH"].historydescription_Document_ApplyPrToMath=
|
|
309;window["AscDFH"].historydescription_Document_ApiBuilder=310;window["AscDFH"].historydescription_Document_AddOleObject=311;window["AscDFH"].historydescription_Document_EditOleObject=312;window["AscDFH"].historydescription_Document_CompositeInput=313;window["AscDFH"].historydescription_Document_CompositeInputReplace=314;window["AscDFH"].historydescription_Document_AddPageCount=315;window["AscDFH"].historydescription_Document_AddFootnote=316;window["AscDFH"].historydescription_Document_SetFootnotePr=
|
|
317;window["AscDFH"].historydescription_Document_RemoveAllFootnotes=318;window["AscDFH"].historydescription_Document_InsertDocumentsByUrls=319;window["AscDFH"].historydescription_Document_InsertSignatureLine=320;window["AscDFH"].historydescription_Document_AddBlockLevelContentControl=321;window["AscDFH"].historydescription_Document_AddInlineLevelContentControl=322;window["AscDFH"].historydescription_Document_RemoveContentControl=323;window["AscDFH"].historydescription_Document_RemoveContentControlWrapper=
|
|
324;window["AscDFH"].historydescription_Document_ChangeContentControlProperties=325;window["AscDFH"].historydescription_Presentation_HideSlides=326;window["AscDFH"].historydescription_DocumentMacros_Data=327;window["AscDFH"].historydescription_Document_AddBookmark=328;window["AscDFH"].historydescription_Document_AddTableOfContents=329;window["AscDFH"].historydescription_Document_ChangeOutlineLevel=330;window["AscDFH"].historydescription_Document_AddElementToOutline=331;window["AscDFH"].historydescription_Document_ResizeTable=
|
|
332;window["AscDFH"].historydescription_Document_RemoveComplexField=333;window["AscDFH"].historydescription_Document_SetComplexFieldPr=334;window["AscDFH"].historydescription_Document_UpdateTableOfContents=335;window["AscDFH"].historydescription_Document_SectionStartPage=336;window["AscDFH"].historydescription_Document_DistributeTableCells=337;window["AscDFH"].historydescription_Document_RemoveBookmark=338;window["AscDFH"].historydescription_Document_ContinueNumbering=339;window["AscDFH"].historydescription_Document_RestartNumbering=
|
|
340;window["AscDFH"].historydescription_Document_AutomaticListAsType=341;window["AscDFH"].historydescription_Document_CreateNum=342;window["AscDFH"].historydescription_Document_ChangeNumLvl=343;window["AscDFH"].historydescription_Document_AutoCorrectSmartQuotes=344;window["AscDFH"].historydescription_Document_AutoCorrectHyphensWithDash=345;window["AscDFH"].historydescription_Document_SetGlobalSdtHighlightColor=346;window["AscDFH"].historydescription_Document_SetGlobalSdtShowHighlight=347;window["AscDFH"].historydescription_Document_UpdateFields=
|
|
348;window["AscDFH"].historydescription_Document_AddBlankPage=349;window["AscDFH"].historydescription_Document_AddTableFormula=350;window["AscDFH"].historydescription_Document_ChangeTableFormula=350;window["AscDFH"].historydescription_SetCoreproperties=351;window["AscDFH"].historydescription_Document_AddWatermark=352;window["AscDFH"].historydescription_Presentation_SetHF=353;window["AscDFH"].historydescription_Presentation_AddSlideNumber=354;window["AscDFH"].historydescription_Document_SetParagraphOutlineLvl=
|
|
355;window["AscDFH"].historydescription_Document_RemoveTableCells=356;window["AscDFH"].historydescription_Document_AddContentControlCheckBox=357;window["AscDFH"].historydescription_Document_SetContentControlCheckBoxPr=358;window["AscDFH"].historydescription_Document_AddContentControlPicture=359;window["AscDFH"].historydescription_Document_SetContentControlPictureUrl=360;window["AscDFH"].historydescription_Document_RemoveAllComments=361;window["AscDFH"].historydescription_Document_AddContentControlList=
|
|
362;window["AscDFH"].historydescription_Document_SetContentControlListPr=363;window["AscDFH"].historydescription_Document_SelectContentControlListItem=364;window["AscDFH"].historydescription_Document_AddContentControlDatePicker=365;window["AscDFH"].historydescription_Document_SetContentControlDatePickerPr=366;window["AscDFH"].historydescription_Presentation_AddToLayout=367;window["AscDFH"].historydescription_Presentation_FitImagesToSlide=368;window["AscDFH"].historydescription_Document_AddTextWithProperties=
|
|
369;window["AscDFH"].historydescription_Document_AddCaption=370;window["AscDFH"].historydescription_Document_CompareDocuments=371;window["AscDFH"].historydescription_Document_DrawNewTable=372;window["AscDFH"].historydescription_Document_DrawTable=373;window["AscDFH"].historydescription_Document_AddDateTimeField=374;window["AscDFH"].historydescription_Document_SetContentControlTextPlaceholder=375;window["AscDFH"].historydescription_Document_AddEndnote=376;window["AscDFH"].historydescription_Document_AddContentControlTextForm=
|
|
377;window["AscDFH"].historydescription_Document_SetEndnotePr=378;window["AscDFH"].historydescription_Document_ConvertFootnoteType=379;window["AscDFH"].historydescription_Document_AutoCorrectCommon=380;window["AscDFH"].historydescription_Document_Shortcut_ClearFormatting=381;window["AscDFH"].historydescription_Document_Shortcut_AddNonBreakingSpace=382;window["AscDFH"].historydescription_Document_SetParagraphSuppressLineNumbers=383;window["AscDFH"].historydescription_Document_SetLineNumbersProps=384;
|
|
window["AscDFH"].historydescription_Document_AddCrossRef=385;window["AscDFH"].historydescription_Document_ClearAllSpecialForms=386;window["AscDFH"].historydescription_Document_ChangeTextCase=387;window["AscDFH"].historydescription_Document_SetNumberingLvl=388;window["AscDFH"].historydescription_Document_SetTrackRevisions=389;window["AscDFH"].historydescription_Document_SetContentControlText=390;window["AscDFH"].historydescription_Document_ClearContentControl=391;window["AscDFH"].historydescription_Document_AutoCorrectFirstLetterOfSentence=
|
|
392;window["AscDFH"].historydescription_Document_ConvertTextToTable=393;window["AscDFH"].historydescription_Document_ConvertTableToText=394;window["AscDFH"].historydescription_Document_ResolveAllComments=395;window["AscDFH"].historydescription_Document_ConvertFormFixedType=396;window["AscDFH"].changesFactory={};window["AscDFH"].changesFactory[window["AscDFH"].historyitem_Unknown_Unknown]=CChangesBase;window["AscDFH"].changesRelationMap={};function CChangesBase(Class){this.Class=Class;this.Reverted=
|
|
false}CChangesBase.prototype.Type=window["AscDFH"].historyitem_Unknown_Unknown;CChangesBase.prototype.GetType=function(){return this.Type};CChangesBase.prototype.Undo=function(){if(this.Class&&this.Class.Undo)this.Class.Undo(this)};CChangesBase.prototype.Redo=function(){if(this.Class&&this.Class.Redo)this.Class.Redo(this)};CChangesBase.prototype.WriteToBinary=function(Writer){if(this.Class&&this.Class.Save_Changes)this.Class.Save_Changes(this,Writer)};CChangesBase.prototype.ReadFromBinary=function(Reader){};
|
|
CChangesBase.prototype.Load=function(){this.Redo()};CChangesBase.prototype.GetClass=function(){return this.Class};CChangesBase.prototype.RefreshRecalcData=function(){if(this.Class&&this.Class.Refresh_RecalcData)this.Class.Refresh_RecalcData(this)};CChangesBase.prototype.IsContentChange=function(){return false};CChangesBase.prototype.CreateReverseChange=function(){return null};CChangesBase.prototype.Merge=function(oChange){return true};CChangesBase.prototype.IsPosExtChange=function(oChange){return false};
|
|
CChangesBase.prototype.IsReverted=function(){return this.Reverted};CChangesBase.prototype.SetReverted=function(isReverted){this.Reverted=isReverted};CChangesBase.prototype.IsParagraphSimpleChanges=function(){return false};CChangesBase.prototype.IsNeedRecalculate=function(){return true};CChangesBase.prototype.IsNeedRecalculateLineNumbers=function(){return false};CChangesBase.prototype.IsDescriptionChange=function(){return false};window["AscDFH"].CChangesBase=CChangesBase;function CChangesBaseContentChange(Class,
|
|
Pos,Items,isAdd){CChangesBase.call(this,Class);this.Pos=Pos;this.Items=Items;this.UseArray=false;this.PosArray=[];this.Add=isAdd;this.Reverted=false}CChangesBaseContentChange.prototype=Object.create(CChangesBase.prototype);CChangesBaseContentChange.prototype.constructor=CChangesBaseContentChange;CChangesBaseContentChange.prototype.IsContentChange=function(){return true};CChangesBaseContentChange.prototype.IsAdd=function(){return this.Add};CChangesBaseContentChange.prototype.Copy=function(){var oChanges=
|
|
new this.constructor(this.Class,this.Pos,this.Items,this.Add);oChanges.UseArray=this.UseArray;for(var nIndex=0,nCount=this.PosArray.length;nIndex<nCount;++nIndex)oChanges.PosArray[nIndex]=this.PosArray[nIndex];return oChanges};CChangesBaseContentChange.prototype.GetItemsCount=function(){return this.Items.length};CChangesBaseContentChange.prototype.GetItem=function(nIndex){return this.Items[nIndex]};CChangesBaseContentChange.prototype.GetPos=function(nIndex){if(nIndex===undefined)nIndex=0;return this.UseArray?
|
|
this.PosArray[nIndex]:this.Pos+nIndex};CChangesBaseContentChange.prototype.WriteToBinary=function(Writer){var bArray=this.UseArray;var nCount=this.Items.length;var nStartPos=Writer.GetCurPosition();Writer.Skip(4);var nRealCount=nCount;for(var nIndex=0;nIndex<nCount;++nIndex)if(true===bArray)if(false===this.PosArray[nIndex])nRealCount--;else{Writer.WriteLong(this.PosArray[nIndex]);this.private_WriteItem(Writer,this.Items[nIndex])}else{Writer.WriteLong(this.Pos);this.private_WriteItem(Writer,this.Items[nIndex])}var nEndPos=
|
|
Writer.GetCurPosition();Writer.Seek(nStartPos);Writer.WriteLong(nRealCount);Writer.Seek(nEndPos);var nColor=0;if(undefined!==this.Color){nColor|=1;if(true===this.Color)nColor|=2}Writer.WriteLong(nColor)};CChangesBaseContentChange.prototype.ReadFromBinary=function(Reader){this.UseArray=true;this.Items=[];this.PosArray=[];var nCount=Reader.GetLong();for(var nIndex=0;nIndex<nCount;++nIndex){this.PosArray[nIndex]=Reader.GetLong();this.Items[nIndex]=this.private_ReadItem(Reader)}var nColor=Reader.GetLong();
|
|
if(nColor&1)this.Color=nColor&2?true:false};CChangesBaseContentChange.prototype.private_WriteItem=function(Writer,Item){};CChangesBaseContentChange.prototype.private_ReadItem=function(Reader){return null};CChangesBaseContentChange.prototype.ConvertToSimpleActions=function(){var arrActions=[];if(this.UseArray)for(var nIndex=0,nCount=this.Items.length;nIndex<nCount;++nIndex)arrActions.push({Item:this.Items[nIndex],Pos:this.PosArray[nIndex],Add:this.Add});else{var Pos=this.Pos;for(var nIndex=0,nCount=
|
|
this.Items.length;nIndex<nCount;++nIndex)arrActions.push({Item:this.Items[nIndex],Pos:Pos+nIndex,Add:this.Add})}return arrActions};CChangesBaseContentChange.prototype.ConvertFromSimpleActions=function(arrActions){this.UseArray=true;this.Pos=0;this.Items=[];this.PosArray=[];for(var nIndex=0,nCount=arrActions.length;nIndex<nCount;++nIndex){this.PosArray[nIndex]=arrActions[nIndex].Pos;this.Items[nIndex]=arrActions[nIndex].Item}};CChangesBaseContentChange.prototype.IsRelated=function(oChanges){if(this.Class!==
|
|
oChanges.GetClass()||this.Type!==oChanges.Type)return false;return true};CChangesBaseContentChange.prototype.private_CreateReverseChange=function(fConstructor){var oChange=new fConstructor;oChange.Class=this.Class;oChange.Pos=this.Pos;oChange.Items=this.Items;oChange.Add=!this.Add;oChange.UseArray=this.UseArray;oChange.PosArray=[];for(var nIndex=0,nCount=this.PosArray.length;nIndex<nCount;++nIndex)oChange.PosArray[nIndex]=this.PosArray[nIndex];return oChange};CChangesBaseContentChange.prototype.Merge=
|
|
function(oChange){return true};CChangesBaseContentChange.prototype.GetMinPos=function(){var nPos=null;if(this.UseArray){for(var nIndex=0,nCount=this.PosArray.length;nIndex<nCount;++nIndex)if(null===nPos||nPos>this.PosArray[nIndex])nPos=this.PosArray[nIndex];if(null===nPos)nPos=0}else nPos=this.Pos;return nPos};window["AscDFH"].CChangesBaseContentChange=CChangesBaseContentChange;function CChangesBaseProperty(Class,Old,New,Color){CChangesBase.call(this,Class);this.Color=true===Color?true:false;this.Old=
|
|
Old;this.New=New}CChangesBaseProperty.prototype=Object.create(CChangesBase.prototype);CChangesBaseProperty.prototype.constructor=CChangesBaseProperty;CChangesBaseProperty.prototype.Undo=function(){this.private_SetValue(this.Old)};CChangesBaseProperty.prototype.Redo=function(){this.private_SetValue(this.New)};CChangesBaseProperty.prototype.private_SetValue=function(Value){};CChangesBaseProperty.prototype.CreateReverseChange=function(){return new this.constructor(this.Class,this.New,this.Old,this.Color)};
|
|
CChangesBaseProperty.prototype.Merge=function(oChange){if(oChange.Class===this.Class&&oChange.Type===this.Type){this.New=oChange.New;return false}return true};window["AscDFH"].CChangesBaseProperty=CChangesBaseProperty;function CChangesBaseBoolProperty(Class,Old,New,Color){CChangesBaseProperty.call(this,Class,Old,New,Color)}CChangesBaseBoolProperty.prototype=Object.create(CChangesBaseProperty.prototype);CChangesBaseBoolProperty.prototype.constructor=CChangesBaseBoolProperty;CChangesBaseBoolProperty.prototype.WriteToBinary=
|
|
function(Writer){var nFlags=0;if(false!==this.Color)nFlags|=1;if(undefined===this.New)nFlags|=2;else if(true===this.New)nFlags|=4;if(undefined===this.Old)nFlags|=8;else if(true===this.Old)nFlags|=16;Writer.WriteLong(nFlags)};CChangesBaseBoolProperty.prototype.ReadFromBinary=function(Reader){var nFlags=Reader.GetLong();if(nFlags&1)this.Color=true;else this.Color=false;if(nFlags&2)this.New=undefined;else if(nFlags&4)this.New=true;else this.New=false;if(nFlags&8)this.Old=undefined;else if(nFlags&16)this.Old=
|
|
true;else this.Old=false};window["AscDFH"].CChangesBaseBoolProperty=CChangesBaseBoolProperty;function CChangesBaseDoubleProperty(Class,Old,New,Color){CChangesBaseProperty.call(this,Class,Old,New,Color)}CChangesBaseDoubleProperty.prototype=Object.create(CChangesBaseProperty.prototype);CChangesBaseDoubleProperty.prototype.constructor=CChangesBaseDoubleProperty;CChangesBaseDoubleProperty.prototype.WriteToBinary=function(Writer){var nFlags=0;if(false!==this.Color)nFlags|=1;if(undefined===this.New)nFlags|=
|
|
2;if(undefined===this.Old)nFlags|=4;Writer.WriteLong(nFlags);if(undefined!==this.New)Writer.WriteDouble(this.New);if(undefined!==this.Old)Writer.WriteDouble(this.Old)};CChangesBaseDoubleProperty.prototype.ReadFromBinary=function(Reader){var nFlags=Reader.GetLong();if(nFlags&1)this.Color=true;else this.Color=false;if(nFlags&2)this.New=undefined;else this.New=Reader.GetDouble();if(nFlags&4)this.Old=undefined;else this.Old=Reader.GetDouble()};window["AscDFH"].CChangesBaseDoubleProperty=CChangesBaseDoubleProperty;
|
|
function CChangesBaseObjectProperty(Class,Old,New,Color){CChangesBaseProperty.call(this,Class,Old,New,Color)}CChangesBaseObjectProperty.prototype=Object.create(CChangesBaseProperty.prototype);CChangesBaseObjectProperty.prototype.constructor=CChangesBaseObjectProperty;CChangesBaseObjectProperty.prototype.WriteToBinary=function(Writer){var nFlags=0;if(false!==this.Color)nFlags|=1;if(undefined===this.New)nFlags|=2;if(undefined===this.Old)nFlags|=4;Writer.WriteLong(nFlags);if(undefined!==this.New&&this.New.Write_ToBinary)this.New.Write_ToBinary(Writer);
|
|
if(undefined!==this.Old&&this.Old.Write_ToBinary)this.Old.Write_ToBinary(Writer)};CChangesBaseObjectProperty.prototype.ReadFromBinary=function(Reader){var nFlags=Reader.GetLong();if(nFlags&1)this.Color=true;else this.Color=false;if(nFlags&2)if(true===this.private_IsCreateEmptyObject())this.New=this.private_CreateObject();else this.New=undefined;else{this.New=this.private_CreateObject();if(this.New&&this.New.Read_FromBinary)this.New.Read_FromBinary(Reader)}if(nFlags&4)if(true===this.private_IsCreateEmptyObject())this.Old=
|
|
this.private_CreateObject();else this.Old=undefined;else{this.Old=this.private_CreateObject();if(this.Old&&this.Old.Read_FromBinary)this.Old.Read_FromBinary(Reader)}};CChangesBaseObjectProperty.prototype.private_CreateObject=function(){return null};CChangesBaseObjectProperty.prototype.private_IsCreateEmptyObject=function(){return false};window["AscDFH"].CChangesBaseObjectProperty=CChangesBaseObjectProperty;function CChangesBaseLongProperty(Class,Old,New,Color){CChangesBaseProperty.call(this,Class,
|
|
Old,New,Color)}CChangesBaseLongProperty.prototype=Object.create(CChangesBaseProperty.prototype);CChangesBaseLongProperty.prototype.constructor=CChangesBaseLongProperty;CChangesBaseLongProperty.prototype.WriteToBinary=function(Writer){var nFlags=0;if(false!==this.Color)nFlags|=1;if(undefined===this.New)nFlags|=2;if(undefined===this.Old)nFlags|=4;Writer.WriteLong(nFlags);if(undefined!==this.New)Writer.WriteLong(this.New);if(undefined!==this.Old)Writer.WriteLong(this.Old)};CChangesBaseLongProperty.prototype.ReadFromBinary=
|
|
function(Reader){var nFlags=Reader.GetLong();if(nFlags&1)this.Color=true;else this.Color=false;if(nFlags&2)this.New=undefined;else this.New=Reader.GetLong();if(nFlags&4)this.Old=undefined;else this.Old=Reader.GetLong()};window["AscDFH"].CChangesBaseLongProperty=CChangesBaseLongProperty;function CChangesBaseStringProperty(Class,Old,New,Color){CChangesBaseProperty.call(this,Class,Old,New,Color)}CChangesBaseStringProperty.prototype=Object.create(CChangesBaseProperty.prototype);CChangesBaseStringProperty.prototype.constructor=
|
|
CChangesBaseStringProperty;CChangesBaseStringProperty.prototype.WriteToBinary=function(Writer){var nFlags=0;if(false!==this.Color)nFlags|=1;if(undefined===this.New)nFlags|=2;if(undefined===this.Old)nFlags|=4;Writer.WriteLong(nFlags);if(undefined!==this.New)Writer.WriteString2(this.New);if(undefined!==this.Old)Writer.WriteString2(this.Old)};CChangesBaseStringProperty.prototype.ReadFromBinary=function(Reader){var nFlags=Reader.GetLong();if(nFlags&1)this.Color=true;else this.Color=false;if(nFlags&2)this.New=
|
|
undefined;else this.New=Reader.GetString2();if(nFlags&4)this.Old=undefined;else this.Old=Reader.GetString2()};window["AscDFH"].CChangesBaseStringProperty=CChangesBaseStringProperty;function CChangesBaseByteProperty(Class,Old,New,Color){CChangesBaseProperty.call(this,Class,Old,New,Color)}CChangesBaseByteProperty.prototype=Object.create(CChangesBaseProperty.prototype);CChangesBaseByteProperty.prototype.constructor=CChangesBaseByteProperty;CChangesBaseByteProperty.prototype.WriteToBinary=function(Writer){var nFlags=
|
|
0;if(false!==this.Color)nFlags|=1;if(undefined===this.New)nFlags|=2;if(undefined===this.Old)nFlags|=4;Writer.WriteLong(nFlags);if(undefined!==this.New)Writer.WriteByte(this.New);if(undefined!==this.Old)Writer.WriteByte(this.Old)};CChangesBaseByteProperty.prototype.ReadFromBinary=function(Reader){var nFlags=Reader.GetLong();if(nFlags&1)this.Color=true;else this.Color=false;if(nFlags&2)this.New=undefined;else this.New=Reader.GetByte();if(nFlags&4)this.Old=undefined;else this.Old=Reader.GetByte()};window["AscDFH"].CChangesBaseByteProperty=
|
|
CChangesBaseByteProperty;function CChangesBaseLongValue(Class,Old,New,Color){CChangesBaseProperty.call(this,Class,Old,New,Color)}CChangesBaseLongValue.prototype=Object.create(CChangesBaseProperty.prototype);CChangesBaseLongValue.prototype.constructor=CChangesBaseLongValue;CChangesBaseLongValue.prototype.WriteToBinary=function(Writer){Writer.WriteLong(this.New);Writer.WriteLong(this.Old)};CChangesBaseLongValue.prototype.ReadFromBinary=function(Reader){this.New=Reader.GetLong();this.Old=Reader.GetLong()};
|
|
window["AscDFH"].CChangesBaseLongValue=CChangesBaseLongValue;function CChangesBaseBoolValue(Class,Old,New,Color){CChangesBaseProperty.call(this,Class,Old,New,Color)}CChangesBaseBoolValue.prototype=Object.create(CChangesBaseProperty.prototype);CChangesBaseBoolValue.prototype.constructor=CChangesBaseBoolValue;CChangesBaseBoolValue.prototype.WriteToBinary=function(Writer){Writer.WriteBool(this.New);Writer.WriteBool(this.Old)};CChangesBaseBoolValue.prototype.ReadFromBinary=function(Reader){this.New=Reader.GetBool();
|
|
this.Old=Reader.GetBool()};window["AscDFH"].CChangesBaseBoolValue=CChangesBaseBoolValue;function CChangesBaseObjectValue(Class,Old,New,Color){CChangesBaseObjectProperty.call(this,Class,Old,New,Color)}CChangesBaseObjectValue.prototype=Object.create(CChangesBaseObjectProperty.prototype);CChangesBaseObjectValue.prototype.constructor=CChangesBaseObjectValue;CChangesBaseObjectValue.prototype.private_IsCreateEmptyObject=function(){return true};window["AscDFH"].CChangesBaseObjectValue=CChangesBaseObjectValue;
|
|
function CChangesBaseStringValue(Class,Old,New,Color){CChangesBaseProperty.call(this,Class,Old,New,Color)}CChangesBaseStringValue.prototype=Object.create(CChangesBaseProperty.prototype);CChangesBaseStringValue.prototype.constructor=CChangesBaseStringValue;CChangesBaseStringValue.prototype.WriteToBinary=function(Writer){Writer.WriteString2(this.New);Writer.WriteString2(this.Old)};CChangesBaseStringValue.prototype.ReadFromBinary=function(Reader){this.New=Reader.GetString2();this.Old=Reader.GetString2()};
|
|
window["AscDFH"].CChangesBaseStringValue=CChangesBaseStringValue;function CChangesBaseByteValue(Class,Old,New,Color){CChangesBaseProperty.call(this,Class,Old,New,Color)}CChangesBaseByteValue.prototype=Object.create(CChangesBaseProperty.prototype);CChangesBaseByteValue.prototype.constructor=CChangesBaseByteValue;CChangesBaseByteValue.prototype.WriteToBinary=function(Writer){Writer.WriteByte(this.New);Writer.WriteByte(this.Old)};CChangesBaseByteValue.prototype.ReadFromBinary=function(Reader){this.New=
|
|
Reader.GetByte();this.Old=Reader.GetByte()};window["AscDFH"].CChangesBaseByteValue=CChangesBaseByteValue;function CChangesBaseDoubleValue(Class,Old,New,Color){CChangesBaseProperty.call(this,Class,Old,New,Color)}CChangesBaseDoubleValue.prototype=Object.create(CChangesBaseProperty.prototype);CChangesBaseDoubleValue.prototype.constructor=CChangesBaseDoubleValue;CChangesBaseDoubleValue.prototype.WriteToBinary=function(Writer){Writer.WriteDouble(this.New);Writer.WriteDouble(this.Old)};CChangesBaseDoubleValue.prototype.ReadFromBinary=
|
|
function(Reader){this.New=Reader.GetDouble();this.Old=Reader.GetDouble()};window["AscDFH"].CChangesBaseDoubleValue=CChangesBaseDoubleValue})(window);"use strict";
|
|
(function(window,undefined){function CTableId(){this.m_aPairs=null;this.m_bTurnOff=false;this.m_oFactoryClass={};this.Id=null;this.isInit=false}CTableId.prototype.checkInit=function(){return this.isInit};CTableId.prototype.init=function(){this.m_aPairs={};this.m_bTurnOff=false;this.m_oFactoryClass={};this.Id=AscCommon.g_oIdCounter.Get_NewId();this.Add(this,this.Id);this.private_InitFactoryClass();this.isInit=true};CTableId.prototype.Add=function(Class,Id){if(false===this.m_bTurnOff){Class.Id=Id;this.m_aPairs[Id]=
|
|
Class;AscCommon.History.Add(new AscCommon.CChangesTableIdAdd(this,Id,Class))}};CTableId.prototype.TurnOff=function(){this.m_bTurnOff=true};CTableId.prototype.TurnOn=function(){this.m_bTurnOff=false};CTableId.prototype.IsOn=function(){return!this.m_bTurnOff};CTableId.prototype.Get_ById=function(Id){if(""===Id)return null;if(this.m_aPairs[Id])return this.m_aPairs[Id];return null};CTableId.prototype.Get_ByClass=function(Class){if(Class.Get_Id)return Class.Get_Id();if(Class.GetId())return Class.GetId();
|
|
return null};CTableId.prototype.Get_Id=function(){return this.Id};CTableId.prototype.Clear=function(){this.m_aPairs={};this.m_bTurnOff=false;this.Id=AscCommon.g_oIdCounter.Get_NewId();this.Add(this,this.Id)};CTableId.prototype.private_InitFactoryClass=function(){this.m_oFactoryClass[AscDFH.historyitem_type_Paragraph]=AscCommonWord.Paragraph;this.m_oFactoryClass[AscDFH.historyitem_type_TextPr]=AscCommonWord.ParaTextPr;this.m_oFactoryClass[AscDFH.historyitem_type_Hyperlink]=AscCommonWord.ParaHyperlink;
|
|
this.m_oFactoryClass[AscDFH.historyitem_type_Drawing]=AscCommonWord.ParaDrawing;this.m_oFactoryClass[AscDFH.historyitem_type_Table]=AscCommonWord.CTable;this.m_oFactoryClass[AscDFH.historyitem_type_TableRow]=AscCommonWord.CTableRow;this.m_oFactoryClass[AscDFH.historyitem_type_TableCell]=AscCommonWord.CTableCell;this.m_oFactoryClass[AscDFH.historyitem_type_DocumentContent]=AscCommonWord.CDocumentContent;this.m_oFactoryClass[AscDFH.historyitem_type_HdrFtr]=AscCommonWord.CHeaderFooter;this.m_oFactoryClass[AscDFH.historyitem_type_AbstractNum]=
|
|
AscCommonWord.CAbstractNum;this.m_oFactoryClass[AscDFH.historyitem_type_Comment]=AscCommon.CComment;this.m_oFactoryClass[AscDFH.historyitem_type_Style]=AscCommonWord.CStyle;this.m_oFactoryClass[AscDFH.historyitem_type_CommentMark]=AscCommon.ParaComment;this.m_oFactoryClass[AscDFH.historyitem_type_ParaRun]=AscCommonWord.ParaRun;this.m_oFactoryClass[AscDFH.historyitem_type_Section]=AscCommonWord.CSectionPr;this.m_oFactoryClass[AscDFH.historyitem_type_Field]=AscCommonWord.ParaField;this.m_oFactoryClass[AscDFH.historyitem_type_FootEndNote]=
|
|
AscCommonWord.CFootEndnote;this.m_oFactoryClass[AscDFH.historyitem_type_DefaultShapeDefinition]=AscFormat.DefaultShapeDefinition;this.m_oFactoryClass[AscDFH.historyitem_type_CNvPr]=AscFormat.CNvPr;this.m_oFactoryClass[AscDFH.historyitem_type_NvPr]=AscFormat.NvPr;this.m_oFactoryClass[AscDFH.historyitem_type_Ph]=AscFormat.Ph;this.m_oFactoryClass[AscDFH.historyitem_type_UniNvPr]=AscFormat.UniNvPr;this.m_oFactoryClass[AscDFH.historyitem_type_StyleRef]=AscFormat.StyleRef;this.m_oFactoryClass[AscDFH.historyitem_type_FontRef]=
|
|
AscFormat.FontRef;this.m_oFactoryClass[AscDFH.historyitem_type_Chart]=AscFormat.CChart;this.m_oFactoryClass[AscDFH.historyitem_type_ChartSpace]=AscFormat.CChartSpace;this.m_oFactoryClass[AscDFH.historyitem_type_Legend]=AscFormat.CLegend;this.m_oFactoryClass[AscDFH.historyitem_type_Layout]=AscFormat.CLayout;this.m_oFactoryClass[AscDFH.historyitem_type_LegendEntry]=AscFormat.CLegendEntry;this.m_oFactoryClass[AscDFH.historyitem_type_PivotFmt]=AscFormat.CPivotFmt;this.m_oFactoryClass[AscDFH.historyitem_type_DLbl]=
|
|
AscFormat.CDLbl;this.m_oFactoryClass[AscDFH.historyitem_type_Marker]=AscFormat.CMarker;this.m_oFactoryClass[AscDFH.historyitem_type_PlotArea]=AscFormat.CPlotArea;this.m_oFactoryClass[AscDFH.historyitem_type_NumFmt]=AscFormat.CNumFmt;this.m_oFactoryClass[AscDFH.historyitem_type_Scaling]=AscFormat.CScaling;this.m_oFactoryClass[AscDFH.historyitem_type_DTable]=AscFormat.CDTable;this.m_oFactoryClass[AscDFH.historyitem_type_LineChart]=AscFormat.CLineChart;this.m_oFactoryClass[AscDFH.historyitem_type_DLbls]=
|
|
AscFormat.CDLbls;this.m_oFactoryClass[AscDFH.historyitem_type_UpDownBars]=AscFormat.CUpDownBars;this.m_oFactoryClass[AscDFH.historyitem_type_BarChart]=AscFormat.CBarChart;this.m_oFactoryClass[AscDFH.historyitem_type_BubbleChart]=AscFormat.CBubbleChart;this.m_oFactoryClass[AscDFH.historyitem_type_DoughnutChart]=AscFormat.CDoughnutChart;this.m_oFactoryClass[AscDFH.historyitem_type_OfPieChart]=AscFormat.COfPieChart;this.m_oFactoryClass[AscDFH.historyitem_type_PieChart]=AscFormat.CPieChart;this.m_oFactoryClass[AscDFH.historyitem_type_RadarChart]=
|
|
AscFormat.CRadarChart;this.m_oFactoryClass[AscDFH.historyitem_type_ScatterChart]=AscFormat.CScatterChart;this.m_oFactoryClass[AscDFH.historyitem_type_StockChart]=AscFormat.CStockChart;this.m_oFactoryClass[AscDFH.historyitem_type_SurfaceChart]=AscFormat.CSurfaceChart;this.m_oFactoryClass[AscDFH.historyitem_type_BandFmt]=AscFormat.CBandFmt;this.m_oFactoryClass[AscDFH.historyitem_type_AreaChart]=AscFormat.CAreaChart;this.m_oFactoryClass[AscDFH.historyitem_type_ScatterSer]=AscFormat.CScatterSeries;this.m_oFactoryClass[AscDFH.historyitem_type_DPt]=
|
|
AscFormat.CDPt;this.m_oFactoryClass[AscDFH.historyitem_type_ErrBars]=AscFormat.CErrBars;this.m_oFactoryClass[AscDFH.historyitem_type_MinusPlus]=AscFormat.CMinusPlus;this.m_oFactoryClass[AscDFH.historyitem_type_NumLit]=AscFormat.CNumLit;this.m_oFactoryClass[AscDFH.historyitem_type_NumericPoint]=AscFormat.CNumericPoint;this.m_oFactoryClass[AscDFH.historyitem_type_NumRef]=AscFormat.CNumRef;this.m_oFactoryClass[AscDFH.historyitem_type_TrendLine]=AscFormat.CTrendLine;this.m_oFactoryClass[AscDFH.historyitem_type_Tx]=
|
|
AscFormat.CTx;this.m_oFactoryClass[AscDFH.historyitem_type_StrRef]=AscFormat.CStrRef;this.m_oFactoryClass[AscDFH.historyitem_type_StrCache]=AscFormat.CStrCache;this.m_oFactoryClass[AscDFH.historyitem_type_StrPoint]=AscFormat.CStringPoint;this.m_oFactoryClass[AscDFH.historyitem_type_MultiLvlStrRef]=AscFormat.CMultiLvlStrRef;this.m_oFactoryClass[AscDFH.historyitem_type_MultiLvlStrCache]=AscFormat.CMultiLvlStrCache;this.m_oFactoryClass[AscDFH.historyitem_type_YVal]=AscFormat.CYVal;this.m_oFactoryClass[AscDFH.historyitem_type_AreaSeries]=
|
|
AscFormat.CAreaSeries;this.m_oFactoryClass[AscDFH.historyitem_type_Cat]=AscFormat.CCat;this.m_oFactoryClass[AscDFH.historyitem_type_PictureOptions]=AscFormat.CPictureOptions;this.m_oFactoryClass[AscDFH.historyitem_type_RadarSeries]=AscFormat.CRadarSeries;this.m_oFactoryClass[AscDFH.historyitem_type_BarSeries]=AscFormat.CBarSeries;this.m_oFactoryClass[AscDFH.historyitem_type_LineSeries]=AscFormat.CLineSeries;this.m_oFactoryClass[AscDFH.historyitem_type_PieSeries]=AscFormat.CPieSeries;this.m_oFactoryClass[AscDFH.historyitem_type_SurfaceSeries]=
|
|
AscFormat.CSurfaceSeries;this.m_oFactoryClass[AscDFH.historyitem_type_BubbleSeries]=AscFormat.CBubbleSeries;this.m_oFactoryClass[AscDFH.historyitem_type_ExternalData]=AscFormat.CExternalData;this.m_oFactoryClass[AscDFH.historyitem_type_PivotSource]=AscFormat.CPivotSource;this.m_oFactoryClass[AscDFH.historyitem_type_Protection]=AscFormat.CProtection;this.m_oFactoryClass[AscDFH.historyitem_type_ChartWall]=AscFormat.CChartWall;this.m_oFactoryClass[AscDFH.historyitem_type_View3d]=AscFormat.CView3d;this.m_oFactoryClass[AscDFH.historyitem_type_ChartText]=
|
|
AscFormat.CChartText;this.m_oFactoryClass[AscDFH.historyitem_type_ShapeStyle]=AscFormat.CShapeStyle;this.m_oFactoryClass[AscDFH.historyitem_type_Xfrm]=AscFormat.CXfrm;this.m_oFactoryClass[AscDFH.historyitem_type_SpPr]=AscFormat.CSpPr;this.m_oFactoryClass[AscDFH.historyitem_type_ClrScheme]=AscFormat.ClrScheme;this.m_oFactoryClass[AscDFH.historyitem_type_ClrMap]=AscFormat.ClrMap;this.m_oFactoryClass[AscDFH.historyitem_type_ExtraClrScheme]=AscFormat.ExtraClrScheme;this.m_oFactoryClass[AscDFH.historyitem_type_FontCollection]=
|
|
AscFormat.FontCollection;this.m_oFactoryClass[AscDFH.historyitem_type_FontScheme]=AscFormat.FontScheme;this.m_oFactoryClass[AscDFH.historyitem_type_FormatScheme]=AscFormat.FmtScheme;this.m_oFactoryClass[AscDFH.historyitem_type_ThemeElements]=AscFormat.ThemeElements;this.m_oFactoryClass[AscDFH.historyitem_type_HF]=AscFormat.HF;this.m_oFactoryClass[AscDFH.historyitem_type_BgPr]=AscFormat.CBgPr;this.m_oFactoryClass[AscDFH.historyitem_type_Bg]=AscFormat.CBg;this.m_oFactoryClass[AscDFH.historyitem_type_PrintSettings]=
|
|
AscFormat.CPrintSettings;this.m_oFactoryClass[AscDFH.historyitem_type_HeaderFooterChart]=AscFormat.CHeaderFooterChart;this.m_oFactoryClass[AscDFH.historyitem_type_PageMarginsChart]=AscFormat.CPageMarginsChart;this.m_oFactoryClass[AscDFH.historyitem_type_PageSetup]=AscFormat.CPageSetup;this.m_oFactoryClass[AscDFH.historyitem_type_Shape]=AscFormat.CShape;this.m_oFactoryClass[AscDFH.historyitem_type_DispUnits]=AscFormat.CDispUnits;this.m_oFactoryClass[AscDFH.historyitem_type_GroupShape]=AscFormat.CGroupShape;
|
|
this.m_oFactoryClass[AscDFH.historyitem_type_ImageShape]=AscFormat.CImageShape;this.m_oFactoryClass[AscDFH.historyitem_type_Geometry]=AscFormat.Geometry;this.m_oFactoryClass[AscDFH.historyitem_type_Path]=AscFormat.Path;this.m_oFactoryClass[AscDFH.historyitem_type_TextBody]=AscFormat.CTextBody;this.m_oFactoryClass[AscDFH.historyitem_type_CatAx]=AscFormat.CCatAx;this.m_oFactoryClass[AscDFH.historyitem_type_ValAx]=AscFormat.CValAx;this.m_oFactoryClass[AscDFH.historyitem_type_WrapPolygon]=AscCommonWord.CWrapPolygon;
|
|
this.m_oFactoryClass[AscDFH.historyitem_type_DateAx]=AscFormat.CDateAx;this.m_oFactoryClass[AscDFH.historyitem_type_SerAx]=AscFormat.CSerAx;this.m_oFactoryClass[AscDFH.historyitem_type_Title]=AscFormat.CTitle;this.m_oFactoryClass[AscDFH.historyitem_type_OleObject]=AscFormat.COleObject;this.m_oFactoryClass[AscDFH.historyitem_type_Cnx]=AscFormat.CConnectionShape;this.m_oFactoryClass[AscDFH.historyitem_type_DrawingContent]=AscFormat.CDrawingDocContent;this.m_oFactoryClass[AscDFH.historyitem_type_Math]=
|
|
AscCommonWord.ParaMath;this.m_oFactoryClass[AscDFH.historyitem_type_MathContent]=AscCommonWord.CMathContent;this.m_oFactoryClass[AscDFH.historyitem_type_acc]=AscCommonWord.CAccent;this.m_oFactoryClass[AscDFH.historyitem_type_bar]=AscCommonWord.CBar;this.m_oFactoryClass[AscDFH.historyitem_type_box]=AscCommonWord.CBox;this.m_oFactoryClass[AscDFH.historyitem_type_borderBox]=AscCommonWord.CBorderBox;this.m_oFactoryClass[AscDFH.historyitem_type_delimiter]=AscCommonWord.CDelimiter;this.m_oFactoryClass[AscDFH.historyitem_type_eqArr]=
|
|
AscCommonWord.CEqArray;this.m_oFactoryClass[AscDFH.historyitem_type_frac]=AscCommonWord.CFraction;this.m_oFactoryClass[AscDFH.historyitem_type_mathFunc]=AscCommonWord.CMathFunc;this.m_oFactoryClass[AscDFH.historyitem_type_groupChr]=AscCommonWord.CGroupCharacter;this.m_oFactoryClass[AscDFH.historyitem_type_lim]=AscCommonWord.CLimit;this.m_oFactoryClass[AscDFH.historyitem_type_matrix]=AscCommonWord.CMathMatrix;this.m_oFactoryClass[AscDFH.historyitem_type_nary]=AscCommonWord.CNary;this.m_oFactoryClass[AscDFH.historyitem_type_phant]=
|
|
AscCommonWord.CPhantom;this.m_oFactoryClass[AscDFH.historyitem_type_rad]=AscCommonWord.CRadical;this.m_oFactoryClass[AscDFH.historyitem_type_deg_subsup]=AscCommonWord.CDegreeSubSup;this.m_oFactoryClass[AscDFH.historyitem_type_deg]=AscCommonWord.CDegree;this.m_oFactoryClass[AscDFH.historyitem_type_BlockLevelSdt]=AscCommonWord.CBlockLevelSdt;this.m_oFactoryClass[AscDFH.historyitem_type_InlineLevelSdt]=AscCommonWord.CInlineLevelSdt;this.m_oFactoryClass[AscDFH.historyitem_type_ParaBookmark]=AscCommonWord.CParagraphBookmark;
|
|
this.m_oFactoryClass[AscDFH.historyitem_type_Num]=AscCommonWord.CNum;this.m_oFactoryClass[AscDFH.historyitem_type_PresentationField]=AscCommonWord.CPresentationField;this.m_oFactoryClass[AscDFH.historyitem_type_RelSizeAnchor]=AscFormat.CRelSizeAnchor;this.m_oFactoryClass[AscDFH.historyitem_type_AbsSizeAnchor]=AscFormat.CAbsSizeAnchor;this.m_oFactoryClass[AscDFH.historyitem_type_ParaRevisionMove]=AscCommon.CParaRevisionMove;this.m_oFactoryClass[AscDFH.historyitem_type_RunRevisionMove]=AscCommon.CRunRevisionMove;
|
|
this.m_oFactoryClass[AscDFH.historyitem_type_DocPart]=AscCommon.CDocPart;this.m_oFactoryClass[AscDFH.historyitem_type_SlicerView]=AscFormat.CSlicer;this.m_oFactoryClass[AscDFH.historyitem_type_ChartStyle]=AscFormat.CChartStyle;this.m_oFactoryClass[AscDFH.historyitem_type_MarkerLayout]=AscFormat.CMarkerLayout;this.m_oFactoryClass[AscDFH.historyitem_type_ChartStyleEntry]=AscFormat.CStyleEntry;if(window["AscCommonSlide"]){this.m_oFactoryClass[AscDFH.historyitem_type_Slide]=AscCommonSlide.Slide;this.m_oFactoryClass[AscDFH.historyitem_type_SlideLayout]=
|
|
AscCommonSlide.SlideLayout;this.m_oFactoryClass[AscDFH.historyitem_type_SlideMaster]=AscCommonSlide.MasterSlide;this.m_oFactoryClass[AscDFH.historyitem_type_SlideComments]=AscCommonSlide.SlideComments;this.m_oFactoryClass[AscDFH.historyitem_type_PropLocker]=AscCommonSlide.PropLocker;this.m_oFactoryClass[AscDFH.historyitem_type_NotesMaster]=AscCommonSlide.CNotesMaster;this.m_oFactoryClass[AscDFH.historyitem_type_Notes]=AscCommonSlide.CNotes;this.m_oFactoryClass[AscDFH.historyitem_type_PresentationSection]=
|
|
AscCommonSlide.CPrSection;this.m_oFactoryClass[AscDFH.historyitem_type_SldSz]=AscCommonSlide.CSlideSize;this.m_oFactoryClass[AscDFH.historyitem_type_EmptyObject]=AscFormat.CEmptyObject;this.m_oFactoryClass[AscDFH.historyitem_type_Timing]=AscFormat.CTiming;this.m_oFactoryClass[AscDFH.historyitem_type_CommonTimingList]=AscFormat.CCommonTimingList;this.m_oFactoryClass[AscDFH.historyitem_type_AttrNameLst]=AscFormat.CAttrNameLst;this.m_oFactoryClass[AscDFH.historyitem_type_BldLst]=AscFormat.CBldLst;this.m_oFactoryClass[AscDFH.historyitem_type_CondLst]=
|
|
AscFormat.CCondLst;this.m_oFactoryClass[AscDFH.historyitem_type_ChildTnLst]=AscFormat.CChildTnLst;this.m_oFactoryClass[AscDFH.historyitem_type_TmplLst]=AscFormat.CTmplLst;this.m_oFactoryClass[AscDFH.historyitem_type_TnLst]=AscFormat.CTnLst;this.m_oFactoryClass[AscDFH.historyitem_type_TavLst]=AscFormat.CTavLst;this.m_oFactoryClass[AscDFH.historyitem_type_ObjectTarget]=AscFormat.CObjectTarget;this.m_oFactoryClass[AscDFH.historyitem_type_BldBase]=AscFormat.CBldBase;this.m_oFactoryClass[AscDFH.historyitem_type_BldDgm]=
|
|
AscFormat.CBldDgm;this.m_oFactoryClass[AscDFH.historyitem_type_BldGraphic]=AscFormat.CBldGraphic;this.m_oFactoryClass[AscDFH.historyitem_type_BldOleChart]=AscFormat.CBldOleChart;this.m_oFactoryClass[AscDFH.historyitem_type_BldP]=AscFormat.CBldP;this.m_oFactoryClass[AscDFH.historyitem_type_BldSub]=AscFormat.CBldSub;this.m_oFactoryClass[AscDFH.historyitem_type_DirTransition]=AscFormat.CDirTransition;this.m_oFactoryClass[AscDFH.historyitem_type_OptBlackTransition]=AscFormat.COptionalBlackTransition;
|
|
this.m_oFactoryClass[AscDFH.historyitem_type_GraphicEl]=AscFormat.CGraphicEl;this.m_oFactoryClass[AscDFH.historyitem_type_IndexRg]=AscFormat.CIndexRg;this.m_oFactoryClass[AscDFH.historyitem_type_Tmpl]=AscFormat.CTmpl;this.m_oFactoryClass[AscDFH.historyitem_type_Anim]=AscFormat.CAnim;this.m_oFactoryClass[AscDFH.historyitem_type_CBhvr]=AscFormat.CCBhvr;this.m_oFactoryClass[AscDFH.historyitem_type_CTn]=AscFormat.CCTn;this.m_oFactoryClass[AscDFH.historyitem_type_Cond]=AscFormat.CCond;this.m_oFactoryClass[AscDFH.historyitem_type_Rtn]=
|
|
AscFormat.CRtn;this.m_oFactoryClass[AscDFH.historyitem_type_TgtEl]=AscFormat.CTgtEl;this.m_oFactoryClass[AscDFH.historyitem_type_SndTgt]=AscFormat.CSndTgt;this.m_oFactoryClass[AscDFH.historyitem_type_SpTgt]=AscFormat.CSpTgt;this.m_oFactoryClass[AscDFH.historyitem_type_IterateData]=AscFormat.CIterateData;this.m_oFactoryClass[AscDFH.historyitem_type_Tm]=AscFormat.CTm;this.m_oFactoryClass[AscDFH.historyitem_type_Tav]=AscFormat.CTav;this.m_oFactoryClass[AscDFH.historyitem_type_AnimVariant]=AscFormat.CAnimVariant;
|
|
this.m_oFactoryClass[AscDFH.historyitem_type_AnimClr]=AscFormat.CAnimClr;this.m_oFactoryClass[AscDFH.historyitem_type_AnimEffect]=AscFormat.CAnimEffect;this.m_oFactoryClass[AscDFH.historyitem_type_AnimMotion]=AscFormat.CAnimMotion;this.m_oFactoryClass[AscDFH.historyitem_type_AnimRot]=AscFormat.CAnimRot;this.m_oFactoryClass[AscDFH.historyitem_type_AnimScale]=AscFormat.CAnimScale;this.m_oFactoryClass[AscDFH.historyitem_type_Audio]=AscFormat.CAudio;this.m_oFactoryClass[AscDFH.historyitem_type_CMediaNode]=
|
|
AscFormat.CCMediaNode;this.m_oFactoryClass[AscDFH.historyitem_type_Cmd]=AscFormat.CCmd;this.m_oFactoryClass[AscDFH.historyitem_type_TimeNodeContainer]=AscFormat.CTimeNodeContainer;this.m_oFactoryClass[AscDFH.historyitem_type_Par]=AscFormat.CPar;this.m_oFactoryClass[AscDFH.historyitem_type_Excl]=AscFormat.CExcl;this.m_oFactoryClass[AscDFH.historyitem_type_Seq]=AscFormat.CSeq;this.m_oFactoryClass[AscDFH.historyitem_type_Set]=AscFormat.CSet;this.m_oFactoryClass[AscDFH.historyitem_type_Video]=AscFormat.CVideo;
|
|
this.m_oFactoryClass[AscDFH.historyitem_type_OleChartEl]=AscFormat.COleChartEl;this.m_oFactoryClass[AscDFH.historyitem_type_TlPoint]=AscFormat.CTLPoint;this.m_oFactoryClass[AscDFH.historyitem_type_SndAc]=AscFormat.CSndAc;this.m_oFactoryClass[AscDFH.historyitem_type_StSnd]=AscFormat.CStSnd;this.m_oFactoryClass[AscDFH.historyitem_type_TxEl]=AscFormat.CTxEl;this.m_oFactoryClass[AscDFH.historyitem_type_Wheel]=AscFormat.CWheel;this.m_oFactoryClass[AscDFH.historyitem_type_AttrName]=AscFormat.CAttrName}this.m_oFactoryClass[AscDFH.historyitem_type_Theme]=
|
|
AscFormat.CTheme;this.m_oFactoryClass[AscDFH.historyitem_type_GraphicFrame]=AscFormat.CGraphicFrame;if(window["AscCommonExcel"]){this.m_oFactoryClass[AscDFH.historyitem_type_Sparkline]=AscCommonExcel.sparklineGroup;this.m_oFactoryClass[AscDFH.historyitem_type_PivotTableDefinition]=Asc.CT_pivotTableDefinition;this.m_oFactoryClass[AscDFH.historyitem_type_PivotWorksheetSource]=Asc.CT_WorksheetSource;this.m_oFactoryClass[AscDFH.historyitem_type_NamedSheetView]=Asc.CT_NamedSheetView;this.m_oFactoryClass[AscDFH.historyitem_type_DataValidation]=
|
|
AscCommonExcel.CDataValidation}this.m_oFactoryClass[AscDFH.historyitem_type_DocumentMacros]=AscCommon.CDocumentMacros};CTableId.prototype.GetClassFromFactory=function(nType){if(this.m_oFactoryClass[nType])return new this.m_oFactoryClass[nType];return null};CTableId.prototype.Refresh_RecalcData=function(Data){};CTableId.prototype.Unlock=function(Data){};window["AscCommon"].g_oTableId=new CTableId;window["AscCommon"].CTableId=CTableId})(window);"use strict";
|
|
(function(window,undefined){function CChangesTableIdAdd(Class,Id,NewClass){AscDFH.CChangesBase.call(this,Class);this.Id=Id;this.NewClass=NewClass}CChangesTableIdAdd.prototype=Object.create(AscDFH.CChangesBase.prototype);CChangesTableIdAdd.prototype.constructor=CChangesTableIdAdd;CChangesTableIdAdd.prototype.Type=AscDFH.historyitem_TableId_Add;CChangesTableIdAdd.prototype.Undo=function(){};CChangesTableIdAdd.prototype.Redo=function(){};CChangesTableIdAdd.prototype.WriteToBinary=function(Writer){Writer.WriteString2(this.Id);
|
|
this.NewClass.Write_ToBinary2(Writer)};CChangesTableIdAdd.prototype.ReadFromBinary=function(Reader){this.Id=Reader.GetString2();this.NewClass=this.private_ReadClassFromBinary(Reader)};CChangesTableIdAdd.prototype.Load=function(Color){this.Class.m_aPairs[this.Id]=this.NewClass};CChangesTableIdAdd.prototype.RefreshRecalcData=function(){};CChangesTableIdAdd.prototype.private_ReadClassFromBinary=function(Reader){var oTableId=this.Class;var ElementType=Reader.GetLong();oTableId.TurnOff();var Element=oTableId.GetClassFromFactory(ElementType);
|
|
if(null!==Element)Element.Read_FromBinary2(Reader);oTableId.TurnOn();return Element};CChangesTableIdAdd.prototype.CreateReverseChange=function(){return null};window["AscCommon"].CChangesTableIdAdd=CChangesTableIdAdd;function CChangesTableIdDescription(Class,FileCheckSum,FileSize,Description,ItemsCount,PointIndex,StartPoint,LastPoint,SumIndex,DeletedIndex){AscDFH.CChangesBase.call(this,Class);this.FileCheckSum=FileCheckSum;this.FileSize=FileSize;this.Description=Description;this.ItemsCount=ItemsCount;
|
|
this.PointIndex=PointIndex;this.StartPoint=StartPoint;this.LastPoint=LastPoint;this.SumIndex=SumIndex;this.DeletedIndex=DeletedIndex;this.VersionString="0.0.0.0.@@Rev"}CChangesTableIdDescription.prototype=Object.create(AscDFH.CChangesBase.prototype);CChangesTableIdDescription.prototype.constructor=CChangesTableIdDescription;CChangesTableIdDescription.prototype.Type=AscDFH.historyitem_TableId_Description;CChangesTableIdDescription.prototype.Undo=function(){};CChangesTableIdDescription.prototype.Redo=
|
|
function(){};CChangesTableIdDescription.prototype.WriteToBinary=function(Writer){Writer.WriteLong(this.FileCheckSum);Writer.WriteLong(this.FileSize);Writer.WriteLong(this.Description);Writer.WriteLong(this.ItemsCount);Writer.WriteLong(this.PointIndex);Writer.WriteLong(this.StartPoint);Writer.WriteLong(this.LastPoint);Writer.WriteLong(this.SumIndex);Writer.WriteLong(null===this.DeletedIndex?-10:this.DeletedIndex);Writer.WriteString2(this.VersionString)};CChangesTableIdDescription.prototype.ReadFromBinary=
|
|
function(Reader){this.FileCheckSum=Reader.GetLong();this.FileSize=Reader.GetLong();this.Description=Reader.GetLong();this.ItemsCount=Reader.GetLong();this.PointIndex=Reader.GetLong();this.StartPoint=Reader.GetLong();this.LastPoint=Reader.GetLong();this.SumIndex=Reader.GetLong();this.DeletedIndex=Reader.GetLong();this.VersionString=Reader.GetString2()};CChangesTableIdDescription.prototype.Load=function(Color){};CChangesTableIdDescription.prototype.RefreshRecalcData=function(){};CChangesTableIdDescription.prototype.CreateReverseChange=
|
|
function(){return null};CChangesTableIdDescription.prototype.IsDescriptionChange=function(){return true};window["AscCommon"].CChangesTableIdDescription=CChangesTableIdDescription;function CChangesCommonAddWaterMark(Class,Url){AscDFH.CChangesBase.call(this,Class);this.Url=Url?Url:""}CChangesCommonAddWaterMark.prototype=Object.create(AscDFH.CChangesBase.prototype);CChangesCommonAddWaterMark.prototype.constructor=CChangesCommonAddWaterMark;CChangesCommonAddWaterMark.prototype.Type=AscDFH.historyitem_Common_AddWatermark;
|
|
CChangesCommonAddWaterMark.prototype.Undo=function(){};CChangesCommonAddWaterMark.prototype.Redo=function(){};CChangesCommonAddWaterMark.prototype.WriteToBinary=function(Writer){Writer.WriteString2(this.Url)};CChangesCommonAddWaterMark.prototype.ReadFromBinary=function(Reader){this.Url=Reader.GetString2()};CChangesCommonAddWaterMark.prototype.Load=function(Color){var sUrl=this.Url;if(editor&&editor.WordControl&&editor.WordControl.m_oLogicDocument){var oLogicDocument=editor.WordControl.m_oLogicDocument;
|
|
if(oLogicDocument instanceof AscCommonWord.CDocument){var oParaDrawing=oLogicDocument.DrawingObjects.getTrialImage(sUrl);var oFirstParagraph=oLogicDocument.Get_FirstParagraph();AscFormat.ExecuteNoHistory(function(){var oRun=new AscCommonWord.ParaRun;oRun.Content.splice(0,0,oParaDrawing);oFirstParagraph.Content.splice(0,0,oRun);oLogicDocument.DrawingObjects.addGraphicObject(oParaDrawing)},this,[])}else if(oLogicDocument instanceof AscCommonSlide.CPresentation)if(oLogicDocument.Slides[0]){var oDrawing=
|
|
oLogicDocument.Slides[0].graphicObjects.createWatermarkImage(sUrl);oDrawing.spPr.xfrm.offX=(oLogicDocument.GetWidthMM()-oDrawing.spPr.xfrm.extX)/2;oDrawing.spPr.xfrm.offY=(oLogicDocument.GetHeightMM()-oDrawing.spPr.xfrm.extY)/2;oDrawing.parent=oLogicDocument.Slides[0];oLogicDocument.Slides[0].cSld.spTree.push(oDrawing)}}else{var oWsModel=window["Asc"]["editor"].wbModel.aWorksheets[0];if(oWsModel){var objectRender=new AscFormat.DrawingObjects;var oNewDrawing=objectRender.createDrawingObject(AscCommon.c_oAscCellAnchorType.cellanchorAbsolute);
|
|
var oImage=AscFormat.DrawingObjectsController.prototype.createWatermarkImage(sUrl);oNewDrawing.ext.cx=oImage.spPr.xfrm.extX;oNewDrawing.ext.cy=oImage.spPr.xfrm.extY;oNewDrawing.graphicObject=oImage;oWsModel.Drawings.push(oNewDrawing)}}};CChangesCommonAddWaterMark.prototype.RefreshRecalcData=function(){};CChangesCommonAddWaterMark.prototype.CreateReverseChange=function(){return null};window["AscCommon"].CChangesCommonAddWaterMark=CChangesCommonAddWaterMark})(window);
|
|
AscDFH.changesFactory[AscDFH.historyitem_TableId_Add]=AscCommon.CChangesTableIdAdd;AscDFH.changesFactory[AscDFH.historyitem_TableId_Description]=AscCommon.CChangesTableIdDescription;AscDFH.changesFactory[AscDFH.historyitem_Common_AddWatermark]=AscCommon.CChangesCommonAddWaterMark;AscDFH.changesRelationMap[AscDFH.historyitem_TableId_Add]=[AscDFH.historyitem_TableId_Add];AscDFH.changesRelationMap[AscDFH.historyitem_TableId_Reset]=[AscDFH.historyitem_TableId_Reset];
|
|
AscDFH.changesRelationMap[AscDFH.historyitem_TableId_Description]=[AscDFH.historyitem_TableId_Description];AscDFH.changesRelationMap[AscDFH.historyitem_Common_AddWatermark]=[AscDFH.historyitem_Common_AddWatermark];"use strict";
|
|
(function(window,undefined){function asc_CDownloadOptions(fileType,isDownloadEvent){this.fileType=fileType;this.isDownloadEvent=!!isDownloadEvent;this.advancedOptions=null;this.compatible=false;this.isNaturalDownload=false;this.errorDirect=null;this.oDocumentMailMerge=null;this.oMailMergeSendData=null;this.callback=null;this.isGetTextFromUrl=null}asc_CDownloadOptions.prototype.asc_setFileType=function(fileType){this.fileType=fileType};asc_CDownloadOptions.prototype.asc_setIsDownloadEvent=function(isDownloadEvent){this.isDownloadEvent=
|
|
isDownloadEvent};asc_CDownloadOptions.prototype.asc_setAdvancedOptions=function(advancedOptions){this.advancedOptions=advancedOptions};asc_CDownloadOptions.prototype.asc_setCompatible=function(compatible){this.compatible=compatible};function asc_CAdvancedOptions(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_CTextOptions(opt["codepage"],opt["delimiter"]);
|
|
this.data=opt["data"]}asc_CAdvancedOptions.prototype.asc_getCodePages=function(){return this.codePages};asc_CAdvancedOptions.prototype.asc_getRecommendedSettings=function(){return this.recommendedSettings};asc_CAdvancedOptions.prototype.asc_getData=function(){return this.data};function asc_CTextOptions(codepage,delimiter,delimiterChar){this.codePage=codepage;this.delimiter=delimiter;this.delimiterChar=delimiterChar;this.numberDecimalSeparator=null;this.numberGroupSeparator=null}asc_CTextOptions.prototype.asc_getDelimiter=
|
|
function(){return this.delimiter};asc_CTextOptions.prototype.asc_setDelimiter=function(v){this.delimiter=v};asc_CTextOptions.prototype.asc_getDelimiterChar=function(){return this.delimiterChar};asc_CTextOptions.prototype.asc_setDelimiterChar=function(v){this.delimiterChar=v};asc_CTextOptions.prototype.asc_getCodePage=function(){return this.codePage};asc_CTextOptions.prototype.asc_setCodePage=function(v){this.codePage=v};asc_CTextOptions.prototype.asc_getNumberDecimalSeparator=function(){return this.numberDecimalSeparator!==
|
|
null?this.numberDecimalSeparator:AscCommon.g_oDefaultCultureInfo.NumberDecimalSeparator};asc_CTextOptions.prototype.asc_getNumberGroupSeparator=function(){return this.numberGroupSeparator!==null?this.numberGroupSeparator:AscCommon.g_oDefaultCultureInfo.NumberGroupSeparator};asc_CTextOptions.prototype.asc_setNumberDecimalSeparator=function(v){this.numberDecimalSeparator=v};asc_CTextOptions.prototype.asc_setNumberGroupSeparator=function(v){this.numberGroupSeparator=v};asc_CTextOptions.prototype.asc_getNumberDecimalSeparatorsArr=
|
|
function(){var arr=[",","."];if(arr.indexOf(AscCommon.g_oDefaultCultureInfo.NumberDecimalSeparator))arr.push(AscCommon.g_oDefaultCultureInfo.NumberDecimalSeparator);return arr};asc_CTextOptions.prototype.asc_getNumberGroupSeparatorsArr=function(){var arr=[",",".","'"];if(arr.indexOf(AscCommon.g_oDefaultCultureInfo.NumberGroupSeparator))arr.push(AscCommon.g_oDefaultCultureInfo.NumberGroupSeparator);return arr};function asc_CDRMAdvancedOptions(password){this.password=password}asc_CDRMAdvancedOptions.prototype.asc_getPassword=
|
|
function(){return this.password};asc_CDRMAdvancedOptions.prototype.asc_setPassword=function(v){this.password=v};function asc_CCodePage(){this.codePageName=null;this.codePage=null;this.text=null;this.lcid=null}asc_CCodePage.prototype.init=function(encoding){this.codePageName=encoding["name"];this.codePage=encoding["codepage"];this.text=encoding["text"];this.lcid=encoding["lcid"]};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};asc_CCodePage.prototype.asc_getLcid=function(){return this.lcid};asc_CCodePage.prototype.asc_setLcid=function(v){this.lcid=v};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};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)};function asc_CFormula(o){this.name=o.name}asc_CFormula.prototype.asc_getName=
|
|
function(){return this.name};asc_CFormula.prototype.asc_getLocaleName=function(){return AscCommonExcel.cFormulaFunctionToLocale?AscCommonExcel.cFormulaFunctionToLocale[this.name]:this.name};var prot;window["Asc"]=window["Asc"]||{};window["AscCommon"]=window["AscCommon"]||{};window["Asc"].asc_CDownloadOptions=window["Asc"]["asc_CDownloadOptions"]=asc_CDownloadOptions;prot=asc_CDownloadOptions.prototype;prot["asc_setFileType"]=prot.asc_setFileType;prot["asc_setIsDownloadEvent"]=prot.asc_setIsDownloadEvent;
|
|
prot["asc_setAdvancedOptions"]=prot.asc_setAdvancedOptions;prot["asc_setCompatible"]=prot.asc_setCompatible;window["AscCommon"].asc_CAdvancedOptions=asc_CAdvancedOptions;prot=asc_CAdvancedOptions.prototype;prot["asc_getCodePages"]=prot.asc_getCodePages;prot["asc_getRecommendedSettings"]=prot.asc_getRecommendedSettings;prot["asc_getData"]=prot.asc_getData;window["Asc"].asc_CTextOptions=window["Asc"]["asc_CTextOptions"]=asc_CTextOptions;prot=asc_CTextOptions.prototype;prot["asc_getDelimiter"]=prot.asc_getDelimiter;
|
|
prot["asc_setDelimiter"]=prot.asc_setDelimiter;prot["asc_getDelimiterChar"]=prot.asc_getDelimiterChar;prot["asc_setDelimiterChar"]=prot.asc_setDelimiterChar;prot["asc_getCodePage"]=prot.asc_getCodePage;prot["asc_setCodePage"]=prot.asc_setCodePage;prot["asc_setNumberDecimalSeparator"]=prot.asc_setNumberDecimalSeparator;prot["asc_setNumberGroupSeparator"]=prot.asc_setNumberGroupSeparator;window["Asc"].asc_CDRMAdvancedOptions=window["Asc"]["asc_CDRMAdvancedOptions"]=asc_CDRMAdvancedOptions;prot=asc_CDRMAdvancedOptions.prototype;
|
|
prot["asc_getPassword"]=prot.asc_getPassword;prot["asc_setPassword"]=prot.asc_setPassword;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;prot["asc_getLcid"]=prot.asc_getLcid;prot["asc_setLcid"]=prot.asc_setLcid;prot=asc_CDelimiter.prototype;prot["asc_getDelimiterName"]=
|
|
prot.asc_getDelimiterName;prot["asc_setDelimiterName"]=prot.asc_setDelimiterName;window["AscCommon"].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;window["AscCommon"].asc_CFormula=asc_CFormula;prot=asc_CFormula.prototype;prot["asc_getName"]=prot.asc_getName;prot["asc_getLocaleName"]=prot.asc_getLocaleName})(window);"use strict";
|
|
(function(window,undefined){window["AscFonts"]=window["AscFonts"]||{};window["AscFonts"].isEngineReady=false;window["AscFonts"].api=null;window["AscFonts"].onSuccess=null;window["AscFonts"].onError=null;window["AscFonts"].maxLoadingIndex=5;window["AscFonts"].curLoadingIndex=0;window["AscFonts"].allocate=function(size){if(typeof Uint8Array!="undefined"&&!window.opera)return new Uint8Array(size);var arr=new Array(size);for(var i=0;i<size;i++)arr[i]=0;return arr};window["AscFonts"].allocateData=function(size){return{data:window["AscFonts"].allocate(size)}};
|
|
window["AscFonts"].onLoadModule=function(){if(window["AscFonts"].isEngineReady)return;++window["AscFonts"].curLoadingIndex;if(window["AscFonts"].curLoadingIndex==window["AscFonts"].maxLoadingIndex){if(window["AscFonts"].api){window["AscFonts"].isEngineReady=true;window["AscFonts"].onSuccess.call(window["AscFonts"].api)}delete window["AscFonts"].curLoadingIndex;delete window["AscFonts"].maxLoadingIndex;delete window["AscFonts"].api;delete window["AscFonts"].onSuccess;delete window["AscFonts"].onError}};
|
|
window["AscFonts"].load=function(api,onSuccess,onError){window["AscFonts"].api=api;window["AscFonts"].onSuccess=onSuccess;window["AscFonts"].onError=onError;if(window["NATIVE_EDITOR_ENJINE"]===true||window["IS_NATIVE_EDITOR"]===true||window["Native"]!==undefined){window["AscFonts"].isEngineReady=true;window["AscFonts"].onSuccess.call(window["AscFonts"].api);delete window["AscFonts"].curLoadingIndex;delete window["AscFonts"].maxLoadingIndex;delete window["AscFonts"].api;delete window["AscFonts"].onSuccess;
|
|
delete window["AscFonts"].onError;return}var url="../../../../sdkjs/common/libfont";var useWasm=false;var webAsmObj=window["WebAssembly"];if(typeof webAsmObj==="object")if(typeof webAsmObj["Memory"]==="function")if(typeof webAsmObj["instantiateStreaming"]==="function"||typeof webAsmObj["instantiate"]==="function")useWasm=true;if(useWasm&&(AscCommon.AscBrowser.isAppleDevices||AscCommon.AscBrowser.isAndroid))useWasm=false;useWasm?url+="/wasm":url+="/js";if(!useWasm)window["AscFonts"].onLoadModule();
|
|
var _onSuccess=function(){};var _onError=function(){window["AscFonts"].onError()};if(window["AscNotLoadAllScript"]){AscCommon.loadScript(url+"/engine.js",_onSuccess,_onError);AscCommon.loadScript(url+"/file.js",_onSuccess,_onError);AscCommon.loadScript(url+"/manager.js",_onSuccess,_onError)}else AscCommon.loadScript(url+"/fonts.js?"+window.CP_urlArgs,_onSuccess,_onError)};function FontStream(data,size){this.data=data;this.size=size}window["AscFonts"].FontStream=FontStream;window["AscFonts"].FT_Common=
|
|
{UintToInt:function(v){return v>2147483647?v-4294967296:v},UShort_To_Short:function(v){return v>32767?v-65536:v},IntToUInt:function(v){return v<0?v+4294967296:v},Short_To_UShort:function(v){return v<0?v+65536:v},memset:function(d,v,s){for(var i=0;i<s;i++)d[i]=v}};function CPointer(){this.obj=null;this.data=null;this.pos=0}function FT_Memory(){this.canvas=document.createElement("canvas");this.canvas.width=1;this.canvas.height=1;this.ctx=this.canvas.getContext("2d");this.Alloc=function(size){var p=
|
|
new CPointer;p.obj=this.ctx.createImageData(1,parseInt((size+3)/4));p.data=p.obj.data;p.pos=0;return p};this.AllocHeap=function(){};this.CreateStream=function(size){var _size=parseInt((size+3)/4);var obj=this.ctx.createImageData(1,_size);return new FontStream(obj.data,_size)}}window["AscFonts"].FT_Memory=FT_Memory;window["AscFonts"].g_memory=new FT_Memory;function CRasterMemory(){this.width=0;this.height=0;this.pitch=0;this.m_oBuffer=null;this.CheckSize=function(w,h){if(this.width<w+1||this.height<
|
|
h+1){this.width=Math.max(this.width,w+1);this.pitch=4*this.width;this.height=Math.max(this.height,h+1);this.m_oBuffer=null;this.m_oBuffer=window["AscFonts"].g_memory.ctx.createImageData(this.width,this.height)}}}window["AscFonts"].raster_memory=new CRasterMemory;window["AscFonts"].registeredFontManagers=[];window["AscFonts"].getDefaultBlitting=function(){return AscCommon.AscBrowser.isIE&&!AscCommon.AscBrowser.isArm?true:false};window["AscFonts"].setDefaultBlitting=function(value){var defaultValue=
|
|
window["AscFonts"].getDefaultBlitting();var newValue=value?defaultValue:!defaultValue;if(window["AscFonts"].use_map_blitting===newValue)return;window["AscFonts"].use_map_blitting=newValue;var arrManagers=window["AscFonts"].registeredFontManagers;for(var i=0,count=arrManagers.length;i<count;i++){arrManagers[i].ClearFontsRasterCache();arrManagers[i].InitializeRasterMemory()}};window["AscFonts"].use_map_blitting=window["AscFonts"].getDefaultBlitting()})(window,undefined);"use strict";
|
|
var c_oAscZoomType={Current:0,FitWidth:1,FitPage:2};var c_oAscCollaborativeMarksShowType={All:0,LastChanges:1};var c_oAscVertAlignJc={Top:0,Center:1,Bottom:2};var c_oAscAlignType={LEFT:0,CENTER:1,RIGHT:2,JUSTIFY:3,TOP:4,MIDDLE:5,BOTTOM:6};var c_oAscContextMenuTypes={Main:0,Thumbnails:1};var THEME_THUMBNAIL_WIDTH=180;var THEME_THUMBNAIL_HEIGHT=135;var LAYOUT_THUMBNAIL_WIDTH=180;var LAYOUT_THUMBNAIL_HEIGHT=135;var c_oAscTableSelectionType={Cell:0,Row:1,Column:2,Table:3};
|
|
var c_oAscAlignShapeType={ALIGN_LEFT:0,ALIGN_RIGHT:1,ALIGN_TOP:2,ALIGN_BOTTOM:3,ALIGN_CENTER:4,ALIGN_MIDDLE:5};var c_oAscTableLayout={AutoFit:0,Fixed:1};var c_oAscSlideTransitionTypes={None:0,Fade:1,Push:2,Wipe:3,Split:4,UnCover:5,Cover:6,Clock:7,Zoom:8};
|
|
var c_oAscSlideTransitionParams={Fade_Smoothly:0,Fade_Through_Black:1,Param_Left:0,Param_Top:1,Param_Right:2,Param_Bottom:3,Param_TopLeft:4,Param_TopRight:5,Param_BottomLeft:6,Param_BottomRight:7,Split_VerticalIn:8,Split_VerticalOut:9,Split_HorizontalIn:10,Split_HorizontalOut:11,Clock_Clockwise:0,Clock_Counterclockwise:1,Clock_Wedge:2,Zoom_In:0,Zoom_Out:1,Zoom_AndRotate:2};var c_oAscLockTypeElemPresentation={Object:1,Slide:2,Presentation:3};var c_oSerFormat={Version:1,Signature:"PPTY"};
|
|
var c_oAscPresentationShortcutType={EditSelectAll:1,EditUndo:2,EditRedo:3,Cut:4,Copy:5,Paste:6,Duplicate:7,Print:8,Save:9,ShowContextMenu:10};var TABLE_STYLE_WIDTH_PIX=72;var TABLE_STYLE_HEIGHT_PIX=52;var prot;window["Asc"]=window["Asc"]||{};prot=window["Asc"]["c_oAscCollaborativeMarksShowType"]=c_oAscCollaborativeMarksShowType;prot["All"]=c_oAscCollaborativeMarksShowType.All;prot["LastChanges"]=c_oAscCollaborativeMarksShowType.LastChanges;prot=window["Asc"]["c_oAscVertAlignJc"]=c_oAscVertAlignJc;
|
|
prot["Top"]=c_oAscVertAlignJc.Top;prot["Center"]=c_oAscVertAlignJc.Center;prot["Bottom"]=c_oAscVertAlignJc.Bottom;prot=window["Asc"]["c_oAscContextMenuTypes"]=window["Asc"].c_oAscContextMenuTypes=c_oAscContextMenuTypes;prot["Main"]=c_oAscContextMenuTypes.Main;prot["Thumbnails"]=c_oAscContextMenuTypes.Thumbnails;prot=window["Asc"]["c_oAscAlignShapeType"]=c_oAscAlignShapeType;prot["ALIGN_LEFT"]=c_oAscAlignShapeType.ALIGN_LEFT;prot["ALIGN_RIGHT"]=c_oAscAlignShapeType.ALIGN_RIGHT;prot["ALIGN_TOP"]=c_oAscAlignShapeType.ALIGN_TOP;
|
|
prot["ALIGN_BOTTOM"]=c_oAscAlignShapeType.ALIGN_BOTTOM;prot["ALIGN_CENTER"]=c_oAscAlignShapeType.ALIGN_CENTER;prot["ALIGN_MIDDLE"]=c_oAscAlignShapeType.ALIGN_MIDDLE;prot=window["Asc"]["c_oAscTableLayout"]=c_oAscTableLayout;prot["AutoFit"]=c_oAscTableLayout.AutoFit;prot["Fixed"]=c_oAscTableLayout.Fixed;prot=window["Asc"]["c_oAscSlideTransitionTypes"]=c_oAscSlideTransitionTypes;prot["None"]=c_oAscSlideTransitionTypes.None;prot["Fade"]=c_oAscSlideTransitionTypes.Fade;prot["Push"]=c_oAscSlideTransitionTypes.Push;
|
|
prot["Wipe"]=c_oAscSlideTransitionTypes.Wipe;prot["Split"]=c_oAscSlideTransitionTypes.Split;prot["UnCover"]=c_oAscSlideTransitionTypes.UnCover;prot["Cover"]=c_oAscSlideTransitionTypes.Cover;prot["Clock"]=c_oAscSlideTransitionTypes.Clock;prot["Zoom"]=c_oAscSlideTransitionTypes.Zoom;prot=window["Asc"]["c_oAscSlideTransitionParams"]=c_oAscSlideTransitionParams;prot["Fade_Smoothly"]=c_oAscSlideTransitionParams.Fade_Smoothly;prot["Fade_Through_Black"]=c_oAscSlideTransitionParams.Fade_Through_Black;
|
|
prot["Param_Left"]=c_oAscSlideTransitionParams.Param_Left;prot["Param_Top"]=c_oAscSlideTransitionParams.Param_Top;prot["Param_Right"]=c_oAscSlideTransitionParams.Param_Right;prot["Param_Bottom"]=c_oAscSlideTransitionParams.Param_Bottom;prot["Param_TopLeft"]=c_oAscSlideTransitionParams.Param_TopLeft;prot["Param_TopRight"]=c_oAscSlideTransitionParams.Param_TopRight;prot["Param_BottomLeft"]=c_oAscSlideTransitionParams.Param_BottomLeft;prot["Param_BottomRight"]=c_oAscSlideTransitionParams.Param_BottomRight;
|
|
prot["Split_VerticalIn"]=c_oAscSlideTransitionParams.Split_VerticalIn;prot["Split_VerticalOut"]=c_oAscSlideTransitionParams.Split_VerticalOut;prot["Split_HorizontalIn"]=c_oAscSlideTransitionParams.Split_HorizontalIn;prot["Split_HorizontalOut"]=c_oAscSlideTransitionParams.Split_HorizontalOut;prot["Clock_Clockwise"]=c_oAscSlideTransitionParams.Clock_Clockwise;prot["Clock_Counterclockwise"]=c_oAscSlideTransitionParams.Clock_Counterclockwise;prot["Clock_Wedge"]=c_oAscSlideTransitionParams.Clock_Wedge;
|
|
prot["Zoom_In"]=c_oAscSlideTransitionParams.Zoom_In;prot["Zoom_Out"]=c_oAscSlideTransitionParams.Zoom_Out;prot["Zoom_AndRotate"]=c_oAscSlideTransitionParams.Zoom_AndRotate;prot=window["Asc"]["c_oAscPresentationShortcutType"]=window["Asc"].c_oAscPresentationShortcutType=c_oAscPresentationShortcutType;prot["EditSelectAll"]=c_oAscPresentationShortcutType.EditSelectAll;prot["EditUndo"]=c_oAscPresentationShortcutType.EditUndo;prot["EditRedo"]=c_oAscPresentationShortcutType.EditRedo;prot["Cut"]=c_oAscPresentationShortcutType.Cut;
|
|
prot["Copy"]=c_oAscPresentationShortcutType.Copy;prot["Paste"]=c_oAscPresentationShortcutType.Paste;prot["Duplicate"]=c_oAscPresentationShortcutType.Duplicate;prot["Print"]=c_oAscPresentationShortcutType.Print;prot["Save"]=c_oAscPresentationShortcutType.Save;prot["ShowContextMenu"]=c_oAscPresentationShortcutType.ShowContextMenu;window["AscCommon"]=window["AscCommon"]||{};window["AscCommon"].c_oSerFormat=c_oSerFormat;window["AscCommon"].CurFileVersion=c_oSerFormat.Version;"use strict";
|
|
(function(window,undefined){var FOREIGN_CURSOR_LABEL_HIDETIME=1500;function CCollaborativeChanges(){this.m_pData=null;this.m_oColor=null}CCollaborativeChanges.prototype.Set_Data=function(pData){this.m_pData=pData};CCollaborativeChanges.prototype.Set_Color=function(oColor){this.m_oColor=oColor};CCollaborativeChanges.prototype.Set_FromUndoRedo=function(Class,Data,Binary){if(!Class.Get_Id)return false;this.m_pData=this.private_SaveData(Binary);return true};CCollaborativeChanges.prototype.Apply_Data=
|
|
function(){var CollaborativeEditing=AscCommon.CollaborativeEditing;if(this.m_pData&&this.m_pData.type==="cp_theme"){clearTimeout(window.CP_theme_to);var data=this.m_pData;window.CP_theme_to=setTimeout(function(){window.parent.APP.remoteTheme();window.editor.ChangeTheme(data.id,null,true)});return true}var Reader=this.private_LoadData(this.m_pData);var ClassId=Reader.GetString2();var Class=AscCommon.g_oTableId.Get_ById(ClassId);if(!Class)return false;var nReaderPos=Reader.GetCurPos();var nChangesType=
|
|
Reader.GetLong();var fChangesClass=AscDFH.changesFactory[nChangesType];if(fChangesClass){var oChange=new fChangesClass(Class);oChange.ReadFromBinary(Reader);if(true===CollaborativeEditing.private_AddOverallChange(oChange)){oChange.Load(this.m_oColor);if(oChange.GetClass()&&oChange.GetClass().SetIsRecalculated&&oChange.IsNeedRecalculate())oChange.GetClass().SetIsRecalculated(false)}return true}else{CollaborativeEditing.private_AddOverallChange(this.m_pData);Reader.Seek2(nReaderPos);if(!Class.Load_Changes)return false;
|
|
return Class.Load_Changes(Reader,null,this.m_oColor)}};CCollaborativeChanges.prototype.private_LoadData=function(szSrc){return this.GetStream(szSrc,0,szSrc.length)};CCollaborativeChanges.prototype.GetStream=function(szSrc,offset,srcLen){var nWritten=0;var index=-1+offset;var dst_len="";while(true){index++;var _c=szSrc.charCodeAt(index);if(_c==";".charCodeAt(0)){index++;break}dst_len+=String.fromCharCode(_c)}var dstLen=parseInt(dst_len);var pointer=AscFonts.g_memory.Alloc(dstLen);var stream=new AscCommon.FT_Stream2(pointer.data,
|
|
dstLen);stream.obj=pointer.obj;var dstPx=stream.data;if(window.chrome)while(index<srcLen){var dwCurr=0;var i;var nBits=0;for(i=0;i<4;i++){if(index>=srcLen)break;var nCh=AscFonts.DecodeBase64Char(szSrc.charCodeAt(index++));if(nCh==-1){i--;continue}dwCurr<<=6;dwCurr|=nCh;nBits+=6}dwCurr<<=24-nBits;for(i=0;i<nBits/8;i++){dstPx[nWritten++]=(dwCurr&16711680)>>>16;dwCurr<<=8}}else{var p=AscFonts.b64_decode;while(index<srcLen){var dwCurr=0;var i;var nBits=0;for(i=0;i<4;i++){if(index>=srcLen)break;var nCh=
|
|
p[szSrc.charCodeAt(index++)];if(nCh==undefined){i--;continue}dwCurr<<=6;dwCurr|=nCh;nBits+=6}dwCurr<<=24-nBits;for(i=0;i<nBits/8;i++){dstPx[nWritten++]=(dwCurr&16711680)>>>16;dwCurr<<=8}}}return stream};CCollaborativeChanges.prototype.private_SaveData=function(Binary){var Writer=AscCommon.History.BinaryWriter;var Pos=Binary.Pos;var Len=Binary.Len;return Len+";"+Writer.GetBase64Memory2(Pos,Len)};function CCollaborativeEditingBase(){this.m_nUseType=1;this.m_aUsers=[];this.m_aChanges=[];this.m_aNeedUnlock=
|
|
[];this.m_aNeedUnlock2=[];this.m_aNeedLock=[];this.m_aLinkData=[];this.m_aEndActions=[];this.m_bGlobalLock=0;this.m_bGlobalLockSelection=0;this.m_aCheckLocks=[];this.m_aCheckLocksInstance=[];this.m_aNewObjects=[];this.m_aNewImages=[];this.m_aDC={};this.m_aChangedClasses={};this.m_oMemory=null;this.m_aCursorsToUpdate={};this.m_aCursorsToUpdateShortId={};this.m_bFast=false;this.m_oLogicDocument=null;this.m_aDocumentPositions=new CDocumentPositionsManager;this.m_aForeignCursorsPos=new CDocumentPositionsManager;
|
|
this.m_aForeignCursors={};this.m_aForeignCursorsId={};this.m_nAllChangesSavedIndex=0;this.m_nRecalcIndexStart=0;this.m_nRecalcIndexEnd=0;this.m_aAllChanges=[];this.m_aOwnChangesIndexes=[];this.m_oOwnChanges=[]}CCollaborativeEditingBase.prototype.Clear=function(){this.m_nUseType=1;this.m_aUsers=[];this.m_aChanges=[];this.m_aNeedUnlock=[];this.m_aNeedUnlock2=[];this.m_aNeedLock=[];this.m_aLinkData=[];this.m_aEndActions=[];this.m_aCheckLocks=[];this.m_aCheckLocksInstance=[];this.m_aNewObjects=[];this.m_aNewImages=
|
|
[]};CCollaborativeEditingBase.prototype.Set_Fast=function(bFast){this.m_bFast=bFast;if(false===bFast){this.Remove_AllForeignCursors();this.RemoveMyCursorFromOthers()}};CCollaborativeEditingBase.prototype.Is_Fast=function(){return this.m_bFast};CCollaborativeEditingBase.prototype.Is_SingleUser=function(){return 1===this.m_nUseType};CCollaborativeEditingBase.prototype.getCollaborativeEditing=function(){return!this.Is_SingleUser()};CCollaborativeEditingBase.prototype.Start_CollaborationEditing=function(){this.m_nUseType=
|
|
-1};CCollaborativeEditingBase.prototype.End_CollaborationEditing=function(){if(this.m_nUseType<=0)this.m_nUseType=0};CCollaborativeEditingBase.prototype.Add_User=function(UserId){if(-1===this.Find_User(UserId))this.m_aUsers.push(UserId)};CCollaborativeEditingBase.prototype.Find_User=function(UserId){var Len=this.m_aUsers.length;for(var Index=0;Index<Len;Index++)if(this.m_aUsers[Index]===UserId)return Index;return-1};CCollaborativeEditingBase.prototype.Remove_User=function(UserId){var Pos=this.Find_User(UserId);
|
|
if(-1!=Pos)this.m_aUsers.splice(Pos,1)};CCollaborativeEditingBase.prototype.Add_Changes=function(Changes){this.m_aChanges.push(Changes)};CCollaborativeEditingBase.prototype.Add_Unlock=function(LockClass){this.m_aNeedUnlock.push(LockClass)};CCollaborativeEditingBase.prototype.Add_Unlock2=function(Lock){this.m_aNeedUnlock2.push(Lock);editor._onUpdateDocumentCanSave()};CCollaborativeEditingBase.prototype.Have_OtherChanges=function(){return 0<this.m_aChanges.length};CCollaborativeEditingBase.prototype.Apply_Changes=
|
|
function(){var OtherChanges=this.m_aChanges.length>0;if(true===OtherChanges){AscFonts.IsCheckSymbols=true;editor.WordControl.m_oLogicDocument.PauseRecalculate();editor.WordControl.m_oLogicDocument.EndPreview_MailMergeResult();editor.sync_StartAction(Asc.c_oAscAsyncActionType.BlockInteraction,Asc.c_oAscAsyncAction.ApplyChanges);var DocState=this.private_SaveDocumentState();this.Clear_NewImages();this.Apply_OtherChanges();this.Lock_NeedLock();this.private_RestoreDocumentState(DocState);this.OnStart_Load_Objects();
|
|
AscFonts.IsCheckSymbols=false}};CCollaborativeEditingBase.prototype.Apply_OtherChanges=function(){AscCommon.g_oIdCounter.Set_Load(true);if(this.m_aChanges.length>0)this.private_CollectOwnChanges();this.private_SaveRecalcChangeIndex(true);var _count=this.m_aChanges.length;for(var i=0;i<_count;i++){if(window["NATIVE_EDITOR_ENJINE"]===true&&window["native"]["CheckNextChange"])if(!window["native"]["CheckNextChange"]())break;var Changes=this.m_aChanges[i];Changes.Apply_Data()}this.private_SaveRecalcChangeIndex(false);
|
|
this.private_ClearChanges();this.Apply_LinkData();this.Check_MergeData();this.OnEnd_ReadForeignChanges();AscCommon.g_oIdCounter.Set_Load(false)};CCollaborativeEditingBase.prototype.getOwnLocksLength=function(){return this.m_aNeedUnlock2.length};CCollaborativeEditingBase.prototype.Send_Changes=function(){};CCollaborativeEditingBase.prototype.Release_Locks=function(){};CCollaborativeEditingBase.prototype.CheckWaitingImages=function(aImages){};CCollaborativeEditingBase.prototype.SendImagesUrlsFromChanges=
|
|
function(aImages){var rData={},oApi=editor||Asc["editor"],i;if(!oApi)return;rData["c"]="pathurls";rData["data"]=[];for(i=0;i<aImages.length;++i)rData["data"].push(aImages[i]);var aImagesToLoad=[].concat(AscCommon.CollaborativeEditing.m_aNewImages);this.CheckWaitingImages(aImagesToLoad);AscCommon.CollaborativeEditing.m_aNewImages.length=0;if(false===oApi.isSaveFonts_Images)oApi.isSaveFonts_Images=true;AscCommon.CollaborativeEditing.SendImagesCallback(aImagesToLoad)};CCollaborativeEditingBase.prototype.SendImagesCallback=
|
|
function(aImages){var oApi=editor||Asc["editor"];oApi.pre_Save(aImages)};CCollaborativeEditingBase.prototype.CollectImagesFromChanges=function(){var oApi=editor||Asc["editor"];var aImages=[],sImagePath,i,sImageFromChanges,oThemeUrls={};var aNewImages=this.m_aNewImages;var oMap={};for(i=0;i<aNewImages.length;++i){sImageFromChanges=aNewImages[i];if(oMap[sImageFromChanges])continue;oMap[sImageFromChanges]=1;if(sImageFromChanges.indexOf("theme")===0&&oApi.ThemeLoader)oThemeUrls[sImageFromChanges]=oApi.ThemeLoader.ThemesUrlAbs+
|
|
sImageFromChanges;else if(0===sImageFromChanges.indexOf("http:")||0===sImageFromChanges.indexOf("data:")||0===sImageFromChanges.indexOf("https:")||0===sImageFromChanges.indexOf("file:")||0===sImageFromChanges.indexOf("ftp:"));else{sImagePath=AscCommon.g_oDocumentUrls.mediaPrefix+sImageFromChanges;if(!AscCommon.g_oDocumentUrls.getUrl(sImagePath))aImages.push(sImagePath)}}AscCommon.g_oDocumentUrls.addUrls(oThemeUrls);return aImages};CCollaborativeEditingBase.prototype.OnStart_Load_Objects=function(){this.Set_GlobalLock(true);
|
|
this.Set_GlobalLockSelection(true);var aImages=this.CollectImagesFromChanges();if(aImages.length>0)this.SendImagesUrlsFromChanges(aImages);else{this.SendImagesCallback([].concat(this.m_aNewImages));this.m_aNewImages.length=0}};CCollaborativeEditingBase.prototype.OnEnd_Load_Objects=function(){};CCollaborativeEditingBase.prototype.Clear_LinkData=function(){this.m_aLinkData.length=0};CCollaborativeEditingBase.prototype.Add_LinkData=function(Class,LinkData){this.m_aLinkData.push({Class:Class,LinkData:LinkData})};
|
|
CCollaborativeEditingBase.prototype.Apply_LinkData=function(){var Count=this.m_aLinkData.length;for(var Index=0;Index<Count;Index++){var Item=this.m_aLinkData[Index];Item.Class.Load_LinkData(Item.LinkData)}this.Clear_LinkData()};CCollaborativeEditingBase.prototype.Check_MergeData=function(){};CCollaborativeEditingBase.prototype.Get_GlobalLock=function(){return 0===this.m_bGlobalLock?false:true};CCollaborativeEditingBase.prototype.Set_GlobalLock=function(isLock){if(isLock)this.m_bGlobalLock++;else this.m_bGlobalLock=
|
|
Math.max(0,this.m_bGlobalLock-1)};CCollaborativeEditingBase.prototype.Set_GlobalLockSelection=function(isLock){if(isLock)this.m_bGlobalLockSelection++;else this.m_bGlobalLockSelection=Math.max(0,this.m_bGlobalLockSelection-1)};CCollaborativeEditingBase.prototype.Get_GlobalLockSelection=function(){return 0===this.m_bGlobalLockSelection?false:true};CCollaborativeEditingBase.prototype.OnStart_CheckLock=function(){this.m_aCheckLocks.length=0;this.m_aCheckLocksInstance.length=0};CCollaborativeEditingBase.prototype.Add_CheckLock=
|
|
function(oItem){this.m_aCheckLocks.push(oItem);this.m_aCheckLocksInstance.push(oItem)};CCollaborativeEditingBase.prototype.OnEnd_CheckLock=function(){};CCollaborativeEditingBase.prototype.OnCallback_AskLock=function(result){};CCollaborativeEditingBase.prototype.OnStartCheckLockInstance=function(){this.m_aCheckLocksInstance.length=0};CCollaborativeEditingBase.prototype.OnEndCheckLockInstance=function(){var isLocked=false;for(var nIndex=0,nCount=this.m_aCheckLocksInstance.length;nIndex<nCount;++nIndex)if(true===
|
|
this.m_aCheckLocksInstance[nIndex]){isLocked=true;break}if(isLocked){var nCount=this.m_aCheckLocksInstance.length;this.m_aCheckLocks.splice(this.m_aCheckLocks.length-nCount,nCount)}this.m_aCheckLocksInstance.length=0;return isLocked};CCollaborativeEditingBase.prototype.Reset_NeedLock=function(){this.m_aNeedLock={}};CCollaborativeEditingBase.prototype.Add_NeedLock=function(Id,sUser){this.m_aNeedLock[Id]=sUser};CCollaborativeEditingBase.prototype.Remove_NeedLock=function(Id){delete this.m_aNeedLock[Id]};
|
|
CCollaborativeEditingBase.prototype.Lock_NeedLock=function(){for(var Id in this.m_aNeedLock){var Class=AscCommon.g_oTableId.Get_ById(Id);if(null!=Class){var Lock=Class.Lock;Lock.Set_Type(AscCommon.locktype_Other,false);if(Class.getObjectType&&Class.getObjectType()===AscDFH.historyitem_type_Slide)editor.WordControl.m_oLogicDocument.DrawingDocument.UnLockSlide&&editor.WordControl.m_oLogicDocument.DrawingDocument.UnLockSlide(Class.num);Lock.Set_UserId(this.m_aNeedLock[Id])}}this.Reset_NeedLock()};CCollaborativeEditingBase.prototype.Clear_NewObjects=
|
|
function(){this.m_aNewObjects.length=0};CCollaborativeEditingBase.prototype.Add_NewObject=function(Class){this.m_aNewObjects.push(Class);Class.FromBinary=true};CCollaborativeEditingBase.prototype.Clear_EndActions=function(){this.m_aEndActions.length=0};CCollaborativeEditingBase.prototype.Add_EndActions=function(Class,Data){this.m_aEndActions.push({Class:Class,Data:Data})};CCollaborativeEditingBase.prototype.OnEnd_ReadForeignChanges=function(){var Count=this.m_aNewObjects.length;for(var Index=0;Index<
|
|
Count;Index++){var Class=this.m_aNewObjects[Index];Class.FromBinary=false}Count=this.m_aEndActions.length;for(var Index=0;Index<Count;Index++){var Item=this.m_aEndActions[Index];Item.Class.Process_EndLoad(Item.Data)}this.Clear_EndActions();this.Clear_NewObjects()};CCollaborativeEditingBase.prototype.Clear_NewImages=function(){this.m_aNewImages.length=0};CCollaborativeEditingBase.prototype.Add_NewImage=function(Url){this.m_aNewImages.push(Url)};CCollaborativeEditingBase.prototype.Add_NewDC=function(Class){var Id=
|
|
Class.Get_Id();this.m_aDC[Id]=Class};CCollaborativeEditingBase.prototype.Clear_DCChanges=function(){for(var Id in this.m_aDC)this.m_aDC[Id].Clear_ContentChanges();this.m_aDC={}};CCollaborativeEditingBase.prototype.Refresh_DCChanges=function(){for(var Id in this.m_aDC)this.m_aDC[Id].Refresh_ContentChanges();this.Clear_DCChanges()};CCollaborativeEditingBase.prototype.AddPosExtChanges=function(Item,ChangeObject){};CCollaborativeEditingBase.prototype.RefreshPosExtChanges=function(){};CCollaborativeEditingBase.prototype.RewritePosExtChanges=
|
|
function(changesArr,scale,Binary_Writer){};CCollaborativeEditingBase.prototype.RefreshPosExtChanges=function(){};CCollaborativeEditingBase.prototype.Add_ChangedClass=function(Class){var Id=Class.Get_Id();this.m_aChangedClasses[Id]=Class};CCollaborativeEditingBase.prototype.Clear_CollaborativeMarks=function(bRepaint){for(var Id in this.m_aChangedClasses)this.m_aChangedClasses[Id].Clear_CollaborativeMarks();this.m_aChangedClasses={};if(true===bRepaint){editor.WordControl.m_oLogicDocument.DrawingDocument.ClearCachePages();
|
|
editor.WordControl.m_oLogicDocument.DrawingDocument.FirePaint()}};CCollaborativeEditingBase.prototype.Add_ForeignCursorToUpdate=function(UserId,CursorInfo,UserShortId){this.m_aCursorsToUpdate[UserId]=CursorInfo;this.m_aCursorsToUpdateShortId[UserId]=UserShortId};CCollaborativeEditingBase.prototype.Refresh_ForeignCursors=function(){if(!this.m_oLogicDocument)return;for(var UserId in this.m_aCursorsToUpdate){var CursorInfo=this.m_aCursorsToUpdate[UserId];this.m_oLogicDocument.Update_ForeignCursor(CursorInfo,
|
|
UserId,false,this.m_aCursorsToUpdateShortId[UserId]);if(this.Add_ForeignCursorToShow)this.Add_ForeignCursorToShow(UserId)}this.m_aCursorsToUpdate={};this.m_aCursorsToUpdateShortId={}};CCollaborativeEditingBase.prototype.Clear_DocumentPositions=function(){this.m_aDocumentPositions.Clear_DocumentPositions()};CCollaborativeEditingBase.prototype.Add_DocumentPosition=function(DocumentPos){this.m_aDocumentPositions.Add_DocumentPosition(DocumentPos)};CCollaborativeEditingBase.prototype.Add_ForeignCursor=
|
|
function(UserId,DocumentPos,UserShortId){this.m_aForeignCursorsPos.Remove_DocumentPosition(this.m_aCursorsToUpdate[UserId]);this.m_aForeignCursors[UserId]=DocumentPos;this.m_aForeignCursorsPos.Add_DocumentPosition(DocumentPos);this.m_aForeignCursorsId[UserId]=UserShortId};CCollaborativeEditingBase.prototype.Remove_ForeignCursor=function(UserId){this.m_aForeignCursorsPos.Remove_DocumentPosition(this.m_aCursorsToUpdate[UserId]);delete this.m_aForeignCursors[UserId]};CCollaborativeEditingBase.prototype.Remove_AllForeignCursors=
|
|
function(){};CCollaborativeEditingBase.prototype.RemoveMyCursorFromOthers=function(){};CCollaborativeEditingBase.prototype.Update_DocumentPositionsOnAdd=function(Class,Pos){this.m_aDocumentPositions.Update_DocumentPositionsOnAdd(Class,Pos);this.m_aForeignCursorsPos.Update_DocumentPositionsOnAdd(Class,Pos)};CCollaborativeEditingBase.prototype.Update_DocumentPositionsOnRemove=function(Class,Pos,Count){this.m_aDocumentPositions.Update_DocumentPositionsOnRemove(Class,Pos,Count);this.m_aForeignCursorsPos.Update_DocumentPositionsOnRemove(Class,
|
|
Pos,Count)};CCollaborativeEditingBase.prototype.OnStart_SplitRun=function(SplitRun,SplitPos){this.m_aDocumentPositions.OnStart_SplitRun(SplitRun,SplitPos);this.m_aForeignCursorsPos.OnStart_SplitRun(SplitRun,SplitPos)};CCollaborativeEditingBase.prototype.OnEnd_SplitRun=function(NewRun){this.m_aDocumentPositions.OnEnd_SplitRun(NewRun);this.m_aForeignCursorsPos.OnEnd_SplitRun(NewRun)};CCollaborativeEditingBase.prototype.Update_DocumentPosition=function(DocPos){this.m_aDocumentPositions.Update_DocumentPosition(DocPos)};
|
|
CCollaborativeEditingBase.prototype.Update_ForeignCursorsPositions=function(){};CCollaborativeEditingBase.prototype.InitMemory=function(){if(!this.m_oMemory)this.m_oMemory=new AscCommon.CMemory};CCollaborativeEditingBase.prototype.private_SaveDocumentState=function(){var LogicDocument=editor.WordControl.m_oLogicDocument;var DocState;if(true!==this.Is_Fast()){DocState=LogicDocument.Get_SelectionState2();this.m_aCursorsToUpdate={}}else DocState=LogicDocument.Save_DocumentStateBeforeLoadChanges();return DocState};
|
|
CCollaborativeEditingBase.prototype.private_RestoreDocumentState=function(DocState){var LogicDocument=editor.WordControl.m_oLogicDocument;if(true!==this.Is_Fast())LogicDocument.Set_SelectionState2(DocState);else{LogicDocument.Load_DocumentStateAfterLoadChanges(DocState);this.Refresh_ForeignCursors()}};CCollaborativeEditingBase.prototype.WatchDocumentPositionsByState=function(DocState){this.Clear_DocumentPositions();if(DocState.Pos)this.Add_DocumentPosition(DocState.Pos);if(DocState.StartPos)this.Add_DocumentPosition(DocState.StartPos);
|
|
if(DocState.EndPos)this.Add_DocumentPosition(DocState.EndPos);if(DocState.FootnotesStart&&DocState.FootnotesStart.Pos)this.Add_DocumentPosition(DocState.FootnotesStart.Pos);if(DocState.FootnotesStart&&DocState.FootnotesStart.StartPos)this.Add_DocumentPosition(DocState.FootnotesStart.StartPos);if(DocState.FootnotesStart&&DocState.FootnotesStart.EndPos)this.Add_DocumentPosition(DocState.FootnotesStart.EndPos);if(DocState.FootnotesEnd&&DocState.FootnotesEnd.Pos)this.Add_DocumentPosition(DocState.FootnotesEnd.Pos);
|
|
if(DocState.FootnotesEnd&&DocState.FootnotesEnd.StartPos)this.Add_DocumentPosition(DocState.FootnotesEnd.StartPos);if(DocState.FootnotesEnd&&DocState.FootnotesEnd.EndPos)this.Add_DocumentPosition(DocState.FootnotesEnd.EndPos)};CCollaborativeEditingBase.prototype.UpdateDocumentPositionsByState=function(DocState){if(DocState.Pos)this.Update_DocumentPosition(DocState.Pos);if(DocState.StartPos)this.Update_DocumentPosition(DocState.StartPos);if(DocState.EndPos)this.Update_DocumentPosition(DocState.EndPos);
|
|
if(DocState.FootnotesStart&&DocState.FootnotesStart.Pos)this.Update_DocumentPosition(DocState.FootnotesStart.Pos);if(DocState.FootnotesStart&&DocState.FootnotesStart.StartPos)this.Update_DocumentPosition(DocState.FootnotesStart.StartPos);if(DocState.FootnotesStart&&DocState.FootnotesStart.EndPos)this.Update_DocumentPosition(DocState.FootnotesStart.EndPos);if(DocState.FootnotesEnd&&DocState.FootnotesEnd.Pos)this.Update_DocumentPosition(DocState.FootnotesEnd.Pos);if(DocState.FootnotesEnd&&DocState.FootnotesEnd.StartPos)this.Update_DocumentPosition(DocState.FootnotesEnd.StartPos);
|
|
if(DocState.FootnotesEnd&&DocState.FootnotesEnd.EndPos)this.Update_DocumentPosition(DocState.FootnotesEnd.EndPos)};CCollaborativeEditingBase.prototype.private_ClearChanges=function(){this.m_aChanges=[];this.m_oOwnChanges=[]};CCollaborativeEditingBase.prototype.private_CollectOwnChanges=function(){var StartPoint=null===AscCommon.History.SavedIndex?0:AscCommon.History.SavedIndex+1;var LastPoint=-1;if(this.m_nUseType<=0)LastPoint=AscCommon.History.Points.length-1;else LastPoint=AscCommon.History.Index;
|
|
for(var PointIndex=StartPoint;PointIndex<=LastPoint;PointIndex++){var Point=AscCommon.History.Points[PointIndex];for(var Index=0;Index<Point.Items.length;Index++){var Item=Point.Items[Index];this.m_oOwnChanges.push(Item.Data)}}};CCollaborativeEditingBase.prototype.private_AddOverallChange=function(oChange,isSave){for(var nIndex=0,nCount=this.m_oOwnChanges.length;nIndex<nCount;++nIndex)if(oChange&&oChange.Merge&&false===oChange.Merge(this.m_oOwnChanges[nIndex]))return false;if(false!==isSave)this.m_aAllChanges.push(oChange);
|
|
return true};CCollaborativeEditingBase.prototype.private_OnSendOwnChanges=function(arrChanges,nDeleteIndex){if(null!==nDeleteIndex)this.m_aAllChanges.length=this.m_nAllChangesSavedIndex+nDeleteIndex;else this.m_nAllChangesSavedIndex=this.m_aAllChanges.length;if(arrChanges.length>0){this.m_aOwnChangesIndexes.push({Position:this.m_aAllChanges.length,Count:arrChanges.length});this.m_aAllChanges=this.m_aAllChanges.concat(arrChanges)}};CCollaborativeEditingBase.prototype.Undo=function(){if(true===this.Get_GlobalLock())return;
|
|
if(this.m_aOwnChangesIndexes.length<=0)return false;var arrChanges=[];var oIndexes=this.m_aOwnChangesIndexes[this.m_aOwnChangesIndexes.length-1];var nPosition=oIndexes.Position;var nCount=oIndexes.Count;for(var nIndex=nCount-1;nIndex>=0;--nIndex){var oChange=this.m_aAllChanges[nPosition+nIndex];if(!oChange)continue;var oClass=oChange.GetClass();if(oChange.IsContentChange()){var _oChange=oChange.Copy();if(this.private_CommutateContentChanges(_oChange,nPosition+nCount))arrChanges.push(_oChange);oChange.SetReverted(true)}else{var _oChange=
|
|
oChange;if(this.private_CommutatePropertyChanges(oClass,_oChange,nPosition+nCount))arrChanges.push(_oChange)}}this.m_aOwnChangesIndexes.length=this.m_aOwnChangesIndexes.length-1;var arrReverseChanges=[];for(var nIndex=0,nCount=arrChanges.length;nIndex<nCount;++nIndex){var oReverseChange=arrChanges[nIndex].CreateReverseChange();if(oReverseChange){arrReverseChanges.push(oReverseChange);oReverseChange.SetReverted(true)}}var oLogicDocument=this.m_oLogicDocument;oLogicDocument.DrawingDocument.EndTrackTable(null,
|
|
true);oLogicDocument.TurnOffCheckChartSelection();var DocState=this.private_SaveDocumentState();var mapDrawings={};for(var nIndex=0,nCount=arrReverseChanges.length;nIndex<nCount;++nIndex){var oClass=arrReverseChanges[nIndex].GetClass();if(oClass&&oClass.parent&&oClass.parent instanceof AscCommonWord.ParaDrawing)mapDrawings[oClass.parent.Get_Id()]=oClass.parent;arrReverseChanges[nIndex].Load();if(oClass&&oClass.SetIsRecalculated&&(!arrReverseChanges[nIndex]||arrReverseChanges[nIndex].IsNeedRecalculate()))oClass.SetIsRecalculated(false);
|
|
this.m_aAllChanges.push(arrReverseChanges[nIndex])}var mapDocumentContents={};var mapParagraphs={};var mapRuns={};var mapTables={};var mapGrObjects={};var mapSlides={};var mapLayouts={};var bChangedLayout=false;var bAddSlides=false;var mapAddedSlides={};for(var nIndex=0,nCount=arrReverseChanges.length;nIndex<nCount;++nIndex){var oChange=arrReverseChanges[nIndex];var oClass=oChange.GetClass();if(oClass instanceof AscCommonWord.CDocument||oClass instanceof AscCommonWord.CDocumentContent)mapDocumentContents[oClass.Get_Id()]=
|
|
oClass;else if(oClass instanceof AscCommonWord.Paragraph)mapParagraphs[oClass.Get_Id()]=oClass;else if(oClass.IsParagraphContentElement&&true===oClass.IsParagraphContentElement()&&true===oChange.IsContentChange()&&oClass.GetParagraph()){mapParagraphs[oClass.GetParagraph().Get_Id()]=oClass.GetParagraph();if(oClass instanceof AscCommonWord.ParaRun)mapRuns[oClass.Get_Id()]=oClass}else if(oClass instanceof AscCommonWord.ParaDrawing)mapDrawings[oClass.Get_Id()]=oClass;else if(oClass instanceof AscCommonWord.ParaRun)mapRuns[oClass.Get_Id()]=
|
|
oClass;else if(oClass instanceof AscCommonWord.CTable)mapTables[oClass.Get_Id()]=oClass;else if(oClass instanceof AscFormat.CShape||oClass instanceof AscFormat.CImageShape||oClass instanceof AscFormat.CChartSpace||oClass instanceof AscFormat.CGroupShape||oClass instanceof AscFormat.CGraphicFrame)mapGrObjects[oClass.Get_Id()]=oClass;else if(typeof AscCommonSlide!=="undefined")if(AscCommonSlide.Slide&&oClass instanceof AscCommonSlide.Slide)mapSlides[oClass.Get_Id()]=oClass;else if(AscCommonSlide.SlideLayout&&
|
|
oClass instanceof AscCommonSlide.SlideLayout){mapLayouts[oClass.Get_Id()]=oClass;bChangedLayout=true}else if(AscCommonSlide.CPresentation&&oClass instanceof AscCommonSlide.CPresentation)if(oChange.Type===AscDFH.historyitem_Presentation_RemoveSlide||oChange.Type===AscDFH.historyitem_Presentation_AddSlide){bAddSlides=true;for(var i=0;i<oChange.Items.length;++i)mapAddedSlides[oChange.Items[i].Get_Id()]=oChange.Items[i]}}var oHistory=AscCommon.History;oHistory.CreateNewPointForCollectChanges();if(bAddSlides)for(var i=
|
|
oLogicDocument.Slides.length-1;i>-1;--i)if(mapAddedSlides[oLogicDocument.Slides[i].Get_Id()]&&!oLogicDocument.Slides[i].Layout)oLogicDocument.removeSlide(i);for(var sId in mapSlides)if(mapSlides.hasOwnProperty(sId))mapSlides[sId].correctContent();if(bChangedLayout)for(var i=oLogicDocument.Slides.length-1;i>-1;--i){var Layout=oLogicDocument.Slides[i].Layout;if(!Layout||mapLayouts[Layout.Get_Id()])if(!oLogicDocument.Slides[i].CheckLayout())oLogicDocument.removeSlide(i)}for(var sId in mapGrObjects){var oShape=
|
|
mapGrObjects[sId];if(!oShape.checkCorrect()){oShape.setBDeleted(true);if(oShape.group)oShape.group.removeFromSpTree(oShape.Get_Id());else if(AscFormat.Slide&&oShape.parent instanceof AscFormat.Slide)oShape.parent.removeFromSpTreeById(oShape.Get_Id());else if(AscCommonWord.ParaDrawing&&oShape.parent instanceof AscCommonWord.ParaDrawing)mapDrawings[oShape.parent.Get_Id()]=oShape.parent}else if(oShape.resetGroups)oShape.resetGroups()}var oDrawing;for(var sId in mapDrawings)if(mapDrawings.hasOwnProperty(sId)){oDrawing=
|
|
mapDrawings[sId];if(!oDrawing.CheckCorrect()){var oParentParagraph=oDrawing.Get_ParentParagraph();oDrawing.PreDelete();oDrawing.Remove_FromDocument(false);if(oParentParagraph)mapParagraphs[oParentParagraph.Get_Id()]=oParentParagraph}}for(var sId in mapRuns)if(mapRuns.hasOwnProperty(sId)){var oRun=mapRuns[sId];for(var nIndex=oRun.Content.length-1;nIndex>-1;--nIndex)if(oRun.Content[nIndex]instanceof AscCommonWord.ParaDrawing)if(!oRun.Content[nIndex].CheckCorrect()){oRun.Remove_FromContent(nIndex,1,
|
|
false);if(oRun.Paragraph)mapParagraphs[oRun.Paragraph.Get_Id()]=oRun.Paragraph}}for(var sId in mapTables){var oTable=mapTables[sId];for(var nCurRow=oTable.Content.length-1;nCurRow>=0;--nCurRow){var oRow=oTable.Get_Row(nCurRow);if(oRow.Get_CellsCount()<=0)oTable.private_RemoveRow(nCurRow)}if(oTable.Parent instanceof AscCommonWord.CDocument||oTable.Parent instanceof AscCommonWord.CDocumentContent)mapDocumentContents[oTable.Parent.Get_Id()]=oTable.Parent}for(var sId in mapDocumentContents){var oDocumentContent=
|
|
mapDocumentContents[sId];var nContentLen=oDocumentContent.Content.length;for(var nIndex=nContentLen-1;nIndex>=0;--nIndex){var oElement=oDocumentContent.Content[nIndex];if((AscCommonWord.type_Paragraph===oElement.GetType()||AscCommonWord.type_Table===oElement.GetType())&&oElement.Content.length<=0)oDocumentContent.Remove_FromContent(nIndex,1)}nContentLen=oDocumentContent.Content.length;if(nContentLen<=0||AscCommonWord.type_Paragraph!==oDocumentContent.Content[nContentLen-1].GetType()){var oNewParagraph=
|
|
new AscCommonWord.Paragraph(oLogicDocument.Get_DrawingDocument(),oDocumentContent,0,0,0,0,0,false);oDocumentContent.Add_ToContent(nContentLen,oNewParagraph)}}for(var sId in mapParagraphs){var oParagraph=mapParagraphs[sId];oParagraph.CheckParaEnd();oParagraph.Correct_Content(null,null,true)}var oBinaryWriter=AscCommon.History.BinaryWriter;var aSendingChanges=[];for(var nIndex=0,nCount=arrReverseChanges.length;nIndex<nCount;++nIndex){var oReverseChange=arrReverseChanges[nIndex];var oChangeClass=oReverseChange.GetClass();
|
|
var nBinaryPos=oBinaryWriter.GetCurPosition();oBinaryWriter.WriteString2(oChangeClass.Get_Id());oBinaryWriter.WriteLong(oReverseChange.Type);oReverseChange.WriteToBinary(oBinaryWriter);var nBinaryLen=oBinaryWriter.GetCurPosition()-nBinaryPos;var oChange=new AscCommon.CCollaborativeChanges;oChange.Set_FromUndoRedo(oChangeClass,oReverseChange,{Pos:nBinaryPos,Len:nBinaryLen});aSendingChanges.push(oChange.m_pData)}var oHistoryPoint=oHistory.Points[oHistory.Points.length-1];for(var nIndex=0,nCount=oHistoryPoint.Items.length;nIndex<
|
|
nCount;++nIndex){var oReverseChange=oHistoryPoint.Items[nIndex].Data;var oChangeClass=oReverseChange.GetClass();var oChange=new AscCommon.CCollaborativeChanges;oChange.Set_FromUndoRedo(oChangeClass,oReverseChange,{Pos:oHistoryPoint.Items[nIndex].Binary.Pos,Len:oHistoryPoint.Items[nIndex].Binary.Len});aSendingChanges.push(oChange.m_pData);arrReverseChanges.push(oHistoryPoint.Items[nIndex].Data)}oHistory.Remove_LastPoint();this.Clear_DCChanges();editor.CoAuthoringApi.saveChanges(aSendingChanges,null,
|
|
null,false,this.getCollaborativeEditing());this.private_RestoreDocumentState(DocState);this.private_RecalculateDocument(arrReverseChanges);oLogicDocument.TurnOnCheckChartSelection();oLogicDocument.UpdateSelection();oLogicDocument.UpdateInterface();oLogicDocument.UpdateRulers()};CCollaborativeEditingBase.prototype.CanUndo=function(){return this.m_aOwnChangesIndexes.length>0};CCollaborativeEditingBase.prototype.private_CommutateContentChanges=function(oChange,nStartPosition){var arrActions=oChange.ConvertToSimpleActions();
|
|
var arrCommutateActions=[];for(var nActionIndex=arrActions.length-1;nActionIndex>=0;--nActionIndex){var oAction=arrActions[nActionIndex];var oResult=oAction;for(var nIndex=nStartPosition,nOverallCount=this.m_aAllChanges.length;nIndex<nOverallCount;++nIndex){var oTempChange=this.m_aAllChanges[nIndex];if(!oTempChange)continue;if(oChange.IsRelated(oTempChange)&&true!==oTempChange.IsReverted()){var arrOtherActions=oTempChange.ConvertToSimpleActions();for(var nIndex2=0,nOtherActionsCount2=arrOtherActions.length;nIndex2<
|
|
nOtherActionsCount2;++nIndex2){var oOtherAction=arrOtherActions[nIndex2];if(false===this.private_Commutate(oAction,oOtherAction)){arrOtherActions.splice(nIndex2,1);oResult=null;break}}oTempChange.ConvertFromSimpleActions(arrOtherActions)}if(!oResult)break}if(null!==oResult)arrCommutateActions.push(oResult)}if(arrCommutateActions.length>0)oChange.ConvertFromSimpleActions(arrCommutateActions);else return false;return true};CCollaborativeEditingBase.prototype.private_Commutate=function(oActionL,oActionR){if(oActionL.Add)if(oActionR.Add)if(oActionL.Pos>=
|
|
oActionR.Pos)oActionL.Pos++;else oActionR.Pos--;else if(oActionL.Pos>oActionR.Pos)oActionL.Pos--;else if(oActionL.Pos===oActionR.Pos)return false;else oActionR.Pos--;else if(oActionR.Add)if(oActionL.Pos>=oActionR.Pos)oActionL.Pos++;else oActionR.Pos++;else if(oActionL.Pos>oActionR.Pos)oActionL.Pos--;else oActionR.Pos++;return true};CCollaborativeEditingBase.prototype.private_CommutatePropertyChanges=function(oClass,oChange,nStartPosition){if(oChange.CheckCorrect&&!oChange.CheckCorrect())return false;
|
|
return true};CCollaborativeEditingBase.prototype.private_RecalculateDocument=function(oRecalcData){};CCollaborativeEditingBase.prototype.private_SaveRecalcChangeIndex=function(isStart){if(isStart)this.m_nRecalcIndexStart=this.m_aAllChanges.length;else this.m_nRecalcIndexEnd=this.m_aAllChanges.length-1};function CDocumentPositionsManager(){this.m_aDocumentPositions=[];this.m_aDocumentPositionsSplit=[];this.m_aDocumentPositionsMap=[]}CDocumentPositionsManager.prototype.Clear_DocumentPositions=function(){this.m_aDocumentPositions=
|
|
[];this.m_aDocumentPositionsSplit=[];this.m_aDocumentPositionsMap=[]};CDocumentPositionsManager.prototype.Add_DocumentPosition=function(Position){this.m_aDocumentPositions.push(Position)};CDocumentPositionsManager.prototype.Update_DocumentPositionsOnAdd=function(Class,Pos){for(var PosIndex=0,PosCount=this.m_aDocumentPositions.length;PosIndex<PosCount;++PosIndex){var DocPos=this.m_aDocumentPositions[PosIndex];for(var ClassPos=0,ClassLen=DocPos.length;ClassPos<ClassLen;++ClassPos){var _Pos=DocPos[ClassPos];
|
|
if(Class===_Pos.Class&&undefined!==_Pos.Position&&(_Pos.Position>Pos||_Pos.Position===Pos&&!(Class instanceof AscCommonWord.ParaRun))){_Pos.Position++;break}}}};CDocumentPositionsManager.prototype.Update_DocumentPositionsOnRemove=function(Class,Pos,Count){for(var PosIndex=0,PosCount=this.m_aDocumentPositions.length;PosIndex<PosCount;++PosIndex){var DocPos=this.m_aDocumentPositions[PosIndex];for(var ClassPos=0,ClassLen=DocPos.length;ClassPos<ClassLen;++ClassPos){var _Pos=DocPos[ClassPos];if(Class===
|
|
_Pos.Class&&undefined!==_Pos.Position){if(_Pos.Position>Pos+Count)_Pos.Position-=Count;else if(_Pos.Position>=Pos){_Pos.Position=Pos;_Pos.Deleted=true}break}}}};CDocumentPositionsManager.prototype.OnStart_SplitRun=function(SplitRun,SplitPos){this.m_aDocumentPositionsSplit=[];for(var PosIndex=0,PosCount=this.m_aDocumentPositions.length;PosIndex<PosCount;++PosIndex){var DocPos=this.m_aDocumentPositions[PosIndex];for(var ClassPos=0,ClassLen=DocPos.length;ClassPos<ClassLen;++ClassPos){var _Pos=DocPos[ClassPos];
|
|
if(SplitRun===_Pos.Class&&_Pos.Position&&_Pos.Position>=SplitPos)this.m_aDocumentPositionsSplit.push({DocPos:DocPos,NewRunPos:_Pos.Position-SplitPos})}}};CDocumentPositionsManager.prototype.OnEnd_SplitRun=function(NewRun){if(!NewRun)return;for(var PosIndex=0,PosCount=this.m_aDocumentPositionsSplit.length;PosIndex<PosCount;++PosIndex){var NewDocPos=[];NewDocPos.push({Class:NewRun,Position:this.m_aDocumentPositionsSplit[PosIndex].NewRunPos});this.m_aDocumentPositions.push(NewDocPos);this.m_aDocumentPositionsMap.push({StartPos:this.m_aDocumentPositionsSplit[PosIndex].DocPos,
|
|
EndPos:NewDocPos})}};CDocumentPositionsManager.prototype.Update_DocumentPosition=function(DocPos){var NewDocPos=DocPos;for(var PosIndex=0,PosCount=this.m_aDocumentPositionsMap.length;PosIndex<PosCount;++PosIndex)if(this.m_aDocumentPositionsMap[PosIndex].StartPos===NewDocPos)NewDocPos=this.m_aDocumentPositionsMap[PosIndex].EndPos;if(NewDocPos!==DocPos&&NewDocPos.length===1&&NewDocPos[0].Class instanceof AscCommonWord.ParaRun){var Run=NewDocPos[0].Class;var Para=Run.GetParagraph();if(AscCommonWord.CanUpdatePosition(Para,
|
|
Run)){DocPos.length=0;Run.GetDocumentPositionFromObject(DocPos);DocPos.push({Class:Run,Position:NewDocPos[0].Position})}}else if(DocPos.length>0&&DocPos[DocPos.length-1].Class instanceof AscCommonWord.ParaRun){var Run=DocPos[DocPos.length-1].Class;var RunPos=DocPos[DocPos.length-1].Position;var Para=Run.GetParagraph();if(AscCommonWord.CanUpdatePosition(Para,Run)){DocPos.length=0;Run.GetDocumentPositionFromObject(DocPos);DocPos.push({Class:Run,Position:RunPos})}}};CDocumentPositionsManager.prototype.Remove_DocumentPosition=
|
|
function(DocPos){for(var Pos=0,Count=this.m_aDocumentPositions.length;Pos<Count;++Pos)if(this.m_aDocumentPositions[Pos]===DocPos){this.m_aDocumentPositions.splice(Pos,1);return}};window["AscCommon"]=window["AscCommon"]||{};window["AscCommon"].FOREIGN_CURSOR_LABEL_HIDETIME=FOREIGN_CURSOR_LABEL_HIDETIME;window["AscCommon"].CCollaborativeChanges=CCollaborativeChanges;window["AscCommon"].CCollaborativeEditingBase=CCollaborativeEditingBase;window["AscCommon"].CDocumentPositionsManager=CDocumentPositionsManager})(window);
|
|
"use strict";function CCollaborativeEditing(){AscCommon.CCollaborativeEditingBase.call(this);this.m_oLogicDocument=null;this.m_aDocumentPositions=new AscCommon.CDocumentPositionsManager;this.m_aForeignCursorsPos=new AscCommon.CDocumentPositionsManager;this.m_aForeignCursors={};this.PosExtChangesX=[];this.PosExtChangesY=[];this.ScaleX=null;this.ScaleY=null;this.m_aForeignCursorsXY={};this.m_aForeignCursorsToShow={}}CCollaborativeEditing.prototype=Object.create(AscCommon.CCollaborativeEditingBase.prototype);
|
|
CCollaborativeEditing.prototype.constructor=CCollaborativeEditing;
|
|
CCollaborativeEditing.prototype.Send_Changes=function(IsUserSave,AdditionalInfo,IsUpdateInterface,isAfterAskSave){this.Refresh_DCChanges();this.RefreshPosExtChanges();var StartPoint=null===AscCommon.History.SavedIndex?0:AscCommon.History.SavedIndex+1;var LastPoint=-1;if(this.m_nUseType<=0){AscCommon.History.Clear_Redo();LastPoint=AscCommon.History.Points.length-1}else LastPoint=AscCommon.History.Index;var SumIndex=0;var StartPoint2=Math.min(StartPoint,LastPoint+1);for(var PointIndex=0;PointIndex<
|
|
StartPoint2;PointIndex++){var Point=AscCommon.History.Points[PointIndex];SumIndex+=Point.Items.length}var deleteIndex=null===AscCommon.History.SavedIndex?null:SumIndex;var aChanges=[],aChanges2=[];for(var PointIndex=StartPoint;PointIndex<=LastPoint;PointIndex++){var Point=AscCommon.History.Points[PointIndex];AscCommon.History.Update_PointInfoItem(PointIndex,StartPoint,LastPoint,SumIndex,deleteIndex);for(var Index=0;Index<Point.Items.length;Index++){var Item=Point.Items[Index];var oChanges=new AscCommon.CCollaborativeChanges;
|
|
oChanges.Set_FromUndoRedo(Item.Class,Item.Data,Item.Binary);aChanges2.push(Item.Data);aChanges.push(oChanges.m_pData)}}var bCollaborative=this.getCollaborativeEditing();var num_arr=[];if(bCollaborative){var map=this.Release_Locks();var UnlockCount2=this.m_aNeedUnlock2.length;for(var Index=0;Index<UnlockCount2;Index++){var Class=this.m_aNeedUnlock2[Index];Class.Lock.Set_Type(AscCommon.locktype_None,false);if(Class.getObjectType&&Class.getObjectType()===AscDFH.historyitem_type_Slide)editor.WordControl.m_oLogicDocument.DrawingDocument.UnLockSlide(Class.num);
|
|
if(Class instanceof AscCommonSlide.PropLocker){var Class2=AscCommon.g_oTableId.Get_ById(Class.objectId);if(Class2&&Class2.getObjectType&&Class2.getObjectType()===AscDFH.historyitem_type_Slide&&Class2.deleteLock===Class)editor.WordControl.m_oLogicDocument.DrawingDocument.UnLockSlide(Class2.num)}if(Class instanceof AscCommon.CCore)editor.sendEvent("asc_onLockCore",false);var check_obj=null;if(Class.getObjectType){if((Class.getObjectType()===AscDFH.historyitem_type_Shape||Class.getObjectType()===AscDFH.historyitem_type_ImageShape||
|
|
Class.getObjectType()===AscDFH.historyitem_type_GroupShape||Class.getObjectType()===AscDFH.historyitem_type_GraphicFrame||Class.getObjectType()===AscDFH.historyitem_type_ChartSpace||Class.getObjectType()===AscDFH.historyitem_type_OleObject||Class.getObjectType()===AscDFH.historyitem_type_Cnx)&&AscCommon.isRealObject(Class.parent)){if(Class.parent&&AscFormat.isRealNumber(Class.parent.num))map[Class.parent.num]=true;check_obj={"type":c_oAscLockTypeElemPresentation.Object,"slideId":Class.parent.Get_Id(),
|
|
"objId":Class.Get_Id(),"guid":Class.Get_Id()}}else if(Class.getObjectType()===AscDFH.historyitem_type_Slide)check_obj={"type":c_oAscLockTypeElemPresentation.Slide,"val":Class.Get_Id(),"guid":Class.Get_Id()};else if(Class instanceof AscCommon.CComment)if(Class.Parent&&Class.Parent.slide)if(Class.Parent.slide===editor.WordControl.m_oLogicDocument)check_obj={"type":c_oAscLockTypeElemPresentation.Slide,"val":editor.WordControl.m_oLogicDocument.commentsLock.Get_Id(),"guid":editor.WordControl.m_oLogicDocument.commentsLock.Get_Id()};
|
|
else if(Class.Parent.slide.deleteLock){check_obj={"type":c_oAscLockTypeElemPresentation.Object,"slideId":Class.Parent.slide.deleteLock.Get_Id(),"objId":Class.Get_Id(),"guid":Class.Get_Id()};map[Class.Parent.slide.num]=true}if(check_obj)editor.CoAuthoringApi.releaseLocks(check_obj)}}if(editor.WordControl.m_oDrawingDocument.IsLockObjectsEnable){for(var key in map)if(map.hasOwnProperty(key))num_arr.push(parseInt(key,10));num_arr.sort(AscCommon.fSortAscending)}this.m_aNeedUnlock.length=0;this.m_aNeedUnlock2.length=
|
|
0}if(0<aChanges.length||null!==deleteIndex){this.private_OnSendOwnChanges(aChanges2,deleteIndex);editor.CoAuthoringApi.saveChanges(aChanges,deleteIndex,AdditionalInfo,editor.canUnlockDocument2,bCollaborative);AscCommon.History.CanNotAddChanges=true}else editor.CoAuthoringApi.unLockDocument(!!isAfterAskSave,editor.canUnlockDocument2,null,bCollaborative);editor.canUnlockDocument2=false;if(-1===this.m_nUseType){AscCommon.History.Clear();AscCommon.History.SavedIndex=null}else if(0===this.m_nUseType){AscCommon.History.Clear();
|
|
AscCommon.History.SavedIndex=null;this.m_nUseType=1}else AscCommon.History.Reset_SavedIndex(IsUserSave);for(var i=0;i<num_arr.length;++i)editor.WordControl.m_oDrawingDocument.OnRecalculatePage(num_arr[i],editor.WordControl.m_oLogicDocument.Slides[num_arr[i]]);if(num_arr.length>0)editor.WordControl.m_oDrawingDocument.OnEndRecalculate();var oSlide=editor.WordControl.m_oLogicDocument.Slides[editor.WordControl.m_oLogicDocument.CurPage];if(oSlide&&oSlide.notesShape)editor.WordControl.m_oDrawingDocument.Notes_OnRecalculate(editor.WordControl.m_oLogicDocument.CurPage,
|
|
oSlide.NotesWidth,oSlide.getNotesHeight());editor.WordControl.m_oLogicDocument.Document_UpdateInterfaceState();editor.WordControl.m_oLogicDocument.Document_UpdateUndoRedoState()};
|
|
AscCommon.CCollaborativeEditingBase.prototype.Refresh_ForeignCursors=function(){for(var UserId in this.m_aCursorsToUpdate){var CursorInfo=this.m_aCursorsToUpdate[UserId];editor.WordControl.m_oLogicDocument.Update_ForeignCursor(CursorInfo,UserId,false,this.m_aCursorsToUpdateShortId[UserId]);if(this.Add_ForeignCursorToShow)this.Add_ForeignCursorToShow(UserId)}this.m_aCursorsToUpdate={};this.m_aCursorsToUpdateShortId={}};
|
|
CCollaborativeEditing.prototype.Release_Locks=function(){var map_redraw={};var UnlockCount=this.m_aNeedUnlock.length;for(var Index=0;Index<UnlockCount;Index++){var CurLockType=this.m_aNeedUnlock[Index].Lock.Get_Type();if(AscCommon.locktype_Other3!=CurLockType&&AscCommon.locktype_Other!=CurLockType){var Class=this.m_aNeedUnlock[Index];this.m_aNeedUnlock[Index].Lock.Set_Type(AscCommon.locktype_None,false);if(Class instanceof AscCommonSlide.PropLocker){var object=AscCommon.g_oTableId.Get_ById(Class.objectId);
|
|
if(object instanceof AscCommonSlide.CPresentation)if(Class===editor.WordControl.m_oLogicDocument.themeLock)editor.sendEvent("asc_onUnLockDocumentTheme");else if(Class===editor.WordControl.m_oLogicDocument.schemeLock)editor.sendEvent("asc_onUnLockDocumentSchema");else if(Class===editor.WordControl.m_oLogicDocument.slideSizeLock)editor.sendEvent("asc_onUnLockDocumentProps");if(object.getObjectType&&object.getObjectType()===AscDFH.historyitem_type_Slide&&object.deleteLock===Class)editor.WordControl.m_oLogicDocument.DrawingDocument.UnLockSlide(object.num)}if(Class instanceof
|
|
AscCommon.CComment){editor.sync_UnLockComment(Class.Get_Id());if(Class.Parent&&Class.Parent.slide&&editor.WordControl.m_oLogicDocument!==Class.Parent.slide)map_redraw[Class.Parent.slide.num]=true}if(Class instanceof AscCommon.CCore)editor.sendEvent("asc_onLockCore",false)}else if(AscCommon.locktype_Other3===CurLockType){this.m_aNeedUnlock[Index].Lock.Set_Type(AscCommon.locktype_Other,false);if(this.m_aNeedUnlock[Index]instanceof AscCommonSlide.Slide)editor.WordControl.m_oLogicDocument.DrawingDocument.LockSlide(this.m_aNeedUnlock[Index].num)}if(this.m_aNeedUnlock[Index].parent&&
|
|
AscFormat.isRealNumber(this.m_aNeedUnlock[Index].parent.num))map_redraw[this.m_aNeedUnlock[Index].parent.num]=true}return map_redraw};
|
|
CCollaborativeEditing.prototype.OnEnd_Load_Objects=function(){AscCommon.CollaborativeEditing.Set_GlobalLock(false);AscCommon.CollaborativeEditing.Set_GlobalLockSelection(false);var LogicDocument=editor.WordControl.m_oLogicDocument;var RecalculateData={Drawings:{All:true},Map:{}};LogicDocument.Recalculate(RecalculateData);LogicDocument.Document_UpdateSelectionState();LogicDocument.Document_UpdateInterfaceState();editor.sync_EndAction(Asc.c_oAscAsyncActionType.BlockInteraction,Asc.c_oAscAsyncAction.ApplyChanges)};
|
|
CCollaborativeEditing.prototype.OnEnd_CheckLock=function(DontLockInFastMode){var aIds=[];var Count=this.m_aCheckLocks.length;for(var Index=0;Index<Count;Index++){var oItem=this.m_aCheckLocks[Index];if(true===oItem)return true;else if(false!==oItem)aIds.push(oItem)}if(true===DontLockInFastMode&&true===this.Is_Fast())return false;if(aIds.length>0){editor.CoAuthoringApi.askLock(aIds,this.OnCallback_AskLock);if(-1===this.m_nUseType)this.Set_GlobalLock(true);else{var Count=this.m_aCheckLocks.length;for(var Index=
|
|
0;Index<Count;Index++){var oItem=this.m_aCheckLocks[Index];var items=[];switch(oItem["type"]){case c_oAscLockTypeElemPresentation.Object:{items.push(oItem["objId"]);items.push(oItem["slideId"]);break}case c_oAscLockTypeElemPresentation.Slide:{items.push(oItem["val"]);break}case c_oAscLockTypeElemPresentation.Presentation:{break}}for(var i=0;i<items.length;++i){var item=items[i];if(true!==item&&false!==item){var Class=AscCommon.g_oTableId.Get_ById(item);if(null!=Class){Class.Lock.Set_Type(AscCommon.locktype_Mine,
|
|
false);if(Class instanceof AscCommonSlide.Slide)editor.WordControl.m_oLogicDocument.DrawingDocument.UnLockSlide(Class.num);this.Add_Unlock2(Class)}}}}this.m_aCheckLocks.length=0}}return false};
|
|
CCollaborativeEditing.prototype.OnCallback_AskLock=function(result){if(true===AscCommon.CollaborativeEditing.Get_GlobalLock()){if(false==editor.checkLongActionCallback(AscCommon.CollaborativeEditing.OnCallback_AskLock,result))return;AscCommon.CollaborativeEditing.Set_GlobalLock(false);if(result["lock"]){var Count=AscCommon.CollaborativeEditing.m_aCheckLocks.length;for(var Index=0;Index<Count;Index++){var oItem=AscCommon.CollaborativeEditing.m_aCheckLocks[Index];var item;switch(oItem["type"]){case c_oAscLockTypeElemPresentation.Object:{item=
|
|
oItem["objId"];break}case c_oAscLockTypeElemPresentation.Slide:{item=oItem["val"];break}case c_oAscLockTypeElemPresentation.Presentation:{break}}if(true!==oItem&&false!==oItem){var Class=AscCommon.g_oTableId.Get_ById(item);if(null!=Class){Class.Lock.Set_Type(AscCommon.locktype_Mine);if(Class instanceof AscCommonSlide.Slide)editor.WordControl.m_oLogicDocument.DrawingDocument.UnLockSlide(Class.num);AscCommon.CollaborativeEditing.Add_Unlock2(Class)}}}}else if(result["error"]){if(true===editor.isChartEditor)editor.sync_closeChartEditor();
|
|
editor.WordControl.m_oLogicDocument.Document_Undo();AscCommon.History.Clear_Redo()}}editor.isChartEditor=false};CCollaborativeEditing.prototype.AddPosExtChanges=function(Item,ChangeObject){if(ChangeObject.IsHorizontal())this.PosExtChangesX.push(Item);else this.PosExtChangesY.push(Item)};
|
|
CCollaborativeEditing.prototype.RewritePosExtChanges=function(changesArr,scale){for(var i=0;i<changesArr.length;++i){var changes=changesArr[i];var data=changes.Data;data.New*=scale;data.Old*=scale;var Binary_Writer=AscCommon.History.BinaryWriter;var Binary_Pos=Binary_Writer.GetCurPosition();Binary_Writer.WriteString2(changes.Class.Get_Id());Binary_Writer.WriteLong(changes.Data.Type);changes.Data.WriteToBinary(Binary_Writer);var Binary_Len=Binary_Writer.GetCurPosition()-Binary_Pos;changes.Binary.Pos=
|
|
Binary_Pos;changes.Binary.Len=Binary_Len}};CCollaborativeEditing.prototype.RefreshPosExtChanges=function(){if(this.ScaleX!=null&&this.ScaleY!=null){this.RewritePosExtChanges(this.PosExtChangesX,this.ScaleX);this.RewritePosExtChanges(this.PosExtChangesY,this.ScaleY)}this.PosExtChangesX.length=0;this.PosExtChangesY.length=0;this.ScaleX=null;this.ScaleY=null};
|
|
CCollaborativeEditing.prototype.Update_ForeignCursorsPositions=function(){var DrawingDocument=editor.WordControl.m_oDrawingDocument;var oPresentation=editor.WordControl.m_oLogicDocument;var oTargetDocContentOrTable;var oCurController=oPresentation.GetCurrentController();if(oCurController)oTargetDocContentOrTable=oCurController.getTargetDocContent(undefined,true);if(!oTargetDocContentOrTable){for(var UserId in this.m_aForeignCursors)DrawingDocument.Collaborative_RemoveTarget(UserId);return}var bTable=
|
|
oTargetDocContentOrTable instanceof AscCommonWord.CTable;for(var UserId in this.m_aForeignCursors){var DocPos=this.m_aForeignCursors[UserId];if(!DocPos||DocPos.length<=0)continue;this.m_aForeignCursorsPos.Update_DocumentPosition(DocPos);var Run=DocPos[DocPos.length-1].Class;var InRunPos=DocPos[DocPos.length-1].Position;this.Update_ForeignCursorPosition(UserId,Run,InRunPos,false,oTargetDocContentOrTable,bTable)}};
|
|
CCollaborativeEditing.prototype.Update_ForeignCursorPosition=function(UserId,Run,InRunPos,isRemoveLabel,oTargetDocContentOrTable,bTable){if(!(Run instanceof AscCommonWord.ParaRun))return;var DrawingDocument=editor.WordControl.m_oDrawingDocument;var oPresentation=editor.WordControl.m_oLogicDocument;var Paragraph=Run.GetParagraph();if(!Paragraph||!Paragraph.Parent){DrawingDocument.Collaborative_RemoveTarget(UserId);return}if(!bTable){if(oTargetDocContentOrTable!==Paragraph.Parent){DrawingDocument.Collaborative_RemoveTarget(UserId);
|
|
return}}else if(!Paragraph.Parent.Parent||!Paragraph.Parent.Parent.Row||!Paragraph.Parent.Parent.Row.Table||Paragraph.Parent.Parent.Row.Table!==oTargetDocContentOrTable){DrawingDocument.Collaborative_RemoveTarget(UserId);return}var ParaContentPos=Paragraph.Get_PosByElement(Run);if(!ParaContentPos){DrawingDocument.Collaborative_RemoveTarget(UserId);return}ParaContentPos.Update(InRunPos,ParaContentPos.Get_Depth()+1);var XY=Paragraph.Get_XYByContentPos(ParaContentPos);if(XY&&XY.Height>.001){var ShortId=
|
|
this.m_aForeignCursorsId[UserId]?this.m_aForeignCursorsId[UserId]:UserId;DrawingDocument.Collaborative_UpdateTarget(UserId,ShortId,XY.X,XY.Y,XY.Height,oPresentation.CurPage,Paragraph.Get_ParentTextTransform());this.Add_ForeignCursorXY(UserId,XY.X,XY.Y,XY.PageNum,XY.Height,Paragraph,isRemoveLabel);if(true===this.m_aForeignCursorsToShow[UserId]){this.Show_ForeignCursorLabel(UserId);this.Remove_ForeignCursorToShow(UserId)}}else{DrawingDocument.Collaborative_RemoveTarget(UserId);this.Remove_ForeignCursorXY(UserId);
|
|
this.Remove_ForeignCursorToShow(UserId)}};CCollaborativeEditing.prototype.Check_ForeignCursorsLabels=function(X,Y,PageIndex){var DrawingDocument=editor.WordControl.m_oDrawingDocument;var Px7=DrawingDocument.GetMMPerDot(7);var Px3=DrawingDocument.GetMMPerDot(3);for(var UserId in this.m_aForeignCursorsXY){var Cursor=this.m_aForeignCursorsXY[UserId];if(true===Cursor.Transform&&Cursor.PageIndex===PageIndex&&Cursor.X0-Px3<X&&X<Cursor.X1+Px3&&Cursor.Y0-Px3<Y&&Y<Cursor.Y1+Px3)this.Show_ForeignCursorLabel(UserId)}};
|
|
CCollaborativeEditing.prototype.Show_ForeignCursorLabel=function(UserId){var Api=editor;var DrawingDocument=editor.WordControl.m_oDrawingDocument;if(!this.m_aForeignCursorsXY[UserId])return;var Cursor=this.m_aForeignCursorsXY[UserId];if(Cursor.ShowId)clearTimeout(Cursor.ShowId);Cursor.ShowId=setTimeout(function(){Cursor.ShowId=null;Api.sync_HideForeignCursorLabel(UserId)},AscCommon.FOREIGN_CURSOR_LABEL_HIDETIME);var UserShortId=this.m_aForeignCursorsId[UserId]?this.m_aForeignCursorsId[UserId]:UserId;
|
|
var Color=AscCommon.getUserColorById(UserShortId,null,true);var Coords=DrawingDocument.Collaborative_GetTargetPosition(UserId);if(!Color||!Coords)return;this.Update_ForeignCursorLabelPosition(UserId,Coords.X,Coords.Y,Color)};CCollaborativeEditing.prototype.Add_ForeignCursorToShow=function(UserId){this.m_aForeignCursorsToShow[UserId]=true};CCollaborativeEditing.prototype.Remove_ForeignCursorToShow=function(UserId){delete this.m_aForeignCursorsToShow[UserId]};
|
|
CCollaborativeEditing.prototype.Add_ForeignCursorXY=function(UserId,X,Y,PageIndex,H,Paragraph,isRemoveLabel){var Cursor;if(!this.m_aForeignCursorsXY[UserId]){Cursor={X:X,Y:Y,H:H,PageIndex:PageIndex,Transform:false,ShowId:null};this.m_aForeignCursorsXY[UserId]=Cursor}else{Cursor=this.m_aForeignCursorsXY[UserId];if(Cursor.ShowId){if(true===isRemoveLabel){clearTimeout(Cursor.ShowId);Cursor.ShowId=null;editor.sync_HideForeignCursorLabel(UserId)}}else Cursor.ShowId=null;Cursor.X=X;Cursor.Y=Y;Cursor.PageIndex=
|
|
PageIndex;Cursor.H=H}var Transform=Paragraph.Get_ParentTextTransform();if(Transform){Cursor.Transform=true;var X0=Transform.TransformPointX(Cursor.X,Cursor.Y);var Y0=Transform.TransformPointY(Cursor.X,Cursor.Y);var X1=Transform.TransformPointX(Cursor.X,Cursor.Y+Cursor.H);var Y1=Transform.TransformPointY(Cursor.X,Cursor.Y+Cursor.H);Cursor.X0=Math.min(X0,X1);Cursor.Y0=Math.min(Y0,Y1);Cursor.X1=Math.max(X0,X1);Cursor.Y1=Math.max(Y0,Y1)}else Cursor.Transform=false};
|
|
CCollaborativeEditing.prototype.Remove_ForeignCursorXY=function(UserId){if(this.m_aForeignCursorsXY[UserId]){if(this.m_aForeignCursorsXY[UserId].ShowId){editor.sync_HideForeignCursorLabel(UserId);clearTimeout(this.m_aForeignCursorsXY[UserId].ShowId)}delete this.m_aForeignCursorsXY[UserId]}};
|
|
CCollaborativeEditing.prototype.Update_ForeignCursorLabelPosition=function(UserId,X,Y,Color){var Cursor=this.m_aForeignCursorsXY[UserId];if(!Cursor||!Cursor.ShowId)return;editor.sync_ShowForeignCursorLabel(UserId,X,Y,Color)};CCollaborativeEditing.prototype.private_RecalculateDocument=function(arrChanges){this.m_oLogicDocument.Recalculate(AscCommon.History.Get_RecalcData(null,arrChanges))};window["AscCommon"]=window["AscCommon"]||{};window["AscCommon"].CollaborativeEditing=new CCollaborativeEditing;
|
|
"use strict";
|
|
(function(window,undefined){function CDocumentMacros(){this.Id="_macrosGlobalId";this.Lock=new AscCommon.CLock;this.Data="";AscCommon.g_oTableId.Add(this,this.Id)}CDocumentMacros.prototype.SetData=function(sData){AscCommon.History.Add(new CChangesDocumentMacrosData(this,this.Data,sData));this.Data=sData};CDocumentMacros.prototype.GetData=function(){return this.Data};CDocumentMacros.prototype.Get_Id=function(){return this.Id};CDocumentMacros.prototype.CheckLock=function(){this.Lock.Check(this.Id)};CDocumentMacros.prototype.Write_ToBinary2=
|
|
function(Writer){Writer.WriteLong(AscDFH.historyitem_type_DocumentMacros);Writer.WriteString2(""+this.Id);Writer.WriteString2(this.Data)};CDocumentMacros.prototype.Read_FromBinary2=function(Reader){this.Id=Reader.GetString2();this.Data=Reader.GetString2()};CDocumentMacros.prototype.Refresh_RecalcData=function(){};CDocumentMacros.prototype.runAuto=function(){try{var obj=JSON.parse(this.Data);if(!obj["macrosArray"])return;for(var i=0;i<obj["macrosArray"].length;i++){if(true!==obj["macrosArray"][i]["autostart"])continue;
|
|
var script="(function(){ var Api = window.g_asc_plugins.api;\n"+obj["macrosArray"][i]["value"]+"\n})();";eval(script)}}catch(err){}};CDocumentMacros.prototype.run=function(sGuid){try{var obj=JSON.parse(this.Data);if(!obj["macrosArray"])return;for(var i=0;i<obj["macrosArray"].length;i++)if(sGuid===obj["macrosArray"][i]["guid"]){var script="(function(){ var Api = window.g_asc_plugins.api;\n"+obj["macrosArray"][i]["value"]+"\n})();";eval(script);break}}catch(err){}};CDocumentMacros.prototype.getGuidByName=
|
|
function(sName){try{var obj=JSON.parse(this.Data);if(!obj["macrosArray"])return;for(var i=0;i<obj["macrosArray"].length;i++)if(sName===obj["macrosArray"][i]["name"])return obj["macrosArray"][i]["guid"]}catch(err){}return""};CDocumentMacros.prototype.getNameByGuid=function(sGuid){try{var obj=JSON.parse(this.Data);if(!obj["macrosArray"])return;for(var i=0;i<obj["macrosArray"].length;i++)if(sGuid===obj["macrosArray"][i]["guid"])return obj["macrosArray"][i]["name"]}catch(err){}return""};CDocumentMacros.prototype.getAllNames=
|
|
function(){try{var obj=JSON.parse(this.Data);if(!obj["macrosArray"])return[];var oNamesMap={};var aNames=[];for(var i=0;i<obj["macrosArray"].length;i++){var sName=obj["macrosArray"][i]["name"];if(!oNamesMap[sName]){oNamesMap[sName]=true;aNames.push(sName)}}return aNames}catch(err){}return[]};CDocumentMacros.prototype.isExistAuto=function(){try{var obj=JSON.parse(this.Data);if(!obj["macrosArray"])return;for(var i=0;i<obj["macrosArray"].length;i++)if(true===obj["macrosArray"][i]["autostart"])return true}catch(err){}return false};
|
|
AscDFH.changesFactory[AscDFH.historyitem_DocumentMacros_Data]=CChangesDocumentMacrosData;AscDFH.changesRelationMap[AscDFH.historyitem_DocumentMacros_Data]=[AscDFH.historyitem_DocumentMacros_Data];function CChangesDocumentMacrosData(Class,Old,New){AscDFH.CChangesBaseStringProperty.call(this,Class,Old,New)}CChangesDocumentMacrosData.prototype=Object.create(AscDFH.CChangesBaseStringProperty.prototype);CChangesDocumentMacrosData.prototype.constructor=CChangesDocumentMacrosData;CChangesDocumentMacrosData.prototype.Type=
|
|
AscDFH.historyitem_DocumentMacros_Data;CChangesDocumentMacrosData.prototype.private_SetValue=function(Value){this.Class.Data=Value};window["AscCommon"]=window["AscCommon"]||{};window["AscCommon"].CDocumentMacros=CDocumentMacros})(window);"use strict";
|
|
(function(window,undefined){var prot;var c_oEditorId=AscCommon.c_oEditorId;var c_oCloseCode=AscCommon.c_oCloseCode;var DownloadType=AscCommon.DownloadType;var c_oAscError=Asc.c_oAscError;var c_oAscAsyncAction=Asc.c_oAscAsyncAction;var c_oAscAsyncActionType=Asc.c_oAscAsyncActionType;function baseEditorsApi(config,editorId){this.editorId=editorId;this.isLoadFullApi=false;this.isLoadFonts=false;this.openResult=null;this.HtmlElementName=config["id-view"]||"";this.HtmlElement=null;this.isMobileVersion=
|
|
config["mobile"]===true;this.isEmbedVersion=config["embedded"]===true;this.isViewMode=false;this.restrictions=Asc.c_oAscRestrictionType.None;this.FontLoader=null;this.ImageLoader=null;this.LoadedObject=null;this.DocumentType=0;this.DocInfo=null;this.documentId=undefined;this.documentUserId=undefined;this.documentUrl="null";this.documentUrlChanges=null;this.documentCallbackUrl=undefined;this.documentFormat="null";this.documentTitle="null";this.documentFormatSave=Asc.c_oAscFileType.UNKNOWN;this.documentOpenOptions=
|
|
undefined;this.advancedOptionsAction=AscCommon.c_oAscAdvancedOptionsAction.None;this.OpenDocumentProgress=new AscCommon.COpenProgress;var sProtocol=window.location.protocol;this.documentOrigin=(sProtocol&&""!==sProtocol?sProtocol+"//":"")+window.location.host;this.documentPathname=window.location.pathname;this.ServerIdWaitComplete=false;this.IsLongActionCurrent=0;this.LongActionCallbacks=[];this.LongActionCallbacksParams=[];this.autoSaveGap=0;this.lastSaveTime=null;this.autoSaveGapFast=2E3;this.autoSaveGapSlow=
|
|
10*60*1E3;this.intervalWaitAutoSave=1E3;this.canUnlockDocument=false;this.canUnlockDocument2=false;this.canStartCoAuthoring=false;this.isDocumentCanSave=false;this.translateManager=AscCommon.translateManager.init(config["translate"]);this.chartPreviewManager=null;this.textArtPreviewManager=null;this.shapeElementId=null;this.isChartEditor=false;this.isOpenedChartFrame=false;this.MathMenuLoad=false;this.User=undefined;this.CoAuthoringApi=new AscCommon.CDocsCoApi;this.isCoAuthoringEnable=true;this.arrPreOpenLocksObjects=
|
|
[];this.SpellCheckUrl="";this.licenseResult=null;this.isOnLoadLicense=false;this.isDocumentLoadComplete=false;this.isPreOpenLocks=true;this.isApplyChangesOnOpenEnabled=true;this.isProtectionSupport=true;this.canSave=true;this.IsUserSave=false;this.isForceSaveOnUserSave=false;this.forceSaveButtonTimeout=null;this.forceSaveButtonContinue=false;this.forceSaveTimeoutTimeout=null;this.forceSaveForm=null;this.disconnectOnSave=null;this.forceSaveUndoRequest=false;this.VersionHistory=null;this.noCreatePoint=
|
|
false;this.exucuteHistory=false;this.exucuteHistoryEnd=false;this.selectSearchingResults=false;this.isSendStandartTextures=false;this.tmpFocus=null;this.fCurCallback=null;this.pluginsManager=null;this.isLockTargetUpdate=false;this.lastWorkTime=0;this.signatures=[];this.currentPassword="";this.disableAutostartMacros=false;this.macros=null;this.openFileCryptBinary=null;this.copyOutEnabled=true;this.watermarkDraw=null;this.SaveAfterMacros=false;this.SpellCheckApi=new AscCommon.CSpellCheckApi;this.isSpellCheckEnable=
|
|
true;this.internalEvents={};this.skinObject=config["skin"];this.Shortcuts=new AscCommon.CShortcuts;this.initDefaultShortcuts();return this}baseEditorsApi.prototype._init=function(){if(window["AscDesktopEditor"])window["AscDesktopEditor"]["CreateEditorApi"](this);var t=this;this.HtmlElement=document.getElementById(this.HtmlElementName);if(this.HtmlElement)this.HtmlElement.style.touchAction="none";AscCommon.InitOnMessage(function(error,url){if(c_oAscError.ID.No!==error)t.sendEvent("asc_onError",error,
|
|
c_oAscError.Level.NoCritical);else t._addImageUrl([url]);t.sync_EndAction(c_oAscAsyncActionType.BlockInteraction,c_oAscAsyncAction.UploadImage)});AscCommon.loadSdk(this._editorNameById(),function(){t.isLoadFullApi=true;t._onEndLoadSdk();t.onEndLoadDocInfo()},function(err){t.sendEvent("asc_onError",Asc.c_oAscError.ID.LoadingScriptError,c_oAscError.Level.Critical)});AscFonts.load(t,function(){t.isLoadFonts=true;t.onEndLoadFile(null)},function(){t.sendEvent("asc_onError",Asc.c_oAscError.ID.LoadingScriptError,
|
|
c_oAscError.Level.Critical)});AscCommon.loadChartStyles(function(){},function(err){t.sendEvent("asc_onError",Asc.c_oAscError.ID.LoadingScriptError,c_oAscError.Level.NoCritical)});var oldOnError=window.onerror;window.onerror=function(errorMsg,url,lineNumber,column,errorObj){window.onerror=oldOnError;var msg="Error: "+errorMsg+" Script: "+url+" Line: "+lineNumber+":"+column+" userAgent: "+(navigator.userAgent||navigator.vendor||window.opera)+" platform: "+navigator.platform+" isLoadFullApi: "+t.isLoadFullApi+
|
|
" isDocumentLoadComplete: "+t.isDocumentLoadComplete+" StackTrace: "+(errorObj?errorObj.stack:"");t.CoAuthoringApi.sendChangesError(msg);if(t.isLoadFullApi)if(t.isDocumentLoadComplete){t.sendEvent("asc_onError",Asc.c_oAscError.ID.EditingError,c_oAscError.Level.NoCritical);t.asc_setViewMode(true)}else t.sendEvent("asc_onError",Asc.c_oAscError.ID.ConvertationOpenError,c_oAscError.Level.Critical);if(oldOnError)return oldOnError.apply(this,arguments);else return false};if(AscCommon.AscBrowser.isMacOs)document.body.onmousewheel=
|
|
function(e){if(e.stopPropagation)e.stopPropagation();e.returnValue=false;return false}};baseEditorsApi.prototype._editorNameById=function(){var res="";switch(this.editorId){case c_oEditorId.Word:res="word";break;case c_oEditorId.Spreadsheet:res="cell";break;case c_oEditorId.Presentation:res="slide";break}return res};baseEditorsApi.prototype.getEditorId=function(){return this.editorId};baseEditorsApi.prototype.asc_loadFontsFromServer=function(fonts){if(!fonts)fonts=["Arial","Symbol","Wingdings","Courier New",
|
|
"Times New Roman"];this.FontLoader.LoadFontsFromServer(fonts)};baseEditorsApi.prototype.asc_GetFontThumbnailsPath=function(){return"../Common/Images/"};baseEditorsApi.prototype.asc_getDocumentName=function(){return this.documentTitle};baseEditorsApi.prototype.asc_getAppProps=function(){return null};baseEditorsApi.prototype.asc_getCoreProps=function(){var oCore=this.getInternalCoreProps();if(oCore)return oCore.copy();return null};baseEditorsApi.prototype.getInternalCoreProps=function(){return null};
|
|
baseEditorsApi.prototype.asc_setCoreProps=function(oProps){};baseEditorsApi.prototype.asc_setDocInfo=function(oDocInfo){var oldInfo=this.DocInfo;if(oDocInfo)this.DocInfo=oDocInfo;if(this.DocInfo){this.documentId=this.DocInfo.get_Id();this.documentUserId=this.DocInfo.get_UserId();this.documentUrl=this.DocInfo.get_Url();this.documentTitle=this.DocInfo.get_Title();this.documentFormat=this.DocInfo.get_Format();this.documentCallbackUrl=this.DocInfo.get_CallbackUrl();this.documentOpenOptions=this.DocInfo.asc_getOptions();
|
|
var permissions=this.DocInfo.asc_getPermissions();if(permissions&&undefined!==permissions["copy"])this.copyOutEnabled=permissions["copy"];this.User=new AscCommon.asc_CUser;this.User.setId(this.DocInfo.get_UserId());this.User.setUserName(this.DocInfo.get_UserName());this.User.setFirstName(this.DocInfo.get_FirstName());this.User.setLastName(this.DocInfo.get_LastName());this.CoAuthoringApi.setDocId(this.documentId);if(this.documentOpenOptions&&this.documentOpenOptions["watermark"]){this.watermarkDraw=
|
|
new AscCommon.CWatermarkOnDraw(this.documentOpenOptions["watermark"],this);this.watermarkDraw.CheckParams(this)}}if(AscCommon.chartMode===this.documentUrl){this.isChartEditor=true;AscCommon.EncryptionWorker.isChartEditor=true;this.DocInfo.put_OfflineApp(true)}else if(AscCommon.offlineMode===this.documentUrl)this.DocInfo.put_OfflineApp(true);if(this.DocInfo.get_EncryptedInfo())if(undefined!==window["AscDesktopEditor"]){var obj=this.DocInfo.get_EncryptedInfo();obj["userId"]=this.documentUserId;window["AscDesktopEditor"]["execCommand"]("portal:cryptoinfo",
|
|
JSON.stringify(obj))}if(undefined!==window["AscDesktopEditor"]&&!(this.DocInfo&&this.DocInfo.get_OfflineApp()))window["AscDesktopEditor"]["SetDocumentName"](this.documentTitle);if(!this.isChartEditor&&undefined!==window["AscDesktopEditor"]&&undefined!==window["AscDesktopEditor"]["CryptoMode"])this.DocInfo.put_Encrypted(0<window["AscDesktopEditor"]["CryptoMode"]);if(!oldInfo)this.onEndLoadDocInfo()};baseEditorsApi.prototype.asc_changeDocInfo=function(oDocInfo){var rData={"c":"changedocinfo","id":this.documentId,
|
|
"username":oDocInfo.asc_getUserName()};var t=this;t.fCurCallback=function(input){if(null!=input&&"changedocinfo"==input["type"])if("ok"===input["status"]){t.DocInfo.asc_getUserInfo().asc_putFullName(oDocInfo.asc_getUserName());t.User.setUserName(oDocInfo.asc_getUserName())}else t.sendEvent("asc_onError",AscCommon.mapAscServerErrorToAscError(parseInt(input["data"])),c_oAscError.Level.NoCritical);else t.sendEvent("asc_onError",c_oAscError.ID.Unknown,c_oAscError.Level.NoCritical)};AscCommon.sendCommand(this,
|
|
null,rData)};baseEditorsApi.prototype.asc_isCrypto=function(){if(this.DocInfo&&this.DocInfo.get_Encrypted()===true)return true;return false};baseEditorsApi.prototype.asc_enableKeyEvents=function(isEnabled,isFromInput){};baseEditorsApi.prototype.asc_IsFocus=function(bIsNaturalFocus){var _ret=false;if(this.WordControl.IsFocus)_ret=true;if(_ret&&bIsNaturalFocus&&this.WordControl.TextBoxInputFocus)_ret=false;return _ret};baseEditorsApi.prototype.isCopyOutEnabled=function(){return this.copyOutEnabled};
|
|
baseEditorsApi.prototype.sync_CanCopyCutCallback=function(bCanCopyCut){this.sendEvent("asc_onCanCopyCut",bCanCopyCut)};baseEditorsApi.prototype.can_CopyCut=function(){return true};baseEditorsApi.prototype.asc_LockTargetUpdate=function(isLock){this.isLockTargetUpdate=isLock};baseEditorsApi.prototype.isPdfViewer=function(){return false};baseEditorsApi.prototype.sendEvent=function(){};baseEditorsApi.prototype.SendOpenProgress=function(){this.sendEvent("asc_onOpenDocumentProgress",this.OpenDocumentProgress)};
|
|
baseEditorsApi.prototype.sync_InitEditorFonts=function(gui_fonts){if(!this.isViewMode){var currentLang=this.asc_getLocale();if(typeof currentLang!=="string")currentLang=AscCommon.g_oDefaultCultureInfo&&typeof AscCommon.g_oDefaultCultureInfo.Name==="string"?AscCommon.g_oDefaultCultureInfo.Name:"en";AscFonts.g_fontApplication&&AscFonts.g_fontApplication.CheckNamesForInterface(currentLang);this.sendEvent("asc_onInitEditorFonts",gui_fonts)}};baseEditorsApi.prototype.sync_StartAction=function(type,id){if(type!==
|
|
c_oAscAsyncActionType.Empty)this.sendEvent("asc_onStartAction",type,id);if(c_oAscAsyncActionType.BlockInteraction===type)this.incrementCounterLongAction()};baseEditorsApi.prototype.sync_EndAction=function(type,id){if(type!==c_oAscAsyncActionType.Empty)this.sendEvent("asc_onEndAction",type,id);if(c_oAscAsyncActionType.BlockInteraction===type)this.decrementCounterLongAction()};baseEditorsApi.prototype.sync_TryUndoInFastCollaborative=function(){this.sendEvent("asc_OnTryUndoInFastCollaborative")};baseEditorsApi.prototype.asc_setViewMode=
|
|
function(){};baseEditorsApi.prototype.asc_setRestriction=function(val){this.restrictions=val;this.onUpdateRestrictions()};baseEditorsApi.prototype.getViewMode=function(){return this.isViewMode};baseEditorsApi.prototype.asc_addRestriction=function(val){this.restrictions|=val;this.onUpdateRestrictions()};baseEditorsApi.prototype.asc_removeRestriction=function(val){this.restrictions&=~val;this.onUpdateRestrictions()};baseEditorsApi.prototype.canEdit=function(){return!this.isViewMode&&this.restrictions===
|
|
Asc.c_oAscRestrictionType.None};baseEditorsApi.prototype.isRestrictionForms=function(){return!!(this.restrictions&Asc.c_oAscRestrictionType.OnlyForms)};baseEditorsApi.prototype.isRestrictionComments=function(){return!!(this.restrictions&Asc.c_oAscRestrictionType.OnlyComments)};baseEditorsApi.prototype.isRestrictionSignatures=function(){return!!(this.restrictions&Asc.c_oAscRestrictionType.OnlySignatures)};baseEditorsApi.prototype.isRestrictionView=function(){return!!(this.restrictions&Asc.c_oAscRestrictionType.View)};
|
|
baseEditorsApi.prototype.onUpdateRestrictions=function(){};baseEditorsApi.prototype.isLongAction=function(){return 0!==this.IsLongActionCurrent};baseEditorsApi.prototype.incrementCounterLongAction=function(){++this.IsLongActionCurrent};baseEditorsApi.prototype.decrementCounterLongAction=function(){this.IsLongActionCurrent--;if(this.IsLongActionCurrent<0)this.IsLongActionCurrent=0;if(!this.isLongAction()){var _length=this.LongActionCallbacks.length;for(var i=0;i<_length;i++)this.LongActionCallbacks[i](this.LongActionCallbacksParams[i]);
|
|
this.LongActionCallbacks.splice(0,_length);this.LongActionCallbacksParams.splice(0,_length)}};baseEditorsApi.prototype.checkLongActionCallback=function(_callback,_param){if(this.isLongAction()){this.LongActionCallbacks[this.LongActionCallbacks.length]=_callback;this.LongActionCallbacksParams[this.LongActionCallbacksParams.length]=_param;return false}else return true};baseEditorsApi.prototype.IsNeedDefaultFonts=function(){var res=false;switch(this.editorId){case c_oEditorId.Word:res=!this.isPdfViewer();
|
|
break;case c_oEditorId.Presentation:res=true;break}return res};baseEditorsApi.prototype.isShowShapeAdjustments=function(){return true};baseEditorsApi.prototype.isShowTableAdjustments=function(){return true};baseEditorsApi.prototype.isShowEquationTrack=function(){return true};baseEditorsApi.prototype.onPrint=function(){this.sendEvent("asc_onPrint")};baseEditorsApi.prototype.asc_LoadDocument=function(versionHistory,isRepeat){this.advancedOptionsAction=AscCommon.c_oAscAdvancedOptionsAction.Open;var rData=
|
|
null;if(!(this.DocInfo&&this.DocInfo.get_OfflineApp())){var locale=!window["NATIVE_EDITOR_ENJINE"]&&this.asc_getLocale()||undefined;if(typeof locale==="string")if(Asc.g_oLcidNameToIdMap)locale=Asc.g_oLcidNameToIdMap[locale];else locale=undefined;rData={"c":"open","id":this.documentId,"userid":this.documentUserId,"format":this.documentFormat,"url":this.documentUrl,"title":this.documentTitle,"lcid":locale,"nobase64":true};if(versionHistory){rData["serverVersion"]=versionHistory.serverVersion;rData["closeonerror"]=
|
|
versionHistory.isRequested;rData["tokenHistory"]=versionHistory.token;rData["userconnectionid"]=this.CoAuthoringApi.getUserConnectionId()}}if(versionHistory)this.CoAuthoringApi.versionHistory(rData);else this.CoAuthoringApi.auth(this.getViewMode(),rData);if(!isRepeat)this.sync_StartAction(c_oAscAsyncActionType.BlockInteraction,c_oAscAsyncAction.Open);if(this.DocInfo.get_Encrypted()&&window["AscDesktopEditor"]&&!window["AscDesktopEditor"]["IsLocalFile"](true)){var t=this;window["AscDesktopEditor"]["OpenFileCrypt"](this.DocInfo.get_Title(),
|
|
this.DocInfo.get_Url(),function(){t.openFileCryptCallback.apply(t,arguments)})}};baseEditorsApi.prototype._openChartOrLocalDocument=function(){this._openEmptyDocument()};baseEditorsApi.prototype._openEmptyDocument=function(){var file=new AscCommon.OpenFileResult;file.data=AscCommon.getEmpty();file.bSerFormat=AscCommon.checkStreamSignature(file.data,AscCommon.c_oSerFormat.Signature);this.onEndLoadFile(file)};baseEditorsApi.prototype._openDocumentEndCallback=function(){};baseEditorsApi.prototype._openVersionHistoryEndCallback=
|
|
function(){this.sync_EndAction(c_oAscAsyncActionType.BlockInteraction,c_oAscAsyncAction.Open)};baseEditorsApi.prototype._openOnClient=function(){};baseEditorsApi.prototype._onOpenCommand=function(data){var t=this;AscCommon.openFileCommand(data,this.documentUrlChanges,AscCommon.c_oSerFormat.Signature,function(error,result){if(error||!result.bSerFormat&&!Asc.c_rUneditableTypes.test(t.DocInfo&&t.DocInfo.get_Format())){var err=error?c_oAscError.ID.Unknown:c_oAscError.ID.ConvertationOpenError;t.sendEvent("asc_onError",
|
|
err,c_oAscError.Level.Critical);return}t.onEndLoadFile(result)});this._openOnClient()};baseEditorsApi.prototype.openFileCryptCallback=function(stream){if(!this.isLoadFullApi){this.openFileCryptBinary=stream;return}this.openFileCryptBinary=null;if(stream==null){this.sendEvent("asc_onError",c_oAscError.ID.ConvertationOpenError,c_oAscError.Level.Critical);return}var file=new AscCommon.OpenFileResult;file.bSerFormat=AscCommon.checkStreamSignature(stream,AscCommon.c_oSerFormat.Signature);file.data=stream;
|
|
this.openDocument(file);this.sendEvent("asc_onDocumentPassword",""!==this.currentPassword)};baseEditorsApi.prototype._onNeedParams=function(data,opt_isPassword){};baseEditorsApi.prototype.asyncServerIdEndLoaded=function(){this.ServerIdWaitComplete=true;this._openDocumentEndCallback()};baseEditorsApi.prototype.asyncFontStartLoaded=function(){this.sync_StartAction(c_oAscAsyncActionType.Information,c_oAscAsyncAction.LoadFont)};baseEditorsApi.prototype.asyncImageStartLoaded=function(){};baseEditorsApi.prototype.asyncImagesDocumentStartLoaded=
|
|
function(){};baseEditorsApi.prototype.onDocumentContentReady=function(){var t=this;this.isDocumentLoadComplete=true;if(!window["IS_NATIVE_EDITOR"])setInterval(function(){t._autoSave()},40);this.sync_EndAction(c_oAscAsyncActionType.BlockInteraction,c_oAscAsyncAction.Open);this.sendEvent("asc_onDocumentContentReady");if(window.g_asc_plugins)window.g_asc_plugins.onPluginEvent("onDocumentContentReady");if(c_oEditorId.Spreadsheet===this.editorId)this.onUpdateDocumentModified(this.asc_isDocumentModified());
|
|
if(this.DocInfo)this["pluginMethod_SetProperties"](this.DocInfo.asc_getOptions());if(this.macros&&!this.disableAutostartMacros&&this.macros.isExistAuto())this.sendEvent("asc_onRunAutostartMacroses");if(window["AscDesktopEditor"]&&window["AscDesktopEditor"]["onDocumentContentReady"])window["AscDesktopEditor"]["onDocumentContentReady"]()};baseEditorsApi.prototype.processSavedFile=function(url,downloadType){if(AscCommon.DownloadType.None!==downloadType)this.sendEvent(downloadType,url,function(hasError){});
|
|
else AscCommon.getFile(url)};baseEditorsApi.prototype.forceSave=function(){return this.CoAuthoringApi.forceSave()};baseEditorsApi.prototype.saveFromChanges=function(data,timeout,callback){var t=this;var fAfterSaveChanges=function(){t.forceSaveForm=null;if(!t.CoAuthoringApi.callPRC(data,timeout,callback))callback(false,undefined)};if(this.asc_Save(true))this.forceSaveForm=fAfterSaveChanges;else fAfterSaveChanges()};baseEditorsApi.prototype.asc_setIsForceSaveOnUserSave=function(val){this.isForceSaveOnUserSave=
|
|
val};baseEditorsApi.prototype._onUpdateDocumentCanSave=function(){};baseEditorsApi.prototype._onUpdateDocumentCanUndoRedo=function(){};baseEditorsApi.prototype._saveCheck=function(){return false};baseEditorsApi.prototype._haveOtherChanges=function(){return false};baseEditorsApi.prototype._onSaveCallback=function(e){var t=this;var nState;if(false==e["saveLock"]){if(this.isLongAction()){this.CoAuthoringApi.onUnSaveLock=function(){if(t.isForceSaveOnUserSave&&t.IsUserSave)t.forceSaveButtonContinue=t.forceSave();
|
|
if(t.forceSaveForm)t.forceSaveForm();t.canSave=true;t.IsUserSave=false;t.lastSaveTime=null;if(t.canUnlockDocument)t._unlockDocument()};this.CoAuthoringApi.unSaveLock();return}this.sync_StartAction(c_oAscAsyncActionType.Information,c_oAscAsyncAction.Save);this.canUnlockDocument2=this.canUnlockDocument;if(this.canUnlockDocument&&this.canStartCoAuthoring)this.CoAuthoringApi.onStartCoAuthoring(true);this.canStartCoAuthoring=false;this.canUnlockDocument=false;this._onSaveCallbackInner()}else{nState=this.CoAuthoringApi.get_state();
|
|
if(AscCommon.ConnectionState.ClosedCoAuth===nState||AscCommon.ConnectionState.ClosedAll===nState){this.IsUserSave=false;this.canSave=true}else{if(!this.IsUserSave){this.canSave=true;if(this.canUnlockDocument)this._unlockDocument();return}setTimeout(function(){t.CoAuthoringApi.askSaveChanges(function(event){t._onSaveCallback(event)})},1E3)}}};baseEditorsApi.prototype._onSaveCallbackInner=function(){};baseEditorsApi.prototype._autoSave=function(){if(this.canSave&&!this.isViewMode&&(this.canUnlockDocument||
|
|
0!==this.autoSaveGap))if(this.canUnlockDocument){this.lastSaveTime=new Date;this.asc_Save(true,true)}else this._autoSaveInner()};baseEditorsApi.prototype._autoSaveInner=function(){};baseEditorsApi.prototype._prepareSave=function(isIdle){return true};baseEditorsApi.prototype._unlockDocument=function(isWaitAuth){if(isWaitAuth&&this.isDocumentLoadComplete&&!this.canSave){var errorMsg="Error: connection state changed waitAuth"+";this.canSave:"+this.canSave;this.CoAuthoringApi.sendChangesError(errorMsg)}if(this.isDocumentLoadComplete){this.canUnlockDocument=
|
|
true;this.canStartCoAuthoring=true;if(this.canSave){this.CoAuthoringApi.unLockDocument(false,true,AscCommon.History.GetDeleteIndex());this.startCollaborationEditing();AscCommon.History.RemovePointsByDeleteIndex();this._onUpdateDocumentCanSave();this._onUpdateDocumentCanUndoRedo();this.canStartCoAuthoring=false;this.canUnlockDocument=false}else;}else{this.startCollaborationEditing();this.CoAuthoringApi.unLockDocument(false,true)}};baseEditorsApi.prototype.asc_setAutoSaveGap=function(autoSaveGap){if(typeof autoSaveGap===
|
|
"number")this.autoSaveGap=autoSaveGap*1E3};baseEditorsApi.prototype.asc_coAuthoringChatSendMessage=function(message){this.CoAuthoringApi.sendMessage(message)};baseEditorsApi.prototype.asc_coAuthoringChatGetMessages=function(){this.CoAuthoringApi.getMessages()};baseEditorsApi.prototype.asc_coAuthoringGetUsers=function(){this.CoAuthoringApi.getUsers()};baseEditorsApi.prototype.asc_getEditorPermissions=function(){this._coAuthoringInit()};baseEditorsApi.prototype._onEndPermissions=function(){if(this.isOnLoadLicense){var oResult=
|
|
new AscCommon.asc_CAscEditorPermissions;if(null!==this.licenseResult){var type=this.licenseResult["type"];oResult.setLicenseType(type);oResult.setCanBranding(this.licenseResult["branding"]);oResult.setCustomization(this.licenseResult["customization"]);oResult.setIsLight(this.licenseResult["light"]);oResult.setLicenseMode(this.licenseResult["mode"]);oResult.setRights(this.licenseResult["rights"]);oResult.setBuildVersion(this.licenseResult["buildVersion"]);oResult.setBuildNumber(this.licenseResult["buildNumber"]);
|
|
if(undefined!==this.licenseResult["protectionSupport"])this.isProtectionSupport=this.licenseResult["protectionSupport"]}this.sendEvent("asc_onGetEditorPermissions",oResult)}};baseEditorsApi.prototype.goTo=function(options){options=options||this.DocInfo&&this.DocInfo.asc_getOptions();options=options&&options["action"];if(!options)return;switch(options["type"]){case "bookmark":case "internallink":this._goToBookmark(options["data"]);break;case "comment":this._goToComment(options["data"]);break}};baseEditorsApi.prototype._goToComment=
|
|
function(data){};baseEditorsApi.prototype._goToBookmark=function(data){};baseEditorsApi.prototype._coAuthoringInit=function(){var t=this;if(null==this.User||null==this.User.asc_getId()){this.User=new AscCommon.asc_CUser;this.User.setId("Unknown");this.User.setUserName("Unknown")}if(!(window["NATIVE_EDITOR_ENJINE"]||this.DocInfo&&this.DocInfo.get_OfflineApp())||window["IS_NATIVE_EDITOR"])this.CoAuthoringApi.set_url(null);this.CoAuthoringApi.onMessage=function(e,clear){t.sendEvent("asc_onCoAuthoringChatReceiveMessage",
|
|
e,clear)};this.CoAuthoringApi.onServerVersion=function(buildVersion,buildNumber){t.sendEvent("asc_onServerVersion",buildVersion,buildNumber)};this.CoAuthoringApi.onAuthParticipantsChanged=function(users,userId){t.sendEvent("asc_onAuthParticipantsChanged",users,userId)};this.CoAuthoringApi.onParticipantsChanged=function(users){t.sendEvent("asc_onParticipantsChanged",users)};this.CoAuthoringApi.onSpellCheckInit=function(e){t.SpellCheckUrl=e;t._coSpellCheckInit()};this.CoAuthoringApi.onSetIndexUser=
|
|
function(e){AscCommon.g_oIdCounter.Set_UserId(""+e)};this.CoAuthoringApi.onFirstLoadChangesEnd=function(){t.asyncServerIdEndLoaded()};this.CoAuthoringApi.onFirstConnect=function(){if(!t.isOnLoadLicense)t._onEndPermissions();else if(t.CoAuthoringApi.get_isAuth())t.CoAuthoringApi.auth(t.getViewMode(),undefined,t.isIdle());else t.asc_LoadDocument(undefined,true)};this.CoAuthoringApi.onLicense=function(res){t.licenseResult=res;t.isOnLoadLicense=true;t._onEndPermissions()};this.CoAuthoringApi.onLicenseChanged=
|
|
function(res){t.licenseResult=res;t.isOnLoadLicense=true;var oResult=new AscCommon.asc_CAscEditorPermissions;oResult.setLicenseType(res);t.sendEvent("asc_onLicenseChanged",oResult)};this.CoAuthoringApi.onWarning=function(code){t.sendEvent("asc_onError",code||c_oAscError.ID.Warning,c_oAscError.Level.NoCritical)};this.CoAuthoringApi.onMeta=function(data){var newDocumentTitle=data["title"];if(newDocumentTitle){t.documentTitle=newDocumentTitle;if(t.DocInfo)t.DocInfo.asc_putTitle(newDocumentTitle)}t.sendEvent("asc_onMeta",
|
|
data)};this.CoAuthoringApi.onSession=function(data){var code=data["code"];var reason=data["reason"];var interval=data["interval"];var extendSession=true;if(c_oCloseCode.sessionIdle==code){var idleTime=t.isIdle();if(idleTime>interval)extendSession=false;else t.CoAuthoringApi.extendSession(idleTime)}else if(c_oCloseCode.sessionAbsolute==code)extendSession=false;if(!extendSession)if(t.asc_Save(false,true)){var error=AscCommon.getDisconnectErrorCode(t.isDocumentLoadComplete,code);t.setViewModeDisconnect(AscCommon.getEnableDownloadByErrorCode(error));
|
|
t.disconnectOnSave={code:code,reason:reason}}else t.CoAuthoringApi.disconnect(code,reason)};this.CoAuthoringApi.onForceSave=function(data){if(AscCommon.c_oAscForceSaveTypes.Button===data.type)if(data.start){if(null===t.forceSaveButtonTimeout&&!t.forceSaveButtonContinue)t.sync_StartAction(c_oAscAsyncActionType.Information,c_oAscAsyncAction.ForceSaveButton);else clearInterval(t.forceSaveButtonTimeout);t.forceSaveButtonTimeout=setTimeout(function(){t.forceSaveButtonTimeout=null;if(t.forceSaveButtonContinue)t.sync_EndAction(c_oAscAsyncActionType.Information,
|
|
c_oAscAsyncAction.Save);else t.sync_EndAction(c_oAscAsyncActionType.Information,c_oAscAsyncAction.ForceSaveButton);t.forceSaveButtonContinue=false;t.sendEvent("asc_onError",Asc.c_oAscError.ID.ForceSaveButton,c_oAscError.Level.NoCritical)},Asc.c_nMaxConversionTime)}else if(data.refuse){if(t.forceSaveButtonContinue)t.sync_EndAction(c_oAscAsyncActionType.Information,c_oAscAsyncAction.Save);t.forceSaveButtonContinue=false}else{if(null!==t.forceSaveButtonTimeout){clearInterval(t.forceSaveButtonTimeout);
|
|
t.forceSaveButtonTimeout=null;if(t.forceSaveButtonContinue)t.sync_EndAction(c_oAscAsyncActionType.Information,c_oAscAsyncAction.Save);else t.sync_EndAction(c_oAscAsyncActionType.Information,c_oAscAsyncAction.ForceSaveButton);t.forceSaveButtonContinue=false;if(!data.success)t.sendEvent("asc_onError",Asc.c_oAscError.ID.ForceSaveButton,c_oAscError.Level.NoCritical)}}else if(AscCommon.CollaborativeEditing.Is_Fast()||null!==t.forceSaveTimeoutTimeout)if(data.start){if(null===t.forceSaveTimeoutTimeout)t.sync_StartAction(c_oAscAsyncActionType.Information,
|
|
c_oAscAsyncAction.ForceSaveTimeout);else clearInterval(t.forceSaveTimeoutTimeout);t.forceSaveTimeoutTimeout=setTimeout(function(){t.forceSaveTimeoutTimeout=null;t.sync_EndAction(c_oAscAsyncActionType.Information,c_oAscAsyncAction.ForceSaveTimeout);t.sendEvent("asc_onError",Asc.c_oAscError.ID.ForceSaveTimeout,c_oAscError.Level.NoCritical)},Asc.c_nMaxConversionTime)}else if(null!==t.forceSaveTimeoutTimeout){clearInterval(t.forceSaveTimeoutTimeout);t.forceSaveTimeoutTimeout=null;t.sync_EndAction(c_oAscAsyncActionType.Information,
|
|
c_oAscAsyncAction.ForceSaveTimeout);if(!data.success)t.sendEvent("asc_onError",Asc.c_oAscError.ID.ForceSaveTimeout,c_oAscError.Level.NoCritical)}};this.CoAuthoringApi.onExpiredToken=function(data){t.sync_EndAction(c_oAscAsyncActionType.BlockInteraction,c_oAscAsyncAction.Open);if(t.VersionHistory&&t.VersionHistory.isRequested){var error=AscCommon.getDisconnectErrorCode(t.isDocumentLoadComplete,data["code"]);var level=t.isDocumentLoadComplete?Asc.c_oAscError.Level.NoCritical:Asc.c_oAscError.Level.Critical;
|
|
t.sendEvent("asc_onError",error,level)}else{t.VersionHistory=null;t.sendEvent("asc_onExpiredToken")}};this.CoAuthoringApi.onHasForgotten=function(){var isDocumentCanSaveOld=t.isDocumentCanSave;var canSaveOld=t.canSave;t.isDocumentCanSave=true;t.canSave=false;t.sendEvent("asc_onDocumentModifiedChanged");t.isDocumentCanSave=isDocumentCanSaveOld;t.canSave=canSaveOld;t.sendEvent("asc_onDocumentModifiedChanged")};this.CoAuthoringApi.onDisconnect=function(e,opt_closeCode){if(AscCommon.ConnectionState.None===
|
|
t.CoAuthoringApi.get_state())t.asyncServerIdEndLoaded();if(null!=opt_closeCode){var error=AscCommon.getDisconnectErrorCode(t.isDocumentLoadComplete,opt_closeCode);var level=t.isDocumentLoadComplete?Asc.c_oAscError.Level.NoCritical:Asc.c_oAscError.Level.Critical;t.setViewModeDisconnect(AscCommon.getEnableDownloadByErrorCode(error));t.sendEvent("asc_onError",error,level)}};this.CoAuthoringApi.onDocumentOpen=function(inputWrap){if(AscCommon.EncryptionWorker.isNeedCrypt()){if(t.fCurCallback){t.fCurCallback(inputWrap?
|
|
inputWrap["data"]:undefined);t.fCurCallback=null}return}if(inputWrap["data"]){var input=inputWrap["data"];switch(input["type"]){case "reopen":case "open":switch(input["status"]){case "updateversion":case "ok":var urls=input["data"];AscCommon.g_oDocumentUrls.init(urls);if(null!=urls["Editor.bin"])if("ok"===input["status"]||t.getViewMode())t._onOpenCommand(urls["Editor.bin"]);else t.sendEvent("asc_onDocumentUpdateVersion",function(){if(t.isCoAuthoringEnable)t.asc_coAuthoringDisconnect();t._onOpenCommand(urls["Editor.bin"])});
|
|
else t.sendEvent("asc_onError",c_oAscError.ID.ConvertationOpenError,c_oAscError.Level.Critical);break;case "needparams":t._onNeedParams(input["data"]);break;case "needpassword":t._onNeedParams(null,true);break;case "err":t.sendEvent("asc_onError",AscCommon.mapAscServerErrorToAscError(parseInt(input["data"]),Asc.c_oAscError.ID.ConvertationOpenError),c_oAscError.Level.Critical);break}break;default:if(t.fCurCallback){t.fCurCallback(input);t.fCurCallback=null}else t.sendEvent("asc_onError",c_oAscError.ID.Unknown,
|
|
c_oAscError.Level.NoCritical);break}}};this.CoAuthoringApi.onStartCoAuthoring=function(isStartEvent,isWaitAuth){if(t.isViewMode)return;if(isStartEvent)t.startCollaborationEditing();else t._unlockDocument(isWaitAuth)};this.CoAuthoringApi.onEndCoAuthoring=function(isStartEvent){if(t.canUnlockDocument)t.canStartCoAuthoring=false;else t.endCollaborationEditing()};this._coAuthoringInitEnd();this.CoAuthoringApi.init(this.User,this.documentId,this.documentCallbackUrl,"fghhfgsjdgfjs",this.editorId,this.documentFormatSave,
|
|
this.DocInfo)};baseEditorsApi.prototype._coAuthoringInitEnd=function(){};baseEditorsApi.prototype.startCollaborationEditing=function(){};baseEditorsApi.prototype.endCollaborationEditing=function(){};baseEditorsApi.prototype._coAuthoringCheckEndOpenDocument=function(f){if(this.isPreOpenLocks){var context=this.CoAuthoringApi;var args=Array.prototype.slice.call(arguments,1);this.arrPreOpenLocksObjects.push(function(){f.apply(context,args)});return true}return false};baseEditorsApi.prototype._applyPreOpenLocks=
|
|
function(){this.isPreOpenLocks=false;for(var i=0;i<this.arrPreOpenLocksObjects.length;++i)this.arrPreOpenLocksObjects[i]();this.arrPreOpenLocksObjects=[]};baseEditorsApi.prototype.asc_coAuthoringDisconnect=function(){this.CoAuthoringApi.disconnect();this.isCoAuthoringEnable=false;this.asc_setViewMode(true)};baseEditorsApi.prototype.asc_stopSaving=function(){this.incrementCounterLongAction()};baseEditorsApi.prototype.asc_continueSaving=function(){this.decrementCounterLongAction()};baseEditorsApi.prototype.asc_SpellCheckDisconnect=
|
|
function(){if(!this.SpellCheckApi)return;this.SpellCheckApi.disconnect();this.isSpellCheckEnable=false;this._spellCheckDisconnect()};baseEditorsApi.prototype._spellCheckRestart=function(word){};baseEditorsApi.prototype._spellCheckDisconnect=function(){};baseEditorsApi.prototype._coSpellCheckInit=function(){var t=this;if(!this.SpellCheckApi)return;if(window["AscDesktopEditor"]){window["asc_nativeOnSpellCheck"]=function(response){var _editor=window["Asc"]["editor"]?window["Asc"]["editor"]:window.editor;
|
|
if(_editor.SpellCheckApi){if("clear"===response){_editor.SpellCheckApi.isRestart=false;return}if(_editor.SpellCheckApi.isRestart===true)return;_editor.SpellCheckApi.onSpellCheck(response)}};this.SpellCheckApi.spellCheck=function(spellData){window["AscDesktopEditor"]["SpellCheck"](JSON.stringify(spellData))};this.SpellCheckApi.disconnect=function(){};this.SpellCheckApi.restart=function(){this.isRestart=true;window["AscDesktopEditor"]["SpellCheck"]("clear")};if(window["AscDesktopEditor"]["IsLocalFile"]&&
|
|
!window["AscDesktopEditor"]["IsLocalFile"]())this.sendEvent("asc_onSpellCheckInit",["1026","1027","1029","1030","1031","1032","1033","1036","1038","1040","1042","1043","1044","1045","1046","1048","1049","1050","1051","1053","1055","1057","1058","1060","1062","1063","1066","1068","1069","1087","1104","1110","1134","2051","2055","2057","2068","2070","3079","3081","3082","4105","7177","9242","10266","2067"])}else{if(!this.SpellCheckUrl&&!window["NATIVE_EDITOR_ENJINE"]){this.SpellCheckApi={};this.SpellCheckApi.log=
|
|
false;this.SpellCheckApi.worker=new CSpellchecker({api:this,enginePath:"../../../../sdkjs/common/spell/spell",dictionariesPath:"./../../../../dictionaries"});this.SpellCheckApi.checkDictionary=function(lang){if(this.log)console.log("checkDictionary: "+lang+": "+this.worker.checkDictionary(lang));return this.worker.checkDictionary(lang)};this.SpellCheckApi.spellCheck=function(spellData){if(this.log){console.log("spellCheck:");console.log(spellData)}this.worker.command(spellData)};this.SpellCheckApi.worker.oncommand=
|
|
function(spellData){if(t.SpellCheckApi.log){console.log("onSpellCheck:");console.log(spellData)}t.SpellCheck_CallBack(spellData)};this.SpellCheckApi.disconnect=function(){};this.SpellCheckApi.restart=function(){this.worker.restart()};this.sendEvent("asc_onSpellCheckInit",this.SpellCheckApi.worker.getLanguages());return}if(this.SpellCheckUrl&&this.isSpellCheckEnable)this.SpellCheckApi.set_url(this.SpellCheckUrl)}this.SpellCheckApi.onInit=function(e){t.sendEvent("asc_onSpellCheckInit",e)};this.SpellCheckApi.onSpellCheck=
|
|
function(e){t.SpellCheck_CallBack(e)};this.SpellCheckApi.init(this.documentId)};baseEditorsApi.prototype.asc_spellCheckAddToDictionary=function(SpellCheckProperty){var word=typeof SpellCheckProperty==="string"?SpellCheckProperty:SpellCheckProperty.Word;if(window["AscDesktopEditor"]){window["AscDesktopEditor"]["SpellCheck"]('{"type":"add","usrWords":["'+word+'"]}');this._spellCheckRestart(word)}};baseEditorsApi.prototype.asc_spellCheckClearDictionary=function(){};baseEditorsApi.prototype.asc_restartCheckSpelling=
|
|
function(){};baseEditorsApi.prototype._waitPrint=function(actionType,options){return false};baseEditorsApi.prototype._printDesktop=function(){};baseEditorsApi.prototype.endInsertDocumentUrls=function(){};baseEditorsApi.prototype._downloadAs=function(){};baseEditorsApi.prototype.downloadAs=function(actionType,options){var isCloudCrypto=!!(window["AscDesktopEditor"]&&0<window["AscDesktopEditor"]["CryptoMode"]);if(isCloudCrypto)window.isCloudCryptoDownloadAs=true;if(this._waitPrint(actionType,options))return;
|
|
if(actionType)this.sync_StartAction(c_oAscAsyncActionType.BlockInteraction,actionType);var downloadType;if(options.isDownloadEvent)downloadType=options.oDocumentMailMerge?DownloadType.MailMerge:actionType===c_oAscAsyncAction.Print?DownloadType.Print:DownloadType.Download;else downloadType=DownloadType.None;var isNoBase64=typeof ArrayBuffer!=="undefined"&&!isCloudCrypto;var dataContainer={data:null,part:null,index:0,count:0};var oAdditionalData={};oAdditionalData["c"]="save";oAdditionalData["id"]=
|
|
this.documentId;oAdditionalData["userid"]=this.documentUserId;oAdditionalData["tokenSession"]=this.CoAuthoringApi.get_jwt();oAdditionalData["outputformat"]=options.fileType;oAdditionalData["title"]=AscCommon.changeFileExtention(this.documentTitle,AscCommon.getExtentionByFormat(options.fileType),Asc.c_nMaxDownloadTitleLen);oAdditionalData["nobase64"]=isNoBase64;if(DownloadType.Print===downloadType){oAdditionalData["withoutPassword"]=true;oAdditionalData["inline"]=1}if(this._downloadAs(actionType,options,
|
|
oAdditionalData,dataContainer))return;var t=this;this.fCurCallback=null;if(!options.callback)this.fCurCallback=function(input,status){var error=403===status?c_oAscError.ID.AccessDeny:c_oAscError.ID.Unknown;if(null!=input&&oAdditionalData["c"]===input["type"])if("ok"===input["status"]){var url=input["data"];if(url){error=c_oAscError.ID.No;t.processSavedFile(url,downloadType)}}else error=AscCommon.mapAscServerErrorToAscError(parseInt(input["data"]),options&&options.isGetTextFromUrl?AscCommon.c_oAscAdvancedOptionsAction.Open:
|
|
AscCommon.c_oAscAdvancedOptionsAction.Save);if(c_oAscError.ID.No!==error){t.endInsertDocumentUrls();t.sendEvent("asc_onError",options.errorDirect||error,c_oAscError.Level.NoCritical)}if(actionType)t.sync_EndAction(c_oAscAsyncActionType.BlockInteraction,actionType)};if(window.parent.APP.printPdf&&(DownloadType.Print===downloadType||!downloadType)){var _cb=options.callback||this.fCurCallback;window.parent.APP.printPdf(dataContainer,function(obj){if(!obj){t.sync_EndAction(c_oAscAsyncActionType.BlockInteraction,
|
|
actionType);return}_cb(obj)});return}AscCommon.saveWithParts(function(fCallback1,oAdditionalData1,dataContainer1){AscCommon.sendCommand(t,fCallback1,oAdditionalData1,dataContainer1)},this.fCurCallback,options.callback,oAdditionalData,dataContainer)};baseEditorsApi.prototype.asc_getChartPreviews=function(chartType){return this.chartPreviewManager.getChartPreviews(chartType)};baseEditorsApi.prototype.asc_getTextArtPreviews=function(){return this.textArtPreviewManager.getWordArtStyles()};baseEditorsApi.prototype.asc_onOpenChartFrame=
|
|
function(){if(this.isMobileVersion)return;this.isOpenedChartFrame=true};baseEditorsApi.prototype.asc_onCloseChartFrame=function(){this.isOpenedChartFrame=false};baseEditorsApi.prototype.asc_setInterfaceDrawImagePlaceShape=function(elementId){this.shapeElementId=elementId};baseEditorsApi.prototype.asc_getPropertyEditorShapes=function(){return[AscCommon.g_oAutoShapesGroups,AscCommon.g_oAutoShapesTypes]};baseEditorsApi.prototype.asc_getPropertyEditorTextArts=function(){return this.textArtPreviewManager.getWordArtPreviews()};
|
|
baseEditorsApi.prototype._addImageUrl=function(){};baseEditorsApi.prototype.asc_addImageCallback=function(res){};baseEditorsApi.prototype.asc_addImage=function(obj){var t=this;window.parent.APP.AddImage(function(res){console.log("AddImageCallback");t.asc_addImageCallback(res);t._addImageUrl([res.url],obj)},function(){t.sendEvent("asc_onError",error,c_oAscError.Level.NoCritical)});return;var t=this;if(this.WordControl)this.WordControl.m_bIsMouseLock=false;AscCommon.ShowImageFileDialog(this.documentId,
|
|
this.documentUserId,this.CoAuthoringApi.get_jwt(),function(error,files){t._uploadCallback(error,files,obj)},function(error){if(c_oAscError.ID.No!==error)t.sendEvent("asc_onError",error,c_oAscError.Level.NoCritical);t.sync_StartAction(c_oAscAsyncActionType.BlockInteraction,c_oAscAsyncAction.UploadImage)})};baseEditorsApi.prototype._uploadCallback=function(error,files,obj){var t=this;if(c_oAscError.ID.No!==error)this.sendEvent("asc_onError",error,c_oAscError.Level.NoCritical);else{this.sync_StartAction(c_oAscAsyncActionType.BlockInteraction,
|
|
c_oAscAsyncAction.UploadImage);AscCommon.UploadImageFiles(files,this.documentId,this.documentUserId,this.CoAuthoringApi.get_jwt(),function(error,urls){if(c_oAscError.ID.No!==error)t.sendEvent("asc_onError",error,c_oAscError.Level.NoCritical);else t._addImageUrl(urls,obj);t.sync_EndAction(c_oAscAsyncActionType.BlockInteraction,c_oAscAsyncAction.UploadImage)})}};baseEditorsApi.prototype.asc_replaceLoadImageCallback=function(fCallback){};baseEditorsApi.prototype.asc_loadLocalImageAndAction=function(sLocalImage,
|
|
fCallback){var _loadedUrl=this.ImageLoader.LoadImage(AscCommon.getFullImageSrc2(sLocalImage),1);if(_loadedUrl!=null)fCallback(_loadedUrl);else this.asc_replaceLoadImageCallback(fCallback)};baseEditorsApi.prototype.asc_checkImageUrlAndAction=function(sImageUrl,fCallback){var oThis=this;this.sync_StartAction(c_oAscAsyncActionType.BlockInteraction,c_oAscAsyncAction.UploadImage);var fCallback2=function(){oThis.sync_EndAction(c_oAscAsyncActionType.BlockInteraction,c_oAscAsyncAction.UploadImage);fCallback.apply(oThis,
|
|
arguments)};var sLocalImage=AscCommon.g_oDocumentUrls.getImageLocal(sImageUrl);if(sLocalImage){this.asc_loadLocalImageAndAction(sLocalImage,fCallback2);return}AscCommon.sendImgUrls(oThis,[sImageUrl],function(data){if(data[0]&&data[0].path!=null&&data[0].url!=="error")oThis.asc_loadLocalImageAndAction(AscCommon.g_oDocumentUrls.imagePath2Local(data[0].path),fCallback2)},this.editorId===c_oEditorId.Spreadsheet)};baseEditorsApi.prototype.asc_addOleObject=function(oPluginData){if(this.isViewMode)return;
|
|
var oThis=this;var sImgSrc=oPluginData["imgSrc"];var nWidthPix=oPluginData["widthPix"];var nHeightPix=oPluginData["heightPix"];var fWidth=oPluginData["width"];var fHeight=oPluginData["height"];var sData=oPluginData["data"];var sGuid=oPluginData["guid"];if(typeof sImgSrc==="string"&&sImgSrc.length>0&&typeof sData==="string"&&typeof sGuid==="string"&&sGuid.length>0&&AscFormat.isRealNumber(nWidthPix)&&AscFormat.isRealNumber(nHeightPix)&&AscFormat.isRealNumber(fWidth)&&AscFormat.isRealNumber(fHeight))this.asc_checkImageUrlAndAction(sImgSrc,
|
|
function(oImage){oThis.asc_addOleObjectAction(AscCommon.g_oDocumentUrls.getImageLocal(oImage.src),sData,sGuid,fWidth,fHeight,nWidthPix,nHeightPix)})};baseEditorsApi.prototype.asc_editOleObject=function(oPluginData){if(this.isViewMode)return;var oThis=this;var bResize=oPluginData["resize"];var sImgSrc=oPluginData["imgSrc"];var oOleObject=AscCommon.g_oTableId.Get_ById(oPluginData["objectId"]);var nWidthPix=oPluginData["widthPix"];var nHeightPix=oPluginData["heightPix"];var sData=oPluginData["data"];
|
|
if(typeof sImgSrc==="string"&&sImgSrc.length>0&&typeof sData==="string"&&oOleObject&&AscFormat.isRealNumber(nWidthPix)&&AscFormat.isRealNumber(nHeightPix))this.asc_checkImageUrlAndAction(sImgSrc,function(oImage){oThis.asc_editOleObjectAction(bResize,oOleObject,AscCommon.g_oDocumentUrls.getImageLocal(oImage.src),sData,nWidthPix,nHeightPix)})};baseEditorsApi.prototype.asc_addOleObjectAction=function(sLocalUrl,sData,sApplicationId,fWidth,fHeight){};baseEditorsApi.prototype.asc_editOleObjectAction=function(bResize,
|
|
oOleObject,sImageUrl,sData,nPixWidth,nPixHeight){};baseEditorsApi.prototype.asc_selectSearchingResults=function(value){if(this.selectSearchingResults===value)return;this.selectSearchingResults=value;this._selectSearchingResults(value)};baseEditorsApi.prototype.asc_startEditCurrentOleObject=function(){};baseEditorsApi.prototype.asc_canEditCrop=function(){};baseEditorsApi.prototype.asc_startEditCrop=function(){};baseEditorsApi.prototype.asc_endEditCrop=function(){};baseEditorsApi.prototype.asc_cropFit=
|
|
function(){};baseEditorsApi.prototype.asc_cropFill=function(){};baseEditorsApi.prototype.asc_RemoveAllComments=function(isMine,isCurrent){};baseEditorsApi.prototype.asc_showRevision=function(newObj){if(!newObj.docId)return;if(this.isCoAuthoringEnable)this.asc_coAuthoringDisconnect();if(this.SpellCheckApi&&this.SpellCheckApi.restart)this.SpellCheckApi.restart();var bUpdate=true;if(null===this.VersionHistory)this.VersionHistory=new window["Asc"].asc_CVersionHistory(newObj);else bUpdate=this.VersionHistory.update(newObj);
|
|
if(bUpdate){this.asc_CloseFile();this.DocInfo.put_Id(this.VersionHistory.docId);this.DocInfo.put_Url(this.VersionHistory.url);this.documentUrlChanges=this.VersionHistory.urlChanges;this.asc_setDocInfo(this.DocInfo);this.asc_LoadDocument(this.VersionHistory)}else if(this.VersionHistory.currentChangeId<newObj.currentChangeId){this.isApplyChangesOnVersionHistory=true;this.sync_StartAction(c_oAscAsyncActionType.BlockInteraction,c_oAscAsyncAction.Open);AscCommon.CollaborativeEditing.Clear_CollaborativeMarks();
|
|
editor.VersionHistory.applyChanges(editor);AscCommon.CollaborativeEditing.Apply_Changes()}};baseEditorsApi.prototype.asc_undoAllChanges=function(){};baseEditorsApi.prototype.asc_getAdvancedOptions=function(){var cp={"codepage":AscCommon.c_oAscCodePageUtf8,"encodings":AscCommon.getEncodingParams()};return new AscCommon.asc_CAdvancedOptions(cp)};baseEditorsApi.prototype.asc_Print=function(options){if(window["AscDesktopEditor"]&&this._printDesktop(options))return;if(!options)options=new Asc.asc_CDownloadOptions;
|
|
options.fileType=Asc.c_oAscFileType.PDF;this.downloadAs(c_oAscAsyncAction.Print,options)};baseEditorsApi.prototype.asc_Save=function(isAutoSave,isIdle){var t=this;var res=false;if(this.canSave&&this._saveCheck()){this.IsUserSave=!isAutoSave;if(this.asc_isDocumentCanSave()||AscCommon.History.Have_Changes()||this._haveOtherChanges()||this.canUnlockDocument||this.forceSaveUndoRequest){if(this._prepareSave(isIdle)){this.canSave=false;this.CoAuthoringApi.askSaveChanges(function(e){t._onSaveCallback(e)});
|
|
res=true}}else if(this.isForceSaveOnUserSave&&this.IsUserSave)this.forceSave()}return res};baseEditorsApi.prototype.asc_isDocumentCanSave=function(){return this.isDocumentCanSave};baseEditorsApi.prototype.asc_getCanUndo=function(){return AscCommon.History.Can_Undo()};baseEditorsApi.prototype.asc_getCanRedo=function(){return AscCommon.History.Can_Redo()};baseEditorsApi.prototype.asc_isOffline=function(){return window.location.protocol.indexOf("file")==0?true:false};baseEditorsApi.prototype.asc_getUrlType=
|
|
function(url){return AscCommon.getUrlType(url)};baseEditorsApi.prototype.openDocument=function(file){};baseEditorsApi.prototype.openDocumentFromZip=function(){};baseEditorsApi.prototype.onEndLoadDocInfo=function(){if(this.isLoadFullApi&&this.DocInfo){if(this.DocInfo.get_OfflineApp())this._openChartOrLocalDocument();this.onEndLoadFile(null)}};baseEditorsApi.prototype.onEndLoadFile=function(result){if(result)this.openResult=result;if(this.isLoadFullApi&&this.DocInfo&&this.openResult&&this.isLoadFonts){this.openDocument(this.openResult);
|
|
this.sendEvent("asc_onDocumentPassword",""!==this.currentPassword);this.openResult=null}};baseEditorsApi.prototype._onEndLoadSdk=function(){AscCommon.g_oTableId.init();var t=this;AscCommon.InitDragAndDrop(this.HtmlElement,function(error,files){t._uploadCallback(error,files)});AscFonts.g_fontApplication.Init();this.FontLoader=AscCommon.g_font_loader;this.ImageLoader=AscCommon.g_image_loader;this.FontLoader.put_Api(this);this.ImageLoader.put_Api(this);this.FontLoader.SetStandartFonts();this.chartPreviewManager=
|
|
new AscCommon.ChartPreviewManager;this.textArtPreviewManager=new AscCommon.TextArtPreviewManager;AscFormat.initStyleManager();if(null!==this.tmpFocus)this.asc_enableKeyEvents(this.tmpFocus);this.pluginsManager=Asc.createPluginsManager(this);this.macros=new AscCommon.CDocumentMacros;this._loadSdkImages();if(AscFonts.FontPickerByCharacter&&this.documentTitle)AscFonts.FontPickerByCharacter.getFontsByString(this.documentTitle)};baseEditorsApi.prototype._loadSdkImages=function(){};baseEditorsApi.prototype.sendStandartTextures=
|
|
function(){if(this.isSendStandartTextures)return;this.isSendStandartTextures=true;var _count=AscCommon.g_oUserTexturePresets.length;var arr=new Array(_count);var arrToDownload=[];for(var i=0;i<_count;++i){arr[i]=new AscCommon.asc_CTexture;arr[i].Id=i;arr[i].Image=AscCommon.g_oUserTexturePresets[i];arrToDownload.push(AscCommon.g_oUserTexturePresets[i])}if(this.editorId===c_oEditorId.Word)arrToDownload.push(AscCommon.g_sWordPlaceholderImage);this.ImageLoader.LoadImagesWithCallback(arrToDownload,function(){},
|
|
0);this.sendEvent("asc_onInitStandartTextures",arr)};baseEditorsApi.prototype.sendMathToMenu=function(){if(this.MathMenuLoad)return;var _MathPainter=new AscFormat.CMathPainter(this);_MathPainter.Generate();this.MathMenuLoad=true};baseEditorsApi.prototype.sendMathTypesToMenu=function(_math){this.sendEvent("asc_onMathTypes",_math)};baseEditorsApi.prototype.asyncFontEndLoaded_MathDraw=function(Obj){this.sync_EndAction(c_oAscAsyncActionType.Information,c_oAscAsyncAction.LoadFont);Obj.Generate2()};baseEditorsApi.prototype.getCurrentColorScheme=
|
|
function(){var oTheme=this.getCurrentTheme();return oTheme&&oTheme.themeElements&&oTheme.themeElements.clrScheme};baseEditorsApi.prototype.asc_GetCurrentColorSchemeName=function(){var oClrScheme=this.getCurrentColorScheme();if(oClrScheme&&typeof oClrScheme.name==="string")return oClrScheme.name;return""};baseEditorsApi.prototype.asc_GetCurrentColorSchemeIndex=function(){var oTheme=this.getCurrentTheme();if(!oTheme)return-1;return this.getColorSchemes(oTheme).index};baseEditorsApi.prototype.getCurrentTheme=
|
|
function(){return null};baseEditorsApi.prototype.getColorSchemes=function(theme){var result=AscCommon.g_oUserColorScheme.slice();var asc_color_scheme,_scheme,i;var aCustomSchemes=theme.getExtraAscColorSchemes();_scheme=theme.themeElements&&theme.themeElements.clrScheme;var nIndex=-1;if(_scheme){asc_color_scheme=AscCommon.getAscColorScheme(_scheme,theme);nIndex=AscCommon.getIndexColorSchemeInArray(result,asc_color_scheme);if(nIndex===-1)aCustomSchemes.push(asc_color_scheme);aCustomSchemes.sort(function(a,
|
|
b){if(a.name===""||a.name===null)return-1;if(b.name===""||b.name===null)return 1;if(a.name>b.name)return 1;if(a.name<b.name)return-1;return 0});result=result.concat(aCustomSchemes);if(nIndex===-1)for(i=0;i<result.length;++i)if(result[i]===asc_color_scheme){nIndex=i;break}}return{schemes:result,index:nIndex}};baseEditorsApi.prototype.getColorSchemeByIdx=function(nIdx){var scheme=AscCommon.getColorSchemeByIdx(nIdx);if(!scheme){var oSchemes=this.getColorSchemes(this.getCurrentTheme());var oAscScheme=
|
|
oSchemes.schemes[nIdx];scheme=oAscScheme&&oAscScheme.scheme}return scheme};baseEditorsApi.prototype.sendColorThemes=function(theme){this.sendEvent("asc_onSendThemeColorSchemes",this.getColorSchemes(theme).schemes)};baseEditorsApi.prototype.showVideoControl=function(sMediaName,extX,extY,transform){if(!window["AscDesktopEditor"]||!window["AscDesktopEditor"]["MediaStart"])return;switch(this.editorId){case c_oEditorId.Word:{break}case c_oEditorId.Presentation:{var manager=this.WordControl.DemonstrationManager;
|
|
if(!manager.Mode){var pos=this.WordControl.m_oDrawingDocument.ConvertCoordsToCursorWR(0,0,this.WordControl.m_oLogicDocument.CurPage,null,true);pos.X+=this.WordControl.X;pos.Y+=this.WordControl.Y;if(!transform)window["AscDesktopEditor"]["MediaStart"](sMediaName,pos.X,pos.Y,extX,extY,this.WordControl.m_nZoomValue/100);else window["AscDesktopEditor"]["MediaStart"](sMediaName,pos.X,pos.Y,extX,extY,this.WordControl.m_nZoomValue/100,transform.sx,transform.shy,transform.shx,transform.sy,transform.tx,transform.ty)}else{var transition=
|
|
this.WordControl.DemonstrationManager.Transition;if(manager.SlideNum>=0&&manager.SlideNum<manager.SlidesCount&&(!transition||!transition.IsPlaying())){var _w=transition.Rect.w;var _h=transition.Rect.h;var _w_mm=manager.HtmlPage.m_oLogicDocument.GetWidthMM();var _h_mm=manager.HtmlPage.m_oLogicDocument.GetHeightMM();var _x=transition.Rect.x;if(this.isReporterMode)_x+=this.WordControl.m_oMainParent.AbsolutePosition.L*AscCommon.g_dKoef_mm_to_pix>>0;var _zoom=_w/(_w_mm*AscCommon.g_dKoef_mm_to_pix);if(!transform)window["AscDesktopEditor"]["MediaStart"](sMediaName,
|
|
_x,transition.Rect.y,extX,extY,_zoom);else window["AscDesktopEditor"]["MediaStart"](sMediaName,_x,transition.Rect.y,extX,extY,_zoom,transform.sx,transform.shy,transform.shx,transform.sy,transform.tx,transform.ty)}}break}case c_oEditorId.Spreadsheet:{break}}};baseEditorsApi.prototype.hideVideoControl=function(){if(!window["AscDesktopEditor"]||!window["AscDesktopEditor"]["MediaEnd"])return;window["AscDesktopEditor"]["MediaEnd"]()};baseEditorsApi.prototype._checkLicenseApiFunctions=function(){return this.licenseResult&&
|
|
true===this.licenseResult["plugins"]};baseEditorsApi.prototype.asc_pluginsRegister=function(basePath,plugins){if(null!=this.pluginsManager)this.pluginsManager.register(basePath,plugins)};baseEditorsApi.prototype.asc_pluginRun=function(guid,variation,pluginData){if(null!=this.pluginsManager)this.pluginsManager.run(guid,variation,pluginData)};baseEditorsApi.prototype.asc_pluginStop=function(guid){if(null!=this.pluginsManager)this.pluginsManager.close(guid)};baseEditorsApi.prototype.asc_pluginResize=
|
|
function(pluginData){if(null!=this.pluginsManager)this.pluginsManager.runResize(pluginData)};baseEditorsApi.prototype.asc_pluginButtonClick=function(id){if(null!=this.pluginsManager)this.pluginsManager.buttonClick(id)};baseEditorsApi.prototype.asc_pluginEnableMouseEvents=function(isEnable){if(!this.pluginsManager)return;this.pluginsManager.onEnableMouseEvents(isEnable)};baseEditorsApi.prototype.isEnabledDropTarget=function(){return true};baseEditorsApi.prototype.beginInlineDropTarget=function(e){};
|
|
baseEditorsApi.prototype.endInlineDropTarget=function(e){};baseEditorsApi.prototype["asc_insertSymbol"]=function(familyName,code,pr){var arrCharCodes=[code];AscFonts.FontPickerByCharacter.checkTextLight(arrCharCodes,true);var fonts=[new AscFonts.CFont(AscFonts.g_fontApplication.GetFontInfoName(familyName),0,"",0,null)];AscFonts.FontPickerByCharacter.extendFonts(fonts);this.asyncMethodCallback=function(){switch(this.editorId){case c_oEditorId.Word:case c_oEditorId.Presentation:{if(pr&&c_oEditorId.Word===
|
|
this.editorId)this.WordControl.m_oLogicDocument.AddSpecialSymbol(pr);else{var textPr=new AscCommonWord.CTextPr;textPr.SetFontFamily(familyName);this.WordControl.m_oLogicDocument.AddTextWithPr(new AscCommon.CUnicodeStringEmulator(arrCharCodes),textPr,true)}break}case c_oEditorId.Spreadsheet:{this.AddTextWithPr(familyName,arrCharCodes);break}}};if(false===AscCommon.g_font_loader.CheckFontsNeedLoading(fonts)){this.asyncMethodCallback();this.asyncMethodCallback=undefined;return}AscCommon.g_font_loader.LoadDocumentFonts2(fonts)};
|
|
baseEditorsApi.prototype["asc_registerPlaceholderCallback"]=function(type,callback){if(this.WordControl&&this.WordControl.m_oDrawingDocument&&this.WordControl.m_oDrawingDocument.placeholders)this.WordControl.m_oDrawingDocument.placeholders.registerCallback(type,callback)};baseEditorsApi.prototype["asc_uncheckPlaceholders"]=function(){if(this.WordControl&&this.WordControl.m_oDrawingDocument&&this.WordControl.m_oDrawingDocument.placeholders)this.WordControl.m_oDrawingDocument.placeholders.closeAllActive()};
|
|
baseEditorsApi.prototype.asc_nativeInitBuilder=function(){AscCommon.History.TurnOff();this.asc_setDocInfo(new Asc.asc_CDocInfo)};baseEditorsApi.prototype.asc_SetSilentMode=function(){};baseEditorsApi.prototype.asc_canPaste=function(){return false};baseEditorsApi.prototype.asc_Recalculate=function(){};baseEditorsApi.prototype["asc_nativeCheckPdfRenderer"]=function(_memory1,_memory2){if(true){_memory1.Copy=_memory1["Copy"];_memory1.ClearNoAttack=_memory1["ClearNoAttack"];_memory1.WriteByte=_memory1["WriteByte"];
|
|
_memory1.WriteBool=_memory1["WriteBool"];_memory1.WriteLong=_memory1["WriteLong"];_memory1.WriteDouble=_memory1["WriteDouble"];_memory1.WriteString=_memory1["WriteString"];_memory1.WriteString2=_memory1["WriteString2"];_memory2.Copy=_memory1["Copy"];_memory2.ClearNoAttack=_memory1["ClearNoAttack"];_memory2.WriteByte=_memory1["WriteByte"];_memory2.WriteBool=_memory1["WriteBool"];_memory2.WriteLong=_memory1["WriteLong"];_memory2.WriteDouble=_memory1["WriteDouble"];_memory2.WriteString=_memory1["WriteString"];
|
|
_memory2.WriteString2=_memory1["WriteString2"]}var _printer=new AscCommon.CDocumentRenderer;_printer.Memory=_memory1;_printer.VectorMemoryForPrint=_memory2;return _printer};baseEditorsApi.prototype.Begin_CompositeInput=function(){};baseEditorsApi.prototype.Add_CompositeText=function(nCharCode){};baseEditorsApi.prototype.Remove_CompositeText=function(nCount){};baseEditorsApi.prototype.Replace_CompositeText=function(arrCharCodes){};baseEditorsApi.prototype.Set_CursorPosInCompositeText=function(nPos){};
|
|
baseEditorsApi.prototype.Get_CursorPosInCompositeText=function(){};baseEditorsApi.prototype.End_CompositeInput=function(){};baseEditorsApi.prototype.Get_MaxCursorPosInCompositeText=function(){};baseEditorsApi.prototype.Input_UpdatePos=function(){};baseEditorsApi.prototype["setInputParams"]=function(_obj){window["AscInputMethod"]=window["AscInputMethod"]||{};for(var _prop in _obj)window["AscInputMethod"][_prop]=_obj[_prop]};baseEditorsApi.prototype.asc_addSignatureLine=function(oPr,Width,Height,sImgUrl){};
|
|
baseEditorsApi.prototype.asc_getAllSignatures=function(){return[]};baseEditorsApi.prototype.asc_CallSignatureDblClickEvent=function(sGuid){};baseEditorsApi.prototype.asc_AddSignatureLine2=function(_obj){var _w=50;var _h=50;var _w_pix=_w*AscCommon.g_dKoef_mm_to_pix>>0;var _h_pix=_h*AscCommon.g_dKoef_mm_to_pix>>0;var _canvas=document.createElement("canvas");_canvas.width=_w_pix;_canvas.height=_h_pix;var _ctx=_canvas.getContext("2d");_ctx.fillStyle="#000000";_ctx.strokeStyle="#000000";_ctx.font="10pt 'Courier New'";
|
|
_ctx.lineWidth=3;_ctx.beginPath();var _y_line=(_h_pix>>1)+.5;_ctx.moveTo(0,_y_line);_ctx.lineTo(_w_pix,_y_line);_ctx.stroke();_ctx.beginPath();_ctx.lineWidth=2;_y_line-=10;_ctx.moveTo(10,_y_line);_ctx.lineTo(25,_y_line-10);_ctx.lineTo(10,_y_line-20);_ctx.stroke();_ctx.beginPath();_ctx.fillText(_obj.asc_getSigner1(),10,_y_line+25);_ctx.fillText(_obj.asc_getSigner2(),10,_y_line+40);_ctx.fillText(_obj.asc_getEmail(),10,_y_line+55);var _url=_canvas.toDataURL("image/png");_canvas=null;var _args=[];this.ImageLoader.LoadImagesWithCallback([_url],
|
|
function(){this.asc_addSignatureLine(_obj,_w,_h,_url)},_args)};baseEditorsApi.prototype.asc_getRequestSignatures=function(){var _sigs=this.asc_getAllSignatures();var _sigs_ret=[];var _found;for(var i=_sigs.length-1;i>=0;i--){var _sig=_sigs[i];_found=false;for(var j=this.signatures.length-1;j>=0;j--)if(this.signatures[j].guid==_sig.id){_found=true;break}if(!_found){var _add_sig=new AscCommon.asc_CSignatureLine;_add_sig.guid=_sig.id;_add_sig.signer1=_sig.signer;_add_sig.signer2=_sig.signer2;_add_sig.email=
|
|
_sig.email;_add_sig.showDate=_sig.showDate;_add_sig.instructions=_sig.instructions;_sigs_ret.push(_add_sig)}}return _sigs_ret};baseEditorsApi.prototype.asc_Sign=function(id,guid,url1,url2){if(window["AscDesktopEditor"]&&!this.isRestrictionView())window["AscDesktopEditor"]["Sign"](id,guid,url1,url2)};baseEditorsApi.prototype.asc_RequestSign=function(guid){var signGuid=guid=="unvisibleAdd"?AscCommon.CreateGUID():guid;if(window["asc_LocalRequestSign"])window["asc_LocalRequestSign"](signGuid)};baseEditorsApi.prototype.asc_ViewCertificate=
|
|
function(id){if(window["AscDesktopEditor"])window["AscDesktopEditor"]["ViewCertificate"](parseInt(""+id))};baseEditorsApi.prototype.asc_SelectCertificate=function(){if(window["AscDesktopEditor"])window["AscDesktopEditor"]["SelectCertificate"]()};baseEditorsApi.prototype.asc_GetDefaultCertificate=function(){if(window["AscDesktopEditor"])window["AscDesktopEditor"]["GetDefaultCertificate"]()};baseEditorsApi.prototype.asc_getSignatures=function(){return this.signatures};baseEditorsApi.prototype.asc_RemoveSignature=
|
|
function(guid){if(window["AscDesktopEditor"])window["AscDesktopEditor"]["RemoveSignature"](guid)};baseEditorsApi.prototype.asc_RemoveAllSignatures=function(){if(window["AscDesktopEditor"])window["AscDesktopEditor"]["RemoveAllSignatures"]()};baseEditorsApi.prototype.asc_isSignaturesSupport=function(){if(window["AscDesktopEditor"]&&window["AscDesktopEditor"]["IsSignaturesSupport"])return window["AscDesktopEditor"]["IsSignaturesSupport"]();return false};baseEditorsApi.prototype.asc_isProtectionSupport=
|
|
function(){if(window["AscDesktopEditor"]&&window["AscDesktopEditor"]["IsProtectionSupport"])return window["AscDesktopEditor"]["IsProtectionSupport"]();return!(this.DocInfo&&this.DocInfo.get_OfflineApp())&&this.isProtectionSupport};baseEditorsApi.prototype.asc_gotoSignature=function(guid){if(window["AscDesktopEditor"]&&window["asc_IsVisibleSign"]&&window["asc_IsVisibleSign"](guid))this.gotoSignatureInternal(guid)};baseEditorsApi.prototype.gotoSignatureInternal=function(guid){};baseEditorsApi.prototype.asc_getSignatureSetup=
|
|
function(guid){var _sigs=this.asc_getAllSignatures();for(var i=_sigs.length-1;i>=0;i--){var _sig=_sigs[i];if(_sig.id==guid){var _add_sig=new AscCommon.asc_CSignatureLine;_add_sig.guid=_sig.id;_add_sig.signer1=_sig.signer;_add_sig.signer2=_sig.signer2;_add_sig.email=_sig.email;_add_sig.showDate=_sig.showDate;_add_sig.instructions=_sig.instructions;_add_sig.isrequested=true;for(var j=0;j<this.signatures.length;j++){var signDoc=this.signatures[j];if(signDoc.guid==_add_sig.guid){_add_sig.valid=signDoc.valid;
|
|
_add_sig.isrequested=false;break}}return _add_sig}}return null};baseEditorsApi.prototype.asc_getSignatureImage=function(sGuid){var count=this.signatures.length;for(var i=0;i<count;i++)if(this.signatures[i].guid==sGuid)return this.signatures[i].image;return""};baseEditorsApi.prototype.asc_getSessionToken=function(){return this.CoAuthoringApi.get_jwt()};baseEditorsApi.prototype.asc_InputClearKeyboardElement=function(){if(AscCommon.g_inputContext)AscCommon.g_inputContext.nativeFocusElement=null};baseEditorsApi.prototype.privateDropEvent=
|
|
function(obj){if(!obj||!obj.type)return;var e={pageX:obj["x"],pageY:obj["y"]};switch(obj.type){case "onbeforedrop":{this.beginInlineDropTarget(e);break}case "ondrop":{this.endInlineDropTarget(e);if(obj["html"])this["pluginMethod_PasteHtml"](obj["html"]);else if(obj["text"])this["pluginMethod_PasteText"](obj["text"]);break}default:break}};baseEditorsApi.prototype.getTargetOnBodyCoords=function(){var ret={X:0,Y:0,W:0,H:0,TargetH:0};ret.W=Math.max(document.documentElement.clientWidth,window.innerWidth||
|
|
0);ret.H=Math.max(document.documentElement.clientHeight,window.innerHeight||0);switch(this.editorId){case c_oEditorId.Word:{ret.X+=this.WordControl.X;ret.Y+=this.WordControl.Y;ret.X+=this.WordControl.m_oMainView.AbsolutePosition.L*AscCommon.g_dKoef_mm_to_pix;ret.Y+=this.WordControl.m_oMainView.AbsolutePosition.T*AscCommon.g_dKoef_mm_to_pix;ret.X+=this.WordControl.m_oDrawingDocument.TargetHtmlElementLeft;ret.Y+=this.WordControl.m_oDrawingDocument.TargetHtmlElementTop;ret.X>>=0;ret.Y>>=0;ret.TargetH=
|
|
this.WordControl.m_oDrawingDocument.m_dTargetSize*this.WordControl.m_nZoomValue*AscCommon.g_dKoef_mm_to_pix/100>>0;break}case c_oEditorId.Presentation:{ret.X+=this.WordControl.X;ret.Y+=this.WordControl.Y;ret.X+=this.WordControl.m_oMainParent.AbsolutePosition.L*AscCommon.g_dKoef_mm_to_pix;if(!this.WordControl.m_oLogicDocument.IsFocusOnNotes())ret.Y+=this.WordControl.m_oMainView.AbsolutePosition.T*AscCommon.g_dKoef_mm_to_pix;else ret.Y+=this.WordControl.m_oNotesContainer.AbsolutePosition.T*AscCommon.g_dKoef_mm_to_pix;
|
|
ret.X+=this.WordControl.m_oDrawingDocument.TargetHtmlElementLeft;ret.Y+=this.WordControl.m_oDrawingDocument.TargetHtmlElementTop;ret.X>>=0;ret.Y>>=0;ret.TargetH=this.WordControl.m_oDrawingDocument.m_dTargetSize*this.WordControl.m_nZoomValue*AscCommon.g_dKoef_mm_to_pix/100>>0;break}case c_oEditorId.Spreadsheet:{var off,selectionType=this.asc_getCellInfo().asc_getSelectionType();if(this.asc_getCellEditMode()){var cellEditor=this.wb.cellEditor;ret.X=cellEditor.curLeft;ret.Y=cellEditor.curTop;ret.TargetH=
|
|
cellEditor.curHeight;off=cellEditor.cursor}else if(Asc.c_oAscSelectionType.RangeShapeText===selectionType||Asc.c_oAscSelectionType.RangeChartText===selectionType){var drDoc=this.wb.getWorksheet().objectRender.controller.drawingDocument;ret.X=drDoc.TargetHtmlElementLeft;ret.Y=drDoc.TargetHtmlElementTop;ret.TargetH=drDoc.m_dTargetSize*this.asc_getZoom()*AscCommon.g_dKoef_mm_to_pix;off=this.HtmlElement}if(off){off=jQuery(off).offset();if(off){ret.X+=off.left;ret.Y+=off.top}}ret.X>>=0;ret.Y>>=0;ret.TargetH>>=
|
|
0;break}}return ret};baseEditorsApi.prototype.onKeyDown=function(e){};baseEditorsApi.prototype.onKeyPress=function(e){};baseEditorsApi.prototype.onKeyUp=function(e){};baseEditorsApi.prototype.getAddedTextOnKeyDown=function(e){return[]};baseEditorsApi.prototype.pre_Paste=function(_fonts,_images,callback){};baseEditorsApi.prototype.asc_Remove=function(){if(AscCommon.g_inputContext)AscCommon.g_inputContext.emulateKeyDownApi(46)};baseEditorsApi.prototype.SetTextBoxInputMode=function(bIsEnable){AscCommon.TextBoxInputMode=
|
|
bIsEnable;if(AscCommon.g_inputContext)AscCommon.g_inputContext.systemInputEnable(AscCommon.TextBoxInputMode)};baseEditorsApi.prototype.GetTextBoxInputMode=function(){return AscCommon.TextBoxInputMode};baseEditorsApi.prototype.asc_OnHideContextMenu=function(){};baseEditorsApi.prototype.asc_OnShowContextMenu=function(){};baseEditorsApi.prototype.isIdle=function(){if(0==this.lastWorkTime)return 0;if(this.pluginsManager&&this.pluginsManager.isWorked())return 0;if(this.isEmbedVersion)return 0;if(!this.canSave||
|
|
!this._saveCheck())return 0;return(new Date).getTime()-this.lastWorkTime};baseEditorsApi.prototype.checkInterfaceElementBlur=function(){if(!document.activeElement||!document.createEvent||document.activeElement.id==="area_id")return;var e=document.createEvent("HTMLEvents");e.initEvent("blur",true,true);e.eventName="blur";document.activeElement.dispatchEvent(e)};baseEditorsApi.prototype.checkLastWork=function(){this.lastWorkTime=(new Date).getTime()};baseEditorsApi.prototype.setViewModeDisconnect=function(enableDownload){this.sendEvent("asc_onCoAuthoringDisconnect",
|
|
enableDownload);this.asc_setViewMode(true)};baseEditorsApi.prototype.asc_setCurrentPassword=function(password){this.currentPassword=password;this.asc_Save(false,undefined,true);if(!(this.DocInfo&&this.DocInfo.get_OfflineApp())){var rData={"c":"setpassword","id":this.documentId,"password":password};var t=this;t.fCurCallback=function(input){if(null!=input&&"setpassword"==input["type"])if("ok"===input["status"])t.sendEvent("asc_onDocumentPassword",""!==t.currentPassword);else t.sendEvent("asc_onError",
|
|
AscCommon.mapAscServerErrorToAscError(parseInt(input["data"])),c_oAscError.Level.NoCritical);else t.sendEvent("asc_onError",c_oAscError.ID.Unknown,c_oAscError.Level.NoCritical)};AscCommon.sendCommand(this,null,rData)}};baseEditorsApi.prototype.asc_resetPassword=function(){this.asc_setCurrentPassword("")};baseEditorsApi.prototype.asc_setMacros=function(sData){if(!this.macros)return true;if(true===AscCommon.CollaborativeEditing.Get_GlobalLock())return true;AscCommon.CollaborativeEditing.OnStart_CheckLock();
|
|
this.macros.CheckLock();if(this.editorId==AscCommon.c_oEditorId.Spreadsheet){var _this=this;Asc.editor.checkObjectsLock([this.macros.Get_Id()],function(bNoLock){if(bNoLock){AscCommon.History.Create_NewPoint(AscDFH.historydescription_DocumentMacros_Data);_this.macros.SetData(sData)}})}else if(false===AscCommon.CollaborativeEditing.OnEnd_CheckLock(false)){AscCommon.History.Create_NewPoint(AscDFH.historydescription_DocumentMacros_Data);this.macros.SetData(sData)}};baseEditorsApi.prototype.asc_getMacros=
|
|
function(){return this.macros.GetData()};baseEditorsApi.prototype._beforeEvalCommand=function(){var oApi=this;switch(this.editorId){case AscCommon.c_oEditorId.Word:{if(this.WordControl&&this.WordControl.m_oLogicDocument)this.WordControl.m_oLogicDocument.LockPanelStyles();break}case AscCommon.c_oEditorId.Spreadsheet:{if(AscCommonExcel){oApi.tmpR1C1mode=AscCommonExcel.g_R1C1Mode;AscCommonExcel.g_R1C1Mode=false}break}default:break}};baseEditorsApi.prototype._afterEvalCommand=function(endAction){var oApi=
|
|
this;switch(this.editorId){case AscCommon.c_oEditorId.Word:case AscCommon.c_oEditorId.Presentation:{var oLogicDocument=this.WordControl.m_oLogicDocument;if(!oLogicDocument){endAction&&endAction();return}var _imagesArray=oLogicDocument.Get_AllImageUrls();var _images={};for(var i=0;i<_imagesArray.length;i++)_images[_imagesArray[i]]=_imagesArray[i];AscCommon.Check_LoadingDataBeforePrepaste(this,oLogicDocument.Document_Get_AllFontNames(),_images,function(){if(oLogicDocument.Reassign_ImageUrls)oLogicDocument.Reassign_ImageUrls(_images);
|
|
if(AscCommon.c_oEditorId.Word===oApi.editorId){oLogicDocument.UnlockPanelStyles(true);oLogicDocument.OnEndLoadScript()}oApi.asc_Recalculate(true);oLogicDocument.FinalizeAction();if(oApi.SaveAfterMacros){oApi.asc_Save();oApi.SaveAfterMacros=false}endAction&&endAction()});break}case AscCommon.c_oEditorId.Spreadsheet:{var oModel=this.wbModel;var _imagesArray=oModel.getAllImageUrls();var _images={};for(var i=0;i<_imagesArray.length;i++)_images[_imagesArray[i]]=_imagesArray[i];AscCommon.Check_LoadingDataBeforePrepaste(this,
|
|
oModel._generateFontMap(),_images,function(){oModel.reassignImageUrls(_images);oApi.asc_Recalculate(true);var wsView=oApi.wb&&oApi.wb.getWorksheet();if(wsView&&wsView.objectRender&&wsView.objectRender.controller)wsView.objectRender.controller.recalculate2(undefined);if(oApi.SaveAfterMacros){oApi.asc_Save();oApi.SaveAfterMacros=false}endAction&&endAction()});if(AscCommonExcel){AscCommonExcel.g_R1C1Mode=oApi.tmpR1C1mode;oApi.tmpR1C1mode=null}break}default:break}};baseEditorsApi.prototype.asc_runAutostartMacroses=
|
|
function(){if(!this.macros||this.disableAutostartMacros)return;if(!this.asc_canPaste())return;this._beforeEvalCommand();this.macros.runAuto();this._afterEvalCommand(undefined)};baseEditorsApi.prototype.asc_runMacros=function(sGuid){if(!this.macros)return;if(!this.asc_canPaste())return;this._beforeEvalCommand();this.macros.run(sGuid);this._afterEvalCommand(undefined)};baseEditorsApi.prototype.asc_getAllMacrosNames=function(){if(!this.macros)return[];return this.macros.getAllNames()};baseEditorsApi.prototype.asc_getMacrosGuidByName=
|
|
function(sName){if(!this.macros)return"";return this.macros.getGuidByName(sName)};baseEditorsApi.prototype.asc_getMacrosByGuid=function(sGuid){if(!this.macros)return"";return this.macros.getNameByGuid(sGuid)};baseEditorsApi.prototype.asc_getSelectedDrawingObjectsCount=function(){return 0};baseEditorsApi.prototype.asc_decodeBuffer=function(buffer,options,callback){var reader=new FileReader;reader.onload=reader.onerror=function(e){var text=e.target.result?e.target.result:"";if(options instanceof Asc.asc_CTextOptions)callback(AscCommon.parseText(text,
|
|
options));else callback(text.match(/[^\r\n]+/g))};var encoding="UTF-8";var codePage=options.asc_getCodePage();var encodingsLen=AscCommon.c_oAscEncodings.length;for(var i=0;i<encodingsLen;++i)if(AscCommon.c_oAscEncodings[i][0]==codePage){encoding=AscCommon.c_oAscEncodings[i][2];break}reader.readAsText(new Blob([buffer]),encoding)};baseEditorsApi.prototype.asc_setVisiblePasteButton=function(val){if(AscCommon.g_specialPasteHelper)AscCommon.g_specialPasteHelper.setVisiblePasteButton(val)};baseEditorsApi.prototype.asc_getAutoCorrectMathSymbols=
|
|
function(){return window["AscCommonWord"].g_AutoCorrectMathsList.DefaultAutoCorrectMathSymbolsList};baseEditorsApi.prototype.asc_getAutoCorrectMathFunctions=function(){return window["AscCommonWord"].g_AutoCorrectMathsList.DefaultAutoCorrectMathFuncs};baseEditorsApi.prototype.asc_resetToDefaultAutoCorrectMathSymbols=function(){window["AscCommonWord"].g_AutoCorrectMathsList.AutoCorrectMathSymbols=JSON.parse(JSON.stringify(window["AscCommonWord"].g_AutoCorrectMathsList.DefaultAutoCorrectMathSymbolsList))};
|
|
baseEditorsApi.prototype.asc_resetToDefaultAutoCorrectMathFunctions=function(){window["AscCommonWord"].g_AutoCorrectMathsList.AutoCorrectMathFuncs=JSON.parse(JSON.stringify(window["AscCommonWord"].g_AutoCorrectMathsList.DefaultAutoCorrectMathFuncs))};baseEditorsApi.prototype.asc_deleteFromAutoCorrectMathSymbols=function(element){var remInd=window["AscCommonWord"].g_AutoCorrectMathsList.AutoCorrectMathSymbols.findIndex(function(val,index){if(val[0]===element)return true});window["AscCommonWord"].g_AutoCorrectMathsList.AutoCorrectMathSymbols.splice(remInd,
|
|
1)};baseEditorsApi.prototype.asc_deleteFromAutoCorrectMathFunctions=function(element){var remInd=window["AscCommonWord"].g_AutoCorrectMathsList.AutoCorrectMathFuncs.findIndex(function(val,index){if(val===element)return true});window["AscCommonWord"].g_AutoCorrectMathsList.AutoCorrectMathFuncs.splice(remInd,1)};baseEditorsApi.prototype.asc_AddOrEditFromAutoCorrectMathSymbols=function(element,repVal){if(typeof repVal==="string")repVal=AscCommon.convertUTF16toUnicode(repVal);var changeInd=window["AscCommonWord"].g_AutoCorrectMathsList.AutoCorrectMathSymbols.findIndex(function(val,
|
|
index){if(val[0]===element)return true});if(changeInd>=0)window["AscCommonWord"].g_AutoCorrectMathsList.AutoCorrectMathSymbols[changeInd][1]=repVal;else window["AscCommonWord"].g_AutoCorrectMathsList.AutoCorrectMathSymbols.push([element,repVal])};baseEditorsApi.prototype.asc_AddFromAutoCorrectMathFunctions=function(newEl){window["AscCommonWord"].g_AutoCorrectMathsList.AutoCorrectMathFuncs.push(newEl)};baseEditorsApi.prototype.asc_refreshOnStartAutoCorrectMathSymbols=function(remItems,addItems,flag){var me=
|
|
this;this.asc_resetToDefaultAutoCorrectMathSymbols();if(remItems)remItems.forEach(function(el){me.asc_deleteFromAutoCorrectMathSymbols(el)});if(addItems)addItems.forEach(function(el){me.asc_AddOrEditFromAutoCorrectMathSymbols(el[0],el[1])});this.asc_updateFlagAutoCorrectMathSymbols(flag)};baseEditorsApi.prototype.asc_refreshOnStartAutoCorrectMathFunctions=function(remItems,addItems){var me=this;this.asc_resetToDefaultAutoCorrectMathFunctions();if(remItems)remItems.forEach(function(el){me.asc_deleteFromAutoCorrectMathFunctions(el)});
|
|
if(addItems)addItems.forEach(function(el){me.asc_AddFromAutoCorrectMathFunctions(el)})};baseEditorsApi.prototype.asc_updateFlagAutoCorrectMathSymbols=function(flag){window["AscCommonWord"].b_DoAutoCorrectMathSymbols=flag};baseEditorsApi.prototype.getFileAsFromChanges=function(){var func_before=null;var func_after=null;if(this.editorId===AscCommon.c_oEditorId.Word)if(this.WordControl&&this.WordControl.m_oLogicDocument&&this.WordControl.m_oLogicDocument.IsViewModeInReview()){var isFinal=this.WordControl.m_oLogicDocument.ViewModeInReview.mode===
|
|
1?true:false;func_before=function(api){api.WordControl.m_oLogicDocument.Start_SilentMode();api.asc_EndViewModeInReview()};func_after=function(api){api.asc_BeginViewModeInReview(isFinal);api.WordControl.m_oLogicDocument.End_SilentMode(false)}}func_before&&func_before(this);var ret=this.asc_nativeGetFile3();func_after&&func_after(this);return ret};baseEditorsApi.prototype.initShortcuts=function(arrShortcuts,isRemoveBeforeAdd){for(var nIndex=0,nCount=arrShortcuts.length;nIndex<nCount;++nIndex){var s=
|
|
arrShortcuts[nIndex];if(true===isRemoveBeforeAdd)this.Shortcuts.RemoveByType(s[0]);this.Shortcuts.Add(s[0],s[1],s[2],s[3],s[4])}};baseEditorsApi.prototype.initDefaultShortcuts=function(){};baseEditorsApi.prototype.getShortcut=function(e){if(e.GetKeyCode)return this.Shortcuts.Get(e.GetKeyCode(),e.IsCtrl(),e.IsShift(),e.IsAlt());else return this.Shortcuts.Get(e.KeyCode,e.CtrlKey,e.ShiftKey,e.AltKey)};baseEditorsApi.prototype.getCustomShortcutAction=function(nActionType){return this.Shortcuts.GetCustomAction(nActionType)};
|
|
baseEditorsApi.prototype.asc_initShortcuts=baseEditorsApi.prototype.initShortcuts;baseEditorsApi.prototype.asc_getShortcutAction=function(nKeyCode,isCtrl,isShift,isAlt){return this.Shortcuts.Get(nKeyCode,isCtrl,isShift,isAlt)};baseEditorsApi.prototype.asc_removeShortcuts=function(arrShortcuts,arrActionTypes){if(arrShortcuts)for(var nIndex=0,nCount=arrShortcuts.length;nIndex<nCount;++nIndex){var s=arrShortcuts[nIndex];this.Shortcuts.Remove(s[0],s[1],s[2],s[3])}if(arrActionTypes)for(var nIndex=0,nCount=
|
|
arrActionTypes.length;nIndex<nCount;++nIndex)this.Shortcuts.RemoveByType(arrActionTypes[nIndex])};baseEditorsApi.prototype.asc_addCustomShortcutInsertSymbol=function(nCharCode,sFont,sShortcut){var nActionType=this.Shortcuts.AddCustomActionSymbol(nCharCode,sFont);this.Shortcuts.Add(nActionType,sShortcut[0],sShortcut[1],sShortcut[2],sShortcut[3]);return nActionType};baseEditorsApi.prototype.asc_setSkin=function(obj){};baseEditorsApi.prototype["GetVersion"]=baseEditorsApi.prototype.GetVersion=function(){var ver=
|
|
"0.0.0";return ver==="0.0.0"||ver.substr(2)==="Version"?"develop":ver};baseEditorsApi.prototype["asc_isSupportFeature"]=function(type){return window["Asc"]&&window["Asc"]["Addons"]&&window["Asc"]["Addons"][type]===true?true:false};baseEditorsApi.prototype["asc_setDefaultBlitMode"]=function(value){AscFonts.setDefaultBlitting(value)};baseEditorsApi.prototype["attachEvent"]=function(name,callback,listenerId){if(!this.internalEvents.hasOwnProperty(name))this.internalEvents[name]={};this.internalEvents[name][""+
|
|
(undefined===listenerId?0:listenerId)]=callback};baseEditorsApi.prototype["detachEvent"]=function(name,listenerId){if(!this.internalEvents.hasOwnProperty(name))return;var obj=this.internalEvents[name];var prop=""+(undefined===listenerId?0:listenerId);if(obj[prop])delete obj[prop];if(0===Object.getOwnPropertyNames(obj).length)delete this.internalEvents[name]};baseEditorsApi.prototype.sendInternalEvent=function(){var name=arguments[0];if(this.internalEvents.hasOwnProperty(name)){var obj=this.internalEvents[name];
|
|
for(var prop in obj)obj[prop].apply(this||window,Array.prototype.slice.call(arguments,1))}return false};baseEditorsApi.prototype["asc_onShowPopupWindow"]=function(){this.hideVideoControl()};baseEditorsApi.prototype.asc_wopi_renameFile=function(name){var t=this;var callback=function(isTimeout,response){if(response)t.CoAuthoringApi.onMeta({"title":response["Name"]+"."+AscCommon.GetFileExtension(t.documentTitle)});else t.sendEvent("asc_onError",c_oAscError.ID.Unknown,c_oAscError.Level.NoCritical)};if(!this.CoAuthoringApi.callPRC({"type":"wopi_RenameFile",
|
|
"name":name},Asc.c_nCommonRequestTime,callback))callback(false,undefined)};window["AscCommon"]=window["AscCommon"]||{};window["AscCommon"].baseEditorsApi=baseEditorsApi;prot=baseEditorsApi.prototype;prot["asc_loadFontsFromServer"]=prot.asc_loadFontsFromServer;prot["asc_setRestriction"]=prot.asc_setRestriction;prot["asc_selectSearchingResults"]=prot.asc_selectSearchingResults;prot["asc_showRevision"]=prot.asc_showRevision;prot["asc_getAdvancedOptions"]=prot.asc_getAdvancedOptions;prot["asc_Print"]=
|
|
prot.asc_Print;prot["asc_GetCurrentColorSchemeName"]=prot.asc_GetCurrentColorSchemeName;prot["asc_GetCurrentColorSchemeIndex"]=prot.asc_GetCurrentColorSchemeIndex;prot["asc_runAutostartMacroses"]=prot.asc_runAutostartMacroses;prot["asc_runMacros"]=prot.asc_runMacros;prot["asc_getAllMacrosNames"]=prot.asc_getAllMacrosNames;prot["asc_setVisiblePasteButton"]=prot.asc_setVisiblePasteButton;prot["asc_getAutoCorrectMathSymbols"]=prot.asc_getAutoCorrectMathSymbols;prot["asc_getAutoCorrectMathFunctions"]=
|
|
prot.asc_getAutoCorrectMathFunctions;prot["asc_resetToDefaultAutoCorrectMathSymbols"]=prot.asc_resetToDefaultAutoCorrectMathSymbols;prot["asc_resetToDefaultAutoCorrectMathFunctions"]=prot.asc_resetToDefaultAutoCorrectMathFunctions;prot["asc_deleteFromAutoCorrectMathSymbols"]=prot.asc_deleteFromAutoCorrectMathSymbols;prot["asc_deleteFromAutoCorrectMathFunctions"]=prot.asc_deleteFromAutoCorrectMathFunctions;prot["asc_AddOrEditFromAutoCorrectMathSymbols"]=prot.asc_AddOrEditFromAutoCorrectMathSymbols;
|
|
prot["asc_AddFromAutoCorrectMathFunctions"]=prot.asc_AddFromAutoCorrectMathFunctions;prot["asc_refreshOnStartAutoCorrectMathSymbols"]=prot.asc_refreshOnStartAutoCorrectMathSymbols;prot["asc_refreshOnStartAutoCorrectMathFunctions"]=prot.asc_refreshOnStartAutoCorrectMathFunctions;prot["asc_updateFlagAutoCorrectMathSymbols"]=prot.asc_updateFlagAutoCorrectMathSymbols;prot["asc_initShortcuts"]=prot.asc_initShortcuts;prot["asc_getShortcutAction"]=prot.asc_getShortcutAction;prot["asc_removeShortcuts"]=prot.asc_removeShortcuts;
|
|
prot["asc_addCustomShortcutInsertSymbol"]=prot.asc_addCustomShortcutInsertSymbol;prot["asc_wopi_renameFile"]=prot.asc_wopi_renameFile;prot["asc_isCrypto"]=prot.asc_isCrypto})(window);"use strict";
|
|
(function(window,undefined){var Api=window["AscCommon"].baseEditorsApi;Api.prototype["pluginMethod_GetVersion"]=function(){return this.GetVersion()};Api.prototype["pluginMethod_AddOleObject"]=function(data){return this.asc_addOleObject(data)};Api.prototype["pluginMethod_EditOleObject"]=function(data){return this.asc_editOleObject(data)};Api.prototype["pluginMethod_GetFontList"]=function(){return AscFonts.g_fontApplication.g_fontSelections.SerializeList()};Api.prototype["pluginMethod_InputText"]=function(text,
|
|
textReplace){if(this.isViewMode||!AscCommon.g_inputContext)return;var codes=[];for(var i=text.getUnicodeIterator();i.check();i.next())codes.push(i.value());if(textReplace)for(var i=0;i<textReplace.length;i++)AscCommon.g_inputContext.emulateKeyDownApi(8);AscCommon.g_inputContext.apiInputText(codes);AscCommon.g_inputContext.keyPressInput=""};Api.prototype["pluginMethod_PasteHtml"]=function(htmlText){if(!AscCommon.g_clipboardBase)return null;var _elem=document.getElementById("pmpastehtml");if(_elem)return;
|
|
_elem=document.createElement("div");_elem.id="pmpastehtml";if(this.editorId==AscCommon.c_oEditorId.Word||this.editorId==AscCommon.c_oEditorId.Presentation){var textPr=this.get_TextProps();if(textPr){if(undefined!==textPr.TextPr.FontSize)_elem.style.fontSize=textPr.TextPr.FontSize+"pt";_elem.style.fontWeight=true===textPr.TextPr.Bold?"bold":"normal";_elem.style.fontStyle=true===textPr.TextPr.Italic?"italic":"normal";var _color=textPr.TextPr.Color;if(_color)_elem.style.color="rgb("+_color.r+","+_color.g+
|
|
","+_color.b+")";else _elem.style.color="rgb(0,0,0)"}}else if(this.editorId==AscCommon.c_oEditorId.Spreadsheet){var props=this.asc_getCellInfo();if(props&&props.font){if(undefined!=props.font.size)_elem.style.fontSize=props.font.size+"pt";_elem.style.fontWeight=true===props.font.bold?"bold":"normal";_elem.style.fontStyle=true===props.font.italic?"italic":"normal"}}_elem.innerHTML=htmlText;document.body.appendChild(_elem);this.incrementCounterLongAction();var b_old_save_format=AscCommon.g_clipboardBase.bSaveFormat;
|
|
AscCommon.g_clipboardBase.bSaveFormat=true;this.asc_PasteData(AscCommon.c_oAscClipboardDataFormat.HtmlElement,_elem);this.decrementCounterLongAction();if(true){var fCallback=function(){document.body.removeChild(_elem);_elem=null;AscCommon.g_clipboardBase.bSaveFormat=b_old_save_format};if(this.checkLongActionCallback(fCallback,null))fCallback()}else{document.body.removeChild(_elem);_elem=null;AscCommon.g_clipboardBase.bSaveFormat=b_old_save_format}};Api.prototype["pluginMethod_PasteText"]=function(text){if(!AscCommon.g_clipboardBase)return null;
|
|
this.asc_PasteData(AscCommon.c_oAscClipboardDataFormat.Text,text)};Api.prototype["pluginMethod_GetMacros"]=function(){return this.asc_getMacros()};Api.prototype["pluginMethod_SetMacros"]=function(data){return this.asc_setMacros(data)};Api.prototype["pluginMethod_StartAction"]=function(type,description){this.sync_StartAction(type=="Block"?Asc.c_oAscAsyncActionType.BlockInteraction:Asc.c_oAscAsyncActionType.Information,description)};Api.prototype["pluginMethod_EndAction"]=function(type,description,
|
|
status){this.sync_EndAction(type=="Block"?Asc.c_oAscAsyncActionType.BlockInteraction:Asc.c_oAscAsyncActionType.Information,description);if(window["AscDesktopEditor"]&&status!=null&&status!=""){if(!window["AscDesktopEditor"]["IsLocalFile"]()){this.sendEvent("asc_onError","Encryption error: "+status+". The file was not compiled.",c_oAscError.Level.Critical);window["AscDesktopEditor"]["CryptoMode"]=0}else{this.sendEvent("asc_onError","Encryption error: "+status+". End-to-end encryption mode is disabled.",
|
|
c_oAscError.Level.NoCritical);window["AscDesktopEditor"]["CryptoMode"]=0;if(undefined!==window.LastUserSavedIndex){AscCommon.History.UserSavedIndex=window.LastUserSavedIndex;if(this.editorId==AscCommon.c_oEditorId.Spreadsheet)this.onUpdateDocumentModified(AscCommon.History.Have_Changes());else this.UpdateInterfaceState()}}window.LastUserSavedIndex=undefined;setTimeout(function(){window["AscDesktopEditor"]["buildCryptedEnd"](false)},500);return}window.LastUserSavedIndex=undefined;if(this._callbackPluginEndAction)this._callbackPluginEndAction.call(this)};
|
|
Api.prototype["pluginMethod_OnEncryption"]=function(obj){var _editor=window["Asc"]["editor"]?window["Asc"]["editor"]:window.editor;switch(obj.type){case "generatePassword":{if(""==obj["password"]){_editor.sendEvent("asc_onError","There is no connection with the blockchain",c_oAscError.Level.Critical);return}if("no_build"===obj["error"]){window["AscDesktopEditor"]["buildCryptedEnd"](true);return}var _ret=_editor.getFileAsFromChanges();AscCommon.EncryptionWorker.isPasswordCryptoPresent=true;_editor.currentDocumentInfoNext=
|
|
obj["docinfo"];window["AscDesktopEditor"]["buildCryptedStart"](_ret.data,_ret.header,obj["password"],obj["docinfo"]?obj["docinfo"]:"");break}case "getPasswordByFile":{if(""!=obj["password"]){var _param="<m_sPassword>"+AscCommon.CopyPasteCorrectString(obj["password"])+"</m_sPassword>";_editor.currentPassword=obj["password"];_editor.currentDocumentHash=obj["hash"];_editor.currentDocumentInfo=obj["docinfo"];AscCommon.EncryptionWorker.isPasswordCryptoPresent=true;if(window.isNativeOpenPassword)window["AscDesktopEditor"]["NativeViewerOpen"](obj["password"]);
|
|
else window["AscDesktopEditor"]["SetAdvancedOptions"](_param)}else this._onNeedParams({message:obj["message"]},true);break}case "encryptData":case "decryptData":{AscCommon.EncryptionWorker.receiveChanges(obj);break}}};Api.prototype["pluginMethod_SetProperties"]=function(obj){if(!obj)return;for(var prop in obj)switch(prop){case "copyoutenabled":{this.copyOutEnabled=obj[prop];this.sync_CanCopyCutCallback(this.copyOutEnabled);break}case "watermark_on_draw":{var sText="";var tempProp={};try{tempProp=
|
|
typeof obj[prop]==="string"?JSON.parse(obj[prop]):obj[prop]}catch(err){tempProp={}}if(tempProp["paragraphs"])tempProp["paragraphs"].forEach(function(el){if(el["runs"])sText+=el["runs"].reduce(function(accum,curel){return accum+(curel["text"]?curel["text"]:"")},"")});if(!(typeof sText==="string"))sText="";AscFonts.FontPickerByCharacter.checkText(sText,this,function(){this.watermarkDraw=obj[prop]?new AscCommon.CWatermarkOnDraw(obj[prop],this):null;this.watermarkDraw.checkOnReady()});break}case "hideContentControlTrack":{if(this.editorId===
|
|
AscCommon.c_oEditorId.Word&&this.WordControl&&this.WordControl.m_oLogicDocument)this.WordControl.m_oLogicDocument.SetForceHideContentControlTrack(obj[prop]);break}case "disableAutostartMacros":{this.disableAutostartMacros=true}default:break}};Api.prototype["pluginMethod_ShowInputHelper"]=function(guid,w,h,isKeyboardTake){var _frame=document.getElementById("iframe_"+guid);if(!_frame)return;var _offset=this.getTargetOnBodyCoords();if(w>_offset.W)w=_offset.W;if(h>_offset.H)h=_offset.H;var _offsetToFrame=
|
|
10;var _r=_offset.X+_offsetToFrame+w;var _t=_offset.Y-_offsetToFrame-h;var _b=_offset.Y+_offset.TargetH+_offsetToFrame+h;var _x=_offset.X+_offsetToFrame;if(_r>_offset.W)_x+=_offset.W-_r;var _y=0;if(_b<_offset.H)_y=_offset.Y+_offset.TargetH+_offsetToFrame;else if(_t>0)_y=_t;else{_y=_offset.Y+_offset.TargetH+_offsetToFrame;h+=_offset.H-_b}_frame.style.left=_x+"px";_frame.style.top=_y+"px";_frame.style.width=w+"px";_frame.style.height=h+"px";if(!this.isMobileVersion)_frame.style.zIndex=1E3;else _frame.style.zIndex=
|
|
5001;if(!_frame.style.boxShadow){_frame.style.boxShadow="0 6px 12px rgba(0, 0, 0, 0.175)";_frame.style.webkitBoxShadow="0 6px 12px rgba(0, 0, 0, 0.175)"}if(isKeyboardTake){_frame.setAttribute("oo_editor_input","true");_frame.focus()}else{_frame.removeAttribute("oo_editor_input");if(AscCommon.g_inputContext){AscCommon.g_inputContext.isNoClearOnFocus=true;AscCommon.g_inputContext.HtmlArea.focus()}}if(AscCommon.g_inputContext){AscCommon.g_inputContext.isInputHelpersPresent=true;AscCommon.g_inputContext.isInputHelpers[guid]=
|
|
true}};Api.prototype["pluginMethod_UnShowInputHelper"]=function(guid,isclear){var _frame=document.getElementById("iframe_"+guid);if(!_frame)return;_frame.style.width="10px";_frame.style.height="10px";_frame.removeAttribute("oo_editor_input");_frame.style.zIndex=-1E3;if(AscCommon.g_inputContext&&AscCommon.g_inputContext.HtmlArea){AscCommon.g_inputContext.HtmlArea.focus();if(AscCommon.g_inputContext.isInputHelpers[guid])delete AscCommon.g_inputContext.isInputHelpers[guid];var count=0;for(var test in AscCommon.g_inputContext.isInputHelpers)if(AscCommon.g_inputContext.isInputHelpers[test])count++;
|
|
AscCommon.g_inputContext.isInputHelpersPresent=0!=count}if(AscCommon.g_inputContext&&isclear)AscCommon.g_inputContext.keyPressInput=""};Api.prototype["pluginMethod_CoAuthoringChatSendMessage"]=function(sText){return this.CoAuthoringChatSendMessage(sText)};Api.prototype["pluginMethod_GetSelectionType"]=function(){switch(this.editorId){case AscCommon.c_oEditorId.Word:{if(!this.WordControl||!this.WordControl.m_oLogicDocument)return"none";var logicDoc=this.WordControl.m_oLogicDocument;if(!logicDoc.IsSelectionUse())return"none";
|
|
var selectionBounds=logicDoc.GetSelectionBounds();var eps=1E-4;if(selectionBounds&&selectionBounds.Start&&selectionBounds.End&&Math.abs(selectionBounds.Start.W)>eps&&Math.abs(selectionBounds.End.W)>eps)return"text";if(logicDoc.DrawingObjects.getSelectedObjectsBounds())return"drawing";return"none"}case AscCommon.c_oEditorId.Presentation:{if(!this.WordControl||!this.WordControl.m_oLogicDocument)return"none";var logicDoc=this.WordControl.m_oLogicDocument;if(-1===logicDoc.CurPage)return"none";var _controller=
|
|
logicDoc.Slides[logicDoc.CurPage].graphicObjects;var _elementsCount=_controller.selectedObjects.length;var retType="slide";if(!_controller.IsSelectionUse()&&_elementsCount>0)retType="none";var selectionBounds=logicDoc.GetSelectionBounds();var eps=1E-4;if(selectionBounds&&selectionBounds.Start&&selectionBounds.End&&Math.abs(selectionBounds.Start.W)>eps&&Math.abs(selectionBounds.End.W)>eps)return"text";if(retType==="slide"&&_controller.getSelectedObjectsBounds())retType="drawing";return retType}case AscCommon.c_oEditorId.Spreadsheet:{if(!this.wb||
|
|
!this.wb.getWorksheet())return"none";var objectRender=this.wb.getWorksheet().objectRender;if(!objectRender)return"none";var controller=objectRender.controller;if(!controller)return"none";var selection=this.wb.GetSelectionRectsBounds();var retType="none";if(!controller.IsSelectionUse()&&!selection)retType="none";if(controller.GetSelectionBounds()||selection)retType="text";if(controller.getSelectedObjectsBounds())retType="drawing";return retType}default:break}return"none"}})(window);"use strict";
|
|
(function(window,undefined){function CBackground(obj){if(obj){this.Value=undefined!=obj.Value?obj.Value:null;if(obj.GetSimpleColor){if(undefined!==obj.Value&&Asc.c_oAscShd.Nil!==this.Value)this.Value=Asc.c_oAscShd.Clear;if(Asc.c_oAscShd.Clear===obj.Value&&obj.Unifill&&obj.Unifill.fill&&obj.Unifill.fill.type===window["Asc"].c_oAscFill.FILL_TYPE_SOLID&&obj.Unifill.fill.color)this.Color=AscCommon.CreateAscColor(obj.Unifill.fill.color);else{var oColor=obj.GetSimpleColor();this.Color=AscCommon.CreateAscColorCustom(oColor.r,
|
|
oColor.g,oColor.b,oColor.Auto)}}else if(obj.Unifill&&obj.Unifill.fill&&obj.Unifill.fill.type===window["Asc"].c_oAscFill.FILL_TYPE_SOLID&&obj.Unifill.fill.color)this.Color=AscCommon.CreateAscColor(obj.Unifill.fill.color);else this.Color=undefined!=obj.Color&&null!=obj.Color?AscCommon.CreateAscColorCustom(obj.Color.r,obj.Color.g,obj.Color.b):null}else{this.Color=AscCommon.CreateAscColorCustom(0,0,0);this.Value=1}}CBackground.prototype.get_Color=function(){return this.Color};CBackground.prototype.put_Color=
|
|
function(v){this.Color=v?v:null};CBackground.prototype.get_Value=function(){return this.Value};CBackground.prototype.put_Value=function(v){this.Value=v};window["Asc"]["CBackground"]=window["Asc"].CBackground=CBackground;CBackground.prototype["get_Color"]=CBackground.prototype.get_Color;CBackground.prototype["put_Color"]=CBackground.prototype.put_Color;CBackground.prototype["get_Value"]=CBackground.prototype.get_Value;CBackground.prototype["put_Value"]=CBackground.prototype.put_Value;function CTablePositionH(obj){if(obj){this.RelativeFrom=
|
|
undefined===obj.RelativeFrom?Asc.c_oAscHAnchor.Margin:obj.RelativeFrom;this.UseAlign=undefined===obj.UseAlign?false:obj.UseAlign;this.Align=undefined===obj.Align?undefined:obj.Align;this.Value=undefined===obj.Value?0:obj.Value}else{this.RelativeFrom=Asc.c_oAscHAnchor.Column;this.UseAlign=false;this.Align=undefined;this.Value=0}}CTablePositionH.prototype.get_RelativeFrom=function(){return this.RelativeFrom};CTablePositionH.prototype.put_RelativeFrom=function(v){this.RelativeFrom=v};CTablePositionH.prototype.get_UseAlign=
|
|
function(){return this.UseAlign};CTablePositionH.prototype.put_UseAlign=function(v){this.UseAlign=v};CTablePositionH.prototype.get_Align=function(){return this.Align};CTablePositionH.prototype.put_Align=function(v){this.Align=v};CTablePositionH.prototype.get_Value=function(){return this.Value};CTablePositionH.prototype.put_Value=function(v){this.Value=v};function CTablePositionV(obj){if(obj){this.RelativeFrom=undefined===obj.RelativeFrom?Asc.c_oAscVAnchor.Text:obj.RelativeFrom;this.UseAlign=undefined===
|
|
obj.UseAlign?false:obj.UseAlign;this.Align=undefined===obj.Align?undefined:obj.Align;this.Value=undefined===obj.Value?0:obj.Value}else{this.RelativeFrom=Asc.c_oAscVAnchor.Text;this.UseAlign=false;this.Align=undefined;this.Value=0}}CTablePositionV.prototype.get_RelativeFrom=function(){return this.RelativeFrom};CTablePositionV.prototype.put_RelativeFrom=function(v){this.RelativeFrom=v};CTablePositionV.prototype.get_UseAlign=function(){return this.UseAlign};CTablePositionV.prototype.put_UseAlign=function(v){this.UseAlign=
|
|
v};CTablePositionV.prototype.get_Align=function(){return this.Align};CTablePositionV.prototype.put_Align=function(v){this.Align=v};CTablePositionV.prototype.get_Value=function(){return this.Value};CTablePositionV.prototype.put_Value=function(v){this.Value=v};window["Asc"]["CTablePositionH"]=CTablePositionH;CTablePositionH.prototype["get_RelativeFrom"]=CTablePositionH.prototype.get_RelativeFrom;CTablePositionH.prototype["put_RelativeFrom"]=CTablePositionH.prototype.put_RelativeFrom;CTablePositionH.prototype["get_UseAlign"]=
|
|
CTablePositionH.prototype.get_UseAlign;CTablePositionH.prototype["put_UseAlign"]=CTablePositionH.prototype.put_UseAlign;CTablePositionH.prototype["get_Align"]=CTablePositionH.prototype.get_Align;CTablePositionH.prototype["put_Align"]=CTablePositionH.prototype.put_Align;CTablePositionH.prototype["get_Value"]=CTablePositionH.prototype.get_Value;CTablePositionH.prototype["put_Value"]=CTablePositionH.prototype.put_Value;window["Asc"]["CTablePositionV"]=CTablePositionV;CTablePositionV.prototype["get_RelativeFrom"]=
|
|
CTablePositionV.prototype.get_RelativeFrom;CTablePositionV.prototype["put_RelativeFrom"]=CTablePositionV.prototype.put_RelativeFrom;CTablePositionV.prototype["get_UseAlign"]=CTablePositionV.prototype.get_UseAlign;CTablePositionV.prototype["put_UseAlign"]=CTablePositionV.prototype.put_UseAlign;CTablePositionV.prototype["get_Align"]=CTablePositionV.prototype.get_Align;CTablePositionV.prototype["put_Align"]=CTablePositionV.prototype.put_Align;CTablePositionV.prototype["get_Value"]=CTablePositionV.prototype.get_Value;
|
|
CTablePositionV.prototype["put_Value"]=CTablePositionV.prototype.put_Value;function CTablePropLook(obj){this.FirstCol=false;this.FirstRow=false;this.LastCol=false;this.LastRow=false;this.BandHor=false;this.BandVer=false;if(obj){this.FirstCol=undefined===obj.m_bFirst_Col?false:obj.m_bFirst_Col;this.FirstRow=undefined===obj.m_bFirst_Row?false:obj.m_bFirst_Row;this.LastCol=undefined===obj.m_bLast_Col?false:obj.m_bLast_Col;this.LastRow=undefined===obj.m_bLast_Row?false:obj.m_bLast_Row;this.BandHor=undefined===
|
|
obj.m_bBand_Hor?false:obj.m_bBand_Hor;this.BandVer=undefined===obj.m_bBand_Ver?false:obj.m_bBand_Ver}}CTablePropLook.prototype.get_FirstCol=function(){return this.FirstCol};CTablePropLook.prototype.put_FirstCol=function(v){this.FirstCol=v};CTablePropLook.prototype.get_FirstRow=function(){return this.FirstRow};CTablePropLook.prototype.put_FirstRow=function(v){this.FirstRow=v};CTablePropLook.prototype.get_LastCol=function(){return this.LastCol};CTablePropLook.prototype.put_LastCol=function(v){this.LastCol=
|
|
v};CTablePropLook.prototype.get_LastRow=function(){return this.LastRow};CTablePropLook.prototype.put_LastRow=function(v){this.LastRow=v};CTablePropLook.prototype.get_BandHor=function(){return this.BandHor};CTablePropLook.prototype.put_BandHor=function(v){this.BandHor=v};CTablePropLook.prototype.get_BandVer=function(){return this.BandVer};CTablePropLook.prototype.put_BandVer=function(v){this.BandVer=v};window["Asc"]["CTablePropLook"]=window["Asc"].CTablePropLook=CTablePropLook;CTablePropLook.prototype["get_FirstCol"]=
|
|
CTablePropLook.prototype.get_FirstCol;CTablePropLook.prototype["put_FirstCol"]=CTablePropLook.prototype.put_FirstCol;CTablePropLook.prototype["get_FirstRow"]=CTablePropLook.prototype.get_FirstRow;CTablePropLook.prototype["put_FirstRow"]=CTablePropLook.prototype.put_FirstRow;CTablePropLook.prototype["get_LastCol"]=CTablePropLook.prototype.get_LastCol;CTablePropLook.prototype["put_LastCol"]=CTablePropLook.prototype.put_LastCol;CTablePropLook.prototype["get_LastRow"]=CTablePropLook.prototype.get_LastRow;
|
|
CTablePropLook.prototype["put_LastRow"]=CTablePropLook.prototype.put_LastRow;CTablePropLook.prototype["get_BandHor"]=CTablePropLook.prototype.get_BandHor;CTablePropLook.prototype["put_BandHor"]=CTablePropLook.prototype.put_BandHor;CTablePropLook.prototype["get_BandVer"]=CTablePropLook.prototype.get_BandVer;CTablePropLook.prototype["put_BandVer"]=CTablePropLook.prototype.put_BandVer;function CTableProp(tblProp){if(tblProp){this.CanBeFlow=undefined!=tblProp.CanBeFlow?tblProp.CanBeFlow:false;this.CellSelect=
|
|
undefined!=tblProp.CellSelect?tblProp.CellSelect:false;this.CellSelect=undefined!=tblProp.CellSelect?tblProp.CellSelect:false;this.TableWidth=undefined!=tblProp.TableWidth?tblProp.TableWidth:null;this.TableSpacing=undefined!=tblProp.TableSpacing?tblProp.TableSpacing:null;this.TableDefaultMargins=undefined!=tblProp.TableDefaultMargins&&null!=tblProp.TableDefaultMargins?new Asc.asc_CPaddings(tblProp.TableDefaultMargins):null;this.CellMargins=undefined!=tblProp.CellMargins&&null!=tblProp.CellMargins?
|
|
new CMargins(tblProp.CellMargins):null;this.TableAlignment=undefined!=tblProp.TableAlignment?tblProp.TableAlignment:null;this.TableIndent=undefined!=tblProp.TableIndent?tblProp.TableIndent:null;this.TableWrappingStyle=undefined!=tblProp.TableWrappingStyle?tblProp.TableWrappingStyle:null;this.TablePaddings=undefined!=tblProp.TablePaddings&&null!=tblProp.TablePaddings?new Asc.asc_CPaddings(tblProp.TablePaddings):null;this.TableBorders=undefined!=tblProp.TableBorders&&null!=tblProp.TableBorders?new CBorders(tblProp.TableBorders):
|
|
null;this.CellBorders=undefined!=tblProp.CellBorders&&null!=tblProp.CellBorders?new CBorders(tblProp.CellBorders):null;this.TableBackground=undefined!=tblProp.TableBackground&&null!=tblProp.TableBackground?new CBackground(tblProp.TableBackground):null;this.CellsBackground=undefined!=tblProp.CellsBackground&&null!=tblProp.CellsBackground?new CBackground(tblProp.CellsBackground):null;this.Position=undefined!=tblProp.Position&&null!=tblProp.Position?new Asc.CPosition(tblProp.Position):null;this.PositionH=
|
|
undefined!=tblProp.PositionH&&null!=tblProp.PositionH?new CTablePositionH(tblProp.PositionH):undefined;this.PositionV=undefined!=tblProp.PositionV&&null!=tblProp.PositionV?new CTablePositionV(tblProp.PositionV):undefined;this.Internal_Position=undefined!=tblProp.Internal_Position?tblProp.Internal_Position:undefined;this.ForSelectedCells=undefined!=tblProp.ForSelectedCells?tblProp.ForSelectedCells:true;this.TableStyle=undefined!=tblProp.TableStyle?tblProp.TableStyle:null;this.TableLook=undefined!=
|
|
tblProp.TableLook?new CTablePropLook(tblProp.TableLook):null;this.RowsInHeader=undefined!==tblProp.RowsInHeader?tblProp.RowsInHeader:false;this.CellsVAlign=undefined!=tblProp.CellsVAlign?tblProp.CellsVAlign:c_oAscVertAlignJc.Top;this.AllowOverlap=undefined!=tblProp.AllowOverlap?tblProp.AllowOverlap:undefined;this.TableLayout=tblProp.TableLayout;this.CellsTextDirection=tblProp.CellsTextDirection;this.CellsNoWrap=tblProp.CellsNoWrap;this.CellsWidth=tblProp.CellsWidth;this.CellsWidthNotEqual=tblProp.CellsWidthNotEqual;
|
|
this.Locked=undefined!=tblProp.Locked?tblProp.Locked:false;this.PercentFullWidth=tblProp.PercentFullWidth;this.TableDescription=tblProp.TableDescription;this.TableCaption=tblProp.TableCaption;this.ColumnWidth=tblProp.ColumnWidth;this.RowHeight=tblProp.RowHeight}else{this.CellSelect=false;this.Locked=false}}CTableProp.prototype.get_Width=function(){return this.TableWidth};CTableProp.prototype.put_Width=function(v){this.TableWidth=v};CTableProp.prototype.get_Spacing=function(){return this.TableSpacing};
|
|
CTableProp.prototype.put_Spacing=function(v){this.TableSpacing=v};CTableProp.prototype.get_DefaultMargins=function(){return this.TableDefaultMargins};CTableProp.prototype.put_DefaultMargins=function(v){this.TableDefaultMargins=v};CTableProp.prototype.get_CellMargins=function(){return this.CellMargins};CTableProp.prototype.put_CellMargins=function(v){this.CellMargins=v};CTableProp.prototype.get_TableAlignment=function(){return this.TableAlignment};CTableProp.prototype.put_TableAlignment=function(v){this.TableAlignment=
|
|
v};CTableProp.prototype.get_TableIndent=function(){return this.TableIndent};CTableProp.prototype.put_TableIndent=function(v){this.TableIndent=v};CTableProp.prototype.get_TableWrap=function(){return this.TableWrappingStyle};CTableProp.prototype.put_TableWrap=function(v){this.TableWrappingStyle=v};CTableProp.prototype.get_TablePaddings=function(){return this.TablePaddings};CTableProp.prototype.put_TablePaddings=function(v){this.TablePaddings=v};CTableProp.prototype.get_TableBorders=function(){return this.TableBorders};
|
|
CTableProp.prototype.put_TableBorders=function(v){this.TableBorders=v};CTableProp.prototype.get_CellBorders=function(){return this.CellBorders};CTableProp.prototype.put_CellBorders=function(v){this.CellBorders=v};CTableProp.prototype.get_TableBackground=function(){return this.TableBackground};CTableProp.prototype.put_TableBackground=function(v){this.TableBackground=v};CTableProp.prototype.get_CellsBackground=function(){return this.CellsBackground};CTableProp.prototype.put_CellsBackground=function(v){this.CellsBackground=
|
|
v};CTableProp.prototype.get_Position=function(){return this.Position};CTableProp.prototype.put_Position=function(v){this.Position=v};CTableProp.prototype.get_PositionH=function(){return this.PositionH};CTableProp.prototype.put_PositionH=function(v){this.PositionH=v};CTableProp.prototype.get_PositionV=function(){return this.PositionV};CTableProp.prototype.put_PositionV=function(v){this.PositionV=v};CTableProp.prototype.get_Value_X=function(RelativeFrom){if(undefined!=this.Internal_Position)return this.Internal_Position.Calculate_X_Value(RelativeFrom);
|
|
return 0};CTableProp.prototype.get_Value_Y=function(RelativeFrom){if(undefined!=this.Internal_Position)return this.Internal_Position.Calculate_Y_Value(RelativeFrom);return 0};CTableProp.prototype.get_ForSelectedCells=function(){return this.ForSelectedCells};CTableProp.prototype.put_ForSelectedCells=function(v){this.ForSelectedCells=v};CTableProp.prototype.put_CellSelect=function(v){this.CellSelect=v};CTableProp.prototype.get_CellSelect=function(){return this.CellSelect};CTableProp.prototype.get_CanBeFlow=
|
|
function(){return this.CanBeFlow};CTableProp.prototype.get_RowsInHeader=function(){return this.RowsInHeader};CTableProp.prototype.put_RowsInHeader=function(v){this.RowsInHeader=v};CTableProp.prototype.get_Locked=function(){return this.Locked};CTableProp.prototype.get_CellsVAlign=function(){return this.CellsVAlign};CTableProp.prototype.put_CellsVAlign=function(v){this.CellsVAlign=v};CTableProp.prototype.get_TableLook=function(){return this.TableLook};CTableProp.prototype.put_TableLook=function(v){this.TableLook=
|
|
v};CTableProp.prototype.get_TableStyle=function(){return this.TableStyle};CTableProp.prototype.put_TableStyle=function(v){this.TableStyle=v};CTableProp.prototype.get_AllowOverlap=function(){return this.AllowOverlap};CTableProp.prototype.put_AllowOverlap=function(v){this.AllowOverlap=v};CTableProp.prototype.get_TableLayout=function(){return this.TableLayout};CTableProp.prototype.put_TableLayout=function(v){this.TableLayout=v};CTableProp.prototype.get_CellsTextDirection=function(){return this.CellsTextDirection};
|
|
CTableProp.prototype.put_CellsTextDirection=function(v){this.CellsTextDirection=v};CTableProp.prototype.get_CellsNoWrap=function(){return this.CellsNoWrap};CTableProp.prototype.put_CellsNoWrap=function(v){this.CellsNoWrap=v};CTableProp.prototype.get_CellsWidth=function(){return this.CellsWidth};CTableProp.prototype.put_CellsWidth=function(v){this.CellsWidth=v};CTableProp.prototype.get_PercentFullWidth=function(){return this.PercentFullWidth};CTableProp.prototype.get_CellsWidthNotEqual=function(){return this.CellsWidthNotEqual};
|
|
CTableProp.prototype.get_TableDescription=function(){return this.TableDescription};CTableProp.prototype.put_TableDescription=function(v){this.TableDescription=v};CTableProp.prototype.get_TableCaption=function(){return this.TableCaption};CTableProp.prototype.put_TableCaption=function(v){this.TableCaption=v};CTableProp.prototype.get_ColumnWidth=function(){return this.ColumnWidth};CTableProp.prototype.put_ColumnWidth=function(v){this.ColumnWidth=v};CTableProp.prototype.get_RowHeight=function(){return this.RowHeight};
|
|
CTableProp.prototype.put_RowHeight=function(v){this.RowHeight=v};window["Asc"]["CTableProp"]=window["Asc"].CTableProp=CTableProp;CTableProp.prototype["get_Width"]=CTableProp.prototype.get_Width;CTableProp.prototype["put_Width"]=CTableProp.prototype.put_Width;CTableProp.prototype["get_Spacing"]=CTableProp.prototype.get_Spacing;CTableProp.prototype["put_Spacing"]=CTableProp.prototype.put_Spacing;CTableProp.prototype["get_DefaultMargins"]=CTableProp.prototype.get_DefaultMargins;CTableProp.prototype["put_DefaultMargins"]=
|
|
CTableProp.prototype.put_DefaultMargins;CTableProp.prototype["get_CellMargins"]=CTableProp.prototype.get_CellMargins;CTableProp.prototype["put_CellMargins"]=CTableProp.prototype.put_CellMargins;CTableProp.prototype["get_TableAlignment"]=CTableProp.prototype.get_TableAlignment;CTableProp.prototype["put_TableAlignment"]=CTableProp.prototype.put_TableAlignment;CTableProp.prototype["get_TableIndent"]=CTableProp.prototype.get_TableIndent;CTableProp.prototype["put_TableIndent"]=CTableProp.prototype.put_TableIndent;
|
|
CTableProp.prototype["get_TableWrap"]=CTableProp.prototype.get_TableWrap;CTableProp.prototype["put_TableWrap"]=CTableProp.prototype.put_TableWrap;CTableProp.prototype["get_TablePaddings"]=CTableProp.prototype.get_TablePaddings;CTableProp.prototype["put_TablePaddings"]=CTableProp.prototype.put_TablePaddings;CTableProp.prototype["get_TableBorders"]=CTableProp.prototype.get_TableBorders;CTableProp.prototype["put_TableBorders"]=CTableProp.prototype.put_TableBorders;CTableProp.prototype["get_CellBorders"]=
|
|
CTableProp.prototype.get_CellBorders;CTableProp.prototype["put_CellBorders"]=CTableProp.prototype.put_CellBorders;CTableProp.prototype["get_TableBackground"]=CTableProp.prototype.get_TableBackground;CTableProp.prototype["put_TableBackground"]=CTableProp.prototype.put_TableBackground;CTableProp.prototype["get_CellsBackground"]=CTableProp.prototype.get_CellsBackground;CTableProp.prototype["put_CellsBackground"]=CTableProp.prototype.put_CellsBackground;CTableProp.prototype["get_Position"]=CTableProp.prototype.get_Position;
|
|
CTableProp.prototype["put_Position"]=CTableProp.prototype.put_Position;CTableProp.prototype["get_PositionH"]=CTableProp.prototype.get_PositionH;CTableProp.prototype["put_PositionH"]=CTableProp.prototype.put_PositionH;CTableProp.prototype["get_PositionV"]=CTableProp.prototype.get_PositionV;CTableProp.prototype["put_PositionV"]=CTableProp.prototype.put_PositionV;CTableProp.prototype["get_Value_X"]=CTableProp.prototype.get_Value_X;CTableProp.prototype["get_Value_Y"]=CTableProp.prototype.get_Value_Y;
|
|
CTableProp.prototype["get_ForSelectedCells"]=CTableProp.prototype.get_ForSelectedCells;CTableProp.prototype["put_ForSelectedCells"]=CTableProp.prototype.put_ForSelectedCells;CTableProp.prototype["put_CellSelect"]=CTableProp.prototype.put_CellSelect;CTableProp.prototype["get_CellSelect"]=CTableProp.prototype.get_CellSelect;CTableProp.prototype["get_CanBeFlow"]=CTableProp.prototype.get_CanBeFlow;CTableProp.prototype["get_RowsInHeader"]=CTableProp.prototype.get_RowsInHeader;CTableProp.prototype["put_RowsInHeader"]=
|
|
CTableProp.prototype.put_RowsInHeader;CTableProp.prototype["get_Locked"]=CTableProp.prototype.get_Locked;CTableProp.prototype["get_CellsVAlign"]=CTableProp.prototype.get_CellsVAlign;CTableProp.prototype["put_CellsVAlign"]=CTableProp.prototype.put_CellsVAlign;CTableProp.prototype["get_TableLook"]=CTableProp.prototype.get_TableLook;CTableProp.prototype["put_TableLook"]=CTableProp.prototype.put_TableLook;CTableProp.prototype["get_TableStyle"]=CTableProp.prototype.get_TableStyle;CTableProp.prototype["put_TableStyle"]=
|
|
CTableProp.prototype.put_TableStyle;CTableProp.prototype["get_AllowOverlap"]=CTableProp.prototype.get_AllowOverlap;CTableProp.prototype["put_AllowOverlap"]=CTableProp.prototype.put_AllowOverlap;CTableProp.prototype["get_TableLayout"]=CTableProp.prototype.get_TableLayout;CTableProp.prototype["put_TableLayout"]=CTableProp.prototype.put_TableLayout;CTableProp.prototype["get_CellsTextDirection"]=CTableProp.prototype.get_CellsTextDirection;CTableProp.prototype["put_CellsTextDirection"]=CTableProp.prototype.put_CellsTextDirection;
|
|
CTableProp.prototype["get_CellsNoWrap"]=CTableProp.prototype.get_CellsNoWrap;CTableProp.prototype["put_CellsNoWrap"]=CTableProp.prototype.put_CellsNoWrap;CTableProp.prototype["get_CellsWidth"]=CTableProp.prototype.get_CellsWidth;CTableProp.prototype["put_CellsWidth"]=CTableProp.prototype.put_CellsWidth;CTableProp.prototype["get_PercentFullWidth"]=CTableProp.prototype.get_PercentFullWidth;CTableProp.prototype["get_CellsWidthNotEqual"]=CTableProp.prototype.get_CellsWidthNotEqual;CTableProp.prototype["get_TableDescription"]=
|
|
CTableProp.prototype.get_TableDescription;CTableProp.prototype["put_TableDescription"]=CTableProp.prototype.put_TableDescription;CTableProp.prototype["get_TableCaption"]=CTableProp.prototype.get_TableCaption;CTableProp.prototype["put_TableCaption"]=CTableProp.prototype.put_TableCaption;CTableProp.prototype["get_ColumnWidth"]=CTableProp.prototype.get_ColumnWidth;CTableProp.prototype["put_ColumnWidth"]=CTableProp.prototype.put_ColumnWidth;CTableProp.prototype["get_RowHeight"]=CTableProp.prototype.get_RowHeight;
|
|
CTableProp.prototype["put_RowHeight"]=CTableProp.prototype.put_RowHeight;function CBorders(obj){if(obj){this.Left=undefined!=obj.Left&&null!=obj.Left?new Asc.asc_CTextBorder(obj.Left):null;this.Top=undefined!=obj.Top&&null!=obj.Top?new Asc.asc_CTextBorder(obj.Top):null;this.Right=undefined!=obj.Right&&null!=obj.Right?new Asc.asc_CTextBorder(obj.Right):null;this.Bottom=undefined!=obj.Bottom&&null!=obj.Bottom?new Asc.asc_CTextBorder(obj.Bottom):null;this.InsideH=undefined!=obj.InsideH&&null!=obj.InsideH?
|
|
new Asc.asc_CTextBorder(obj.InsideH):null;this.InsideV=undefined!=obj.InsideV&&null!=obj.InsideV?new Asc.asc_CTextBorder(obj.InsideV):null}}CBorders.prototype.get_Left=function(){return this.Left};CBorders.prototype.put_Left=function(v){this.Left=v?new Asc.asc_CTextBorder(v):null};CBorders.prototype.get_Top=function(){return this.Top};CBorders.prototype.put_Top=function(v){this.Top=v?new Asc.asc_CTextBorder(v):null};CBorders.prototype.get_Right=function(){return this.Right};CBorders.prototype.put_Right=
|
|
function(v){this.Right=v?new Asc.asc_CTextBorder(v):null};CBorders.prototype.get_Bottom=function(){return this.Bottom};CBorders.prototype.put_Bottom=function(v){this.Bottom=v?new Asc.asc_CTextBorder(v):null};CBorders.prototype.get_InsideH=function(){return this.InsideH};CBorders.prototype.put_InsideH=function(v){this.InsideH=v?new Asc.asc_CTextBorder(v):null};CBorders.prototype.get_InsideV=function(){return this.InsideV};CBorders.prototype.put_InsideV=function(v){this.InsideV=v?new Asc.asc_CTextBorder(v):
|
|
null};function CMargins(obj){if(obj){this.Left=undefined!=obj.Left?obj.Left:null;this.Right=undefined!=obj.Right?obj.Right:null;this.Top=undefined!=obj.Top?obj.Top:null;this.Bottom=undefined!=obj.Bottom?obj.Bottom:null;this.Flag=undefined!=obj.Flag?obj.Flag:null}else{this.Left=null;this.Right=null;this.Top=null;this.Bottom=null;this.Flag=null}}CMargins.prototype.get_Left=function(){return this.Left};CMargins.prototype.put_Left=function(v){this.Left=v};CMargins.prototype.get_Right=function(){return this.Right};
|
|
CMargins.prototype.put_Right=function(v){this.Right=v};CMargins.prototype.get_Top=function(){return this.Top};CMargins.prototype.put_Top=function(v){this.Top=v};CMargins.prototype.get_Bottom=function(){return this.Bottom};CMargins.prototype.put_Bottom=function(v){this.Bottom=v};CMargins.prototype.get_Flag=function(){return this.Flag};CMargins.prototype.put_Flag=function(v){this.Flag=v};window["Asc"]["CBorders"]=window["Asc"].CBorders=CBorders;CBorders.prototype["get_Left"]=CBorders.prototype.get_Left;
|
|
CBorders.prototype["put_Left"]=CBorders.prototype.put_Left;CBorders.prototype["get_Top"]=CBorders.prototype.get_Top;CBorders.prototype["put_Top"]=CBorders.prototype.put_Top;CBorders.prototype["get_Right"]=CBorders.prototype.get_Right;CBorders.prototype["put_Right"]=CBorders.prototype.put_Right;CBorders.prototype["get_Bottom"]=CBorders.prototype.get_Bottom;CBorders.prototype["put_Bottom"]=CBorders.prototype.put_Bottom;CBorders.prototype["get_InsideH"]=CBorders.prototype.get_InsideH;CBorders.prototype["put_InsideH"]=
|
|
CBorders.prototype.put_InsideH;CBorders.prototype["get_InsideV"]=CBorders.prototype.get_InsideV;CBorders.prototype["put_InsideV"]=CBorders.prototype.put_InsideV;window["Asc"]["CMargins"]=window["Asc"].CMargins=CMargins;CMargins.prototype["get_Left"]=CMargins.prototype.get_Left;CMargins.prototype["put_Left"]=CMargins.prototype.put_Left;CMargins.prototype["get_Right"]=CMargins.prototype.get_Right;CMargins.prototype["put_Right"]=CMargins.prototype.put_Right;CMargins.prototype["get_Top"]=CMargins.prototype.get_Top;
|
|
CMargins.prototype["put_Top"]=CMargins.prototype.put_Top;CMargins.prototype["get_Bottom"]=CMargins.prototype.get_Bottom;CMargins.prototype["put_Bottom"]=CMargins.prototype.put_Bottom;CMargins.prototype["get_Flag"]=CMargins.prototype.get_Flag;CMargins.prototype["put_Flag"]=CMargins.prototype.put_Flag;function CParagraphPropEx(obj){if(obj){this.ContextualSpacing=undefined!=obj.ContextualSpacing?obj.ContextualSpacing:null;this.Ind=undefined!=obj.Ind&&null!=obj.Ind?new Asc.asc_CParagraphInd(obj.Ind):
|
|
null;this.Jc=undefined!=obj.Jc?obj.Jc:null;this.KeepLines=undefined!=obj.KeepLines?obj.KeepLines:null;this.KeepNext=undefined!=obj.KeepNext?obj.KeepNext:null;this.PageBreakBefore=undefined!=obj.PageBreakBefore?obj.PageBreakBefore:null;this.Spacing=undefined!=obj.Spacing&&null!=obj.Spacing?new AscCommon.asc_CParagraphSpacing(obj.Spacing):null;this.Shd=undefined!=obj.Shd&&null!=obj.Shd?new Asc.asc_CParagraphShd(obj.Shd):null;this.WidowControl=undefined!=obj.WidowControl?obj.WidowControl:null;this.Tabs=
|
|
obj.Tabs;this.OutlineLvl=undefined!==obj.OutlineLvl?obj.OutlineLvl:0}else{this.ContextualSpacing=false;this.Ind=new Asc.asc_CParagraphInd;this.Jc=AscCommon.align_Left;this.KeepLines=false;this.KeepNext=false;this.PageBreakBefore=false;this.Spacing=new AscCommon.asc_CParagraphSpacing;this.Shd=new Asc.asc_CParagraphShd;this.WidowControl=true;this.Tabs=null;this.OutlineLvl=0}}CParagraphPropEx.prototype.get_ContextualSpacing=function(){return this.ContextualSpacing};CParagraphPropEx.prototype.get_Ind=
|
|
function(){return this.Ind};CParagraphPropEx.prototype.get_Jc=function(){return this.Jc};CParagraphPropEx.prototype.get_KeepLines=function(){return this.KeepLines};CParagraphPropEx.prototype.get_KeepNext=function(){return this.KeepNext};CParagraphPropEx.prototype.get_PageBreakBefore=function(){return this.PageBreakBefore};CParagraphPropEx.prototype.get_Spacing=function(){return this.Spacing};CParagraphPropEx.prototype.get_Shd=function(){return this.Shd};CParagraphPropEx.prototype.get_WidowControl=
|
|
function(){return this.WidowControl};CParagraphPropEx.prototype.get_Tabs=function(){return this.Tabs};CParagraphPropEx.prototype.get_OutlineLvl=function(){return this.OutlineLvl};function CTextProp(obj){if(obj){this.Bold=undefined!=obj.Bold?obj.Bold:null;this.Italic=undefined!=obj.Italic?obj.Italic:null;this.Underline=undefined!=obj.Underline?obj.Underline:null;this.Strikeout=undefined!=obj.Strikeout?obj.Strikeout:null;this.FontFamily=undefined!=obj.FontFamily&&null!=obj.FontFamily?new AscCommon.asc_CTextFontFamily(obj.FontFamily):
|
|
new AscCommon.asc_CTextFontFamily({Name:"",Index:-1});this.FontSize=undefined!=obj.FontSize?obj.FontSize:null;this.Color=undefined!=obj.Color&&null!=obj.Color?AscCommon.CreateAscColorCustom(obj.Color.r,obj.Color.g,obj.Color.b):null;this.VertAlign=undefined!=obj.VertAlign?obj.VertAlign:null;this.HighLight=undefined!=obj.HighLight?obj.HighLight==AscCommonWord.highlight_None?obj.HighLight:new AscCommon.CColor(obj.HighLight.r,obj.HighLight.g,obj.HighLight.b):null;this.DStrikeout=undefined!=obj.DStrikeout?
|
|
obj.DStrikeout:null;this.Spacing=undefined!=obj.Spacing?obj.Spacing:null;this.Caps=undefined!=obj.Caps?obj.Caps:null;this.SmallCaps=undefined!=obj.SmallCaps?obj.SmallCaps:null;this.Lang=undefined!=obj.Lang?obj.Lang.Val:null}else{this.Bold=false;this.Italic=false;this.Underline=false;this.Strikeout=false;this.FontFamily=new AscCommon.asc_CTextFontFamily;this.FontSize=12;this.Color=AscCommon.CreateAscColorCustom(0,0,0);this.VertAlign=AscCommon.vertalign_Baseline;this.HighLight=AscCommonWord.highlight_None;
|
|
this.DStrikeout=false;this.Spacing=0;this.Caps=false;this.SmallCaps=false;this.Lang=null}}CTextProp.prototype.get_Bold=function(){return this.Bold};CTextProp.prototype.get_Italic=function(){return this.Italic};CTextProp.prototype.get_Underline=function(){return this.Underline};CTextProp.prototype.get_Strikeout=function(){return this.Strikeout};CTextProp.prototype.get_FontFamily=function(){return this.FontFamily};CTextProp.prototype.get_FontSize=function(){return this.FontSize};CTextProp.prototype.get_Color=
|
|
function(){return this.Color};CTextProp.prototype.get_VertAlign=function(){return this.VertAlign};CTextProp.prototype.get_HighLight=function(){return this.HighLight};CTextProp.prototype.get_Spacing=function(){return this.Spacing};CTextProp.prototype.get_DStrikeout=function(){return this.DStrikeout};CTextProp.prototype.get_Caps=function(){return this.Caps};CTextProp.prototype.get_SmallCaps=function(){return this.SmallCaps};CTextProp.prototype.get_Lang=function(){return this.Lang};CParagraphPropEx.prototype["get_ContextualSpacing"]=
|
|
CParagraphPropEx.prototype.get_ContextualSpacing;CParagraphPropEx.prototype["get_Ind"]=CParagraphPropEx.prototype.get_Ind;CParagraphPropEx.prototype["get_Jc"]=CParagraphPropEx.prototype.get_Jc;CParagraphPropEx.prototype["get_KeepLines"]=CParagraphPropEx.prototype.get_KeepLines;CParagraphPropEx.prototype["get_KeepNext"]=CParagraphPropEx.prototype.get_KeepNext;CParagraphPropEx.prototype["get_PageBreakBefore"]=CParagraphPropEx.prototype.get_PageBreakBefore;CParagraphPropEx.prototype["get_Spacing"]=CParagraphPropEx.prototype.get_Spacing;
|
|
CParagraphPropEx.prototype["get_Shd"]=CParagraphPropEx.prototype.get_Shd;CParagraphPropEx.prototype["get_WidowControl"]=CParagraphPropEx.prototype.get_WidowControl;CParagraphPropEx.prototype["get_Tabs"]=CParagraphPropEx.prototype.get_Tabs;CParagraphPropEx.prototype["get_OutlineLvl"]=CParagraphPropEx.prototype.get_OutlineLvl;CTextProp.prototype["get_Bold"]=CTextProp.prototype.get_Bold;CTextProp.prototype["get_Italic"]=CTextProp.prototype.get_Italic;CTextProp.prototype["get_Underline"]=CTextProp.prototype.get_Underline;
|
|
CTextProp.prototype["get_Strikeout"]=CTextProp.prototype.get_Strikeout;CTextProp.prototype["get_FontFamily"]=CTextProp.prototype.get_FontFamily;CTextProp.prototype["get_FontSize"]=CTextProp.prototype.get_FontSize;CTextProp.prototype["get_Color"]=CTextProp.prototype.get_Color;CTextProp.prototype["get_VertAlign"]=CTextProp.prototype.get_VertAlign;CTextProp.prototype["get_HighLight"]=CTextProp.prototype.get_HighLight;CTextProp.prototype["get_Spacing"]=CTextProp.prototype.get_Spacing;CTextProp.prototype["get_DStrikeout"]=
|
|
CTextProp.prototype.get_DStrikeout;CTextProp.prototype["get_Caps"]=CTextProp.prototype.get_Caps;CTextProp.prototype["get_SmallCaps"]=CTextProp.prototype.get_SmallCaps;CTextProp.prototype["get_Lang"]=CTextProp.prototype.get_Lang;CTextProp.prototype["put_Bold"]=CTextProp.prototype.put_Bold=function(v){this.Bold=v};CTextProp.prototype["put_Italic"]=CTextProp.prototype.put_Italic=function(v){this.Italic=v};CTextProp.prototype["put_Underline"]=CTextProp.prototype.put_Underline=function(v){this.Underline=
|
|
v};CTextProp.prototype["put_Strikeout"]=CTextProp.prototype.put_Strikeout=function(v){this.Strikeout=v};CTextProp.prototype["put_FontFamily"]=CTextProp.prototype.put_FontFamily=function(v){this.FontFamily=v};CTextProp.prototype["put_FontSize"]=CTextProp.prototype.put_FontSize=function(v){this.FontSize=v};CTextProp.prototype["put_Color"]=CTextProp.prototype.put_Color=function(v){this.Color=v};CTextProp.prototype["put_VertAlign"]=CTextProp.prototype.put_VertAlign=function(v){this.VertAlign=v};CTextProp.prototype["put_HighLight"]=
|
|
CTextProp.prototype.put_HighLight=function(v){this.HighLight=v};CTextProp.prototype["put_Spacing"]=CTextProp.prototype.put_Spacing=function(v){this.Spacing=v};CTextProp.prototype["put_DStrikeout"]=CTextProp.prototype.put_DStrikeout=function(v){this.DStrikeout=v};CTextProp.prototype["put_Caps"]=CTextProp.prototype.put_Caps=function(v){this.Caps=v};CTextProp.prototype["put_SmallCaps"]=CTextProp.prototype.put_SmallCaps=function(v){this.SmallCaps=v};CTextProp.prototype["put_Lang"]=CTextProp.prototype.put_Lang=
|
|
function(v){this.Lang=v};window["Asc"]["CTextProp"]=window["Asc"].CTextProp=CTextProp;function CParagraphAndTextProp(paragraphProp,textProp){this.ParaPr=undefined!=paragraphProp&&null!=paragraphProp?new CParagraphPropEx(paragraphProp):null;this.TextPr=undefined!=textProp&&null!=textProp?new CTextProp(textProp):null}CParagraphAndTextProp.prototype.get_ParaPr=function(){return this.ParaPr};CParagraphAndTextProp.prototype.get_TextPr=function(){return this.TextPr};window["Asc"]["CParagraphAndTextProp"]=
|
|
window["Asc"].CParagraphAndTextProp=CParagraphAndTextProp;CParagraphAndTextProp.prototype["get_ParaPr"]=CParagraphAndTextProp.prototype.get_ParaPr;CParagraphAndTextProp.prototype["get_TextPr"]=CParagraphAndTextProp.prototype.get_TextPr;function CHeader(obj){if(obj){this.headerText=undefined!=obj.headerText?obj.headerText:null;this.pageNumber=undefined!=obj.pageNumber?obj.pageNumber:null;this.X=undefined!=obj.X?obj.X:null;this.Y=undefined!=obj.Y?obj.Y:null;this.level=undefined!=obj.level?obj.level:
|
|
null}else{this.headerText=null;this.pageNumber=null;this.X=null;this.Y=null;this.level=null}}CHeader.prototype.get_headerText=function(){return this.headerText};CHeader.prototype.get_pageNumber=function(){return this.pageNumber};CHeader.prototype.get_X=function(){return this.X};CHeader.prototype.get_Y=function(){return this.Y};CHeader.prototype.get_Level=function(){return this.level};window["Asc"]["CHeader"]=window["Asc"].CHeader=CHeader;CHeader.prototype["get_headerText"]=CHeader.prototype.get_headerText;
|
|
CHeader.prototype["get_pageNumber"]=CHeader.prototype.get_pageNumber;CHeader.prototype["get_X"]=CHeader.prototype.get_X;CHeader.prototype["get_Y"]=CHeader.prototype.get_Y;CHeader.prototype["get_Level"]=CHeader.prototype.get_Level;function CTableOfContentsPr(){this.Hyperlink=true;this.OutlineStart=1;this.OutlineEnd=9;this.Styles=[];this.PageNumbers=true;this.RightTab=true;this.TabLeader=undefined;this.StylesType=Asc.c_oAscTOCStylesType.Current;this.ComplexField=null;this.Caption=undefined;this.IsIncludeLabelAndNumber=
|
|
true}CTableOfContentsPr.prototype.InitFromTOCInstruction=function(oComplexField){if(!oComplexField)return;var oInstruction=oComplexField.GetInstruction();if(!oInstruction)return;this.Hyperlink=oInstruction.IsHyperlinks();this.OutlineStart=oInstruction.GetHeadingRangeStart();this.OutlineEnd=oInstruction.GetHeadingRangeEnd();this.Styles=oInstruction.GetStylesArray();this.PageNumbers=!oInstruction.IsSkipPageRefLvl();this.RightTab=""===oInstruction.GetSeparator();var oBeginChar=oComplexField.GetBeginChar();
|
|
if(oBeginChar&&oBeginChar.GetRun()&&oBeginChar.GetRun().GetParagraph()){var oTabs=oBeginChar.GetRun().GetParagraph().GetParagraphTabs();if(oTabs.Tabs.length>0)this.TabLeader=oTabs.Tabs[oTabs.Tabs.length-1].Leader}this.ComplexField=oComplexField;if(oInstruction.IsTableOfFigures()){this.Caption=oInstruction.Caption||oInstruction.CaptionOnlyText;if(!this.Caption)this.Caption=null;this.IsIncludeLabelAndNumber=this.CaptionOnlyText===undefined}};CTableOfContentsPr.prototype.InitFromSdtTOC=function(oSdtTOC){this.ComplexField=
|
|
oSdtTOC};CTableOfContentsPr.prototype.CheckStylesType=function(oStyles){if(oStyles)if(this.Caption!==undefined)this.StylesType=oStyles.GetTOFStyleType();else this.StylesType=oStyles.GetTOCStylesType()};CTableOfContentsPr.prototype.get_Hyperlink=function(){return this.Hyperlink};CTableOfContentsPr.prototype.put_Hyperlink=function(isHyperlink){this.Hyperlink=isHyperlink};CTableOfContentsPr.prototype.get_OutlineStart=function(){return this.OutlineStart};CTableOfContentsPr.prototype.get_OutlineEnd=function(){return this.OutlineEnd};
|
|
CTableOfContentsPr.prototype.put_OutlineRange=function(nStart,nEnd){this.OutlineStart=nStart;this.OutlineEnd=nEnd};CTableOfContentsPr.prototype.get_StylesCount=function(){return this.Styles.length};CTableOfContentsPr.prototype.get_StyleName=function(nIndex){if(nIndex<0||nIndex>=this.Styles.length)return"";return this.Styles[nIndex].Name};CTableOfContentsPr.prototype.get_StyleLevel=function(nIndex){if(nIndex<0||nIndex>=this.Styles.length)return-1;return this.Styles[nIndex].Lvl};CTableOfContentsPr.prototype.get_Styles=
|
|
function(){return this.Styles};CTableOfContentsPr.prototype.clear_Styles=function(){this.Styles=[]};CTableOfContentsPr.prototype.add_Style=function(sName,nLvl){this.Styles.push({Name:sName,Lvl:nLvl})};CTableOfContentsPr.prototype.put_ShowPageNumbers=function(isShow){this.PageNumbers=isShow};CTableOfContentsPr.prototype.get_ShowPageNumbers=function(){return this.PageNumbers};CTableOfContentsPr.prototype.put_RightAlignTab=function(isRightTab){this.RightTab=isRightTab};CTableOfContentsPr.prototype.get_RightAlignTab=
|
|
function(){return this.RightTab};CTableOfContentsPr.prototype.put_TabLeader=function(nTabLeader){this.TabLeader=nTabLeader};CTableOfContentsPr.prototype.get_TabLeader=function(){return this.TabLeader};CTableOfContentsPr.prototype.get_StylesType=function(){return this.StylesType};CTableOfContentsPr.prototype.put_StylesType=function(nType){this.StylesType=nType};CTableOfContentsPr.prototype.get_InternalClass=function(){return this.ComplexField};CTableOfContentsPr.prototype.put_Caption=function(sCaption){this.Caption=
|
|
sCaption};CTableOfContentsPr.prototype.get_Caption=function(){return this.Caption};CTableOfContentsPr.prototype.get_CaptionForInstruction=function(){if(typeof this.Caption==="string"){var aSplit=this.Caption.split(" ");var sResult=aSplit[0];for(var nIdx=1;nIdx<aSplit.length;++nIdx)sResult+="_"+aSplit[nIdx];return sResult}return this.Caption};CTableOfContentsPr.prototype.put_IncludeLabelAndNumber=function(bInclude){this.IsIncludeLabelAndNumber=bInclude};CTableOfContentsPr.prototype.get_IncludeLabelAndNumber=
|
|
function(){return this.IsIncludeLabelAndNumber};window["Asc"]["CTableOfContentsPr"]=window["Asc"].CTableOfContentsPr=CTableOfContentsPr;CTableOfContentsPr.prototype["get_Hyperlink"]=CTableOfContentsPr.prototype.get_Hyperlink;CTableOfContentsPr.prototype["put_Hyperlink"]=CTableOfContentsPr.prototype.put_Hyperlink;CTableOfContentsPr.prototype["get_OutlineStart"]=CTableOfContentsPr.prototype.get_OutlineStart;CTableOfContentsPr.prototype["get_OutlineEnd"]=CTableOfContentsPr.prototype.get_OutlineEnd;CTableOfContentsPr.prototype["put_OutlineRange"]=
|
|
CTableOfContentsPr.prototype.put_OutlineRange;CTableOfContentsPr.prototype["get_StylesCount"]=CTableOfContentsPr.prototype.get_StylesCount;CTableOfContentsPr.prototype["get_StyleName"]=CTableOfContentsPr.prototype.get_StyleName;CTableOfContentsPr.prototype["get_StyleLevel"]=CTableOfContentsPr.prototype.get_StyleLevel;CTableOfContentsPr.prototype["clear_Styles"]=CTableOfContentsPr.prototype.clear_Styles;CTableOfContentsPr.prototype["add_Style"]=CTableOfContentsPr.prototype.add_Style;CTableOfContentsPr.prototype["put_ShowPageNumbers"]=
|
|
CTableOfContentsPr.prototype.put_ShowPageNumbers;CTableOfContentsPr.prototype["get_ShowPageNumbers"]=CTableOfContentsPr.prototype.get_ShowPageNumbers;CTableOfContentsPr.prototype["put_RightAlignTab"]=CTableOfContentsPr.prototype.put_RightAlignTab;CTableOfContentsPr.prototype["get_RightAlignTab"]=CTableOfContentsPr.prototype.get_RightAlignTab;CTableOfContentsPr.prototype["get_TabLeader"]=CTableOfContentsPr.prototype.get_TabLeader;CTableOfContentsPr.prototype["put_TabLeader"]=CTableOfContentsPr.prototype.put_TabLeader;
|
|
CTableOfContentsPr.prototype["get_StylesType"]=CTableOfContentsPr.prototype.get_StylesType;CTableOfContentsPr.prototype["put_StylesType"]=CTableOfContentsPr.prototype.put_StylesType;CTableOfContentsPr.prototype["get_InternalClass"]=CTableOfContentsPr.prototype.get_InternalClass;CTableOfContentsPr.prototype["put_Caption"]=CTableOfContentsPr.prototype.put_Caption;CTableOfContentsPr.prototype["get_Caption"]=CTableOfContentsPr.prototype.get_Caption;CTableOfContentsPr.prototype["put_IncludeLabelAndNumber"]=
|
|
CTableOfContentsPr.prototype.put_IncludeLabelAndNumber;CTableOfContentsPr.prototype["get_IncludeLabelAndNumber"]=CTableOfContentsPr.prototype.get_IncludeLabelAndNumber;function CAscStyle(){this.Name="";this.Type=Asc.c_oAscStyleType.Paragraph;this.qFormat=undefined;this.uiPriority=undefined;this.StyleId=""}CAscStyle.prototype.get_Name=function(){return this.Name};CAscStyle.prototype.put_Name=function(sName){this.Name=sName};CAscStyle.prototype.get_Type=function(){return this.Type};CAscStyle.prototype.put_Type=
|
|
function(nType){this.Type=nType};CAscStyle.prototype.get_QFormat=function(){return this.qFormat};CAscStyle.prototype.put_QFormat=function(isQFormat){this.qFormat=isQFormat};CAscStyle.prototype.get_UIPriority=function(){return this.uiPriority};CAscStyle.prototype.put_UIPriority=function(nPriority){this.uiPriority=nPriority};CAscStyle.prototype.get_StyleId=function(){return this.StyleId};CAscStyle.prototype.get_TranslatedName=function(){if(typeof this.Name==="string"&&this.Name.length>0)return AscCommon.translateManager.getValue(this.Name);
|
|
return this.Name};window["Asc"]["CAscStyle"]=window["Asc"].CAscStyle=CAscStyle;CAscStyle.prototype["get_Name"]=CAscStyle.prototype.get_Name;CAscStyle.prototype["put_Name"]=CAscStyle.prototype.put_Name;CAscStyle.prototype["get_Type"]=CAscStyle.prototype.get_Type;CAscStyle.prototype["put_Type"]=CAscStyle.prototype.put_Type;CAscStyle.prototype["get_QFormat"]=CAscStyle.prototype.get_QFormat;CAscStyle.prototype["put_QFormat"]=CAscStyle.prototype.put_QFormat;CAscStyle.prototype["get_UIPriority"]=CAscStyle.prototype.get_UIPriority;
|
|
CAscStyle.prototype["put_UIPriority"]=CAscStyle.prototype.put_UIPriority;CAscStyle.prototype["get_StyleId"]=CAscStyle.prototype.get_StyleId;CAscStyle.prototype["get_TranslatedName"]=CAscStyle.prototype.get_TranslatedName;function CAscNumbering(){this.NumId="";this.Lvl=new Array(9);for(var nLvl=0;nLvl<9;++nLvl)this.Lvl[nLvl]=new CAscNumberingLvl(nLvl)}CAscNumbering.prototype.get_InternalId=function(){return this.NumId};CAscNumbering.prototype.get_Lvl=function(nLvl){if(nLvl<0)return this.Lvl[0];else if(nLvl>
|
|
8)return this.Lvl[8];else if(!this.Lvl[nLvl])return this.Lvl[0];return this.Lvl[nLvl]};window["Asc"]["CAscNumbering"]=window["Asc"].CAscNumbering=CAscNumbering;CAscNumbering.prototype["get_InternalId"]=CAscNumbering.prototype.get_InternalId;CAscNumbering.prototype["get_Lvl"]=CAscNumbering.prototype.get_Lvl;function CAscNumberingLvlText(Type,Value){this.Type=undefined!==Type?Type:Asc.c_oAscNumberingLvlTextType.Text;this.Value=undefined!==Value?Value:""}CAscNumberingLvlText.prototype.get_Type=function(){return this.Type};
|
|
CAscNumberingLvlText.prototype.put_Type=function(nType){this.Type=nType};CAscNumberingLvlText.prototype.get_Value=function(){return this.Value};CAscNumberingLvlText.prototype.put_Value=function(vVal){this.Value=vVal};window["Asc"]["CAscNumberingLvlText"]=window["Asc"].CAscNumberingLvlText=CAscNumberingLvlText;CAscNumberingLvlText.prototype["get_Type"]=CAscNumberingLvlText.prototype.get_Type;CAscNumberingLvlText.prototype["put_Type"]=CAscNumberingLvlText.prototype.put_Type;CAscNumberingLvlText.prototype["get_Value"]=
|
|
CAscNumberingLvlText.prototype.get_Value;CAscNumberingLvlText.prototype["put_Value"]=CAscNumberingLvlText.prototype.put_Value;function CAscNumberingLvl(nLvlNum){this.LvlNum=nLvlNum;this.Format=Asc.c_oAscNumberingFormat.Bullet;this.Text=[];this.TextPr=new AscCommonWord.CTextPr;this.ParaPr=new AscCommonWord.CParaPr;this.Start=1;this.Restart=-1;this.Suff=Asc.c_oAscNumberingSuff.Tab;this.Align=AscCommon.align_Left;this.PStyle=undefined}CAscNumberingLvl.prototype.get_LvlNum=function(){return this.LvlNum};
|
|
CAscNumberingLvl.prototype.get_Format=function(){return this.Format};CAscNumberingLvl.prototype.put_Format=function(nFormat){this.Format=nFormat};CAscNumberingLvl.prototype.get_Text=function(){return this.Text};CAscNumberingLvl.prototype.put_Text=function(arrText){this.Text=arrText};CAscNumberingLvl.prototype.get_TextPr=function(){return this.TextPr};CAscNumberingLvl.prototype.get_ParaPr=function(){return this.ParaPr};CAscNumberingLvl.prototype.get_Start=function(){return this.Start};CAscNumberingLvl.prototype.put_Start=
|
|
function(nStart){this.Start=nStart};CAscNumberingLvl.prototype.get_Restart=function(){return this.Restart};CAscNumberingLvl.prototype.put_Restart=function(nRestart){this.Restart=nRestart};CAscNumberingLvl.prototype.get_Suff=function(){return this.Suff};CAscNumberingLvl.prototype.put_Suff=function(nSuff){this.Suff=nSuff};CAscNumberingLvl.prototype.get_Align=function(){return this.Align};CAscNumberingLvl.prototype.put_Align=function(nAlign){this.Align=nAlign};CAscNumberingLvl.prototype.get_PStyle=function(){return this.PStyle};
|
|
CAscNumberingLvl.prototype.put_PStyle=function(sStyleId){this.PStyle=sStyleId};window["Asc"]["CAscNumberingLvl"]=window["Asc"].CAscNumberingLvl=CAscNumberingLvl;CAscNumberingLvl.prototype["get_LvlNum"]=CAscNumberingLvl.prototype.get_LvlNum;CAscNumberingLvl.prototype["get_Format"]=CAscNumberingLvl.prototype.get_Format;CAscNumberingLvl.prototype["put_Format"]=CAscNumberingLvl.prototype.put_Format;CAscNumberingLvl.prototype["get_Text"]=CAscNumberingLvl.prototype.get_Text;CAscNumberingLvl.prototype["put_Text"]=
|
|
CAscNumberingLvl.prototype.put_Text;CAscNumberingLvl.prototype["get_TextPr"]=CAscNumberingLvl.prototype.get_TextPr;CAscNumberingLvl.prototype["get_ParaPr"]=CAscNumberingLvl.prototype.get_ParaPr;CAscNumberingLvl.prototype["get_Start"]=CAscNumberingLvl.prototype.get_Start;CAscNumberingLvl.prototype["put_Start"]=CAscNumberingLvl.prototype.put_Start;CAscNumberingLvl.prototype["get_Restart"]=CAscNumberingLvl.prototype.get_Restart;CAscNumberingLvl.prototype["put_Restart"]=CAscNumberingLvl.prototype.put_Restart;
|
|
CAscNumberingLvl.prototype["get_Suff"]=CAscNumberingLvl.prototype.get_Suff;CAscNumberingLvl.prototype["put_Suff"]=CAscNumberingLvl.prototype.put_Suff;CAscNumberingLvl.prototype["get_Align"]=CAscNumberingLvl.prototype.get_Align;CAscNumberingLvl.prototype["put_Align"]=CAscNumberingLvl.prototype.put_Align;CAscNumberingLvl.prototype["get_PStyle"]=CAscNumberingLvl.prototype.get_PStyle;CAscNumberingLvl.prototype["put_PStyle"]=CAscNumberingLvl.prototype.put_PStyle;function CAscWatermarkProperties(){this.Type=
|
|
Asc.c_oAscWatermarkType.None;this.Text=null;this.TextPr=null;this.Opacity=null;this.IsDiagonal=null;this.ImageUrl=null;this.Scale=null;this.DivId=null;this.Api=null}window["Asc"]["CAscWatermarkProperties"]=window["Asc"].CAscWatermarkProperties=CAscWatermarkProperties;CAscWatermarkProperties.prototype["put_Api"]=CAscWatermarkProperties.prototype.put_Api=function(v){this.Api=v};CAscWatermarkProperties.prototype["put_Type"]=CAscWatermarkProperties.prototype.put_Type=function(v){this.Type=v};CAscWatermarkProperties.prototype["get_Type"]=
|
|
CAscWatermarkProperties.prototype.get_Type=function(){return this.Type};CAscWatermarkProperties.prototype["put_Text"]=CAscWatermarkProperties.prototype.put_Text=function(v){this.Text=v};CAscWatermarkProperties.prototype["get_Text"]=CAscWatermarkProperties.prototype.get_Text=function(){return this.Text};CAscWatermarkProperties.prototype["put_TextPr"]=CAscWatermarkProperties.prototype.put_TextPr=function(v){this.TextPr=v};CAscWatermarkProperties.prototype["get_TextPr"]=CAscWatermarkProperties.prototype.get_TextPr=
|
|
function(){return this.TextPr};CAscWatermarkProperties.prototype["put_Opacity"]=CAscWatermarkProperties.prototype.put_Opacity=function(v){this.Opacity=v};CAscWatermarkProperties.prototype["get_Opacity"]=CAscWatermarkProperties.prototype.get_Opacity=function(){return this.Opacity};CAscWatermarkProperties.prototype["put_IsDiagonal"]=CAscWatermarkProperties.prototype.put_IsDiagonal=function(v){this.IsDiagonal=v};CAscWatermarkProperties.prototype["get_IsDiagonal"]=CAscWatermarkProperties.prototype.get_IsDiagonal=
|
|
function(){return this.IsDiagonal};CAscWatermarkProperties.prototype["put_ImageUrl"]=CAscWatermarkProperties.prototype.put_ImageUrl=function(sUrl,token){var _this=this;if(!_this.Api)return;AscCommon.sendImgUrls(_this.Api,[sUrl],function(data){if(data&&data[0]&&data[0].url!=="error"){var url=AscCommon.g_oDocumentUrls.imagePath2Local(data[0].path);_this.Api.ImageLoader.LoadImagesWithCallback([AscCommon.getFullImageSrc2(url)],function(){_this.ImageUrl=url;_this.Type=Asc.c_oAscWatermarkType.Image;_this.drawTexture();
|
|
_this.Api.sendEvent("asc_onWatermarkImageLoaded")})}},false,undefined,token)};CAscWatermarkProperties.prototype["put_ImageUrl2"]=CAscWatermarkProperties.prototype.put_ImageUrl2=function(sUrl){this.ImageUrl=sUrl};CAscWatermarkProperties.prototype["get_ImageUrl"]=CAscWatermarkProperties.prototype.get_ImageUrl=function(){return this.ImageUrl};CAscWatermarkProperties.prototype["put_Scale"]=CAscWatermarkProperties.prototype.put_Scale=function(v){this.Scale=v};CAscWatermarkProperties.prototype["get_Scale"]=
|
|
CAscWatermarkProperties.prototype.get_Scale=function(){return this.Scale};CAscWatermarkProperties.prototype["put_DivId"]=CAscWatermarkProperties.prototype.put_DivId=function(v){this.DivId=v;this.drawTexture()};CAscWatermarkProperties.prototype["updateView"]=CAscWatermarkProperties.prototype.updateView=function(v){this.drawTexture()};CAscWatermarkProperties.prototype["showFileDialog"]=CAscWatermarkProperties.prototype.showFileDialog=function(){if(!this.Api||!this.DivId)return;var t=this.Api;var _this=
|
|
this;AscCommon.ShowImageFileDialog(t.documentId,t.documentUserId,t.CoAuthoringApi.get_jwt(),function(error,files){if(Asc.c_oAscError.ID.No!==error)t.sendEvent("asc_onError",error,Asc.c_oAscError.Level.NoCritical);else{t.sync_StartAction(Asc.c_oAscAsyncActionType.BlockInteraction,Asc.c_oAscAsyncAction.UploadImage);AscCommon.UploadImageFiles(files,t.documentId,t.documentUserId,t.CoAuthoringApi.get_jwt(),function(error,urls){if(Asc.c_oAscError.ID.No!==error){t.sendEvent("asc_onError",error,Asc.c_oAscError.Level.NoCritical);
|
|
t.sync_EndAction(Asc.c_oAscAsyncActionType.BlockInteraction,Asc.c_oAscAsyncAction.UploadImage)}else t.ImageLoader.LoadImagesWithCallback(urls,function(){if(urls.length>0){_this.ImageUrl=urls[0];_this.Type=Asc.c_oAscWatermarkType.Image;_this.drawTexture();t.sendEvent("asc_onWatermarkImageLoaded")}t.sync_EndAction(Asc.c_oAscAsyncActionType.BlockInteraction,Asc.c_oAscAsyncAction.UploadImage)})})}},function(error){if(Asc.c_oAscError.ID.No!==error)t.sendEvent("asc_onError",error,Asc.c_oAscError.Level.NoCritical);
|
|
t.sync_StartAction(Asc.c_oAscAsyncActionType.BlockInteraction,Asc.c_oAscAsyncAction.UploadImage)})};CAscWatermarkProperties.prototype["loadImageUrl"]=CAscWatermarkProperties.prototype.loadImageUrl=function(sUrl,token){var _this=this;if(!_this.Api)return;AscCommon.sendImgUrls(_this.Api,[sUrl],function(data){if(data&&data[0]&&data[0].url!=="error")_this.ImageLoader.LoadImagesWithCallback([data[0].url],function(){_this.ImageUrl=data[0].url;_this.Type=Asc.c_oAscWatermarkType.Image;_this.drawTexture();
|
|
_this.sendEvent("asc_onWatermarkImageLoaded")})},false,undefined,token)};CAscWatermarkProperties.prototype["drawTexture"]=CAscWatermarkProperties.prototype.drawTexture=function(){if(!this.ImageUrl||!this.Api)return;var oDiv=document.getElementById(this.DivId);if(!oDiv)return;var aChildren=oDiv.children;var oCanvas=null;for(var i=0;i<aChildren.length;++i)if(aChildren[i].nodeName&&aChildren[i].nodeName.toUpperCase()==="CANVAS"){oCanvas=aChildren[i];break}var nWidth=oDiv.clientWidth;var nHeight=oDiv.clientHeight;
|
|
if(null===oCanvas){oCanvas=document.createElement("canvas");oCanvas.width=parseInt(nWidth);oCanvas.height=parseInt(nHeight);oDiv.appendChild(oCanvas)}var oContext=oCanvas.getContext("2d");oContext.clearRect(0,0,oCanvas.width,oCanvas.height);var _img=this.Api.ImageLoader.map_image_index[AscCommon.getFullImageSrc2(this.ImageUrl)];if(_img!=undefined&&_img.Image!=null&&_img.Status!=AscFonts.ImageLoadStatus.Loading){var _x=0;var _y=0;var _w=Math.max(_img.Image.width,1);var _h=Math.max(_img.Image.height,
|
|
1);var dAspect1=nWidth/nHeight;var dAspect2=_w/_h;_w=nWidth;_h=nHeight;if(dAspect1>=dAspect2){_w=dAspect2*nHeight;_x=(nWidth-_w)/2}else{_h=_w/dAspect2;_y=(nHeight-_h)/2}oContext.drawImage(_img.Image,_x,_y,_w,_h)}else if(!_img||!_img.Image){oContext.lineWidth=1;oContext.beginPath();oContext.moveTo(0,0);oContext.lineTo(nWidth,nHeight);oContext.moveTo(nWidth,0);oContext.lineTo(0,nHeight);oContext.strokeStyle="#FF0000";oContext.stroke();oContext.beginPath();oContext.moveTo(0,0);oContext.lineTo(nWidth,
|
|
0);oContext.lineTo(nWidth,nHeight);oContext.lineTo(0,nHeight);oContext.closePath();oContext.strokeStyle="#000000";oContext.stroke();oContext.beginPath()}};function CAscCaptionProperties(){this.Name=null;this.Additional=null;this.Label=null;this.Before=false;this.ExcludeLabel=false;this.Format=Asc.c_oAscNumberingFormat.Decimal;this.IncludeChapterNumber=false;this.HeadingLvl=null;this.Separator=":";this.Document=null}function CAscDateTime(){this.Format=null;this.Update=true;this.Lang=null}CAscDateTime.prototype.get_Format=
|
|
function(){return this.Format};CAscDateTime.prototype.put_Format=function(v){this.Format=v};CAscDateTime.prototype.get_Update=function(){return this.Update};CAscDateTime.prototype.put_Update=function(v){this.Update=v};CAscDateTime.prototype.get_Lang=function(){return this.Lang};CAscDateTime.prototype.put_Lang=function(v){this.Lang=v};CAscDateTime.prototype.get_FormatsExamples=function(){return["M/d/yyyy","dddd, MMMM d, yyyy","MMMM d, yyyy","M/d/yy","yyyy-MM-dd","d-MMM-yy","M.d.yyyy","MMM. d, yy",
|
|
"d MMMM yyyy","MMMM yy","MMM-yy","M/d/yyyy h:mm am/pm","M/d/yyyy h:mm:ss am/pm","h:mm am/pm","h:mm:ss am/pm","HH:mm","HH:mm:ss"]};CAscDateTime.prototype.get_String=function(sFormat,sDate,nLangId){if(undefined===sFormat)sFormat=this.Format;if(undefined===nLangId)nLangId=this.Lang;var oFormat=AscCommon.oNumFormatCache.get(sFormat,AscCommon.NumFormatType.WordFieldDate);if(oFormat){var oCultureInfo=AscCommon.g_aCultureInfos[nLangId];if(!oCultureInfo)oCultureInfo=AscCommon.g_aCultureInfos[1033];var oDateTime=
|
|
sDate?new Asc.cDate(sDate):new Asc.cDate;return oFormat.formatToWord(oDateTime.getExcelDate()+(oDateTime.getHours()*60*60+oDateTime.getMinutes()*60+oDateTime.getSeconds())/AscCommonExcel.c_sPerDay,15,oCultureInfo)}return sDate};window["Asc"]["CAscDateTime"]=window["Asc"].CAscDateTime=CAscDateTime;CAscDateTime.prototype["get_Format"]=CAscDateTime.prototype.get_Format;CAscDateTime.prototype["put_Format"]=CAscDateTime.prototype.put_Format;CAscDateTime.prototype["get_Update"]=CAscDateTime.prototype.get_Update;
|
|
CAscDateTime.prototype["put_Update"]=CAscDateTime.prototype.put_Update;CAscDateTime.prototype["get_Lang"]=CAscDateTime.prototype.get_Lang;CAscDateTime.prototype["put_Lang"]=CAscDateTime.prototype.put_Lang;CAscDateTime.prototype["get_FormatsExamples"]=CAscDateTime.prototype.get_FormatsExamples;CAscDateTime.prototype["get_String"]=CAscDateTime.prototype.get_String;window["Asc"]["CAscCaptionProperties"]=window["Asc"].CAscCaptionProperties=CAscCaptionProperties;var prot=CAscCaptionProperties.prototype;
|
|
prot.get_Name=prot["get_Name"]=function(){return this.Name};prot.get_Label=prot["get_Label"]=function(){if(typeof this.Label==="string"){var aSplit=this.Label.split("_");var sResult=aSplit[0];for(var nIdx=1;nIdx<aSplit.length;++nIdx)sResult+=" "+aSplit[nIdx];return sResult}return this.Label};prot.get_Before=prot["get_Before"]=function(){return this.Before};prot.get_ExcludeLabel=prot["get_ExcludeLabel"]=function(){return this.ExcludeLabel};prot.get_Format=prot["get_Format"]=function(){return this.Format};
|
|
prot.get_FormatGeneral=prot["get_FormatGeneral"]=function(){switch(this.Format){case Asc.c_oAscNumberingFormat.UpperLetter:{return"ALPHABETIC"}case Asc.c_oAscNumberingFormat.LowerLetter:{return"alphabetic"}case Asc.c_oAscNumberingFormat.UpperRoman:{return"Roman"}case Asc.c_oAscNumberingFormat.LowerRoman:{return"roman"}default:{return"Arabic"}}};prot.get_IncludeChapterNumber=prot["get_IncludeChapterNumber"]=function(){return this.IncludeChapterNumber};prot.get_HeadingLvl=prot["get_HeadingLvl"]=function(){return this.HeadingLvl};
|
|
prot.get_Separator=prot["get_Separator"]=function(){return this.Separator};prot.get_Additional=prot["get_Additional"]=function(){return this.Additional};prot.put_Name=prot["put_Name"]=function(v){this.Name=v};prot.put_Label=prot["put_Label"]=function(v){this.Label=v};prot.put_Before=prot["put_Before"]=function(v){this.Before=v};prot.put_ExcludeLabel=prot["put_ExcludeLabel"]=function(v){this.ExcludeLabel=v};prot.put_Format=prot["put_Format"]=function(v){this.Format=v};prot.put_IncludeChapterNumber=
|
|
prot["put_IncludeChapterNumber"]=function(v){this.IncludeChapterNumber=v};prot.put_HeadingLvl=prot["put_HeadingLvl"]=function(v){this.HeadingLvl=v};prot.put_Separator=prot["put_Separator"]=function(v){this.Separator=v};prot.put_Additional=prot["put_Additional"]=function(v){this.Additional=v};prot.getSeqInstruction=function(){var oComplexField=new CFieldInstructionSEQ;if(this.Format)oComplexField.SetGeneralSwitches([this.Format]);if(this.Label)oComplexField.SetId(this.getLabelForInstruction());if(AscFormat.isRealNumber(this.HeadingLvl))oComplexField.SetS(this.HeadingLvl);
|
|
return oComplexField};prot.getLabelForInstruction=function(){if(typeof this.Label==="string"){var aSplited=this.Label.split(" ");var sResult=aSplited[0];for(var nIdx=1;nIdx<aSplited.length;++nIdx)sResult+="_"+aSplited[nIdx];return sResult}return""};prot.getSeqInstructionLine=function(){return this.getSeqInstruction().ToString()};prot.updateName=prot["updateName"]=function(){this.Name="";if(!this.ExcludeLabel)if(typeof this.Label==="string"&&this.Label.length>0)this.Name+=this.Label+" ";if(this.IncludeChapterNumber){this.Name+=
|
|
"1";if(typeof this.Separator==="string"&&this.Separator.length>0)this.Name+=this.Separator;else this.Name+=" "}this.Name+=AscCommon.IntToNumberFormat(1,this.Format)};function CAscTextToTableProperties(oSelectedContent){this.Rows=0;this.Cols=0;this.AutoFitType=Asc.c_oAscTextToTableAutoFitType.Fixed;this.FitValue=-1;this.SeparatorType=Asc.c_oAscTextToTableSeparator.Paragraph;this.Separator=null;this.Selected=oSelectedContent}CAscTextToTableProperties.prototype.get_Size=function(){return[this.Rows,this.Cols]};
|
|
CAscTextToTableProperties.prototype.put_ColsCount=function(nCols){this.Cols=nCols>1?nCols:1;this.CalculateTableSize(true);return this.get_Size()};CAscTextToTableProperties.prototype.get_ColsCount=function(){return this.Cols};CAscTextToTableProperties.prototype.put_RowsCount=function(nRows){this.Rows=nRows>1?nRows:1};CAscTextToTableProperties.prototype.get_RowsCount=function(){return this.Rows};CAscTextToTableProperties.prototype.get_AutoFitType=function(){return this.AutoFitType};CAscTextToTableProperties.prototype.put_AutoFitType=
|
|
function(nAutoFitType){this.AutoFitType=nAutoFitType};CAscTextToTableProperties.prototype.get_Fit=function(){return this.FitValue};CAscTextToTableProperties.prototype.put_Fit=function(val){this.FitValue=val};CAscTextToTableProperties.prototype.get_SeparatorType=function(){return this.SeparatorType};CAscTextToTableProperties.prototype.put_SeparatorType=function(nSeparatorType){this.SeparatorType=nSeparatorType;this.CalculateTableSize();return this.get_Size()};CAscTextToTableProperties.prototype.get_Separator=
|
|
function(){return this.Separator};CAscTextToTableProperties.prototype.put_Separator=function(nCharCode){this.Separator=nCharCode;return this.put_SeparatorType(Asc.c_oAscTextToTableSeparator.Symbol)};CAscTextToTableProperties.prototype.CalculateTableSize=function(isColsFixed){var nMaxCols=isColsFixed?this.Cols:0;var oEngine=new AscCommonWord.CTextToTableEngine;oEngine.SetCalculateTableSizeMode(this.SeparatorType,this.Separator,nMaxCols);for(var nIndex=0,nCount=this.Selected.Elements.length;nIndex<
|
|
nCount;++nIndex){var oElement=this.Selected.Elements[nIndex].Element;oElement.CalculateTextToTable(oEngine)}var nCols=isColsFixed?nMaxCols:oEngine.Cols;var nRows=oEngine.Rows;this.Cols=nCols>1?nCols:1;this.Rows=nRows>1?nRows:1};window["Asc"]["CAscTextToTableProperties"]=window["Asc"].CAscTextToTableProperties=CAscTextToTableProperties;CAscTextToTableProperties.prototype["get_Size"]=CAscTextToTableProperties.prototype.get_Size;CAscTextToTableProperties.prototype["put_RowsCount"]=CAscTextToTableProperties.prototype.put_RowsCount;
|
|
CAscTextToTableProperties.prototype["get_RowsCount"]=CAscTextToTableProperties.prototype.get_RowsCount;CAscTextToTableProperties.prototype["put_ColsCount"]=CAscTextToTableProperties.prototype.put_ColsCount;CAscTextToTableProperties.prototype["get_ColsCount"]=CAscTextToTableProperties.prototype.get_ColsCount;CAscTextToTableProperties.prototype["get_AutoFitType"]=CAscTextToTableProperties.prototype.get_AutoFitType;CAscTextToTableProperties.prototype["put_AutoFitType"]=CAscTextToTableProperties.prototype.put_AutoFitType;
|
|
CAscTextToTableProperties.prototype["get_Fit"]=CAscTextToTableProperties.prototype.get_Fit;CAscTextToTableProperties.prototype["put_Fit"]=CAscTextToTableProperties.prototype.put_Fit;CAscTextToTableProperties.prototype["get_SeparatorType"]=CAscTextToTableProperties.prototype.get_SeparatorType;CAscTextToTableProperties.prototype["put_SeparatorType"]=CAscTextToTableProperties.prototype.put_SeparatorType;CAscTextToTableProperties.prototype["get_Separator"]=CAscTextToTableProperties.prototype.get_Separator;
|
|
CAscTextToTableProperties.prototype["put_Separator"]=CAscTextToTableProperties.prototype.put_Separator})(window,undefined);"use strict";
|
|
(function(window,document){var locktype_None=AscCommon.locktype_None;var locktype_Mine=AscCommon.locktype_Mine;var locktype_Other=AscCommon.locktype_Other;var locktype_Other2=AscCommon.locktype_Other2;var locktype_Other3=AscCommon.locktype_Other3;var changestype_Drawing_Props=AscCommon.changestype_Drawing_Props;var asc_CSelectedObject=AscCommon.asc_CSelectedObject;var g_oDocumentUrls=AscCommon.g_oDocumentUrls;var sendCommand=AscCommon.sendCommand;var g_oIdCounter=AscCommon.g_oIdCounter;var g_oTableId=
|
|
AscCommon.g_oTableId;var PasteElementsId=null;var global_mouseEvent=null;var History=null;var c_oAscError=Asc.c_oAscError;var c_oAscFileType=Asc.c_oAscFileType;var c_oAscAsyncAction=Asc.c_oAscAsyncAction;var c_oAscAdvancedOptionsID=Asc.c_oAscAdvancedOptionsID;var c_oAscAsyncActionType=Asc.c_oAscAsyncActionType;var c_oAscTypeSelectElement=Asc.c_oAscTypeSelectElement;var c_oAscFill=Asc.c_oAscFill;var asc_CShapeFill=Asc.asc_CShapeFill;var asc_CFillBlip=Asc.asc_CFillBlip;var c_oAscFontRenderingModeType=
|
|
Asc.c_oAscFontRenderingModeType;function CAscSlideProps(){this.Background=null;this.Transition=null;this.LayoutIndex=null;this.lockDelete=null;this.lockLayout=null;this.lockTiming=null;this.lockBackground=null;this.lockTransition=null;this.lockRemove=null;this.isHidden=false}CAscSlideProps.prototype.get_background=function(){return this.Background};CAscSlideProps.prototype.put_background=function(v){this.Background=v};CAscSlideProps.prototype.get_LayoutIndex=function(){return this.LayoutIndex};CAscSlideProps.prototype.put_LayoutIndex=
|
|
function(v){this.LayoutIndex=v};CAscSlideProps.prototype.get_transition=function(){return this.Transition};CAscSlideProps.prototype.put_transition=function(v){this.Transition=v};CAscSlideProps.prototype.get_LockDelete=function(){return this.lockDelete};CAscSlideProps.prototype.put_LockDelete=function(v){this.lockDelete=v};CAscSlideProps.prototype.get_LockLayout=function(){return this.lockLayout};CAscSlideProps.prototype.put_LockLayout=function(v){this.lockLayout=v};CAscSlideProps.prototype.get_LockTiming=
|
|
function(){return this.lockTiming};CAscSlideProps.prototype.put_LockTiming=function(v){this.lockTiming=v};CAscSlideProps.prototype.get_LockBackground=function(){return this.lockBackground};CAscSlideProps.prototype.put_LockBackground=function(v){this.lockBackground=v};CAscSlideProps.prototype.get_LockTransition=function(){return this.lockTransition};CAscSlideProps.prototype.put_LockTransition=function(v){this.lockTransition=v};CAscSlideProps.prototype.get_LockRemove=function(){return this.lockRemove};
|
|
CAscSlideProps.prototype.put_LockRemove=function(v){this.lockRemove=v};CAscSlideProps.prototype.get_IsHidden=function(){return this.isHidden};function CAscChartProp(obj){if(obj){this.Width=undefined!=obj.w?obj.w:undefined;this.Height=undefined!=obj.h?obj.h:undefined;this.Position=new Asc.CPosition({X:obj.x,Y:obj.y});this.Locked=undefined!=obj.locked?obj.locked:false;this.lockAspect=undefined!=obj.lockAspect?obj.lockAspect:false;this.ChartProperties=undefined!=obj.chartProps?obj.chartProps:null;this.severalCharts=
|
|
obj.severalCharts!=undefined?obj.severalCharts:false;this.severalChartTypes=obj.severalChartTypes!=undefined?obj.severalChartTypes:undefined;this.severalChartStyles=obj.severalChartStyles!=undefined?obj.severalChartStyles:undefined;this.title=obj.title!=undefined?obj.title:undefined;this.description=obj.description!=undefined?obj.description:undefined}else{this.Width=undefined;this.Height=undefined;this.Position=undefined;this.Locked=false;this.lockAspect=undefined;this.ChartProperties=new Asc.asc_ChartSettings;
|
|
this.severalCharts=false;this.severalChartTypes=undefined;this.severalChartStyles=undefined;this.title=undefined;this.description=undefined}}CAscChartProp.prototype.get_ChangeLevel=function(){return this.ChangeLevel};CAscChartProp.prototype.put_ChangeLevel=function(v){this.ChangeLevel=v};CAscChartProp.prototype.get_CanBeFlow=function(){return this.CanBeFlow};CAscChartProp.prototype.get_Width=function(){return this.Width};CAscChartProp.prototype.put_Width=function(v){this.Width=v};CAscChartProp.prototype.get_Height=
|
|
function(){return this.Height};CAscChartProp.prototype.put_Height=function(v){this.Height=v};CAscChartProp.prototype.get_WrappingStyle=function(){return this.WrappingStyle};CAscChartProp.prototype.put_WrappingStyle=function(v){this.WrappingStyle=v};CAscChartProp.prototype.get_Paddings=function(){return this.Paddings};CAscChartProp.prototype.put_Paddings=function(v){this.Paddings=v};CAscChartProp.prototype.get_AllowOverlap=function(){return this.AllowOverlap};CAscChartProp.prototype.put_AllowOverlap=
|
|
function(v){this.AllowOverlap=v};CAscChartProp.prototype.get_Position=function(){return this.Position};CAscChartProp.prototype.put_Position=function(v){this.Position=v};CAscChartProp.prototype.get_PositionH=function(){return this.PositionH};CAscChartProp.prototype.put_PositionH=function(v){this.PositionH=v};CAscChartProp.prototype.get_PositionV=function(){return this.PositionV};CAscChartProp.prototype.put_PositionV=function(v){this.PositionV=v};CAscChartProp.prototype.get_Value_X=function(RelativeFrom){if(null!=
|
|
this.Internal_Position)return this.Internal_Position.Calculate_X_Value(RelativeFrom);return 0};CAscChartProp.prototype.get_Value_Y=function(RelativeFrom){if(null!=this.Internal_Position)return this.Internal_Position.Calculate_Y_Value(RelativeFrom);return 0};CAscChartProp.prototype.get_ImageUrl=function(){return this.ImageUrl};CAscChartProp.prototype.put_ImageUrl=function(v){this.ImageUrl=v};CAscChartProp.prototype.get_Group=function(){return this.Group};CAscChartProp.prototype.put_Group=function(v){this.Group=
|
|
v};CAscChartProp.prototype.asc_getFromGroup=function(){return this.fromGroup};CAscChartProp.prototype.asc_putFromGroup=function(v){this.fromGroup=v};CAscChartProp.prototype.get_isChartProps=function(){return this.isChartProps};CAscChartProp.prototype.put_isChartPross=function(v){this.isChartProps=v};CAscChartProp.prototype.get_SeveralCharts=function(){return this.severalCharts};CAscChartProp.prototype.put_SeveralCharts=function(v){this.severalCharts=v};CAscChartProp.prototype.get_SeveralChartTypes=
|
|
function(){return this.severalChartTypes};CAscChartProp.prototype.put_SeveralChartTypes=function(v){this.severalChartTypes=v};CAscChartProp.prototype.get_SeveralChartStyles=function(){return this.severalChartStyles};CAscChartProp.prototype.put_SeveralChartStyles=function(v){this.severalChartStyles=v};CAscChartProp.prototype.get_VerticalTextAlign=function(){return this.verticalTextAlign};CAscChartProp.prototype.put_VerticalTextAlign=function(v){this.verticalTextAlign=v};CAscChartProp.prototype.get_Locked=
|
|
function(){return this.Locked};CAscChartProp.prototype.get_ChartProperties=function(){return this.ChartProperties};CAscChartProp.prototype.put_ChartProperties=function(v){this.ChartProperties=v};CAscChartProp.prototype.get_ShapeProperties=function(){return this.ShapeProperties};CAscChartProp.prototype.put_ShapeProperties=function(v){this.ShapeProperties=v};CAscChartProp.prototype.asc_getType=function(){return this.ChartProperties.asc_getType()};CAscChartProp.prototype.asc_getSubType=function(){return this.ChartProperties.asc_getSubType()};
|
|
CAscChartProp.prototype.asc_getStyleId=function(){return this.ChartProperties.asc_getStyleId()};CAscChartProp.prototype.asc_getHeight=function(){return this.Height};CAscChartProp.prototype.asc_getWidth=function(){return this.Width};CAscChartProp.prototype.asc_setType=function(v){this.ChartProperties.asc_setType(v)};CAscChartProp.prototype.asc_setSubType=function(v){this.ChartProperties.asc_setSubType(v)};CAscChartProp.prototype.asc_setStyleId=function(v){this.ChartProperties.asc_setStyleId(v)};CAscChartProp.prototype.asc_setHeight=
|
|
function(v){this.Height=v};CAscChartProp.prototype.asc_setWidth=function(v){this.Width=v};CAscChartProp.prototype.asc_setTitle=function(v){this.title=v};CAscChartProp.prototype.asc_setDescription=function(v){this.description=v};CAscChartProp.prototype.asc_getTitle=function(){return this.title};CAscChartProp.prototype.asc_getDescription=function(){return this.description};CAscChartProp.prototype.getType=function(){return this.ChartProperties&&this.ChartProperties.getType()};CAscChartProp.prototype.putType=
|
|
function(v){return this.ChartProperties&&this.ChartProperties.putType(v)};CAscChartProp.prototype.getStyle=function(){return this.ChartProperties&&this.ChartProperties.getStyle()};CAscChartProp.prototype.putStyle=function(v){return this.ChartProperties&&this.ChartProperties.putStyle(v)};CAscChartProp.prototype.getLockAspect=function(){return this.lockAspect};CAscChartProp.prototype.putLockAspect=function(v){return this.lockAspect=v};CAscChartProp.prototype.changeType=function(v){return this.ChartProperties&&
|
|
this.ChartProperties.changeType(v)};function CDocInfoProp(obj){if(obj){this.PageCount=obj.PageCount;this.WordsCount=obj.WordsCount;this.ParagraphCount=obj.ParagraphCount;this.SymbolsCount=obj.SymbolsCount;this.SymbolsWSCount=obj.SymbolsWSCount}else{this.PageCount=-1;this.WordsCount=-1;this.ParagraphCount=-1;this.SymbolsCount=-1;this.SymbolsWSCount=-1}}CDocInfoProp.prototype.get_PageCount=function(){return this.PageCount};CDocInfoProp.prototype.put_PageCount=function(v){this.PageCount=v};CDocInfoProp.prototype.get_WordsCount=
|
|
function(){return this.WordsCount};CDocInfoProp.prototype.put_WordsCount=function(v){this.WordsCount=v};CDocInfoProp.prototype.get_ParagraphCount=function(){return this.ParagraphCount};CDocInfoProp.prototype.put_ParagraphCount=function(v){this.ParagraphCount=v};CDocInfoProp.prototype.get_SymbolsCount=function(){return this.SymbolsCount};CDocInfoProp.prototype.put_SymbolsCount=function(v){this.SymbolsCount=v};CDocInfoProp.prototype.get_SymbolsWSCount=function(){return this.SymbolsWSCount};CDocInfoProp.prototype.put_SymbolsWSCount=
|
|
function(v){this.SymbolsWSCount=v};function CSearchResult(obj){this.Object=obj}CSearchResult.prototype.get_Text=function(){return this.Object.text};CSearchResult.prototype.get_Navigator=function(){return this.Object.navigator};CSearchResult.prototype.put_Navigator=function(obj){this.Object.navigator=obj};CSearchResult.prototype.put_Text=function(obj){this.Object.text=obj};function asc_docs_api(config){AscCommon.baseEditorsApi.call(this,config,AscCommon.c_oEditorId.Presentation);this.WordControl=null;
|
|
this.documentFormatSave=c_oAscFileType.PPTX;this.ThemeLoader=null;this.standartThemesStatus=0;this.tmpThemesPath=null;this.tmpIsFreeze=null;this.tmpSlideDiv=null;this.tmpTextArtDiv=null;this.tmpViewRulers=null;this.tmpZoomType=null;this.tmpDocumentUnits=null;this.DocumentUrl="";this.bNoSendComments=false;this.isApplyChangesOnOpen=false;this.isApplyChangesOnVersionHistory=false;this.IsSpellCheckCurrentWord=false;this.IsSupportEmptyPresentation=true;this.ShowParaMarks=false;this.ShowSnapLines=true;
|
|
this.isAddSpaceBetweenPrg=false;this.isPageBreakBefore=false;this.isKeepLinesTogether=false;this.isPresentationEditor=true;this.bSelectedSlidesTheme=false;this.isPaintFormat=AscCommon.c_oAscFormatPainterState.kOff;this.isMarkerFormat=false;this.isShowTableEmptyLine=false;this.isShowTableEmptyLineAttack=false;this.bInit_word_control=false;this.isDocumentModify=false;this.tmpFontRenderingMode=null;this.isPasteFonts_Images=false;this.nCurPointItemsLength=-1;this.pasteCallback=null;this.pasteImageMap=
|
|
null;this.EndActionLoadImages=0;this.isSaveFonts_Images=false;this.saveImageMap=null;this.ServerImagesWaitComplete=false;this.SelectedObjectsStack=[];this.CoAuthoringApi.isPowerPoint=true;this._gui_editor_themes=null;this._gui_document_themes=null;this.EndShowMessage=undefined;this.isOnlyDemonstration=false;if(window.editor==undefined){window.editor=this;window.editor;window["editor"]=window.editor;if(window["NATIVE_EDITOR_ENJINE"])editor=window.editor}this.reporterWindow=null;this.reporterWindowCounter=
|
|
0;this.reporterStartObject=null;this.isReporterMode="reporter"==config["using"]?true:false;this.disableReporterEvents=false;if(this.isReporterMode){var _windowOnResize=function(){if(undefined!=window._resizeTimeout&&-1!=window._resizeTimeout)clearTimeout(window._resizeTimeout);window._resizeTimeout=setTimeout(function(){window.editor.Resize();window._resizeTimeout=-1},50)};if(window.addEventListener)window.addEventListener("resize",_windowOnResize,false);else if(window.attachEvent)window.attachEvent("onresize",
|
|
_windowOnResize);else window["onresize"]=_windowOnResize}if(this.isReporterMode)this.watermarkDraw=null;this._init()}asc_docs_api.prototype=Object.create(AscCommon.baseEditorsApi.prototype);asc_docs_api.prototype.constructor=asc_docs_api;asc_docs_api.prototype.sendEvent=function(){this.sendInternalEvent.apply(this,arguments);var name=arguments[0];if(_callbacks.hasOwnProperty(name)){for(var i=0;i<_callbacks[name].length;++i)_callbacks[name][i].apply(this||window,Array.prototype.slice.call(arguments,
|
|
1));return true}return false};asc_docs_api.prototype._coAuthoringSetChange=function(change,oColor){var oChange=new AscCommon.CCollaborativeChanges;oChange.Set_Data(change);oChange.Set_Color(oColor);AscCommon.CollaborativeEditing.Add_Changes(oChange)};asc_docs_api.prototype._coAuthoringSetChanges=function(e,oColor){var Count=e.length;for(var Index=0;Index<Count;++Index)this._coAuthoringSetChange(e[Index],oColor)};asc_docs_api.prototype._coAuthoringInitEnd=function(){var t=this;this.CoAuthoringApi.onCursor=
|
|
function(e){if(true===AscCommon.CollaborativeEditing.Is_Fast())t.WordControl.m_oLogicDocument.Update_ForeignCursor(e[e.length-1]["cursor"],e[e.length-1]["user"],true,e[e.length-1]["useridoriginal"])};this.CoAuthoringApi.onConnectionStateChanged=function(e){if(true===AscCommon.CollaborativeEditing.Is_Fast()&&false===e["state"])editor.WordControl.m_oLogicDocument.Remove_ForeignCursor(e["id"]);t.sendEvent("asc_onConnectionStateChanged",e)};this.CoAuthoringApi.onLocksAcquired=function(e){if(t._coAuthoringCheckEndOpenDocument(t.CoAuthoringApi.onLocksAcquired,
|
|
e))return;if(2!=e["state"]){var block_value=e["blockValue"];var classes=[];switch(block_value["type"]){case c_oAscLockTypeElemPresentation.Object:{classes.push(block_value["objId"]);break}case c_oAscLockTypeElemPresentation.Slide:{classes.push(block_value["val"]);break}case c_oAscLockTypeElemPresentation.Presentation:{break}}for(var i=0;i<classes.length;++i){var Class=g_oTableId.Get_ById(classes[i]);if(null!=Class){var Lock=Class.Lock;var OldType=Class.Lock.Get_Type();if(locktype_Other2===OldType||
|
|
locktype_Other3===OldType)Lock.Set_Type(locktype_Other3,true);else Lock.Set_Type(locktype_Other,true);if(Class instanceof AscCommonSlide.PropLocker){var object=g_oTableId.Get_ById(Class.objectId);if(object instanceof AscCommonSlide.Slide&&Class===object.deleteLock)editor.WordControl.m_oLogicDocument.DrawingDocument.LockSlide(object.num)}Lock.Set_UserId(e["user"]);if(Class instanceof AscCommonSlide.PropLocker){var object=g_oTableId.Get_ById(Class.objectId);if(object instanceof AscCommonSlide.CPresentation)if(Class===
|
|
editor.WordControl.m_oLogicDocument.themeLock)editor.sendEvent("asc_onLockDocumentTheme");else if(Class===editor.WordControl.m_oLogicDocument.schemeLock)editor.sendEvent("asc_onLockDocumentSchema");else if(Class===editor.WordControl.m_oLogicDocument.slideSizeLock)editor.sendEvent("asc_onLockDocumentProps")}if(Class instanceof AscCommon.CComment)editor.sync_LockComment(Class.Get_Id(),e["user"]);if(Class instanceof AscCommon.CCore)editor.sendEvent("asc_onLockCore",true);editor.WordControl.m_oLogicDocument.Document_UpdateInterfaceState()}else if(classes[i].indexOf("new_object")>
|
|
-1&&block_value["type"]===c_oAscLockTypeElemPresentation.Object){var slide_id=block_value["slideId"];var delete_lock=g_oTableId.Get_ById(slide_id);if(AscCommon.isRealObject(delete_lock)){var Lock=delete_lock.Lock;var OldType=Lock.Get_Type();if(locktype_Other2===OldType||locktype_Other3===OldType)Lock.Set_Type(locktype_Other3,true);else Lock.Set_Type(locktype_Other,true);editor.WordControl.m_oLogicDocument.DrawingDocument.LockSlide(g_oTableId.Get_ById(delete_lock.objectId).num)}else AscCommon.CollaborativeEditing.Add_NeedLock(slide_id,
|
|
e["user"])}else AscCommon.CollaborativeEditing.Add_NeedLock(classes[i],e["user"])}}};this.CoAuthoringApi.onLocksReleased=function(e,bChanges){if(t._coAuthoringCheckEndOpenDocument(t.CoAuthoringApi.onLocksReleased,e,bChanges))return;var Id;var block_value=e["block"];var classes=[];switch(block_value["type"]){case c_oAscLockTypeElemPresentation.Object:{classes.push(block_value["objId"]);break}case c_oAscLockTypeElemPresentation.Slide:{classes.push(block_value["val"]);break}case c_oAscLockTypeElemPresentation.Presentation:{break}}for(var i=
|
|
0;i<classes.length;++i){Id=classes[i];var Class=g_oTableId.Get_ById(Id);if(null!=Class){var Lock=Class.Lock;if("undefined"!=typeof Lock){var CurType=Lock.Get_Type();var NewType=locktype_None;if(CurType===locktype_Other)if(true!=bChanges)NewType=locktype_None;else{NewType=locktype_Other2;AscCommon.CollaborativeEditing.Add_Unlock(Class)}else if(CurType===locktype_Mine)NewType=locktype_Mine;else if(CurType===locktype_Other2||CurType===locktype_Other3)NewType=locktype_Other2;Lock.Set_Type(NewType,true);
|
|
if(Class instanceof AscCommonSlide.PropLocker){var object=g_oTableId.Get_ById(Class.objectId);if(object instanceof AscCommonSlide.Slide&&Class===object.deleteLock)if(NewType!==locktype_Mine&&NewType!==locktype_None)editor.WordControl.m_oLogicDocument.DrawingDocument.LockSlide(object.num);else editor.WordControl.m_oLogicDocument.DrawingDocument.UnLockSlide(object.num);if(object instanceof AscCommonSlide.CPresentation){if(Class===object.themeLock)if(NewType!==locktype_Mine&&NewType!==locktype_None)editor.sendEvent("asc_onLockDocumentTheme");
|
|
else editor.sendEvent("asc_onUnLockDocumentTheme");if(Class===object.slideSizeLock)if(NewType!==locktype_Mine&&NewType!==locktype_None)editor.sendEvent("asc_onLockDocumentProps");else editor.sendEvent("asc_onUnLockDocumentProps")}}}}else AscCommon.CollaborativeEditing.Remove_NeedLock(Id)}};this.CoAuthoringApi.onSaveChanges=function(e,userId,bFirstLoad){var Changes=new AscCommon.CCollaborativeChanges;Changes.Set_Data(e);AscCommon.CollaborativeEditing.Add_Changes(Changes);if(!bFirstLoad&&t.bInit_word_control)t.sync_CollaborativeChanges()};
|
|
this.CoAuthoringApi.onRecalcLocks=function(e){if(e&&true===AscCommon.CollaborativeEditing.Is_Fast()){var CursorInfo=JSON.parse(e);AscCommon.CollaborativeEditing.Add_ForeignCursorToUpdate(CursorInfo.UserId,CursorInfo.CursorInfo,CursorInfo.UserShortId)}}};asc_docs_api.prototype.startCollaborationEditing=function(){AscCommon.CollaborativeEditing.Start_CollaborationEditing();this.asc_setDrawCollaborationMarks(true);if(this.WordControl&&this.WordControl.m_oDrawingDocument)this.WordControl.m_oDrawingDocument.Start_CollaborationEditing()};
|
|
asc_docs_api.prototype.endCollaborationEditing=function(){AscCommon.CollaborativeEditing.End_CollaborationEditing();if(this.WordControl&&this.WordControl.m_oLogicDocument&&false!==this.WordControl.m_oLogicDocument.DrawingDocument.IsLockObjectsEnable){this.WordControl.m_oLogicDocument.DrawingDocument.IsLockObjectsEnable=false;this.WordControl.m_oLogicDocument.DrawingDocument.FirePaint()}};asc_docs_api.prototype.SpellCheck_CallBack=function(Obj){if(undefined!=Obj&&undefined!=Obj["ParagraphId"]){var ParaId=
|
|
Obj["ParagraphId"];var Paragraph=g_oTableId.Get_ById(ParaId);var Type=Obj["type"];if(null!=Paragraph)if("spell"===Type){Paragraph.SpellChecker.Check_CallBack(Obj["RecalcId"],Obj["usrCorrect"]);Paragraph.ReDraw()}else if("suggest"===Type){Paragraph.SpellChecker.Check_CallBack2(Obj["RecalcId"],Obj["ElementId"],Obj["usrSuggest"]);this.sync_SpellCheckVariantsFound()}}};asc_docs_api.prototype._spellCheckDisconnect=function(){if(this.WordControl.m_oLogicDocument)this.WordControl.m_oLogicDocument.TurnOffCheckSpelling()};
|
|
asc_docs_api.prototype.pre_Save=function(_images){this.isSaveFonts_Images=true;this.saveImageMap=_images;this.WordControl.m_oDrawingDocument.CheckFontNeeds();this.FontLoader.LoadDocumentFonts2(this.WordControl.m_oLogicDocument.Fonts)};asc_docs_api.prototype.asc_GetRevisionsChangesStack=function(){return[]};asc_docs_api.prototype.asc_undoAllChanges=function(){this.WordControl.m_oLogicDocument.Document_Undo({All:true})};asc_docs_api.prototype.asc_CloseFile=function(){History.Clear();g_oIdCounter.Clear();
|
|
g_oTableId.Clear();AscCommon.CollaborativeEditing.Clear();this.isApplyChangesOnOpenEnabled=true;this.isDocumentLoadComplete=false;var oLogicDocument=this.WordControl.m_oLogicDocument;oLogicDocument.StopRecalculate();oLogicDocument.Stop_CheckSpelling();AscCommon.pptx_content_loader.ImageMapChecker={};this.WordControl.m_oDrawingDocument.CloseFile()};asc_docs_api.prototype.asc_SetFastCollaborative=function(isOn){if(AscCommon.CollaborativeEditing)AscCommon.CollaborativeEditing.Set_Fast(isOn)};asc_docs_api.prototype.sync_CollaborativeChanges=
|
|
function(){if(true!==AscCommon.CollaborativeEditing.Is_Fast())this.sendEvent("asc_onCollaborativeChanges")};asc_docs_api.prototype.syncCollaborativeChanges=function(){this.sendEvent("asc_onCollaborativeChanges")};asc_docs_api.prototype.SetCollaborativeMarksShowType=function(Type){this.CollaborativeMarksShowType=Type};asc_docs_api.prototype.GetCollaborativeMarksShowType=function(Type){return this.CollaborativeMarksShowType};asc_docs_api.prototype.Clear_CollaborativeMarks=function(){AscCommon.CollaborativeEditing.Clear_CollaborativeMarks(true)};
|
|
asc_docs_api.prototype._onUpdateDocumentCanSave=function(){var CollEditing=AscCommon.CollaborativeEditing;var isCanSave=this.isDocumentModified()||true!==CollEditing.Is_SingleUser()&&0!==CollEditing.getOwnLocksLength();if(true===CollEditing.Is_Fast()&&true!==CollEditing.Is_SingleUser())isCanSave=false;if(isCanSave!==this.isDocumentCanSave){this.isDocumentCanSave=isCanSave;this.sendEvent("asc_onDocumentCanSaveChanged",this.isDocumentCanSave)}};asc_docs_api.prototype._onUpdateDocumentCanUndoRedo=function(){if(this.WordControl&&
|
|
this.WordControl.m_oLogicDocument)this.WordControl.m_oLogicDocument.Document_UpdateUndoRedoState()};asc_docs_api.prototype.CheckChangedDocument=function(){if(true===History.Have_Changes())this.SetDocumentModified(true);else this.SetDocumentModified(false);this._onUpdateDocumentCanSave()};asc_docs_api.prototype.SetUnchangedDocument=function(){this.SetDocumentModified(false);this._onUpdateDocumentCanSave()};asc_docs_api.prototype.SetDocumentModified=function(bValue){this.isDocumentModify=bValue;this.sendEvent("asc_onDocumentModifiedChanged");
|
|
if(undefined!==window["AscDesktopEditor"])window["AscDesktopEditor"]["onDocumentModifiedChanged"](bValue)};asc_docs_api.prototype.isDocumentModified=function(){if(!this.canSave)return true;return this.isDocumentModify};asc_docs_api.prototype.asc_getCurrentFocusObject=function(){if(!this.WordControl||!this.WordControl.Thumbnails)return 1;return this.WordControl.Thumbnails.FocusObjType};asc_docs_api.prototype.sync_BeginCatchSelectedElements=function(){if(0!=this.SelectedObjectsStack.length)this.SelectedObjectsStack.splice(0,
|
|
this.SelectedObjectsStack.length)};asc_docs_api.prototype.sync_EndCatchSelectedElements=function(){this.sendEvent("asc_onFocusObject",this.SelectedObjectsStack)};asc_docs_api.prototype.getSelectedElements=function(bUpdate){if(true===bUpdate)if(this.WordControl&&this.WordControl.m_oLogicDocument)this.WordControl.m_oLogicDocument.Document_UpdateInterfaceState();return this.SelectedObjectsStack};asc_docs_api.prototype.sync_ChangeLastSelectedElement=function(type,obj){var oUnkTypeObj=null;switch(type){case c_oAscTypeSelectElement.Paragraph:oUnkTypeObj=
|
|
new Asc.asc_CParagraphProperty(obj);break;case c_oAscTypeSelectElement.Image:oUnkTypeObj=new Asc.asc_CImgProperty(obj);break;case c_oAscTypeSelectElement.Table:oUnkTypeObj=new Asc.CTableProp(obj);break;case c_oAscTypeSelectElement.Shape:oUnkTypeObj=obj;break}var _i=this.SelectedObjectsStack.length-1;var bIsFound=false;while(_i>=0){if(this.SelectedObjectsStack[_i].Type==type){this.SelectedObjectsStack[_i].Value=oUnkTypeObj;bIsFound=true;break}_i--}if(!bIsFound)this.SelectedObjectsStack[this.SelectedObjectsStack.length]=
|
|
new asc_CSelectedObject(type,oUnkTypeObj)};asc_docs_api.prototype.Init=function(){this.WordControl.Init()};asc_docs_api.prototype.asc_setLocale=function(val){this.locale=val};asc_docs_api.prototype.asc_getLocale=function(){return this.locale};asc_docs_api.prototype.SetThemesPath=function(path){if(this.standartThemesStatus==0){this.standartThemesStatus=1;var t=this;AscCommon.loadScript(path+"/themes.js",function(){t.standartThemesStatus++;if(t.ThemeLoader)t.ThemeLoader.Themes._init();if(2<t.standartThemesStatus)t.WordControl.m_oLogicDocument.SendThemesThumbnails()},
|
|
function(){t.standartThemesStatus++;if(2<t.standartThemesStatus)t.WordControl.m_oLogicDocument.SendThemesThumbnails()})}if(!this.isLoadFullApi){this.tmpThemesPath=path;return}this.ThemeLoader.ThemesUrl=path;if(this.documentOrigin)this.ThemeLoader.ThemesUrlAbs=AscCommon.joinUrls(this.documentOrigin+this.documentPathname,path);else this.ThemeLoader.ThemesUrlAbs=path};asc_docs_api.prototype.CreateCSS=function(){var _head=document.getElementsByTagName("head")[0];var style0=document.createElement("style");
|
|
style0.type="text/css";style0.innerHTML=".block_elem { position:absolute;padding:0;margin:0; }";_head.appendChild(style0);var style1=document.createElement("style");style1.type="text/css";style1.innerHTML=".buttonTabs {background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAA5CAMAAADjueCuAAAABGdBTUEAALGPC/xhBQAAAEhQTFRFAAAAWFhYZWVlSEhIY2NjV1dXQ0NDYWFhYmJiTk5OVlZWYGBgVFRUS0tLbGxsRERETExMZmZmVVVVXl5eR0dHa2trPj4+u77CpAZQrwAAAAF0Uk5TAEDm2GYAAABwSURBVDjL1dHHDoAgEEVR7NLr4P//qQm6EMaFxtje8oTF5ELIpU35Fstf3GegsPEBG+uwSYpNB1qNKreoDeNw/r6dLr/tnFpbbNZj8wKbk8W/1d6ZPjfrhdHx9c4fbA9wzMYWm3OFhbQmbC2ue6z9DCH/Exf/mU3YAAAAAElFTkSuQmCC);background-position: 0px 0px;background-repeat: no-repeat;}";
|
|
_head.appendChild(style1);var style3=document.createElement("style");style3.type="text/css";style3.innerHTML=".buttonPrevPage {background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAABgBAMAAADm/++TAAAABGdBTUEAALGPC/xhBQAAABJQTFRFAAAA////UVNVu77Cenp62Nrc3x8hMQAAAAF0Uk5TAEDm2GYAAABySURBVCjPY2AgETDBGEoKUAElJcJSxANjKGAwDQWDYAKMIBhDSRXCCFJSIixF0GS4M+AMExcwcCbAcIQxBEUgDEdBQcJSBE2GO4PU6IJHASxS4NGER4p28YWIAlikwKMJjxTt4gsRBbBIgUcTHini4wsAwMmIvYZODL0AAAAASUVORK5CYII=);background-position: 0px 0px;background-repeat: no-repeat;}";
|
|
_head.appendChild(style3);var style4=document.createElement("style");style4.type="text/css";style4.innerHTML=".buttonNextPage {background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAABgBAMAAADm/++TAAAABGdBTUEAALGPC/xhBQAAABJQTFRFAAAA////UVNVu77Cenp62Nrc3x8hMQAAAAF0Uk5TAEDm2GYAAABySURBVCjPY2AgETDBGEoKUAElJcJSxANjKGAwDQWDYAKMIBhDSRXCCFJSIixF0GS4M+AMExcwcCbAcIQxBEUgDEdBQcJSBE2GO4PU6IJHASxS4NGER4p28YWIAlikwKMJjxTt4gsRBbBIgUcTHini4wsAwMmIvYZODL0AAAAASUVORK5CYII=);background-position: 0px -48px;background-repeat: no-repeat;}";
|
|
_head.appendChild(style4)};asc_docs_api.prototype.CreateComponents=function(){this.asc_setSkin(this.skinObject);delete this.skinObject;this.CreateCSS();var _innerHTML='<div id="id_panel_thumbnails" class="block_elem" style="touch-action:none;-webkit-touch-callout:none;background-color:'+AscCommon.GlobalSkin.BackgroundColorThumbnails+';">\t\t\t\t\t\t\t\t\t<div id="id_panel_thumbnails_split" class="block_elem" style="pointer-events:none;background-color:'+AscCommon.GlobalSkin.BackgroundColorThumbnails+
|
|
';"></div>\t\t <canvas id="id_thumbnails_background" class="block_elem" style="-ms-touch-action: none;-webkit-user-select: none;z-index:1"></canvas>\t\t <canvas id="id_thumbnails" class="block_elem" style="-ms-touch-action: none;-webkit-user-select: none;z-index:2"></canvas>\t\t <div id="id_vertical_scroll_thmbnl" style="left:0;top:0;width:1px;overflow:hidden;position:absolute;">\t\t\t\t\t\t\t\t\t</div>\t\t </div>\t\t <div id="id_main_parent" class="block_elem" style="touch-action:none;-ms-touch-action: none;-moz-user-select:none;-khtml-user-select:none;user-select:none;overflow:hidden;border-left-width: 1px;border-left-color:'+
|
|
AscCommon.GlobalSkin.BorderSplitterColor+'; border-left-style: solid;" UNSELECTABLE="on"> <div id="id_main" class="block_elem" style="z-index:5;-ms-touch-action: none;-moz-user-select:none;-khtml-user-select:none;user-select:none;background-color:'+AscCommon.GlobalSkin.BackgroundColor+';overflow:hidden;" UNSELECTABLE="on">\t\t\t\t\t\t\t\t<div id="id_panel_left" class="block_elem">\t\t\t\t\t\t\t\t\t<canvas id="id_buttonTabs" class="block_elem"></canvas>\t\t\t\t\t\t\t\t\t<canvas id="id_vert_ruler" class="block_elem"></canvas>\t\t\t\t\t\t\t\t</div> <div id="id_panel_top" class="block_elem">\t\t\t\t\t\t\t\t\t<canvas id="id_hor_ruler" class="block_elem"></canvas> </div> <div id="id_main_view" class="block_elem" style="overflow:hidden"> <canvas id="id_viewer" class="block_elem" style="-ms-touch-action: none;-webkit-user-select: none;background-color:'+
|
|
AscCommon.GlobalSkin.BackgroundColor+';z-index:6"></canvas> <canvas id="id_viewer_overlay" class="block_elem" style="-ms-touch-action: none;-webkit-user-select: none;z-index:7"></canvas> <canvas id="id_target_cursor" class="block_elem" width="1" height="1" style="-ms-touch-action: none;-webkit-user-select: none;width:2px;height:13px;display:none;z-index:9;"></canvas> </div>\t\t\t\t\t\t\t <div id="id_panel_right" class="block_elem" style="margin-right:1px;background-color:'+
|
|
AscCommon.GlobalSkin.BackgroundColor+';z-index:0;">\t\t\t\t\t\t\t <div id="id_buttonRulers" class="block_elem buttonRuler"></div>\t\t\t\t\t\t\t\t <div id="id_vertical_scroll" style="left:0;top:0;width:14px;overflow:hidden;position:absolute;">\t\t\t\t\t\t\t\t </div>\t\t\t\t\t\t\t\t <div id="id_buttonPrevPage" class="block_elem buttonPrevPage"></div>\t\t\t\t\t\t\t\t <div id="id_buttonNextPage" class="block_elem buttonNextPage"></div> </div> <div id="id_horscrollpanel" class="block_elem" style="margin-bottom:1px;background-color:'+
|
|
AscCommon.GlobalSkin.BackgroundColor+';"> <div id="id_horizontal_scroll" style="left:0;top:0;height:14px;overflow:hidden;position:absolute;width:100%;"> </div> </div> </div>';if(true)_innerHTML+='<div id="id_panel_notes" class="block_elem" style="-ms-touch-action: none;-moz-user-select:none;-khtml-user-select:none;user-select:none;overflow:hidden;background-color:'+AscCommon.GlobalSkin.BackgroundColorNotes+
|
|
';"> <canvas id="id_notes" class="block_elem" style="-ms-touch-action: none;-webkit-user-select: none;background-color:'+AscCommon.GlobalSkin.BackgroundColorNotes+';z-index:6"></canvas> <canvas id="id_notes_overlay" class="block_elem" style="-ms-touch-action: none;-webkit-user-select: none;z-index:7"></canvas> <div id="id_vertical_scroll_notes" style="left:0;top:0;width:16px;overflow:hidden;position:absolute;"> <div id="panel_right_scroll_notes" class="block_elem" style="left:0;top:0;width:1px;height:1px;"></div> </div> </div> </div>';
|
|
if(this.HtmlElement)_innerHTML+=this.HtmlElement.innerHTML;if(this.HtmlElement!=null){this.HtmlElement.style.backgroundColor=AscCommon.GlobalSkin.BackgroundColor;this.HtmlElement.innerHTML=_innerHTML}};asc_docs_api.prototype.asc_setSkin=function(theme){AscCommon.updateGlobalSkin(theme);var baseElem=document.getElementById(this.HtmlElementName);if(baseElem)baseElem.style.backgroundColor=AscCommon.GlobalSkin.BackgroundColor;var obj_id_main=document.getElementById("id_main");if(obj_id_main){obj_id_main.style.backgroundColor=
|
|
AscCommon.GlobalSkin.BackgroundColor;document.getElementById("id_panel_thumbnails").style.backgroundColor=AscCommon.GlobalSkin.BackgroundColorThumbnails;document.getElementById("id_panel_thumbnails_split").style.backgroundColor=AscCommon.GlobalSkin.BackgroundColorThumbnails;document.getElementById("id_main_parent").style.borderLeftColor=AscCommon.GlobalSkin.BorderSplitterColor;document.getElementById("id_viewer").style.backgroundColor=AscCommon.GlobalSkin.BackgroundColor;document.getElementById("id_panel_right").style.backgroundColor=
|
|
AscCommon.GlobalSkin.ScrollBackgroundColor;document.getElementById("id_horscrollpanel").style.backgroundColor=AscCommon.GlobalSkin.ScrollBackgroundColor;document.getElementById("id_panel_notes").style.backgroundColor=AscCommon.GlobalSkin.BackgroundColorNotes;document.getElementById("id_panel_notes").style.borderTopColor=AscCommon.GlobalSkin.BorderSplitterColor;document.getElementById("id_notes").style.backgroundColor=AscCommon.GlobalSkin.BackgroundColorNotes}if(this.isReporterMode)if(document.getElementById("dem_id_pointer")&&
|
|
this.WordControl){var _head=document.getElementsByTagName("head")[0];var style=document.createElement("style");style.type="text/css";style.innerHTML=this.WordControl.getStylesReporter();_head.appendChild(style);["id_reporter_dem","id_reporter_dem_controller","id_main_parent","id_reporter_dem_parent","id_main"].forEach(function(id){document.getElementById(id).style.backgroundColor=GlobalSkin.BackgroundColorThumbnails})}if(this.WordControl&&this.WordControl.m_oBody)this.WordControl.OnResize(true)};
|
|
asc_docs_api.prototype.initDefaultShortcuts=function(){var aShortcuts=[[Asc.c_oAscPresentationShortcutType.EditSelectAll,65,true,false,false],[Asc.c_oAscPresentationShortcutType.EditUndo,90,true,false,false],[Asc.c_oAscPresentationShortcutType.EditRedo,89,true,false,false],[Asc.c_oAscPresentationShortcutType.Cut,88,true,false,false],[Asc.c_oAscPresentationShortcutType.Copy,67,true,false,false],[Asc.c_oAscPresentationShortcutType.Paste,86,true,false,false],[Asc.c_oAscPresentationShortcutType.Duplicate,
|
|
68,true,false,false],[Asc.c_oAscPresentationShortcutType.Print,80,true,false,false],[Asc.c_oAscPresentationShortcutType.Save,83,true,false,false],[Asc.c_oAscPresentationShortcutType.ShowContextMenu,93,false,false,false],[Asc.c_oAscPresentationShortcutType.ShowContextMenu,121,false,true,false],[Asc.c_oAscPresentationShortcutType.ShowContextMenu,57351,false,false,false]];this.initShortcuts(aShortcuts,false)};asc_docs_api.prototype.InitEditor=function(){this.WordControl.m_oLogicDocument=new AscCommonSlide.CPresentation(this.WordControl.m_oDrawingDocument);
|
|
this.WordControl.m_oDrawingDocument.m_oLogicDocument=this.WordControl.m_oLogicDocument;if(this.WordControl.MobileTouchManager)this.WordControl.MobileTouchManager.delegate.LogicDocument=this.WordControl.m_oLogicDocument};asc_docs_api.prototype.SetInterfaceDrawImagePlaceSlide=function(div_id){if(!this.isLoadFullApi){this.tmpSlideDiv=div_id;return}this.WordControl.m_oDrawingDocument.InitGuiCanvasSlide(div_id)};asc_docs_api.prototype.SetInterfaceDrawImagePlaceTextArt=function(div_id){if(!this.isLoadFullApi){this.tmpTextArtDiv=
|
|
div_id;return}this.WordControl.m_oDrawingDocument.InitGuiCanvasTextArt(div_id)};asc_docs_api.prototype.OpenDocument2=function(url,gObject){this.InitEditor();this.DocumentType=2;var _loader=new AscCommon.BinaryPPTYLoader;_loader.Api=this;g_oIdCounter.Set_Load(true);AscFonts.IsCheckSymbols=true;_loader.Load(gObject,this.WordControl.m_oLogicDocument);this.WordControl.m_oLogicDocument.Set_FastCollaborativeEditing(true);if(History&&History.Update_FileDescription)History.Update_FileDescription(_loader.stream);
|
|
this.LoadedObject=1;g_oIdCounter.Set_Load(false);AscFonts.IsCheckSymbols=false;this.WordControl.m_oDrawingDocument.CheckFontNeeds();this.FontLoader.LoadDocumentFonts(this.WordControl.m_oLogicDocument.Fonts,false);g_oIdCounter.Set_Load(false);if(this.isMobileVersion){AscCommon.AscBrowser.isSafariMacOs=false;PasteElementsId.PASTE_ELEMENT_ID="wrd_pastebin";PasteElementsId.ELEMENT_DISPAY_STYLE="none"}if(AscCommon.AscBrowser.isSafariMacOs)setInterval(AscCommon.SafariIntervalFocus,10)};var _callbacks={};
|
|
asc_docs_api.prototype.asc_registerCallback=function(name,callback){if(!_callbacks.hasOwnProperty(name))_callbacks[name]=[];_callbacks[name].push(callback)};asc_docs_api.prototype.asc_unregisterCallback=function(name,callback){if(_callbacks.hasOwnProperty(name))for(var i=_callbacks[name].length-1;i>=0;--i)if(_callbacks[name][i]==callback)_callbacks[name].splice(i,1)};asc_docs_api.prototype.asc_checkNeedCallback=function(name){if(_callbacks.hasOwnProperty(name))return true;return false};asc_docs_api.prototype.get_TextProps=
|
|
function(){var Doc=this.WordControl.m_oLogicDocument;var ParaPr=Doc.GetCalculatedParaPr();var TextPr=Doc.GetCalculatedTextPr();return new Asc.CParagraphAndTextProp(ParaPr,TextPr)};asc_docs_api.prototype.get_PropertyEditorThemes=function(){var ret=[this._gui_editor_themes,this._gui_document_themes];return ret};asc_docs_api.prototype.UpdateTextPr=function(TextPr){if("undefined"!=typeof TextPr){if(TextPr.Color!==undefined){this.WordControl.m_oDrawingDocument.TargetCursorColor.R=TextPr.Color.r;this.WordControl.m_oDrawingDocument.TargetCursorColor.G=
|
|
TextPr.Color.g;this.WordControl.m_oDrawingDocument.TargetCursorColor.B=TextPr.Color.b}if(TextPr.Bold===undefined)TextPr.Bold=false;if(TextPr.Italic===undefined)TextPr.Italic=false;if(TextPr.Underline===undefined)TextPr.Underline=false;if(TextPr.Strikeout===undefined)TextPr.Strikeout=false;if(TextPr.FontFamily===undefined)TextPr.FontFamily={Index:0,Name:""};if(TextPr.FontSize===undefined)TextPr.FontSize="";this.sync_BoldCallBack(TextPr.Bold);this.sync_ItalicCallBack(TextPr.Italic);this.sync_UnderlineCallBack(TextPr.Underline);
|
|
this.sync_StrikeoutCallBack(TextPr.Strikeout);this.sync_TextPrFontSizeCallBack(TextPr.FontSize);this.sync_TextPrFontFamilyCallBack(TextPr.FontFamily);if(TextPr.VertAlign!==undefined)this.sync_VerticalAlign(TextPr.VertAlign);if(TextPr.Spacing!==undefined)this.sync_TextSpacing(TextPr.Spacing);if(TextPr.DStrikeout!==undefined)this.sync_TextDStrikeout(TextPr.DStrikeout);if(TextPr.Caps!==undefined)this.sync_TextCaps(TextPr.Caps);if(TextPr.SmallCaps!==undefined)this.sync_TextSmallCaps(TextPr.SmallCaps);
|
|
if(TextPr.Position!==undefined)this.sync_TextPosition(TextPr.Position);if(TextPr.Lang!==undefined)this.sync_TextLangCallBack(TextPr.Lang);if(TextPr.Unifill!==undefined)this.sync_TextColor2(TextPr.Unifill);if(AscCommon.isRealObject(TextPr.HighlightColor)){var oRGB=TextPr.HighlightColor.RGBA;this.sendEvent("asc_onTextHighLight",new AscCommon.CColor(oRGB.R,oRGB.G,oRGB.B))}else this.sendEvent("asc_onTextHighLight",AscCommonWord.highlight_None)}};asc_docs_api.prototype.sync_TextSpacing=function(Spacing){this.sendEvent("asc_onTextSpacing",
|
|
Spacing)};asc_docs_api.prototype.sync_TextDStrikeout=function(Value){this.sendEvent("asc_onTextDStrikeout",Value)};asc_docs_api.prototype.sync_TextCaps=function(Value){this.sendEvent("asc_onTextCaps",Value)};asc_docs_api.prototype.sync_TextSmallCaps=function(Value){this.sendEvent("asc_onTextSmallCaps",Value)};asc_docs_api.prototype.sync_TextPosition=function(Value){this.sendEvent("asc_onTextPosition",Value)};asc_docs_api.prototype.sync_TextLangCallBack=function(Lang){this.sendEvent("asc_onTextLanguage",
|
|
Lang.Val)};asc_docs_api.prototype.sync_VerticalTextAlign=function(align){this.sendEvent("asc_onVerticalTextAlign",align)};asc_docs_api.prototype.sync_Vert=function(vert){this.sendEvent("asc_onVert",vert)};asc_docs_api.prototype.UpdateParagraphProp=function(ParaPr){ParaPr.StyleName="";var TextPr=editor.WordControl.m_oLogicDocument.GetCalculatedTextPr();var oDrawingProps=editor.WordControl.m_oLogicDocument.Get_GraphicObjectsProps();if(oDrawingProps.shapeProps&&oDrawingProps.shapeProps.locked||oDrawingProps.chartProps&&
|
|
oDrawingProps.chartProps.locked||oDrawingProps.tableProps&&oDrawingProps.tableProps.Locked)ParaPr.Locked=true;ParaPr.Subscript=TextPr.VertAlign===AscCommon.vertalign_SubScript?true:false;ParaPr.Superscript=TextPr.VertAlign===AscCommon.vertalign_SuperScript?true:false;ParaPr.Strikeout=TextPr.Strikeout;ParaPr.DStrikeout=TextPr.DStrikeout;ParaPr.AllCaps=TextPr.Caps;ParaPr.SmallCaps=TextPr.SmallCaps;ParaPr.TextSpacing=TextPr.Spacing;ParaPr.Position=TextPr.Position;ParaPr.ListType=AscFormat.fGetListTypeFromBullet(ParaPr.Bullet);
|
|
this.sync_ParaSpacingLine(ParaPr.Spacing);this.Update_ParaInd(ParaPr.Ind);this.sync_PrAlignCallBack(ParaPr.Jc);this.sync_ParaStyleName(ParaPr.StyleName);this.sync_ListType(ParaPr.ListType);this.sync_PrPropCallback(ParaPr)};asc_docs_api.prototype._printDesktop=function(options){var opt={};if(options&&options.advancedOptions&&options.advancedOptions&&Asc.c_oAscPrintType.Selection===options.advancedOptions.asc_getPrintType())opt["printOptions"]={"selection":1};window["AscDesktopEditor"]["Print"](JSON.stringify(opt));
|
|
return true};asc_docs_api.prototype.Undo=function(){this.WordControl.m_oLogicDocument.Document_Undo()};asc_docs_api.prototype.Redo=function(){this.WordControl.m_oLogicDocument.Document_Redo()};asc_docs_api.prototype.Copy=function(){if(window["AscDesktopEditor"]){window["asc_desktop_copypaste"](this,"Copy");return true}return AscCommon.g_clipboardBase.Button_Copy()};asc_docs_api.prototype.Update_ParaTab=function(Default_Tab,ParaTabs){this.WordControl.m_oDrawingDocument.Update_ParaTab(Default_Tab,ParaTabs)};
|
|
asc_docs_api.prototype.Cut=function(){if(window["AscDesktopEditor"]){window["asc_desktop_copypaste"](this,"Cut");return true}return AscCommon.g_clipboardBase.Button_Cut()};asc_docs_api.prototype.Paste=function(){if(window["AscDesktopEditor"]){window["asc_desktop_copypaste"](this,"Paste");return true}if(!this.WordControl.m_oLogicDocument)return false;if(AscCommon.g_clipboardBase.IsWorking())return false;return AscCommon.g_clipboardBase.Button_Paste()};asc_docs_api.prototype.asc_ShowSpecialPasteButton=
|
|
function(props){if(window["NATIVE_EDITOR_ENJINE"])return;var presentation=editor.WordControl.m_oLogicDocument;var drawingDocument=presentation.DrawingDocument;var notesFocus=presentation.IsFocusOnNotes();var htmlElement=this.WordControl.m_oEditor.HtmlElement;var fixPos=props.fixPosition;var curCoord=props.asc_getCellCoord();var startShapePos;var specialPasteElemHeight=22;var specialPasteElemWidth=33;if(fixPos&&fixPos.h&&fixPos.w)startShapePos=drawingDocument.ConvertCoordsToCursorWR(fixPos.x-fixPos.w,
|
|
fixPos.y-fixPos.h,fixPos.pageNum);if(!notesFocus&&curCoord._y>htmlElement.height-specialPasteElemHeight)if(startShapePos&&startShapePos.Y<htmlElement.height-specialPasteElemHeight)curCoord._y=htmlElement.height-specialPasteElemHeight;else curCoord=new AscCommon.asc_CRect(-1,-1,0,0);var thumbnailsLeft=this.WordControl.m_oMainParent.AbsolutePosition.L*AscCommon.g_dKoef_mm_to_pix;if(!notesFocus&&curCoord._x>htmlElement.width+thumbnailsLeft-specialPasteElemWidth)if(startShapePos&&startShapePos.X<htmlElement.width+
|
|
thumbnailsLeft-specialPasteElemWidth)curCoord._x=htmlElement.width-specialPasteElemWidth+thumbnailsLeft;else curCoord=new AscCommon.asc_CRect(-1,-1,0,0);if(curCoord)props.asc_setCellCoord(curCoord);this.sendEvent("asc_onShowSpecialPasteOptions",props)};asc_docs_api.prototype.asc_HideSpecialPasteButton=function(){if(window["NATIVE_EDITOR_ENJINE"])return;this.sendEvent("asc_onHideSpecialPasteOptions")};asc_docs_api.prototype.asc_UpdateSpecialPasteButton=function(){if(window["NATIVE_EDITOR_ENJINE"])return;
|
|
var props=AscCommon.g_specialPasteHelper.buttonInfo;var presentation=editor.WordControl.m_oLogicDocument;var drawingDocument=presentation.DrawingDocument;var _coord,curCoord;var fixPos=props.fixPosition;var notesFocus=presentation.IsFocusOnNotes();if(props.shapeId){var targetDocContent=presentation?presentation.Get_TargetDocContent():null;if(targetDocContent&&targetDocContent.Id===props.shapeId){if(fixPos){_coord=drawingDocument.ConvertCoordsToCursorWR(fixPos.x,fixPos.y,fixPos.pageNum);curCoord=new AscCommon.asc_CRect(_coord.X,
|
|
_coord.Y,0,0)}}else curCoord=new AscCommon.asc_CRect(-1,-1,0,0)}else if(true===notesFocus)curCoord=new AscCommon.asc_CRect(-1,-1,0,0);else if(fixPos&&fixPos.pageNum===presentation.CurPage){_coord=drawingDocument.ConvertCoordsToCursorWR(fixPos.x,fixPos.y,fixPos.pageNum);curCoord=new AscCommon.asc_CRect(_coord.X,_coord.Y,0,0)}else curCoord=new AscCommon.asc_CRect(-1,-1,0,0);if(curCoord)props.asc_setCellCoord(curCoord);this.asc_ShowSpecialPasteButton(props)};asc_docs_api.prototype.Share=function(){};
|
|
asc_docs_api.prototype.asc_CheckCopy=function(_clipboard,_formats){if(!this.WordControl.m_oLogicDocument){var _text_object=AscCommon.c_oAscClipboardDataFormat.Text&_formats?{Text:""}:null;var _html_data=this.WordControl.m_oDrawingDocument.m_oDocumentRenderer.Copy(_text_object);if(AscCommon.c_oAscClipboardDataFormat.Text&_formats)_clipboard.pushData(AscCommon.c_oAscClipboardDataFormat.Text,_text_object.Text);if(AscCommon.c_oAscClipboardDataFormat.Html&_formats)_clipboard.pushData(AscCommon.c_oAscClipboardDataFormat.Html,
|
|
_html_data);return}var sBase64=null,_data;if(AscCommon.c_oAscClipboardDataFormat.Text&_formats){_data=this.WordControl.m_oLogicDocument.GetSelectedText(false,{NewLineParagraph:true,NewLine:true});_clipboard.pushData(AscCommon.c_oAscClipboardDataFormat.Text,_data)}if(AscCommon.c_oAscClipboardDataFormat.Html&_formats){var oCopyProcessor=new AscCommon.CopyProcessor(this);sBase64=oCopyProcessor.Start();_data=oCopyProcessor.getInnerHtml();_clipboard.pushData(AscCommon.c_oAscClipboardDataFormat.Html,_data)}if(AscCommon.c_oAscClipboardDataFormat.Internal&
|
|
_formats){if(sBase64===null){var oCopyProcessor=new AscCommon.CopyProcessor(this);sBase64=oCopyProcessor.Start()}_data=sBase64;_clipboard.pushData(AscCommon.c_oAscClipboardDataFormat.Internal,_data)}};asc_docs_api.prototype.asc_PasteData=function(_format,data1,data2,text_data){if(!this.canEdit())return;if(this.WordControl&&this.WordControl.DemonstrationManager&&this.WordControl.DemonstrationManager.Mode)return;if(false===this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(AscCommon.changestype_Paragraph_Content,
|
|
null,false)){this.WordControl.m_oLogicDocument.Create_NewHistoryPoint(AscDFH.historydescription_Document_PasteHotKey);window["AscCommon"].g_specialPasteHelper.Paste_Process_Start(arguments[5]);AscCommon.Editor_Paste_Exec(this,_format,data1,data2,text_data)}};asc_docs_api.prototype.asc_SpecialPaste=function(props){return AscCommon.g_specialPasteHelper.Special_Paste(props)};asc_docs_api.prototype.asc_SpecialPasteData=function(props){if(AscCommon.CollaborativeEditing.Get_GlobalLock())return;var _logicDoc=
|
|
this.WordControl.m_oLogicDocument;if(!_logicDoc)return;if(false===_logicDoc.Document_Is_SelectionLocked(AscCommon.changestype_Paragraph_Content,null,true,false)){window["AscCommon"].g_specialPasteHelper.Paste_Process_Start();window["AscCommon"].g_specialPasteHelper.Special_Paste_Start();this.WordControl.m_oLogicDocument.TurnOffInterfaceEvents=true;this.WordControl.m_oLogicDocument.Document_Undo();this.WordControl.m_oLogicDocument.TurnOffInterfaceEvents=false;_logicDoc.Create_NewHistoryPoint(AscDFH.historydescription_Document_PasteHotKey);
|
|
AscCommon.Editor_Paste_Exec(this,null,null,null,null,props)}};asc_docs_api.prototype.asc_IsFocus=function(bIsNaturalFocus){var _ret=false;if(this.WordControl.IsFocus)_ret=true;if(_ret&&bIsNaturalFocus&&this.WordControl.TextBoxInputFocus)_ret=false;return _ret};asc_docs_api.prototype.asc_SelectionCut=function(){if(!this.canEdit())return;var _logicDoc=this.WordControl.m_oLogicDocument;if(!_logicDoc)return;_logicDoc.Remove(1,true,true)};asc_docs_api.prototype._onSaveCallbackInner=function(){var t=this;
|
|
if(c_oAscCollaborativeMarksShowType.LastChanges===this.CollaborativeMarksShowType)AscCommon.CollaborativeEditing.Clear_CollaborativeMarks();AscCommon.CollaborativeEditing.Apply_Changes();this.CoAuthoringApi.onUnSaveLock=function(){t.CoAuthoringApi.onUnSaveLock=null;if(t.isForceSaveOnUserSave&&t.IsUserSave)t.forceSaveButtonContinue=t.forceSave();if(t.forceSaveForm)t.forceSaveForm();t.CheckChangedDocument();t.canSave=true;t.IsUserSave=false;if(!t.forceSaveButtonContinue)t.sync_EndAction(c_oAscAsyncActionType.Information,
|
|
c_oAscAsyncAction.Save);t._onUpdateDocumentCanSave();if(undefined!==window["AscDesktopEditor"])window["AscDesktopEditor"]["OnSave"]();if(t.disconnectOnSave){t.CoAuthoringApi.disconnect(t.disconnectOnSave.code,t.disconnectOnSave.reason);t.disconnectOnSave=null}if(t.canUnlockDocument)t._unlockDocument()};var CursorInfo=null;if(true===AscCommon.CollaborativeEditing.Is_Fast())CursorInfo=History.Get_DocumentPositionBinary();if(this.forceSaveUndoRequest){AscCommon.CollaborativeEditing.Set_GlobalLock(false);
|
|
AscCommon.CollaborativeEditing.Undo();this.forceSaveUndoRequest=false}else AscCommon.CollaborativeEditing.Send_Changes(this.IsUserSave,{UserId:this.CoAuthoringApi.getUserConnectionId(),UserShortId:this.DocInfo.get_UserId(),CursorInfo:CursorInfo},undefined,true)};asc_docs_api.prototype._autoSaveInner=function(){if(this.WordControl.DemonstrationManager&&this.WordControl.DemonstrationManager.Mode)return;var _curTime=new Date;if(null===this.lastSaveTime)this.lastSaveTime=_curTime;if(AscCommon.CollaborativeEditing.Is_Fast()&&
|
|
!AscCommon.CollaborativeEditing.Is_SingleUser())this.WordControl.m_oLogicDocument.Continue_FastCollaborativeEditing();else{var _bIsWaitScheme=false;if(this.WordControl.m_oDrawingDocument&&(!this.WordControl.m_oDrawingDocument.TransitionSlide||!this.WordControl.m_oDrawingDocument.TransitionSlide.IsPlaying())&&History.Points&&History.Index>=0&&History.Index<History.Points.length)if(_curTime-History.Points[History.Index].Time<this.intervalWaitAutoSave)_bIsWaitScheme=true;if(!_bIsWaitScheme){var _interval=
|
|
AscCommon.CollaborativeEditing.m_nUseType<=0?this.autoSaveGapSlow:this.autoSaveGapFast;if(_curTime-this.lastSaveTime>_interval){if(History.Have_Changes(true)==true)this.asc_Save(true);this.lastSaveTime=_curTime}}}};asc_docs_api.prototype._saveCheck=function(){return!this.isLongAction()&&!(this.WordControl.DemonstrationManager&&this.WordControl.DemonstrationManager.Mode)};asc_docs_api.prototype._haveOtherChanges=function(){return AscCommon.CollaborativeEditing.Have_OtherChanges()};asc_docs_api.prototype.asc_DownloadAs=
|
|
function(options){this.downloadAs(c_oAscAsyncAction.DownloadAs,options)};asc_docs_api.prototype.Resize=function(){if(false===this.bInit_word_control)return;this.WordControl.OnResize(false)};asc_docs_api.prototype.AddURL=function(url){};asc_docs_api.prototype.Help=function(){};asc_docs_api.prototype.asc_setAdvancedOptions=function(idOption,option){if(AscCommon.EncryptionWorker.asc_setAdvancedOptions(this,idOption,option))return;switch(idOption){case c_oAscAdvancedOptionsID.DRM:this.currentPassword=
|
|
option.asc_getPassword();var v={"id":this.documentId,"userid":this.documentUserId,"format":this.documentFormat,"c":"reopen","title":this.documentTitle,"password":option.asc_getPassword(),"nobase64":true};sendCommand(this,null,v);break}};asc_docs_api.prototype.startGetDocInfo=function(){this.sync_GetDocInfoStartCallback();this.WordControl.m_oLogicDocument.Statistics_Start()};asc_docs_api.prototype.stopGetDocInfo=function(){this.sync_GetDocInfoStopCallback();this.WordControl.m_oLogicDocument.Statistics_Stop()};
|
|
asc_docs_api.prototype.sync_DocInfoCallback=function(obj){this.sendEvent("asc_onDocInfo",new CDocInfoProp(obj))};asc_docs_api.prototype.sync_GetDocInfoStartCallback=function(){this.sendEvent("asc_onGetDocInfoStart")};asc_docs_api.prototype.sync_GetDocInfoStopCallback=function(){this.sendEvent("asc_onGetDocInfoStop")};asc_docs_api.prototype.sync_GetDocInfoEndCallback=function(){this.sendEvent("asc_onGetDocInfoEnd")};asc_docs_api.prototype.sync_CanUndoCallback=function(bCanUndo){this.sendEvent("asc_onCanUndo",
|
|
bCanUndo)};asc_docs_api.prototype.sync_CanRedoCallback=function(bCanRedo){if(true===AscCommon.CollaborativeEditing.Is_Fast()&&true!==AscCommon.CollaborativeEditing.Is_SingleUser())bCanRedo=false;this.sendEvent("asc_onCanRedo",bCanRedo)};asc_docs_api.prototype.sync_UndoCallBack=function(){this.sendEvent("asc_onUndo")};asc_docs_api.prototype.sync_RedoCallBack=function(){this.sendEvent("asc_onRedo")};asc_docs_api.prototype.sync_CopyCallBack=function(){this.sendEvent("asc_onCopy")};asc_docs_api.prototype.sync_CutCallBack=
|
|
function(){this.sendEvent("asc_onCut")};asc_docs_api.prototype.sync_PasteCallBack=function(){this.sendEvent("asc_onPaste")};asc_docs_api.prototype.sync_ShareCallBack=function(){this.sendEvent("asc_onShare")};asc_docs_api.prototype.sync_SaveCallBack=function(){this.sendEvent("asc_onSave")};asc_docs_api.prototype.sync_DownloadAsCallBack=function(){this.sendEvent("asc_onDownload")};asc_docs_api.prototype.sync_AddURLCallback=function(){this.sendEvent("asc_onAddURL")};asc_docs_api.prototype.sync_ErrorCallback=
|
|
function(errorID,errorLevel){this.sendEvent("asc_onError",errorID,errorLevel)};asc_docs_api.prototype.sync_HelpCallback=function(url){this.sendEvent("asc_onHelp",url)};asc_docs_api.prototype.sync_UpdateZoom=function(zoom){this.sendEvent("asc_onZoom",zoom)};asc_docs_api.prototype.ClearPropObjCallback=function(prop){this.sendEvent("asc_onClearPropObj",prop)};asc_docs_api.prototype.asc_GetDefaultTableStyles=function(){var logicDoc=this.WordControl.m_oLogicDocument;if(!logicDoc)return;if(logicDoc.CurPage>=
|
|
logicDoc.Slides.length)return;if(logicDoc.Slides.length==0)logicDoc.addNextSlide();logicDoc.CheckTableStylesDefault(logicDoc.Slides[logicDoc.CurPage])};asc_docs_api.prototype.CollectHeaders=function(){this.sync_ReturnHeadersCallback([])};asc_docs_api.prototype.GetActiveHeader=function(){};asc_docs_api.prototype.sync_ChangeActiveHeaderCallback=function(position,header){this.sendEvent("asc_onChangeActiveHeader",position,new Asc.CHeader(header))};asc_docs_api.prototype.sync_ReturnHeadersCallback=function(headers){var _headers=
|
|
[];for(var i=0;i<headers.length;i++)_headers[i]=new Asc.CHeader(headers[i]);this.sendEvent("asc_onReturnHeaders",_headers)};asc_docs_api.prototype.startSearchText=function(what){this._searchCur=0;this.sync_SearchStartCallback();if(null!=this.WordControl.m_oLogicDocument);else this.WordControl.m_oDrawingDocument.m_oDocumentRenderer.StartSearch(what)};asc_docs_api.prototype.goToNextSearchResult=function(){this.WordControl.m_oLogicDocument.goToNextSearchResult()};asc_docs_api.prototype.gotoSearchResultText=
|
|
function(navigator){this.WordControl.m_oDrawingDocument.CurrentSearchNavi=navigator;this.WordControl.ToSearchResult()};asc_docs_api.prototype.stopSearchText=function(){this.sync_SearchStopCallback();this.WordControl.m_oLogicDocument.Search_Stop()};asc_docs_api.prototype.sync_ReplaceAllCallback=function(ReplaceCount,OverallCount){this.sendEvent("asc_onReplaceAll",OverallCount,ReplaceCount)};asc_docs_api.prototype.sync_SearchEndCallback=function(){this.sendEvent("asc_onSearchEnd")};asc_docs_api.prototype.findText=
|
|
function(text,isNext,isMatchCase){var SearchEngine=editor.WordControl.m_oLogicDocument.Search(text,{MatchCase:isMatchCase});var Id=this.WordControl.m_oLogicDocument.GetSearchElementId(isNext);if(null!=Id)this.WordControl.m_oLogicDocument.SelectSearchElement(Id);return SearchEngine.Count};asc_docs_api.prototype.asc_replaceText=function(text,replaceWith,isReplaceAll,isMatchCase){if(null==this.WordControl.m_oLogicDocument)return;this.WordControl.m_oLogicDocument.Search(text,{MatchCase:isMatchCase});
|
|
if(true===isReplaceAll)this.WordControl.m_oLogicDocument.ReplaceSearchElement(replaceWith,true,-1);else{var CurId=this.WordControl.m_oLogicDocument.SearchEngine.CurId;var bDirection=this.WordControl.m_oLogicDocument.SearchEngine.Direction;if(-1!=CurId)this.WordControl.m_oLogicDocument.ReplaceSearchElement(replaceWith,false,CurId);var Id=this.WordControl.m_oLogicDocument.GetSearchElementId(bDirection);if(null!=Id){this.WordControl.m_oLogicDocument.SelectSearchElement(Id);return true}else{this.WordControl.m_oLogicDocument.Document_UpdateInterfaceState();
|
|
this.WordControl.m_oLogicDocument.Document_UpdateSelectionState();this.WordControl.OnUpdateOverlay()}return false}};asc_docs_api.prototype.asc_searchEnabled=function(bIsEnabled){};asc_docs_api.prototype.asc_findText=function(text,isNext,isMatchCase){return this.WordControl.m_oLogicDocument.findText(text,isNext===true)};asc_docs_api.prototype.sync_SearchFoundCallback=function(obj){this.sendEvent("asc_onSearchFound",new CSearchResult(obj))};asc_docs_api.prototype.sync_SearchStartCallback=function(){this.sendEvent("asc_onSearchStart")};
|
|
asc_docs_api.prototype.sync_SearchStopCallback=function(){this.sendEvent("asc_onSearchStop")};asc_docs_api.prototype.sync_SearchEndCallback=function(){this.sendEvent("asc_onSearchEnd")};asc_docs_api.prototype.put_TextPrFontName=function(name){var loader=AscCommon.g_font_loader;var fontinfo=AscFonts.g_fontApplication.GetFontInfo(name);var isasync=loader.LoadFont(fontinfo);if(false===isasync)if(editor.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(changestype_Drawing_Props)===false){History.Create_NewPoint(AscDFH.historydescription_Presentation_ParagraphAdd);
|
|
this.WordControl.m_oLogicDocument.AddToParagraph(new AscCommonWord.ParaTextPr({FontFamily:{Name:name,Index:-1}}),false)}};asc_docs_api.prototype.put_TextPrFontSize=function(size){if(!AscFormat.isRealNumber(size)||size<1)return;if(editor.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(changestype_Drawing_Props)===false){History.Create_NewPoint(AscDFH.historydescription_Presentation_ParagraphAdd);this.WordControl.m_oLogicDocument.AddToParagraph(new AscCommonWord.ParaTextPr({FontSize:Math.min(size,
|
|
300)}),false);this.WordControl.m_oLogicDocument.CheckResetShapesAutoFit(true);if(this.isMobileVersion)this.UpdateInterfaceState()}};asc_docs_api.prototype.put_TextPrLang=function(value){if(false===this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(AscCommon.changestype_Paragraph_Content)){this.WordControl.m_oLogicDocument.Create_NewHistoryPoint(AscDFH.historydescription_Document_SetTextLang);this.WordControl.m_oLogicDocument.AddToParagraph(new AscCommonWord.ParaTextPr({Lang:{Val:value}}),
|
|
false);this.WordControl.m_oLogicDocument.Spelling.Check_CurParas()}};asc_docs_api.prototype.put_TextPrBold=function(value){if(editor.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(changestype_Drawing_Props)===false){History.Create_NewPoint(AscDFH.historydescription_Presentation_ParagraphAdd);this.WordControl.m_oLogicDocument.AddToParagraph(new AscCommonWord.ParaTextPr({Bold:value}),false)}};asc_docs_api.prototype.put_TextPrItalic=function(value){if(editor.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(changestype_Drawing_Props)===
|
|
false){History.Create_NewPoint(AscDFH.historydescription_Presentation_ParagraphAdd);this.WordControl.m_oLogicDocument.AddToParagraph(new AscCommonWord.ParaTextPr({Italic:value}),false)}};asc_docs_api.prototype.put_TextPrUnderline=function(value){if(editor.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(changestype_Drawing_Props)===false){History.Create_NewPoint(AscDFH.historydescription_Presentation_ParagraphAdd);this.WordControl.m_oLogicDocument.AddToParagraph(new AscCommonWord.ParaTextPr({Underline:value}),
|
|
false)}};asc_docs_api.prototype.put_TextPrStrikeout=function(value){if(editor.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(changestype_Drawing_Props)===false){History.Create_NewPoint(AscDFH.historydescription_Presentation_ParagraphAdd);this.WordControl.m_oLogicDocument.AddToParagraph(new AscCommonWord.ParaTextPr({Strikeout:value,DStrikeout:false}),false)}};asc_docs_api.prototype.put_PrLineSpacing=function(Type,Value){this.WordControl.m_oLogicDocument.SetParagraphSpacing({LineRule:Type,
|
|
Line:Value})};asc_docs_api.prototype.put_LineSpacingBeforeAfter=function(type,value){switch(type){case 0:this.WordControl.m_oLogicDocument.SetParagraphSpacing({Before:value});break;case 1:this.WordControl.m_oLogicDocument.SetParagraphSpacing({After:value});break}};asc_docs_api.prototype.FontSizeIn=function(){this.WordControl.m_oLogicDocument.IncreaseDecreaseFontSize(true)};asc_docs_api.prototype.FontSizeOut=function(){this.WordControl.m_oLogicDocument.IncreaseDecreaseFontSize(false)};asc_docs_api.prototype.sync_BoldCallBack=
|
|
function(isBold){this.sendEvent("asc_onBold",isBold)};asc_docs_api.prototype.sync_ItalicCallBack=function(isItalic){this.sendEvent("asc_onItalic",isItalic)};asc_docs_api.prototype.sync_UnderlineCallBack=function(isUnderline){this.sendEvent("asc_onUnderline",isUnderline)};asc_docs_api.prototype.sync_StrikeoutCallBack=function(isStrikeout){this.sendEvent("asc_onStrikeout",isStrikeout)};asc_docs_api.prototype.sync_TextPrFontFamilyCallBack=function(FontFamily){this.sendEvent("asc_onFontFamily",new AscCommon.asc_CTextFontFamily(FontFamily))};
|
|
asc_docs_api.prototype.sync_TextPrFontSizeCallBack=function(FontSize){this.sendEvent("asc_onFontSize",FontSize)};asc_docs_api.prototype.sync_PrLineSpacingCallBack=function(LineSpacing){this.sendEvent("asc_onLineSpacing",new AscCommon.asc_CParagraphSpacing(LineSpacing))};asc_docs_api.prototype.sync_InitEditorThemes=function(gui_editor_themes,gui_document_themes){this._gui_editor_themes=gui_editor_themes;this._gui_document_themes=gui_document_themes;if(!this.isViewMode)this.sendEvent("asc_onInitEditorStyles",
|
|
[gui_editor_themes,gui_document_themes])};asc_docs_api.prototype.sync_InitEditorTableStyles=function(styles){if(!this.isViewMode)this.sendEvent("asc_onInitTableTemplates",styles)};asc_docs_api.prototype.paraApply=function(Props){var _presentation=editor.WordControl.m_oLogicDocument;var graphicObjects=_presentation.GetCurrentController();if(graphicObjects){var sLoadFont=null,sLoadText=null;var fCallback=function(){graphicObjects.paraApplyCallback(Props);_presentation.Document_UpdateInterfaceState()};
|
|
var oBullet=Props.asc_getBullet();if(oBullet){sLoadFont=oBullet.asc_getFont();sLoadText=oBullet.asc_getSymbol()}if(typeof sLoadFont==="string"&&sLoadFont.length>0&&typeof sLoadText==="string"&&sLoadText.length>0){var loader=AscCommon.g_font_loader;var fontinfo=AscFonts.g_fontApplication.GetFontInfo(sLoadFont);var isasync=loader.LoadFont(fontinfo);if(false===isasync)AscFonts.FontPickerByCharacter.checkText(sLoadText,this,function(){graphicObjects.checkSelectedObjectsAndCallback(fCallback,[],false,
|
|
AscDFH.historydescription_Presentation_ParaApply)});else this.asyncMethodCallback=function(){AscFonts.FontPickerByCharacter.checkText(sLoadText,this,function(){graphicObjects.checkSelectedObjectsAndCallback(fCallback,[],false,AscDFH.historydescription_Presentation_ParaApply)})}}else graphicObjects.checkSelectedObjectsAndCallback(fCallback,[],false,AscDFH.historydescription_Presentation_ParaApply)}};asc_docs_api.prototype.put_PrAlign=function(value){this.WordControl.m_oLogicDocument.Create_NewHistoryPoint(AscDFH.historydescription_Presentation_PutTextPrAlign);
|
|
this.WordControl.m_oLogicDocument.SetParagraphAlign(value)};asc_docs_api.prototype.put_TextPrBaseline=function(value){if(editor.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(changestype_Drawing_Props)===false){History.Create_NewPoint(AscDFH.historydescription_Presentation_ParagraphAdd);this.WordControl.m_oLogicDocument.AddToParagraph(new AscCommonWord.ParaTextPr({VertAlign:value}),false)}};asc_docs_api.prototype.put_ListType=function(type,subtype){var oPresentation=this.WordControl.m_oLogicDocument;
|
|
var NumberInfo={Type:type,SubType:subtype};var oBullet=AscFormat.fGetPresentationBulletByNumInfo(NumberInfo);var sBullet=oBullet.asc_getSymbol();var fCallback=function(){oPresentation.SetParagraphNumbering(oBullet)};if(typeof sBullet==="string"&&sBullet.length>0)AscFonts.FontPickerByCharacter.checkText(sBullet,this,fCallback);else fCallback()};asc_docs_api.prototype.put_ShowSnapLines=function(isShow){this.ShowSnapLines=isShow};asc_docs_api.prototype.get_ShowSnapLines=function(){return this.ShowSnapLines};
|
|
asc_docs_api.prototype.put_ShowParaMarks=function(isShow){this.ShowParaMarks=isShow;this.WordControl.OnRePaintAttack();return this.ShowParaMarks};asc_docs_api.prototype.get_ShowParaMarks=function(){return this.ShowParaMarks};asc_docs_api.prototype.put_ShowTableEmptyLine=function(isShow){this.isShowTableEmptyLine=isShow;this.WordControl.OnRePaintAttack();return this.isShowTableEmptyLine};asc_docs_api.prototype.get_ShowTableEmptyLine=function(){return this.isShowTableEmptyLine};asc_docs_api.prototype.ShapeApply=
|
|
function(prop){var image_url="";var sToken=undefined;prop.Width=prop.w;prop.Height=prop.h;var bShapeTexture=true;if(prop.fill!=null)if(prop.fill.fill!=null&&prop.fill.type==c_oAscFill.FILL_TYPE_BLIP){image_url=prop.fill.fill.asc_getUrl();sToken=prop.fill.fill.token;var _tx_id=prop.fill.fill.asc_getTextureId();if(null!=_tx_id&&0<=_tx_id&&_tx_id<AscCommon.g_oUserTexturePresets.length)image_url=AscCommon.g_oUserTexturePresets[_tx_id]}var oFill;if(prop.textArtProperties){oFill=prop.textArtProperties.asc_getFill();
|
|
if(oFill&&oFill.fill!=null&&oFill.type==c_oAscFill.FILL_TYPE_BLIP){image_url=oFill.fill.asc_getUrl();sToken=oFill.fill.token;var _tx_id=oFill.fill.asc_getTextureId();if(null!=_tx_id&&0<=_tx_id&&_tx_id<AscCommon.g_oUserTexturePresets.length)image_url=AscCommon.g_oUserTexturePresets[_tx_id];bShapeTexture=false}}if(!AscCommon.isNullOrEmptyString(image_url)){var sImageUrl=null;if(!g_oDocumentUrls.getImageLocal(image_url))sImageUrl=image_url;var oApi=this;var fApplyCallback=function(){var _image=oApi.ImageLoader.LoadImage(image_url,
|
|
1);var srcLocal=g_oDocumentUrls.getImageLocal(image_url);if(srcLocal)image_url=srcLocal;if(bShapeTexture)prop.fill.fill.asc_putUrl(image_url);else oFill.fill.asc_putUrl(image_url);if(null!=_image||window["NATIVE_EDITOR_ENJINE"]){oApi.WordControl.m_oLogicDocument.ShapeApply(prop);if(bShapeTexture)oApi.WordControl.m_oDrawingDocument.DrawImageTextureFillShape(image_url);else oApi.WordControl.m_oDrawingDocument.DrawImageTextureFillTextArt(image_url)}else{oApi.sync_StartAction(c_oAscAsyncActionType.Information,
|
|
c_oAscAsyncAction.LoadImage);var oProp=prop;oApi.asyncImageEndLoaded2=function(_image){oApi.WordControl.m_oLogicDocument.ShapeApply(oProp);oApi.WordControl.m_oDrawingDocument.DrawImageTextureFillShape(image_url);oApi.sync_EndAction(c_oAscAsyncActionType.Information,c_oAscAsyncAction.LoadImage);oApi.asyncImageEndLoaded2=null}}};if(!sImageUrl)fApplyCallback();else{if(window["AscDesktopEditor"]&&window["AscDesktopEditor"]["IsLocalFile"]()){image_url=window["AscDesktopEditor"]["LocalFileGetImageUrl"](sImageUrl);
|
|
image_url=g_oDocumentUrls.getImageUrl(image_url);fApplyCallback();return}AscCommon.sendImgUrls(this,[sImageUrl],function(data){if(data&&data[0]&&data[0].url!=="error"){image_url=data[0].url;fApplyCallback()}},false,undefined,sToken)}}else{if(!this.noCreatePoint||this.exucuteHistory){if(!this.noCreatePoint&&!this.exucuteHistory&&this.exucuteHistoryEnd){if(-1!==this.nCurPointItemsLength){History.UndoLastPoint();var slide=this.WordControl.m_oLogicDocument.Slides[this.WordControl.m_oLogicDocument.CurPage];
|
|
slide.graphicObjects.applyDrawingProps(prop);this.WordControl.m_oLogicDocument.Recalculate();this.WordControl.m_oDrawingDocument.OnRecalculatePage(this.WordControl.m_oLogicDocument.CurPage,slide);this.WordControl.m_oDrawingDocument.OnEndRecalculate()}else this.WordControl.m_oLogicDocument.ShapeApply(prop);this.exucuteHistoryEnd=false;this.nCurPointItemsLength=-1}else this.WordControl.m_oLogicDocument.ShapeApply(prop);if(this.exucuteHistory){var oPoint=History.Points[History.Index];if(oPoint)this.nCurPointItemsLength=
|
|
oPoint.Items.length;else this.nCurPointItemsLength=-1;this.exucuteHistory=false}if(this.exucuteHistoryEnd)this.exucuteHistoryEnd=false}else if(this.WordControl.m_oLogicDocument.Slides[this.WordControl.m_oLogicDocument.CurPage])if(-1!==this.nCurPointItemsLength){History.UndoLastPoint();var slide=this.WordControl.m_oLogicDocument.Slides[this.WordControl.m_oLogicDocument.CurPage];slide.graphicObjects.applyDrawingProps(prop);this.WordControl.m_oLogicDocument.Recalculate();this.WordControl.m_oDrawingDocument.OnRecalculatePage(this.WordControl.m_oLogicDocument.CurPage,
|
|
slide);this.WordControl.m_oDrawingDocument.OnEndRecalculate()}else{this.WordControl.m_oLogicDocument.ShapeApply(prop);var oPoint=History.Points[History.Index];if(oPoint)this.nCurPointItemsLength=oPoint.Items.length;else this.nCurPointItemsLength=-1}this.exucuteHistoryEnd=false}};asc_docs_api.prototype.setStartPointHistory=function(){this.noCreatePoint=true;this.exucuteHistory=true;this.incrementCounterLongAction()};asc_docs_api.prototype.setEndPointHistory=function(){this.noCreatePoint=false;this.exucuteHistoryEnd=
|
|
true;this.decrementCounterLongAction()};asc_docs_api.prototype.SetSlideProps=function(prop){if(null==prop)return;var arr_ind=this.WordControl.m_oLogicDocument.GetSelectedSlides();var _back_fill=prop.get_background();if(_back_fill){if(_back_fill.asc_getType()==c_oAscFill.FILL_TYPE_NOFILL){var bg=new AscFormat.CBg;bg.bgPr=new AscFormat.CBgPr;bg.bgPr.Fill=AscFormat.CorrectUniFill(_back_fill,null,0);this.WordControl.m_oLogicDocument.changeBackground(bg,arr_ind);return}var _old_fill=this.WordControl.m_oLogicDocument.Slides[this.WordControl.m_oLogicDocument.CurPage].backgroundFill;
|
|
if(AscCommon.isRealObject(_old_fill))_old_fill=_old_fill.createDuplicate();var bg=new AscFormat.CBg;bg.bgPr=new AscFormat.CBgPr;bg.bgPr.Fill=AscFormat.CorrectUniFill(_back_fill,_old_fill,0);var image_url="",sToken=undefined;if(_back_fill.asc_getType()==c_oAscFill.FILL_TYPE_BLIP&&_back_fill.fill&&typeof _back_fill.fill.url==="string"&&_back_fill.fill.url.length>0){image_url=_back_fill.fill.url;sToken=_back_fill.fill.token}if(image_url!=""){var sImageUrl=null;if(!g_oDocumentUrls.getImageLocal(image_url))sImageUrl=
|
|
image_url;var oApi=this;var fApplyCallback=function(){var _image=oApi.ImageLoader.LoadImage(image_url,1);var srcLocal=g_oDocumentUrls.getImageLocal(image_url);if(srcLocal){image_url=srcLocal;bg.bgPr.Fill.fill.RasterImageId=image_url}if(null!=_image||window["NATIVE_EDITOR_ENJINE"]){if(bg.bgPr.Fill!=null&&bg.bgPr.Fill.fill!=null&&bg.bgPr.Fill.fill.type==c_oAscFill.FILL_TYPE_BLIP)oApi.WordControl.m_oDrawingDocument.DrawImageTextureFillSlide(bg.bgPr.Fill.fill.RasterImageId);oApi.WordControl.m_oLogicDocument.changeBackground(bg,
|
|
arr_ind)}else{oApi.sync_StartAction(c_oAscAsyncActionType.Information,c_oAscAsyncAction.LoadImage);var oProp=prop;oApi.asyncImageEndLoaded2=function(_image){if(bg.bgPr.Fill!=null&&bg.bgPr.Fill.fill!=null&&bg.bgPr.Fill.fill.type==c_oAscFill.FILL_TYPE_BLIP)oApi.WordControl.m_oDrawingDocument.DrawImageTextureFillSlide(bg.bgPr.Fill.fill.RasterImageId);oApi.WordControl.m_oLogicDocument.changeBackground(bg,arr_ind);oApi.asyncImageEndLoaded2=null;oApi.sync_EndAction(c_oAscAsyncActionType.Information,c_oAscAsyncAction.LoadImage)}}};
|
|
if(!sImageUrl)fApplyCallback();else{if(window["AscDesktopEditor"]&&window["AscDesktopEditor"]["IsLocalFile"]()){image_url=window["AscDesktopEditor"]["LocalFileGetImageUrl"](sImageUrl);image_url=g_oDocumentUrls.getImageUrl(image_url);fApplyCallback();return}AscCommon.sendImgUrls(this,[sImageUrl],function(data){if(data&&data[0]&&data[0].url!=="error"){image_url=data[0].url;fApplyCallback()}},false,undefined,sToken)}}else{if(bg.bgPr.Fill!=null&&bg.bgPr.Fill.fill!=null&&bg.bgPr.Fill.fill.type==c_oAscFill.FILL_TYPE_BLIP)this.WordControl.m_oDrawingDocument.DrawImageTextureFillSlide(bg.bgPr.Fill.fill.RasterImageId);
|
|
if(!this.noCreatePoint||this.exucuteHistory){if(!this.noCreatePoint&&!this.exucuteHistory&&this.exucuteHistoryEnd){this.WordControl.m_oLogicDocument.changeBackground(bg,arr_ind,true);this.exucuteHistoryEnd=false}else this.WordControl.m_oLogicDocument.changeBackground(bg,arr_ind);if(this.exucuteHistory)this.exucuteHistory=false;if(this.exucuteHistoryEnd)this.exucuteHistoryEnd=false}else if(this.WordControl.m_oLogicDocument.Slides[this.WordControl.m_oLogicDocument.CurPage])AscFormat.ExecuteNoHistory(function(){this.WordControl.m_oLogicDocument.changeBackground(bg,
|
|
arr_ind,true);for(var i=0;i<arr_ind.length;++i)this.WordControl.m_oLogicDocument.Slides[arr_ind[i]].recalculateBackground();for(i=0;i<arr_ind.length;++i)this.WordControl.m_oLogicDocument.DrawingDocument.OnRecalculatePage(arr_ind[i],this.WordControl.m_oLogicDocument.Slides[arr_ind[i]]);this.WordControl.m_oLogicDocument.DrawingDocument.OnEndRecalculate(true,false)},this,[])}}var _transition=prop.get_transition();if(_transition)this.ApplySlideTransition(_transition)};asc_docs_api.prototype.put_LineCap=
|
|
function(_cap){this.WordControl.m_oLogicDocument.putLineCap(_cap)};asc_docs_api.prototype.put_LineJoin=function(_join){this.WordControl.m_oLogicDocument.putLineJoin(_join)};asc_docs_api.prototype.put_LineBeginStyle=function(_style){this.WordControl.m_oLogicDocument.putLineBeginStyle(_style)};asc_docs_api.prototype.put_LineBeginSize=function(_size){this.WordControl.m_oLogicDocument.putLineBeginSize(_size)};asc_docs_api.prototype.put_LineEndStyle=function(_style){this.WordControl.m_oLogicDocument.putLineEndStyle(_style)};
|
|
asc_docs_api.prototype.put_LineEndSize=function(_size){this.WordControl.m_oLogicDocument.putLineEndSize(_size)};asc_docs_api.prototype.put_TextColor2=function(r,g,b){if(editor.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(changestype_Drawing_Props)===false){History.Create_NewPoint(AscDFH.historydescription_Presentation_ParagraphAdd);this.WordControl.m_oLogicDocument.AddToParagraph(new AscCommonWord.ParaTextPr({Color:{r:r,g:g,b:b}}),false)}};asc_docs_api.prototype.put_TextColor=function(color){if(editor.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(changestype_Drawing_Props)===
|
|
false){History.Create_NewPoint(AscDFH.historydescription_Presentation_ParagraphAdd);var _unifill=new AscFormat.CUniFill;_unifill.fill=new AscFormat.CSolidFill;_unifill.fill.color=AscFormat.CorrectUniColor(color,_unifill.fill.color,0);this.WordControl.m_oLogicDocument.AddToParagraph(new AscCommonWord.ParaTextPr({Unifill:_unifill}),false)}};asc_docs_api.prototype.put_PrIndent=function(value,levelValue){this.WordControl.m_oLogicDocument.Create_NewHistoryPoint(AscDFH.historydescription_Presentation_PutPrIndent);
|
|
this.WordControl.m_oLogicDocument.SetParagraphIndent({Left:value,ChangeLevel:levelValue})};asc_docs_api.prototype.IncreaseIndent=function(){this.WordControl.m_oLogicDocument.IncreaseDecreaseIndent(true)};asc_docs_api.prototype.DecreaseIndent=function(){this.WordControl.m_oLogicDocument.IncreaseDecreaseIndent(false)};asc_docs_api.prototype.put_PrIndentRight=function(value){this.WordControl.m_oLogicDocument.Create_NewHistoryPoint(AscDFH.historydescription_Presentation_PutPrIndentRight);this.WordControl.m_oLogicDocument.SetParagraphIndent({Right:value})};
|
|
asc_docs_api.prototype.put_PrFirstLineIndent=function(value){this.WordControl.m_oLogicDocument.Create_NewHistoryPoint(AscDFH.historydescription_Presentation_PutPrFirstLineIndent);this.WordControl.m_oLogicDocument.SetParagraphIndent({FirstLine:value})};asc_docs_api.prototype.getFocusObject=function(){};asc_docs_api.prototype.sync_VerticalAlign=function(typeBaseline){this.sendEvent("asc_onVerticalAlign",typeBaseline)};asc_docs_api.prototype.sync_PrAlignCallBack=function(value){this.sendEvent("asc_onPrAlign",
|
|
value)};asc_docs_api.prototype.sync_ListType=function(NumPr){this.sendEvent("asc_onListType",new AscCommon.asc_CListType(NumPr))};asc_docs_api.prototype.sync_TextColor=function(Color){this.sendEvent("asc_onTextColor",new AscCommon.CColor(Color.r,Color.g,Color.b))};asc_docs_api.prototype.sync_TextColor2=function(unifill){var _color;if(unifill.fill==null)return;var color;if(unifill.fill.type==c_oAscFill.FILL_TYPE_SOLID){_color=unifill.getRGBAColor();color=AscCommon.CreateAscColor(unifill.fill.color);
|
|
color.asc_putR(_color.R);color.asc_putG(_color.G);color.asc_putB(_color.B);this.sendEvent("asc_onTextColor",color)}else if(unifill.fill.type==c_oAscFill.FILL_TYPE_GRAD){_color=unifill.getRGBAColor();if(unifill.fill.colors[0]&&unifill.fill.colors[0].color)color=AscCommon.CreateAscColor(unifill.fill.colors[0].color);else color=new Asc.asc_CColor;color.asc_putR(_color.R);color.asc_putG(_color.G);color.asc_putB(_color.B);this.sendEvent("asc_onTextColor",color)}else{_color=unifill.getRGBAColor();color=
|
|
new Asc.asc_CColor;color.asc_putR(_color.R);color.asc_putG(_color.G);color.asc_putB(_color.B);this.sendEvent("asc_onTextColor",color)}};asc_docs_api.prototype.sync_TextHighLight=function(HighLight){this.sendEvent("asc_onTextHighLight",new AscCommon.CColor(HighLight.r,HighLight.g,HighLight.b))};asc_docs_api.prototype.sync_ParaStyleName=function(Name){this.sendEvent("asc_onParaStyleName",Name)};asc_docs_api.prototype.sync_ParaSpacingLine=function(SpacingLine){this.sendEvent("asc_onParaSpacingLine",
|
|
new AscCommon.asc_CParagraphSpacing(SpacingLine))};asc_docs_api.prototype.sync_PageBreakCallback=function(isBreak){this.sendEvent("asc_onPageBreak",isBreak)};asc_docs_api.prototype.sync_KeepLinesCallback=function(isKeepLines){this.sendEvent("asc_onKeepLines",isKeepLines)};asc_docs_api.prototype.sync_ShowParaMarksCallback=function(){this.sendEvent("asc_onShowParaMarks")};asc_docs_api.prototype.sync_SpaceBetweenPrgCallback=function(){this.sendEvent("asc_onSpaceBetweenPrg")};asc_docs_api.prototype.sync_PrPropCallback=
|
|
function(prProp){var _len=this.SelectedObjectsStack.length;if(_len>0)if(this.SelectedObjectsStack[_len-1].Type==c_oAscTypeSelectElement.Paragraph){this.SelectedObjectsStack[_len-1].Value=new Asc.asc_CParagraphProperty(prProp);return}this.SelectedObjectsStack[this.SelectedObjectsStack.length]=new asc_CSelectedObject(c_oAscTypeSelectElement.Paragraph,new Asc.asc_CParagraphProperty(prProp))};asc_docs_api.prototype.SetDrawImagePlaceParagraph=function(element_id,props){this.WordControl.m_oDrawingDocument.InitGuiCanvasTextProps(element_id);
|
|
this.WordControl.m_oDrawingDocument.DrawGuiCanvasTextProps(props)};asc_docs_api.prototype.Update_ParaInd=function(Ind){var FirstLine=0;var Left=0;var Right=0;if("undefined"!=typeof Ind){if("undefined"!=typeof Ind.FirstLine)FirstLine=Ind.FirstLine;if("undefined"!=typeof Ind.Left)Left=Ind.Left;if("undefined"!=typeof Ind.Right)Right=Ind.Right}this.Internal_Update_Ind_Left(Left);this.Internal_Update_Ind_FirstLine(FirstLine,Left);this.Internal_Update_Ind_Right(Right)};asc_docs_api.prototype.Internal_Update_Ind_FirstLine=
|
|
function(FirstLine,Left){if(this.WordControl.m_oHorRuler.m_dIndentLeftFirst!=FirstLine+Left){this.WordControl.m_oHorRuler.m_dIndentLeftFirst=FirstLine+Left;this.WordControl.UpdateHorRuler()}};asc_docs_api.prototype.Internal_Update_Ind_Left=function(Left){if(this.WordControl.m_oHorRuler.m_dIndentLeft!=Left){this.WordControl.m_oHorRuler.m_dIndentLeft=Left;this.WordControl.UpdateHorRuler()}};asc_docs_api.prototype.Internal_Update_Ind_Right=function(Right){if(this.WordControl.m_oHorRuler.m_dIndentRight!=
|
|
Right){this.WordControl.m_oHorRuler.m_dIndentRight=Right;this.WordControl.UpdateHorRuler()}};asc_docs_api.prototype.put_Table=function(col,row,placeholder,sStyleId){this.WordControl.m_oLogicDocument.Add_FlowTable(col,row,placeholder,sStyleId)};asc_docs_api.prototype.addRowAbove=function(count){var doc=this.WordControl.m_oLogicDocument;var oController=doc.GetCurrentController();if(!oController)return;var aAdditionalObjects=oController.getConnectorsForCheck2();if(doc.Document_Is_SelectionLocked(changestype_Drawing_Props,
|
|
undefined,undefined,aAdditionalObjects)===false){this.WordControl.m_oLogicDocument.Create_NewHistoryPoint(AscDFH.historydescription_Presentation_AddRowAbove);this.WordControl.m_oLogicDocument.AddTableRow(true)}};asc_docs_api.prototype.addRowBelow=function(count){var doc=this.WordControl.m_oLogicDocument;var oController=doc.GetCurrentController();if(!oController)return;var aAdditionalObjects=oController.getConnectorsForCheck2();if(doc.Document_Is_SelectionLocked(changestype_Drawing_Props,undefined,
|
|
undefined,aAdditionalObjects)===false){this.WordControl.m_oLogicDocument.Create_NewHistoryPoint(AscDFH.historydescription_Presentation_AddRowBelow);this.WordControl.m_oLogicDocument.AddTableRow(false)}};asc_docs_api.prototype.addColumnLeft=function(count){var doc=this.WordControl.m_oLogicDocument;var oController=doc.GetCurrentController();if(!oController)return;var aAdditionalObjects=oController.getConnectorsForCheck2();if(doc.Document_Is_SelectionLocked(changestype_Drawing_Props,undefined,undefined,
|
|
aAdditionalObjects)===false){this.WordControl.m_oLogicDocument.Create_NewHistoryPoint(AscDFH.historydescription_Presentation_AddColLeft);this.WordControl.m_oLogicDocument.AddTableColumn(true)}};asc_docs_api.prototype.addColumnRight=function(count){var doc=this.WordControl.m_oLogicDocument;var oController=doc.GetCurrentController();if(!oController)return;var aAdditionalObjects=oController.getConnectorsForCheck2();if(doc.Document_Is_SelectionLocked(changestype_Drawing_Props,undefined,undefined,aAdditionalObjects)===
|
|
false){this.WordControl.m_oLogicDocument.Create_NewHistoryPoint(AscDFH.historydescription_Presentation_AddColRight);this.WordControl.m_oLogicDocument.AddTableColumn(false)}};asc_docs_api.prototype.remRow=function(){var doc=this.WordControl.m_oLogicDocument;var oController=doc.GetCurrentController();if(!oController)return;var aAdditionalObjects=oController.getConnectorsForCheck2();if(doc.Document_Is_SelectionLocked(changestype_Drawing_Props,undefined,undefined,aAdditionalObjects)===false){this.WordControl.m_oLogicDocument.Create_NewHistoryPoint(AscDFH.historydescription_Presentation_RemoveRow);
|
|
this.WordControl.m_oLogicDocument.RemoveTableRow()}};asc_docs_api.prototype.remColumn=function(){var doc=this.WordControl.m_oLogicDocument;var oController=doc.GetCurrentController();if(!oController)return;var aAdditionalObjects=oController.getConnectorsForCheck2();if(doc.Document_Is_SelectionLocked(changestype_Drawing_Props,undefined,undefined,aAdditionalObjects)===false){this.WordControl.m_oLogicDocument.Create_NewHistoryPoint(AscDFH.historydescription_Presentation_RemoveCol);this.WordControl.m_oLogicDocument.RemoveTableColumn()}};
|
|
asc_docs_api.prototype.remTable=function(){var doc=this.WordControl.m_oLogicDocument;if(doc.Document_Is_SelectionLocked(changestype_Drawing_Props)===false){this.WordControl.m_oLogicDocument.Create_NewHistoryPoint(AscDFH.historydescription_Presentation_RemoveTable);this.WordControl.m_oLogicDocument.RemoveTable()}};asc_docs_api.prototype.asc_DistributeTableCells=function(isHorizontally){var oLogicDocument=this.WordControl.m_oLogicDocument;if(!oLogicDocument)return;var doc=this.WordControl.m_oLogicDocument;
|
|
var oController=doc.GetCurrentController();if(!oController)return;var aAdditionalObjects=oController.getConnectorsForCheck2();if(doc.Document_Is_SelectionLocked(changestype_Drawing_Props,undefined,undefined,aAdditionalObjects)===false){oLogicDocument.Create_NewHistoryPoint(AscDFH.historydescription_Document_DistributeTableCells);if(!oLogicDocument.DistributeTableCells(isHorizontally)){oLogicDocument.History.RemoveLastPoint();return false}}return true};asc_docs_api.prototype.selectRow=function(){this.WordControl.m_oLogicDocument.SelectTable(c_oAscTableSelectionType.Row)};
|
|
asc_docs_api.prototype.selectColumn=function(){this.WordControl.m_oLogicDocument.SelectTable(c_oAscTableSelectionType.Column)};asc_docs_api.prototype.selectCell=function(){this.WordControl.m_oLogicDocument.SelectTable(c_oAscTableSelectionType.Cell)};asc_docs_api.prototype.selectTable=function(){this.WordControl.m_oLogicDocument.SelectTable(c_oAscTableSelectionType.Table)};asc_docs_api.prototype.setColumnWidth=function(width){};asc_docs_api.prototype.setRowHeight=function(height){};asc_docs_api.prototype.set_TblDistanceFromText=
|
|
function(left,top,right,bottom){};asc_docs_api.prototype.CheckBeforeMergeCells=function(){return this.WordControl.m_oLogicDocument.CanMergeTableCells()};asc_docs_api.prototype.CheckBeforeSplitCells=function(){return this.WordControl.m_oLogicDocument.CanSplitTableCells()};asc_docs_api.prototype.MergeCells=function(){var doc=this.WordControl.m_oLogicDocument;var oController=doc.GetCurrentController();if(!oController)return;var aAdditionalObjects=oController.getConnectorsForCheck2();if(doc.Document_Is_SelectionLocked(changestype_Drawing_Props,
|
|
undefined,undefined,aAdditionalObjects)===false){this.WordControl.m_oLogicDocument.Create_NewHistoryPoint(AscDFH.historydescription_Presentation_MergeCells);this.WordControl.m_oLogicDocument.MergeTableCells()}};asc_docs_api.prototype.SplitCell=function(Cols,Rows){var doc=this.WordControl.m_oLogicDocument;var oController=doc.GetCurrentController();if(!oController)return;var aAdditionalObjects=oController.getConnectorsForCheck2();if(doc.Document_Is_SelectionLocked(changestype_Drawing_Props,undefined,
|
|
undefined,aAdditionalObjects)===false){this.WordControl.m_oLogicDocument.Create_NewHistoryPoint(AscDFH.historydescription_Presentation_SplitCells);this.WordControl.m_oLogicDocument.SplitTableCells(Cols,Rows)}};asc_docs_api.prototype.widthTable=function(width){};asc_docs_api.prototype.put_CellsMargin=function(left,top,right,bottom){};asc_docs_api.prototype.set_TblWrap=function(type){};asc_docs_api.prototype.set_TblIndentLeft=function(spacing){};asc_docs_api.prototype.set_Borders=function(typeBorders,
|
|
size,Color){};asc_docs_api.prototype.set_TableBackground=function(Color){};asc_docs_api.prototype.set_AlignCell=function(align){switch(align){case c_oAscAlignType.LEFT:break;case c_oAscAlignType.CENTER:break;case c_oAscAlignType.RIGHT:break}};asc_docs_api.prototype.set_TblAlign=function(align){switch(align){case c_oAscAlignType.LEFT:break;case c_oAscAlignType.CENTER:break;case c_oAscAlignType.RIGHT:break}};asc_docs_api.prototype.set_SpacingBetweenCells=function(isOn,spacing){if(isOn);};asc_docs_api.prototype.tblApply=
|
|
function(obj){var doc=this.WordControl.m_oLogicDocument;var oController=doc.GetCurrentController();if(!oController)return;var aAdditionalObjects=oController.getConnectorsForCheck2();if(doc.Document_Is_SelectionLocked(changestype_Drawing_Props,undefined,undefined,aAdditionalObjects)===false){this.WordControl.m_oLogicDocument.Create_NewHistoryPoint(AscDFH.historydescription_Presentation_TblApply);if(obj.CellBorders){if(obj.CellBorders.Left&&obj.CellBorders.Left.Color)obj.CellBorders.Left.Unifill=AscFormat.CreateUnifillFromAscColor(obj.CellBorders.Left.Color,
|
|
0);if(obj.CellBorders.Top&&obj.CellBorders.Top.Color)obj.CellBorders.Top.Unifill=AscFormat.CreateUnifillFromAscColor(obj.CellBorders.Top.Color,0);if(obj.CellBorders.Right&&obj.CellBorders.Right.Color)obj.CellBorders.Right.Unifill=AscFormat.CreateUnifillFromAscColor(obj.CellBorders.Right.Color,0);if(obj.CellBorders.Bottom&&obj.CellBorders.Bottom.Color)obj.CellBorders.Bottom.Unifill=AscFormat.CreateUnifillFromAscColor(obj.CellBorders.Bottom.Color,0);if(obj.CellBorders.InsideH&&obj.CellBorders.InsideH.Color)obj.CellBorders.InsideH.Unifill=
|
|
AscFormat.CreateUnifillFromAscColor(obj.CellBorders.InsideH.Color,0);if(obj.CellBorders.InsideV&&obj.CellBorders.InsideV.Color)obj.CellBorders.InsideV.Unifill=AscFormat.CreateUnifillFromAscColor(obj.CellBorders.InsideV.Color,0)}if(obj.CellsBackground&&obj.CellsBackground.Color)obj.CellsBackground.Unifill=AscFormat.CreateUnifillFromAscColor(obj.CellsBackground.Color,0);this.WordControl.m_oLogicDocument.SetTableProps(obj)}};asc_docs_api.prototype.sync_AddTableCallback=function(){this.sendEvent("asc_onAddTable")};
|
|
asc_docs_api.prototype.sync_AlignCellCallback=function(align){this.sendEvent("asc_onAlignCell",align)};asc_docs_api.prototype.sync_TblPropCallback=function(tblProp){this.SelectedObjectsStack[this.SelectedObjectsStack.length]=new asc_CSelectedObject(c_oAscTypeSelectElement.Table,new Asc.CTableProp(tblProp))};asc_docs_api.prototype.sync_TblWrapStyleChangedCallback=function(style){this.sendEvent("asc_onTblWrapStyleChanged",style)};asc_docs_api.prototype.sync_TblAlignChangedCallback=function(style){this.sendEvent("asc_onTblAlignChanged",
|
|
style)};asc_docs_api.prototype.ChangeImageFromFile=function(){this.asc_addImage({isImageChangeUrl:true})};asc_docs_api.prototype.ChangeShapeImageFromFile=function(type){this.asc_addImage({isShapeImageChangeUrl:true,textureType:type})};asc_docs_api.prototype.ChangeSlideImageFromFile=function(type){this.asc_addImage({isSlideImageChangeUrl:true,textureType:type})};asc_docs_api.prototype.ChangeArtImageFromFile=function(type){this.asc_addImage({isTextArtChangeUrl:true,textureType:type})};asc_docs_api.prototype.AddImage=
|
|
function(){this.asc_addImage()};asc_docs_api.prototype.asc_AddToLayout=function(){this.WordControl.m_oLogicDocument.AddToLayout()};asc_docs_api.prototype.StartAddShape=function(prst,is_apply){this.WordControl.m_oLogicDocument.StartAddShape(prst,is_apply);if(is_apply)this.WordControl.m_oDrawingDocument.LockCursorType("crosshair")};asc_docs_api.prototype.asc_addSlideNumber=function(){this.WordControl.m_oLogicDocument.addSlideNumber()};asc_docs_api.prototype.asc_addDateTime=function(oPr){var sCheck=
|
|
oPr.get_DateTimeExamples()[oPr.get_DateTime()],sTextForCheck="";if(typeof sCheck==="string"&&sCheck.length>0)sTextForCheck+=sCheck;else{sCheck=oPr.get_CustomDateTime();if(typeof sCheck==="string"&&sCheck.length>0)sTextForCheck+=sCheck}if(sTextForCheck.length>0)AscFonts.FontPickerByCharacter.checkText(sTextForCheck,this,function(){this.WordControl.m_oLogicDocument.addDateTime(oPr)});else this.WordControl.m_oLogicDocument.addDateTime(oPr)};asc_docs_api.prototype.asc_setDefaultDateTimeFormat=function(aFormat){window["AscCommonWord"]=
|
|
window["AscCommonWord"]||{};for(var key in aFormat)window["AscCommonWord"].oDefaultDateTimeFormat[key]=aFormat[key]};asc_docs_api.prototype.asc_getHeaderFooterProperties=function(){if(this.WordControl&&this.WordControl.m_oLogicDocument)return this.WordControl.m_oLogicDocument.getHFProperties();return null};asc_docs_api.prototype.asc_setHeaderFooterProperties=function(oProps,bAll){if(oProps&&this.WordControl&&this.WordControl.m_oLogicDocument){var sTextForCheck="";var sCheck;var oSlide=oProps.get_Slide();
|
|
var oThis=this;var sDateTime;if(oSlide){var oDateTime=oSlide.get_DateTime();if(oDateTime){sCheck=oDateTime.get_DateTimeExamples()[oDateTime.get_DateTime()];if(typeof sCheck==="string"&&sCheck.length>0)sTextForCheck+=sCheck;else{sCheck=oDateTime.get_CustomDateTime();if(typeof sCheck==="string"&&sCheck.length>0)sTextForCheck+=sCheck}}sCheck=oSlide.get_Footer();if(typeof sCheck==="string"&&sCheck.length>0)sTextForCheck+=sCheck;sCheck=oSlide.get_Header();if(typeof sCheck==="string"&&sCheck.length>0)sTextForCheck+=
|
|
sCheck}if(sTextForCheck.length>0)AscFonts.FontPickerByCharacter.checkText(sTextForCheck,this,function(){oThis.WordControl.m_oLogicDocument.setHFProperties(oProps,bAll)});else oThis.WordControl.m_oLogicDocument.setHFProperties(oProps,bAll)}};asc_docs_api.prototype.asc_addOleObjectAction=function(sLocalUrl,sData,sApplicationId,fWidth,fHeight,nWidthPix,nHeightPix){var _image=this.ImageLoader.LoadImage(AscCommon.getFullImageSrc2(sLocalUrl),1);if(null!=_image){this.WordControl.m_oLogicDocument.StartAction(AscDFH.historydescription_Document_PasteHotKey);
|
|
this.WordControl.m_oLogicDocument.AddOleObject(fWidth,fHeight,nWidthPix,nHeightPix,sLocalUrl,sData,sApplicationId);this.WordControl.m_oLogicDocument.FinalizeAction()}};asc_docs_api.prototype.asc_editOleObjectAction=function(bResize,oOleObject,sImageUrl,sData,nPixWidth,nPixHeight){if(oOleObject){this.WordControl.m_oLogicDocument.StartAction(AscDFH.historydescription_Document_PasteHotKey);this.WordControl.m_oLogicDocument.EditOleObject(oOleObject,sData,sImageUrl,nPixWidth,nPixHeight);this.WordControl.m_oLogicDocument.Recalculate();
|
|
this.WordControl.m_oLogicDocument.FinalizeAction()}};asc_docs_api.prototype.asc_startEditCurrentOleObject=function(){if(this.WordControl.m_oLogicDocument.Slides[this.WordControl.m_oLogicDocument.CurPage])this.WordControl.m_oLogicDocument.Slides[this.WordControl.m_oLogicDocument.CurPage].graphicObjects.startEditCurrentOleObject()};asc_docs_api.prototype.asc_addSignatureLine=function(oPr,Width,Height,sImgUrl){if(editor.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(changestype_Drawing_Props)===
|
|
false)this.WordControl.m_oLogicDocument.AddSignatureLine(oPr,Width,Height,sImgUrl)};asc_docs_api.prototype.asc_getAllSignatures=function(){return this.WordControl.m_oLogicDocument.GetAllSignatures()};asc_docs_api.prototype.asc_CallSignatureDblClickEvent=function(sGuid){return this.WordControl.m_oLogicDocument.CallSignatureDblClickEvent(sGuid)};asc_docs_api.prototype.asc_canEditCrop=function(){return this.WordControl.m_oLogicDocument.canStartImageCrop()};asc_docs_api.prototype.asc_startEditCrop=function(){return this.WordControl.m_oLogicDocument.startImageCrop()};
|
|
asc_docs_api.prototype.asc_endEditCrop=function(){return this.WordControl.m_oLogicDocument.endImageCrop()};asc_docs_api.prototype.asc_cropFit=function(){return this.WordControl.m_oLogicDocument.cropFit()};asc_docs_api.prototype.asc_cropFill=function(){return this.WordControl.m_oLogicDocument.cropFill()};asc_docs_api.prototype.AddTextArt=function(nStyle){if(editor.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(changestype_Drawing_Props)===false)this.WordControl.m_oLogicDocument.AddTextArt(nStyle)};
|
|
asc_docs_api.prototype.canGroup=function(){return this.WordControl.m_oLogicDocument.canGroup()};asc_docs_api.prototype.canUnGroup=function(){return this.WordControl.m_oLogicDocument.canUnGroup()};asc_docs_api.prototype.asc_addImageCallback=function(res){g_oDocumentUrls.addImageUrl(res.name,res.url)};asc_docs_api.prototype.asyncImageEndLoadedBackground=function(_image){};asc_docs_api.prototype._addImageUrl=function(urls,obj){if(obj&&(obj.isImageChangeUrl||obj.isShapeImageChangeUrl||obj.isSlideImageChangeUrl||
|
|
obj.isTextArtChangeUrl))this.AddImageUrl(urls[0],undefined,undefined,obj);else if(this.ImageLoader){var oApi=this;this.ImageLoader.LoadImagesWithCallback(urls,function(){var aImages=[];for(var i=0;i<urls.length;++i){var _image=oApi.ImageLoader.LoadImage(urls[i],1);if(_image)aImages.push(_image)}oApi.WordControl.m_oLogicDocument.addImages(aImages,obj)},[])}};asc_docs_api.prototype.AddImageUrl=function(url,imgProp,token,obj){if(g_oDocumentUrls.getLocal(url))this.AddImageUrlAction(url,obj);else{var t=
|
|
this;AscCommon.sendImgUrls(this,[url],function(data){if(data&&data[0]&&data[0].url!=="error")t.AddImageUrlAction(data[0].url,obj)},false,undefined,token)}};asc_docs_api.prototype.AddImageUrlActionCallback=function(_image,obj){var _w=AscCommon.Page_Width-(AscCommon.X_Left_Margin+AscCommon.X_Right_Margin);var _h=AscCommon.Page_Height-(AscCommon.Y_Top_Margin+AscCommon.Y_Bottom_Margin);if(_image.Image!=null){var __w=Math.max(_image.Image.width*AscCommon.g_dKoef_pix_to_mm,1);var __h=Math.max(_image.Image.height*
|
|
AscCommon.g_dKoef_pix_to_mm,1);_w=Math.max(5,Math.min(_w,__w));_h=Math.max(5,Math.min(_w*__h/__w))}var src=_image.src;if(obj&&obj.isShapeImageChangeUrl){var AscShapeProp=new Asc.asc_CShapeProperty;AscShapeProp.fill=new asc_CShapeFill;AscShapeProp.fill.type=c_oAscFill.FILL_TYPE_BLIP;AscShapeProp.fill.fill=new asc_CFillBlip;AscShapeProp.fill.fill.asc_putUrl(src);if(obj.textureType!==null&&obj.textureType!==undefined)AscShapeProp.fill.fill.asc_putType(obj.textureType);this.ShapeApply(AscShapeProp)}else if(obj&&
|
|
obj.isSlideImageChangeUrl){var AscSlideProp=new CAscSlideProps;AscSlideProp.Background=new asc_CShapeFill;AscSlideProp.Background.type=c_oAscFill.FILL_TYPE_BLIP;AscSlideProp.Background.fill=new asc_CFillBlip;AscSlideProp.Background.fill.asc_putUrl(src);if(obj.textureType!==null&&obj.textureType!==undefined)AscSlideProp.Background.fill.asc_putType(obj.textureType);this.SetSlideProps(AscSlideProp)}else if(obj&&obj.isImageChangeUrl){var AscImageProp=new Asc.asc_CImgProperty;AscImageProp.ImageUrl=src;
|
|
this.ImgApply(AscImageProp)}else if(obj&&obj.isTextArtChangeUrl){var AscShapeProp=new Asc.asc_CShapeProperty;var oFill=new asc_CShapeFill;oFill.type=c_oAscFill.FILL_TYPE_BLIP;oFill.fill=new asc_CFillBlip;oFill.fill.asc_putUrl(src);if(obj.textureType!==null&&obj.textureType!==undefined)oFill.fill.asc_putType(obj.textureType);AscShapeProp.textArtProperties=new Asc.asc_TextArtProperties;AscShapeProp.textArtProperties.asc_putFill(oFill);this.ShapeApply(AscShapeProp)}else{var srcLocal=g_oDocumentUrls.getImageLocal(src);
|
|
if(srcLocal)src=srcLocal;this.WordControl.m_oLogicDocument.addImages([_image],obj)}};asc_docs_api.prototype.AddImageUrlAction=function(url,obj){var _image=this.ImageLoader.LoadImage(url,1);if(null!=_image)this.AddImageUrlActionCallback(_image,obj);else{this.sync_StartAction(c_oAscAsyncActionType.BlockInteraction,c_oAscAsyncAction.LoadImage);this.asyncImageEndLoaded2=function(_image){this.AddImageUrlActionCallback(_image,obj);this.sync_EndAction(c_oAscAsyncActionType.BlockInteraction,c_oAscAsyncAction.LoadImage);
|
|
this.asyncImageEndLoaded2=null}}};asc_docs_api.prototype.ImgApply=function(obj){var ImagePr={};ImagePr.lockAspect=obj.lockAspect;ImagePr.Width=null===obj.Width||undefined===obj.Width?null:parseFloat(obj.Width);ImagePr.Height=null===obj.Height||undefined===obj.Height?null:parseFloat(obj.Height);ImagePr.title=obj.title;ImagePr.description=obj.description;ImagePr.rot=obj.rot;ImagePr.rotAdd=obj.rotAdd;ImagePr.flipH=obj.flipH;ImagePr.flipV=obj.flipV;ImagePr.flipHInvert=obj.flipHInvert;ImagePr.flipVInvert=
|
|
obj.flipVInvert;ImagePr.resetCrop=obj.resetCrop;if(undefined!=obj.Position)ImagePr.Position={X:null===obj.Position.X||undefined===obj.Position.X?null:parseFloat(obj.Position.X),Y:null===obj.Position.Y||undefined===obj.Position.Y?null:parseFloat(obj.Position.Y)};else ImagePr.Position={X:null,Y:null};ImagePr.ImageUrl=obj.ImageUrl;if(window["NATIVE_EDITOR_ENJINE"]){this.WordControl.m_oLogicDocument.SetImageProps(ImagePr);return}if(!AscCommon.isNullOrEmptyString(ImagePr.ImageUrl)){var sImageUrl=null,
|
|
sToken=undefined;if(!g_oDocumentUrls.getImageLocal(ImagePr.ImageUrl)){sImageUrl=ImagePr.ImageUrl;sToken=ImagePr.Token}var oApi=this;var fApplyCallback=function(){var _img=oApi.ImageLoader.LoadImage(ImagePr.ImageUrl,1);var srcLocal=g_oDocumentUrls.getImageLocal(ImagePr.ImageUrl);if(srcLocal)ImagePr.ImageUrl=srcLocal;if(null!=_img)oApi.WordControl.m_oLogicDocument.SetImageProps(ImagePr);else oApi.asyncImageEndLoaded2=function(_image){oApi.WordControl.m_oLogicDocument.SetImageProps(ImagePr);oApi.asyncImageEndLoaded2=
|
|
null}};if(!sImageUrl)fApplyCallback();else{if(window["AscDesktopEditor"]&&window["AscDesktopEditor"]["IsLocalFile"]()){this.sync_StartAction(c_oAscAsyncActionType.BlockInteraction,c_oAscAsyncAction.UploadImage);var _url=window["AscDesktopEditor"]["LocalFileGetImageUrl"](sImageUrl);_url=g_oDocumentUrls.getImageUrl(_url);ImagePr.ImageUrl=_url;fApplyCallback();this.sync_EndAction(c_oAscAsyncActionType.BlockInteraction,c_oAscAsyncAction.UploadImage);return}AscCommon.sendImgUrls(this,[sImageUrl],function(data){if(data&&
|
|
data[0]&&data[0].url!=="error"){ImagePr.ImageUrl=data[0].url;fApplyCallback()}},false,undefined,sToken)}}else{ImagePr.ImageUrl=null;this.WordControl.m_oLogicDocument.SetImageProps(ImagePr)}};asc_docs_api.prototype.ChartApply=function(obj){if(obj.ChartProperties&&obj.ChartProperties.type===Asc.c_oAscChartTypeSettings.stock&&this.WordControl.m_oLogicDocument.Slides[this.WordControl.m_oLogicDocument.CurPage])if(!AscFormat.CheckStockChart(this.WordControl.m_oLogicDocument.Slides[this.WordControl.m_oLogicDocument.CurPage].graphicObjects,
|
|
this))return;this.WordControl.m_oLogicDocument.ChartApply(obj)};asc_docs_api.prototype.set_Size=function(width,height){};asc_docs_api.prototype.set_ConstProportions=function(isOn){if(isOn);else;};asc_docs_api.prototype.set_WrapStyle=function(type){};asc_docs_api.prototype.deleteImage=function(){};asc_docs_api.prototype.set_ImgDistanceFromText=function(left,top,right,bottom){};asc_docs_api.prototype.set_PositionOnPage=function(X,Y){};asc_docs_api.prototype.get_OriginalSizeImage=function(){for(var i=
|
|
0;i<this.SelectedObjectsStack.length;++i)if(this.SelectedObjectsStack[i].Type==c_oAscTypeSelectElement.Image&&this.SelectedObjectsStack[i].Value&&this.SelectedObjectsStack[i].Value.ImageUrl)return this.SelectedObjectsStack[i].Value.asc_getOriginSize(this);return null};asc_docs_api.prototype.asc_FitImagesToSlide=function(){if(!this.WordControl||!this.WordControl.m_oLogicDocument)return;this.WordControl.m_oLogicDocument.FitImagesToSlide()};asc_docs_api.prototype.sync_AddImageCallback=function(){this.sendEvent("asc_onAddImage")};
|
|
asc_docs_api.prototype.sync_ImgPropCallback=function(imgProp){var type=imgProp.chartProps?c_oAscTypeSelectElement.Chart:c_oAscTypeSelectElement.Image;var objects;if(type===c_oAscTypeSelectElement.Chart)objects=new CAscChartProp(imgProp);else objects=new Asc.asc_CImgProperty(imgProp);this.SelectedObjectsStack[this.SelectedObjectsStack.length]=new asc_CSelectedObject(type,objects)};asc_docs_api.prototype.sync_MathPropCallback=function(MathProp){this.SelectedObjectsStack[this.SelectedObjectsStack.length]=
|
|
new asc_CSelectedObject(c_oAscTypeSelectElement.Math,MathProp)};asc_docs_api.prototype.SetDrawingFreeze=function(bIsFreeze){if(!this.isLoadFullApi){this.tmpIsFreeze=bIsFreeze;return}this.WordControl.DrawingFreeze=bIsFreeze;var _elem1=document.getElementById("id_main");if(_elem1){var _elem2=document.getElementById("id_panel_thumbnails");var _elem3=document.getElementById("id_panel_notes");if(bIsFreeze){_elem1.style.display="none";_elem2.style.display="none";_elem3.style.display="none"}else{_elem1.style.display=
|
|
"block";_elem2.style.display="block";_elem3.style.display="block"}}if(!bIsFreeze)this.WordControl.OnScroll()};asc_docs_api.prototype.AddShapeOnCurrentPage=function(sPreset){if(!this.WordControl.m_oLogicDocument)return;this.WordControl.m_oLogicDocument.AddShapeOnCurrentPage(sPreset)};asc_docs_api.prototype.can_CopyCut=function(){if(!this.WordControl.m_oLogicDocument)return false;return this.WordControl.m_oLogicDocument.Can_CopyCut()};asc_docs_api.prototype.zoomIn=function(){this.WordControl.zoom_In()};
|
|
asc_docs_api.prototype.zoomOut=function(){this.WordControl.zoom_Out()};asc_docs_api.prototype.zoomFitToPage=function(){if(!this.isLoadFullApi){this.tmpZoomType=AscCommon.c_oZoomType.FitToPage;return}this.WordControl.zoom_FitToPage()};asc_docs_api.prototype.zoomFitToWidth=function(){if(!this.isLoadFullApi){this.tmpZoomType=AscCommon.c_oZoomType.FitToWidth;return}this.WordControl.zoom_FitToWidth()};asc_docs_api.prototype.zoomCustomMode=function(){if(!this.isLoadFullApi){this.tmpZoomType=AscCommon.c_oZoomType.CustomMode;
|
|
return}this.WordControl.m_nZoomType=0;this.WordControl.zoom_Fire()};asc_docs_api.prototype.zoom100=function(){this.WordControl.m_nZoomValue=100;this.WordControl.zoom_Fire()};asc_docs_api.prototype.zoom=function(percent){this.WordControl.m_nZoomValue=percent;this.WordControl.zoom_Fire(0)};asc_docs_api.prototype.goToPage=function(number){this.WordControl.GoToPage(number)};asc_docs_api.prototype.getCountPages=function(){return this.WordControl.m_oDrawingDocument.SlidesCount};asc_docs_api.prototype.getCurrentPage=
|
|
function(){return this.WordControl.m_oDrawingDocument.SlideCurrent};asc_docs_api.prototype.sync_zoomChangeCallback=function(percent,type){this.sendEvent("asc_onZoomChange",percent,type)};asc_docs_api.prototype.sync_countPagesCallback=function(count){this.sendEvent("asc_onCountPages",count)};asc_docs_api.prototype.sync_currentPageCallback=function(number){this.sendEvent("asc_onCurrentPage",number)};asc_docs_api.prototype.sync_SendThemeColors=function(colors,standart_colors){this.sendEvent("asc_onSendThemeColors",
|
|
colors,standart_colors)};asc_docs_api.prototype.getCurrentTheme=function(){if(null==this.WordControl.m_oLogicDocument)return null;return this.WordControl.MasterLayouts.Theme};asc_docs_api.prototype.ChangeColorScheme=function(sSchemeName){var scheme=AscCommon.getColorSchemeByName(sSchemeName);if(!scheme){var theme=this.WordControl.MasterLayouts.Theme;if(null==theme)return;scheme=theme.getExtraClrScheme(sSchemeName)}if(!scheme)return;this.WordControl.m_oLogicDocument.changeColorScheme(scheme);this.WordControl.m_oDrawingDocument.CheckGuiControlColors()};
|
|
asc_docs_api.prototype.asc_ChangeColorSchemeByIdx=function(nIdx){var scheme=this.getColorSchemeByIdx(nIdx);if(!scheme)return;this.WordControl.m_oLogicDocument.changeColorScheme(scheme);this.WordControl.m_oDrawingDocument.CheckGuiControlColors()};asc_docs_api.prototype.asc_enableKeyEvents=function(value,isFromInput){if(!this.isLoadFullApi){this.tmpFocus=value;return}if(this.WordControl&&this.WordControl.IsFocus!=value){this.WordControl.IsFocus=value;this.sendEvent("asc_onEnableKeyEventsChanged",value)}if(isFromInput!==
|
|
true&&AscCommon.g_inputContext)AscCommon.g_inputContext.setInterfaceEnableKeyEvents(value)};function asc_CCommentData(obj){if(obj){this.m_sText=undefined!=obj.m_sText?obj.m_sText:"";this.m_sTime=undefined!=obj.m_sTime?obj.m_sTime:"";this.m_sOOTime=undefined!=obj.m_sOOTime?obj.m_sOOTime:"";this.m_sUserId=undefined!=obj.m_sUserId?obj.m_sUserId:"";this.m_sQuoteText=undefined!=obj.m_sQuoteText?obj.m_sQuoteText:null;this.m_bSolved=undefined!=obj.m_bSolved?obj.m_bSolved:false;this.m_sUserName=undefined!=
|
|
obj.m_sUserName?obj.m_sUserName:"";this.m_sGuid=undefined!=obj.m_sGuid?obj.m_sGuid:AscCommon.CreateGUID();this.m_nTimeZoneBias=undefined!=obj.m_nTimeZoneBias?obj.m_nTimeZoneBias:null;this.bDocument=undefined!=obj.bDocument?obj.bDocument:false;this.m_sUserData=undefined!=obj.m_sUserData?obj.m_sUserData:"";this.m_aReplies=[];if(undefined!=obj.m_aReplies){var Count=obj.m_aReplies.length;for(var Index=0;Index<Count;Index++){var Reply=new asc_CCommentData(obj.m_aReplies[Index]);this.m_aReplies.push(Reply)}}}else{this.m_sText=
|
|
"";this.m_sTime="";this.m_sOOTime="";this.m_sUserId="";this.m_sQuoteText=null;this.m_bSolved=false;this.m_sUserName="";this.m_sGuid=AscCommon.CreateGUID();this.m_nTimeZoneBias=null;this.bDocument=false;this.m_sUserData="";this.m_aReplies=[]}}asc_CCommentData.prototype.asc_getText=function(){return this.m_sText};asc_CCommentData.prototype.asc_putText=function(v){this.m_sText=v?v.slice(0,Asc.c_oAscMaxCellOrCommentLength):v};asc_CCommentData.prototype.asc_getTime=function(){return this.m_sTime};asc_CCommentData.prototype.asc_putTime=
|
|
function(v){this.m_sTime=v;this.m_nTimeZoneBias=(new Date).getTimezoneOffset()};asc_CCommentData.prototype.asc_getOnlyOfficeTime=function(){return this.m_sOOTime};asc_CCommentData.prototype.asc_putOnlyOfficeTime=function(v){this.m_sOOTime=v};asc_CCommentData.prototype.asc_getUserId=function(){return this.m_sUserId};asc_CCommentData.prototype.asc_putUserId=function(v){this.m_sUserId=v};asc_CCommentData.prototype.asc_getUserName=function(){return this.m_sUserName};asc_CCommentData.prototype.asc_putUserName=
|
|
function(v){this.m_sUserName=v};asc_CCommentData.prototype.asc_getGuid=function(){return this.m_sGuid};asc_CCommentData.prototype.asc_putGuid=function(v){this.m_sGuid=v};asc_CCommentData.prototype.asc_putTimeZoneBias=function(v){this.m_nTimeZoneBias=v};asc_CCommentData.prototype.asc_getTimeZoneBias=function(){return this.m_nTimeZoneBias};asc_CCommentData.prototype.asc_getQuoteText=function(){return this.m_sQuoteText};asc_CCommentData.prototype.asc_putQuoteText=function(v){this.m_sQuoteText=v};asc_CCommentData.prototype.asc_getSolved=
|
|
function(){return this.m_bSolved};asc_CCommentData.prototype.asc_putSolved=function(v){this.m_bSolved=v};asc_CCommentData.prototype.asc_getReply=function(i){return this.m_aReplies[i]};asc_CCommentData.prototype.asc_addReply=function(v){this.m_aReplies.push(v)};asc_CCommentData.prototype.asc_getRepliesCount=function(v){return this.m_aReplies.length};asc_CCommentData.prototype.asc_putDocumentFlag=function(v){this.bDocument=v};asc_CCommentData.prototype.asc_getDocumentFlag=function(){return this.bDocument};
|
|
asc_CCommentData.prototype.asc_putUserData=function(v){this.m_sUserData=v};asc_CCommentData.prototype.asc_getUserData=function(){return this.m_sUserData};asc_docs_api.prototype.asc_showComments=function(){if(null==this.WordControl.m_oLogicDocument)return;this.WordControl.m_oLogicDocument.ShowComments()};asc_docs_api.prototype.asc_hideComments=function(){if(null==this.WordControl.m_oLogicDocument)return;this.WordControl.m_oLogicDocument.HideComments();editor.sync_HideComment()};asc_docs_api.prototype.asc_addComment=
|
|
function(AscCommentData){if(null==this.WordControl.m_oLogicDocument)return;var CommentData=new AscCommon.CCommentData;CommentData.Read_FromAscCommentData(AscCommentData);var Comment=this.WordControl.m_oLogicDocument.AddComment(CommentData,AscCommentData.asc_getDocumentFlag());if(Comment)return Comment.Get_Id()};asc_docs_api.prototype.asc_getMasterCommentId=function(){return-1};asc_docs_api.prototype.asc_getAnchorPosition=function(){var AnchorPos=this.WordControl.m_oLogicDocument.GetSelectionAnchorPos();
|
|
return new AscCommon.asc_CRect(AnchorPos.X0,AnchorPos.Y,AnchorPos.X1-AnchorPos.X0,0)};asc_docs_api.prototype.asc_removeComment=function(Id){if(null==this.WordControl.m_oLogicDocument)return;var comment=g_oTableId.Get_ById(Id);if(!comment)return;var oComments=comment.Parent;if(!oComments)return;var bPresComments=oComments===this.WordControl.m_oLogicDocument.comments;var oCheckData={comment:comment,slide:bPresComments?null:oComments.slide};if(this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(AscCommon.changestype_MoveComment,
|
|
[oCheckData],this.WordControl.m_oLogicDocument.IsEditCommentsMode())===false){this.WordControl.m_oLogicDocument.Create_NewHistoryPoint(AscDFH.historydescription_Presentation_RemoveComment);this.WordControl.m_oLogicDocument.RemoveComment(Id,true)}};asc_docs_api.prototype.asc_RemoveAllComments=function(isMine,isCurrent){if(!this.WordControl.m_oLogicDocument)return;if(isCurrent)this.WordControl.m_oLogicDocument.RemoveCurrentComment(isMine);else if(isMine)this.WordControl.m_oLogicDocument.RemoveMyComments();
|
|
else this.WordControl.m_oLogicDocument.RemoveAllComments()};asc_docs_api.prototype.asc_ResolveAllComments=function(isMine,isCurrent,arrIds){var oPresentation=this.WordControl&&this.WordControl.m_oLogicDocument;if(!oPresentation)return;oPresentation.ResolveAllComments(isMine,isCurrent,arrIds)};asc_docs_api.prototype.asc_onDeleteComment=function(Id,oCommentData){var AscCommentData=new asc_CCommentData(oCommentData);this.sendEvent("asc_onDeleteComment",Id,AscCommentData)};asc_docs_api.prototype.asc_changeComment=
|
|
function(Id,AscCommentData){if(null==this.WordControl.m_oLogicDocument)return;var CommentData=new AscCommon.CCommentData;CommentData.Read_FromAscCommentData(AscCommentData);this.WordControl.m_oLogicDocument.EditComment(Id,CommentData)};asc_docs_api.prototype.asc_selectComment=function(Id){if(null==this.WordControl.m_oLogicDocument)return;this.WordControl.m_oLogicDocument.SelectComment(Id)};asc_docs_api.prototype.asc_showComment=function(Id){this.WordControl.m_oLogicDocument.ShowComment(Id)};asc_docs_api.prototype.can_AddQuotedComment=
|
|
function(){return this.WordControl.m_oLogicDocument.CanAddComment()};asc_docs_api.prototype.sync_RemoveComment=function(Id){this.sendEvent("asc_onRemoveComment",Id)};asc_docs_api.prototype.sync_AddComment=function(Id,CommentData){if(this.bNoSendComments===false){var AscCommentData=new asc_CCommentData(CommentData);AscCommentData.asc_putQuoteText("");this.sendEvent("asc_onAddComment",Id,AscCommentData)}};asc_docs_api.prototype.sync_ShowComment=function(Id,X,Y){this.sendEvent("asc_onShowComment",[Id],
|
|
X,Y)};asc_docs_api.prototype.sync_HideComment=function(){this.sendEvent("asc_onHideComment")};asc_docs_api.prototype.sync_UpdateCommentPosition=function(Id,X,Y){this.sendEvent("asc_onUpdateCommentPosition",[Id],X,Y)};asc_docs_api.prototype.sync_ChangeCommentData=function(Id,CommentData){var AscCommentData=new asc_CCommentData(CommentData);this.sendEvent("asc_onChangeCommentData",Id,AscCommentData)};asc_docs_api.prototype.sync_LockComment=function(Id,UserId){this.sendEvent("asc_onLockComment",Id,UserId)};
|
|
asc_docs_api.prototype.sync_UnLockComment=function(Id){this.sendEvent("asc_onUnLockComment",Id)};asc_docs_api.prototype._goToComment=function(data){if(this.WordControl&&this.WordControl.m_oLogicDocument&&data){var commentId=this.WordControl.m_oLogicDocument.GetCommentIdByGuid(data);if(commentId){this.asc_selectComment(commentId);this.asc_showComment(commentId)}}};asc_docs_api.prototype.asyncFontsDocumentStartLoaded=function(blockType){if(this.isPasteFonts_Images)this.sync_StartAction(c_oAscAsyncActionType.BlockInteraction,
|
|
c_oAscAsyncAction.LoadFont);else{this.sync_StartAction(undefined===blockType?c_oAscAsyncActionType.BlockInteraction:blockType,c_oAscAsyncAction.LoadDocumentFonts);var _progress=this.OpenDocumentProgress;_progress.Type=c_oAscAsyncAction.LoadDocumentFonts;_progress.FontsCount=this.FontLoader.fonts_loading.length;_progress.CurrentFont=0;var _loader_object=this.WordControl.m_oLogicDocument;var _count=0;if(_loader_object!==undefined&&_loader_object!=null)for(var i in _loader_object.ImageMap){if(this.DocInfo.get_OfflineApp()){var localUrl=
|
|
_loader_object.ImageMap[i];g_oDocumentUrls.addImageUrl(localUrl,this.documentUrl+"media/"+localUrl)}++_count}_progress.ImagesCount=_count+AscCommon.g_oUserTexturePresets.length;_progress.CurrentImage=0}};asc_docs_api.prototype.GenerateStyles=function(){return};asc_docs_api.prototype.asyncFontsDocumentEndLoaded=function(blockType){if(this.isPasteFonts_Images)this.sync_EndAction(c_oAscAsyncActionType.BlockInteraction,c_oAscAsyncAction.LoadFont);else this.sync_EndAction(undefined===blockType?c_oAscAsyncActionType.BlockInteraction:
|
|
blockType,c_oAscAsyncAction.LoadDocumentFonts);if(undefined!==this.asyncMethodCallback){this.asyncMethodCallback();this.asyncMethodCallback=undefined;return}this.EndActionLoadImages=0;if(this.isPasteFonts_Images){var _count=0;for(var i in this.pasteImageMap)++_count;if(_count>0){this.EndActionLoadImages=2;this.sync_StartAction(c_oAscAsyncActionType.BlockInteraction,c_oAscAsyncAction.LoadImage)}this.ImageLoader.LoadDocumentImages(this.pasteImageMap);return}else if(this.isSaveFonts_Images){var _count=
|
|
0;for(var i in this.saveImageMap)++_count;if(_count>0){this.EndActionLoadImages=2;this.sync_StartAction(c_oAscAsyncActionType.Information,c_oAscAsyncAction.LoadImage)}this.ImageLoader.LoadDocumentImages(this.saveImageMap);return}this.GenerateStyles();var _loader_object=this.WordControl.m_oLogicDocument;if(null==_loader_object)_loader_object=this.WordControl.m_oDrawingDocument.m_oDocumentRenderer;var _count=0;for(var i in _loader_object.ImageMap)++_count;var _st_count=AscCommon.g_oUserTexturePresets.length;
|
|
for(var i=0;i<_st_count;i++)_loader_object.ImageMap[_count+i]=AscCommon.g_oUserTexturePresets[i];if(_count>0){this.EndActionLoadImages=1;this.sync_StartAction(c_oAscAsyncActionType.BlockInteraction,c_oAscAsyncAction.LoadDocumentImages)}this.ImageLoader.bIsLoadDocumentFirst=true;this.ImageLoader.LoadDocumentImages(_loader_object.ImageMap)};asc_docs_api.prototype.asyncImagesDocumentEndLoaded=function(){this.ImageLoader.bIsLoadDocumentFirst=false;var _bIsOldPaste=this.isPasteFonts_Images;if(this.EndActionLoadImages==
|
|
1)this.sync_EndAction(c_oAscAsyncActionType.BlockInteraction,c_oAscAsyncAction.LoadDocumentImages);else if(this.EndActionLoadImages==2)if(_bIsOldPaste)this.sync_EndAction(c_oAscAsyncActionType.BlockInteraction,c_oAscAsyncAction.LoadImage);else this.sync_EndAction(c_oAscAsyncActionType.Information,c_oAscAsyncAction.LoadImage);this.EndActionLoadImages=0;if(this.isPasteFonts_Images){this.isPasteFonts_Images=false;this.pasteImageMap=null;this.pasteCallback();this.pasteCallback=null;this.decrementCounterLongAction()}else if(this.isSaveFonts_Images){this.isSaveFonts_Images=
|
|
false;this.saveImageMap=null;this.pre_SaveCallback()}else{this.ServerImagesWaitComplete=true;this._openDocumentEndCallback()}};asc_docs_api.prototype._openDocumentEndCallback=function(){if(this.isDocumentLoadComplete||!this.ServerImagesWaitComplete||!this.ServerIdWaitComplete||!this.WordControl||!this.WordControl.m_oLogicDocument)return;var bIsScroll=false;if(0==this.DocumentType)this.WordControl.m_oLogicDocument.LoadEmptyDocument();else if(this.LoadedObject){if(this.LoadedObject===1)if(this.isApplyChangesOnOpenEnabled){if(AscCommon.EncryptionWorker){AscCommon.EncryptionWorker.init();
|
|
if(!AscCommon.EncryptionWorker.isChangesHandled)return AscCommon.EncryptionWorker.handleChanges(AscCommon.CollaborativeEditing.m_aChanges,this,this._openDocumentEndCallback)}this.isApplyChangesOnOpenEnabled=false;this.bNoSendComments=true;var OtherChanges=AscCommon.CollaborativeEditing.m_aChanges.length>0;this._applyPreOpenLocks();AscCommon.CollaborativeEditing.Apply_Changes();AscCommon.CollaborativeEditing.Release_Locks();this.bNoSendComments=false;this.isApplyChangesOnOpen=true;if(OtherChanges&&
|
|
this.isSaveFonts_Images)return}this.WordControl.m_oLogicDocument.Recalculate({Drawings:{All:true,Map:{}}});var presentation=this.WordControl.m_oLogicDocument;presentation.DrawingDocument.OnEndRecalculate();if(!window["IS_NATIVE_EDITOR"])this.asc_registerCallback("asc_doubleClickOnChart",function(){setTimeout(function(){window.editor.WordControl.onMouseUpMainSimple()},0)});if(!window["NATIVE_EDITOR_ENJINE"]){this.WordControl.m_oLayoutDrawer.WidthMM=presentation.GetWidthMM();this.WordControl.m_oLayoutDrawer.HeightMM=
|
|
presentation.GetHeightMM();this.WordControl.m_oMasterDrawer.WidthMM=presentation.GetWidthMM();this.WordControl.m_oMasterDrawer.HeightMM=presentation.GetHeightMM()}this.standartThemesStatus++;if(2<this.standartThemesStatus)this.WordControl.m_oLogicDocument.SendThemesThumbnails();this.sendEvent("asc_onPresentationSize",presentation.GetWidthEMU(),presentation.GetHeightEMU(),presentation.GetSizeType());this.WordControl.GoToPage(0);bIsScroll=true}this.WordControl.m_oLogicDocument.Document_UpdateInterfaceState();
|
|
this.WordControl.m_oLogicDocument.Document_UpdateRulersState();this.WordControl.m_oLogicDocument.Document_UpdateSelectionState();this.LoadedObject=null;this.bInit_word_control=true;if(!this.bNoSendComments){var _slides=this.WordControl.m_oLogicDocument.Slides;var _slidesCount=_slides.length;for(var i=0;i<_slidesCount;i++){var slideComments=_slides[i].slideComments;if(slideComments){var _comments=slideComments.comments;var _commentsCount=_comments.length;for(var j=0;j<_commentsCount;j++)this.sync_AddComment(_comments[j].Get_Id(),
|
|
_comments[j].Data)}}}var slideComments=this.WordControl.m_oLogicDocument.comments;if(slideComments){var _comments=slideComments.comments;var _commentsCount=_comments.length;for(var j=0;j<_commentsCount;j++){_comments[j].Data.bDocument=true;this.sync_AddComment(_comments[j].Get_Id(),_comments[j].Data)}}this.onDocumentContentReady();this.isApplyChangesOnOpen=false;this.WordControl.InitControl();if(bIsScroll)this.WordControl.OnScroll();if(!this.isViewMode){this.sendStandartTextures();this.sendMathToMenu();
|
|
if(this.shapeElementId)this.WordControl.m_oDrawingDocument.InitGuiCanvasShape(this.shapeElementId)}if(this.isViewMode)this.asc_setViewMode(true);this.advancedOptionsAction=AscCommon.c_oAscAdvancedOptionsAction.None;this.goTo()};asc_docs_api.prototype.asc_AddMath=function(Type){var loader=AscCommon.g_font_loader;var fontinfo=AscFonts.g_fontApplication.GetFontInfo("Cambria Math");var isasync=loader.LoadFont(fontinfo);if(false===isasync)return this.asc_AddMath2(Type);else this.asyncMethodCallback=function(){return this.asc_AddMath2(Type)}};
|
|
asc_docs_api.prototype.asc_AddMath2=function(Type){if(false===this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(AscCommon.changestype_Paragraph_Content)){this.WordControl.m_oLogicDocument.Create_NewHistoryPoint(AscDFH.historydescription_Document_AddMath);var MathElement=new AscCommonWord.MathMenu(Type);this.WordControl.m_oLogicDocument.AddToParagraph(MathElement,false)}};asc_docs_api.prototype.asc_AddVideoCallback=function(sImageUrlLocal,sVideoUrl,obj){var oApi=this;var sImageUrl=AscCommon.g_oDocumentUrls.getImageUrl(sImageUrlLocal);
|
|
this.ImageLoader.LoadImagesWithCallback([sImageUrl],function(){var _image=oApi.ImageLoader.LoadImage(sImageUrl,1);if(!_image||!_image.Image)return;var oImageObject={};oImageObject.src=sImageUrl;oImageObject.Image={};oImageObject.Image.width=_image.Image.width;oImageObject.Image.height=_image.Image.height;oImageObject.videoUrl=sVideoUrl;oApi.WordControl.m_oLogicDocument.addImages([oImageObject],obj)})};asc_docs_api.prototype.asc_AddAudioCallback=function(sImageUrlLocal,sAudioUrl,obj){var oApi=this;
|
|
var sImageUrl=AscCommon.g_oDocumentUrls.getImageUrl(sImageUrlLocal);this.ImageLoader.LoadImagesWithCallback([sImageUrl],function(){var _image=oApi.ImageLoader.LoadImage(sImageUrl,1);if(!_image||!_image.Image)return;var oImageObject={};oImageObject.src=sImageUrl;oImageObject.Image={};oImageObject.Image.width=50;oImageObject.Image.height=50;oImageObject.audioUrl=sAudioUrl;oApi.WordControl.m_oLogicDocument.addImages([oImageObject],obj)})};asc_docs_api.prototype.asc_SetMathProps=function(MathProps){this.WordControl.m_oLogicDocument.Set_MathProps(MathProps)};
|
|
asc_docs_api.prototype.asc_SetHFProps=function(HFProps,bAll){if(this.WordControl&&this.WordControl.m_oLogicDocument)this.WordControl.m_oLogicDocument.setHFProperties(HFProps,bAll)};asc_docs_api.prototype.asyncFontEndLoaded=function(fontinfo){this.sync_EndAction(c_oAscAsyncActionType.Information,c_oAscAsyncAction.LoadFont);if(undefined!==this.asyncMethodCallback){this.asyncMethodCallback();this.asyncMethodCallback=undefined;return}if(editor.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(changestype_Drawing_Props)===
|
|
false){History.Create_NewPoint(AscDFH.historydescription_Presentation_ParagraphAdd);this.WordControl.m_oLogicDocument.AddToParagraph(new AscCommonWord.ParaTextPr({FontFamily:{Name:fontinfo.Name,Index:-1}}),false)}};asc_docs_api.prototype.asc_replaceLoadImageCallback=function(fCallback){this.asyncImageEndLoaded2=fCallback};asc_docs_api.prototype.asyncImageEndLoaded=function(_image,placeholder){if(this.asyncImageEndLoaded2)this.asyncImageEndLoaded2(_image,placeholder);else this.WordControl.m_oLogicDocument.addImages([_image],
|
|
placeholder)};asc_docs_api.prototype.openDocument=function(file){if(file.changes&&this.VersionHistory){this.VersionHistory.changes=file.changes;this.VersionHistory.applyChanges(this)}this.OpenDocument2(file.url,file.data)};asc_docs_api.prototype.get_PresentationWidth=function(){if(this.WordControl.m_oLogicDocument==null)return 0;return this.WordControl.m_oLogicDocument.GetWidthEMU()};asc_docs_api.prototype.get_PresentationHeight=function(){if(this.WordControl.m_oLogicDocument==null)return 0;return this.WordControl.m_oLogicDocument.GetHeightEMU()};
|
|
asc_docs_api.prototype.pre_Paste=function(_fonts,_images,callback){if(undefined!==window["Native"]&&undefined!==window["Native"]["GetImageUrl"]){callback();return}if(window["IS_NATIVE_EDITOR"]){callback();return}this.pasteCallback=callback;this.pasteImageMap=_images;var _count=0;for(var i in this.pasteImageMap)++_count;AscFonts.FontPickerByCharacter.extendFonts(_fonts);if(0==_count&&false===this.FontLoader.CheckFontsNeedLoading(_fonts)){this.pasteCallback();this.pasteCallback=null;return}this.incrementCounterLongAction();
|
|
this.isPasteFonts_Images=true;this.FontLoader.LoadDocumentFonts2(_fonts)};asc_docs_api.prototype.pre_SaveCallback=function(){AscCommon.CollaborativeEditing.OnEnd_Load_Objects();if(this.isApplyChangesOnOpen){this.isApplyChangesOnOpen=false;this._openDocumentEndCallback()}if(this.isApplyChangesOnVersionHistory){this.isApplyChangesOnVersionHistory=false;this._openVersionHistoryEndCallback()}this.WordControl.SlideDrawer.CheckRecalculateSlide()};asc_docs_api.prototype.initEvents2MobileAdvances=function(){this.WordControl.initEvents2MobileAdvances()};
|
|
asc_docs_api.prototype.ViewScrollToX=function(x){this.WordControl.m_oScrollHorApi.scrollToX(x)};asc_docs_api.prototype.ViewScrollToY=function(y){this.WordControl.m_oScrollVerApi.scrollToY(y)};asc_docs_api.prototype.GetDocWidthPx=function(){return this.WordControl.m_dDocumentWidth};asc_docs_api.prototype.GetDocHeightPx=function(){return this.WordControl.m_dDocumentHeight};asc_docs_api.prototype.ClearSearch=function(){return this.WordControl.m_oDrawingDocument.EndSearch(true)};asc_docs_api.prototype.GetCurrentVisiblePage=
|
|
function(){return this.WordControl.m_oDrawingDocument.SlideCurrent};asc_docs_api.prototype.asc_SetDocumentPlaceChangedEnabled=function(bEnabled){if(this.WordControl)this.WordControl.m_bDocumentPlaceChangedEnabled=bEnabled};asc_docs_api.prototype.asc_SetViewRulers=function(bRulers){if(!this.isLoadFullApi){this.tmpViewRulers=bRulers;return}if(this.WordControl.m_bIsRuler!=bRulers){this.WordControl.m_bIsRuler=bRulers;this.WordControl.checkNeedRules();this.WordControl.OnResize(true)}};asc_docs_api.prototype.asc_SetViewRulersChange=
|
|
function(){this.WordControl.m_bIsRuler=!this.WordControl.m_bIsRuler;this.WordControl.checkNeedRules();this.WordControl.OnResize(true);return this.WordControl.m_bIsRuler};asc_docs_api.prototype.asc_GetViewRulers=function(){return this.WordControl.m_bIsRuler};asc_docs_api.prototype.asc_SetDocumentUnits=function(_units){if(this.WordControl&&this.WordControl.m_oHorRuler&&this.WordControl.m_oVerRuler){this.WordControl.m_oHorRuler.Units=_units;this.WordControl.m_oVerRuler.Units=_units;this.WordControl.UpdateHorRulerBack(true);
|
|
this.WordControl.UpdateVerRulerBack(true)}else this.tmpDocumentUnits=_units};asc_docs_api.prototype.changeSlideSize=function(width,height,type){if(this.isMobileVersion&&this.WordControl.MobileTouchManager)this.WordControl.MobileTouchManager.BeginZoomCheck();this.WordControl.m_oLogicDocument.changeSlideSize(width,height,type);if(this.isMobileVersion&&this.WordControl.MobileTouchManager)this.WordControl.MobileTouchManager.EndZoomCheck()};asc_docs_api.prototype.AddSlide=function(layoutIndex){this.WordControl.m_oLogicDocument.addNextSlide(layoutIndex)};
|
|
asc_docs_api.prototype.DeleteSlide=function(){var _delete_array=this.WordControl.m_oLogicDocument.GetSelectedSlides();if(!this.IsSupportEmptyPresentation)if(_delete_array.length==this.WordControl.m_oDrawingDocument.SlidesCount)_delete_array.splice(0,1);if(_delete_array.length!=0)this.WordControl.m_oLogicDocument.deleteSlides(_delete_array)};asc_docs_api.prototype.DublicateSlide=function(){this.WordControl.m_oLogicDocument.DublicateSlide()};asc_docs_api.prototype.SelectAllSlides=function(layoutType){var drDoc=
|
|
this.WordControl.m_oDrawingDocument;var slidesCount=drDoc.SlidesCount;for(var i=0;i<slidesCount;i++)this.WordControl.Thumbnails.m_arrPages[i].IsSelected=true;this.WordControl.m_oLogicDocument.Document_UpdateInterfaceState();this.WordControl.Thumbnails.OnUpdateOverlay()};asc_docs_api.prototype.AddShape=function(shapetype){};asc_docs_api.prototype.ChangeShapeType=function(shapetype){this.WordControl.m_oLogicDocument.changeShapeType(shapetype)};asc_docs_api.prototype.AddText=function(){};asc_docs_api.prototype["asc_IsSpellCheckCurrentWord"]=
|
|
function(){return this.IsSpellCheckCurrentWord};asc_docs_api.prototype["asc_putSpellCheckCurrentWord"]=function(value){this.IsSpellCheckCurrentWord=value};asc_docs_api.prototype.groupShapes=function(){this.WordControl.m_oLogicDocument.groupShapes()};asc_docs_api.prototype.unGroupShapes=function(){this.WordControl.m_oLogicDocument.unGroupShapes()};asc_docs_api.prototype.setVerticalAlign=function(align){this.WordControl.m_oLogicDocument.setVerticalAlign(align)};asc_docs_api.prototype.setVert=function(vert){this.WordControl.m_oLogicDocument.setVert(vert)};
|
|
asc_docs_api.prototype.sync_MouseMoveStartCallback=function(){this.sendEvent("asc_onMouseMoveStart")};asc_docs_api.prototype.sync_MouseMoveEndCallback=function(){this.sendEvent("asc_onMouseMoveEnd")};asc_docs_api.prototype.sync_MouseMoveCallback=function(Data){if(Data.Hyperlink&&typeof Data.Hyperlink.Value==="string"){var indAction=Data.Hyperlink.Value.indexOf("ppaction://hlink");var Url=Data.Hyperlink.Value;if(0==indAction)if(Url=="ppaction://hlinkshowjump?jump=firstslide")Data.Hyperlink.Value="First Slide";
|
|
else if(Url=="ppaction://hlinkshowjump?jump=lastslide")Data.Hyperlink.Value="Last Slide";else if(Url=="ppaction://hlinkshowjump?jump=nextslide")Data.Hyperlink.Value="Next Slide";else if(Url=="ppaction://hlinkshowjump?jump=previousslide")Data.Hyperlink.Value="Previous Slide";else{var mask="ppaction://hlinksldjumpslide";var indSlide=Url.indexOf(mask);if(0==indSlide){var slideNum=parseInt(Url.substring(mask.length));Data.Hyperlink.Value="Slide "+(slideNum+1)}}}this.sendEvent("asc_onMouseMove",Data)};
|
|
asc_docs_api.prototype.sync_ShowForeignCursorLabel=function(UserId,X,Y,Color){if(this.WordControl.m_oLogicDocument.IsFocusOnNotes())Y+=parseInt(this.WordControl.m_oNotesContainer.HtmlElement.style.top);this.sendEvent("asc_onShowForeignCursorLabel",UserId,X,Y,new AscCommon.CColor(Color.r,Color.g,Color.b,255))};asc_docs_api.prototype.sync_HideForeignCursorLabel=function(UserId){this.sendEvent("asc_onHideForeignCursorLabel",UserId)};asc_docs_api.prototype.ShowThumbnails=function(bIsShow){if(bIsShow){this.WordControl.Splitter1Pos=
|
|
this.WordControl.OldSplitter1Pos;if(this.WordControl.Splitter1Pos==0)this.WordControl.Splitter1Pos=70;this.WordControl.OnResizeSplitter()}else{var old=this.WordControl.OldSplitter1Pos;this.WordControl.Splitter1Pos=0;this.WordControl.OnResizeSplitter();this.WordControl.OldSplitter1Pos=old}};asc_docs_api.prototype.asc_ShowNotes=function(bIsShow){if(bIsShow){this.WordControl.Splitter2Pos=this.WordControl.OldSplitter2Pos;if(this.WordControl.Splitter2Pos<=1)this.WordControl.Splitter2Pos=11;this.WordControl.OnResizeSplitter()}else{var old=
|
|
this.WordControl.OldSplitter2Pos;this.WordControl.Splitter2Pos=0;this.WordControl.OnResizeSplitter();this.WordControl.OldSplitter2Pos=old;this.WordControl.m_oLogicDocument.CheckNotesShow()}};asc_docs_api.prototype.asc_DeleteVerticalScroll=function(){this.WordControl.DeleteVerticalScroll()};asc_docs_api.prototype.syncOnThumbnailsShow=function(){var bIsShow=true;if(0==this.WordControl.Splitter1Pos)bIsShow=false;this.sendEvent("asc_onThumbnailsShow",bIsShow)};asc_docs_api.prototype.getIsNotesShow=function(){var bIsShow=
|
|
true;if(1>=this.WordControl.Splitter2Pos)bIsShow=false;return bIsShow};asc_docs_api.prototype.syncOnNotesShow=function(){this.sendEvent("asc_onNotesShow",this.getIsNotesShow())};asc_docs_api.prototype.can_AddHyperlink=function(){var bCanAdd=this.WordControl.m_oLogicDocument.CanAddHyperlink(true);if(true===bCanAdd)return this.WordControl.m_oLogicDocument.GetSelectedText(true);return false};asc_docs_api.prototype.add_Hyperlink=function(HyperProps){if(null!==HyperProps.Text&&undefined!==HyperProps.Text)AscFonts.FontPickerByCharacter.checkText(HyperProps.Text,
|
|
this,function(){this.WordControl.m_oLogicDocument.AddHyperlink(HyperProps)});else this.WordControl.m_oLogicDocument.AddHyperlink(HyperProps)};asc_docs_api.prototype.change_Hyperlink=function(HyperProps){this.WordControl.m_oLogicDocument.ModifyHyperlink(HyperProps)};asc_docs_api.prototype.remove_Hyperlink=function(){this.WordControl.m_oLogicDocument.RemoveHyperlink()};asc_docs_api.prototype.sync_HyperlinkPropCallback=function(hyperProp){this.SelectedObjectsStack[this.SelectedObjectsStack.length]=new asc_CSelectedObject(c_oAscTypeSelectElement.Hyperlink,
|
|
new Asc.CHyperlinkProperty(hyperProp))};asc_docs_api.prototype.sync_HyperlinkClickCallback=function(Url){this.sendEvent("asc_onHyperlinkClick",Url)};asc_docs_api.prototype.sync_CanAddHyperlinkCallback=function(bCanAdd){this.sendEvent("asc_onCanAddHyperlink",bCanAdd)};asc_docs_api.prototype.sync_DialogAddHyperlink=function(){this.sendEvent("asc_onDialogAddHyperlink")};asc_docs_api.prototype.sync_SpellCheckCallback=function(Word,Checked,Variants,ParaId,Element){this.SelectedObjectsStack[this.SelectedObjectsStack.length]=
|
|
new asc_CSelectedObject(c_oAscTypeSelectElement.SpellCheck,new AscCommon.asc_CSpellCheckProperty(Word,Checked,Variants,ParaId,Element))};asc_docs_api.prototype.sync_SpellCheckVariantsFound=function(){this.sendEvent("asc_onSpellCheckVariantsFound")};asc_docs_api.prototype.asc_replaceMisspelledWord=function(Word,SpellCheckProperty){if(this.WordControl.m_oLogicDocument)this.WordControl.m_oLogicDocument.replaceMisspelledWord(Word,SpellCheckProperty)};asc_docs_api.prototype.asc_ignoreMisspelledWord=function(SpellCheckProperty,
|
|
bAll){if(false===bAll){var ParaId=SpellCheckProperty.ParaId;var Paragraph=g_oTableId.Get_ById(ParaId);if(null!=Paragraph)Paragraph.IgnoreMisspelledWord(SpellCheckProperty.Element)}else{var LogicDocument=editor.WordControl.m_oLogicDocument;LogicDocument.Spelling.Add_Word(SpellCheckProperty.Word);LogicDocument.DrawingDocument.ClearCachePages();LogicDocument.DrawingDocument.FirePaint();if(LogicDocument.Slides[LogicDocument.CurPage])LogicDocument.DrawingDocument.Notes_OnRecalculate(LogicDocument.CurPage,
|
|
LogicDocument.NotesWidth,LogicDocument.Slides[LogicDocument.CurPage].getNotesHeight())}};asc_docs_api.prototype._spellCheckRestart=function(word){var LogicDocument=this.WordControl.m_oLogicDocument;if(LogicDocument){var oldWordStatus=LogicDocument.Spelling.Check_Word(word);if(true!==oldWordStatus){LogicDocument.Spelling.Add_Word(word);LogicDocument.DrawingDocument.ClearCachePages();LogicDocument.DrawingDocument.FirePaint();if(LogicDocument.Slides[LogicDocument.CurPage])LogicDocument.DrawingDocument.Notes_OnRecalculate(LogicDocument.CurPage,
|
|
LogicDocument.NotesWidth,LogicDocument.Slides[LogicDocument.CurPage].getNotesHeight());delete LogicDocument.Spelling.Words[word]}}};asc_docs_api.prototype.asc_spellCheckClearDictionary=function(){if(window["AscDesktopEditor"])window["AscDesktopEditor"]["SpellCheck"]('{"type":"clear"}')};asc_docs_api.prototype.asc_setDefaultLanguage=function(Lang){if(false===this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(AscCommon.changestype_PresDefaultLang)){History.Create_NewPoint(AscDFH.historydescription_Document_SetDefaultLanguage);
|
|
editor.WordControl.m_oLogicDocument.Set_DefaultLanguage(Lang)}};asc_docs_api.prototype.asc_getDefaultLanguage=function(){return editor.WordControl.m_oLogicDocument.Get_DefaultLanguage()};asc_docs_api.prototype.asc_getKeyboardLanguage=function(){if(undefined!==window["asc_current_keyboard_layout"])return window["asc_current_keyboard_layout"];return-1};asc_docs_api.prototype.asc_setSpellCheck=function(isOn){if(editor.WordControl.m_oLogicDocument){var _presentation=editor.WordControl.m_oLogicDocument;
|
|
_presentation.Spelling.Use=isOn;var _drawing_document=editor.WordControl.m_oDrawingDocument;_drawing_document.ClearCachePages();_drawing_document.FirePaint();if(_presentation.Slides[_presentation.CurPage]&&_presentation.Slides[_presentation.CurPage].notes)_drawing_document.Notes_OnRecalculate(_presentation.CurPage,_presentation.Slides[_presentation.CurPage].NotesWidth,_presentation.Slides[_presentation.CurPage].getNotesHeight())}};asc_docs_api.prototype.asc_restartCheckSpelling=function(){if(!this.WordControl||
|
|
!this.WordControl.m_oLogicDocument)return null;this.WordControl.m_oLogicDocument.Restart_CheckSpelling()};asc_docs_api.prototype.sync_shapePropCallback=function(pr){var obj=AscFormat.CreateAscShapePropFromProp(pr);if(pr.fill!=null&&pr.fill.fill!=null&&pr.fill.fill.type==c_oAscFill.FILL_TYPE_BLIP)this.WordControl.m_oDrawingDocument.DrawImageTextureFillShape(pr.fill.fill.RasterImageId);else this.WordControl.m_oDrawingDocument.DrawImageTextureFillShape(null);var oTextArtProperties=pr.textArtProperties;
|
|
if(oTextArtProperties&&oTextArtProperties.Fill&&oTextArtProperties.Fill.fill&&oTextArtProperties.Fill.fill.type==c_oAscFill.FILL_TYPE_BLIP)this.WordControl.m_oDrawingDocument.DrawImageTextureFillTextArt(oTextArtProperties.Fill.fill.RasterImageId);else this.WordControl.m_oDrawingDocument.DrawImageTextureFillTextArt(null);var _len=this.SelectedObjectsStack.length;if(_len>0)if(this.SelectedObjectsStack[_len-1].Type==c_oAscTypeSelectElement.Shape){this.SelectedObjectsStack[_len-1].Value=obj;return}this.SelectedObjectsStack[this.SelectedObjectsStack.length]=
|
|
new asc_CSelectedObject(c_oAscTypeSelectElement.Shape,obj)};asc_docs_api.prototype.sync_slidePropCallback=function(slide){if(!this.WordControl)return;if(!this.WordControl.m_oLogicDocument)return;var obj=new CAscSlideProps;var aSlides=[];var oPresentation=this.WordControl.m_oLogicDocument,i;if(this.WordControl.Thumbnails){var oTh=editor.WordControl.Thumbnails;var aSelectedArray=oTh.GetSelectedArray();obj.isHidden=oTh.IsSlideHidden(aSelectedArray);for(i=0;i<aSelectedArray.length;++i)if(oPresentation.Slides[aSelectedArray[i]])aSlides.push(oPresentation.Slides[aSelectedArray[i]])}else{obj.isHidden=
|
|
false;aSlides.push(slide)}if(!slide)return;if(aSlides.length===0)aSlides.push(slide);var bgFill=aSlides[0].backgroundFill?aSlides[0].backgroundFill.createDuplicate():aSlides[0].backgroundFill;for(i=1;i<aSlides.length;++i){bgFill=AscFormat.CompareUniFill(bgFill,aSlides[i].backgroundFill);if(!bgFill)break}if(!bgFill){obj.Background=new asc_CShapeFill;obj.Background.type=c_oAscFill.FILL_TYPE_NOFILL;this.WordControl.m_oDrawingDocument.DrawImageTextureFillSlide(null)}else{obj.Background=AscFormat.CreateAscFill(bgFill);
|
|
if(bgFill!=null&&bgFill.fill!=null&&bgFill.fill.type==c_oAscFill.FILL_TYPE_BLIP)this.WordControl.m_oDrawingDocument.DrawImageTextureFillSlide(bgFill.fill.RasterImageId);else this.WordControl.m_oDrawingDocument.DrawImageTextureFillSlide(null)}var transition=aSlides[0].transition?aSlides[0].transition.createDuplicate():aSlides[0].transition;for(i=1;i<aSlides.length;++i){transition=AscCommonSlide.CompareTransitions(transition,aSlides[i].transition);if(!transition)break}if(transition)obj.Transition=transition.createDuplicate();
|
|
else obj.Transition=Asc.CAscSlideTransition();obj.Transition.ShowLoop=this.WordControl.m_oLogicDocument.isLoopShowMode();obj.lockDelete=!(slide.deleteLock.Lock.Type===locktype_Mine||slide.deleteLock.Lock.Type===locktype_None);obj.lockLayout=!(slide.layoutLock.Lock.Type===locktype_Mine||slide.layoutLock.Lock.Type===locktype_None);obj.lockTiming=!(slide.timingLock.Lock.Type===locktype_Mine||slide.timingLock.Lock.Type===locktype_None);obj.lockTransition=!(slide.transitionLock.Lock.Type===locktype_Mine||
|
|
slide.transitionLock.Lock.Type===locktype_None);obj.lockBackground=!(slide.backgroundLock.Lock.Type===locktype_Mine||slide.backgroundLock.Lock.Type===locktype_None);obj.lockRemove=obj.lockDelete||obj.lockLayout||obj.lockTiming||obj.lockTransition||obj.lockBackground||slide.isLockedObject();if(slide&&slide.Layout&&slide.Layout.Master){var aLayouts=slide.Layout.Master.sldLayoutLst;for(i=0;i<aLayouts.length;++i)if(slide.Layout===aLayouts[i]){obj.LayoutIndex=i;break}}var _len=this.SelectedObjectsStack.length;
|
|
if(_len>0)if(this.SelectedObjectsStack[_len-1].Type==c_oAscTypeSelectElement.Slide){this.SelectedObjectsStack[_len-1].Value=obj;return}this.SelectedObjectsStack[this.SelectedObjectsStack.length]=new asc_CSelectedObject(c_oAscTypeSelectElement.Slide,obj)};asc_docs_api.prototype.ExitHeader_Footer=function(pageNumber){if(this.WordControl.m_oDrawingDocument.IsFreezePage(pageNumber))return;var oldClickCount=global_mouseEvent.ClickCount;global_mouseEvent.ClickCount=2;this.WordControl.m_oLogicDocument.OnMouseDown(global_mouseEvent,
|
|
0,AscCommon.Page_Height/2,pageNumber);this.WordControl.m_oLogicDocument.OnMouseUp(global_mouseEvent,0,AscCommon.Page_Height/2,pageNumber);this.WordControl.m_oLogicDocument.Document_UpdateInterfaceState();global_mouseEvent.ClickCount=oldClickCount};asc_docs_api.prototype.GetCurrentPixOffsetY=function(){return this.WordControl.m_dScrollY};asc_docs_api.prototype.SetPaintFormat=function(value){this.isPaintFormat=value;this.WordControl.m_oLogicDocument.Document_Format_Copy()};asc_docs_api.prototype.sync_PaintFormatCallback=
|
|
function(value){this.isPaintFormat=value;return this.sendEvent("asc_onPaintFormatChanged",value)};asc_docs_api.prototype.SetMarkerFormat=function(value,is_flag,r,g,b){this.isMarkerFormat=value;if(this.isMarkerFormat)this.WordControl.m_oLogicDocument.SetParagraphHighlight(is_flag,r,g,b)};asc_docs_api.prototype.sync_MarkerFormatCallback=function(value){this.isMarkerFormat=value;return this.sendEvent("asc_onMarkerFormatChanged",value)};asc_docs_api.prototype.ClearFormating=function(){this.WordControl.m_oLogicDocument.ClearParagraphFormatting(false,
|
|
true)};window.ID_KEYBOARD_AREA=undefined;window.ID_KEYBOARD_AREA;asc_docs_api.prototype.SetDeviceInputHelperId=function(idKeyboard){if(window.ID_KEYBOARD_AREA===undefined&&this.WordControl.m_oMainView!=null){window.ID_KEYBOARD_AREA=document.getElementById(idKeyboard);window.ID_KEYBOARD_AREA.onkeypress=function(e){if(false===editor.WordControl.IsFocus){editor.WordControl.IsFocus=true;var ret=editor.WordControl.onKeyPress(e);editor.WordControl.IsFocus=false;return ret}};window.ID_KEYBOARD_AREA.onkeydown=
|
|
function(e){if(false===editor.WordControl.IsFocus){editor.WordControl.IsFocus=true;var ret=editor.WordControl.onKeyDown(e);editor.WordControl.IsFocus=false;return ret}}}window.ID_KEYBOARD_AREA.focus()};asc_docs_api.prototype.asc_setViewMode=function(isViewMode){this.isViewMode=!!isViewMode;if(!this.isLoadFullApi)return;this.WordControl.setNodesEnable(this.isMobileVersion&&!this.isReporterMode?false:true);if(isViewMode){this.ShowParaMarks=false;this.WordControl.m_bIsRuler=false;this.WordControl.m_oDrawingDocument.ClearCachePages();
|
|
this.WordControl.HideRulers();AscCommon.CollaborativeEditing.Set_GlobalLock(true);if(null!=this.WordControl.m_oLogicDocument)this.WordControl.m_oLogicDocument.viewMode=true}else{this.WordControl.checkNeedRules();this.WordControl.m_oDrawingDocument.ClearCachePages();this.WordControl.OnResize(true);if(null!=this.WordControl.m_oLogicDocument)this.WordControl.m_oLogicDocument.viewMode=false}};asc_docs_api.prototype.sync_HyperlinkClickCallback=function(Url){var indAction=Url.indexOf("ppaction://hlink");
|
|
if(0==indAction){if(Url=="ppaction://hlinkshowjump?jump=firstslide")this.WordControl.GoToPage(0);else if(Url=="ppaction://hlinkshowjump?jump=lastslide")this.WordControl.GoToPage(this.WordControl.m_oDrawingDocument.SlidesCount-1);else if(Url=="ppaction://hlinkshowjump?jump=nextslide")this.WordControl.onNextPage();else if(Url=="ppaction://hlinkshowjump?jump=previousslide")this.WordControl.onPrevPage();else{var mask="ppaction://hlinksldjumpslide";var indSlide=Url.indexOf(mask);if(0==indSlide){var slideNum=
|
|
parseInt(Url.substring(mask.length));if(slideNum>=0&&slideNum<this.WordControl.m_oDrawingDocument.SlidesCount)this.WordControl.GoToPage(slideNum)}}return}this.sendEvent("asc_onHyperlinkClick",Url)};asc_docs_api.prototype.asc_GoToInternalHyperlink=function(url){for(var i=0;i<this.SelectedObjectsStack.length;++i)if(this.SelectedObjectsStack[i].Type===c_oAscTypeSelectElement.Hyperlink){var oHyperProp=this.SelectedObjectsStack[i].Value;if(typeof oHyperProp.Value==="string"&&oHyperProp.Value.indexOf("ppaction://hlink")===
|
|
0)this.sync_HyperlinkClickCallback(oHyperProp.Value);return}};asc_docs_api.prototype.UpdateInterfaceState=function(){if(this.WordControl.m_oLogicDocument!=null){this.WordControl.m_oLogicDocument.Document_UpdateInterfaceState();this.WordControl.CheckLayouts(true)}};asc_docs_api.prototype.OnMouseUp=function(x,y){var _e=AscCommon.CreateMouseUpEventObject(x,y);AscCommon.Window_OnMouseUp(_e)};asc_docs_api.prototype.asyncImageEndLoaded2=null;asc_docs_api.prototype.ChangeTheme=function(indexTheme,bSelectedSlides,
|
|
isRemote){if(window.parent&&window.parent.APP&&!isRemote&&!bSelectedSlides)window.parent.APP.changeTheme(indexTheme);if(true===AscCommon.CollaborativeEditing.Get_GlobalLock())return;if(!this.isViewMode&&this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(AscCommon.changestype_Theme)===false){AscCommon.CollaborativeEditing.Set_GlobalLock(true);this.WordControl.m_oLogicDocument.Create_NewHistoryPoint(AscDFH.historydescription_Presentation_ChangeTheme);this.bSelectedSlidesTheme=bSelectedSlides===
|
|
true;this.ThemeLoader.StartLoadTheme(indexTheme)}};asc_docs_api.prototype.StartLoadTheme=function(){};asc_docs_api.prototype.EndLoadTheme=function(theme_load_info){AscCommon.CollaborativeEditing.Set_GlobalLock(false);var _array=this.WordControl.m_oLogicDocument.GetSelectedSlides();this.WordControl.m_oLogicDocument.changeTheme(theme_load_info,_array.length<=1&&!this.bSelectedSlidesTheme?null:_array);this.WordControl.ThemeGenerateThumbnails(theme_load_info.Master);this.WordControl.CheckLayouts();this.sync_EndAction(c_oAscAsyncActionType.BlockInteraction,
|
|
c_oAscAsyncAction.LoadTheme)};asc_docs_api.prototype.ChangeLayout=function(layout_index){var _array=this.WordControl.m_oLogicDocument.GetSelectedSlides();var _master=this.WordControl.MasterLayouts;this.WordControl.m_oLogicDocument.changeLayout(_array,this.WordControl.MasterLayouts,layout_index)};asc_docs_api.prototype.ResetSlide=function(){var _array=this.WordControl.m_oLogicDocument.GetSelectedSlides();var _master=this.WordControl.MasterLayouts;this.WordControl.m_oLogicDocument.changeLayout(_array,
|
|
this.WordControl.MasterLayouts,undefined)};asc_docs_api.prototype.put_ShapesAlign=function(type,alignType){if(!AscFormat.isRealNumber(alignType))alignType=Asc.c_oAscObjectsAlignType.Slide;switch(type){case c_oAscAlignShapeType.ALIGN_LEFT:{this.shapes_alignLeft(alignType);break}case c_oAscAlignShapeType.ALIGN_RIGHT:{this.shapes_alignRight(alignType);break}case c_oAscAlignShapeType.ALIGN_TOP:{this.shapes_alignTop(alignType);break}case c_oAscAlignShapeType.ALIGN_BOTTOM:{this.shapes_alignBottom(alignType);
|
|
break}case c_oAscAlignShapeType.ALIGN_CENTER:{this.shapes_alignCenter(alignType);break}case c_oAscAlignShapeType.ALIGN_MIDDLE:{this.shapes_alignMiddle(alignType);break}default:break}};asc_docs_api.prototype.DistributeHorizontally=function(alignType){if(!AscFormat.isRealNumber(alignType))alignType=Asc.c_oAscObjectsAlignType.Slide;this.WordControl.m_oLogicDocument.distributeHor(alignType)};asc_docs_api.prototype.DistributeVertically=function(alignType){if(!AscFormat.isRealNumber(alignType))alignType=
|
|
Asc.c_oAscObjectsAlignType.Slide;this.WordControl.m_oLogicDocument.distributeVer(alignType)};asc_docs_api.prototype.shapes_alignLeft=function(alignType){this.WordControl.m_oLogicDocument.alignLeft(alignType)};asc_docs_api.prototype.shapes_alignRight=function(alignType){this.WordControl.m_oLogicDocument.alignRight(alignType)};asc_docs_api.prototype.shapes_alignTop=function(alignType){this.WordControl.m_oLogicDocument.alignTop(alignType)};asc_docs_api.prototype.shapes_alignBottom=function(alignType){this.WordControl.m_oLogicDocument.alignBottom(alignType)};
|
|
asc_docs_api.prototype.shapes_alignCenter=function(alignType){this.WordControl.m_oLogicDocument.alignCenter(alignType)};asc_docs_api.prototype.shapes_alignMiddle=function(alignType){this.WordControl.m_oLogicDocument.alignMiddle(alignType)};asc_docs_api.prototype.shapes_bringToFront=function(){this.WordControl.m_oLogicDocument.bringToFront()};asc_docs_api.prototype.shapes_bringForward=function(){this.WordControl.m_oLogicDocument.bringForward()};asc_docs_api.prototype.shapes_bringToBack=function(){this.WordControl.m_oLogicDocument.sendToBack()};
|
|
asc_docs_api.prototype.shapes_bringBackward=function(){this.WordControl.m_oLogicDocument.bringBackward()};asc_docs_api.prototype.asc_setLoopShow=function(isLoop){this.WordControl.m_oLogicDocument.setShowLoop(isLoop)};asc_docs_api.prototype.sync_endDemonstration=function(){this.sendEvent("asc_onEndDemonstration")};asc_docs_api.prototype.sync_DemonstrationSlideChanged=function(slideNum){this.sendEvent("asc_onDemonstrationSlideChanged",slideNum)};asc_docs_api.prototype.StartDemonstration=function(div_id,
|
|
slidestart_num,reporterStartObject){if(window.g_asc_plugins)window.g_asc_plugins.stopWorked();var is_reporter=reporterStartObject&&!this.isReporterMode;if(is_reporter)this.DemonstrationReporterStart(reporterStartObject);if(is_reporter&&(this.reporterWindow||window["AscDesktopEditor"]))this.WordControl.DemonstrationManager.StartWaitReporter(div_id,slidestart_num,true);else this.WordControl.DemonstrationManager.Start(div_id,slidestart_num,true);if(undefined!==this.EndShowMessage){this.WordControl.DemonstrationManager.EndShowMessage=
|
|
this.EndShowMessage;this.EndShowMessage=undefined}};asc_docs_api.prototype.EndDemonstration=function(isNoUseFullScreen){if(this.windowReporter)this.windowReporter.close();this.WordControl.DemonstrationManager.End(isNoUseFullScreen)};asc_docs_api.prototype.DemonstrationReporterStart=function(startObject){this.reporterStartObject=startObject;this.reporterStartObject["translate"]=AscCommon.translateManager.mapTranslate;this.reporterStartObject["skin"]=AscCommon.GlobalSkin;if(window["AscDesktopEditor"]){window["AscDesktopEditor"]["startReporter"](window.location.href);
|
|
this.reporterWindow={};return}var dualScreenLeft=window.screenLeft!=undefined?window.screenLeft:screen.left;var dualScreenTop=window.screenTop!=undefined?window.screenTop:screen.top;var width=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:screen.width;var height=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height;var w=800;var h=600;var left=width/2-w/2+dualScreenLeft;
|
|
var top=height/2-h/2+dualScreenTop;var _windowPos="width="+w+",height="+h+",left="+left+",top="+top;var urlArgs=window.parent&&window.parent.APP&&window.parent.APP.urlArgs||"";var _url="index.reporter.html?"+urlArgs;if(this.locale)_url+="&lang="+this.locale;this.reporterWindow=window.open(_url,"_blank","resizable=yes,status=0,toolbar=0,location=0,menubar=0,directories=0,scrollbars=0,"+_windowPos);if(!this.reporterWindow)return;var w=this.reporterWindow;require(["/common/outer/worker-channel.js","/common/common-util.js"],
|
|
function(Channel,Util){var msgEv=Util.mkEvent();window.addEventListener("message",function(msg){if(msg.source!==w)return;msgEv.fire(msg)});var postMsg=function(data){w.postMessage(data,"*")};Channel.create(msgEv,postMsg,function(chan){var send=function(obj){chan.event("CMD",obj)};chan.on("CMD",function(obj){if(obj.type!=="auth")return;send({type:"authChanges",changes:[]});send({type:"auth",result:1,sessionId:"06348ca8f861a0af3548ae38360aa617",participants:[],locks:[],changes:[],changesIndex:0,indexUser:0,
|
|
buildVersion:"5.2.6",buildNumber:2,licenseType:3});send({type:"documentOpen",data:{"type":"open","status":"ok","data":{"Editor.bin":editor.reporterStartObject.url}}})})})});this.reporterWindowCounter=0;if(!AscCommon.AscBrowser.isSafariMacOs)this.reporterWindow.onbeforeunload=function(){window.editor.EndDemonstration()};this.reporterWindow.onunload=function(){window.editor.reporterWindowCounter++;if(1<window.editor.reporterWindowCounter)window.editor.EndDemonstration()};if(this.reporterWindow.attachEvent)this.reporterWindow.attachEvent("onmessage",
|
|
this.DemonstrationReporterMessages);else this.reporterWindow.addEventListener("message",this.DemonstrationReporterMessages,false)};asc_docs_api.prototype.DemonstrationReporterEnd=function(){if(window["AscDesktopEditor"]){window["AscDesktopEditor"]["endReporter"]();this.reporterWindow=null;return}try{this.reporterWindowCounter=0;if(!this.reporterWindow)return;if(this.reporterWindow.attachEvent)this.reporterWindow.detachEvent("onmessage",this.DemonstrationReporterMessages);else this.reporterWindow.removeEventListener("message",
|
|
this.DemonstrationReporterMessages,false);this.reporterWindow.close();this.reporterWindow=null;this.reporterStartObject=null}catch(err){this.reporterWindow=null;this.reporterStartObject=null}};asc_docs_api.prototype.DemonstrationReporterMessages=function(e){var _this=window.editor;if(e.data=="i:am:ready"){var bin=editor.asc_nativeGetFile();var blob=new Blob([bin],{type:"plain/text"});var url=URL.createObjectURL(blob);_this.reporterStartObject.url=url;var _msg_={type:"file:open",data:_this.reporterStartObject};
|
|
if(AscCommon.EncryptionWorker.isPasswordCryptoPresent){_msg_.data["cryptoCurrentPassword"]=this.currentPassword;_msg_.data["cryptoCurrentDocumentHash"]=this.currentDocumentHash;_msg_.data["cryptoCurrentDocumentInfo"]=this.currentDocumentInfo}this.reporterStartObject=null;_this.sendToReporter(JSON.stringify(_msg_));return}try{var _obj=JSON.parse(e.data);if(undefined==_obj["reporter_command"])return;switch(_obj["reporter_command"]){case "end":{_this.EndDemonstration();break}case "next":{_this.WordControl.DemonstrationManager.NextSlide();
|
|
break}case "prev":{_this.WordControl.DemonstrationManager.PrevSlide();break}case "go_to_slide":{_this.WordControl.DemonstrationManager.GoToSlide(_obj["slide"]);break}case "start_show":{_this.WordControl.DemonstrationManager.EndWaitReporter();break}case "pointer_move":{_this.WordControl.DemonstrationManager.PointerMove(_obj["x"],_obj["y"],_obj["w"],_obj["h"]);break}case "pointer_remove":{_this.WordControl.DemonstrationManager.PointerRemove();break}case "pause":{_this.WordControl.DemonstrationManager.Pause();
|
|
_this.sendEvent("asc_onDemonstrationStatus","pause");break}case "play":{_this.WordControl.DemonstrationManager.Play();_this.sendEvent("asc_onDemonstrationStatus","play");break}case "resize":{_this.WordControl.DemonstrationManager.Resize(true);break}default:break}}catch(err){}};asc_docs_api.prototype.preloadReporter=function(data){if(data["translate"])this.translateManager=AscCommon.translateManager.init(data["translate"]);if(data["skin"])this.asc_setSkin(data["skin"]);this.reporterTranslates=[data["translations"]["reset"],
|
|
data["translations"]["slideOf"],data["translations"]["endSlideshow"],data["translations"]["finalMessage"]];if(data["cryptoCurrentPassword"]){this.currentPassword=data["cryptoCurrentPassword"];this.currentDocumentHash=data["cryptoCurrentDocumentHash"];this.currentDocumentInfo=data["cryptoCurrentDocumentInfo"];if(this.pluginsManager)this.pluginsManager.checkCryptoReporter();else this.isCheckCryptoReporter=true}this.asc_registerCallback("asc_onHyperlinkClick",function(url){if(url)window.open(url)});
|
|
if(!this.WordControl)return;this.WordControl.reporterTranslates=this.reporterTranslates;this.WordControl.DemonstrationManager.EndShowMessage=this.reporterTranslates[3];var _button1=document.getElementById("dem_id_reset");var _button2=document.getElementById("dem_id_end");if(_button1)_button1.innerHTML=this.reporterTranslates[0];if(_button2){_button2.innerHTML=this.reporterTranslates[2];this.WordControl.OnResizeReporter()}};asc_docs_api.prototype.sendToReporter=function(value){if(this.disableReporterEvents)return;
|
|
if(window["AscDesktopEditor"]){window["AscDesktopEditor"]["sendToReporter"](value);return}if(this.reporterWindow)this.reporterWindow.postMessage(value,"*")};asc_docs_api.prototype.sendFromReporter=function(value){if(this.disableReporterEvents)return;if(window["AscDesktopEditor"]){window["AscDesktopEditor"]["sendFromReporter"](value);return}window.postMessage(value,"*")};asc_docs_api.prototype.DemonstrationToReporterMessages=function(e){var _this=window.editor;try{var _obj=JSON.parse(e.data);if(window["AscDesktopEditor"]&&
|
|
_obj["type"]=="file:open"){window.postMessage(e.data,"*");return}if(undefined==_obj["main_command"])return;if(undefined!==_obj["keyCode"])_this.WordControl.DemonstrationManager.onKeyDownCode(_obj["keyCode"]);else if(undefined!==_obj["mouseUp"])_this.WordControl.DemonstrationManager.onMouseUp({},true,true);else if(undefined!==_obj["mouseWhell"])_this.WordControl.DemonstrationManager.onMouseWheelDelta(_obj["mouseWhell"]);else if(undefined!==_obj["resize"])_this.WordControl.DemonstrationManager.Resize(true);
|
|
else if(true===_obj["next"])_this.WordControl.DemonstrationManager.NextSlide(true);else if(true===_obj["prev"])_this.WordControl.DemonstrationManager.PrevSlide(true);else if(undefined!==_obj["go_to_slide"])_this.WordControl.DemonstrationManager.GoToSlide(_obj["go_to_slide"],true);else if(true===_obj["play"]){var _isNowPlaying=_this.WordControl.DemonstrationManager.IsPlayMode;_this.WordControl.DemonstrationManager.Play(true);var _elem=document.getElementById("dem_id_play_span");if(_elem&&!_isNowPlaying){_elem.classList.remove("btn-play");
|
|
_elem.classList.add("btn-pause");_this.WordControl.reporterTimerLastStart=(new Date).getTime();_this.WordControl.reporterTimer=setInterval(_this.WordControl.reporterTimerFunc,1E3)}}else if(true===_obj["pause"]){var _isNowPlaying=_this.WordControl.DemonstrationManager.IsPlayMode;_this.WordControl.DemonstrationManager.Pause();var _elem=document.getElementById("dem_id_play_span");if(_elem&&_isNowPlaying){_elem.classList.remove("btn-pause");_elem.classList.add("btn-play");if(-1!=_this.WordControl.reporterTimer){clearInterval(_this.WordControl.reporterTimer);
|
|
_this.WordControl.reporterTimer=-1}_this.WordControl.reporterTimerAdd=_this.WordControl.reporterTimerFunc(true)}}}catch(err){}};asc_docs_api.prototype.DemonstrationPlay=function(){if(undefined!==this.EndShowMessage){this.WordControl.DemonstrationManager.EndShowMessage=this.EndShowMessage;this.EndShowMessage=undefined}this.WordControl.DemonstrationManager.Play(true);if(this.reporterWindow)this.sendToReporter('{ "main_command" : true, "play" : true }')};asc_docs_api.prototype.DemonstrationPause=function(){this.WordControl.DemonstrationManager.Pause();
|
|
if(this.reporterWindow)this.sendToReporter('{ "main_command" : true, "pause" : true }')};asc_docs_api.prototype.DemonstrationEndShowMessage=function(message){if(!this.WordControl)this.EndShowMessage=message;else this.WordControl.DemonstrationManager.EndShowMessage=message};asc_docs_api.prototype.DemonstrationNextSlide=function(){this.WordControl.DemonstrationManager.NextSlide();if(this.reporterWindow)this.sendToReporter('{ "main_command" : true, "next" : true }')};asc_docs_api.prototype.DemonstrationPrevSlide=
|
|
function(){this.WordControl.DemonstrationManager.PrevSlide();if(this.reporterWindow)this.sendToReporter('{ "main_command" : true, "prev" : true }')};asc_docs_api.prototype.DemonstrationGoToSlide=function(slideNum){this.WordControl.DemonstrationManager.GoToSlide(slideNum);if(this.isReporterMode)this.sendFromReporter('{ "reporter_command" : "go_to_slide", "slide" : '+slideNum+" }");if(this.reporterWindow)this.sendToReporter('{ "main_command" : true, "go_to_slide" : '+slideNum+" }")};asc_docs_api.prototype.SetDemonstrationModeOnly=
|
|
function(){this.isOnlyDemonstration=true};asc_docs_api.prototype.ApplySlideTransition=function(oTransition){if(this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(AscCommon.changestype_SlideTransition)===false){History.Create_NewPoint(AscDFH.historydescription_Presentation_ApplyTransition);var _count=this.WordControl.m_oDrawingDocument.SlidesCount;var _cur=this.WordControl.m_oDrawingDocument.SlideCurrent;if(_cur<0||_cur>=_count)return;var aSelectedSlides=this.WordControl.m_oLogicDocument.GetSelectedSlides();
|
|
for(var i=0;i<aSelectedSlides.length;++i){var _curSlide=this.WordControl.m_oLogicDocument.Slides[aSelectedSlides[i]];_curSlide.applyTransition(oTransition)}if(oTransition)if(AscFormat.isRealBool(oTransition.get_ShowLoop())&&oTransition.get_ShowLoop()!==this.WordControl.m_oLogicDocument.isLoopShowMode())this.WordControl.m_oLogicDocument.setShowLoop(oTransition.get_ShowLoop())}this.WordControl.m_oLogicDocument.Document_UpdateInterfaceState()};asc_docs_api.prototype.SlideTransitionApplyToAll=function(){if(this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(AscCommon.changestype_SlideTransition,
|
|
{All:true})===false){History.Create_NewPoint(AscDFH.historydescription_Presentation_ApplyTransitionToAll);var _count=this.WordControl.m_oDrawingDocument.SlidesCount;var _cur=this.WordControl.m_oDrawingDocument.SlideCurrent;var _slides=this.WordControl.m_oLogicDocument.Slides;if(_cur<0||_cur>=_count)return;var _curSlide=_slides[_cur];_curSlide.transition.makeDuplicate(this.WordControl.m_oLogicDocument.DefaultSlideTransition);var _default=this.WordControl.m_oLogicDocument.DefaultSlideTransition;for(var i=
|
|
0;i<_count;i++){if(i==_cur)continue;_slides[i].applyTransition(_default)}}};asc_docs_api.prototype.SlideTransitionPlay=function(){var _count=this.WordControl.m_oDrawingDocument.SlidesCount;var _cur=this.WordControl.m_oDrawingDocument.SlideCurrent;if(_cur<0||_cur>=_count)return;var _transition=this.WordControl.m_oLogicDocument.Slides[_cur].transition;var _tr=this.WordControl.m_oDrawingDocument.TransitionSlide;_tr.Type=_transition.TransitionType;_tr.Param=_transition.TransitionOption;_tr.Duration=_transition.TransitionDuration;
|
|
_tr.Start(true)};asc_docs_api.prototype.asc_HideSlides=function(isHide){this.WordControl.m_oLogicDocument.hideSlides(isHide)};asc_docs_api.prototype.sync_EndAddShape=function(){editor.sendEvent("asc_onEndAddShape");if(this.WordControl.m_oDrawingDocument.m_sLockedCursorType=="crosshair")this.WordControl.m_oDrawingDocument.UnlockCursorType()};asc_docs_api.prototype.asc_getChartObject=function(type){this.isChartEditor=true;if(!AscFormat.isRealNumber(type)){this.asc_onOpenChartFrame();this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(AscCommon.changestype_Drawing_Props)}return this.WordControl.m_oLogicDocument.GetChartObject(type)};
|
|
asc_docs_api.prototype.asc_addChartDrawingObject=function(chartBinary,Placeholder){if(AscFormat.isObject(chartBinary)){{AscFonts.IsCheckSymbols=true;this.WordControl.m_oLogicDocument.addChart(chartBinary,true,Placeholder);AscFonts.IsCheckSymbols=false}}};asc_docs_api.prototype.asc_editChartDrawingObject=function(chartBinary){if(AscCommon.isRealObject(chartBinary))this.WordControl.m_oLogicDocument.EditChart(chartBinary)};asc_docs_api.prototype.asc_onCloseChartFrame=function(){AscCommon.baseEditorsApi.prototype.asc_onCloseChartFrame.call(this);
|
|
this.WordControl.m_bIsMouseLock=false};asc_docs_api.prototype.sync_closeChartEditor=function(){this.sendEvent("asc_onCloseChartEditor")};asc_docs_api.prototype.asc_setDrawCollaborationMarks=function(){};asc_docs_api.prototype.asc_getSelectedDrawingObjectsCount=function(){if(!this.WordControl)return 0;if(!this.WordControl.m_oLogicDocument)return 0;return this.WordControl.m_oLogicDocument.getSelectedDrawingObjectsCount()};asc_docs_api.prototype.asc_ChangeTextCase=function(nType){var oLogicDocument=
|
|
this.WordControl&&this.WordControl.m_oLogicDocument;if(!oLogicDocument)return;oLogicDocument.ChangeTextCase(nType)};function CContextMenuData(oData){if(AscCommon.isRealObject(oData)){this.Type=oData.Type;this.X_abs=oData.X_abs;this.Y_abs=oData.Y_abs;this.IsSlideSelect=oData.IsSlideSelect;this.IsSlideHidden=oData.IsSlideHidden}else{this.Type=Asc.c_oAscContextMenuTypes.Main;this.X_abs=0;this.Y_abs=0;this.IsSlideSelect=true;this.IsSlideHidden=false}}CContextMenuData.prototype.get_Type=function(){return this.Type};
|
|
CContextMenuData.prototype.get_X=function(){return this.X_abs};CContextMenuData.prototype.get_Y=function(){return this.Y_abs};CContextMenuData.prototype.get_IsSlideSelect=function(){return this.IsSlideSelect};CContextMenuData.prototype.get_IsSlideHidden=function(){return this.IsSlideHidden};asc_docs_api.prototype.sync_ContextMenuCallback=function(Data){this.sendEvent("asc_onContextMenu",Data)};asc_docs_api.prototype._onNeedParams=function(data,opt_isPassword){if(opt_isPassword)if(this.asc_checkNeedCallback("asc_onAdvancedOptions"))this.sendEvent("asc_onAdvancedOptions",
|
|
c_oAscAdvancedOptionsID.DRM,data?data.message:undefined);else this.sendEvent("asc_onError",c_oAscError.ID.ConvertationPassword,c_oAscError.Level.Critical)};asc_docs_api.prototype._onEndLoadSdk=function(){AscCommon.baseEditorsApi.prototype._onEndLoadSdk.call(this);History=AscCommon.History;PasteElementsId=AscCommon.PasteElementsId;global_mouseEvent=AscCommon.global_mouseEvent;this.WordControl=new AscCommonSlide.CEditorPage(this);this.WordControl.Name=this.HtmlElementName;this.ThemeLoader=new AscCommonSlide.CThemeLoader;
|
|
this.ThemeLoader.Api=this;PasteElementsId.g_bIsDocumentCopyPaste=false;this.CreateComponents();this.WordControl.Init();if(this.tmpFontRenderingMode)this.SetFontRenderingMode(this.tmpFontRenderingMode);if(this.tmpThemesPath)this.SetThemesPath(this.tmpThemesPath);if(null!==this.tmpIsFreeze)this.SetDrawingFreeze(this.tmpIsFreeze);if(this.tmpSlideDiv)this.SetInterfaceDrawImagePlaceSlide(this.tmpSlideDiv);if(this.tmpTextArtDiv)this.SetInterfaceDrawImagePlaceTextArt(this.tmpTextArtDiv);if(null!==this.tmpViewRulers)this.asc_SetViewRulers(this.tmpViewRulers);
|
|
if(null!==this.tmpZoomType)switch(this.tmpZoomType){case AscCommon.c_oZoomType.FitToPage:this.zoomFitToPage();break;case AscCommon.c_oZoomType.FitToWidth:this.zoomFitToWidth();break;case AscCommon.c_oZoomType.CustomMode:this.zoomCustomMode();break}if(null!=this.tmpDocumentUnits){this.asc_SetDocumentUnits(this.tmpDocumentUnits);this.tmpDocumentUnits=null}this.asc_setViewMode(this.isViewMode);if(this.isReporterMode){var _onbeforeunload=function(){window.editor.EndDemonstration()};if(window.attachEvent)window.attachEvent("onbeforeunload",
|
|
_onbeforeunload);else window.addEventListener("beforeunload",_onbeforeunload,false)}if(this.openFileCryptBinary)this.openFileCryptCallback(this.openFileCryptBinary)};asc_docs_api.prototype._downloadAs=function(actionType,options,oAdditionalData,dataContainer){var fileType=options.fileType;if(c_oAscFileType.PDF===fileType||c_oAscFileType.PDFA===fileType){var isSelection=false;if(options.advancedOptions&&options.advancedOptions&&Asc.c_oAscPrintType.Selection===options.advancedOptions.asc_getPrintType())isSelection=
|
|
true;var dd=this.WordControl.m_oDrawingDocument;dataContainer.data=dd.ToRendererPart(oAdditionalData["nobase64"],isSelection)}else dataContainer.data=this.WordControl.SaveDocument(oAdditionalData["nobase64"]);if(window.isCloudCryptoDownloadAs){window["AscDesktopEditor"]["CryptoDownloadAs"](dataContainer.data,fileType);return true}};asc_docs_api.prototype.SetFontRenderingMode=function(mode){if(!this.isLoadFullApi){this.tmpFontRenderingMode=mode;return}if(c_oAscFontRenderingModeType.noHinting===mode)AscCommon.g_fontManager.SetHintsProps(false,
|
|
false);else if(c_oAscFontRenderingModeType.hinting===mode)AscCommon.g_fontManager.SetHintsProps(true,false);else if(c_oAscFontRenderingModeType.hintingAndSubpixeling===mode)AscCommon.g_fontManager.SetHintsProps(true,true);if(AscCommon.g_fontManager2!==undefined&&AscCommon.g_fontManager2!==null)AscCommon.g_fontManager2.ClearFontsRasterCache();this.WordControl.m_oDrawingDocument.ClearCachePages();if(this.bInit_word_control)this.WordControl.OnScroll()};asc_docs_api.prototype.asc_Recalculate=function(bIsUpdateInterface){if(!this.WordControl.m_oLogicDocument)return;
|
|
this.WordControl.m_oLogicDocument.Recalculate({Drawings:{All:true,Map:{}}});this.WordControl.m_oLogicDocument.DrawingDocument.OnEndRecalculate()};asc_docs_api.prototype.asc_canPaste=function(){if(!this.WordControl||!this.WordControl.m_oLogicDocument||this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(AscCommon.changestype_Drawing_Props))return false;this.WordControl.m_oLogicDocument.Create_NewHistoryPoint(AscDFH.historydescription_Document_AddSectionBreak);return true};asc_docs_api.prototype.asc_SetAutomaticBulletedLists=
|
|
function(isAuto){var oLogicDocument=this.WordControl.m_oLogicDocument;if(!oLogicDocument)return;return oLogicDocument.SetAutomaticBulletedLists(isAuto)};asc_docs_api.prototype.asc_SetAutomaticNumberedLists=function(isAuto){var oLogicDocument=this.WordControl.m_oLogicDocument;if(!oLogicDocument)return;return oLogicDocument.SetAutomaticNumberedLists(isAuto)};asc_docs_api.prototype.asc_SetAutoCorrectSmartQuotes=function(isSmartQuotes){var oLogicDocument=this.WordControl.m_oLogicDocument;if(!oLogicDocument)return;
|
|
return oLogicDocument.SetAutoCorrectSmartQuotes(isSmartQuotes)};asc_docs_api.prototype.asc_SetAutoCorrectHyphensWithDash=function(isReplace){var oLogicDocument=this.WordControl.m_oLogicDocument;if(!oLogicDocument)return;return oLogicDocument.SetAutoCorrectHyphensWithDash(isReplace)};asc_docs_api.prototype.asc_SetAutoCorrectFirstLetterOfSentences=function(isCorrect){var oLogicDocument=this.WordControl.m_oLogicDocument;if(!oLogicDocument)return;return oLogicDocument.SetAutoCorrectFirstLetterOfSentences(isCorrect)};
|
|
asc_docs_api.prototype.asc_GetSelectedText=function(){var oPresentation=this.WordControl&&this.WordControl.m_oLogicDocument;if(oPresentation)return oPresentation.GetSelectedText(true);return""};asc_docs_api.prototype.Begin_CompositeInput=function(){if(this.WordControl.m_oLogicDocument)return this.WordControl.m_oLogicDocument.Begin_CompositeInput();return null};asc_docs_api.prototype.Add_CompositeText=function(nCharCode){if(this.WordControl.m_oLogicDocument)return this.WordControl.m_oLogicDocument.Add_CompositeText(nCharCode);
|
|
return null};asc_docs_api.prototype.Remove_CompositeText=function(nCount){if(this.WordControl.m_oLogicDocument)return this.WordControl.m_oLogicDocument.Remove_CompositeText(nCount);return null};asc_docs_api.prototype.Replace_CompositeText=function(arrCharCodes){if(this.WordControl.m_oLogicDocument)return this.WordControl.m_oLogicDocument.Replace_CompositeText(arrCharCodes);return null};asc_docs_api.prototype.Set_CursorPosInCompositeText=function(nPos){if(this.WordControl.m_oLogicDocument)return this.WordControl.m_oLogicDocument.Set_CursorPosInCompositeText(nPos);
|
|
return null};asc_docs_api.prototype.Get_CursorPosInCompositeText=function(){if(this.WordControl.m_oLogicDocument)return this.WordControl.m_oLogicDocument.Get_CursorPosInCompositeText();return 0};asc_docs_api.prototype.End_CompositeInput=function(){if(this.WordControl.m_oLogicDocument)return this.WordControl.m_oLogicDocument.End_CompositeInput();return null};asc_docs_api.prototype.Get_MaxCursorPosInCompositeText=function(){if(this.WordControl.m_oLogicDocument)return this.WordControl.m_oLogicDocument.Get_MaxCursorPosInCompositeText();
|
|
return 0};asc_docs_api.prototype.Input_UpdatePos=function(){if(this.WordControl.m_oLogicDocument)this.WordControl.m_oDrawingDocument.MoveTargetInInputContext()};asc_docs_api.prototype.onKeyDown=function(e){return this.WordControl.onKeyDown(e)};asc_docs_api.prototype.onKeyPress=function(e){return this.WordControl.onKeyPress(e)};asc_docs_api.prototype.onKeyUp=function(e){return this.WordControl.onKeyUp(e)};asc_docs_api.prototype.getAddedTextOnKeyDown=function(e){var oLogicDocument=this.WordControl.m_oLogicDocument;
|
|
if(!oLogicDocument)return[];return oLogicDocument.GetAddedTextOnKeyDown(e)};window["asc_docs_api"]=asc_docs_api;window["asc_docs_api"].prototype["asc_nativeOpenFile"]=function(base64File,version){this.SpellCheckUrl="";this.User=new AscCommon.asc_CUser;this.User.setId("TM");this.User.setUserName("native");this.WordControl.m_bIsRuler=false;this.WordControl.Init();this.InitEditor();g_oIdCounter.Set_Load(true);var _loader=new AscCommon.BinaryPPTYLoader;_loader.Api=this;_loader.Load(base64File,this.WordControl.m_oLogicDocument);
|
|
this.LoadedObject=1;g_oIdCounter.Set_Load(false)};window["asc_docs_api"].prototype["asc_nativeCalculateFile"]=function(){this.bNoSendComments=false;this.ShowParaMarks=false;var presentation=this.WordControl.m_oLogicDocument;if(presentation){presentation.Recalculate({Drawings:{All:true,Map:{}}});presentation.DrawingDocument.OnEndRecalculate()}};window["asc_docs_api"].prototype["asc_nativeApplyChanges"]=function(changes){var _len=changes.length;for(var i=0;i<_len;i++){var Changes=new AscCommon.CCollaborativeChanges;
|
|
Changes.Set_Data(changes[i]);AscCommon.CollaborativeEditing.Add_Changes(Changes)}AscCommon.CollaborativeEditing.Apply_OtherChanges()};window["asc_docs_api"].prototype["asc_nativeApplyChanges2"]=function(data,isFull){g_oIdCounter.Set_Load(true);var stream=new AscCommon.FT_Stream2(data,data.length);stream.obj=null;var Loader={Reader:stream,Reader2:null};var _color=new AscCommonWord.CDocumentColor(191,255,199);var _count=Loader.Reader.GetLong();var _pos=4;for(var i=0;i<_count;i++){if(window["NATIVE_EDITOR_ENJINE"]===
|
|
true&&window["native"]["CheckNextChange"])if(!window["native"]["CheckNextChange"]())break;var nChangeLen=stream.GetLong();_pos+=4;stream.size=_pos+nChangeLen;var ClassId=stream.GetString2();var Class=AscCommon.g_oTableId.Get_ById(ClassId);var nReaderPos=stream.GetCurPos();var nChangeType=stream.GetLong();if(Class){var fChangesClass=AscDFH.changesFactory[nChangeType];if(fChangesClass){var oChange=new fChangesClass(Class);oChange.ReadFromBinary(stream);if(true===AscCommon.CollaborativeEditing.private_AddOverallChange(oChange,
|
|
false))oChange.Load(_color)}else{AscCommon.CollaborativeEditing.private_AddOverallChange(data,false);stream.Seek(nReaderPos);stream.Seek2(nReaderPos);Class.Load_Changes(stream,null,_color)}}_pos+=nChangeLen;stream.Seek2(_pos);stream.size=data.length}if(isFull){AscCommon.CollaborativeEditing.m_aChanges=[];AscCommon.CollaborativeEditing.Apply_LinkData();AscCommon.CollaborativeEditing.Check_MergeData();AscCommon.CollaborativeEditing.OnEnd_ReadForeignChanges();if(window["NATIVE_EDITOR_ENJINE"]===true&&
|
|
window["native"]["AddImageInChanges"]){var _new_images=AscCommon.CollaborativeEditing.m_aNewImages;var _new_images_len=_new_images.length;for(var nImage=0;nImage<_new_images_len;nImage++)window["native"]["AddImageInChanges"](_new_images[nImage])}}g_oIdCounter.Set_Load(false)};window["asc_docs_api"].prototype["asc_nativeGetFile"]=function(){var writer=new AscCommon.CBinaryFileWriter;this.WordControl.m_oLogicDocument.CalculateComments();return writer.WriteDocument(this.WordControl.m_oLogicDocument)};
|
|
window["asc_docs_api"].prototype.asc_nativeGetFile3=function(){var writer=new AscCommon.CBinaryFileWriter;this.WordControl.m_oLogicDocument.CalculateComments();return{data:writer.WriteDocument3(this.WordControl.m_oLogicDocument,true),header:"PPTY;v10;"+writer.pos+";"}};window["asc_docs_api"].prototype["asc_nativeGetFileData"]=function(){var writer=new AscCommon.CBinaryFileWriter;this.WordControl.m_oLogicDocument.CalculateComments();writer.WriteDocument3(this.WordControl.m_oLogicDocument);var _header=
|
|
"PPTY;v10;"+writer.pos+";";window["native"]["Save_End"](_header,writer.pos);return writer.ImData.data};window["asc_docs_api"].prototype["asc_nativeCalculate"]=function(){};window["asc_docs_api"].prototype["asc_nativePrint"]=function(_printer,_page,_options){if(undefined===_printer&&_page===undefined){if(undefined!==window["AscDesktopEditor"]){var isSelection=_options&&_options["printOptions"]&&_options["printOptions"]["selection"]?true:false;var _drawing_document=this.WordControl.m_oDrawingDocument;
|
|
var pagescount=_drawing_document.SlidesCount;if(isSelection)pagescount=this.WordControl.Thumbnails.GetSelectedArray().length;window["AscDesktopEditor"]["Print_Start"](this.DocumentUrl,pagescount,this.ThemeLoader.ThemesUrl,this.getCurrentPage());var oDocRenderer=new AscCommon.CDocumentRenderer;oDocRenderer.InitPicker(AscCommon.g_oTextMeasurer.m_oManager);oDocRenderer.VectorMemoryForPrint=new AscCommon.CMemory;var bOldShowMarks=this.ShowParaMarks;this.ShowParaMarks=false;oDocRenderer.IsNoDrawingEmptyPlaceholder=
|
|
true;pagescount=_drawing_document.SlidesCount;for(var i=0;i<pagescount;i++){if(isSelection&&!this.WordControl.Thumbnails.isSelectedPage(i))continue;oDocRenderer.Memory.Seek(0);oDocRenderer.VectorMemoryForPrint.ClearNoAttack();oDocRenderer.BeginPage(_drawing_document.m_oLogicDocument.GetWidthMM(),_drawing_document.m_oLogicDocument.GetHeightMM());this.WordControl.m_oLogicDocument.DrawPage(i,oDocRenderer);oDocRenderer.EndPage();window["AscDesktopEditor"]["Print_Page"](oDocRenderer.Memory.GetBase64Memory(),
|
|
_drawing_document.m_oLogicDocument.GetWidthMM(),_drawing_document.m_oLogicDocument.GetHeightMM())}if(0==pagescount){oDocRenderer.BeginPage(_drawing_document.m_oLogicDocument.GetWidthMM(),_drawing_document.m_oLogicDocument.GetHeightMM());oDocRenderer.EndPage();window["AscDesktopEditor"]["Print_Page"](oDocRenderer.Memory.GetBase64Memory())}this.ShowParaMarks=bOldShowMarks;window["AscDesktopEditor"]["Print_End"]()}return}var _logic_doc=this.WordControl.m_oLogicDocument;_printer.BeginPage(_logic_doc.GetWidthMM(),
|
|
_logic_doc.GetHeightMM());_logic_doc.DrawPage(_page,_printer);_printer.EndPage()};window["asc_docs_api"].prototype["asc_nativePrintPagesCount"]=function(){return this.WordControl.m_oDrawingDocument.SlidesCount};window["asc_docs_api"].prototype["asc_nativeGetPDF"]=function(options){var pagescount=this["asc_nativePrintPagesCount"]();if(options&&options["printOptions"]&&options["printOptions"]["onlyFirstPage"])pagescount=1;var _renderer=new AscCommon.CDocumentRenderer;_renderer.InitPicker(AscCommon.g_oTextMeasurer.m_oManager);
|
|
_renderer.VectorMemoryForPrint=new AscCommon.CMemory;var _bOldShowMarks=this.ShowParaMarks;this.ShowParaMarks=false;_renderer.IsNoDrawingEmptyPlaceholder=true;for(var i=0;i<pagescount;i++)this["asc_nativePrint"](_renderer,i,options);this.ShowParaMarks=_bOldShowMarks;window["native"]["Save_End"]("",_renderer.Memory.GetCurPosition());return _renderer.Memory.data};window["asc_docs_api"].prototype["asc_nativeGetThemeThumbnail"]=function(params){if(!this.WordControl.m_oLogicDocument||!this.WordControl.m_oLogicDocument.slideMasters||
|
|
!this.WordControl.m_oLogicDocument.slideMasters[0]||!this.WordControl.m_oLogicDocument.slideMasters[0].Theme)return null;var _pres=this.WordControl.m_oLogicDocument;var _master=this.WordControl.m_oLogicDocument.slideMasters[0];var _renderer=new AscCommon.CDocumentRenderer;_renderer.InitPicker(AscCommon.g_oTextMeasurer.m_oManager);_renderer.VectorMemoryForPrint=new AscCommon.CMemory;var _bOldShowMarks=this.ShowParaMarks;this.ShowParaMarks=false;_renderer.IsNoDrawingEmptyPlaceholder=true;var pxW=AscCommon.GlobalSkin.THEMES_THUMBNAIL_WIDTH;
|
|
if(params&¶ms.length&¶ms[0])pxW=params[0];var pxH=AscCommon.GlobalSkin.THEMES_THUMBNAIL_HEIGHT;if(params&¶ms.length&¶ms[1])pxH=params[1];var mmW=pxW*AscCommon.g_dKoef_pix_to_mm;var mmH=pxH*AscCommon.g_dKoef_pix_to_mm;_renderer.BeginPage(mmW,mmH);this.WordControl.m_oMasterDrawer.WidthMM=mmW;this.WordControl.m_oMasterDrawer.HeightMM=mmH;this.WordControl.m_oMasterDrawer.WidthPx=pxW;this.WordControl.m_oMasterDrawer.HeightPx=pxH;this.WordControl.m_oMasterDrawer.Draw2(_renderer,_master,
|
|
undefined,undefined,params);_renderer.EndPage();this.ShowParaMarks=_bOldShowMarks;var objectRet={};objectRet["name"]=_master.Theme.name;objectRet["data"]=_renderer.Memory.data;objectRet["dataLen"]=_renderer.Memory.GetCurPosition();return objectRet};asc_docs_api.prototype.asc_OnHideContextMenu=function(){if(this.WordControl.MobileTouchManager){this.WordControl.checkBodyOffset();this.WordControl.MobileTouchManager.showKeyboard()}};asc_docs_api.prototype.asc_OnShowContextMenu=function(){if(this.WordControl.MobileTouchManager)this.WordControl.checkBodyOffset()};
|
|
asc_docs_api.prototype.getDefaultFontFamily=function(){var defaultFont="Arial";return defaultFont};asc_docs_api.prototype.getDefaultFontSize=function(){var defaultSize=11;return defaultSize};asc_docs_api.prototype.asc_getAppProps=function(){return this.WordControl&&this.WordControl.m_oLogicDocument&&this.WordControl.m_oLogicDocument.App||null};asc_docs_api.prototype.getInternalCoreProps=function(){return this.WordControl&&this.WordControl.m_oLogicDocument&&this.WordControl.m_oLogicDocument.Core};
|
|
asc_docs_api.prototype.asc_setCoreProps=function(oProps){var oCore=this.getInternalCoreProps();if(!oCore)return;var oLogicDocument=this.WordControl.m_oLogicDocument;if(false===oLogicDocument.Document_Is_SelectionLocked(AscCommon.changestype_CorePr,null)){oLogicDocument.StartAction(AscDFH.historydescription_SetCoreproperties);oCore.setProps(oProps);oLogicDocument.FinalizeAction(true);this.WordControl.m_oLogicDocument.Document_UpdateInterfaceState()}};asc_docs_api.prototype.asc_Remove=function(){var oPresentation=
|
|
this.WordControl&&this.WordControl.m_oLogicDocument;if(oPresentation){var oController=oPresentation.GetCurrentController();if(oController){oController.resetChartElementsSelection();AscCommon.baseEditorsApi.prototype.asc_Remove.call(this)}}};asc_docs_api.prototype.onUpdateRestrictions=function(){if(!this.WordControl||!this.WordControl.m_oLogicDocument||!this.WordControl.m_oDrawingDocument)return;var logicDocument=this.WordControl.m_oLogicDocument;var slide=logicDocument.CurPage>=0?logicDocument.Slides[logicDocument.CurPage]:
|
|
null;if(slide)if(this.WordControl.m_oDrawingDocument.placeholders)this.WordControl.m_oDrawingDocument.placeholders.update(slide.getPlaceholdersControls());if(this.isRestrictionSignatures()&&!AscCommon.History.Have_Changes()){AscCommon.History.Clear();logicDocument.Document_UpdateInterfaceState()}};asc_docs_api.prototype.isShowShapeAdjustments=function(){return this.canEdit()};asc_docs_api.prototype.isShowTableAdjustments=function(){return this.canEdit()};asc_docs_api.prototype.isShowEquationTrack=
|
|
function(){return this.canEdit()};asc_docs_api.prototype.SetDrawImagePreviewBulletForMenu=function(id,type){if(this.WordControl.m_oDrawingDocument)this.WordControl.m_oDrawingDocument.SetDrawImagePreviewBulletForMenu(id,type)};window["Asc"]=window["Asc"]||{};window["AscCommonSlide"]=window["AscCommonSlide"]||{};window["Asc"]["asc_docs_api"]=asc_docs_api;asc_docs_api.prototype["asc_GetFontThumbnailsPath"]=asc_docs_api.prototype.asc_GetFontThumbnailsPath;asc_docs_api.prototype["pre_Save"]=asc_docs_api.prototype.pre_Save;
|
|
asc_docs_api.prototype["sync_CollaborativeChanges"]=asc_docs_api.prototype.sync_CollaborativeChanges;asc_docs_api.prototype["asc_coAuthoringDisconnect"]=asc_docs_api.prototype.asc_coAuthoringDisconnect;asc_docs_api.prototype["asc_coAuthoringChatSendMessage"]=asc_docs_api.prototype.asc_coAuthoringChatSendMessage;asc_docs_api.prototype["asc_coAuthoringChatGetMessages"]=asc_docs_api.prototype.asc_coAuthoringChatGetMessages;asc_docs_api.prototype["asc_coAuthoringGetUsers"]=asc_docs_api.prototype.asc_coAuthoringGetUsers;
|
|
asc_docs_api.prototype["syncCollaborativeChanges"]=asc_docs_api.prototype.syncCollaborativeChanges;asc_docs_api.prototype["SetCollaborativeMarksShowType"]=asc_docs_api.prototype.SetCollaborativeMarksShowType;asc_docs_api.prototype["GetCollaborativeMarksShowType"]=asc_docs_api.prototype.GetCollaborativeMarksShowType;asc_docs_api.prototype["Clear_CollaborativeMarks"]=asc_docs_api.prototype.Clear_CollaborativeMarks;asc_docs_api.prototype["_onUpdateDocumentCanSave"]=asc_docs_api.prototype._onUpdateDocumentCanSave;
|
|
asc_docs_api.prototype["SetUnchangedDocument"]=asc_docs_api.prototype.SetUnchangedDocument;asc_docs_api.prototype["SetDocumentModified"]=asc_docs_api.prototype.SetDocumentModified;asc_docs_api.prototype["isDocumentModified"]=asc_docs_api.prototype.isDocumentModified;asc_docs_api.prototype["asc_isDocumentCanSave"]=asc_docs_api.prototype.asc_isDocumentCanSave;asc_docs_api.prototype["asc_getCanUndo"]=asc_docs_api.prototype.asc_getCanUndo;asc_docs_api.prototype["asc_getCanRedo"]=asc_docs_api.prototype.asc_getCanRedo;
|
|
asc_docs_api.prototype["sync_BeginCatchSelectedElements"]=asc_docs_api.prototype.sync_BeginCatchSelectedElements;asc_docs_api.prototype["sync_EndCatchSelectedElements"]=asc_docs_api.prototype.sync_EndCatchSelectedElements;asc_docs_api.prototype["getSelectedElements"]=asc_docs_api.prototype.getSelectedElements;asc_docs_api.prototype["sync_ChangeLastSelectedElement"]=asc_docs_api.prototype.sync_ChangeLastSelectedElement;asc_docs_api.prototype["asc_getEditorPermissions"]=asc_docs_api.prototype.asc_getEditorPermissions;
|
|
asc_docs_api.prototype["asc_setDocInfo"]=asc_docs_api.prototype.asc_setDocInfo;asc_docs_api.prototype["asc_changeDocInfo"]=asc_docs_api.prototype.asc_changeDocInfo;asc_docs_api.prototype["asc_setLocale"]=asc_docs_api.prototype.asc_setLocale;asc_docs_api.prototype["asc_getLocale"]=asc_docs_api.prototype.asc_getLocale;asc_docs_api.prototype["asc_LoadDocument"]=asc_docs_api.prototype.asc_LoadDocument;asc_docs_api.prototype["SetThemesPath"]=asc_docs_api.prototype.SetThemesPath;asc_docs_api.prototype["InitEditor"]=
|
|
asc_docs_api.prototype.InitEditor;asc_docs_api.prototype["SetInterfaceDrawImagePlaceSlide"]=asc_docs_api.prototype.SetInterfaceDrawImagePlaceSlide;asc_docs_api.prototype["SetInterfaceDrawImagePlaceTextArt"]=asc_docs_api.prototype.SetInterfaceDrawImagePlaceTextArt;asc_docs_api.prototype["OpenDocument2"]=asc_docs_api.prototype.OpenDocument2;asc_docs_api.prototype["asc_getDocumentName"]=asc_docs_api.prototype.asc_getDocumentName;asc_docs_api.prototype["asc_getAppProps"]=asc_docs_api.prototype.asc_getAppProps;
|
|
asc_docs_api.prototype["asc_getCoreProps"]=asc_docs_api.prototype.asc_getCoreProps;asc_docs_api.prototype["asc_setCoreProps"]=asc_docs_api.prototype.asc_setCoreProps;asc_docs_api.prototype["asc_registerCallback"]=asc_docs_api.prototype.asc_registerCallback;asc_docs_api.prototype["asc_unregisterCallback"]=asc_docs_api.prototype.asc_unregisterCallback;asc_docs_api.prototype["asc_checkNeedCallback"]=asc_docs_api.prototype.asc_checkNeedCallback;asc_docs_api.prototype["get_TextProps"]=asc_docs_api.prototype.get_TextProps;
|
|
asc_docs_api.prototype["asc_getPropertyEditorShapes"]=asc_docs_api.prototype.asc_getPropertyEditorShapes;asc_docs_api.prototype["asc_getPropertyEditorTextArts"]=asc_docs_api.prototype.asc_getPropertyEditorTextArts;asc_docs_api.prototype["get_PropertyEditorThemes"]=asc_docs_api.prototype.get_PropertyEditorThemes;asc_docs_api.prototype["get_ContentCount"]=asc_docs_api.prototype.get_ContentCount;asc_docs_api.prototype["UpdateTextPr"]=asc_docs_api.prototype.UpdateTextPr;asc_docs_api.prototype["sync_TextSpacing"]=
|
|
asc_docs_api.prototype.sync_TextSpacing;asc_docs_api.prototype["sync_TextDStrikeout"]=asc_docs_api.prototype.sync_TextDStrikeout;asc_docs_api.prototype["sync_TextCaps"]=asc_docs_api.prototype.sync_TextCaps;asc_docs_api.prototype["sync_TextSmallCaps"]=asc_docs_api.prototype.sync_TextSmallCaps;asc_docs_api.prototype["sync_TextPosition"]=asc_docs_api.prototype.sync_TextPosition;asc_docs_api.prototype["sync_TextLangCallBack"]=asc_docs_api.prototype.sync_TextLangCallBack;asc_docs_api.prototype["sync_VerticalTextAlign"]=
|
|
asc_docs_api.prototype.sync_VerticalTextAlign;asc_docs_api.prototype["sync_Vert"]=asc_docs_api.prototype.sync_Vert;asc_docs_api.prototype["UpdateParagraphProp"]=asc_docs_api.prototype.UpdateParagraphProp;asc_docs_api.prototype["Undo"]=asc_docs_api.prototype.Undo;asc_docs_api.prototype["Redo"]=asc_docs_api.prototype.Redo;asc_docs_api.prototype["Copy"]=asc_docs_api.prototype.Copy;asc_docs_api.prototype["Update_ParaTab"]=asc_docs_api.prototype.Update_ParaTab;asc_docs_api.prototype["Cut"]=asc_docs_api.prototype.Cut;
|
|
asc_docs_api.prototype["Paste"]=asc_docs_api.prototype.Paste;asc_docs_api.prototype["Share"]=asc_docs_api.prototype.Share;asc_docs_api.prototype["asc_Save"]=asc_docs_api.prototype.asc_Save;asc_docs_api.prototype["forceSave"]=asc_docs_api.prototype.forceSave;asc_docs_api.prototype["asc_setIsForceSaveOnUserSave"]=asc_docs_api.prototype.asc_setIsForceSaveOnUserSave;asc_docs_api.prototype["asc_DownloadAs"]=asc_docs_api.prototype.asc_DownloadAs;asc_docs_api.prototype["Resize"]=asc_docs_api.prototype.Resize;
|
|
asc_docs_api.prototype["AddURL"]=asc_docs_api.prototype.AddURL;asc_docs_api.prototype["Help"]=asc_docs_api.prototype.Help;asc_docs_api.prototype["startGetDocInfo"]=asc_docs_api.prototype.startGetDocInfo;asc_docs_api.prototype["asc_setAdvancedOptions"]=asc_docs_api.prototype.asc_setAdvancedOptions;asc_docs_api.prototype["SetFontRenderingMode"]=asc_docs_api.prototype.SetFontRenderingMode;asc_docs_api.prototype["stopGetDocInfo"]=asc_docs_api.prototype.stopGetDocInfo;asc_docs_api.prototype["sync_DocInfoCallback"]=
|
|
asc_docs_api.prototype.sync_DocInfoCallback;asc_docs_api.prototype["sync_GetDocInfoStartCallback"]=asc_docs_api.prototype.sync_GetDocInfoStartCallback;asc_docs_api.prototype["sync_GetDocInfoStopCallback"]=asc_docs_api.prototype.sync_GetDocInfoStopCallback;asc_docs_api.prototype["sync_GetDocInfoEndCallback"]=asc_docs_api.prototype.sync_GetDocInfoEndCallback;asc_docs_api.prototype["sync_CanUndoCallback"]=asc_docs_api.prototype.sync_CanUndoCallback;asc_docs_api.prototype["sync_CanRedoCallback"]=asc_docs_api.prototype.sync_CanRedoCallback;
|
|
asc_docs_api.prototype["sync_CursorLockCallBack"]=asc_docs_api.prototype.sync_CursorLockCallBack;asc_docs_api.prototype["sync_UndoCallBack"]=asc_docs_api.prototype.sync_UndoCallBack;asc_docs_api.prototype["sync_RedoCallBack"]=asc_docs_api.prototype.sync_RedoCallBack;asc_docs_api.prototype["sync_CopyCallBack"]=asc_docs_api.prototype.sync_CopyCallBack;asc_docs_api.prototype["sync_CutCallBack"]=asc_docs_api.prototype.sync_CutCallBack;asc_docs_api.prototype["sync_PasteCallBack"]=asc_docs_api.prototype.sync_PasteCallBack;
|
|
asc_docs_api.prototype["sync_ShareCallBack"]=asc_docs_api.prototype.sync_ShareCallBack;asc_docs_api.prototype["sync_SaveCallBack"]=asc_docs_api.prototype.sync_SaveCallBack;asc_docs_api.prototype["sync_DownloadAsCallBack"]=asc_docs_api.prototype.sync_DownloadAsCallBack;asc_docs_api.prototype["sync_StartAction"]=asc_docs_api.prototype.sync_StartAction;asc_docs_api.prototype["sync_EndAction"]=asc_docs_api.prototype.sync_EndAction;asc_docs_api.prototype["sync_AddURLCallback"]=asc_docs_api.prototype.sync_AddURLCallback;
|
|
asc_docs_api.prototype["sync_ErrorCallback"]=asc_docs_api.prototype.sync_ErrorCallback;asc_docs_api.prototype["sync_HelpCallback"]=asc_docs_api.prototype.sync_HelpCallback;asc_docs_api.prototype["sync_UpdateZoom"]=asc_docs_api.prototype.sync_UpdateZoom;asc_docs_api.prototype["ClearPropObjCallback"]=asc_docs_api.prototype.ClearPropObjCallback;asc_docs_api.prototype["CollectHeaders"]=asc_docs_api.prototype.CollectHeaders;asc_docs_api.prototype["GetActiveHeader"]=asc_docs_api.prototype.GetActiveHeader;
|
|
asc_docs_api.prototype["sync_ChangeActiveHeaderCallback"]=asc_docs_api.prototype.sync_ChangeActiveHeaderCallback;asc_docs_api.prototype["sync_ReturnHeadersCallback"]=asc_docs_api.prototype.sync_ReturnHeadersCallback;asc_docs_api.prototype["startSearchText"]=asc_docs_api.prototype.startSearchText;asc_docs_api.prototype["goToNextSearchResult"]=asc_docs_api.prototype.goToNextSearchResult;asc_docs_api.prototype["gotoSearchResultText"]=asc_docs_api.prototype.gotoSearchResultText;asc_docs_api.prototype["stopSearchText"]=
|
|
asc_docs_api.prototype.stopSearchText;asc_docs_api.prototype["findText"]=asc_docs_api.prototype.findText;asc_docs_api.prototype["asc_searchEnabled"]=asc_docs_api.prototype.asc_searchEnabled;asc_docs_api.prototype["asc_findText"]=asc_docs_api.prototype.asc_findText;asc_docs_api.prototype["asc_replaceText"]=asc_docs_api.prototype.asc_replaceText;asc_docs_api.prototype["sync_SearchFoundCallback"]=asc_docs_api.prototype.sync_SearchFoundCallback;asc_docs_api.prototype["sync_SearchStartCallback"]=asc_docs_api.prototype.sync_SearchStartCallback;
|
|
asc_docs_api.prototype["sync_SearchStopCallback"]=asc_docs_api.prototype.sync_SearchStopCallback;asc_docs_api.prototype["sync_SearchEndCallback"]=asc_docs_api.prototype.sync_SearchEndCallback;asc_docs_api.prototype["put_TextPrFontName"]=asc_docs_api.prototype.put_TextPrFontName;asc_docs_api.prototype["put_TextPrFontSize"]=asc_docs_api.prototype.put_TextPrFontSize;asc_docs_api.prototype["put_TextPrLang"]=asc_docs_api.prototype.put_TextPrLang;asc_docs_api.prototype["put_TextPrBold"]=asc_docs_api.prototype.put_TextPrBold;
|
|
asc_docs_api.prototype["put_TextPrItalic"]=asc_docs_api.prototype.put_TextPrItalic;asc_docs_api.prototype["put_TextPrUnderline"]=asc_docs_api.prototype.put_TextPrUnderline;asc_docs_api.prototype["put_TextPrStrikeout"]=asc_docs_api.prototype.put_TextPrStrikeout;asc_docs_api.prototype["put_PrLineSpacing"]=asc_docs_api.prototype.put_PrLineSpacing;asc_docs_api.prototype["put_LineSpacingBeforeAfter"]=asc_docs_api.prototype.put_LineSpacingBeforeAfter;asc_docs_api.prototype["FontSizeIn"]=asc_docs_api.prototype.FontSizeIn;
|
|
asc_docs_api.prototype["FontSizeOut"]=asc_docs_api.prototype.FontSizeOut;asc_docs_api.prototype["sync_BoldCallBack"]=asc_docs_api.prototype.sync_BoldCallBack;asc_docs_api.prototype["sync_ItalicCallBack"]=asc_docs_api.prototype.sync_ItalicCallBack;asc_docs_api.prototype["sync_UnderlineCallBack"]=asc_docs_api.prototype.sync_UnderlineCallBack;asc_docs_api.prototype["sync_StrikeoutCallBack"]=asc_docs_api.prototype.sync_StrikeoutCallBack;asc_docs_api.prototype["sync_TextPrFontFamilyCallBack"]=asc_docs_api.prototype.sync_TextPrFontFamilyCallBack;
|
|
asc_docs_api.prototype["sync_TextPrFontSizeCallBack"]=asc_docs_api.prototype.sync_TextPrFontSizeCallBack;asc_docs_api.prototype["sync_PrLineSpacingCallBack"]=asc_docs_api.prototype.sync_PrLineSpacingCallBack;asc_docs_api.prototype["sync_InitEditorThemes"]=asc_docs_api.prototype.sync_InitEditorThemes;asc_docs_api.prototype["paraApply"]=asc_docs_api.prototype.paraApply;asc_docs_api.prototype["put_PrAlign"]=asc_docs_api.prototype.put_PrAlign;asc_docs_api.prototype["put_TextPrBaseline"]=asc_docs_api.prototype.put_TextPrBaseline;
|
|
asc_docs_api.prototype["put_ListType"]=asc_docs_api.prototype.put_ListType;asc_docs_api.prototype["put_ShowSnapLines"]=asc_docs_api.prototype.put_ShowSnapLines;asc_docs_api.prototype["get_ShowSnapLines"]=asc_docs_api.prototype.get_ShowSnapLines;asc_docs_api.prototype["put_ShowParaMarks"]=asc_docs_api.prototype.put_ShowParaMarks;asc_docs_api.prototype["get_ShowParaMarks"]=asc_docs_api.prototype.get_ShowParaMarks;asc_docs_api.prototype["put_ShowTableEmptyLine"]=asc_docs_api.prototype.put_ShowTableEmptyLine;
|
|
asc_docs_api.prototype["get_ShowTableEmptyLine"]=asc_docs_api.prototype.get_ShowTableEmptyLine;asc_docs_api.prototype["ShapeApply"]=asc_docs_api.prototype.ShapeApply;asc_docs_api.prototype["setStartPointHistory"]=asc_docs_api.prototype.setStartPointHistory;asc_docs_api.prototype["setEndPointHistory"]=asc_docs_api.prototype.setEndPointHistory;asc_docs_api.prototype["SetSlideProps"]=asc_docs_api.prototype.SetSlideProps;asc_docs_api.prototype["put_LineCap"]=asc_docs_api.prototype.put_LineCap;asc_docs_api.prototype["put_LineJoin"]=
|
|
asc_docs_api.prototype.put_LineJoin;asc_docs_api.prototype["put_LineBeginStyle"]=asc_docs_api.prototype.put_LineBeginStyle;asc_docs_api.prototype["put_LineBeginSize"]=asc_docs_api.prototype.put_LineBeginSize;asc_docs_api.prototype["put_LineEndStyle"]=asc_docs_api.prototype.put_LineEndStyle;asc_docs_api.prototype["put_LineEndSize"]=asc_docs_api.prototype.put_LineEndSize;asc_docs_api.prototype["put_TextColor2"]=asc_docs_api.prototype.put_TextColor2;asc_docs_api.prototype["put_TextColor"]=asc_docs_api.prototype.put_TextColor;
|
|
asc_docs_api.prototype["put_PrIndent"]=asc_docs_api.prototype.put_PrIndent;asc_docs_api.prototype["IncreaseIndent"]=asc_docs_api.prototype.IncreaseIndent;asc_docs_api.prototype["DecreaseIndent"]=asc_docs_api.prototype.DecreaseIndent;asc_docs_api.prototype["put_PrIndentRight"]=asc_docs_api.prototype.put_PrIndentRight;asc_docs_api.prototype["put_PrFirstLineIndent"]=asc_docs_api.prototype.put_PrFirstLineIndent;asc_docs_api.prototype["getFocusObject"]=asc_docs_api.prototype.getFocusObject;asc_docs_api.prototype["sync_VerticalAlign"]=
|
|
asc_docs_api.prototype.sync_VerticalAlign;asc_docs_api.prototype["sync_PrAlignCallBack"]=asc_docs_api.prototype.sync_PrAlignCallBack;asc_docs_api.prototype["sync_ListType"]=asc_docs_api.prototype.sync_ListType;asc_docs_api.prototype["sync_TextColor"]=asc_docs_api.prototype.sync_TextColor;asc_docs_api.prototype["sync_TextColor2"]=asc_docs_api.prototype.sync_TextColor2;asc_docs_api.prototype["sync_TextHighLight"]=asc_docs_api.prototype.sync_TextHighLight;asc_docs_api.prototype["sync_ParaStyleName"]=
|
|
asc_docs_api.prototype.sync_ParaStyleName;asc_docs_api.prototype["sync_ParaSpacingLine"]=asc_docs_api.prototype.sync_ParaSpacingLine;asc_docs_api.prototype["sync_PageBreakCallback"]=asc_docs_api.prototype.sync_PageBreakCallback;asc_docs_api.prototype["sync_KeepLinesCallback"]=asc_docs_api.prototype.sync_KeepLinesCallback;asc_docs_api.prototype["sync_ShowParaMarksCallback"]=asc_docs_api.prototype.sync_ShowParaMarksCallback;asc_docs_api.prototype["sync_SpaceBetweenPrgCallback"]=asc_docs_api.prototype.sync_SpaceBetweenPrgCallback;
|
|
asc_docs_api.prototype["sync_PrPropCallback"]=asc_docs_api.prototype.sync_PrPropCallback;asc_docs_api.prototype["SetDrawImagePlaceParagraph"]=asc_docs_api.prototype.SetDrawImagePlaceParagraph;asc_docs_api.prototype["put_AddPageBreak"]=asc_docs_api.prototype.put_AddPageBreak;asc_docs_api.prototype["Update_ParaInd"]=asc_docs_api.prototype.Update_ParaInd;asc_docs_api.prototype["Internal_Update_Ind_FirstLine"]=asc_docs_api.prototype.Internal_Update_Ind_FirstLine;asc_docs_api.prototype["Internal_Update_Ind_Left"]=
|
|
asc_docs_api.prototype.Internal_Update_Ind_Left;asc_docs_api.prototype["Internal_Update_Ind_Right"]=asc_docs_api.prototype.Internal_Update_Ind_Right;asc_docs_api.prototype["put_Table"]=asc_docs_api.prototype.put_Table;asc_docs_api.prototype["addRowAbove"]=asc_docs_api.prototype.addRowAbove;asc_docs_api.prototype["addRowBelow"]=asc_docs_api.prototype.addRowBelow;asc_docs_api.prototype["addColumnLeft"]=asc_docs_api.prototype.addColumnLeft;asc_docs_api.prototype["addColumnRight"]=asc_docs_api.prototype.addColumnRight;
|
|
asc_docs_api.prototype["remRow"]=asc_docs_api.prototype.remRow;asc_docs_api.prototype["remColumn"]=asc_docs_api.prototype.remColumn;asc_docs_api.prototype["remTable"]=asc_docs_api.prototype.remTable;asc_docs_api.prototype["asc_DistributeTableCells"]=asc_docs_api.prototype.asc_DistributeTableCells;asc_docs_api.prototype["selectRow"]=asc_docs_api.prototype.selectRow;asc_docs_api.prototype["selectColumn"]=asc_docs_api.prototype.selectColumn;asc_docs_api.prototype["selectCell"]=asc_docs_api.prototype.selectCell;
|
|
asc_docs_api.prototype["selectTable"]=asc_docs_api.prototype.selectTable;asc_docs_api.prototype["setColumnWidth"]=asc_docs_api.prototype.setColumnWidth;asc_docs_api.prototype["setRowHeight"]=asc_docs_api.prototype.setRowHeight;asc_docs_api.prototype["set_TblDistanceFromText"]=asc_docs_api.prototype.set_TblDistanceFromText;asc_docs_api.prototype["CheckBeforeMergeCells"]=asc_docs_api.prototype.CheckBeforeMergeCells;asc_docs_api.prototype["CheckBeforeSplitCells"]=asc_docs_api.prototype.CheckBeforeSplitCells;
|
|
asc_docs_api.prototype["MergeCells"]=asc_docs_api.prototype.MergeCells;asc_docs_api.prototype["SplitCell"]=asc_docs_api.prototype.SplitCell;asc_docs_api.prototype["widthTable"]=asc_docs_api.prototype.widthTable;asc_docs_api.prototype["put_CellsMargin"]=asc_docs_api.prototype.put_CellsMargin;asc_docs_api.prototype["set_TblWrap"]=asc_docs_api.prototype.set_TblWrap;asc_docs_api.prototype["set_TblIndentLeft"]=asc_docs_api.prototype.set_TblIndentLeft;asc_docs_api.prototype["set_Borders"]=asc_docs_api.prototype.set_Borders;
|
|
asc_docs_api.prototype["set_TableBackground"]=asc_docs_api.prototype.set_TableBackground;asc_docs_api.prototype["set_AlignCell"]=asc_docs_api.prototype.set_AlignCell;asc_docs_api.prototype["set_TblAlign"]=asc_docs_api.prototype.set_TblAlign;asc_docs_api.prototype["set_SpacingBetweenCells"]=asc_docs_api.prototype.set_SpacingBetweenCells;asc_docs_api.prototype["tblApply"]=asc_docs_api.prototype.tblApply;asc_docs_api.prototype["sync_AddTableCallback"]=asc_docs_api.prototype.sync_AddTableCallback;asc_docs_api.prototype["sync_AlignCellCallback"]=
|
|
asc_docs_api.prototype.sync_AlignCellCallback;asc_docs_api.prototype["sync_TblPropCallback"]=asc_docs_api.prototype.sync_TblPropCallback;asc_docs_api.prototype["sync_TblWrapStyleChangedCallback"]=asc_docs_api.prototype.sync_TblWrapStyleChangedCallback;asc_docs_api.prototype["sync_TblAlignChangedCallback"]=asc_docs_api.prototype.sync_TblAlignChangedCallback;asc_docs_api.prototype["ChangeImageFromFile"]=asc_docs_api.prototype.ChangeImageFromFile;asc_docs_api.prototype["ChangeShapeImageFromFile"]=asc_docs_api.prototype.ChangeShapeImageFromFile;
|
|
asc_docs_api.prototype["ChangeSlideImageFromFile"]=asc_docs_api.prototype.ChangeSlideImageFromFile;asc_docs_api.prototype["ChangeArtImageFromFile"]=asc_docs_api.prototype.ChangeArtImageFromFile;asc_docs_api.prototype["AddImage"]=asc_docs_api.prototype.AddImage;asc_docs_api.prototype["asc_addImage"]=asc_docs_api.prototype.asc_addImage;asc_docs_api.prototype["asc_AddToLayout"]=asc_docs_api.prototype.asc_AddToLayout;asc_docs_api.prototype["StartAddShape"]=asc_docs_api.prototype.StartAddShape;asc_docs_api.prototype["AddTextArt"]=
|
|
asc_docs_api.prototype.AddTextArt;asc_docs_api.prototype["asc_canEditCrop"]=asc_docs_api.prototype.asc_canEditCrop;asc_docs_api.prototype["asc_startEditCrop"]=asc_docs_api.prototype.asc_startEditCrop;asc_docs_api.prototype["asc_endEditCrop"]=asc_docs_api.prototype.asc_endEditCrop;asc_docs_api.prototype["asc_cropFit"]=asc_docs_api.prototype.asc_cropFit;asc_docs_api.prototype["asc_cropFill"]=asc_docs_api.prototype.asc_cropFill;asc_docs_api.prototype["canGroup"]=asc_docs_api.prototype.canGroup;asc_docs_api.prototype["canUnGroup"]=
|
|
asc_docs_api.prototype.canUnGroup;asc_docs_api.prototype["AddImageUrl"]=asc_docs_api.prototype.AddImageUrl;asc_docs_api.prototype["AddImageUrlActionCallback"]=asc_docs_api.prototype.AddImageUrlActionCallback;asc_docs_api.prototype["AddImageUrlAction"]=asc_docs_api.prototype.AddImageUrlAction;asc_docs_api.prototype["ImgApply"]=asc_docs_api.prototype.ImgApply;asc_docs_api.prototype["ChartApply"]=asc_docs_api.prototype.ChartApply;asc_docs_api.prototype["set_Size"]=asc_docs_api.prototype.set_Size;asc_docs_api.prototype["set_ConstProportions"]=
|
|
asc_docs_api.prototype.set_ConstProportions;asc_docs_api.prototype["set_WrapStyle"]=asc_docs_api.prototype.set_WrapStyle;asc_docs_api.prototype["deleteImage"]=asc_docs_api.prototype.deleteImage;asc_docs_api.prototype["set_ImgDistanceFromText"]=asc_docs_api.prototype.set_ImgDistanceFromText;asc_docs_api.prototype["set_PositionOnPage"]=asc_docs_api.prototype.set_PositionOnPage;asc_docs_api.prototype["get_OriginalSizeImage"]=asc_docs_api.prototype.get_OriginalSizeImage;asc_docs_api.prototype["asc_FitImagesToSlide"]=
|
|
asc_docs_api.prototype.asc_FitImagesToSlide;asc_docs_api.prototype["asc_onCloseChartFrame"]=asc_docs_api.prototype.asc_onCloseChartFrame;asc_docs_api.prototype["sync_AddImageCallback"]=asc_docs_api.prototype.sync_AddImageCallback;asc_docs_api.prototype["sync_ImgPropCallback"]=asc_docs_api.prototype.sync_ImgPropCallback;asc_docs_api.prototype["SetDrawingFreeze"]=asc_docs_api.prototype.SetDrawingFreeze;asc_docs_api.prototype["zoomIn"]=asc_docs_api.prototype.zoomIn;asc_docs_api.prototype["zoomOut"]=
|
|
asc_docs_api.prototype.zoomOut;asc_docs_api.prototype["zoomFitToPage"]=asc_docs_api.prototype.zoomFitToPage;asc_docs_api.prototype["zoomFitToWidth"]=asc_docs_api.prototype.zoomFitToWidth;asc_docs_api.prototype["zoomCustomMode"]=asc_docs_api.prototype.zoomCustomMode;asc_docs_api.prototype["zoom100"]=asc_docs_api.prototype.zoom100;asc_docs_api.prototype["zoom"]=asc_docs_api.prototype.zoom;asc_docs_api.prototype["goToPage"]=asc_docs_api.prototype.goToPage;asc_docs_api.prototype["getCountPages"]=asc_docs_api.prototype.getCountPages;
|
|
asc_docs_api.prototype["getCurrentPage"]=asc_docs_api.prototype.getCurrentPage;asc_docs_api.prototype["sync_countPagesCallback"]=asc_docs_api.prototype.sync_countPagesCallback;asc_docs_api.prototype["sync_currentPageCallback"]=asc_docs_api.prototype.sync_currentPageCallback;asc_docs_api.prototype["sync_SendThemeColors"]=asc_docs_api.prototype.sync_SendThemeColors;asc_docs_api.prototype["ChangeColorScheme"]=asc_docs_api.prototype.ChangeColorScheme;asc_docs_api.prototype["asc_ChangeColorSchemeByIdx"]=
|
|
asc_docs_api.prototype.asc_ChangeColorSchemeByIdx;asc_docs_api.prototype["asc_enableKeyEvents"]=asc_docs_api.prototype.asc_enableKeyEvents;asc_docs_api.prototype["asc_showComments"]=asc_docs_api.prototype.asc_showComments;asc_docs_api.prototype["asc_hideComments"]=asc_docs_api.prototype.asc_hideComments;asc_docs_api.prototype["asc_addComment"]=asc_docs_api.prototype.asc_addComment;asc_docs_api.prototype["asc_getMasterCommentId"]=asc_docs_api.prototype.asc_getMasterCommentId;asc_docs_api.prototype["asc_getAnchorPosition"]=
|
|
asc_docs_api.prototype.asc_getAnchorPosition;asc_docs_api.prototype["asc_removeComment"]=asc_docs_api.prototype.asc_removeComment;asc_docs_api.prototype["asc_RemoveAllComments"]=asc_docs_api.prototype.asc_RemoveAllComments;asc_docs_api.prototype["asc_ResolveAllComments"]=asc_docs_api.prototype.asc_ResolveAllComments;asc_docs_api.prototype["asc_changeComment"]=asc_docs_api.prototype.asc_changeComment;asc_docs_api.prototype["asc_selectComment"]=asc_docs_api.prototype.asc_selectComment;asc_docs_api.prototype["asc_showComment"]=
|
|
asc_docs_api.prototype.asc_showComment;asc_docs_api.prototype["can_AddQuotedComment"]=asc_docs_api.prototype.can_AddQuotedComment;asc_docs_api.prototype["sync_RemoveComment"]=asc_docs_api.prototype.sync_RemoveComment;asc_docs_api.prototype["sync_AddComment"]=asc_docs_api.prototype.sync_AddComment;asc_docs_api.prototype["sync_ShowComment"]=asc_docs_api.prototype.sync_ShowComment;asc_docs_api.prototype["sync_HideComment"]=asc_docs_api.prototype.sync_HideComment;asc_docs_api.prototype["sync_UpdateCommentPosition"]=
|
|
asc_docs_api.prototype.sync_UpdateCommentPosition;asc_docs_api.prototype["sync_ChangeCommentData"]=asc_docs_api.prototype.sync_ChangeCommentData;asc_docs_api.prototype["sync_LockComment"]=asc_docs_api.prototype.sync_LockComment;asc_docs_api.prototype["sync_UnLockComment"]=asc_docs_api.prototype.sync_UnLockComment;asc_docs_api.prototype["GenerateStyles"]=asc_docs_api.prototype.GenerateStyles;asc_docs_api.prototype["asyncFontsDocumentEndLoaded"]=asc_docs_api.prototype.asyncFontsDocumentEndLoaded;asc_docs_api.prototype["asyncFontEndLoaded"]=
|
|
asc_docs_api.prototype.asyncFontEndLoaded;asc_docs_api.prototype["asyncImageEndLoaded"]=asc_docs_api.prototype.asyncImageEndLoaded;asc_docs_api.prototype["get_PresentationWidth"]=asc_docs_api.prototype.get_PresentationWidth;asc_docs_api.prototype["get_PresentationHeight"]=asc_docs_api.prototype.get_PresentationHeight;asc_docs_api.prototype["pre_Paste"]=asc_docs_api.prototype.pre_Paste;asc_docs_api.prototype["initEvents2MobileAdvances"]=asc_docs_api.prototype.initEvents2MobileAdvances;asc_docs_api.prototype["ViewScrollToX"]=
|
|
asc_docs_api.prototype.ViewScrollToX;asc_docs_api.prototype["ViewScrollToY"]=asc_docs_api.prototype.ViewScrollToY;asc_docs_api.prototype["GetDocWidthPx"]=asc_docs_api.prototype.GetDocWidthPx;asc_docs_api.prototype["GetDocHeightPx"]=asc_docs_api.prototype.GetDocHeightPx;asc_docs_api.prototype["ClearSearch"]=asc_docs_api.prototype.ClearSearch;asc_docs_api.prototype["GetCurrentVisiblePage"]=asc_docs_api.prototype.GetCurrentVisiblePage;asc_docs_api.prototype["asc_setAutoSaveGap"]=asc_docs_api.prototype.asc_setAutoSaveGap;
|
|
asc_docs_api.prototype["asc_SetDocumentPlaceChangedEnabled"]=asc_docs_api.prototype.asc_SetDocumentPlaceChangedEnabled;asc_docs_api.prototype["asc_SetViewRulers"]=asc_docs_api.prototype.asc_SetViewRulers;asc_docs_api.prototype["asc_SetViewRulersChange"]=asc_docs_api.prototype.asc_SetViewRulersChange;asc_docs_api.prototype["asc_GetViewRulers"]=asc_docs_api.prototype.asc_GetViewRulers;asc_docs_api.prototype["asc_SetDocumentUnits"]=asc_docs_api.prototype.asc_SetDocumentUnits;asc_docs_api.prototype["changeSlideSize"]=
|
|
asc_docs_api.prototype.changeSlideSize;asc_docs_api.prototype["AddSlide"]=asc_docs_api.prototype.AddSlide;asc_docs_api.prototype["DeleteSlide"]=asc_docs_api.prototype.DeleteSlide;asc_docs_api.prototype["DublicateSlide"]=asc_docs_api.prototype.DublicateSlide;asc_docs_api.prototype["SelectAllSlides"]=asc_docs_api.prototype.SelectAllSlides;asc_docs_api.prototype["AddShape"]=asc_docs_api.prototype.AddShape;asc_docs_api.prototype["ChangeShapeType"]=asc_docs_api.prototype.ChangeShapeType;asc_docs_api.prototype["AddText"]=
|
|
asc_docs_api.prototype.AddText;asc_docs_api.prototype["groupShapes"]=asc_docs_api.prototype.groupShapes;asc_docs_api.prototype["unGroupShapes"]=asc_docs_api.prototype.unGroupShapes;asc_docs_api.prototype["setVerticalAlign"]=asc_docs_api.prototype.setVerticalAlign;asc_docs_api.prototype["setVert"]=asc_docs_api.prototype.setVert;asc_docs_api.prototype["sync_MouseMoveStartCallback"]=asc_docs_api.prototype.sync_MouseMoveStartCallback;asc_docs_api.prototype["sync_MouseMoveEndCallback"]=asc_docs_api.prototype.sync_MouseMoveEndCallback;
|
|
asc_docs_api.prototype["sync_MouseMoveCallback"]=asc_docs_api.prototype.sync_MouseMoveCallback;asc_docs_api.prototype["ShowThumbnails"]=asc_docs_api.prototype.ShowThumbnails;asc_docs_api.prototype["asc_ShowNotes"]=asc_docs_api.prototype.asc_ShowNotes;asc_docs_api.prototype["asc_DeleteVerticalScroll"]=asc_docs_api.prototype.asc_DeleteVerticalScroll;asc_docs_api.prototype["syncOnThumbnailsShow"]=asc_docs_api.prototype.syncOnThumbnailsShow;asc_docs_api.prototype["can_AddHyperlink"]=asc_docs_api.prototype.can_AddHyperlink;
|
|
asc_docs_api.prototype["add_Hyperlink"]=asc_docs_api.prototype.add_Hyperlink;asc_docs_api.prototype["change_Hyperlink"]=asc_docs_api.prototype.change_Hyperlink;asc_docs_api.prototype["remove_Hyperlink"]=asc_docs_api.prototype.remove_Hyperlink;asc_docs_api.prototype["sync_HyperlinkPropCallback"]=asc_docs_api.prototype.sync_HyperlinkPropCallback;asc_docs_api.prototype["sync_HyperlinkClickCallback"]=asc_docs_api.prototype.sync_HyperlinkClickCallback;asc_docs_api.prototype["asc_GoToInternalHyperlink"]=
|
|
asc_docs_api.prototype.asc_GoToInternalHyperlink;asc_docs_api.prototype["sync_CanAddHyperlinkCallback"]=asc_docs_api.prototype.sync_CanAddHyperlinkCallback;asc_docs_api.prototype["sync_DialogAddHyperlink"]=asc_docs_api.prototype.sync_DialogAddHyperlink;asc_docs_api.prototype["sync_SpellCheckCallback"]=asc_docs_api.prototype.sync_SpellCheckCallback;asc_docs_api.prototype["sync_SpellCheckVariantsFound"]=asc_docs_api.prototype.sync_SpellCheckVariantsFound;asc_docs_api.prototype["asc_replaceMisspelledWord"]=
|
|
asc_docs_api.prototype.asc_replaceMisspelledWord;asc_docs_api.prototype["asc_ignoreMisspelledWord"]=asc_docs_api.prototype.asc_ignoreMisspelledWord;asc_docs_api.prototype["asc_spellCheckAddToDictionary"]=asc_docs_api.prototype.asc_spellCheckAddToDictionary;asc_docs_api.prototype["asc_spellCheckClearDictionary"]=asc_docs_api.prototype.asc_spellCheckClearDictionary;asc_docs_api.prototype["asc_setDefaultLanguage"]=asc_docs_api.prototype.asc_setDefaultLanguage;asc_docs_api.prototype["asc_getDefaultLanguage"]=
|
|
asc_docs_api.prototype.asc_getDefaultLanguage;asc_docs_api.prototype["asc_getKeyboardLanguage"]=asc_docs_api.prototype.asc_getKeyboardLanguage;asc_docs_api.prototype["asc_setSpellCheck"]=asc_docs_api.prototype.asc_setSpellCheck;asc_docs_api.prototype["sync_shapePropCallback"]=asc_docs_api.prototype.sync_shapePropCallback;asc_docs_api.prototype["sync_slidePropCallback"]=asc_docs_api.prototype.sync_slidePropCallback;asc_docs_api.prototype["ExitHeader_Footer"]=asc_docs_api.prototype.ExitHeader_Footer;
|
|
asc_docs_api.prototype["GetCurrentPixOffsetY"]=asc_docs_api.prototype.GetCurrentPixOffsetY;asc_docs_api.prototype["SetPaintFormat"]=asc_docs_api.prototype.SetPaintFormat;asc_docs_api.prototype["sync_PaintFormatCallback"]=asc_docs_api.prototype.sync_PaintFormatCallback;asc_docs_api.prototype["SetMarkerFormat"]=asc_docs_api.prototype.SetMarkerFormat;asc_docs_api.prototype["sync_MarkerFormatCallback"]=asc_docs_api.prototype.sync_MarkerFormatCallback;asc_docs_api.prototype["ClearFormating"]=asc_docs_api.prototype.ClearFormating;
|
|
asc_docs_api.prototype["SetDeviceInputHelperId"]=asc_docs_api.prototype.SetDeviceInputHelperId;asc_docs_api.prototype["asc_setViewMode"]=asc_docs_api.prototype.asc_setViewMode;asc_docs_api.prototype["sync_HyperlinkClickCallback"]=asc_docs_api.prototype.sync_HyperlinkClickCallback;asc_docs_api.prototype["UpdateInterfaceState"]=asc_docs_api.prototype.UpdateInterfaceState;asc_docs_api.prototype["OnMouseUp"]=asc_docs_api.prototype.OnMouseUp;asc_docs_api.prototype["asyncImageEndLoaded2"]=asc_docs_api.prototype.asyncImageEndLoaded2;
|
|
asc_docs_api.prototype["ChangeTheme"]=asc_docs_api.prototype.ChangeTheme;asc_docs_api.prototype["StartLoadTheme"]=asc_docs_api.prototype.StartLoadTheme;asc_docs_api.prototype["EndLoadTheme"]=asc_docs_api.prototype.EndLoadTheme;asc_docs_api.prototype["ResetSlide"]=asc_docs_api.prototype.ResetSlide;asc_docs_api.prototype["ChangeLayout"]=asc_docs_api.prototype.ChangeLayout;asc_docs_api.prototype["put_ShapesAlign"]=asc_docs_api.prototype.put_ShapesAlign;asc_docs_api.prototype["DistributeHorizontally"]=
|
|
asc_docs_api.prototype.DistributeHorizontally;asc_docs_api.prototype["DistributeVertically"]=asc_docs_api.prototype.DistributeVertically;asc_docs_api.prototype["shapes_alignLeft"]=asc_docs_api.prototype.shapes_alignLeft;asc_docs_api.prototype["shapes_alignRight"]=asc_docs_api.prototype.shapes_alignRight;asc_docs_api.prototype["shapes_alignTop"]=asc_docs_api.prototype.shapes_alignTop;asc_docs_api.prototype["shapes_alignBottom"]=asc_docs_api.prototype.shapes_alignBottom;asc_docs_api.prototype["shapes_alignCenter"]=
|
|
asc_docs_api.prototype.shapes_alignCenter;asc_docs_api.prototype["shapes_alignMiddle"]=asc_docs_api.prototype.shapes_alignMiddle;asc_docs_api.prototype["shapes_bringToFront"]=asc_docs_api.prototype.shapes_bringToFront;asc_docs_api.prototype["shapes_bringForward"]=asc_docs_api.prototype.shapes_bringForward;asc_docs_api.prototype["shapes_bringToBack"]=asc_docs_api.prototype.shapes_bringToBack;asc_docs_api.prototype["shapes_bringBackward"]=asc_docs_api.prototype.shapes_bringBackward;asc_docs_api.prototype["sync_endDemonstration"]=
|
|
asc_docs_api.prototype.sync_endDemonstration;asc_docs_api.prototype["sync_DemonstrationSlideChanged"]=asc_docs_api.prototype.sync_DemonstrationSlideChanged;asc_docs_api.prototype["StartDemonstration"]=asc_docs_api.prototype.StartDemonstration;asc_docs_api.prototype["EndDemonstration"]=asc_docs_api.prototype.EndDemonstration;asc_docs_api.prototype["DemonstrationPlay"]=asc_docs_api.prototype.DemonstrationPlay;asc_docs_api.prototype["DemonstrationPause"]=asc_docs_api.prototype.DemonstrationPause;asc_docs_api.prototype["DemonstrationEndShowMessage"]=
|
|
asc_docs_api.prototype.DemonstrationEndShowMessage;asc_docs_api.prototype["DemonstrationNextSlide"]=asc_docs_api.prototype.DemonstrationNextSlide;asc_docs_api.prototype["DemonstrationPrevSlide"]=asc_docs_api.prototype.DemonstrationPrevSlide;asc_docs_api.prototype["DemonstrationGoToSlide"]=asc_docs_api.prototype.DemonstrationGoToSlide;asc_docs_api.prototype["sendFromReporter"]=asc_docs_api.prototype.sendFromReporter;asc_docs_api.prototype["SetDemonstrationModeOnly"]=asc_docs_api.prototype.SetDemonstrationModeOnly;
|
|
asc_docs_api.prototype["ApplySlideTransition"]=asc_docs_api.prototype.ApplySlideTransition;asc_docs_api.prototype["SlideTransitionApplyToAll"]=asc_docs_api.prototype.SlideTransitionApplyToAll;asc_docs_api.prototype["SlideTransitionPlay"]=asc_docs_api.prototype.SlideTransitionPlay;asc_docs_api.prototype["asc_HideSlides"]=asc_docs_api.prototype.asc_HideSlides;asc_docs_api.prototype["SetTextBoxInputMode"]=asc_docs_api.prototype.SetTextBoxInputMode;asc_docs_api.prototype["GetTextBoxInputMode"]=asc_docs_api.prototype.GetTextBoxInputMode;
|
|
asc_docs_api.prototype["sync_EndAddShape"]=asc_docs_api.prototype.sync_EndAddShape;asc_docs_api.prototype["asc_getChartObject"]=asc_docs_api.prototype.asc_getChartObject;asc_docs_api.prototype["asc_addChartDrawingObject"]=asc_docs_api.prototype.asc_addChartDrawingObject;asc_docs_api.prototype["asc_editChartDrawingObject"]=asc_docs_api.prototype.asc_editChartDrawingObject;asc_docs_api.prototype["asc_getChartPreviews"]=asc_docs_api.prototype.asc_getChartPreviews;asc_docs_api.prototype["asc_getTextArtPreviews"]=
|
|
asc_docs_api.prototype.asc_getTextArtPreviews;asc_docs_api.prototype["sync_closeChartEditor"]=asc_docs_api.prototype.sync_closeChartEditor;asc_docs_api.prototype["asc_getSelectedDrawingObjectsCount"]=asc_docs_api.prototype.asc_getSelectedDrawingObjectsCount;asc_docs_api.prototype["asc_ChangeTextCase"]=asc_docs_api.prototype.asc_ChangeTextCase;asc_docs_api.prototype["asc_stopSaving"]=asc_docs_api.prototype.asc_stopSaving;asc_docs_api.prototype["asc_continueSaving"]=asc_docs_api.prototype.asc_continueSaving;
|
|
asc_docs_api.prototype["asc_undoAllChanges"]=asc_docs_api.prototype.asc_undoAllChanges;asc_docs_api.prototype["sync_ContextMenuCallback"]=asc_docs_api.prototype.sync_ContextMenuCallback;asc_docs_api.prototype["asc_SetFastCollaborative"]=asc_docs_api.prototype.asc_SetFastCollaborative;asc_docs_api.prototype["asc_isOffline"]=asc_docs_api.prototype.asc_isOffline;asc_docs_api.prototype["asc_getUrlType"]=asc_docs_api.prototype.asc_getUrlType;asc_docs_api.prototype["asc_getSessionToken"]=asc_docs_api.prototype.asc_getSessionToken;
|
|
asc_docs_api.prototype["asc_setInterfaceDrawImagePlaceShape"]=asc_docs_api.prototype.asc_setInterfaceDrawImagePlaceShape;asc_docs_api.prototype["asc_nativeInitBuilder"]=asc_docs_api.prototype.asc_nativeInitBuilder;asc_docs_api.prototype["asc_SetSilentMode"]=asc_docs_api.prototype.asc_SetSilentMode;asc_docs_api.prototype["asc_pluginsRegister"]=asc_docs_api.prototype.asc_pluginsRegister;asc_docs_api.prototype["asc_pluginRun"]=asc_docs_api.prototype.asc_pluginRun;asc_docs_api.prototype["asc_pluginStop"]=
|
|
asc_docs_api.prototype.asc_pluginStop;asc_docs_api.prototype["asc_pluginResize"]=asc_docs_api.prototype.asc_pluginResize;asc_docs_api.prototype["asc_pluginButtonClick"]=asc_docs_api.prototype.asc_pluginButtonClick;asc_docs_api.prototype["asc_pluginEnableMouseEvents"]=asc_docs_api.prototype.asc_pluginEnableMouseEvents;asc_docs_api.prototype["asc_SetAutomaticBulletedLists"]=asc_docs_api.prototype.asc_SetAutomaticBulletedLists;asc_docs_api.prototype["asc_SetAutomaticNumberedLists"]=asc_docs_api.prototype.asc_SetAutomaticNumberedLists;
|
|
asc_docs_api.prototype["asc_SetAutoCorrectSmartQuotes"]=asc_docs_api.prototype.asc_SetAutoCorrectSmartQuotes;asc_docs_api.prototype["asc_SetAutoCorrectHyphensWithDash"]=asc_docs_api.prototype.asc_SetAutoCorrectHyphensWithDash;asc_docs_api.prototype["asc_SetAutoCorrectFirstLetterOfSentences"]=asc_docs_api.prototype.asc_SetAutoCorrectFirstLetterOfSentences;asc_docs_api.prototype["asc_GetSelectedText"]=asc_docs_api.prototype.asc_GetSelectedText;asc_docs_api.prototype["asc_addSlideNumber"]=asc_docs_api.prototype.asc_addSlideNumber;
|
|
asc_docs_api.prototype["asc_addDateTime"]=asc_docs_api.prototype.asc_addDateTime;asc_docs_api.prototype["asc_setDefaultDateTimeFormat"]=asc_docs_api.prototype.asc_setDefaultDateTimeFormat;asc_docs_api.prototype["asc_getHeaderFooterProperties"]=asc_docs_api.prototype.asc_getHeaderFooterProperties;asc_docs_api.prototype["asc_setHeaderFooterProperties"]=asc_docs_api.prototype.asc_setHeaderFooterProperties;asc_docs_api.prototype["asc_startEditCurrentOleObject"]=asc_docs_api.prototype.asc_startEditCurrentOleObject;
|
|
asc_docs_api.prototype["asc_InputClearKeyboardElement"]=asc_docs_api.prototype.asc_InputClearKeyboardElement;asc_docs_api.prototype["asc_getCurrentFocusObject"]=asc_docs_api.prototype.asc_getCurrentFocusObject;asc_docs_api.prototype["asc_AddMath"]=asc_docs_api.prototype.asc_AddMath;asc_docs_api.prototype["asc_SetMathProps"]=asc_docs_api.prototype.asc_SetMathProps;asc_docs_api.prototype["sendEvent"]=asc_docs_api.prototype.sendEvent;asc_docs_api.prototype["asc_setSkin"]=asc_docs_api.prototype.asc_setSkin;
|
|
asc_docs_api.prototype["SetDrawImagePreviewBulletForMenu"]=asc_docs_api.prototype.SetDrawImagePreviewBulletForMenu;asc_docs_api.prototype["asc_GetDefaultTableStyles"]=asc_docs_api.prototype.asc_GetDefaultTableStyles;asc_docs_api.prototype["asc_Remove"]=asc_docs_api.prototype.asc_Remove;asc_docs_api.prototype["AddShapeOnCurrentPage"]=asc_docs_api.prototype.AddShapeOnCurrentPage;asc_docs_api.prototype["can_CopyCut"]=asc_docs_api.prototype.can_CopyCut;asc_docs_api.prototype["asc_OnHideContextMenu"]=
|
|
asc_docs_api.prototype.asc_OnHideContextMenu;asc_docs_api.prototype["asc_OnShowContextMenu"]=asc_docs_api.prototype.asc_OnShowContextMenu;asc_docs_api.prototype["DemonstrationReporterMessages"]=asc_docs_api.prototype.DemonstrationReporterMessages;asc_docs_api.prototype["DemonstrationToReporterMessages"]=asc_docs_api.prototype.DemonstrationToReporterMessages;asc_docs_api.prototype["preloadReporter"]=asc_docs_api.prototype.preloadReporter;asc_docs_api.prototype["asc_SpecialPaste"]=asc_docs_api.prototype.asc_SpecialPaste;
|
|
asc_docs_api.prototype["asc_addSignatureLine"]=asc_docs_api.prototype.asc_addSignatureLine;asc_docs_api.prototype["asc_CallSignatureDblClickEvent"]=asc_docs_api.prototype.asc_CallSignatureDblClickEvent;asc_docs_api.prototype["asc_getRequestSignatures"]=asc_docs_api.prototype.asc_getRequestSignatures;asc_docs_api.prototype["asc_AddSignatureLine2"]=asc_docs_api.prototype.asc_AddSignatureLine2;asc_docs_api.prototype["asc_Sign"]=asc_docs_api.prototype.asc_Sign;asc_docs_api.prototype["asc_RequestSign"]=
|
|
asc_docs_api.prototype.asc_RequestSign;asc_docs_api.prototype["asc_ViewCertificate"]=asc_docs_api.prototype.asc_ViewCertificate;asc_docs_api.prototype["asc_SelectCertificate"]=asc_docs_api.prototype.asc_SelectCertificate;asc_docs_api.prototype["asc_GetDefaultCertificate"]=asc_docs_api.prototype.asc_GetDefaultCertificate;asc_docs_api.prototype["asc_getSignatures"]=asc_docs_api.prototype.asc_getSignatures;asc_docs_api.prototype["asc_isSignaturesSupport"]=asc_docs_api.prototype.asc_isSignaturesSupport;
|
|
asc_docs_api.prototype["asc_isProtectionSupport"]=asc_docs_api.prototype.asc_isProtectionSupport;asc_docs_api.prototype["asc_RemoveSignature"]=asc_docs_api.prototype.asc_RemoveSignature;asc_docs_api.prototype["asc_RemoveAllSignatures"]=asc_docs_api.prototype.asc_RemoveAllSignatures;asc_docs_api.prototype["asc_gotoSignature"]=asc_docs_api.prototype.asc_gotoSignature;asc_docs_api.prototype["asc_getSignatureSetup"]=asc_docs_api.prototype.asc_getSignatureSetup;asc_docs_api.prototype["asc_setCurrentPassword"]=
|
|
asc_docs_api.prototype.asc_setCurrentPassword;asc_docs_api.prototype["asc_resetPassword"]=asc_docs_api.prototype.asc_resetPassword;window["Asc"]["asc_CCommentData"]=window["Asc"].asc_CCommentData=asc_CCommentData;asc_CCommentData.prototype["asc_getText"]=asc_CCommentData.prototype.asc_getText;asc_CCommentData.prototype["asc_putText"]=asc_CCommentData.prototype.asc_putText;asc_CCommentData.prototype["asc_getTime"]=asc_CCommentData.prototype.asc_getTime;asc_CCommentData.prototype["asc_putTime"]=asc_CCommentData.prototype.asc_putTime;
|
|
asc_CCommentData.prototype["asc_getOnlyOfficeTime"]=asc_CCommentData.prototype.asc_getOnlyOfficeTime;asc_CCommentData.prototype["asc_putOnlyOfficeTime"]=asc_CCommentData.prototype.asc_putOnlyOfficeTime;asc_CCommentData.prototype["asc_getUserId"]=asc_CCommentData.prototype.asc_getUserId;asc_CCommentData.prototype["asc_putUserId"]=asc_CCommentData.prototype.asc_putUserId;asc_CCommentData.prototype["asc_getUserName"]=asc_CCommentData.prototype.asc_getUserName;asc_CCommentData.prototype["asc_putUserName"]=
|
|
asc_CCommentData.prototype.asc_putUserName;asc_CCommentData.prototype["asc_getGuid"]=asc_CCommentData.prototype.asc_getGuid;asc_CCommentData.prototype["asc_putGuid"]=asc_CCommentData.prototype.asc_putGuid;asc_CCommentData.prototype["asc_getTimeZoneBias"]=asc_CCommentData.prototype.asc_getTimeZoneBias;asc_CCommentData.prototype["asc_putTimeZoneBias"]=asc_CCommentData.prototype.asc_putTimeZoneBias;asc_CCommentData.prototype["asc_getQuoteText"]=asc_CCommentData.prototype.asc_getQuoteText;asc_CCommentData.prototype["asc_putQuoteText"]=
|
|
asc_CCommentData.prototype.asc_putQuoteText;asc_CCommentData.prototype["asc_getSolved"]=asc_CCommentData.prototype.asc_getSolved;asc_CCommentData.prototype["asc_putSolved"]=asc_CCommentData.prototype.asc_putSolved;asc_CCommentData.prototype["asc_getReply"]=asc_CCommentData.prototype.asc_getReply;asc_CCommentData.prototype["asc_addReply"]=asc_CCommentData.prototype.asc_addReply;asc_CCommentData.prototype["asc_getRepliesCount"]=asc_CCommentData.prototype.asc_getRepliesCount;asc_CCommentData.prototype["asc_putDocumentFlag"]=
|
|
asc_CCommentData.prototype.asc_putDocumentFlag;asc_CCommentData.prototype["asc_getDocumentFlag"]=asc_CCommentData.prototype.asc_getDocumentFlag;asc_CCommentData.prototype["asc_putUserData"]=asc_CCommentData.prototype.asc_putUserData;asc_CCommentData.prototype["asc_getUserData"]=asc_CCommentData.prototype.asc_getUserData;window["AscCommonSlide"].CContextMenuData=CContextMenuData;CContextMenuData.prototype["get_Type"]=CContextMenuData.prototype.get_Type;CContextMenuData.prototype["get_X"]=CContextMenuData.prototype.get_X;
|
|
CContextMenuData.prototype["get_Y"]=CContextMenuData.prototype.get_Y;CContextMenuData.prototype["get_IsSlideSelect"]=CContextMenuData.prototype.get_IsSlideSelect;CContextMenuData.prototype["get_IsSlideHidden"]=CContextMenuData.prototype.get_IsSlideHidden;window["Asc"]["CAscSlideProps"]=CAscSlideProps;CAscSlideProps.prototype["get_background"]=CAscSlideProps.prototype.get_background;CAscSlideProps.prototype["put_background"]=CAscSlideProps.prototype.put_background;CAscSlideProps.prototype["get_LayoutIndex"]=
|
|
CAscSlideProps.prototype.get_LayoutIndex;CAscSlideProps.prototype["put_LayoutIndex"]=CAscSlideProps.prototype.put_LayoutIndex;CAscSlideProps.prototype["get_transition"]=CAscSlideProps.prototype.get_transition;CAscSlideProps.prototype["put_transition"]=CAscSlideProps.prototype.put_transition;CAscSlideProps.prototype["get_LockDelete"]=CAscSlideProps.prototype.get_LockDelete;CAscSlideProps.prototype["put_LockDelete"]=CAscSlideProps.prototype.put_LockDelete;CAscSlideProps.prototype["get_LockLayout"]=
|
|
CAscSlideProps.prototype.get_LockLayout;CAscSlideProps.prototype["put_LockLayout"]=CAscSlideProps.prototype.put_LockLayout;CAscSlideProps.prototype["get_LockTiming"]=CAscSlideProps.prototype.get_LockTiming;CAscSlideProps.prototype["put_LockTiming"]=CAscSlideProps.prototype.put_LockTiming;CAscSlideProps.prototype["get_LockBackground"]=CAscSlideProps.prototype.get_LockBackground;CAscSlideProps.prototype["put_LockBackground"]=CAscSlideProps.prototype.put_LockBackground;CAscSlideProps.prototype["get_LockTransition"]=
|
|
CAscSlideProps.prototype.get_LockTransition;CAscSlideProps.prototype["put_LockTransition"]=CAscSlideProps.prototype.put_LockTransition;CAscSlideProps.prototype["get_LockRemove"]=CAscSlideProps.prototype.get_LockRemove;CAscSlideProps.prototype["put_LockRemove"]=CAscSlideProps.prototype.put_LockRemove;CAscSlideProps.prototype["get_IsHidden"]=CAscSlideProps.prototype.get_IsHidden;window["Asc"]["CAscChartProp"]=CAscChartProp;CAscChartProp.prototype["get_ChangeLevel"]=CAscChartProp.prototype.get_ChangeLevel;
|
|
CAscChartProp.prototype["put_ChangeLevel"]=CAscChartProp.prototype.put_ChangeLevel;CAscChartProp.prototype["get_CanBeFlow"]=CAscChartProp.prototype.get_CanBeFlow;CAscChartProp.prototype["get_Width"]=CAscChartProp.prototype.get_Width;CAscChartProp.prototype["put_Width"]=CAscChartProp.prototype.put_Width;CAscChartProp.prototype["get_Height"]=CAscChartProp.prototype.get_Height;CAscChartProp.prototype["put_Height"]=CAscChartProp.prototype.put_Height;CAscChartProp.prototype["get_WrappingStyle"]=CAscChartProp.prototype.get_WrappingStyle;
|
|
CAscChartProp.prototype["put_WrappingStyle"]=CAscChartProp.prototype.put_WrappingStyle;CAscChartProp.prototype["get_Paddings"]=CAscChartProp.prototype.get_Paddings;CAscChartProp.prototype["put_Paddings"]=CAscChartProp.prototype.put_Paddings;CAscChartProp.prototype["get_AllowOverlap"]=CAscChartProp.prototype.get_AllowOverlap;CAscChartProp.prototype["put_AllowOverlap"]=CAscChartProp.prototype.put_AllowOverlap;CAscChartProp.prototype["get_Position"]=CAscChartProp.prototype.get_Position;CAscChartProp.prototype["put_Position"]=
|
|
CAscChartProp.prototype.put_Position;CAscChartProp.prototype["get_PositionH"]=CAscChartProp.prototype.get_PositionH;CAscChartProp.prototype["put_PositionH"]=CAscChartProp.prototype.put_PositionH;CAscChartProp.prototype["get_PositionV"]=CAscChartProp.prototype.get_PositionV;CAscChartProp.prototype["put_PositionV"]=CAscChartProp.prototype.put_PositionV;CAscChartProp.prototype["get_Value_X"]=CAscChartProp.prototype.get_Value_X;CAscChartProp.prototype["get_Value_Y"]=CAscChartProp.prototype.get_Value_Y;
|
|
CAscChartProp.prototype["get_ImageUrl"]=CAscChartProp.prototype.get_ImageUrl;CAscChartProp.prototype["put_ImageUrl"]=CAscChartProp.prototype.put_ImageUrl;CAscChartProp.prototype["get_Group"]=CAscChartProp.prototype.get_Group;CAscChartProp.prototype["put_Group"]=CAscChartProp.prototype.put_Group;CAscChartProp.prototype["asc_getFromGroup"]=CAscChartProp.prototype.asc_getFromGroup;CAscChartProp.prototype["asc_putFromGroup"]=CAscChartProp.prototype.asc_putFromGroup;CAscChartProp.prototype["get_isChartProps"]=
|
|
CAscChartProp.prototype.get_isChartProps;CAscChartProp.prototype["put_isChartPross"]=CAscChartProp.prototype.put_isChartPross;CAscChartProp.prototype["get_SeveralCharts"]=CAscChartProp.prototype.get_SeveralCharts;CAscChartProp.prototype["put_SeveralCharts"]=CAscChartProp.prototype.put_SeveralCharts;CAscChartProp.prototype["get_SeveralChartTypes"]=CAscChartProp.prototype.get_SeveralChartTypes;CAscChartProp.prototype["put_SeveralChartTypes"]=CAscChartProp.prototype.put_SeveralChartTypes;CAscChartProp.prototype["get_SeveralChartStyles"]=
|
|
CAscChartProp.prototype.get_SeveralChartStyles;CAscChartProp.prototype["put_SeveralChartStyles"]=CAscChartProp.prototype.put_SeveralChartStyles;CAscChartProp.prototype["get_VerticalTextAlign"]=CAscChartProp.prototype.get_VerticalTextAlign;CAscChartProp.prototype["put_VerticalTextAlign"]=CAscChartProp.prototype.put_VerticalTextAlign;CAscChartProp.prototype["get_Locked"]=CAscChartProp.prototype.get_Locked;CAscChartProp.prototype["get_ChartProperties"]=CAscChartProp.prototype.get_ChartProperties;CAscChartProp.prototype["put_ChartProperties"]=
|
|
CAscChartProp.prototype.put_ChartProperties;CAscChartProp.prototype["get_ShapeProperties"]=CAscChartProp.prototype.get_ShapeProperties;CAscChartProp.prototype["put_ShapeProperties"]=CAscChartProp.prototype.put_ShapeProperties;CAscChartProp.prototype["asc_getType"]=CAscChartProp.prototype.asc_getType;CAscChartProp.prototype["asc_getSubType"]=CAscChartProp.prototype.asc_getSubType;CAscChartProp.prototype["asc_getStyleId"]=CAscChartProp.prototype.asc_getStyleId;CAscChartProp.prototype["asc_getHeight"]=
|
|
CAscChartProp.prototype.asc_getHeight;CAscChartProp.prototype["asc_getWidth"]=CAscChartProp.prototype.asc_getWidth;CAscChartProp.prototype["asc_setType"]=CAscChartProp.prototype.asc_setType;CAscChartProp.prototype["asc_setSubType"]=CAscChartProp.prototype.asc_setSubType;CAscChartProp.prototype["asc_setStyleId"]=CAscChartProp.prototype.asc_setStyleId;CAscChartProp.prototype["asc_setHeight"]=CAscChartProp.prototype.asc_setHeight;CAscChartProp.prototype["asc_setWidth"]=CAscChartProp.prototype.asc_setWidth;
|
|
CAscChartProp.prototype["asc_putTitle"]=CAscChartProp.prototype["put_Title"]=CAscChartProp.prototype["asc_setTitle"]=CAscChartProp.prototype.asc_setTitle;CAscChartProp.prototype["asc_putDescription"]=CAscChartProp.prototype["put_Description"]=CAscChartProp.prototype["asc_setDescription"]=CAscChartProp.prototype.asc_setDescription;CAscChartProp.prototype["asc_getTitle"]=CAscChartProp.prototype.asc_getTitle;CAscChartProp.prototype["asc_getDescription"]=CAscChartProp.prototype.asc_getDescription;CAscChartProp.prototype["getType"]=
|
|
CAscChartProp.prototype.getType;CAscChartProp.prototype["putType"]=CAscChartProp.prototype.putType;CAscChartProp.prototype["getStyle"]=CAscChartProp.prototype.getStyle;CAscChartProp.prototype["putStyle"]=CAscChartProp.prototype.putStyle;CAscChartProp.prototype["putLockAspect"]=CAscChartProp.prototype["asc_putLockAspect"]=CAscChartProp.prototype.putLockAspect;CAscChartProp.prototype["getLockAspect"]=CAscChartProp.prototype["asc_getLockAspect"]=CAscChartProp.prototype.getLockAspect;CAscChartProp.prototype["changeType"]=
|
|
CAscChartProp.prototype.changeType;CDocInfoProp.prototype["get_PageCount"]=CDocInfoProp.prototype.get_PageCount;CDocInfoProp.prototype["put_PageCount"]=CDocInfoProp.prototype.put_PageCount;CDocInfoProp.prototype["get_WordsCount"]=CDocInfoProp.prototype.get_WordsCount;CDocInfoProp.prototype["put_WordsCount"]=CDocInfoProp.prototype.put_WordsCount;CDocInfoProp.prototype["get_ParagraphCount"]=CDocInfoProp.prototype.get_ParagraphCount;CDocInfoProp.prototype["put_ParagraphCount"]=CDocInfoProp.prototype.put_ParagraphCount;
|
|
CDocInfoProp.prototype["get_SymbolsCount"]=CDocInfoProp.prototype.get_SymbolsCount;CDocInfoProp.prototype["put_SymbolsCount"]=CDocInfoProp.prototype.put_SymbolsCount;CDocInfoProp.prototype["get_SymbolsWSCount"]=CDocInfoProp.prototype.get_SymbolsWSCount;CDocInfoProp.prototype["put_SymbolsWSCount"]=CDocInfoProp.prototype.put_SymbolsWSCount;CSearchResult.prototype["get_Text"]=CSearchResult.prototype.get_Text;CSearchResult.prototype["get_Navigator"]=CSearchResult.prototype.get_Navigator;CSearchResult.prototype["put_Navigator"]=
|
|
CSearchResult.prototype.put_Navigator;CSearchResult.prototype["put_Text"]=CSearchResult.prototype.put_Text})(window,window.document);"use strict";
|
|
function CSpellchecker(settings){this.api=settings.api;this.useWasm=false;var webAsmObj=window["WebAssembly"];if(typeof webAsmObj==="object")if(typeof webAsmObj["Memory"]==="function")if(typeof webAsmObj["instantiateStreaming"]==="function"||typeof webAsmObj["instantiate"]==="function")this.useWasm=true;this.enginePath="./spell/";if(settings&&settings.enginePath){this.enginePath=settings.enginePath;if(this.enginePath.substring(this.enginePath.length-1)!="/")this.enginePath+="/"}var dictionariesPath=
|
|
"./../dictionaries";if(settings&&settings.dictionariesPath){dictionariesPath=settings.dictionariesPath;if(dictionariesPath.substring(dictionariesPath.length-1)=="/")dictionariesPath=dictionariesPath.substr(0,dictionariesPath.length-1)}this.isUseSharedWorker=!!window.SharedWorker;if(this.isUseSharedWorker&&false===settings.useShared)this.isUseSharedWorker=false;this.worker=null;this.languages={1068:"az_Latn_AZ",1026:"bg_BG",1027:"ca_ES",2051:"ca_ES_valencia",1029:"cs_CZ",1030:"da_DK",3079:"de_AT",
|
|
2055:"de_CH",1031:"de_DE",1032:"el_GR",3081:"en_AU",4105:"en_CA",2057:"en_GB",1033:"en_US",7177:"en_ZA",3082:"es_ES",1069:"eu_ES",1036:"fr_FR",1110:"gl_ES",1050:"hr_HR",1038:"hu_HU",1057:"id_ID",1040:"it_IT",1087:"kk_KZ",1042:"ko_KR",1134:"lb_LU",1063:"lt_LT",1062:"lv_LV",1104:"mn_MN",1044:"nb_NO",1043:"nl_NL",2068:"nn_NO",1045:"pl_PL",1046:"pt_BR",2070:"pt_PT",1048:"ro_RO",1049:"ru_RU",1051:"sk_SK",1060:"sl_SI",10266:"sr_Cyrl_RS",9242:"sr_Latn_RS",1053:"sv_SE",1055:"tr_TR",1058:"uk_UA",1066:"vi_VN",
|
|
2067:"nl_NL"};this.stop=function(){if(!this.worker)return;try{if(this.worker.port)this.worker.port.close();else if(this.worker.terminate)this.worker.terminate()}catch(err){}this.worker=null};this.restart=function(){this.stop();var worker_src=this.useWasm?"spell.js":"spell_ie.js";worker_src=this.enginePath+worker_src;if(this.isUseSharedWorker){this.worker=new SharedWorker(worker_src,"onlyoffice-spellchecker");this.worker.creator=this;this.worker.onerror=function(){var creator=this.creator;creator.worker=
|
|
new Worker(worker_src);creator._start(creator.worker)};this._start(this.worker.port)}else{this.worker=new Worker(worker_src);var _t=this;this.worker.onerror=function(e){AscCommon.stopEvent(e);if(_t.useWasm){_t.useWasm=false;_t.restart();_t.api.asc_restartCheckSpelling()}};this._start(this.worker)}};this.oncommand=function(message){console.log(message)};this.checkDictionary=function(lang){return undefined!==this.languages[""+lang]?true:false};this.getLanguages=function(){var ret=[];for(var lang in this.languages)ret.push(lang);
|
|
return ret};this._start=function(_port){var _worker=this;_port.onmessage=function(message){_worker.oncommand&&_worker.oncommand(message.data)};_port.postMessage({"type":"init","dictionaries_path":dictionariesPath,"languages":this.languages});this.command=function(message){_port&&_port.postMessage(message)}};this.restart()} |