/ *
* Copyright ( C ) Ascensio System SIA 2012 - 2022. 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 && regExp 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 -
str _namedSheetsRange = " \u0001 - & ( - ) + -- ; - > @ ^ ` {- \u 007f \u 0082 \u 0084 \u 008b \u 0092 \u 0095 \u 0098 \u 009b \u 00a0 \u 00a6 \u 00a9 \u 00ab- \u 00ac \u 00ae \u 00bb \u 0378- \u 0379 \u 037e- \u 0383 \u 0387 \u 038b \u 038d \u 03a2 \u 0524- \u 0530 \u 0557- \u 0558 \u 055a- \u 0560 \u 0588- \u 0590 \u 05be \u 05c0 \u 05c3 \u 05c6 \u 05c8- \u 05cf \u 05eb- \u 05ef \u 05f3- \u 05ff \u 0604- \u 0605 \u 0609- \u 060a \u 060c- \u 060d \u 061b- \u 061e \u 0620 \u 065f \u 066a- \u 066d \u 06d4 \u 0700- \u 070e \u 074b- \u 074c \u 07b2- \u 07bf \u 07f7- \u 07f9 \u 07fb- \u 0900 \u 093a- \u 093b \u 094e- \u 094f \u 0955- \u 0957 \u 0964- \u 0965 \u 0970 \u 0973- \u 097a \u 0980 \u 0984 \u 098d- \u 098e \u 0991- \u 0992 \u 09a9 \u 09b1 \u 09b3- \u 09b5 \u 09ba- \u 09bb \u 09c5- \u 09c6 \u 09c9- \u 09ca \u 09cf- \u 09d6 \u 09d8- \u 09db \u 09de \u 09e4- \u 09e5 \u 09fb- \u 0a00 \u 0a04 \u 0a0b- \u 0a0e \u 0a11- \u 0a12 \u 0a29 \u 0a31 \u 0a34 \u 0a37 \u 0a3a- \u 0a3b \u 0a3d \u 0a43- \u 0a46 \u 0a49- \u 0a4a \u 0a4e- \u 0a50 \u 0a52- \u 0a58 \u 0a5d \u 0a5f- \u 0a65 \u 0a76- \u 0a80 \u 0a84 \u 0a8e \u 0a92 \u 0aa9 \u 0ab1 \u 0ab4 \u 0aba- \u 0abb \u 0ac6 \u 0aca \u 0ace- \u 0acf \u 0ad1- \u 0adf \u 0ae4- \u 0ae5 \u 0af0 \u 0af2- \u 0b00 \u 0b04 \u 0b0d- \u 0b0e \u 0b11- \u 0b12 \u 0b29 \u 0b31 \u 0b34 \u 0b3a- \u 0b3b \u 0b45- \u 0b46 \u 0b49- \u 0b4a \u 0b4e- \u 0b55 \u 0b58- \u 0b5b \u 0b5e \u 0b64- \u 0b65 \u 0b72- \u 0b81 \u 0b84 \u 0b8b- \u 0b8d \u 0b91 \u 0b96- \u 0b98 \u 0b9b \u 0b9d \u 0ba0- \u 0ba2 \u 0ba5- \u 0ba7 \u 0bab- \u 0bad \u 0bba- \u 0bbd \u 0bc3- \u 0bc5 \u 0bc9 \u 0bce- \u 0bcf \u 0bd1- \u 0bd6 \u 0bd8- \u 0be5 \u 0bfb- \u 0c00 \u 0c04 \u 0c0d \u 0c11 \u 0c29 \u 0c34 \u 0c3a- \u 0c3c \u 0c45 \u 0c49 \u 0c4e- \u 0c54 \u 0c57 \u 0c5a- \u 0c5f \u 0c64- \u 0c65 \u 0c70- \u 0c77 \u 0c80- \u 0c81 \u 0c84 \u 0c8d \u 0c91 \u 0ca9 \u 0cb4 \u 0cba- \u 0cbb \u 0cc5 \u 0cc9 \u 0cce- \u 0cd4 \u 0cd7- \u 0cdd \u 0cdf \u 0ce4- \u 0ce5 \u 0cf0 \u 0cf3- \u 0d01 \u 0d04 \u 0d0d \u 0d11 \u 0d29 \u 0d3a- \u 0d3c \u 0d45 \u 0d49 \u 0d4e- \u 0d56 \u 0d58- \u 0d5f \u 0d64- \u 0d65 \u 0d76- \u 0d78 \u 0d80- \u 0d81 \u 0d84 \u 0d97- \u 0d99 \u 0db2 \u 0dbc \u 0dbe- \u 0dbf \u 0dc7- \u 0dc9 \u 0dcb- \u 0dce \u 0dd5 \u 0dd7 \u 0de0- \u 0df1 \u 0df4- \u 0e00 \u 0e3b- \u 0e3e \u 0e4f \u 0e5a- \u 0e80 \u 0e83 \u 0e85- \u 0e86 \u 0e89 \u 0e8b- \u 0e8c \u 0e8e- \u 0e93 \u 0e98 \u 0ea0 \u 0ea4 \u 0ea6 \u 0ea8- \u 0ea9 \u 0eac \u 0eba \u 0ebe- \u 0ebf \u 0ec5 \u 0ec7 \u 0ece- \u 0ecf \u 0eda- \u 0edb \u 0ede- \u 0eff \u 0f04- \u 0f12 \u 0f3a- \u 0f3d \u 0f48 \u 0f6d- \u 0f70 \u 0f85 \u 0f8c- \u 0f8f \u 0f98 \u 0fbd \u 0fcd \u 0fd0- \u 0fff \u 104a- \u 104f \u 109a- \u 109d \u 10c6- \u 10cf \u 10fb \u 10fd- \u 10ff \u 115a- \u 115e \u 11a3- \u 11a7 \u 11fa- \u 11ff \u 1249 \u 124e- \u 124f \u 1257 \u 1259 \u 125e- \u 125f \u 1289 \u 128e- \u 128f \u 12b1 \u 12b6- \u 12b7 \u 12bf \u 12c1 \u 12c6- \u 12c7 \u 12d7 \u 1311 \u 1316- \u 1317 \u 135b- \u 135e \u 1361- \u 1368 \u 137d- \u 137f \u 139a- \u 139f \u 13f5- \u 1400 \u 166d- \u 166e \u 1677- \u 167f \u 169b- \u 169f \u 16eb- \u 16ed \u 16f1- \u 16ff \u 170d \u 1715- \u 171f \u 1735- \u 173f \u 1754- \u 175f \u 176d \u 1771 \u 1774- \u 177f \u 17d4- \u 17d6 \u 17d8- \u 17da \u 17de- \u 17df \u 17ea- \u 17ef \u 17fa- \u 180a \u 180f \u 181a- \u 181f \u 1878- \u 187f \u 18ab- \u 18ff \u 191d- \u 191f \u 192c- \u 192f \u 193c- \u 193f \u 1941- \u 1945 \u 196e- \u 196f \u 1975- \u 197f \u 19aa- \u 19af \u 19ca- \u 19cf \u 19da- \u 19df \u 1a1c- \u 1aff \u 1b4c- \u 1b4f \u 1b5a- \u 1b60 \u 1b7d- \u 1b7f \u 1bab- \u 1bad \u 1bba- \u 1bff \u 1c38- \u 1c3f \u 1c4a- \u 1c4c \u 1c7e- \u 1cff \u 1de7- \u 1dfd \u 1f16- \u 1f17 \u 1f1e- \u 1f1f \u 1f46- \u 1f47 \u 1f4e- \u 1f4f \u 1f58 \u 1f5a \u 1f5c \u 1f5e \u 1f7e- \u 1f7f \u 1fb5 \u 1fc5 \u 1fd4- \u 1fd5 \u 1fdc \u 1ff0- \u 1ff1 \u 1ff5 \u 1fff \u 2011- \u 2012 \u 2017 \u 2019- \u 201b \u 201e- \u 201f \u 2022- \u 2024 \u 2031 \u 2034 \u 2036- \u 203a \u 203c- \u 2043 \u 2045- \u 2051 \u 2053- \u 205e \u 2065- \u 2069 \u 2072- \u 2073 \u 207d- \u 207e \u 208d- \u 208f \u 2095- \u 209f \u 20b6- \u 20cf \u 20f1- \u 20ff \u 2150- \u 2152 \u 2189- \u 218f \u 2329- \u 232a \u 23e8- \u 23ff \u 2427- \u 243f \u 244b- \u 245f \u 269e- \u 269f \u 26bd- \u 26bf \u 26c4- \u 2700 \u 2705 \u 270a- \u 270b \u 2728 \u 274c \u 274e \u 2753- \u 2755 \u 2757 \u 275f- \u 2760 \u 2768- \u 2775 \u 2795- \u 2797 \u 27b0 \u 27bf \u 27c5- \u 27c6 \u 27cb \u 27cd- \u 27cf \u 27e6- \u 27ef \u 2983- \u 2998 \u 29d8- \u 29db \u 29fc- \u 29fd \u 2b4d- \u 2b4f \u 2b55- \u 2bff \u 2c2f \u 2c5f \u 2c70 \u 2c7e- \u 2c7f \u 2ceb- \u 2cfc \u 2cfe- \u 2cff \u 2d26- \u 2d2f \u 2d66- \u 2d6e \u 2d70- \u 2d7f \u 2d97- \u 2d9f \u 2da7 \u 2daf \u 2db7 \u 2dbf \u 2dc7 \u 2dcf \u 2dd7 \u 2ddf \u 2e00- \u 2e2e \u 2e30- \u 2e7f \u 2e9a \u 2ef4- \u 2eff \u 2fd6- \u 2fef \u 2ffc- \u 2fff \u 3018- \u 301c \u 3030 \u 303d \u 3040 \u 3097- \u 3098 \u 30a0 \u 3100- \u 3104 \u 312e- \u 3130 \u 318f \u 31b8- \u 31bf \u 31e4- \u 31ef \u 321f \u 3244- \u 324f \u 32ff \u 4db6- \u 4dbf \u 9fc4- \u 9fff \u a48d- \u a48f \u a4c7- \u a4ff \u a60d- \u a60f \u a62c- \u a63f \u a660- \u a661 \u a673- \u a67b \u a67e \u a698- \u a6ff \u a78d- \u a7fa \u a82c- \u a83f \u a874- \u a87f \u a8c5- \u a8cf \u a8da- \u a8ff \u a92f \u a954- \u a9ff \u aa37- \u aa3f \
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$1 ) { } try { var textValue =
e . dataTransfer . getData ( "Text" ) ; if ( textValue ) { editor [ "pluginMethod_PasteText" ] ( textValue ) ; return } } catch ( err$2 ) { } } 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 - \ u3
str _namedSheetsRange = " \u0001 - & ( - ) + -- ; - > @ ^ ` {- \u 007f \u 0082 \u 0084 \u 008b \u 0092 \u 0095 \u 0098 \u 009b \u 00a0 \u 00a6 \u 00a9 \u 00ab- \u 00ac \u 00ae \u 00bb \u 0378- \u 0379 \u 037e- \u 0383 \u 0387 \u 038b \u 038d \u 03a2 \u 0524- \u 0530 \u 0557- \u 0558 \u 055a- \u 0560 \u 0588- \u 0590 \u 05be \u 05c0 \u 05c3 \u 05c6 \u 05c8- \u 05cf \u 05eb- \u 05ef \u 05f3- \u 05ff \u 0604- \u 0605 \u 0609- \u 060a \u 060c- \u 060d \u 061b- \u 061e \u 0620 \u 065f \u 066a- \u 066d \u 06d4 \u 0700- \u 070e \u 074b- \u 074c \u 07b2- \u 07bf \u 07f7- \u 07f9 \u 07fb- \u 0900 \u 093a- \u 093b \u 094e- \u 094f \u 0955- \u 0957 \u 0964- \u 0965 \u 0970 \u 0973- \u 097a \u 0980 \u 0984 \u 098d- \u 098e \u 0991- \u 0992 \u 09a9 \u 09b1 \u 09b3- \u 09b5 \u 09ba- \u 09bb \u 09c5- \u 09c6 \u 09c9- \u 09ca \u 09cf- \u 09d6 \u 09d8- \u 09db \u 09de \u 09e4- \u 09e5 \u 09fb- \u 0a00 \u 0a04 \u 0a0b- \u 0a0e \u 0a11- \u 0a12 \u 0a29 \u 0a31 \u 0a34 \u 0a37 \u 0a3a- \u 0a3b \u 0a3d \u 0a43- \u 0a46 \u 0a49- \u 0a4a \u 0a4e- \u 0a50 \u 0a52- \u 0a58 \u 0a5d \u 0a5f- \u 0a65 \u 0a76- \u 0a80 \u 0a84 \u 0a8e \u 0a92 \u 0aa9 \u 0ab1 \u 0ab4 \u 0aba- \u 0abb \u 0ac6 \u 0aca \u 0ace- \u 0acf \u 0ad1- \u 0adf \u 0ae4- \u 0ae5 \u 0af0 \u 0af2- \u 0b00 \u 0b04 \u 0b0d- \u 0b0e \u 0b11- \u 0b12 \u 0b29 \u 0b31 \u 0b34 \u 0b3a- \u 0b3b \u 0b45- \u 0b46 \u 0b49- \u 0b4a \u 0b4e- \u 0b55 \u 0b58- \u 0b5b \u 0b5e \u 0b64- \u 0b65 \u 0b72- \u 0b81 \u 0b84 \u 0b8b- \u 0b8d \u 0b91 \u 0b96- \u 0b98 \u 0b9b \u 0b9d \u 0ba0- \u 0ba2 \u 0ba5- \u 0ba7 \u 0bab- \u 0bad \u 0bba- \u 0bbd \u 0bc3- \u 0bc5 \u 0bc9 \u 0bce- \u 0bcf \u 0bd1- \u 0bd6 \u 0bd8- \u 0be5 \u 0bfb- \u 0c00 \u 0c04 \u 0c0d \u 0c11 \u 0c29 \u 0c34 \u 0c3a- \u 0c3c \u 0c45 \u 0c49 \u 0c4e- \u 0c54 \u 0c57 \u 0c5a- \u 0c5f \u 0c64- \u 0c65 \u 0c70- \u 0c77 \u 0c80- \u 0c81 \u 0c84 \u 0c8d \u 0c91 \u 0ca9 \u 0cb4 \u 0cba- \u 0cbb \u 0cc5 \u 0cc9 \u 0cce- \u 0cd4 \u 0cd7- \u 0cdd \u 0cdf \u 0ce4- \u 0ce5 \u 0cf0 \u 0cf3- \u 0d01 \u 0d04 \u 0d0d \u 0d11 \u 0d29 \u 0d3a- \u 0d3c \u 0d45 \u 0d49 \u 0d4e- \u 0d56 \u 0d58- \u 0d5f \u 0d64- \u 0d65 \u 0d76- \u 0d78 \u 0d80- \u 0d81 \u 0d84 \u 0d97- \u 0d99 \u 0db2 \u 0dbc \u 0dbe- \u 0dbf \u 0dc7- \u 0dc9 \u 0dcb- \u 0dce \u 0dd5 \u 0dd7 \u 0de0- \u 0df1 \u 0df4- \u 0e00 \u 0e3b- \u 0e3e \u 0e4f \u 0e5a- \u 0e80 \u 0e83 \u 0e85- \u 0e86 \u 0e89 \u 0e8b- \u 0e8c \u 0e8e- \u 0e93 \u 0e98 \u 0ea0 \u 0ea4 \u 0ea6 \u 0ea8- \u 0ea9 \u 0eac \u 0eba \u 0ebe- \u 0ebf \u 0ec5 \u 0ec7 \u 0ece- \u 0ecf \u 0eda- \u 0edb \u 0ede- \u 0eff \u 0f04- \u 0f12 \u 0f3a- \u 0f3d \u 0f48 \u 0f6d- \u 0f70 \u 0f85 \u 0f8c- \u 0f8f \u 0f98 \u 0fbd \u 0fcd \u 0fd0- \u 0fff \u 104a- \u 104f \u 109a- \u 109d \u 10c6- \u 10cf \u 10fb \u 10fd- \u 10ff \u 115a- \u 115e \u 11a3- \u 11a7 \u 11fa- \u 11ff \u 1249 \u 124e- \u 124f \u 1257 \u 1259 \u 125e- \u 125f \u 1289 \u 128e- \u 128f \u 12b1 \u 12b6- \u 12b7 \u 12bf \u 12c1 \u 12c6- \u 12c7 \u 12d7 \u 1311 \u 1316- \u 1317 \u 135b- \u 135e \u 1361- \u 1368 \u 137d- \u 137f \u 139a- \u 139f \u 13f5- \u 1400 \u 166d- \u 166e \u 1677- \u 167f \u 169b- \u 169f \u 16eb- \u 16ed \u 16f1- \u 16ff \u 170d \u 1715- \u 171f \u 1735- \u 173f \u 1754- \u 175f \u 176d \u 1771 \u 1774- \u 177f \u 17d4- \u 17d6 \u 17d8- \u 17da \u 17de- \u 17df \u 17ea- \u 17ef \u 17fa- \u 180a \u 180f \u 181a- \u 181f \u 1878- \u 187f \u 18ab- \u 18ff \u 191d- \u 191f \u 192c- \u 192f \u 193c- \u 193f \u 1941- \u 1945 \u 196e- \u 196f \u 1975- \u 197f \u 19aa- \u 19af \u 19ca- \u 19cf \u 19da- \u 19df \u 1a1c- \u 1aff \u 1b4c- \u 1b4f \u 1b5a- \u 1b60 \u 1b7d- \u 1b7f \u 1bab- \u 1bad \u 1bba- \u 1bff \u 1c38- \u 1c3f \u 1c4a- \u 1c4c \u 1c7e- \u 1cff \u 1de7- \u 1dfd \u 1f16- \u 1f17 \u 1f1e- \u 1f1f \u 1f46- \u 1f47 \u 1f4e- \u 1f4f \u 1f58 \u 1f5a \u 1f5c \u 1f5e \u 1f7e- \u 1f7f \u 1fb5 \u 1fc5 \u 1fd4- \u 1fd5 \u 1fdc \u 1ff0- \u 1ff1 \u 1ff5 \u 1fff \u 200e \u 2011- \u 2012 \u 2017 \u 2019- \u 201b \u 201e- \u 201f \u 2022- \u 2024 \u 2031 \u 2034 \u 2036- \u 203a \u 203c- \u 2043 \u 2045- \u 2051 \u 2053- \u 205e \u 2065- \u 2069 \u 2072- \u 2073 \u 207d- \u 207e \u 208d- \u 208f \u 2095- \u 209f \u 20b6- \u 20cf \u 20f1- \u 20ff \u 2150- \u 2152 \u 2189- \u 218f \u 2329- \u 232a \u 23e8- \u 23ff \u 2427- \u 243f \u 244b- \u 245f \u 269e- \u 269f \u 26bd- \u 26bf \u 26c4- \u 2700 \u 2705 \u 270a- \u 270b \u 2728 \u 274c \u 274e \u 2753- \u 2755 \u 2757 \u 275f- \u 2760 \u 2768- \u 2775 \u 2795- \u 2797 \u 27b0 \u 27bf \u 27c5- \u 27c6 \u 27cb \u 27cd- \u 27cf \u 27e6- \u 27ef \u 2983- \u 2998 \u 29d8- \u 29db \u 29fc- \u 29fd \u 2b4d- \u 2b4f \u 2b55- \u 2bff \u 2c2f \u 2c5f \u 2c70 \u 2c7e- \u 2c7f \u 2ceb- \u 2cfc \u 2cfe- \u 2cff \u 2d26- \u 2d2f \u 2d66- \u 2d6e \u 2d70- \u 2d7f \u 2d97- \u 2d9f \u 2da7 \u 2daf \u 2db7 \u 2dbf \u 2dc7 \u 2dcf \u 2dd7 \u 2ddf \u 2e00- \u 2e2e \u 2e30- \u 2e7f \u 2e9a \u 2ef4- \u 2eff \u 2fd6- \u 2fef \u 2ffc- \u 2fff \u 3018- \u 301c \u 3030 \u 303d \u 3040 \u 3097- \u 3098 \u 30a0 \u 3100- \u 3104 \u 312e- \u 3130 \u 318f \u 31b8- \u 31bf \u 31e4- \u 31ef \u 321f \u 3244- \u 324f \u 32ff \u 4db6- \u 4dbf \u 9fc4- \u 9fff \u a48d- \u a48f \u a4c7- \u a4ff \u a60d- \u a60f \u a62c- \u a63f \u a660- \u a661 \u a673- \u a67b \u a67e \u a698- \u a6ff \u a78d- \u a7fa \u a82c- \u a83f \u a874- \u a87f \u a8c5- \u a8cf \u a8da- \u a8ff \u a92f \u a954- \u a9ff \u aa37- \
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 - Z a - z \ x A A \ x B 5 \ x B A \ x C 0 - \ x D 6 \ x D 8 - \ x F 6 \ x F 8 - \ u 0 2 C 1 \ u 0 2 C 6 - \ u 0 2 D 1 \ u 0 2 E 0 - \ u 0 2 E 4 \ u 0 2 E C \ u 0 2 E E \ u 0 3 4 5 \ u 0 3 7 0 - \ u 0 3 7 4 \ u 0 3 7 6 \ u 0 3 7 7 \ u 0 3 7 A - \ u 0 3 7 D \ u 0 3 8 6 \ u 0 3 8 8 - \ u 0 3 8 A \ u 0 3 8 C \ u 0 3 8 E - \ u 0 3 A 1 \ u 0 3 A 3 - \ u 0 3 F 5 \ u 0 3 F 7 - \ u 0 4 8 1 \ u 0 4 8 A - \ u 0 5 2 7 \ u 0 5 3 1 - \ u 0 5 5 6 \ u 0 5 5 9 \ u 0 5 6 1 - \ u 0 5 8 7 \ u 0 5 B 0 - \ u 0 5 B D \ u 0 5 B F \ u 0 5 C 1 \ u 0 5 C 2 \ u 0 5 C 4 \ u 0 5 C 5 \ u 0 5 C 7 \ u 0 5 D 0 - \ u 0 5 E A \ u 0 5 F 0 - \ u 0 5 F 2 \ u 0 6 1 0 - \ u 0 6 1 A \ u 0 6 2 0 - \ u 0 6 5 7 \ u 0 6 5 9 - \ u 0 6 5 F \ u 0 6 6 E - \ u 0 6 D 3 \ u 0 6 D 5 - \ u 0 6 D C \ u 0 6 E 1 - \ u 0 6 E 8 \ u 0 6 E D - \ u 0 6 E F \ u 0 6 F A - \ u 0 6 F C \ u 0 6 F F \ u 0 7 1 0 - \ u 0 7 3 F \ u 0 7 4 D - \ u 0 7 B 1 \ u 0 7 C A - \ u 0 7 E A \ u 0 7 F 4 \ u 0 7 F 5 \ u 0 7 F A \ u 0 8 0 0 - \ u 0 8 1 7 \ u 0 8 1 A - \ u 0 8 2 C \ u 0 8 4 0 - \ u 0 8 5 8 \ u 0 8 A 0 \ u 0 8 A 2 - \ u 0 8 A C \ u 0 8 E 4 - \ u 0 8 E 9 \ u 0 8 F 0 - \ u 0 8 F E \ u 0 9 0 0 - \ u 0 9 3 B \ u 0 9 3 D - \ u 0 9 4 C \ u 0 9 4 E - \ u 0 9 5 0 \ u 0 9 5 5 - \ u 0 9 6 3 \ u 0 9 7 1 - \ u 0 9 7 7 \ u 0 9 7 9 - \ u 0 9 7 F \ u 0 9 8 1 - \ u 0 9 8 3 \ u 0 9 8 5 - \ u 0 9 8 C \ u 0 9 8 F \ u 0 9 9 0 \ u 0 9 9 3 - \ u 0 9 A 8 \ u 0 9 A A - \ u 0 9 B 0 \ u 0 9 B 2 \ u 0 9 B 6 - \ u 0 9 B 9 \ u 0 9 B D - \ u 0 9 C 4 \ u 0 9 C 7 \ u 0 9 C 8 \ u 0 9 C B \ u 0 9 C C \ u 0 9 C E \ u 0 9 D 7 \ u 0 9 D C \ u 0 9 D D \ u 0 9 D F - \ u 0 9 E 3 \ u 0 9 F 0 \ u 0 9 F 1 \ u 0 A 0 1 - \ u 0 A 0 3 \ u 0 A 0 5 - \ u 0 A 0 A \ u 0 A 0 F \ u 0 A 1 0 \ u 0 A 1 3 - \ u 0 A 2 8 \ u 0 A 2 A - \ u 0 A 3 0 \ u 0 A 3 2 \ u 0 A 3 3 \ u 0 A 3 5 \ u 0 A 3 6 \ u 0 A 3 8 \ u 0 A 3 9 \ u 0 A 3 E - \ u 0 A 4 2 \ u 0 A 4 7 \ u 0 A 4 8 \ u 0 A 4 B \ u 0 A 4 C \ u 0 A 5 1 \ u 0 A 5 9 - \ u 0 A 5 C \ u 0 A 5 E \ u 0 A 7 0 - \ u 0 A 7 5 \ u 0 A 8 1 - \ u 0 A 8 3 \ u 0 A 8 5 - \ u 0 A 8 D \ u 0 A 8 F - \ u 0 A 9 1 \ u 0 A 9 3 - \ u 0 A A 8 \ u 0 A A A - \ u 0 A B 0 \ u 0 A B 2 \ u 0 A B 3 \ u 0 A B 5 - \ u 0 A B 9 \ u 0 A B D - \ u 0 A C 5 \ u 0 A C 7 - \ u 0 A C 9 \ u 0 A C B \ u 0 A C C \ u 0 A D 0 \ u 0 A E 0 - \ u 0 A E 3 \ u 0 B 0 1 - \ u 0 B 0 3 \ u 0 B 0 5 - \ u 0 B 0 C \ u 0 B 0 F \ u 0 B 1 0 \ u 0 B 1 3 - \ u 0 B 2 8 \ u 0 B 2 A - \ u 0 B 3 0 \ u 0 B 3 2 \ u 0 B 3 3 \ u 0 B 3 5 - \ u 0 B 3 9 \ u 0 B 3 D - \ u 0 B 4 4 \ u 0 B 4 7 \ u 0 B 4 8 \ u 0 B 4 B \ u 0 B 4 C \ u 0 B 5 6 \ u 0 B 5 7 \ u 0 B 5 C \ u 0 B 5 D \ u 0 B 5 F - \ u 0 B 6 3 \ u 0 B 7 1 \ u 0 B 8 2 \ u 0 B 8 3 \ u 0 B 8 5 - \ u 0 B 8 A \ u 0 B 8 E - \ u 0 B 9 0 \ u 0 B 9 2 - \ u 0 B 9 5 \ u 0 B 9 9 \ u 0 B 9 A \ u 0 B 9 C \ u 0 B 9 E \ u 0 B 9 F \ u 0 B A 3 \ u 0 B A 4 \ u 0 B A 8 - \ u 0 B A A \ u 0 B A E - \ u 0 B B 9 \ u 0 B B E - \ u 0 B C 2 \ u 0 B C 6 - \ u 0 B C 8 \ u 0 B C A - \ u 0 B C C \ u 0 B D 0 \ u 0 B D 7 \ u 0 C 0 1 - \ u 0 C 0 3 \ u 0 C 0 5 - \ u 0 C 0 C \ u 0 C 0 E - \ u 0 C 1 0 \ u 0 C 1 2 - \ u 0 C 2 8 \ u 0 C 2 A - \ u 0 C 3 3 \ u 0 C 3 5 - \ u 0 C 3 9 \ u 0 C 3 D - \ u 0 C 4 4 \ u 0 C 4 6 - \ u 0 C 4 8 \ u 0 C 4 A - \ u 0 C 4 C \ u 0 C 5 5 \ u 0 C 5 6 \ u 0 C 5 8 \ u 0 C 5 9 \ u 0 C 6 0 - \ u 0 C 6 3 \ u 0 C 8 2 \ u 0 C 8 3 \ u 0 C 8 5 - \ u 0 C 8 C \ u 0 C 8 E - \ u 0 C 9 0 \ u 0 C 9 2 - \ u 0 C A 8 \ u 0 C A A - \ u 0 C B 3 \ u 0 C B 5 - \ u 0 C B 9 \ u 0 C B D - \ u 0 C C 4 \ u 0 C C 6 - \ u 0 C C 8 \ u 0 C C A - \ u 0 C C C \ u 0 C D 5 \ u 0 C D 6 \ u 0 C D E \ u 0 C E 0 - \ u 0 C E 3 \ u 0 C F 1 \ u 0 C F 2 \ u 0 D 0 2 \ u 0 D 0 3 \ u 0 D 0 5 - \ u 0 D 0 C \ u 0 D 0 E - \ u 0 D 1 0 \ u 0 D 1 2 - \ u 0 D 3 A \ u 0 D 3 D - \ u 0 D 4 4 \ u 0 D 4 6 - \ u 0 D 4 8 \ u 0 D 4 A - \ u 0 D 4 C \ u 0 D 4 E \ u 0 D 5 7 \ u 0 D 6 0 - \ u 0 D 6 3 \ u 0 D 7 A - \ u 0 D 7 F \ u 0 D 8 2 \ u 0 D 8 3 \ u 0 D 8 5 - \ u 0 D 9 6 \ u 0 D 9 A - \ u 0 D B 1 \ u 0 D B 3 - \ u 0 D B B \ u 0 D B D \ u 0 D C 0 - \ u 0 D C 6 \ u 0 D C F - \ u 0 D D 4 \ u 0 D D 6 \ u 0 D D 8 - \ u 0 D D F \ u 0 D F 2 \ u 0 D F 3 \ u 0 E 0 1 - \ u 0 E 3 A \ u 0 E 4 0 - \ u 0 E 4 6 \ u 0 E 4 D \ u 0 E 8 1 \ u 0 E 8 2 \ u 0 E 8 4 \ u 0 E 8 7 \ u 0 E 8 8 \ u 0 E 8 A \ u 0 E 8 D \ u 0 E 9 4 - \ u 0 E 9 7 \ u 0 E 9 9 - \ u 0 E 9 F \ u 0 E A 1 - \ u 0 E A 3 \ u 0 E A 5 \ u 0 E A 7 \ u 0 E A A \ u 0 E A B \ u 0 E A D - \ u 0 E B 9 \ u 0 E B B - \ u 0 E B D \ u 0 E C 0 - \ u 0 E C 4 \ u 0 E C 6 \ u 0 E C D \ u 0 E D C - \ u 0 E D F \ u 0 F 0 0 \ u 0 F 4 0 - \ u 0 F 4 7 \ u 0 F 4 9 - \ u 0 F 6 C \ u 0 F 7 1 - \ u 0 F 8 1 \ u 0 F 8 8 - \ u 0 F 9 7 \ u 0 F 9 9 - \ u 0 F B C \ u 1 0 0 0 - \ u 1 0 3 6 \ u 1 0 3 8 \ u 1 0 3 B - \ u 1 0 3 F \ u 1 0 5 0 - \ u 1 0 6 2 \ u 1 0 6 5 - \ u 1 0 6 8 \ u 1 0 6 E - \ u 1 0 8 6 \ u 1 0 8 E \ u 1 0 9 C \ u 1 0 9 D \ u 1 0 A 0 - \ u 1 0 C 5 \ u 1 0 C 7 \ u 1 0 C D \ u 1 0 D 0 - \ u 1 0 F A \ u 1 0 F C - \ u 1 2 4 8 \ u 1 2 4 A - \ u 1 2 4 D \ u 1 2 5 0 - \ u 1 2 5 6 \ u 1 2 5 8 \ u 1 2 5 A - \ u 1 2 5 D \ u 1 2 6 0 - \ u 1 2 8 8 \ u 1 2 8 A - \ u 1 2 8 D \ u 1 2 9 0 - \ u 1 2 B 0 \ u 1 2 B 2 - \ u 1 2 B 5 \ u 1 2 B 8 - \ u 1 2 B E \ u 1 2 C 0 \ u 1 2 C 2 - \ u 1 2 C 5 \ u 1 2 C 8 - \ u 1 2 D 6 \ u 1 2 D 8 - \ u 1 3 1 0 \ u 1 3 1 2 - \ u 1 3 1 5 \ u 1 3 1 8 - \ u 1 3 5 A \ u 1 3 5 F \ u 1 3 8 0 - \ u 1 3 8 F \ u 1 3 A 0 - \ u 1 3 F 4 \ u 1 4 0 1 - \ u 1 6 6 C \ u 1 6 6 F - \ u 1 6 7 F \ u 1 6 8 1 - \ u 1 6 9 A \ u 1 6 A 0 - \ u 1 6 E A \ u 1 6 E E - \ u 1 6 F 0 \ u 1 7 0 0 - \ u 1 7 0 C \ u 1 7 0 E - \ u 1 7 1 3 \ u 1 7 2 0 - \ u 1 7 3 3 \ u 1 7 4 0 - \ u 1 7 5 3 \ u 1 7 6 0 - \ u 1 7 6 C \ u 1 7 6 E - \ u 1 7 7 0 \ u 1 7 7 2 \ u 1 7 7 3 \ u 1 7 8 0 - \ u 1 7 B 3 \ u 1 7 B 6 - \ u 1 7 C 8 \ u 1 7 D 7 \ u 1 7 D C \ u 1 8 2 0 - \ u 1 8 7 7 \ u 1 8 8 0 - \ u 1 8 A A \ u 1 8 B 0 - \ u 1 8 F 5 \ u 1 9 0 0 - \ u 1 9 1 C \ u 1 9 2 0 - \ u 1 9 2 B \ u 1 9 3 0 - \ u 1 9 3 8 \ u 1 9 5 0 - \ u 1 9 6 D \ u 1 9 7 0 - \ u 1 9 7 4 \ u 1 9 8 0 - \ u 1 9 A B \ u 1 9 B 0 - \ u 1 9 C 9 \ u 1 A 0 0 - \ u 1 A 1 B \ u 1 A 2 0 - \ u 1 A 5 E \ u 1 A 6 1 - \ u 1 A 7 4 \ u 1 A A 7 \ u 1 B 0 0 - \ u 1 B 3 3 \ u 1 B 3 5 - \ u 1 B 4 3 \ u 1 B 4 5 - \ u 1 B 4 B \ u 1 B 8 0 - \ u 1 B A 9 \ u 1 B A C - \ u 1 B A F \ u 1 B B A - \ u 1 B E 5 \ u 1 B E 7 - \ u 1 B F 1 \ u 1 C 0 0 - \ u 1 C 3 5 \ u 1 C 4 D - \ u 1 C 4 F \ u 1 C 5 A - \ u 1 C 7 D \ u 1 C E 9 - \ u 1 C E C \ u 1 C E E - \ u 1 C F 3 \ u 1 C F 5 \ u 1 C F 6 \ u 1 D 0 0 - \ u 1 D B F \ u 1 E 0 0 - \ u 1 F 1 5 \ u 1 F 1 8 - \ u 1 F 1 D \ u 1 F 2 0 - \ u 1 F 4 5 \ u 1 F 4 8 - \ u 1 F 4 D \ u 1 F 5 0 - \ u 1 F 5 7 \ u 1 F 5 9 \ u 1 F 5 B \ u 1 F 5 D \ u 1 F 5 F - \ u 1 F 7 D \ u 1 F 8 0 - \ u 1 F B 4 \ u 1 F B 6 - \ u 1 F B C \ u 1 F B E \ u 1 F C 2 - \ u 1 F C 4 \ u 1 F C 6 - \ u 1 F C C \ u 1 F D 0 - \ u 1 F D 3 \ u 1 F D 6 - \ u 1 F D B \ u 1 F E 0 - \ u 1 F E C \ u 1 F F 2 - \ u 1 F F 4 \ u 1 F F 6 - \ u 1 F F C \ u 2 0 7 1 \ u 2 0 7 F \ u 2 0 9 0 - \ u 2 0 9 C \ u 2 1 0 2 \ u 2 1 0 7 \ u 2 1 0 A - \ u 2 1 1 3 \ u 2 1 1 5 \ u 2 1 1 9 - \ u 2 1 1 D \ u 2 1 2 4 \ u 2 1 2 6 \ u 2 1 2 8 \ u 2 1 2 A - \ u 2 1 2 D \ u 2 1 2 F - \ u 2 1 3 9 \ u 2 1 3 C - \ u 2 1 3 F \ u 2 1 4 5 - \ u 2 1 4 9 \ u 2 1 4 E \ u 2 1 6 0 - \ u 2 1 8 8 \ u 2 4 B 6 - \ u 2 4 E 9 \ u 2 C 0 0 - \ u 2 C 2 E \ u 2 C 3 0 - \ u 2 C 5 E \ u 2 C 6 0 - \ u 2 C E 4 \ u 2 C E B - \ u 2 C E E \ u 2 C F 2 \ u 2 C F 3 \ u 2 D 0 0 - \ u 2 D 2 5 \ u 2 D 2 7 \ u 2 D 2 D \ u 2 D 3 0 - \ u 2 D 6 7 \ u 2 D 6 F \ u 2 D 8 0 - \ u 2 D 9 6 \ u 2 D A 0 - \ u 2 D A 6 \ u 2 D A 8 - \ u 2 D A E \ u 2 D B 0 - \ u 2 D B 6 \ u 2 D B 8 - \ u 2 D B E \ u 2 D C 0 - \ u 2 D C 6 \ u 2 D C 8 - \ u 2 D C E \ u 2 D D 0 - \ u 2 D D 6 \ u 2 D D 8 - \ u 2 D D E \ u 2 D E 0 - \ u 2 D F F \ u 2 E 2 F \ u 3 0 0 5 - \ u 3 0 0 7 \ u 3 0 2 1 - \ u 3 0 2 9 \ u 3 0 3 1 - \ u 3 0 3 5 \ u 3 0 3 8 - \ u 3 0 3 C \ u 3 0 4 1 - \ u 3 0 9 6 \ u 3 0 9 D - \ u 3 0 9 F \ u 3 0 A 1 - \ u 3 0 F A \ u 3 0 F C - \ u 3 0 F F \ u 3 1 0 5 - \ u 3 1 2 D \ u 3 1 3 1 - \ u 3 1 8 E \ u 3 1 A 0 - \ u 3 1
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$3 ) { 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 _oAscAlignType = { LEFT : 0 , CENTER : 1 , RIGHT : 2 , JUSTIFY : 3 , TOP : 4 , MIDDLE : 5 , BOTTOM : 6 } ; var c _oAscWrapStyle2 = { Inline : 0 , Square : 1 , Tight : 2 , Through : 3 , TopAndBottom : 4 , Behind : 5 , InFront : 6 } ; var c _oAscTableSelectionType = { Cell : 0 , Row : 1 , Column : 2 , Table : 3 } ; var c _oAscContextMenuTypes = { Common : 0 , ChangeHdrFtr : 1 } ; var c _oAscMouseMoveLockedObjectType = { Common : 0 , Header : 1 , Footer : 2 } ; var c _oAscCollaborativeMarksShowType = { None : - 1 , All : 0 , LastChanges : 1 } ;
var c _oAscChangeLevel = { BringToFront : 0 , BringForward : 1 , SendToBack : 2 , BringBackward : 3 } ; var c _oAscVertAlignJc = { Top : 0 , Center : 1 , Bottom : 2 } ; var c _oAscTableLayout = { AutoFit : 0 , Fixed : 1 } ; var c _oAscAlignShapeType = { ALIGN _LEFT : 0 , ALIGN _RIGHT : 1 , ALIGN _TOP : 2 , ALIGN _BOTTOM : 3 , ALIGN _CENTER : 4 , ALIGN _MIDDLE : 5 } ; var TABLE _STYLE _WIDTH _PIX = 72 ; var TABLE _STYLE _HEIGHT _PIX = 52 ; var c _oAscRevisionsObjectType = { Image : 0 , Shape : 1 , Chart : 2 , MathEquation : 3 } ; var c _oSerFormat = { Version : 5 , Signature : "DOCY" } ;
var c _oAscFootnotePos = { BeneathText : 0 , DocEnd : 1 , PageBottom : 2 , SectEnd : 3 } ; var c _oAscEndnotePos = { DocEnd : 0 , SectEnd : 1 } ; var c _oAscFootnoteRestart = { Continuous : 0 , EachSect : 1 , EachPage : 2 } ; var c _oAscSdtLevelType = { Block : 1 , Inline : 2 , Row : 3 , Cell : 4 } ; var c _oAscTOCStylesType = { Current : 0 , Simple : 1 , Standard : 2 , Modern : 3 , Classic : 4 , Web : 5 } ; var c _oAscTOFStylesType = { Current : 0 , Classic : 1 , Distinctive : 2 , Centered : 3 , Formal : 4 , Simple : 5 , Web : 6 } ; var c _oAscStyleType = { Paragraph : 1 , Numbering : 2 , Table : 3 , Character : 4 } ;
var c _oAscHyperlinkAnchor = { Heading : 1 , Bookmark : 2 } ; var c _oAscSdtCheckBoxDefaults = { CheckedSymbol : 9746 , UncheckedSymbol : 9744 , CheckedFont : "MS Gothic" , UncheckedFont : "MS Gothic" } ; window [ "flat_desine" ] = false ;
var c _oAscDocumentShortcutType = { InsertPageBreak : 1 , InsertLineBreak : 2 , InsertColumnBreak : 3 , ResetChar : 4 , NonBreakingSpace : 5 , ApplyHeading1 : 6 , ApplyHeading2 : 7 , ApplyHeading3 : 8 , Strikeout : 9 , ShowAll : 10 , EditSelectAll : 11 , Bold : 12 , CopyFormat : 13 , CopyrightSign : 14 , InsertEndnoteNow : 15 , CenterPara : 16 , EuroSign : 17 , InsertFootnoteNow : 18 , Italic : 19 , JustifyPara : 20 , InsertHyperlink : 21 , ApplyListBullet : 22 , LeftPara : 23 , Indent : 24 , UnIndent : 25 , PrintPreviewAndPrint : 26 , InsertPageNumber : 27 , RegisteredSign : 28 , RightPara : 29 , Save : 30 , TrademarkSign : 31 ,
Underline : 32 , PasteFormat : 33 , EditUndo : 34 , EditRedo : 35 , EmDash : 36 , EnDash : 37 , UpdateFields : 38 , InsertEquation : 39 , Superscript : 40 , NonBreakingHyphen : 41 , SoftHyphen : 42 , HorizontalEllipsis : 43 , Subscript : 44 , IncreaseFontSize : 45 , DecreaseFontSize : 46 } ; var c _oAscDocumentRefenceToType = { Text : 0 , PageNum : 1 , ParaNum : 2 , ParaNumNoContext : 3 , ParaNumFullContex : 4 , AboveBelow : 5 , OnlyLabelAndNumber : 6 , OnlyCaptionText : 7 , NoteNumber : 8 , NoteNumberFormatted : 9 } ; var c _oAscTextToTableSeparator = { Paragraph : 1 , Tab : 2 , Symbol : 3 } ;
var c _oAscTextToTableAutoFitType = { Fixed : 1 , Content : 2 , Window : 3 } ; var prot ; window [ "Asc" ] = window [ "Asc" ] || { } ; window [ "AscCommonWord" ] = window [ "AscCommonWord" ] || { } ; prot = window [ "Asc" ] [ "c_oAscWrapStyle2" ] = c _oAscWrapStyle2 ; prot [ "Inline" ] = c _oAscWrapStyle2 . Inline ; prot [ "Square" ] = c _oAscWrapStyle2 . Square ; prot [ "Tight" ] = c _oAscWrapStyle2 . Tight ; prot [ "Through" ] = c _oAscWrapStyle2 . Through ; prot [ "TopAndBottom" ] = c _oAscWrapStyle2 . TopAndBottom ; prot [ "Behind" ] = c _oAscWrapStyle2 . Behind ; prot [ "InFront" ] = c _oAscWrapStyle2 . InFront ;
prot = window [ "Asc" ] [ "c_oAscContextMenuTypes" ] = window [ "Asc" ] . c _oAscContextMenuTypes = c _oAscContextMenuTypes ; prot [ "Common" ] = c _oAscContextMenuTypes . Common ; prot [ "ChangeHdrFtr" ] = c _oAscContextMenuTypes . ChangeHdrFtr ; prot = window [ "Asc" ] [ "c_oAscCollaborativeMarksShowType" ] = c _oAscCollaborativeMarksShowType ; prot [ "None" ] = c _oAscCollaborativeMarksShowType . None ; prot [ "All" ] = c _oAscCollaborativeMarksShowType . All ; prot [ "LastChanges" ] = c _oAscCollaborativeMarksShowType . LastChanges ; prot = window [ "Asc" ] [ "c_oAscChangeLevel" ] = c _oAscChangeLevel ;
prot [ "BringToFront" ] = c _oAscChangeLevel . BringToFront ; prot [ "BringForward" ] = c _oAscChangeLevel . BringForward ; prot [ "SendToBack" ] = c _oAscChangeLevel . SendToBack ; prot [ "BringBackward" ] = c _oAscChangeLevel . BringBackward ; 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_oAscTableLayout" ] = c _oAscTableLayout ; prot [ "AutoFit" ] = c _oAscTableLayout . AutoFit ; prot [ "Fixed" ] = c _oAscTableLayout . Fixed ;
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_oAscFootnotePos" ] = window [ "Asc" ] . c _oAscFootnotePos = c _oAscFootnotePos ; prot [ "BeneathText" ] = c _oAscFootnotePos . BeneathText ;
prot [ "DocEnd" ] = c _oAscFootnotePos . DocEnd ; prot [ "PageBottom" ] = c _oAscFootnotePos . PageBottom ; prot [ "SectEnd" ] = c _oAscFootnotePos . SectEnd ; prot = window [ "Asc" ] [ "c_oAscEndnotePos" ] = window [ "Asc" ] . c _oAscEndnotePos = c _oAscEndnotePos ; prot [ "DocEnd" ] = c _oAscEndnotePos . DocEnd ; prot [ "SectEnd" ] = c _oAscEndnotePos . SectEnd ; prot = window [ "Asc" ] [ "c_oAscFootnoteRestart" ] = window [ "Asc" ] . c _oAscFootnoteRestart = c _oAscFootnoteRestart ; prot [ "Continuous" ] = c _oAscFootnoteRestart . Continuous ; prot [ "EachSect" ] = c _oAscFootnoteRestart . EachSect ;
prot [ "EachPage" ] = c _oAscFootnoteRestart . EachPage ; prot = window [ "Asc" ] [ "c_oAscSdtLevelType" ] = window [ "Asc" ] . c _oAscSdtLevelType = c _oAscSdtLevelType ; prot [ "Block" ] = c _oAscSdtLevelType . Block ; prot [ "Inline" ] = c _oAscSdtLevelType . Inline ; prot [ "Row" ] = c _oAscSdtLevelType . Row ; prot [ "Cell" ] = c _oAscSdtLevelType . Cell ; prot = window [ "Asc" ] [ "c_oAscTOCStylesType" ] = window [ "Asc" ] . c _oAscTOCStylesType = c _oAscTOCStylesType ; prot [ "Current" ] = c _oAscTOCStylesType . Current ; prot [ "Simple" ] = c _oAscTOCStylesType . Simple ; prot [ "Standard" ] = c _oAscTOCStylesType . Standard ;
prot [ "Modern" ] = c _oAscTOCStylesType . Modern ; prot [ "Classic" ] = c _oAscTOCStylesType . Classic ; prot [ "Web" ] = c _oAscTOCStylesType . Web ; prot = window [ "Asc" ] [ "c_oAscTOFStylesType" ] = window [ "Asc" ] . c _oAscTOFStylesType = c _oAscTOFStylesType ; prot [ "Current" ] = prot . Current ; prot [ "Classic" ] = prot . Classic ; prot [ "Distinctive" ] = prot . Distinctive ; prot [ "Centered" ] = prot . Centered ; prot [ "Formal" ] = prot . Formal ; prot [ "Simple" ] = prot . Simple ; prot [ "Web" ] = prot . Web ; prot = window [ "Asc" ] [ "c_oAscStyleType" ] = window [ "Asc" ] . c _oAscStyleType = c _oAscStyleType ;
prot [ "Paragraph" ] = c _oAscStyleType . Paragraph ; prot [ "Numbering" ] = c _oAscStyleType . Numbering ; prot [ "Table" ] = c _oAscStyleType . Table ; prot [ "Character" ] = c _oAscStyleType . Character ; prot = window [ "Asc" ] [ "c_oAscHyperlinkAnchor" ] = window [ "Asc" ] . c _oAscHyperlinkAnchor = c _oAscHyperlinkAnchor ; prot [ "Heading" ] = c _oAscHyperlinkAnchor . Heading ; prot [ "Bookmark" ] = c _oAscHyperlinkAnchor . Bookmark ; window [ "AscCommon" ] = window [ "AscCommon" ] || { } ; window [ "AscCommon" ] . c _oSerFormat = c _oSerFormat ; window [ "AscCommon" ] . CurFileVersion = c _oSerFormat . Version ;
prot = window [ "Asc" ] [ "c_oAscSdtCheckBoxDefaults" ] = window [ "Asc" ] . c _oAscSdtCheckBoxDefaults = c _oAscSdtCheckBoxDefaults ; prot [ "CheckedSymbol" ] = prot . CheckedSymbol ; prot [ "UncheckedSymbol" ] = prot . UncheckedSymbol ; prot [ "CheckedFont" ] = prot . CheckedFont ; prot [ "UncheckedFont" ] = prot . UncheckedFont ; window [ "Asc" ] [ "NoYLimit" ] = window [ "Asc" ] . NoYLimit = 2147483647 ; prot = window [ "Asc" ] [ "c_oAscDocumentShortcutType" ] = window [ "Asc" ] . c _oAscDocumentShortcutType = c _oAscDocumentShortcutType ; prot [ "InsertPageBreak" ] = prot . InsertPageBreak ;
prot [ "InsertLineBreak" ] = prot . InsertLineBreak ; prot [ "InsertColumnBreak" ] = prot . InsertColumnBreak ; prot [ "ResetChar" ] = prot . ResetChar ; prot [ "NonBreakingSpace" ] = prot . NonBreakingSpace ; prot [ "ApplyHeading1" ] = prot . ApplyHeading1 ; prot [ "ApplyHeading2" ] = prot . ApplyHeading2 ; prot [ "ApplyHeading3" ] = prot . ApplyHeading3 ; prot [ "Strikeout" ] = prot . Strikeout ; prot [ "ShowAll" ] = prot . ShowAll ; prot [ "EditSelectAll" ] = prot . EditSelectAll ; prot [ "Bold" ] = prot . Bold ; prot [ "CopyFormat" ] = prot . CopyFormat ; prot [ "CopyrightSign" ] = prot . CopyrightSign ;
prot [ "InsertEndnoteNow" ] = prot . InsertEndnoteNow ; prot [ "CenterPara" ] = prot . CenterPara ; prot [ "EuroSign" ] = prot . EuroSign ; prot [ "InsertFootnoteNow" ] = prot . InsertFootnoteNow ; prot [ "Italic" ] = prot . Italic ; prot [ "JustifyPara" ] = prot . JustifyPara ; prot [ "InsertHyperlink" ] = prot . InsertHyperlink ; prot [ "ApplyListBullet" ] = prot . ApplyListBullet ; prot [ "LeftPara" ] = prot . LeftPara ; prot [ "Indent" ] = prot . Indent ; prot [ "UnIndent" ] = prot . UnIndent ; prot [ "PrintPreviewAndPrint" ] = prot . PrintPreviewAndPrint ; prot [ "InsertPageNumber" ] = prot . InsertPageNumber ;
prot [ "RegisteredSign" ] = prot . RegisteredSign ; prot [ "RightPara" ] = prot . RightPara ; prot [ "Save" ] = prot . Save ; prot [ "TrademarkSign" ] = prot . TrademarkSign ; prot [ "Underline" ] = prot . Underline ; prot [ "PasteFormat" ] = prot . PasteFormat ; prot [ "EditUndo" ] = prot . EditUndo ; prot [ "EditRedo" ] = prot . EditRedo ; prot [ "EmDash" ] = prot . EmDash ; prot [ "EnDash" ] = prot . EnDash ; prot [ "UpdateFields" ] = prot . UpdateFields ; prot [ "InsertEquation" ] = prot . InsertEquation ; prot [ "Superscript" ] = prot . Superscript ; prot [ "NonBreakingHyphen" ] = prot . NonBreakingHyphen ;
prot [ "SoftHyphen" ] = prot . SoftHyphen ; prot [ "HorizontalEllipsis" ] = prot . HorizontalEllipsis ; prot [ "Subscript" ] = prot . Subscript ; prot [ "IncreaseFontSize" ] = prot . IncreaseFontSize ; prot [ "DecreaseFontSize" ] = prot . DecreaseFontSize ; prot = window [ "Asc" ] [ "c_oAscDocumentRefenceToType" ] = window [ "Asc" ] . c _oAscDocumentRefenceToType = c _oAscDocumentRefenceToType ; prot [ "Text" ] = prot . Text ; prot [ "PageNum" ] = prot . PageNum ; prot [ "ParaNum" ] = prot . ParaNum ; prot [ "ParaNumNoContext" ] = prot . ParaNumNoContext ; prot [ "ParaNumFullContex" ] = prot . ParaNumFullContex ;
prot [ "AboveBelow" ] = prot . AboveBelow ; prot [ "OnlyLabelAndNumber" ] = prot . OnlyLabelAndNumber ; prot [ "OnlyCaptionText" ] = prot . OnlyCaptionText ; prot [ "NoteNumber" ] = prot . NoteNumber ; prot [ "NoteNumberFormatted" ] = prot . NoteNumberFormatted ; prot = window [ "Asc" ] [ "c_oAscTextToTableSeparator" ] = window [ "Asc" ] . c _oAscTextToTableSeparator = c _oAscTextToTableSeparator ; prot [ "Paragraph" ] = prot . Paragraph ; prot [ "Tab" ] = prot . Tab ; prot [ "Symbol" ] = prot . Symbol ;
prot = window [ "Asc" ] [ "c_oAscTextToTableAutoFitType" ] = window [ "Asc" ] . c _oAscTextToTableAutoFitType = c _oAscTextToTableAutoFitType ; prot [ "Fixed" ] = prot . Fixed ; prot [ "Content" ] = prot . Content ; prot [ "Window" ] = prot . Window ; "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 CWordCollaborativeEditing ( ) { AscCommon . CCollaborativeEditingBase . call ( this ) ; this . m _oLogicDocument = null ; this . m _aDocumentPositions = new AscCommon . CDocumentPositionsManager ; this . m _aForeignCursorsPos = new AscCommon . CDocumentPositionsManager ; this . m _aForeignCursors = { } ; this . m _aForeignCursorsXY = { } ; this . m _aForeignCursorsToShow = { } ; this . m _aSkipContentControlsOnCheckEditingLock = { } } CWordCollaborativeEditing . prototype = Object . create ( AscCommon . CCollaborativeEditingBase . prototype ) ;
CWordCollaborativeEditing . prototype . constructor = CWordCollaborativeEditing ; CWordCollaborativeEditing . prototype . Clear = function ( ) { AscCommon . CCollaborativeEditingBase . prototype . Clear . apply ( this , arguments ) ; this . Remove _AllForeignCursors ( ) } ;
CWordCollaborativeEditing . prototype . Send _Changes = function ( IsUserSave , AdditionalInfo , IsUpdateInterface , isAfterAskSave ) { this . Refresh _DCChanges ( ) ; 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 UnlockCount = 0 ; var bCollaborative = this . getCollaborativeEditing ( ) ; if ( bCollaborative ) { UnlockCount = this . m _aNeedUnlock . length ; 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 ) ; editor . CoAuthoringApi . releaseLocks ( Class . Get _Id ( ) ) } this . m _aNeedUnlock . length = 0 ; this . m _aNeedUnlock2 . length =
0 } var deleteIndex = null === AscCommon . History . SavedIndex ? null : SumIndex ; 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 ) ; if ( false !== IsUpdateInterface ) editor . WordControl . m _oLogicDocument . Document _UpdateInterfaceState ( ) ; editor . WordControl . m _oLogicDocument . Document _UpdateUndoRedoState ( ) ; if ( 0 !== UnlockCount || 1 !== this . m _nUseType ) { editor . WordControl . m _oLogicDocument . DrawingDocument . ClearCachePages ( ) ; editor . WordControl . m _oLogicDocument . DrawingDocument . FirePaint ( ) } editor . WordControl . m _oLogicDocument . Check _CompositeInputRun ( ) } ;
CWordCollaborativeEditing . prototype . Release _Locks = function ( ) { 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 ) { this . m _aNeedUnlock [ Index ] . Lock . Set _Type ( AscCommon . locktype _None , false ) ; if ( this . m _aNeedUnlock [ Index ] instanceof AscCommonWord . CHeaderFooterController ) editor . sync _UnLockHeaderFooters ( ) ; else if ( this . m _aNeedUnlock [ Index ] instanceof
AscCommonWord . CDocument ) editor . sync _UnLockDocumentProps ( ) ; else if ( this . m _aNeedUnlock [ Index ] instanceof AscCommon . CComment ) editor . sync _UnLockComment ( this . m _aNeedUnlock [ Index ] . Get _Id ( ) ) ; else if ( this . m _aNeedUnlock [ Index ] instanceof AscCommonWord . CGraphicObjects ) editor . sync _UnLockDocumentSchema ( ) ; else if ( this . m _aNeedUnlock [ Index ] 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 ) } } ;
CWordCollaborativeEditing . prototype . OnEnd _Load _Objects = function ( ) { AscCommon . CollaborativeEditing . Set _GlobalLock ( false ) ; AscCommon . CollaborativeEditing . Set _GlobalLockSelection ( false ) ; var nPageIndex = undefined ; if ( this . Is _Fast ( ) ) { var oParagraph = this . m _oLogicDocument . GetCurrentParagraph ( ) ; nPageIndex = oParagraph ? Math . max ( oParagraph . GetCurrentPageAbsolute ( ) , editor . GetCurrentVisiblePage ( ) ) : undefined } this . m _oLogicDocument . ResumeRecalculate ( ) ; this . m _oLogicDocument . RecalculateByChanges ( this . m _aAllChanges , this . m _nRecalcIndexStart ,
this . m _nRecalcIndexEnd , false , nPageIndex ) ; this . m _oLogicDocument . UpdateTracks ( ) ; editor . sync _EndAction ( Asc . c _oAscAsyncActionType . BlockInteraction , Asc . c _oAscAsyncAction . ApplyChanges ) } ; CWordCollaborativeEditing . prototype . Check _MergeData = function ( ) { var LogicDocument = editor . WordControl . m _oLogicDocument ; LogicDocument . Comments . Check _MergeData ( ) } ;
CWordCollaborativeEditing . prototype . OnEnd _CheckLock = function ( isDontLockInFastMode , fCallback ) { var aIds = [ ] ; for ( var nIndex = 0 , nCount = this . m _aCheckLocks . length ; nIndex < nCount ; ++ nIndex ) { var oItem = this . m _aCheckLocks [ nIndex ] ; if ( true === oItem ) { if ( fCallback ) fCallback ( true ) ; return true } else if ( false !== oItem ) aIds . push ( oItem ) } if ( true === isDontLockInFastMode && true === this . Is _Fast ( ) ) if ( fCallback ) { fCallback ( false ) ; return true } else return false ; if ( fCallback ) { if ( aIds . length > 0 ) { var oThis = this ; editor . CoAuthoringApi . askLock ( aIds ,
function ( result ) { oThis . Set _GlobalLock ( false ) ; if ( result [ "lock" ] ) { oThis . private _LockByMe ( ) ; fCallback ( false ) } else if ( result [ "error" ] ) fCallback ( true ) } ) ; this . Set _GlobalLock ( true ) } else fCallback ( false ) ; return true } else { if ( aIds . length > 0 ) { editor . CoAuthoringApi . askLock ( aIds , this . OnCallback _AskLock ) ; if ( - 1 === this . m _nUseType ) this . Set _GlobalLock ( true ) ; else { this . private _LockByMe ( ) ; this . m _aCheckLocks . length = 0 } } return false } } ;
CWordCollaborativeEditing . prototype . private _LockByMe = function ( ) { for ( var nIndex = 0 , nCount = this . m _aCheckLocks . length ; nIndex < nCount ; ++ nIndex ) { var oItem = this . m _aCheckLocks [ nIndex ] ; if ( true !== oItem && false !== oItem ) { var oClass = AscCommon . g _oTableId . Get _ById ( oItem ) ; if ( oClass ) { oClass . Lock . Set _Type ( AscCommon . locktype _Mine ) ; this . Add _Unlock2 ( oClass ) } } } } ;
CWordCollaborativeEditing . prototype . OnCallback _AskLock = function ( result ) { var oThis = AscCommon . CollaborativeEditing ; var oEditor = editor ; if ( true === oThis . Get _GlobalLock ( ) ) { if ( false == oEditor . checkLongActionCallback ( oThis . OnCallback _AskLock , result ) ) return ; oThis . Set _GlobalLock ( false ) ; if ( result [ "lock" ] ) oThis . private _LockByMe ( ) ; else if ( result [ "error" ] ) { if ( true === oEditor . isChartEditor ) oEditor . sync _closeChartEditor ( ) ; oEditor . WordControl . m _oLogicDocument . Document _Undo ( ) ; AscCommon . History . Clear _Redo ( ) } oEditor . isChartEditor =
false } } ; CWordCollaborativeEditing . prototype . AddContentControlForSkippingOnCheckEditingLock = function ( oContentControl ) { this . m _aSkipContentControlsOnCheckEditingLock [ oContentControl . GetId ( ) ] = oContentControl } ; CWordCollaborativeEditing . prototype . RemoveContentControlForSkippingOnCheckEditingLock = function ( oContentControl ) { delete this . m _aSkipContentControlsOnCheckEditingLock [ oContentControl . GetId ( ) ] } ;
CWordCollaborativeEditing . prototype . IsNeedToSkipContentControlOnCheckEditingLock = function ( oContentControl ) { if ( this . m _aSkipContentControlsOnCheckEditingLock [ oContentControl . GetId ( ) ] === oContentControl ) return true ; return false } ; CWordCollaborativeEditing . prototype . Start _CollaborationEditing = function ( ) { this . m _nUseType = - 1 } ;
CWordCollaborativeEditing . prototype . End _CollaborationEditing = function ( ) { if ( this . m _nUseType <= 0 ) if ( this . m _oLogicDocument && ! this . m _oLogicDocument . GetHistory ( ) . Have _Changes ( ) && ! this . Have _OtherChanges ( ) ) this . m _nUseType = 1 ; else this . m _nUseType = 0 } ; CWordCollaborativeEditing . prototype . Clear _DocumentPositions = function ( ) { this . m _aDocumentPositions . Clear _DocumentPositions ( ) } ; CWordCollaborativeEditing . prototype . Add _DocumentPosition = function ( DocumentPos ) { this . m _aDocumentPositions . Add _DocumentPosition ( DocumentPos ) } ;
CWordCollaborativeEditing . 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 } ;
CWordCollaborativeEditing . prototype . Remove _ForeignCursor = function ( UserId ) { this . m _aForeignCursorsPos . Remove _DocumentPosition ( this . m _aCursorsToUpdate [ UserId ] ) ; delete this . m _aForeignCursors [ UserId ] ; var DrawingDocument = this . m _oLogicDocument . DrawingDocument ; DrawingDocument . Collaborative _RemoveTarget ( UserId ) ; this . Remove _ForeignCursorXY ( UserId ) ; this . Remove _ForeignCursorToShow ( UserId ) } ; CWordCollaborativeEditing . prototype . Remove _AllForeignCursors = function ( ) { for ( var UserId in this . m _aForeignCursors ) this . Remove _ForeignCursor ( UserId ) } ;
CWordCollaborativeEditing . prototype . RemoveMyCursorFromOthers = function ( ) { this . m _oLogicDocument . Api . CoAuthoringApi . sendCursor ( "" ) } ; CWordCollaborativeEditing . prototype . Update _DocumentPositionsOnAdd = function ( Class , Pos ) { this . m _aDocumentPositions . Update _DocumentPositionsOnAdd ( Class , Pos ) ; this . m _aForeignCursorsPos . Update _DocumentPositionsOnAdd ( Class , Pos ) } ;
CWordCollaborativeEditing . prototype . Update _DocumentPositionsOnRemove = function ( Class , Pos , Count ) { this . m _aDocumentPositions . Update _DocumentPositionsOnRemove ( Class , Pos , Count ) ; this . m _aForeignCursorsPos . Update _DocumentPositionsOnRemove ( Class , Pos , Count ) } ; CWordCollaborativeEditing . prototype . OnStart _SplitRun = function ( SplitRun , SplitPos ) { this . m _aDocumentPositions . OnStart _SplitRun ( SplitRun , SplitPos ) ; this . m _aForeignCursorsPos . OnStart _SplitRun ( SplitRun , SplitPos ) } ;
CWordCollaborativeEditing . prototype . OnEnd _SplitRun = function ( NewRun ) { this . m _aDocumentPositions . OnEnd _SplitRun ( NewRun ) ; this . m _aForeignCursorsPos . OnEnd _SplitRun ( NewRun ) } ; CWordCollaborativeEditing . prototype . Update _DocumentPosition = function ( DocPos ) { this . m _aDocumentPositions . Update _DocumentPosition ( DocPos ) } ;
CWordCollaborativeEditing . prototype . Update _ForeignCursorsPositions = function ( ) { 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 ) } } ;
CWordCollaborativeEditing . prototype . Update _ForeignCursorPosition = function ( UserId , Run , InRunPos , isRemoveLabel ) { var DrawingDocument = this . m _oLogicDocument . DrawingDocument ; if ( ! ( Run instanceof AscCommonWord . ParaRun ) ) return ; var Paragraph = Run . GetParagraph ( ) ; if ( ! Paragraph ) { 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 , XY . PageNum , 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 ) } } ;
CWordCollaborativeEditing . prototype . Check _ForeignCursorsLabels = function ( X , Y , PageIndex ) { if ( ! this . m _oLogicDocument ) return ; var DrawingDocument = this . m _oLogicDocument . Get _DrawingDocument ( ) ; 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 || Math . abs ( X - Cursor . X ) < Px7 &&
Cursor . Y - Px3 < Y && Y < Cursor . Y + Cursor . H + Px3 && Cursor . PageIndex === PageIndex ) this . Show _ForeignCursorLabel ( UserId ) } } ;
CWordCollaborativeEditing . prototype . Show _ForeignCursorLabel = function ( UserId ) { if ( ! this . m _oLogicDocument ) return ; var Api = this . m _oLogicDocument . Get _Api ( ) ; var DrawingDocument = this . m _oLogicDocument . Get _DrawingDocument ( ) ; 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 ) } ; CWordCollaborativeEditing . prototype . Add _ForeignCursorToShow = function ( UserId ) { this . m _aForeignCursorsToShow [ UserId ] = true } ; CWordCollaborativeEditing . prototype . Remove _ForeignCursorToShow = function ( UserId ) { delete this . m _aForeignCursorsToShow [ UserId ] } ;
CWordCollaborativeEditing . 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 ) { var Api = this . m _oLogicDocument . Get _Api ( ) ; clearTimeout ( Cursor . ShowId ) ; Cursor . ShowId = null ; Api . 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 } ; CWordCollaborativeEditing . prototype . Remove _ForeignCursorXY = function ( UserId ) { if ( this . m _aForeignCursorsXY [ UserId ] ) { if ( this . m _aForeignCursorsXY [ UserId ] . ShowId ) { var Api = this . m _oLogicDocument . Get _Api ( ) ; Api . sync _HideForeignCursorLabel ( UserId ) ; clearTimeout ( this . m _aForeignCursorsXY [ UserId ] . ShowId ) } delete this . m _aForeignCursorsXY [ UserId ] } } ;
CWordCollaborativeEditing . prototype . Update _ForeignCursorLabelPosition = function ( UserId , X , Y , Color ) { if ( ! this . m _oLogicDocument ) return ; var Cursor = this . m _aForeignCursorsXY [ UserId ] ; if ( ! Cursor || ! Cursor . ShowId ) return ; var Api = this . m _oLogicDocument . Get _Api ( ) ; Api . sync _ShowForeignCursorLabel ( UserId , X , Y , Color ) } ;
CWordCollaborativeEditing . prototype . OnEnd _ReadForeignChanges = function ( ) { AscCommon . CCollaborativeEditingBase . prototype . OnEnd _ReadForeignChanges . apply ( this , arguments ) ; if ( this . m _oLogicDocument && this . m _oLogicDocument . GetApi ( ) ) { var oApi = this . m _oLogicDocument . GetApi ( ) ; if ( this . m _oLogicDocument . GetBookmarksManager ( ) . IsNeedUpdate ( ) ) oApi . asc _OnBookmarksUpdate ( ) ; if ( this . m _oLogicDocument && this . m _oLogicDocument . ClearListsCache ) this . m _oLogicDocument . ClearListsCache ( ) } } ;
CWordCollaborativeEditing . prototype . private _RecalculateDocument = function ( arrChanges ) { this . m _oLogicDocument . RecalculateByChanges ( arrChanges ) } ; window [ "AscCommon" ] = window [ "AscCommon" ] || { } ; window [ "AscCommon" ] . CWordCollaborativeEditing = CWordCollaborativeEditing ; window [ "AscCommon" ] . CollaborativeEditing = new CWordCollaborativeEditing ; "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 ) { return ; 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 g _fontApplication = null ; var c _oAscAdvancedOptionsAction = AscCommon . c _oAscAdvancedOptionsAction ; var DownloadType = AscCommon . DownloadType ; var c _oAscFormatPainterState = AscCommon . c _oAscFormatPainterState ; 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 _None = AscCommon . changestype _None ; var changestype _Paragraph _Content =
AscCommon . changestype _Paragraph _Content ; var changestype _Paragraph _Properties = AscCommon . changestype _Paragraph _Properties ; var changestype _Table _Properties = AscCommon . changestype _Table _Properties ; var changestype _Table _RemoveCells = AscCommon . changestype _Table _RemoveCells ; var changestype _HdrFtr = AscCommon . changestype _HdrFtr ; var asc _CTextFontFamily = AscCommon . asc _CTextFontFamily ; 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 _oAscFontRenderingModeType = Asc . c _oAscFontRenderingModeType ; var c _oAscAsyncActionType = Asc . c _oAscAsyncActionType ; var c _oAscTypeSelectElement = Asc . c _oAscTypeSelectElement ; var c _oAscFill =
Asc . c _oAscFill ; var asc _CImgProperty = Asc . asc _CImgProperty ; var asc _CShapeFill = Asc . asc _CShapeFill ; var asc _CFillBlip = Asc . asc _CFillBlip ; var c _oAscSdtLockType = Asc . c _oAscSdtLockType ; function CAscSection ( ) { this . PageWidth = 0 ; this . PageHeight = 0 ; this . MarginLeft = 0 ; this . MarginRight = 0 ; this . MarginTop = 0 ; this . MarginBottom = 0 } CAscSection . prototype . get _PageWidth = function ( ) { return this . PageWidth } ; CAscSection . prototype . get _PageHeight = function ( ) { return this . PageHeight } ; CAscSection . prototype . get _MarginLeft = function ( ) { return this . MarginLeft } ;
CAscSection . prototype . get _MarginRight = function ( ) { return this . MarginRight } ; CAscSection . prototype . get _MarginTop = function ( ) { return this . MarginTop } ; CAscSection . prototype . get _MarginBottom = function ( ) { return this . MarginBottom } ; function CHeaderProp ( obj ) { if ( obj ) { this . Type = undefined != obj . Type ? obj . Type : null ; this . Position = undefined != obj . Position ? obj . Position : null ; this . DifferentFirst = undefined != obj . DifferentFirst ? obj . DifferentFirst : null ; this . DifferentEvenOdd = undefined != obj . DifferentEvenOdd ? obj . DifferentEvenOdd :
null ; this . LinkToPrevious = undefined != obj . LinkToPrevious ? obj . LinkToPrevious : null ; this . Locked = undefined != obj . Locked ? obj . Locked : false ; this . StartPageNumber = undefined != obj . StartPageNumber ? obj . StartPageNumber : - 1 } else { this . Type = AscCommon . hdrftr _Footer ; this . Position = 12.5 ; this . DifferentFirst = false ; this . DifferentEvenOdd = false ; this . LinkToPrevious = null ; this . Locked = false ; this . StartPageNumber = - 1 } } CHeaderProp . prototype . get _Type = function ( ) { return this . Type } ; CHeaderProp . prototype . put _Type = function ( v ) { this . Type = v } ;
CHeaderProp . prototype . get _Position = function ( ) { return this . Position } ; CHeaderProp . prototype . put _Position = function ( v ) { this . Position = v } ; CHeaderProp . prototype . get _DifferentFirst = function ( ) { return this . DifferentFirst } ; CHeaderProp . prototype . put _DifferentFirst = function ( v ) { this . DifferentFirst = v } ; CHeaderProp . prototype . get _DifferentEvenOdd = function ( ) { return this . DifferentEvenOdd } ; CHeaderProp . prototype . put _DifferentEvenOdd = function ( v ) { this . DifferentEvenOdd = v } ; CHeaderProp . prototype . get _LinkToPrevious = function ( ) { return this . LinkToPrevious } ;
CHeaderProp . prototype . get _Locked = function ( ) { return this . Locked } ; CHeaderProp . prototype . get _StartPageNumber = function ( ) { return this . StartPageNumber } ; CHeaderProp . prototype . put _StartPageNumber = function ( nStartPage ) { this . StartPageNumber = nStartPage } ; var DocumentPageSize = new function ( ) { this . oSizes = [ { name : "US Letter" , w _mm : 215.9 , h _mm : 279.4 , w _tw : 12240 , h _tw : 15840 } , { name : "US Legal" , w _mm : 215.9 , h _mm : 355.6 , w _tw : 12240 , h _tw : 20160 } , { name : "A4" , w _mm : 210 , h _mm : 297 , w _tw : 11907 , h _tw : 16839 } , { name : "A5" , w _mm : 148.1 , h _mm : 209.9 ,
w _tw : 8391 , h _tw : 11907 } , { name : "B5" , w _mm : 176 , h _mm : 250.1 , w _tw : 9979 , h _tw : 14175 } , { name : "Envelope #10" , w _mm : 104.8 , h _mm : 241.3 , w _tw : 5940 , h _tw : 13680 } , { name : "Envelope DL" , w _mm : 110.1 , h _mm : 220.1 , w _tw : 6237 , h _tw : 12474 } , { name : "Tabloid" , w _mm : 279.4 , h _mm : 431.7 , w _tw : 15842 , h _tw : 24477 } , { name : "A3" , w _mm : 297 , h _mm : 420.1 , w _tw : 16840 , h _tw : 23820 } , { name : "Tabloid Oversize" , w _mm : 304.8 , h _mm : 457.1 , w _tw : 17282 , h _tw : 25918 } , { name : "ROC 16K" , w _mm : 196.8 , h _mm : 273 , w _tw : 11164 , h _tw : 15485 } , { name : "Envelope Coukei 3" , w _mm : 119.9 , h _mm : 234.9 , w _tw : 6798 ,
h _tw : 13319 } , { name : "Super B/A3" , w _mm : 330.2 , h _mm : 482.5 , w _tw : 18722 , h _tw : 27358 } ] ; this . sizeEpsMM = . 5 ; this . getSize = function ( widthMm , heightMm ) { for ( var index in this . oSizes ) { var item = this . oSizes [ index ] ; if ( Math . abs ( widthMm - item . w _mm ) < this . sizeEpsMM && Math . abs ( heightMm - item . h _mm ) < this . sizeEpsMM ) return item } return { w _mm : widthMm , h _mm : heightMm } } } ; function CMailMergeSendData ( obj ) { if ( obj ) { if ( typeof obj . from != "undefined" ) this [ "from" ] = obj . from ; if ( typeof obj . to != "undefined" ) this [ "to" ] = obj . to ; if ( typeof obj . subject != "undefined" ) this [ "subject" ] =
obj . subject ; if ( typeof obj . mailFormat != "undefined" ) this [ "mailFormat" ] = obj . mailFormat ; if ( typeof obj . fileName != "undefined" ) this [ "fileName" ] = obj . fileName ; if ( typeof obj . message != "undefined" ) this [ "message" ] = obj . message ; if ( typeof obj . recordFrom != "undefined" ) this [ "recordFrom" ] = obj . recordFrom ; if ( typeof obj . recordTo != "undefined" ) this [ "recordTo" ] = obj . recordTo ; if ( typeof obj . isJson != "undefined" ) this [ "isJson" ] = obj . isJson } else { this [ "from" ] = null ; this [ "to" ] = null ; this [ "subject" ] = null ; this [ "mailFormat" ] = null ; this [ "fileName" ] =
null ; this [ "message" ] = null ; this [ "recordFrom" ] = null ; this [ "recordTo" ] = null ; this [ "recordCount" ] = null ; this [ "userId" ] = null ; this [ "isJson" ] = null } } CMailMergeSendData . prototype . get _From = function ( ) { return this [ "from" ] } ; CMailMergeSendData . prototype . put _From = function ( v ) { this [ "from" ] = v } ; CMailMergeSendData . prototype . get _To = function ( ) { return this [ "to" ] } ; CMailMergeSendData . prototype . put _To = function ( v ) { this [ "to" ] = v } ; CMailMergeSendData . prototype . get _Subject = function ( ) { return this [ "subject" ] } ; CMailMergeSendData . prototype . put _Subject =
function ( v ) { this [ "subject" ] = v } ; CMailMergeSendData . prototype . get _MailFormat = function ( ) { return this [ "mailFormat" ] } ; CMailMergeSendData . prototype . put _MailFormat = function ( v ) { this [ "mailFormat" ] = v } ; CMailMergeSendData . prototype . get _FileName = function ( ) { return this [ "fileName" ] } ; CMailMergeSendData . prototype . put _FileName = function ( v ) { this [ "fileName" ] = v } ; CMailMergeSendData . prototype . get _Message = function ( ) { return this [ "message" ] } ; CMailMergeSendData . prototype . put _Message = function ( v ) { this [ "message" ] = v } ; CMailMergeSendData . prototype . get _RecordFrom =
function ( ) { return this [ "recordFrom" ] } ; CMailMergeSendData . prototype . put _RecordFrom = function ( v ) { this [ "recordFrom" ] = v } ; CMailMergeSendData . prototype . get _RecordTo = function ( ) { return this [ "recordTo" ] } ; CMailMergeSendData . prototype . put _RecordTo = function ( v ) { this [ "recordTo" ] = v } ; CMailMergeSendData . prototype . get _RecordCount = function ( ) { return this [ "recordCount" ] } ; CMailMergeSendData . prototype . put _RecordCount = function ( v ) { this [ "recordCount" ] = v } ; CMailMergeSendData . prototype . get _UserId = function ( ) { return this [ "userId" ] } ;
CMailMergeSendData . prototype . put _UserId = function ( v ) { this [ "userId" ] = v } ; CMailMergeSendData . prototype . get _IsJson = function ( ) { return this [ "isJson" ] } ; CMailMergeSendData . prototype . put _IsJson = function ( v ) { this [ "isJson" ] = v } ; function CAscFootnotePr ( obj ) { this . NumRestart = undefined ; this . NumFormat = undefined ; this . NumStart = undefined ; this . Pos = undefined ; if ( obj ) { this . NumRestart = obj . NumRestart ; this . NumFormat = obj . NumFormat ; this . NumStart = obj . NumStart ; this . Pos = obj . Pos } } CAscFootnotePr . prototype . get _Pos = function ( ) { return this . Pos } ;
CAscFootnotePr . prototype . put _Pos = function ( v ) { this . Pos = v } ; CAscFootnotePr . prototype . get _NumStart = function ( ) { return this . NumStart } ; CAscFootnotePr . prototype . put _NumStart = function ( v ) { this . NumStart = v } ; CAscFootnotePr . prototype . get _NumFormat = function ( ) { return this . NumFormat } ; CAscFootnotePr . prototype . put _NumFormat = function ( v ) { this . NumFormat = v } ; CAscFootnotePr . prototype . get _NumRestart = function ( ) { return this . NumRestart } ; CAscFootnotePr . prototype . put _NumRestart = function ( v ) { this . NumRestart = v } ; function CContentControlPluginWorker ( _api ,
_docs ) { this . api = _api ; this . documents = _docs ; this . returnDocuments = [ ] ; this . current = - 1 ; this . guid = "" ; this . start = function ( ) { this . api . _ _content _control _worker = this ; this . api . incrementCounterLongAction ( ) ; if ( window . g _asc _plugins ) this . guid = window . g _asc _plugins . setPluginMethodReturnAsync ( ) ; this . run ( ) } ; this . end = function ( ) { if ( window . g _asc _plugins ) window . g _asc _plugins . onPluginMethodReturn ( this . guid , this . returnDocuments ) ; delete this . api . _ _content _control _worker ; this . api . decrementCounterLongAction ( ) ; this . api . WordControl . m _oLogicDocument . FinalizeAction ( ) } ;
this . checkCurrentSelectionLockCallback = function ( isLocked , type ) { function private _nextFile ( ) { setTimeout ( function ( ) { window . g _asc _plugins . api . _ _content _control _worker . run ( ) } , 1 ) } if ( isLocked && type === 0 ) { var LogicDocument = this . api . WordControl . m _oLogicDocument ; LogicDocument . IsSelectionLocked ( AscCommon . changestype _ContentControl _Properties , undefined , false , false , function ( isLocked ) { window . g _asc _plugins . api . _ _content _control _worker . checkCurrentSelectionLockCallback ( isLocked , 1 ) } ) ; return } if ( isLocked ) return private _nextFile ( ) ;
var _obj = null ; var LogicDocument = this . api . WordControl . m _oLogicDocument ; var _current = this . documents [ this . current ] ; if ( 0 === type ) { var _content _control _pr ; var _blockStd ; var _isReplaced = false ; if ( _current [ "Url" ] !== undefined || _current [ "Script" ] !== undefined ) { _blockStd = null ; if ( undefined !== _current [ "Props" ] [ "InternalId" ] ) { _blockStd = LogicDocument . ClearContentControl ( _current [ "Props" ] [ "InternalId" ] ) ; _isReplaced = true } _content _control _pr = new AscCommon . CContentControlPr ; _content _control _pr . Id = _current [ "Props" ] [ "Id" ] ;
_content _control _pr . Tag = _current [ "Props" ] [ "Tag" ] ; _content _control _pr . Lock = c _oAscSdtLockType . Unlocked ; _content _control _pr . InternalId = _current [ "Props" ] [ "InternalId" ] ; _content _control _pr . Alias = _current [ "Props" ] [ "Alias" ] ; _content _control _pr . PlaceholderText = _current [ "Props" ] [ "PlaceHolderText" ] ; if ( undefined !== _current [ "Props" ] [ "SectionBreak" ] ) { var oCurPara = LogicDocument . GetCurrentParagraph ( ) ; LogicDocument . Content [ oCurPara . Index ] . Document _SetThisElementCurrent ( ) ; LogicDocument . Add _SectionBreak ( _current [ "Props" ] [ "SectionBreak" ] ) ;
LogicDocument . Add _SectionBreak ( _current [ "Props" ] [ "SectionBreak" ] ) ; LogicDocument . Content [ oCurPara . Index + 1 ] . Document _SetThisElementCurrent ( ) } if ( undefined !== _current [ "Props" ] [ "PageSizeW" ] || undefined !== _current [ "Props" ] [ "PageSizeH" ] ) { var Width = _current [ "Props" ] [ "PageSizeW" ] ; if ( Width === undefined ) Width = LogicDocument . Get _DocumentPageSize ( ) . W ; if ( Width < 58 ) Width = 58 ; var Height = _current [ "Props" ] [ "PageSizeH" ] ; if ( Height === undefined ) Height = LogicDocument . Get _DocumentPageSize ( ) . H ; if ( Height < 43 ) Height = 43 ; LogicDocument . Set _DocumentPageSize ( Width ,
Height ) } if ( undefined !== _current [ "Props" ] [ "Orient" ] ) if ( _current [ "Props" ] [ "Orient" ] === 0 || _current [ "Props" ] [ "Orient" ] === 1 ) LogicDocument . Set _DocumentOrientation ( _current [ "Props" ] [ "Orient" ] ) ; if ( undefined !== _current [ "Props" ] [ "MarginT" ] || undefined !== _current [ "Props" ] [ "MarginL" ] || undefined !== _current [ "Props" ] [ "MarginR" ] || undefined !== _current [ "Props" ] [ "MarginB" ] ) { var oMargins = { Left : _current [ "Props" ] [ "MarginL" ] , Top : _current [ "Props" ] [ "MarginT" ] , Right : _current [ "Props" ] [ "MarginR" ] , Bottom : _current [ "Props" ] [ "MarginB" ] } ;
LogicDocument . SetDocumentMargin ( oMargins ) } if ( undefined !== _current [ "Props" ] [ "Appearance" ] ) _content _control _pr . Appearance = _current [ "Props" ] [ "Appearance" ] ; if ( undefined !== _current [ "Props" ] [ "Color" ] ) _content _control _pr . Color = new Asc . asc _CColor ( _current [ "Props" ] [ "Color" ] [ "R" ] , _current [ "Props" ] [ "Color" ] [ "G" ] , _current [ "Props" ] [ "Color" ] [ "B" ] ) ; if ( null === _blockStd ) { var oCurPara = LogicDocument . GetCurrentParagraph ( ) ; if ( oCurPara && ! oCurPara . IsCursorAtBegin ( ) ) LogicDocument . AddNewParagraph ( false , true ) ; _blockStd = LogicDocument . AddContentControl ( c _oAscSdtLevelType . Block ) } _blockStd . SetContentControlPr ( _content _control _pr ) ;
_obj = _blockStd . GetContentControlPr ( ) ; this . returnDocuments . push ( { "Tag" : _obj . Tag , "Id" : _obj . Id , "Lock" : _obj . Lock , "InternalId" : _obj . InternalId , "Alias" : _obj . Alias , "Appearance" : _obj . Appearance } ) } if ( _current [ "Url" ] !== undefined ) { this . api . insertDocumentUrlsData = { imageMap : null , documents : [ { url : _current [ "Url" ] , format : _current [ "Format" ] , token : _current [ "Token" ] } ] , convertCallback : function ( _api , url ) { _api . insertDocumentUrlsData . imageMap = url ; AscCommon . loadFileContent ( url [ "output.bin" ] , function ( httpRequest ) { var stream ;
if ( null === httpRequest || ! ( stream = AscCommon . initStreamFromResponse ( httpRequest ) ) ) { _api . endInsertDocumentUrls ( ) ; _api . sendEvent ( "asc_onError" , c _oAscError . ID . DirectUrl , c _oAscError . Level . NoCritical ) ; return } _api . asc _PasteData ( AscCommon . c _oAscClipboardDataFormat . Internal , stream , undefined , undefined , true , function ( ) { _api . WordControl . m _oLogicDocument . MoveCursorRight ( false , false , true ) ; _api . WordControl . m _oLogicDocument . Recalculate ( ) ; if ( _api . insertDocumentUrlsData . documents . length > 0 ) { var options = new Asc . asc _CDownloadOptions ( Asc . c _oAscFileType . CANVAS _WORD ) ;
options . isNaturalDownload = true ; _api . asc _DownloadAs ( options ) } else _api . endInsertDocumentUrls ( ) } , false ) } , "arraybuffer" ) } , endCallback : function ( _api ) { _blockStd . Content . Remove _FromContent ( _blockStd . Content . GetElementsCount ( ) - 1 , 1 ) ; _blockStd . MoveCursorToEndPos ( false , false ) ; var _worker = _api . _ _content _control _worker ; if ( _worker . documents [ _worker . current ] [ "Props" ] ) _blockStd . SetContentControlPr ( { Lock : _worker . documents [ _worker . current ] [ "Props" ] [ "Lock" ] } ) ; _worker = null ; _blockStd = null ; window . g _asc _plugins . api . asc _Recalculate ( true ) ;
setTimeout ( function ( ) { window . g _asc _plugins . api . _ _content _control _worker . run ( ) } , 1 ) } } ; var options = new Asc . asc _CDownloadOptions ( Asc . c _oAscFileType . CANVAS _WORD ) ; options . isNaturalDownload = true ; this . api . asc _DownloadAs ( options ) ; return } else if ( _current [ "Script" ] !== undefined ) { var _script = "(function(){ var Api = window.g_asc_plugins.api;\n" + _current [ "Script" ] + "\n})();" ; eval ( _script ) ; if ( c _oAscSdtLevelType . Block === _blockStd . GetContentControlType ( ) ) if ( _isReplaced ) { if ( _blockStd . Content . GetElementsCount ( ) > 1 ) _blockStd . Content . Remove _FromContent ( _blockStd . Content . GetElementsCount ( ) -
1 , 1 ) ; _blockStd . MoveCursorToStartPos ( false ) } else { if ( _blockStd . Content . GetElementsCount ( ) > 1 ) { _blockStd . Content . Remove _FromContent ( _blockStd . Content . GetElementsCount ( ) - 1 , 1 ) ; _blockStd . MoveCursorToEndPos ( false , false ) } LogicDocument . MoveCursorRight ( false , false , true ) } else if ( _isReplaced ) { if ( _blockStd . GetElementsCount ( ) > 1 ) _blockStd . Remove _FromContent ( _blockStd . GetElementsCount ( ) - 1 , 1 ) ; _blockStd . MoveCursorToStartPos ( ) ; _blockStd . SetThisElementCurrent ( ) } else { if ( _blockStd . GetElementsCount ( ) > 1 ) { _blockStd . Remove _FromContent ( _blockStd . GetElementsCount ( ) -
1 , 1 ) ; _blockStd . MoveCursorToEndPos ( ) ; _blockStd . SetThisElementCurrent ( ) } LogicDocument . MoveCursorRight ( false , false , true ) } var _worker = _api . _ _content _control _worker ; if ( _worker . documents [ _worker . current ] [ "Props" ] ) _blockStd . SetContentControlPr ( { Lock : _worker . documents [ _worker . current ] [ "Props" ] [ "Lock" ] } ) ; _worker = null ; var _fonts = LogicDocument . Document _Get _AllFontNames ( ) ; var _imagesArray = LogicDocument . Get _AllImageUrls ( ) ; var _images = { } ; for ( var i = 0 ; i < _imagesArray . length ; i ++ ) _images [ _imagesArray [ i ] ] = _imagesArray [ i ] ;
window . g _asc _plugins . images _rename = _images ; AscCommon . Check _LoadingDataBeforePrepaste ( window . g _asc _plugins . api , _fonts , _images , function ( ) { var _api = window . g _asc _plugins . api ; delete window . g _asc _plugins . images _rename ; _api . asc _Recalculate ( true ) ; _api . WordControl . m _oLogicDocument . UnlockPanelStyles ( true ) ; setTimeout ( function ( ) { window . g _asc _plugins . api . _ _content _control _worker . run ( ) } , 1 ) } ) ; return } else if ( _current [ "Props" ] ) type = 1 } if ( 1 === type ) if ( _current [ "Props" ] && _current [ "Url" ] === undefined && _current [ "Script" ] ===
undefined ) { var _blockStd = LogicDocument . GetContentControl ( _current [ "Props" ] [ "InternalId" ] ) ; if ( _blockStd ) { _content _control _pr = new AscCommon . CContentControlPr ; _content _control _pr . Id = _current [ "Props" ] [ "Id" ] ; _content _control _pr . Tag = _current [ "Props" ] [ "Tag" ] ; _content _control _pr . Lock = _current [ "Props" ] [ "Lock" ] ; _content _control _pr . InternalId = _current [ "Props" ] [ "InternalId" ] ; _content _control _pr . Alias = _current [ "Props" ] [ "Alias" ] ; _content _control _pr . PlaceholderText = _current [ "Props" ] [ "PlaceHolderText" ] ; if ( undefined !==
_current [ "Props" ] [ "Appearance" ] ) _content _control _pr . Appearance = _current [ "Props" ] [ "Appearance" ] ; if ( undefined !== _current [ "Props" ] [ "Color" ] ) _content _control _pr . Color = new Asc . asc _CColor ( _current [ "Props" ] [ "Color" ] [ "R" ] , _current [ "Props" ] [ "Color" ] [ "G" ] , _current [ "Props" ] [ "Color" ] [ "B" ] ) ; _blockStd . SetContentControlPr ( _content _control _pr ) ; _obj = _blockStd . GetContentControlPr ( ) ; this . returnDocuments . push ( { "Tag" : _obj . Tag , "Id" : _obj . Id , "Lock" : _obj . Lock , "InternalId" : _obj . InternalId , "Alias" : _obj . Alias , "Appearance" : _obj . Appearance } ) } } private _nextFile ( ) } ;
this . run = function ( ) { ++ this . current ; var LogicDocument = this . api . WordControl . m _oLogicDocument ; if ( 0 === this . current ) LogicDocument . StartAction ( AscDFH . historydescription _Document _InsertDocumentsByUrls ) ; if ( this . current >= this . documents . length ) { this . end ( ) ; return } function private _CheckLockCallback ( isLocked ) { window . g _asc _plugins . api . _ _content _control _worker . checkCurrentSelectionLockCallback ( isLocked , 0 ) } var _current = this . documents [ this . current ] ; if ( undefined === _current [ "Props" ] ) _current [ "Props" ] = { } ; if ( ( _current [ "Url" ] !==
undefined || _current [ "Script" ] !== undefined ) && undefined !== _current [ "Props" ] [ "InternalId" ] ) { var _internalId = _current [ "Props" ] [ "InternalId" ] ; var _contentControl = g _oTableId . Get _ById ( _internalId ) ; LogicDocument . IsSelectionLocked ( AscCommon . changestype _None , { Type : AscCommon . changestype _2 _ElementsArray _and _Type , Elements : [ _contentControl ] , CheckType : AscCommon . changestype _Document _Content _Add } , false , false , private _CheckLockCallback ) } else LogicDocument . IsSelectionLocked ( AscCommon . changestype _Document _Content _Add ,
undefined , false , false , private _CheckLockCallback ) } ; this . delete = function ( ) { var LogicDocument = this . api . WordControl . m _oLogicDocument ; var arrContentControl = [ ] ; for ( var i = 0 ; i < this . documents . length ; i ++ ) { var oContentControl = g _oTableId . Get _ById ( this . documents [ i ] [ "InternalId" ] ) ; if ( oContentControl && ( oContentControl instanceof AscCommonWord . CBlockLevelSdt || oContentControl instanceof AscCommonWord . CInlineLevelSdt ) ) arrContentControl . push ( g _oTableId . Get _ById ( this . documents [ i ] [ "InternalId" ] ) ) } LogicDocument . SetCheckContentControlsLock ( false ) ;
if ( false === LogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _None , { Type : AscCommon . changestype _2 _ElementsArray _and _Type , Elements : arrContentControl , CheckType : AscCommon . changestype _Remove } ) ) { LogicDocument . StartAction ( AscDFH . historydescription _Document _InsertDocumentsByUrls ) ; for ( var i = 0 ; i < this . documents . length ; i ++ ) LogicDocument . RemoveContentControl ( this . documents [ i ] [ "InternalId" ] ) ; LogicDocument . FinalizeAction ( ) } LogicDocument . SetCheckContentControlsLock ( true ) ; this . api . asc _Recalculate ( true ) ;
delete this . api . _ _content _control _worker } } AscCommon . CContentControlPluginWorker = CContentControlPluginWorker ; function asc _docs _api ( config ) { AscCommon . baseEditorsApi . call ( this , config , AscCommon . c _oEditorId . Word ) ; this . WordControl = null ; this . documentFormatSave = c _oAscFileType . DOCX ; this . InterfaceLocale = null ; this . ShowParaMarks = false ; this . ShowSnapLines = true ; this . isAddSpaceBetweenPrg = false ; this . isPageBreakBefore = false ; this . isKeepLinesTogether = false ; this . isPaintFormat = c _oAscFormatPainterState . kOff ; this . isMarkerFormat =
false ; this . isStartAddShape = false ; this . isDrawTablePen = false ; this . isDrawTableErase = false ; this . addShapePreset = "" ; this . isShowTableEmptyLine = true ; this . isShowTableEmptyLineAttack = false ; this . isApplyChangesOnOpen = false ; this . IsSpellCheckCurrentWord = false ; this . mailMergeFileData = null ; this . insertDocumentUrlsData = null ; this . isCoMarksDraw = false ; this . tmpCoMarksDraw = false ; this . tmpViewRulers = null ; this . tmpZoomType = null ; this . tmpDocumentUnits = null ; this . isOnlyReaderMode = false ; this . bInit _word _control = false ; this . isDocumentModify =
false ; this . tmpFontRenderingMode = null ; this . FontAsyncLoadType = 0 ; this . FontAsyncLoadParam = null ; this . isPasteFonts _Images = false ; this . pasteCallback = null ; this . pasteImageMap = null ; this . EndActionLoadImages = 0 ; this . isSaveFonts _Images = false ; this . saveImageMap = null ; this . isLoadImagesCustom = false ; this . loadCustomImageMap = null ; this . ServerImagesWaitComplete = false ; this . DocumentOrientation = false ; this . SelectedObjectsStack = [ ] ; this . nCurPointItemsLength = - 1 ; this . isDocumentEditor = true ; this . CurrentTranslate = null ; this . CollaborativeMarksShowType =
c _oAscCollaborativeMarksShowType . All ; this . _gui _control _colors = null ; this . DocumentReaderMode = null ; if ( window . editor == undefined ) { window . editor = this ; window [ "editor" ] = window . editor ; if ( window [ "NATIVE_EDITOR_ENJINE" ] ) editor = window . editor } this . RevisionChangesStack = [ ] ; 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 . isPdfViewer = function ( ) { return null === this . WordControl . m _oLogicDocument } ; asc _docs _api . prototype . SetCollaborativeMarksShowType = function ( Type ) { if ( c _oAscCollaborativeMarksShowType . None !== this . CollaborativeMarksShowType && c _oAscCollaborativeMarksShowType . None === Type && this . WordControl && this . WordControl . m _oLogicDocument ) { this . CollaborativeMarksShowType =
Type ; AscCommon . CollaborativeEditing . Clear _CollaborativeMarks ( true ) } else this . CollaborativeMarksShowType = Type } ; asc _docs _api . prototype . GetCollaborativeMarksShowType = function ( Type ) { return this . CollaborativeMarksShowType } ; asc _docs _api . prototype . private _GetLogicDocument = function ( ) { if ( ! this . WordControl || ! this . WordControl . m _oLogicDocument ) return null ; return this . WordControl . m _oLogicDocument } ; asc _docs _api . prototype . isLongAction = function ( ) { if ( this . WordControl . m _oLogicDocument ) return 0 !== this . IsLongActionCurrent ||
this . WordControl . m _oLogicDocument . IsActionInProgress ( ) ; return 0 !== this . IsLongActionCurrent } ; asc _docs _api . prototype . Clear _CollaborativeMarks = function ( ) { AscCommon . CollaborativeEditing . Clear _CollaborativeMarks ( true ) } ; asc _docs _api . prototype . SetLanguage = function ( langId ) { langId = langId . toLowerCase ( ) ; if ( undefined !== AscCommonWord . translations _map [ langId ] ) this . CurrentTranslate = AscCommonWord . translations _map [ langId ] } ; asc _docs _api . prototype . TranslateStyleName = function ( style _name ) { var ret = this . CurrentTranslate . DefaultStyles [ style _name ] ;
if ( ret !== undefined ) return ret ; return style _name } ; 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 . sync _BeginCatchSelectedElements = function ( ) { if ( 0 != this . SelectedObjectsStack . length ) this . SelectedObjectsStack . splice ( 0 , this . SelectedObjectsStack . length ) ; if ( this . WordControl && this . WordControl . m _oDrawingDocument ) this . WordControl . m _oDrawingDocument . StartTableStylesCheck ( ) } ; asc _docs _api . prototype . sync _EndCatchSelectedElements =
function ( ) { if ( this . WordControl && this . WordControl . m _oDrawingDocument ) this . WordControl . m _oDrawingDocument . EndTableStylesCheck ( ) ; this . sendEvent ( "asc_onFocusObject" , this . SelectedObjectsStack ) } ; asc _docs _api . prototype . getSelectedElements = function ( bUpdate ) { if ( true === bUpdate ) 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 _CImgProperty ( obj ) ; break ; case c _oAscTypeSelectElement . Table : oUnkTypeObj = new Asc . CTableProp ( obj ) ; break ; case c _oAscTypeSelectElement . Header : oUnkTypeObj = new CHeaderProp ( 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 . InterfaceLocale = val } ; asc _docs _api . prototype . asc _getLocale = function ( ) { return this . InterfaceLocale } ; asc _docs _api . prototype . ChangeReaderMode = function ( ) { return this . WordControl . ChangeReaderMode ( ) } ; asc _docs _api . prototype . SetReaderModeOnly = function ( ) { this . isOnlyReaderMode = true ; if ( this . ImageLoader ) this . ImageLoader . bIsAsyncLoadDocumentImages = false } ;
asc _docs _api . prototype . IncreaseReaderFontSize = function ( ) { return this . WordControl . IncreaseReaderFontSize ( ) } ; asc _docs _api . prototype . DecreaseReaderFontSize = function ( ) { return this . WordControl . DecreaseReaderFontSize ( ) } ; 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 style2 = document . createElement ( "style" ) ;
style2 . type = "text/css" ; style2 . innerHTML = ".buttonRuler {background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAwCAYAAAAYX/pXAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwwAADsMBx2+oZAAAABp0RVh0U29mdHdhcmUAUGFpbnQuTkVUIHYzLjUuMTAw9HKhAAABhElEQVRIS62Uwa6CMBBF/VQNQcOCBS5caOICApEt3+Wv+AcmfQ7pbdreqY+CJifTdjpng727aZrMFmbB+/3erYEE+/3egMPhMPP57QR/EJCgKAoTs1hQlqURjsdjAESyPp1O7pwEVVWZ1+s1VyB7DemRoK5rN+CvNaRPgqZpgqHz+UwSnEklweVyCQbivX8mlQTX65UGfG63m+vLXRLc7/ekQHoAexK0bWs0uq5TKwli8Afq+94Mw+CQPe78K5D6eDzMOI4GVcCdr4IlOMEWfiP4fJpVkEDLA38ghgR+DgB/ICYQ5OYBCez7d1mAvQZ6gcBmAK010A8ENg8c9u2rZ6iBwL51R7z3z1ADgc2DJDYPZnA3ENi3rhLlgauBAO8/JpUHJEih5QF6iwRaHqC3SPANJ9jCbwTP53MVJNDywB+IIYGfA8AfiAkEqTyQDEAO+HlAgtw8IEFuHpAgNw9IkJsHJMjNAxLk5gEJ8P5jUnlAghRaHqC3SKDlAXqLBN9wgvVM5g/dFuEU6U2wnAAAAABJRU5ErkJggg==);background-position: 0px 0px;background-repeat: no-repeat;}" ;
_head . appendChild ( style2 ) ; 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 ( ) ; if ( this . HtmlElement != null ) this . HtmlElement . innerHTML = '<div id="id_main" class="block_elem" style="touch-action:none;-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>\t\t\t\t\t\t\t\t\t<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>\t\t\t\t\t\t\t\t\t</div> <div id="id_main_view" class="block_elem" style="touch-action:none;overflow:hidden"> <canvas id="id_viewer" class="block_elem" style="touch-action:none;-ms-touch-action: none;-webkit-user-select: none; background-color:' +
AscCommon . GlobalSkin . BackgroundColor + ';z-index:1"></canvas>\t\t\t\t\t\t\t\t\t <canvas id="id_viewer_overlay" class="block_elem" style="touch-action:none;-ms-touch-action: none;-webkit-user-select: none; z-index:2"></canvas>\t\t\t\t\t\t\t\t\t <canvas id="id_target_cursor" class="block_elem" width="1" height="1" style="touch-action:none;-ms-touch-action: none;-webkit-user-select: none;width:2px;height:13px;z-index:4;"></canvas> </div>\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t<div id="id_panel_right" class="block_elem" style="touch-action:none;margin-right:1px;background-color:' +
AscCommon . GlobalSkin . ScrollBackgroundColor + ';">\t\t\t\t\t\t\t\t\t<div id="id_buttonRulers" class="block_elem buttonRuler"></div>\t\t\t\t\t\t\t\t\t<div id="id_vertical_scroll" style="left:0;top:0px;width:14px;overflow:hidden;position:absolute;">\t\t\t\t\t\t\t\t\t</div>\t\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\t<div id="id_buttonNextPage" class="block_elem buttonNextPage"></div>\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t<div id="id_horscrollpanel" class="block_elem" style="touch-action:none;margin-bottom:1px;background-color:' +
AscCommon . GlobalSkin . ScrollBackgroundColor + ';">\t\t\t\t\t\t\t\t\t<div id="id_horizontal_scroll" style="left:0px;top:0;height:14px;overflow:hidden;position:absolute;width:100%;">\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t</div>' + this . HtmlElement . innerHTML } ; asc _docs _api . prototype . asc _setSkin = function ( theme ) { AscCommon . updateGlobalSkin ( theme ) ; var obj _id _main = document . getElementById ( "id_main" ) ; if ( obj _id _main ) { obj _id _main . style . backgroundColor = AscCommon . GlobalSkin . BackgroundColor ; 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 } if ( this . WordControl && this . WordControl . m _oBody ) { this . WordControl . OnResize ( true ) ; if ( this . WordControl . m _oEditor && this . WordControl . m _oEditor . HtmlElement ) { this . WordControl . m _oEditor . HtmlElement . fullRepaint = true ; this . WordControl . OnScroll ( ) } } } ; asc _docs _api . prototype . GetCopyPasteDivId =
function ( ) { if ( this . isMobileVersion ) return this . WordControl . Name ; return "" } ; asc _docs _api . prototype . ContentToHTML = function ( bIsRet ) { this . DocumentReaderMode = new AscCommon . CDocumentReaderMode ; this . WordControl . m _oLogicDocument . SelectAll ( ) ; var text _data = { data : "" , pushData : function ( format , value ) { this . data = value } } ; this . asc _CheckCopy ( text _data , 2 ) ; this . WordControl . m _oLogicDocument . RemoveSelection ( ) ; return text _data . data } ; asc _docs _api . prototype . initDefaultShortcuts = function ( ) { this . initShortcuts ( [ [ c _oAscDocumentShortcutType . InsertPageBreak ,
13 , true , false , false ] , [ c _oAscDocumentShortcutType . InsertLineBreak , 13 , false , true , false ] , [ c _oAscDocumentShortcutType . InsertColumnBreak , 13 , true , true , false ] , [ c _oAscDocumentShortcutType . ResetChar , 32 , true , false , false ] , [ c _oAscDocumentShortcutType . NonBreakingSpace , 32 , true , true , false ] , [ c _oAscDocumentShortcutType . ApplyHeading1 , 49 , false , false , true ] , [ c _oAscDocumentShortcutType . ApplyHeading2 , 50 , false , false , true ] , [ c _oAscDocumentShortcutType . ApplyHeading3 , 51 , false , false , true ] , [ c _oAscDocumentShortcutType . Strikeout ,
53 , true , false , false ] , [ c _oAscDocumentShortcutType . ShowAll , 56 , true , true , false ] , [ c _oAscDocumentShortcutType . EditSelectAll , 65 , true , false , false ] , [ c _oAscDocumentShortcutType . Bold , 66 , true , false , false ] , [ c _oAscDocumentShortcutType . CopyFormat , 67 , true , true , false ] , [ c _oAscDocumentShortcutType . CopyrightSign , 67 , true , false , true ] , [ c _oAscDocumentShortcutType . InsertEndnoteNow , 68 , true , false , true ] , [ c _oAscDocumentShortcutType . CenterPara , 69 , true , false , false ] , [ c _oAscDocumentShortcutType . EuroSign , 69 , true , false , true ] , [ c _oAscDocumentShortcutType . InsertFootnoteNow ,
70 , true , false , true ] , [ c _oAscDocumentShortcutType . Italic , 73 , true , false , false ] , [ c _oAscDocumentShortcutType . JustifyPara , 74 , true , false , false ] , [ c _oAscDocumentShortcutType . InsertHyperlink , 75 , true , false , false ] , [ c _oAscDocumentShortcutType . ApplyListBullet , 76 , true , true , false ] , [ c _oAscDocumentShortcutType . LeftPara , 76 , true , false , false ] , [ c _oAscDocumentShortcutType . Indent , 77 , true , false , false ] , [ c _oAscDocumentShortcutType . UnIndent , 77 , true , true , false ] , [ c _oAscDocumentShortcutType . PrintPreviewAndPrint , 80 , true , false , false ] ,
[ c _oAscDocumentShortcutType . InsertPageNumber , 80 , true , true , false ] , [ c _oAscDocumentShortcutType . RightPara , 82 , true , false , false ] , [ c _oAscDocumentShortcutType . RegisteredSign , 82 , true , false , true ] , [ c _oAscDocumentShortcutType . Save , 83 , true , false , false ] , [ c _oAscDocumentShortcutType . TrademarkSign , 84 , true , false , true ] , [ c _oAscDocumentShortcutType . Underline , 85 , true , false , false ] , [ c _oAscDocumentShortcutType . PasteFormat , 86 , true , true , false ] , [ c _oAscDocumentShortcutType . EditRedo , 89 , true , false , false ] , [ c _oAscDocumentShortcutType . EditUndo ,
90 , true , false , false ] , [ c _oAscDocumentShortcutType . EnDash , 109 , true , false , false ] , [ c _oAscDocumentShortcutType . EmDash , 109 , true , false , true ] , [ c _oAscDocumentShortcutType . UpdateFields , 120 , false , false , false ] , [ c _oAscDocumentShortcutType . InsertEquation , 187 , false , false , true ] , [ c _oAscDocumentShortcutType . Superscript , 188 , true , false , false ] , [ c _oAscDocumentShortcutType . NonBreakingHyphen , 189 , true , true , false ] , [ c _oAscDocumentShortcutType . SoftHyphen , 189 , false , false , true ] , [ c _oAscDocumentShortcutType . HorizontalEllipsis , 190 ,
true , false , true ] , [ c _oAscDocumentShortcutType . Subscript , 190 , true , false , false ] , [ c _oAscDocumentShortcutType . IncreaseFontSize , 219 , true , false , false ] , [ c _oAscDocumentShortcutType . DecreaseFontSize , 221 , true , false , false ] ] ) } ; asc _docs _api . prototype . InitEditor = function ( ) { this . WordControl . m _oLogicDocument = new AscCommonWord . CDocument ( this . WordControl . m _oDrawingDocument ) ; this . WordControl . m _oDrawingDocument . m _oLogicDocument = this . WordControl . m _oLogicDocument ; if ( ! this . isSpellCheckEnable || this . isRestrictionComments ( ) ||
this . isRestrictionForms ( ) ) this . WordControl . m _oLogicDocument . TurnOffCheckSpelling ( ) ; if ( this . WordControl . MobileTouchManager ) this . WordControl . MobileTouchManager . delegate . LogicDocument = this . WordControl . m _oLogicDocument ; if ( this . isRestrictionForms ( ) || this . isRestrictionComments ( ) ) { this . ShowParaMarks = false ; this . WordControl . HideRulers ( ) } } ; asc _docs _api . prototype . InitViewer = function ( ) { this . WordControl . m _oDrawingDocument . m _oDocumentRenderer = new AscCommonWord . CDocMeta ; this . WordControl . m _oDrawingDocument . m _oDocumentRenderer . Init ( ) ;
this . WordControl . m _oDrawingDocument . showTarget ( false ) ; this . WordControl . HideRulers ( ) } ; asc _docs _api . prototype . OpenDocument = function ( url , gObject ) { this . isOnlyReaderMode = false ; this . InitViewer ( ) ; this . LoadedObject = null ; this . DocumentType = 1 ; this . ServerIdWaitComplete = true ; this . WordControl . m _oDrawingDocument . m _oDocumentRenderer . Load ( url , gObject ) ; this . FontLoader . LoadDocumentFonts ( this . WordControl . m _oDrawingDocument . m _oDocumentRenderer . Fonts , true ) } ; asc _docs _api . prototype . OpenDocument2 = function ( url , gObject ) { this . InitEditor ( ) ;
this . DocumentType = 2 ; this . LoadedObjectDS = this . WordControl . m _oLogicDocument . CopyStyle ( ) ; g _oIdCounter . Set _Load ( true ) ; AscFonts . IsCheckSymbols = true ; var openParams = { checkFileSize : false , charCount : 0 , parCount : 0 } ; var oBinaryFileReader = new AscCommonWord . BinaryFileReader ( this . WordControl . m _oLogicDocument , openParams ) ; if ( oBinaryFileReader . Read ( gObject ) ) { if ( History && History . Update _FileDescription ) History . Update _FileDescription ( oBinaryFileReader . stream ) ; g _oIdCounter . Set _Load ( false ) ; this . LoadedObject = 1 ; var StylesPainter =
new AscCommonWord . CStylesPainter ; StylesPainter . CheckStylesNames ( this , this . LoadedObjectDS ) ; this . WordControl . m _oDrawingDocument . CheckFontNeeds ( ) ; AscCommon . pptx _content _loader . CheckImagesNeeds ( this . WordControl . m _oLogicDocument ) ; this . FontLoader . LoadDocumentFonts ( this . WordControl . m _oLogicDocument . Fonts , false ) } else editor . sendEvent ( "asc_onError" , c _oAscError . ID . MobileUnexpectedCharCount , c _oAscError . Level . Critical ) ; AscFonts . IsCheckSymbols = false ; editor . DocumentOrientation = null == editor . WordControl . m _oLogicDocument ?
true : ! editor . WordControl . m _oLogicDocument . Orientation ; var sizeMM ; if ( editor . DocumentOrientation ) sizeMM = DocumentPageSize . getSize ( AscCommon . Page _Width , AscCommon . Page _Height ) ; else sizeMM = DocumentPageSize . getSize ( AscCommon . Page _Height , AscCommon . Page _Width ) ; editor . sync _DocSizeCallback ( sizeMM . w _mm , sizeMM . h _mm ) ; editor . sync _PageOrientCallback ( editor . get _DocumentOrientation ( ) ) ; if ( this . isMobileVersion ) { AscCommon . AscBrowser . isSafariMacOs = false ; PasteElementsId . PASTE _ELEMENT _ID = "wrd_pastebin" ; PasteElementsId . ELEMENT _DISPAY _STYLE =
"none" } } ; 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 ) { return _callbacks . hasOwnProperty ( name ) } ; asc _docs _api . prototype . get _PropertyThemeColors =
function ( ) { return [ this . _gui _control _colors . Colors , this . _gui _control _colors . StandartColors ] } ; asc _docs _api . prototype . _goToComment = function ( data ) { if ( this . WordControl && this . WordControl . m _oLogicDocument && data ) { var commentId = this . WordControl . m _oLogicDocument . Comments . GetCommentIdByGuid ( data ) ; if ( commentId ) { this . asc _selectComment ( commentId ) ; this . asc _showComment ( commentId ) } } } ; asc _docs _api . prototype . _goToBookmark = function ( data ) { if ( this . WordControl && this . WordControl . m _oLogicDocument && data ) this . WordControl . m _oLogicDocument . GoToBookmark ( data ,
true ) } ; 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" ] ) t . 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 Id = e [ "block" ] ; var Class = g _oTableId . Get _ById ( Id ) ; if ( null != Class ) { var Lock = Class . Lock ; Lock . Set _UserId ( e [ "user" ] ) ; 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 AscCommonWord . CHeaderFooterController ) t . sync _LockHeaderFooters ( ) ; else if ( Class instanceof AscCommonWord . CDocument ) t . sync _LockDocumentProps ( ) ; else if ( Class instanceof AscCommon . CComment ) t . sync _LockComment ( Class . Get _Id ( ) ,
e [ "user" ] ) ; else if ( Class instanceof AscCommonWord . CGraphicObjects ) t . sync _LockDocumentSchema ( ) ; else if ( Class instanceof AscCommon . CCore ) editor . sendEvent ( "asc_onLockCore" , true ) ; t . WordControl . m _oLogicDocument . Document _UpdateInterfaceState ( ) } else AscCommon . CollaborativeEditing . Add _NeedLock ( Id , e [ "user" ] ) } } ; this . CoAuthoringApi . onLocksReleased = function ( e , bChanges ) { if ( t . _coAuthoringCheckEndOpenDocument ( t . CoAuthoringApi . onLocksReleased , e , bChanges ) ) return ; var Id = e [ "block" ] ; 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 ) ; t . WordControl . m _oLogicDocument . Document _UpdateInterfaceState ( ) ; if ( Class instanceof
AscCommonWord . CHeaderFooterController ) if ( NewType !== locktype _Mine && NewType !== locktype _None ) t . sync _LockHeaderFooters ( ) ; else t . sync _UnLockHeaderFooters ( ) ; else if ( Class instanceof AscCommonWord . CDocument ) if ( NewType !== locktype _Mine && NewType !== locktype _None ) t . sync _LockDocumentProps ( ) ; else t . sync _UnLockDocumentProps ( ) ; else if ( Class instanceof AscCommon . CComment ) if ( NewType !== locktype _Mine && NewType !== locktype _None ) t . sync _LockComment ( Class . Get _Id ( ) , e [ "user" ] ) ; else t . sync _UnLockComment ( Class . Get _Id ( ) ) ; else if ( Class instanceof
AscCommonWord . CGraphicObjects ) if ( NewType !== locktype _Mine && NewType !== locktype _None ) t . sync _LockDocumentSchema ( ) ; else t . sync _UnLockDocumentSchema ( ) ; else if ( Class instanceof AscCommon . CCore ) if ( NewType !== locktype _Mine && NewType !== locktype _None ) editor . sendEvent ( "asc_onLockCore" , true ) ; else editor . sendEvent ( "asc_onLockCore" , false ) } } else AscCommon . CollaborativeEditing . Remove _NeedLock ( Id ) } ; this . CoAuthoringApi . onSaveChanges = function ( e , userId , bFirstLoad ) { var bUseColor ; if ( bFirstLoad ) bUseColor = - 1 === AscCommon . CollaborativeEditing . m _nUseType ;
if ( t . CollaborativeMarksShowType === c _oAscCollaborativeMarksShowType . None ) bUseColor = false ; var oCommonColor = AscCommon . getUserColorById ( userId , null , false , false ) ; var oColor = false === bUseColor ? null : oCommonColor ; t . _coAuthoringSetChange ( e , oColor ) ; 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 ( ) ; if ( this . WordControl && this . WordControl . m _oLogicDocument ) this . WordControl . m _oLogicDocument . StartCollaborationEditing ( ) ; this . asc _setDrawCollaborationMarks ( true ) ; if ( window [ "AscCommon" ] . g _specialPasteHelper && AscCommon . CollaborativeEditing . m _bFast ) window [ "AscCommon" ] . g _specialPasteHelper . SpecialPasteButton _Hide ( ) } ; asc _docs _api . prototype . endCollaborationEditing =
function ( ) { AscCommon . CollaborativeEditing . End _CollaborationEditing ( ) ; this . asc _setDrawCollaborationMarks ( false ) } ; 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 . _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 . put _FramePr = function ( Obj ) { if ( undefined != Obj . FontFamily ) { var loader = AscCommon . g _font _loader ; var fontinfo = g _fontApplication . GetFontInfo ( Obj . FontFamily ) ;
var isasync = loader . LoadFont ( fontinfo , editor . asyncFontEndLoaded _DropCap , Obj ) ; Obj . FontFamily = new asc _CTextFontFamily ( { Name : fontinfo . Name , Index : - 1 } ) ; if ( false === isasync ) if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( changestype _Paragraph _Properties ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetFramePrWithFontFamily ) ; this . WordControl . m _oLogicDocument . SetParagraphFramePr ( Obj ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } else if ( false ===
this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( changestype _Paragraph _Properties ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetFramePr ) ; this . WordControl . m _oLogicDocument . SetParagraphFramePr ( Obj ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . asyncFontEndLoaded _DropCap = function ( Obj ) { this . sync _EndAction ( c _oAscAsyncActionType . Information , c _oAscAsyncAction . LoadFont ) ; if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( changestype _Paragraph _Properties ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetFramePrWithFontFamilyLong ) ;
this . WordControl . m _oLogicDocument . SetParagraphFramePr ( Obj ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . asc _addDropCap = function ( bInText ) { this . WordControl . m _oLogicDocument . AddDropCap ( bInText ) } ; asc _docs _api . prototype . removeDropcap = function ( bDropCap ) { this . WordControl . m _oLogicDocument . RemoveDropCap ( bDropCap ) } ; 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 . GetJSONLogicDocument = function ( ) { return JSON . stringify ( this . WordControl . m _oLogicDocument ) } ; asc _docs _api . prototype . get _ContentCount = function ( ) { return this . WordControl . m _oLogicDocument . Content . length } ; asc _docs _api . prototype . select _Element = function ( Index ) { var Document = this . WordControl . m _oLogicDocument ; if ( true === Document . Selection . Use ) Document . RemoveSelection ( ) ; Document . DrawingDocument . SelectEnabled ( true ) ; Document . DrawingDocument . TargetEnd ( ) ;
Document . Selection . Use = true ; Document . Selection . Start = false ; Document . Selection . Flag = AscCommon . selectionflag _Common ; Document . Selection . StartPos = Index ; Document . Selection . EndPos = Index ; Document . Content [ Index ] . Selection . Use = true ; Document . Content [ Index ] . Selection . StartPos = Document . Content [ Index ] . Internal _GetStartPos ( ) ; Document . Content [ Index ] . Selection . EndPos = Document . Content [ Index ] . Content . length - 1 ; Document . Selection _Draw ( ) } ; asc _docs _api . prototype . UpdateTextPr = function ( TextPr ) { if ( "undefined" != typeof TextPr ) { 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 ) ; this . sync _VerticalAlign ( TextPr . VertAlign ) ; this . sync _TextHighLight ( TextPr . HighLight ) ; this . sync _TextSpacing ( TextPr . Spacing ) ; this . sync _TextDStrikeout ( TextPr . DStrikeout ) ; this . sync _TextCaps ( TextPr . Caps ) ; this . sync _TextSmallCaps ( TextPr . SmallCaps ) ; this . sync _TextPosition ( TextPr . Position ) ;
this . sync _TextLangCallBack ( TextPr . Lang ) ; this . sync _TextColor ( TextPr ) ; if ( this . isMobileVersion ) this . sendEvent ( "asc_onTextShd" , new Asc . asc _CParagraphShd ( TextPr . Shd ) ) } } ; asc _docs _api . prototype . UpdateParagraphProp = function ( ParaPr ) { var TextPr = editor . WordControl . m _oLogicDocument . GetCalculatedTextPr ( ) ; ParaPr . Subscript = TextPr . VertAlign === AscCommon . vertalign _SubScript ; ParaPr . Superscript = TextPr . VertAlign === AscCommon . vertalign _SuperScript ; ParaPr . Strikeout = TextPr . Strikeout ; ParaPr . DStrikeout = TextPr . DStrikeout ; ParaPr . AllCaps =
TextPr . Caps ; ParaPr . SmallCaps = TextPr . SmallCaps ; ParaPr . TextSpacing = TextPr . Spacing ; ParaPr . Position = TextPr . Position ; if ( true === ParaPr . Spacing . AfterAutoSpacing ) ParaPr . Spacing . After = AscCommonWord . spacing _Auto ; else if ( undefined === ParaPr . Spacing . AfterAutoSpacing ) ParaPr . Spacing . After = AscCommonWord . UnknownValue ; if ( true === ParaPr . Spacing . BeforeAutoSpacing ) ParaPr . Spacing . Before = AscCommonWord . spacing _Auto ; else if ( undefined === ParaPr . Spacing . BeforeAutoSpacing ) ParaPr . Spacing . Before = AscCommonWord . UnknownValue ; if ( - 1 ===
ParaPr . PStyle ) ParaPr . StyleName = "" ; else if ( undefined === ParaPr . PStyle || undefined === this . WordControl . m _oLogicDocument . Styles . Style [ ParaPr . PStyle ] ) ParaPr . StyleName = this . WordControl . m _oLogicDocument . Styles . Style [ this . WordControl . m _oLogicDocument . Styles . Get _Default _Paragraph ( ) ] . Name ; else ParaPr . StyleName = this . WordControl . m _oLogicDocument . Styles . Style [ ParaPr . PStyle ] . Name ; var NumType = - 1 ; var NumSubType = - 1 ; if ( ! ( null == ParaPr . NumPr || 0 === ParaPr . NumPr . NumId || "0" === ParaPr . NumPr . NumId ) ) { var oNum = this . WordControl . m _oLogicDocument . GetNumbering ( ) . GetNum ( ParaPr . NumPr . NumId ) ;
if ( oNum && oNum . GetLvl ( ParaPr . NumPr . Lvl ) ) { var res = oNum . GetLvl ( ParaPr . NumPr . Lvl ) . GetPresetType ( ) ; NumType = res . Type ; NumSubType = res . SubType } } ParaPr . ListType = { Type : NumType , SubType : NumSubType } ; if ( undefined !== ParaPr . FramePr && undefined !== ParaPr . FramePr . Wrap ) if ( AscCommonWord . wrap _NotBeside === ParaPr . FramePr . Wrap ) ParaPr . FramePr . Wrap = false ; else if ( AscCommonWord . wrap _Around === ParaPr . FramePr . Wrap ) ParaPr . FramePr . Wrap = true ; else ParaPr . FramePr . Wrap = undefined ; 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 ) { if ( null != this . WordControl . m _oDrawingDocument . m _oDocumentRenderer ) { if ( window [ "AscDesktopEditor" ] [ "IsSupportNativePrint" ] ( this . DocumentUrl ) === true ) { window [ "AscDesktopEditor" ] [ "Print" ] ( ) ; return true } } else { 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 } 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 . 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 ; var checkData = function ( data ) { return "" === data ? null : data } ; if ( AscCommon . c _oAscClipboardDataFormat . Text & _formats ) { _data = this . WordControl . m _oLogicDocument . GetSelectedText ( false , { NewLineParagraph : true } ) ; _clipboard . pushData ( AscCommon . c _oAscClipboardDataFormat . Text , checkData ( _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 , checkData ( _data ) ) } if ( AscCommon . c _oAscClipboardDataFormat . Internal & _formats ) { if ( sBase64 === null ) if ( window [ "NATIVE_EDITOR_ENJINE" ] ) { var oCopyProcessor = new AscCommon . CopyProcessor ( this , true ) ; sBase64 = oCopyProcessor . getSelectedBinary ( ) } else { var oCopyProcessor = new AscCommon . CopyProcessor ( this ) ; sBase64 = oCopyProcessor . Start ( ) } _data = sBase64 ; _clipboard . pushData ( AscCommon . c _oAscClipboardDataFormat . Internal ,
checkData ( _data ) ) } } ; asc _docs _api . prototype . asc _SelectionCut = function ( ) { if ( AscCommon . CollaborativeEditing . Get _GlobalLock ( ) ) return ; var _logicDoc = this . WordControl . m _oLogicDocument ; if ( ! _logicDoc || _logicDoc . IsSelectionEmpty ( true ) ) return ; if ( false === _logicDoc . Document _Is _SelectionLocked ( AscCommon . changestype _Remove ) ) { _logicDoc . StartAction ( AscDFH . historydescription _Cut ) ; _logicDoc . Remove ( - 1 , true , true ) ; _logicDoc . UpdateSelection ( ) ; _logicDoc . FinalizeAction ( ) } } ; asc _docs _api . prototype . asc _PasteData = function ( _format ,
data1 , data2 , text _data , useCurrentPoint , callback , checkLocks ) { if ( AscCommon . CollaborativeEditing . Get _GlobalLock ( ) ) return ; var _logicDoc = this . WordControl . m _oLogicDocument ; if ( ! _logicDoc ) return ; var isPasteImage = AscCommon . checkOnlyOneImage ( data1 ) ; var isLocked = false ; var oCC = null ; if ( isPasteImage ) oCC = _logicDoc . GetContentControl ( ) ; if ( false !== checkLocks ) if ( oCC && oCC . IsPicture ( ) ) isLocked = _logicDoc . IsSelectionLocked ( AscCommon . changestype _Image _Properties , null , true , _logicDoc . IsFormFieldEditing ( ) ) ; else isLocked = _logicDoc . IsSelectionLocked ( AscCommon . changestype _Paragraph _Content ,
null , true , _logicDoc . IsFormFieldEditing ( ) ) ; if ( ! isLocked ) { window [ "AscCommon" ] . g _specialPasteHelper . Paste _Process _Start ( arguments [ 5 ] ) ; if ( ! useCurrentPoint ) _logicDoc . StartAction ( AscDFH . historydescription _Document _PasteHotKey ) ; AscCommon . Editor _Paste _Exec ( this , _format , data1 , data2 , text _data , undefined , callback ) } } ; asc _docs _api . prototype . _finalizeAction = function ( ) { var _logicDoc = this . WordControl . m _oLogicDocument ; if ( ! _logicDoc ) return ; _logicDoc . FinalizeAction ( ) } ; 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 ( changestype _Paragraph _Content , null , true , false ) ) { window [ "AscCommon" ] . g _specialPasteHelper . Paste _Process _Start ( ) ; window [ "AscCommon" ] . g _specialPasteHelper . Special _Paste _Start ( ) ; this . WordControl . m _oLogicDocument . Document _Undo ( ) ; _logicDoc . StartAction ( AscDFH . historydescription _Document _PasteHotKey ) ;
AscCommon . Editor _Paste _Exec ( this , null , null , null , null , props ) ; _logicDoc . FinalizeAction ( ) } } ; asc _docs _api . prototype . asc _specialPasteShowButton = function ( ) { var specialPasteHelper = window [ "AscCommon" ] . g _specialPasteHelper ; if ( ! specialPasteHelper || specialPasteHelper . CheckFastCoEditing ( ) ) return ; var specialPasteShowOptions = specialPasteHelper . buttonInfo ? specialPasteHelper . buttonInfo : null ; if ( specialPasteShowOptions && null !== specialPasteHelper . showButtonIdParagraph ) { var isUpdate = specialPasteShowOptions . cellCoord ;
var id = specialPasteHelper . showButtonIdParagraph ; var elem = g _oTableId . Get _ById ( id ) ; var _X = elem . X ; var _Y = elem . Y ; var _PageNum = elem . GetCurrentPageAbsolute ( ) ; if ( elem . IsTable ( ) ) { var nPagesCount = elem . GetPagesCount ( ) ; if ( nPagesCount > 0 ) { var oBounds = elem . GetPageBounds ( nPagesCount - 1 ) ; _X = oBounds . Right ; _Y = oBounds . Bottom ; _PageNum = elem . GetAbsolutePage ( nPagesCount - 1 ) } } else { var oBounds = elem . GetSelectionBounds ( true ) ; if ( oBounds && oBounds . End ) { _X = oBounds . End . X + oBounds . End . W ; _Y = oBounds . End . Y + oBounds . End . H ; _PageNum = oBounds . End . Page } } var oTransform =
elem . Get _ParentTextTransform ( ) ; if ( oTransform ) { var _ _X = oTransform . TransformPointX ( _X , _Y ) ; var _ _Y = oTransform . TransformPointY ( _X , _Y ) ; _X = _ _X ; _Y = _ _Y } specialPasteHelper . buttonInfo . fixPosition = { x : _X , y : _Y , pageNum : _PageNum } ; var _coord = this . WordControl . m _oLogicDocument . DrawingDocument . ConvertCoordsToCursorWR ( _X , _Y , _PageNum ) ; var curCoord = new AscCommon . asc _CRect ( _coord . X , _coord . Y , 0 , 0 ) ; specialPasteShowOptions . asc _setCellCoord ( curCoord ) ; if ( isUpdate ) { specialPasteShowOptions . options = [ ] ; this . asc _UpdateSpecialPasteButton ( specialPasteShowOptions ) } else this . asc _ShowSpecialPasteButton ( specialPasteShowOptions ) } specialPasteHelper . showButtonIdParagraph =
null ; return true } ; asc _docs _api . prototype . asc _ShowSpecialPasteButton = function ( props ) { this . sendEvent ( "asc_onShowSpecialPasteOptions" , props ) } ; asc _docs _api . prototype . asc _HideSpecialPasteButton = function ( ) { this . sendEvent ( "asc_onHideSpecialPasteOptions" ) } ; asc _docs _api . prototype . asc _UpdateSpecialPasteButton = function ( ) { var pasteHepler = AscCommon . g _specialPasteHelper ; if ( ! pasteHepler ) return ; var props ; if ( pasteHepler . buttonInfo && pasteHepler . buttonInfo . fixPosition ) { props = pasteHepler . buttonInfo ; var _Y = props . fixPosition . y ;
var _X = props . fixPosition . x ; var _PageNum = props . fixPosition . pageNum ; var _coord = this . WordControl . m _oLogicDocument . DrawingDocument . ConvertCoordsToCursorWR ( _X , _Y , _PageNum ) ; var curCoord = new AscCommon . asc _CRect ( _coord . X , _coord . Y , 0 , 0 ) ; props . asc _setCellCoord ( curCoord ) } if ( props ) this . sendEvent ( "asc_onShowSpecialPasteOptions" , props ) } ; asc _docs _api . prototype . beginInlineDropTarget = function ( e ) { if ( this . WordControl . m _oLogicDocument && this . WordControl . m _oDrawingDocument ) { this . WordControl . m _oDrawingDocument . StartTrackText ( ) ;
this . WordControl . StartUpdateOverlay ( ) ; this . WordControl . onMouseMove ( e ) ; this . WordControl . EndUpdateOverlay ( ) } } ; asc _docs _api . prototype . endInlineDropTarget = function ( e ) { if ( this . WordControl . m _oLogicDocument && this . WordControl . m _oDrawingDocument ) this . WordControl . m _oDrawingDocument . EndTrackText ( true ) } ; asc _docs _api . prototype . _onSaveCallbackInner = function ( ) { var t = this ; History . CheckUnionLastPoints ( ) ; if ( c _oAscCollaborativeMarksShowType . LastChanges === this . CollaborativeMarksShowType ) AscCommon . CollaborativeEditing . Clear _CollaborativeMarks ( ) ;
var HaveOtherChanges = AscCommon . CollaborativeEditing . Have _OtherChanges ( ) ; 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 ( AscCommon . g _specialPasteHelper && ! AscCommon . CollaborativeEditing . Is _SingleUser ( ) ) AscCommon . g _specialPasteHelper . SpecialPasteButton _Hide ( ) ; 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 } , HaveOtherChanges , true ) } ; asc _docs _api . prototype . _autoSaveInner = function ( ) { 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 ( 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 . m _oLogicDocument && this . WordControl . m _oLogicDocument . IsViewModeInReview ( ) ) } ; asc _docs _api . prototype . _haveOtherChanges = function ( ) { return AscCommon . CollaborativeEditing . Have _OtherChanges ( ) } ; asc _docs _api . prototype . asc _DownloadOrigin = function ( bIsDownloadEvent ) { var downloadType = bIsDownloadEvent ? DownloadType . Download : DownloadType . None ; var rData = { "c" : "pathurl" ,
"title" : this . documentTitle , "data" : "origin." + this . documentFormat } ; var t = this ; t . fCurCallback = function ( input ) { if ( null != input && "pathurl" == input [ "type" ] ) if ( "ok" == input [ "status" ] ) { var url = input [ "data" ] ; if ( url ) t . processSavedFile ( url , downloadType ) ; else t . handlers . trigger ( "asc_onError" , c _oAscError . ID . Unknown , c _oAscError . Level . NoCritical ) } else t . handlers . trigger ( "asc_onError" , AscCommon . mapAscServerErrorToAscError ( parseInt ( input [ "data" ] ) ) , c _oAscError . Level . NoCritical ) ; else t . handlers . trigger ( "asc_onError" , c _oAscError . ID . Unknown ,
c _oAscError . Level . NoCritical ) } ; sendCommand ( this , null , rData ) } ; asc _docs _api . prototype . asc _DownloadAs = function ( options ) { var actionType = this . mailMergeFileData ? c _oAscAsyncAction . MailMergeLoadFile : c _oAscAsyncAction . DownloadAs ; this . downloadAs ( actionType , options ) } ; asc _docs _api . prototype . asc _DownloadAsMailMerge = function ( typeFile , StartIndex , EndIndex , bIsDownload ) { var oDocumentMailMerge = this . WordControl . m _oLogicDocument . Get _MailMergedDocument ( StartIndex , EndIndex ) ; if ( null != oDocumentMailMerge ) { var actionType = null ;
var options = new Asc . asc _CDownloadOptions ( typeFile , true ) ; options . oDocumentMailMerge = oDocumentMailMerge ; options . errorDirect = c _oAscError . ID . MailMergeSaveFile ; if ( bIsDownload ) { actionType = Asc . c _oAscAsyncAction . DownloadMerge ; options . isDownloadEvent = false } this . downloadAs ( actionType , options ) } return null != oDocumentMailMerge } ; 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 ( this . advancedOptionsAction !== c _oAscAdvancedOptionsAction . Open ) return ; if ( AscCommon . EncryptionWorker . asc _setAdvancedOptions ( this , idOption , option ) ) return ; switch ( idOption ) { case c _oAscAdvancedOptionsID . TXT : var rData = { "id" : this . documentId , "userid" : this . documentUserId , "format" : this . documentFormat , "c" : "reopen" , "title" : this . documentTitle , "codepage" : option . asc _getCodePage ( ) , "nobase64" : true } ; sendCommand ( this , null , rData ) ;
break ; 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 . 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 ) ; this . WordControl . m _oDrawingDocument . ClearCachePages ( ) ; if ( AscCommon . g _fontManager2 !== undefined && AscCommon . g _fontManager2 !== null ) AscCommon . g _fontManager2 . ClearFontsRasterCache ( ) ; if ( this . bInit _word _control ) this . WordControl . OnScroll ( ) } ; asc _docs _api . prototype . processSavedFile = function ( url ,
downloadType ) { var t = this ; if ( this . mailMergeFileData ) { this . mailMergeFileData = null ; AscCommon . loadFileContent ( url , function ( httpRequest ) { if ( null === httpRequest ) { t . sendEvent ( "asc_onError" , c _oAscError . ID . MailMergeLoadFile , c _oAscError . Level . NoCritical ) ; return } try { t . asc _StartMailMergeByList ( JSON . parse ( httpRequest . responseText ) ) } catch ( e ) { t . sendEvent ( "asc_onError" , c _oAscError . ID . MailMergeLoadFile , c _oAscError . Level . NoCritical ) } } ) } else if ( this . insertDocumentUrlsData && this . insertDocumentUrlsData . convertCallback ) this . insertDocumentUrlsData . convertCallback ( this ,
url ) ; else AscCommon . baseEditorsApi . prototype . processSavedFile . call ( this , url , downloadType ) } ; asc _docs _api . prototype . endInsertDocumentUrls = function ( ) { if ( this . insertDocumentUrlsData ) { this . insertDocumentUrlsData . endCallback ( this ) ; this . insertDocumentUrlsData = null } } ; asc _docs _api . prototype . startGetDocInfo = function ( ) { this . sync _GetDocInfoStartCallback ( ) ; if ( null != this . WordControl . m _oDrawingDocument . m _oDocumentRenderer ) { var _render = this . WordControl . m _oDrawingDocument . m _oDocumentRenderer ; var obj = { PageCount : _render . PagesCount ,
WordsCount : _render . CountWords , ParagraphCount : _render . CountParagraphs , SymbolsCount : _render . CountSymbols , SymbolsWSCount : _render . CountSymbols + _render . CountSpaces } ; this . sendEvent ( "asc_onDocInfo" , new CDocInfoProp ( obj ) ) ; this . sync _GetDocInfoEndCallback ( ) } else this . WordControl . m _oLogicDocument . Statistics _Start ( ) } ; asc _docs _api . prototype . stopGetDocInfo = function ( ) { this . sync _GetDocInfoStopCallback ( ) ; if ( null != this . WordControl . m _oLogicDocument ) 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 . can _CopyCut = function ( ) { return this . WordControl . m _oLogicDocument . Can _CopyCut ( ) } ; asc _docs _api . prototype . setStartPointHistory = function ( ) { this . noCreatePoint = true ; this . exucuteHistory = true ; this . incrementCounterLongAction ( ) ; this . WordControl . m _oLogicDocument . TurnOff _InterfaceEvents ( ) } ; asc _docs _api . prototype . setEndPointHistory =
function ( ) { this . noCreatePoint = false ; this . exucuteHistoryEnd = true ; this . decrementCounterLongAction ( ) ; this . WordControl . m _oLogicDocument . TurnOn _InterfaceEvents ( ) } ; 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 } ; 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 ( ) { if ( ! this . WordControl . m _oLogicDocument ) return ; this . WordControl . m _oDrawingDocument . StartTableStylesCheck ( ) ; this . WordControl . m _oDrawingDocument . TableStylesCheckLook =
new Asc . CTablePropLook ; this . WordControl . m _oDrawingDocument . TableStylesCheckLook . FirstCol = true ; this . WordControl . m _oDrawingDocument . TableStylesCheckLook . FirstRow = true ; this . WordControl . m _oDrawingDocument . TableStylesCheckLook . BandHor = true ; this . WordControl . m _oDrawingDocument . EndTableStylesCheck ( ) } ; asc _docs _api . prototype . CollectHeaders = function ( ) { this . sync _ReturnHeadersCallback ( [ ] ) } ; asc _docs _api . prototype . GetActiveHeader = function ( ) { } ; asc _docs _api . prototype . gotoHeader = function ( page , X , Y ) { this . goToPage ( page ) } ;
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 . asc _searchEnabled = function ( bIsEnabled ) { if ( null != this . WordControl . m _oDrawingDocument . m _oDocumentRenderer ) { this . WordControl . m _oDrawingDocument . m _oDocumentRenderer . SearchResults . IsSearch =
false ; this . WordControl . OnUpdateOverlay ( ) } } ; asc _docs _api . prototype . asc _findText = function ( text , isNext , isMatchCase ) { if ( null != this . WordControl . m _oDrawingDocument . m _oDocumentRenderer ) { this . WordControl . m _oDrawingDocument . m _oDocumentRenderer . findText ( text , isMatchCase , isNext ) ; return this . WordControl . m _oDrawingDocument . m _oDocumentRenderer . SearchResults . Count } 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 } return false } } ; asc _docs _api . prototype . _selectSearchingResults = function ( bShow ) { if ( null != this . WordControl . m _oDrawingDocument . m _oDocumentRenderer ) { this . WordControl . m _oDrawingDocument . m _oDocumentRenderer . SearchResults . Show = bShow ; this . WordControl . OnUpdateOverlay ( ) ;
return } this . WordControl . m _oLogicDocument . HighlightSearchResults ( bShow ) } ; asc _docs _api . prototype . asc _isSelectSearchingResults = function ( ) { if ( null != this . WordControl . m _oDrawingDocument . m _oDocumentRenderer ) return this . WordControl . m _oDrawingDocument . m _oDocumentRenderer . SearchResults . Show ; return this . WordControl . m _oLogicDocument . IsHighlightSearchResults ( ) } ; 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 . put _TextPrFontName = function ( name ) { var loader = AscCommon . g _font _loader ; var fontinfo = g _fontApplication . GetFontInfo ( name ) ; var isasync = loader . LoadFont ( fontinfo ) ; if ( false === isasync ) if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _Paragraph _TextProperties ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetTextFontName ) ; this . WordControl . m _oLogicDocument . AddToParagraph ( new AscCommonWord . ParaTextPr ( { FontFamily : { Name : name ,
Index : - 1 } } ) ) ; this . WordControl . m _oLogicDocument . Recalculate ( ) ; this . WordControl . m _oLogicDocument . UpdateInterface ( ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . put _TextPrFontSize = function ( size ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _Paragraph _TextProperties ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetTextFontSize ) ; this . WordControl . m _oLogicDocument . AddToParagraph ( new AscCommonWord . ParaTextPr ( { FontSize : Math . min ( size ,
300 ) } ) ) ; this . WordControl . m _oLogicDocument . Recalculate ( ) ; this . WordControl . m _oLogicDocument . UpdateInterface ( ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . put _TextPrBold = function ( value ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _Paragraph _TextProperties ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetTextBold ) ; this . WordControl . m _oLogicDocument . AddToParagraph ( new AscCommonWord . ParaTextPr ( { Bold : value } ) ) ;
this . WordControl . m _oLogicDocument . Recalculate ( ) ; this . WordControl . m _oLogicDocument . UpdateInterface ( ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . put _TextPrItalic = function ( value ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _Paragraph _TextProperties ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetTextItalic ) ; this . WordControl . m _oLogicDocument . AddToParagraph ( new AscCommonWord . ParaTextPr ( { Italic : value } ) ) ;
this . WordControl . m _oLogicDocument . Recalculate ( ) ; this . WordControl . m _oLogicDocument . UpdateInterface ( ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . put _TextPrUnderline = function ( value ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _Paragraph _TextProperties ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetTextUnderline ) ; this . WordControl . m _oLogicDocument . AddToParagraph ( new AscCommonWord . ParaTextPr ( { Underline : value } ) ) ;
this . WordControl . m _oLogicDocument . Recalculate ( ) ; this . WordControl . m _oLogicDocument . UpdateInterface ( ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . put _TextPrStrikeout = function ( value ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _Paragraph _TextProperties ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetTextStrikeout ) ; this . WordControl . m _oLogicDocument . AddToParagraph ( new AscCommonWord . ParaTextPr ( { Strikeout : value ,
DStrikeout : false } ) ) ; this . WordControl . m _oLogicDocument . Recalculate ( ) ; this . WordControl . m _oLogicDocument . UpdateInterface ( ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . put _TextPrDStrikeout = function ( value ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _Paragraph _TextProperties ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetTextDStrikeout ) ; this . WordControl . m _oLogicDocument . AddToParagraph ( new AscCommonWord . ParaTextPr ( { DStrikeout : value ,
Strikeout : false } ) ) ; this . WordControl . m _oLogicDocument . Recalculate ( ) ; this . WordControl . m _oLogicDocument . UpdateInterface ( ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . put _TextPrSpacing = function ( value ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _Paragraph _TextProperties ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetTextSpacing ) ; this . WordControl . m _oLogicDocument . AddToParagraph ( new AscCommonWord . ParaTextPr ( { Spacing : value } ) ) ;
this . WordControl . m _oLogicDocument . Recalculate ( ) ; this . WordControl . m _oLogicDocument . UpdateInterface ( ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . put _TextPrCaps = function ( value ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _Paragraph _TextProperties ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetTextCaps ) ; this . WordControl . m _oLogicDocument . AddToParagraph ( new AscCommonWord . ParaTextPr ( { Caps : value ,
SmallCaps : false } ) ) ; this . WordControl . m _oLogicDocument . Recalculate ( ) ; this . WordControl . m _oLogicDocument . UpdateInterface ( ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . put _TextPrSmallCaps = function ( value ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _Paragraph _TextProperties ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetTextSmallCaps ) ; this . WordControl . m _oLogicDocument . AddToParagraph ( new AscCommonWord . ParaTextPr ( { SmallCaps : value ,
Caps : false } ) ) ; this . WordControl . m _oLogicDocument . Recalculate ( ) ; this . WordControl . m _oLogicDocument . UpdateInterface ( ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . put _TextPrPosition = function ( value ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _Paragraph _TextProperties ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetTextPosition ) ; this . WordControl . m _oLogicDocument . AddToParagraph ( new AscCommonWord . ParaTextPr ( { Position : value } ) ) ;
this . WordControl . m _oLogicDocument . Recalculate ( ) ; this . WordControl . m _oLogicDocument . UpdateInterface ( ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . put _TextPrLang = function ( value ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _Paragraph _TextProperties ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetTextLang ) ; this . WordControl . m _oLogicDocument . AddToParagraph ( new AscCommonWord . ParaTextPr ( { Lang : { Val : value } } ) ) ;
this . WordControl . m _oLogicDocument . Spelling . Check _CurParas ( ) ; this . WordControl . m _oLogicDocument . Recalculate ( ) ; this . WordControl . m _oLogicDocument . UpdateInterface ( ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . put _PrLineSpacing = function ( Type , Value ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( changestype _Paragraph _Properties ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetParagraphLineSpacing ) ; this . WordControl . m _oLogicDocument . SetParagraphSpacing ( { LineRule : Type ,
Line : Value } ) ; this . WordControl . m _oLogicDocument . Recalculate ( ) ; this . WordControl . m _oLogicDocument . UpdateInterface ( ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . put _LineSpacingBeforeAfter = function ( type , value ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( changestype _Paragraph _Properties ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetParagraphLineSpacingBeforeAfter ) ; switch ( type ) { case 0 : { if ( AscCommonWord . spacing _Auto ===
value ) this . WordControl . m _oLogicDocument . SetParagraphSpacing ( { BeforeAutoSpacing : true } ) ; else this . WordControl . m _oLogicDocument . SetParagraphSpacing ( { Before : value , BeforeAutoSpacing : false } ) ; break } case 1 : { if ( AscCommonWord . spacing _Auto === value ) this . WordControl . m _oLogicDocument . SetParagraphSpacing ( { AfterAutoSpacing : true } ) ; else this . WordControl . m _oLogicDocument . SetParagraphSpacing ( { After : value , AfterAutoSpacing : false } ) ; break } } this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . FontSizeIn =
function ( ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _Paragraph _TextProperties ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _IncFontSize ) ; this . WordControl . m _oLogicDocument . IncreaseDecreaseFontSize ( true ) ; this . WordControl . m _oLogicDocument . Recalculate ( ) ; this . WordControl . m _oLogicDocument . UpdateInterface ( ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . FontSizeOut = function ( ) { if ( false ===
this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _Paragraph _TextProperties ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _DecFontSize ) ; this . WordControl . m _oLogicDocument . IncreaseDecreaseFontSize ( false ) ; this . WordControl . m _oLogicDocument . Recalculate ( ) ; this . WordControl . m _oLogicDocument . UpdateInterface ( ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . put _Borders = function ( Obj ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( changestype _Paragraph _Properties ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetParagraphBorders ) ;
this . WordControl . m _oLogicDocument . SetParagraphBorders ( Obj ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; 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 ) { if ( undefined != FontFamily ) this . sendEvent ( "asc_onFontFamily" , new asc _CTextFontFamily ( FontFamily ) ) ; else this . sendEvent ( "asc_onFontFamily" , new asc _CTextFontFamily ( { Name : "" , Index : - 1 } ) ) } ; 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 Asc . asc _CParagraphInd ( LineSpacing ) ) } ;
asc _docs _api . prototype . sync _InitEditorStyles = function ( styles _painter ) { if ( ! this . isViewMode ) this . sendEvent ( "asc_onInitEditorStyles" , styles _painter ) } ; asc _docs _api . prototype . sync _InitEditorTableStyles = function ( styles , is _retina _enabled ) { if ( ! this . isViewMode ) this . sendEvent ( "asc_onInitTableTemplates" , styles , is _retina _enabled ) } ; asc _docs _api . prototype . paraApply = function ( Props ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return ; var arrAdditional = [ ] ; if ( undefined != Props . DefaultTab ) arrAdditional . push ( { Type : AscCommon . changestype _2 _Element _and _Type ,
Element : oLogicDocument , CheckType : AscCommon . changestype _Document _SectPr } ) ; if ( undefined !== Props . Subscript || undefined !== Props . Strikeout || undefined !== Props . DStrikeout || undefined !== Props . SmallCaps || undefined !== Props . AllCaps || undefined !== Props . TextSpacing || undefined !== Props . Position ) arrAdditional . push ( { Type : AscCommon . changestype _2 _AdditionalTypes , Types : [ AscCommon . changestype _Paragraph _TextProperties ] } ) ; if ( ! oLogicDocument . IsSelectionLocked ( changestype _Paragraph _Properties , arrAdditional ) ) { oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetParagraphPr ) ;
if ( "undefined" != typeof Props . ContextualSpacing && null != Props . ContextualSpacing ) this . WordControl . m _oLogicDocument . SetParagraphContextualSpacing ( Props . ContextualSpacing ) ; if ( "undefined" != typeof Props . Ind && null != Props . Ind ) this . WordControl . m _oLogicDocument . SetParagraphIndent ( Props . Ind ) ; if ( "undefined" != typeof Props . Jc && null != Props . Jc ) this . WordControl . m _oLogicDocument . SetParagraphAlign ( Props . Jc ) ; if ( "undefined" != typeof Props . KeepLines && null != Props . KeepLines ) this . WordControl . m _oLogicDocument . SetParagraphKeepLines ( Props . KeepLines ) ;
if ( undefined != Props . KeepNext && null != Props . KeepNext ) this . WordControl . m _oLogicDocument . SetParagraphKeepNext ( Props . KeepNext ) ; if ( undefined != Props . WidowControl && null != Props . WidowControl ) this . WordControl . m _oLogicDocument . SetParagraphWidowControl ( Props . WidowControl ) ; if ( "undefined" != typeof Props . PageBreakBefore && null != Props . PageBreakBefore ) this . WordControl . m _oLogicDocument . SetParagraphPageBreakBefore ( Props . PageBreakBefore ) ; if ( "undefined" != typeof Props . Spacing && null != Props . Spacing ) this . WordControl . m _oLogicDocument . SetParagraphSpacing ( Props . Spacing ) ;
if ( undefined !== Props . OutlineLvl ) this . WordControl . m _oLogicDocument . SetParagraphOutlineLvl ( Props . OutlineLvl ) ; if ( Props . Shd ) { var Unifill = new AscFormat . CUniFill ; Unifill . fill = new AscFormat . CSolidFill ; Unifill . fill . color = AscFormat . CorrectUniColor ( Props . Shd . Color , Unifill . fill . color , 1 ) ; this . WordControl . m _oLogicDocument . SetParagraphShd ( { Value : Asc . c _oAscShd . Clear , Color : { r : Props . Shd . Color . asc _getR ( ) , g : Props . Shd . Color . asc _getG ( ) , b : Props . Shd . Color . asc _getB ( ) , Auto : false } , Fill : { r : Props . Shd . Color . asc _getR ( ) , g : Props . Shd . Color . asc _getG ( ) ,
b : Props . Shd . Color . asc _getB ( ) , Auto : false } , Unifill : Unifill } ) } if ( "undefined" != typeof Props . Brd && null != Props . Brd ) { if ( Props . Brd . Left && Props . Brd . Left . Color ) Props . Brd . Left . Unifill = AscFormat . CreateUnifillFromAscColor ( Props . Brd . Left . Color , 1 ) ; if ( Props . Brd . Top && Props . Brd . Top . Color ) Props . Brd . Top . Unifill = AscFormat . CreateUnifillFromAscColor ( Props . Brd . Top . Color , 1 ) ; if ( Props . Brd . Right && Props . Brd . Right . Color ) Props . Brd . Right . Unifill = AscFormat . CreateUnifillFromAscColor ( Props . Brd . Right . Color , 1 ) ; if ( Props . Brd . Bottom && Props . Brd . Bottom . Color ) Props . Brd . Bottom . Unifill =
AscFormat . CreateUnifillFromAscColor ( Props . Brd . Bottom . Color , 1 ) ; if ( Props . Brd . InsideH && Props . Brd . InsideH . Color ) Props . Brd . InsideH . Unifill = AscFormat . CreateUnifillFromAscColor ( Props . Brd . InsideH . Color , 1 ) ; if ( Props . Brd . InsideV && Props . Brd . InsideV . Color ) Props . Brd . InsideV . Unifill = AscFormat . CreateUnifillFromAscColor ( Props . Brd . InsideV . Color , 1 ) ; this . WordControl . m _oLogicDocument . SetParagraphBorders ( Props . Brd ) } if ( undefined != Props . Tabs ) { var Tabs = new AscCommonWord . CParaTabs ; Tabs . Set _FromObject ( Props . Tabs . Tabs ) ; this . WordControl . m _oLogicDocument . SetParagraphTabs ( Tabs ) } if ( undefined !=
Props . DefaultTab ) this . WordControl . m _oLogicDocument . Set _DocumentDefaultTab ( Props . DefaultTab ) ; if ( undefined !== Props . SuppressLineNumbers ) oLogicDocument . SetParagraphSuppressLineNumbers ( Props . SuppressLineNumbers ) ; var TextPr = new AscCommonWord . CTextPr ; if ( true === Props . Subscript ) TextPr . VertAlign = AscCommon . vertalign _SubScript ; else if ( true === Props . Superscript ) TextPr . VertAlign = AscCommon . vertalign _SuperScript ; else if ( false === Props . Superscript || false === Props . Subscript ) TextPr . VertAlign = AscCommon . vertalign _Baseline ;
if ( undefined != Props . Strikeout ) { TextPr . Strikeout = Props . Strikeout ; TextPr . DStrikeout = false } if ( undefined != Props . DStrikeout ) { TextPr . DStrikeout = Props . DStrikeout ; if ( true === TextPr . DStrikeout ) TextPr . Strikeout = false } if ( undefined != Props . SmallCaps ) { TextPr . SmallCaps = Props . SmallCaps ; TextPr . AllCaps = false } if ( undefined != Props . AllCaps ) { TextPr . Caps = Props . AllCaps ; if ( true === TextPr . AllCaps ) TextPr . SmallCaps = false } if ( undefined != Props . TextSpacing ) TextPr . Spacing = Props . TextSpacing ; if ( undefined != Props . Position ) TextPr . Position =
Props . Position ; oLogicDocument . AddToParagraph ( new AscCommonWord . ParaTextPr ( TextPr ) ) ; oLogicDocument . Recalculate ( ) ; oLogicDocument . UpdateInterface ( ) ; oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . put _PrAlign = function ( value ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( changestype _Paragraph _Properties ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetParagraphAlign ) ; this . WordControl . m _oLogicDocument . SetParagraphAlign ( value ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ;
asc _docs _api . prototype . put _TextPrBaseline = function ( value ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _Paragraph _TextProperties ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetTextVertAlign ) ; this . WordControl . m _oLogicDocument . AddToParagraph ( new AscCommonWord . ParaTextPr ( { VertAlign : value } ) ) ; this . WordControl . m _oLogicDocument . Recalculate ( ) ; this . WordControl . m _oLogicDocument . UpdateInterface ( ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ;
asc _docs _api . prototype . put _ListType = function ( type , subtype ) { var oLogicDocument = this . WordControl . m _oLogicDocument ; var fCallback = function ( ) { if ( false === oLogicDocument . Document _Is _SelectionLocked ( changestype _Paragraph _Properties ) ) { var NumberInfo = { Type : 0 , SubType : - 1 } ; NumberInfo . Type = type ; NumberInfo . SubType = subtype ; oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetParagraphNumbering ) ; oLogicDocument . SetParagraphNumbering ( NumberInfo ) ; oLogicDocument . FinalizeAction ( ) } } ; var sBullet = "" ; if ( type ===
0 ) switch ( subtype ) { case 1 : { sBullet = String . fromCharCode ( 183 ) ; break } case 2 : { sBullet = "o" ; break } case 3 : { sBullet = String . fromCharCode ( 167 ) ; break } case 4 : { sBullet = String . fromCharCode ( 118 ) ; break } case 5 : { sBullet = String . fromCharCode ( 216 ) ; break } case 6 : { sBullet = String . fromCharCode ( 252 ) ; break } case 7 : { sBullet = String . fromCharCode ( 168 ) ; break } case 8 : { sBullet = String . fromCharCode ( 8211 ) ; break } } if ( sBullet . length > 0 ) AscFonts . FontPickerByCharacter . checkText ( sBullet , this , fCallback ) ; else fCallback ( ) } ; asc _docs _api . prototype . asc _ContinueNumbering =
function ( ) { var oLogicDocument = this . WordControl . m _oLogicDocument ; if ( ! oLogicDocument ) return ; oLogicDocument . ContinueNumbering ( ) } ; asc _docs _api . prototype . asc _RestartNumbering = function ( nRestartValue ) { var oLogicDocument = this . WordControl . m _oLogicDocument ; if ( ! oLogicDocument ) return ; oLogicDocument . RestartNumbering ( nRestartValue ) } ; asc _docs _api . prototype . asc _GetCurrentNumberingId = function ( ) { var oLogicDocument = this . WordControl . m _oLogicDocument ; if ( ! oLogicDocument ) return null ; var oNumPr = oLogicDocument . GetSelectedNum ( true ) ;
if ( ! oNumPr ) return null ; var oNum = oLogicDocument . GetNumbering ( ) . GetNum ( oNumPr . NumId ) ; if ( ! oNum ) return null ; return oNumPr . NumId } ; asc _docs _api . prototype . asc _GetCurrentNumberingLvl = function ( ) { var oLogicDocument = this . WordControl . m _oLogicDocument ; if ( ! oLogicDocument ) return - 1 ; var oNumPr = oLogicDocument . GetSelectedNum ( true ) ; if ( ! oNumPr || undefined === oNumPr . Lvl || null === oNumPr . Lvl ) return - 1 ; return oNumPr . Lvl } ; asc _docs _api . prototype . asc _GetCalculatedNumberingValue = function ( ) { var oLogicDocument = this . private _GetLogicDocument ( ) ;
if ( ! oLogicDocument ) return - 1 ; var oParagraph = oLogicDocument . GetCurrentParagraph ( true ) ; if ( ! oParagraph ) return - 1 ; return oParagraph . GetNumberingCalculatedValue ( ) } ; asc _docs _api . prototype . asc _GetNumberingPr = function ( sNumId ) { var oLogicDocument = this . WordControl . m _oLogicDocument ; if ( ! oLogicDocument ) return null ; var oNum = oLogicDocument . GetNumbering ( ) . GetNum ( sNumId ) ; if ( ! oNum ) return null ; var oAscNumbering = new Asc . CAscNumbering ; oNum . FillToAscNum ( oAscNumbering ) ; return oAscNumbering } ; asc _docs _api . prototype . asc _AddNewNumbering =
function ( oAscNumbering , isApply ) { var oLogicDocument = this . WordControl . m _oLogicDocument ; if ( ! oLogicDocument ) return null ; var arrParagraphs ; if ( isApply ) { arrParagraphs = oLogicDocument . GetSelectedParagraphs ( ) ; if ( oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _None , { Type : AscCommon . changestype _2 _ElementsArray _and _Type , Elements : arrParagraphs , CheckType : AscCommon . changestype _Paragraph _Properties } ) ) return null } oLogicDocument . StartAction ( AscDFH . historydescription _Document _CreateNum ) ; var oNumbering =
oLogicDocument . GetNumbering ( ) ; var oNum = oNumbering . CreateNum ( ) ; oNum . FillFromAscNum ( oAscNumbering ) ; var sNumId = oNum . GetId ( ) ; if ( arrParagraphs ) { for ( var nIndex = 0 , nCount = arrParagraphs . length ; nIndex < nCount ; ++ nIndex ) { var oPara = arrParagraphs [ nIndex ] ; var oNumPr = oPara . GetNumPr ( ) ; if ( ! oNumPr ) oPara . ApplyNumPr ( sNumId , 0 ) ; else oPara . ApplyNumPr ( sNumId , oNumPr . Lvl ) } oLogicDocument . Recalculate ( ) ; oLogicDocument . UpdateInterface ( ) ; oLogicDocument . UpdateSelection ( ) } oLogicDocument . FinalizeAction ( ) } ; asc _docs _api . prototype . asc _ChangeNumberingLvl =
function ( sNumId , oAscNumberingLvl , nLvl ) { var oLogicDocument = this . WordControl . m _oLogicDocument ; if ( ! oLogicDocument ) return ; var oNum = oLogicDocument . GetNumbering ( ) . GetNum ( sNumId ) ; if ( ! oNum ) return ; if ( ! oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _None , { Type : AscCommon . changestype _2 _ElementsArray _and _Type , Elements : [ oNum ] , CheckType : AscCommon . changestype _Paragraph _Properties } ) ) { oLogicDocument . StartAction ( AscDFH . historydescription _Document _ChangeNumLvl ) ; if ( oAscNumberingLvl instanceof Asc . CAscNumberingLvl ) oNum . SetAscLvl ( oAscNumberingLvl ,
nLvl ) ; else if ( undefined !== oAscNumberingLvl . length && oAscNumberingLvl . length === nLvl . length ) for ( var nIndex = 0 , nCount = oAscNumberingLvl . length ; nIndex < nCount ; ++ nIndex ) oNum . SetAscLvl ( oAscNumberingLvl [ nIndex ] , nLvl [ nIndex ] ) ; oLogicDocument . Recalculate ( ) ; oLogicDocument . UpdateInterface ( ) ; oLogicDocument . UpdateSelection ( ) ; oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . asc _SetNumberingLvl = function ( nLvl ) { var _nLvl = Math . max ( - 1 , Math . min ( 8 , nLvl ) ) ; var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return ;
var arrSelectedParagraphs = oLogicDocument . GetSelectedParagraphs ( ) ; if ( arrSelectedParagraphs . length <= 0 ) return ; if ( ! oLogicDocument . IsSelectionLocked ( AscCommon . changestype _None , { Type : AscCommon . changestype _2 _ElementsArray _and _Type , Elements : arrSelectedParagraphs , CheckType : AscCommon . changestype _Paragraph _Properties } ) ) { oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetNumberingLvl ) ; for ( var nIndex = 0 , nCount = arrSelectedParagraphs . length ; nIndex < nCount ; ++ nIndex ) { var oParagraph = arrSelectedParagraphs [ nIndex ] ;
var oNumPr = oParagraph . GetNumPr ( ) ; if ( ! oNumPr ) continue ; if ( - 1 === _nLvl ) oParagraph . RemoveNumPr ( ) ; else oParagraph . SetNumPr ( oNumPr . NumId , _nLvl ) } oLogicDocument . Recalculate ( ) ; oLogicDocument . UpdateInterface ( ) ; oLogicDocument . UpdateSelection ( ) ; oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . put _Style = function ( sName ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( changestype _Paragraph _Properties ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetParagraphStyle ) ;
this . WordControl . m _oLogicDocument . SetParagraphStyle ( sName , true ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . asc _SetParagraphSuppressLineNumbers = function ( isSuppress ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return ; if ( ! oLogicDocument . IsSelectionLocked ( AscCommon . changestype _Paragraph _Properties ) ) { oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetParagraphSuppressLineNumbers ) ; oLogicDocument . SetParagraphSuppressLineNumbers ( isSuppress ) ;
oLogicDocument . Recalculate ( ) ; oLogicDocument . UpdateInterface ( ) ; oLogicDocument . FinalizeAction ( ) } } ; 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 } } } } ; 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 ) { if ( this . isRestrictionForms ( ) || this . isRestrictionComments ( ) ) isShow = false ; this . ShowParaMarks =
isShow ; this . WordControl . OnRePaintAttack ( ) ; if ( true === this . isMarkerFormat ) this . sync _MarkerFormatCallback ( false ) ; return this . ShowParaMarks } ; asc _docs _api . prototype . get _ShowParaMarks = function ( ) { return this . ShowParaMarks } ; asc _docs _api . prototype . sync _ShowParaMarks = function ( ) { this . sendEvent ( "asc_onShowParaMarks" , this . get _ShowParaMarks ( ) ) } ; asc _docs _api . prototype . put _ShowTableEmptyLine = function ( isShow ) { this . isShowTableEmptyLine = isShow ; this . WordControl . OnRePaintAttack ( ) ; if ( true === this . isMarkerFormat ) this . sync _MarkerFormatCallback ( false ) ;
return this . isShowTableEmptyLine } ; asc _docs _api . prototype . get _ShowTableEmptyLine = function ( ) { return this . isShowTableEmptyLine } ; asc _docs _api . prototype . put _PageBreak = function ( isBreak ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( changestype _Paragraph _Properties ) ) { this . isPageBreakBefore = isBreak ; this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetParagraphPageBreakBefore ) ; this . WordControl . m _oLogicDocument . SetParagraphPageBreakBefore ( isBreak ) ; this . sync _PageBreakCallback ( isBreak ) ;
this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . put _WidowControl = function ( bValue ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( changestype _Paragraph _Properties ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetParagraphWidowControl ) ; this . WordControl . m _oLogicDocument . SetParagraphWidowControl ( bValue ) ; this . sync _WidowControlCallback ( bValue ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . put _KeepLines =
function ( isKeepLines ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( changestype _Paragraph _Properties ) ) { this . isKeepLinesTogether = isKeepLines ; this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetParagraphKeepLines ) ; this . WordControl . m _oLogicDocument . SetParagraphKeepLines ( isKeepLines ) ; this . sync _KeepLinesCallback ( isKeepLines ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . put _KeepNext = function ( isKeepNext ) { if ( false ===
this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( changestype _Paragraph _Properties ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetParagraphKeepNext ) ; this . WordControl . m _oLogicDocument . SetParagraphKeepNext ( isKeepNext ) ; this . sync _KeepNextCallback ( isKeepNext ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . put _AddSpaceBetweenPrg = function ( isSpacePrg ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( changestype _Paragraph _Properties ) ) { this . isAddSpaceBetweenPrg =
isSpacePrg ; this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetParagraphContextualSpacing ) ; this . WordControl . m _oLogicDocument . SetParagraphContextualSpacing ( isSpacePrg ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . put _LineHighLight = function ( is _flag , r , g , b ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _Paragraph _TextProperties ) ) if ( false === is _flag ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetTextHighlightNone ) ;
this . WordControl . m _oLogicDocument . AddToParagraph ( new AscCommonWord . ParaTextPr ( { HighLight : AscCommonWord . highlight _None } ) ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } else { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetTextHighlightColor ) ; this . WordControl . m _oLogicDocument . AddToParagraph ( new AscCommonWord . ParaTextPr ( { HighLight : { r : r , g : g , b : b } } ) ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . put _TextColor = function ( color ) { var oLogicDocument =
this . WordControl . m _oLogicDocument ; if ( false === oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _Paragraph _TextProperties ) ) { oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetTextColor ) ; if ( true === color . Auto ) oLogicDocument . AddToParagraph ( new AscCommonWord . ParaTextPr ( { Color : { Auto : true , r : 0 , g : 0 , b : 0 } , Unifill : undefined } ) ) ; else if ( color && color . asc _getType && color . asc _getType ( ) === Asc . c _oAscColor . COLOR _TYPE _SRGB ) { var oColor = new AscCommonWord . CDocumentColor ( color . r , color . g , color . b ,
false ) ; oLogicDocument . AddToParagraph ( new AscCommonWord . ParaTextPr ( { Color : oColor , Unifill : undefined } ) ) } else { var Unifill = new AscFormat . CUniFill ; Unifill . fill = new AscFormat . CSolidFill ; Unifill . fill . color = AscFormat . CorrectUniColor ( color , Unifill . fill . color , 1 ) ; oLogicDocument . AddToParagraph ( new AscCommonWord . ParaTextPr ( { Unifill : Unifill } ) ) } oLogicDocument . Recalculate ( ) ; oLogicDocument . UpdateInterface ( ) ; oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . put _ParagraphShade = function ( is _flag , color , isOnlyPara ) { if ( ! this . WordControl . m _oLogicDocument . IsSelectionLocked ( AscCommon . changestype _Paragraph _Properties ,
{ Type : AscCommon . changestype _2 _AdditionalTypes , Types : [ AscCommon . changestype _Paragraph _TextProperties ] } ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetParagraphShd ) ; if ( true === isOnlyPara ) this . WordControl . m _oLogicDocument . SetUseTextShd ( false ) ; if ( false === is _flag ) this . WordControl . m _oLogicDocument . SetParagraphShd ( { Value : Asc . c _oAscShd . Clear , Color : { r : 0 , g : 0 , b : 0 , Auto : true } , Fill : { r : 255 , g : 255 , b : 255 , Auto : true } } ) ; else { var Unifill = new AscFormat . CUniFill ; Unifill . fill = new AscFormat . CSolidFill ;
Unifill . fill . color = AscFormat . CorrectUniColor ( color , Unifill . fill . color , 1 ) ; this . WordControl . m _oLogicDocument . SetParagraphShd ( { Value : Asc . c _oAscShd . Clear , Color : { r : color . asc _getR ( ) , g : color . asc _getG ( ) , b : color . asc _getB ( ) , Auto : false } , Fill : { r : color . asc _getR ( ) , g : color . asc _getG ( ) , b : color . asc _getB ( ) , Auto : false } , Unifill : Unifill } ) } this . WordControl . m _oLogicDocument . SetUseTextShd ( true ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . put _PrIndent = function ( value , levelValue ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( changestype _Paragraph _Properties ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetParagraphIndent ) ;
this . WordControl . m _oLogicDocument . SetParagraphIndent ( { Left : value , ChangeLevel : levelValue } ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . put _ParagraphOutlineLvl = function ( nLvl ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return ; if ( false === oLogicDocument . Document _Is _SelectionLocked ( changestype _Paragraph _Properties ) ) { oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetParagraphOutlineLvl ) ; oLogicDocument . SetParagraphOutlineLvl ( nLvl ) ;
oLogicDocument . FinalizeAction ( ) ; oLogicDocument . UpdateDocumentOutlinePosition ( ) } } ; asc _docs _api . prototype . asc _addSignatureLine = function ( oPr , Width , Height , sImgUrl ) { var oLogicDocument = this . WordControl . m _oLogicDocument ; if ( false === oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _Document _Content _Add ) ) { oLogicDocument . StartAction ( AscDFH . historydescription _Document _InsertSignatureLine ) ; var oSpToEdit = null ; var sGuid = oPr . asc _getGuid ( ) ; if ( sGuid ) { var oDrawingObjects = oLogicDocument . DrawingObjects ;
var ret = [ ] , allSpr = [ ] ; allSpr = allSpr . concat ( allSpr . concat ( oDrawingObjects . getAllSignatures2 ( ret , oDrawingObjects . getDrawingArray ( ) ) ) ) ; for ( var i = 0 ; i < allSpr . length ; ++ i ) if ( allSpr [ i ] . getSignatureLineGuid ( ) === sGuid ) { oSpToEdit = allSpr [ i ] ; break } } if ( ! oSpToEdit ) { var oSignature = AscFormat . fCreateSignatureShape ( oPr , true , null , Width , Height , sImgUrl ) ; var Drawing = new AscCommonWord . ParaDrawing ( oSignature . spPr . xfrm . extX , oSignature . spPr . xfrm . extY , null , this . WordControl . m _oDrawingDocument , null , null ) ; oSignature . setParent ( Drawing ) ;
Drawing . Set _GraphicObject ( oSignature ) ; oLogicDocument . AddSignatureLine ( Drawing ) ; oSignature . setSignature ( oSignature . signatureLine ) ; this . sendEvent ( "asc_onAddSignature" , oSignature . signatureLine . id ) } else { oSpToEdit . setSignaturePr ( oPr , sImgUrl ) ; oLogicDocument . Recalculate ( ) ; this . sendEvent ( "asc_onAddSignature" , sGuid ) } oLogicDocument . UpdateInterface ( ) ; oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . asc _getAllSignatures = function ( ) { if ( ! this . WordControl . m _oLogicDocument ) return [ ] ; 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 . gotoSignatureInternal = function ( sGuid ) { return this . WordControl . m _oLogicDocument . GoToSignature ( sGuid ) } ; asc _docs _api . prototype . IncreaseIndent = function ( ) { this . WordControl . m _oLogicDocument . IncreaseIndent ( ) } ; asc _docs _api . prototype . DecreaseIndent = function ( ) { this . WordControl . m _oLogicDocument . DecreaseIndent ( ) } ; asc _docs _api . prototype . put _PrIndentRight =
function ( value ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( changestype _Paragraph _Properties ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetParagraphIndentRight ) ; this . WordControl . m _oLogicDocument . SetParagraphIndent ( { Right : value } ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . put _PrFirstLineIndent = function ( value ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( changestype _Paragraph _Properties ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetParagraphIndentFirstLine ) ;
this . WordControl . m _oLogicDocument . SetParagraphIndent ( { FirstLine : value } ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . put _Margins = function ( left , top , right , bottom ) { this . WordControl . m _oLogicDocument . SetDocumentMargin ( { Left : left , Top : top , Right : right , Bottom : bottom } ) } ; 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 ( TextPr ) { if ( TextPr . Unifill && TextPr . Unifill . fill && TextPr . Unifill . fill . type === c _oAscFill . FILL _TYPE _SOLID && TextPr . Unifill . fill . color ) this . sendEvent ( "asc_onTextColor" , AscCommon . CreateAscColor ( TextPr . Unifill . fill . color ) ) ; else if ( undefined != TextPr . Color ) this . sendEvent ( "asc_onTextColor" ,
AscCommon . CreateAscColorCustom ( TextPr . Color . r , TextPr . Color . g , TextPr . Color . b , TextPr . Color . Auto ) ) } ; asc _docs _api . prototype . sync _TextHighLight = function ( HighLight ) { if ( undefined != HighLight ) this . sendEvent ( "asc_onTextHighLight" , new AscCommon . CColor ( HighLight . r , HighLight . g , HighLight . b ) ) } ; 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 _ParaStyleName = function ( Name ) { this . sendEvent ( "asc_onParaStyleName" , Name ) } ; asc _docs _api . prototype . sync _ParaSpacingLine =
function ( SpacingLine ) { if ( true === SpacingLine . AfterAutoSpacing ) SpacingLine . After = AscCommonWord . spacing _Auto ; else if ( undefined === SpacingLine . AfterAutoSpacing ) SpacingLine . After = AscCommonWord . UnknownValue ; if ( true === SpacingLine . BeforeAutoSpacing ) SpacingLine . Before = AscCommonWord . spacing _Auto ; else if ( undefined === SpacingLine . BeforeAutoSpacing ) SpacingLine . Before = AscCommonWord . UnknownValue ; 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 _WidowControlCallback = function ( bValue ) { this . sendEvent ( "asc_onWidowControl" , bValue ) } ; asc _docs _api . prototype . sync _KeepNextCallback = function ( bValue ) { this . sendEvent ( "asc_onKeepNext" , bValue ) } ; 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 . sync _MathPropCallback =
function ( MathProp ) { this . SelectedObjectsStack [ this . SelectedObjectsStack . length ] = new asc _CSelectedObject ( c _oAscTypeSelectElement . Math , MathProp ) } ; 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 . SetDrawingFreeze = function ( bIsFreeze ) { if ( ! this . WordControl ) return ; this . WordControl . DrawingFreeze = bIsFreeze ; var _elem1 = document . getElementById ( "id_main" ) ;
if ( _elem1 ) { var _elem2 = document . getElementById ( "id_horscrollpanel" ) ; var _elem3 = document . getElementById ( "id_panel_right" ) ; 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 . asc _SetMathProps = function ( MathProps ) { this . WordControl . m _oLogicDocument . Set _MathProps ( MathProps ) } ; asc _docs _api . prototype [ "asc_SetMathProps" ] =
asc _docs _api . prototype . asc _SetMathProps ; asc _docs _api . prototype . change _PageOrient = function ( isPortrait ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _Document _SectPr ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetPageOrientation ) ; if ( isPortrait ) { this . WordControl . m _oLogicDocument . Set _DocumentOrientation ( Asc . c _oAscPageOrientation . PagePortrait ) ; this . DocumentOrientation = isPortrait } else { this . WordControl . m _oLogicDocument . Set _DocumentOrientation ( Asc . c _oAscPageOrientation . PageLandscape ) ;
this . DocumentOrientation = isPortrait } this . sync _PageOrientCallback ( editor . get _DocumentOrientation ( ) ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . get _DocumentOrientation = function ( ) { return this . DocumentOrientation } ; asc _docs _api . prototype . change _DocSize = function ( width , height ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _Document _SectPr ) ) { if ( this . isMobileVersion && this . WordControl . MobileTouchManager ) this . WordControl . MobileTouchManager . BeginZoomCheck ( ) ;
this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetPageSize ) ; if ( this . DocumentOrientation ) this . WordControl . m _oLogicDocument . Set _DocumentPageSize ( width , height ) ; else this . WordControl . m _oLogicDocument . Set _DocumentPageSize ( height , width ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) ; if ( this . isMobileVersion && this . WordControl . MobileTouchManager ) this . WordControl . MobileTouchManager . EndZoomCheck ( ) } } ; asc _docs _api . prototype . get _DocumentWidth = function ( ) { return AscCommon . Page _Width } ;
asc _docs _api . prototype . get _DocumentHeight = function ( ) { return AscCommon . Page _Height } ; asc _docs _api . prototype . asc _SetSectionProps = function ( Props ) { this . WordControl . m _oLogicDocument . Set _SectionProps ( Props ) } ; asc _docs _api . prototype . asc _GetSectionProps = function ( ) { return this . WordControl . m _oLogicDocument . Get _SectionProps ( ) } ; asc _docs _api . prototype . asc _GetCurrentColumnWidth = function ( ) { var oLogicDocument = this . WordControl . m _oLogicDocument ; if ( ! oLogicDocument ) return 0 ; return oLogicDocument . GetCurrentColumnWidth ( ) } ;
asc _docs _api . prototype . sync _SectionPropsCallback = function ( Props ) { this . sendEvent ( "asc_onSectionProps" , Props ) } ; asc _docs _api . prototype [ "asc_SetSectionProps" ] = asc _docs _api . prototype . asc _SetSectionProps ; asc _docs _api . prototype [ "asc_GetSectionProps" ] = asc _docs _api . prototype . asc _GetSectionProps ; asc _docs _api . prototype [ "asc_GetCurrentColumnWidth" ] = asc _docs _api . prototype . asc _GetCurrentColumnWidth ; asc _docs _api . prototype . asc _SetColumnsProps = function ( ColumnsProps ) { this . WordControl . m _oLogicDocument . Set _ColumnsProps ( ColumnsProps ) } ;
asc _docs _api . prototype . asc _GetColumnsProps = function ( ) { return this . WordControl . m _oLogicDocument . Get _ColumnsProps ( ) } ; asc _docs _api . prototype [ "asc_SetColumnsProps" ] = asc _docs _api . prototype . asc _SetColumnsProps ; asc _docs _api . prototype [ "asc_GetColumnsProps" ] = asc _docs _api . prototype . asc _GetColumnsProps ; asc _docs _api . prototype . asc _SetLineNumbersProps = function ( nApplyType , oLineNumbersProps ) { this . WordControl . m _oLogicDocument . SetLineNumbersProps ( nApplyType , oLineNumbersProps ) } ; asc _docs _api . prototype . asc _GetLineNumbersProps =
function ( ) { return this . WordControl . m _oLogicDocument . GetLineNumbersProps ( ) } ; asc _docs _api . prototype [ "asc_SetLineNumbersProps" ] = asc _docs _api . prototype . asc _SetLineNumbersProps ; asc _docs _api . prototype [ "asc_GetLineNumbersProps" ] = asc _docs _api . prototype . asc _GetLineNumbersProps ; asc _docs _api . prototype . asc _GetWatermarkProps = function ( ) { return this . WordControl . m _oLogicDocument . GetWatermarkProps ( ) } ; asc _docs _api . prototype . asc _SetWatermarkProps = function ( oProps ) { var oTextPr = oProps . get _TextPr ( ) ; var oApi = this ; if ( oTextPr ) { var oFontFamily =
oTextPr . get _FontFamily ( ) ; if ( oFontFamily && typeof oFontFamily . get _Name ( ) === "string" ) { if ( ! g _fontApplication ) return ; var oLoader = AscCommon . g _font _loader ; var oFontInfo = g _fontApplication . GetFontInfo ( oFontFamily . get _Name ( ) ) ; oFontFamily . put _Name ( oFontInfo . Name ) ; var bAsync = oLoader . LoadFont ( oFontInfo , function ( ) { this . sync _EndAction ( c _oAscAsyncActionType . Information , c _oAscAsyncAction . LoadFont ) ; oApi . asc _SetWatermarkProps ( oProps ) } , null ) ; if ( bAsync ) return } } var sText = oProps . get _Text ( ) ; if ( ! ( typeof sText === "string" ) ) sText =
"" ; AscFonts . FontPickerByCharacter . checkText ( sText , this , function ( ) { return oApi . WordControl . m _oLogicDocument . SetWatermarkProps ( oProps ) } ) } ; asc _docs _api . prototype . asc _WatermarkRemove = function ( oProps ) { var oProps = new Asc . CAscWatermarkProperties ; oProps . put _Type ( Asc . c _oAscWatermarkType . None ) ; return this . WordControl . m _oLogicDocument . SetWatermarkProps ( oProps ) } ; asc _docs _api . prototype . sync _ColumnsPropsCallback = function ( ColumnsProps ) { this . sendEvent ( "asc_onColumnsProps" , ColumnsProps ) } ; asc _docs _api . prototype . sync _LineNumbersPropsCollback =
function ( oLineNumbersProps ) { this . sendEvent ( "asc_onLineNumbersProps" , oLineNumbersProps ) } ; asc _docs _api . prototype . asc _SetFootnoteProps = function ( oFootnotePr , bApplyToAll ) { this . WordControl . m _oLogicDocument . SetFootnotePr ( oFootnotePr , bApplyToAll ) } ; asc _docs _api . prototype . asc _GetFootnoteProps = function ( ) { return this . WordControl . m _oLogicDocument . GetFootnotePr ( ) } ; asc _docs _api . prototype . asc _AddFootnote = function ( sText ) { return this . WordControl . m _oLogicDocument . AddFootnote ( sText ) } ; asc _docs _api . prototype . asc _RemoveAllFootnotes =
function ( bRemoveFootnotes , bRemoveEndnotes ) { this . WordControl . m _oLogicDocument . RemoveAllFootnotes ( bRemoveFootnotes , bRemoveEndnotes ) } ; asc _docs _api . prototype . asc _GotoFootnote = function ( isNext ) { this . WordControl . m _oLogicDocument . GotoFootnote ( isNext ) } ; asc _docs _api . prototype . asc _IsCursorInFootnote = function ( ) { var oLogicDocument = this . WordControl . m _oLogicDocument ; if ( oLogicDocument && true === oLogicDocument . IsCursorInFootnote ( ) ) return true ; return false } ; asc _docs _api . prototype . asc _AddEndnote = function ( sText ) { this . WordControl . m _oLogicDocument . AddEndnote ( sText ) } ;
asc _docs _api . prototype . asc _GotoEndnote = function ( isNext ) { this . WordControl . m _oLogicDocument . GotoEndnote ( isNext ) } ; asc _docs _api . prototype . asc _IsCursorInEndnote = function ( ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; return oLogicDocument ? oLogicDocument . IsCursorInEndnote ( ) : false } ; asc _docs _api . prototype . asc _SetEndnoteProps = function ( oEndnotePr , bApplyToAll ) { this . WordControl . m _oLogicDocument . SetEndnotePr ( oEndnotePr , bApplyToAll ) } ; asc _docs _api . prototype . asc _GetEndnoteProps = function ( ) { return this . WordControl . m _oLogicDocument . GetEndnotePr ( ) } ;
asc _docs _api . prototype . asc _ConvertFootnoteType = function ( isCurrent , isFootnotes , isEndnotes ) { this . WordControl . m _oLogicDocument . ConvertFootnoteType ( isCurrent , isFootnotes , isEndnotes ) } ; asc _docs _api . prototype [ "asc_AddFootnote" ] = asc _docs _api . prototype . asc _AddFootnote ; asc _docs _api . prototype [ "asc_RemoveAllFootnotes" ] = asc _docs _api . prototype . asc _RemoveAllFootnotes ; asc _docs _api . prototype [ "asc_GetFootnoteProps" ] = asc _docs _api . prototype . asc _GetFootnoteProps ; asc _docs _api . prototype [ "asc_SetFootnoteProps" ] = asc _docs _api . prototype . asc _SetFootnoteProps ;
asc _docs _api . prototype [ "asc_GotoFootnote" ] = asc _docs _api . prototype . asc _GotoFootnote ; asc _docs _api . prototype [ "asc_IsCursorInFootnote" ] = asc _docs _api . prototype . asc _IsCursorInFootnote ; asc _docs _api . prototype [ "asc_AddEndnote" ] = asc _docs _api . prototype . asc _AddEndnote ; asc _docs _api . prototype [ "asc_GetEndnoteProps" ] = asc _docs _api . prototype . asc _GetEndnoteProps ; asc _docs _api . prototype [ "asc_SetEndnoteProps" ] = asc _docs _api . prototype . asc _SetEndnoteProps ; asc _docs _api . prototype [ "asc_GotoEndnote" ] = asc _docs _api . prototype . asc _GotoEndnote ;
asc _docs _api . prototype [ "asc_IsCursorInEndnote" ] = asc _docs _api . prototype . asc _IsCursorInEndnote ; asc _docs _api . prototype [ "asc_ConvertFootnoteType" ] = asc _docs _api . prototype . asc _ConvertFootnoteType ; asc _docs _api . prototype . put _AddPageBreak = function ( ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( changestype _Paragraph _Content ) ) { var Document = this . WordControl . m _oLogicDocument ; if ( null === Document . IsCursorInHyperlink ( false ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _AddPageBreak ) ;
this . WordControl . m _oLogicDocument . AddToParagraph ( new AscCommonWord . ParaNewLine ( AscCommonWord . break _Page ) ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } } ; asc _docs _api . prototype . put _AddColumnBreak = function ( ) { var Document = this . WordControl . m _oLogicDocument ; if ( false === Document . Document _Is _SelectionLocked ( changestype _Paragraph _Content ) ) if ( null === Document . IsCursorInHyperlink ( false ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _AddPageBreak ) ; this . WordControl . m _oLogicDocument . AddToParagraph ( new AscCommonWord . ParaNewLine ( AscCommonWord . break _Column ) ) ;
this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . Update _ParaInd = function ( Ind ) { var FirstLine = 0 , Left = 0 , 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 } var bIsUpdate = false ; var _ruler = this . WordControl . m _oHorRuler ; if ( _ruler . m _dIndentLeft != Left ) { _ruler . m _dIndentLeft = Left ; bIsUpdate = true } if ( _ruler != FirstLine + Left ) { _ruler . m _dIndentLeftFirst =
FirstLine + Left ; bIsUpdate = true } if ( _ruler . m _dIndentRight != Right ) { _ruler . m _dIndentRight = Right ; bIsUpdate = true } if ( bIsUpdate ) this . WordControl . UpdateHorRuler ( ) } ; 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 _PageNum = function ( where , align ) { if ( where >= 0 ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( changestype _None , { Type : AscCommon . changestype _2 _HdrFtr } ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _AddPageNumToHdrFtr ) ;
this . WordControl . m _oLogicDocument . Document _AddPageNum ( where , align ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } else if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( changestype _Paragraph _Content ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _AddPageNumToCurrentPos ) ; this . WordControl . m _oLogicDocument . Document _AddPageNum ( where , align ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . put _HeadersAndFootersDistance =
function ( value ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( changestype _HdrFtr ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetHdrFtrDistance ) ; this . WordControl . m _oLogicDocument . Document _SetHdrFtrDistance ( value ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . HeadersAndFooters _DifferentFirstPage = function ( isOn ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( changestype _HdrFtr ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetHdrFtrFirstPage ) ;
this . WordControl . m _oLogicDocument . Document _SetHdrFtrFirstPage ( isOn ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . HeadersAndFooters _DifferentOddandEvenPage = function ( isOn ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( changestype _HdrFtr ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetHdrFtrEvenAndOdd ) ; this . WordControl . m _oLogicDocument . Document _SetHdrFtrEvenAndOddHeaders ( isOn ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ;
asc _docs _api . prototype . HeadersAndFooters _LinkToPrevious = function ( isOn ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( changestype _HdrFtr ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetHdrFtrLink ) ; this . WordControl . m _oLogicDocument . Document _SetHdrFtrLink ( isOn ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . asc _SetSectionStartPage = function ( nStartPage ) { if ( isNaN ( nStartPage ) ) return ; var oLogicDocument = this . WordControl . m _oLogicDocument ;
if ( ! oLogicDocument ) return ; if ( false === oLogicDocument . Document _Is _SelectionLocked ( ) ) { oLogicDocument . StartAction ( AscDFH . historydescription _Document _SectionStartPage ) ; oLogicDocument . SetSectionStartPage ( nStartPage ) ; oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . sync _DocSizeCallback = function ( width , height ) { this . sendEvent ( "asc_onDocSize" , width , height ) } ; asc _docs _api . prototype . sync _PageOrientCallback = function ( isPortrait ) { this . sendEvent ( "asc_onPageOrient" , isPortrait ) } ; asc _docs _api . prototype . sync _HeadersAndFootersPropCallback =
function ( hafProp ) { if ( true === hafProp ) hafProp . Locked = true ; this . SelectedObjectsStack [ this . SelectedObjectsStack . length ] = new asc _CSelectedObject ( c _oAscTypeSelectElement . Header , new CHeaderProp ( hafProp ) ) } ; asc _docs _api . prototype . put _Table = function ( col , row , sStyleId ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _Document _Content _Add ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _AddTable ) ; var oTable = this . WordControl . m _oLogicDocument . AddInlineTable ( col ,
row ) ; if ( oTable && sStyleId ) oTable . Set _TableStyle ( sStyleId ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . addRowAbove = function ( nCount ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( changestype _Table _Properties ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _TableAddRowAbove ) ; this . WordControl . m _oLogicDocument . AddTableRow ( true , nCount ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . addRowBelow =
function ( nCount ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( changestype _Table _Properties ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _TableAddRowBelow ) ; this . WordControl . m _oLogicDocument . AddTableRow ( false , nCount ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . addColumnLeft = function ( nCount ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( changestype _Table _Properties ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _TableAddColumnLeft ) ;
this . WordControl . m _oLogicDocument . AddTableColumn ( true , nCount ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . addColumnRight = function ( nCount ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( changestype _Table _Properties ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _TableAddColumnRight ) ; this . WordControl . m _oLogicDocument . AddTableColumn ( false , nCount ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . remRow =
function ( ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return false ; oLogicDocument . SelectTable ( c _oAscTableSelectionType . Row ) ; if ( ! oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _Remove ) ) { oLogicDocument . StartAction ( AscDFH . historydescription _Document _TableRemoveRow ) ; oLogicDocument . RemoveTableRow ( ) ; oLogicDocument . FinalizeAction ( ) ; return true } else return false } ; asc _docs _api . prototype . remColumn = function ( ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return false ;
oLogicDocument . SelectTable ( c _oAscTableSelectionType . Column ) ; if ( ! oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _Remove ) ) { oLogicDocument . StartAction ( AscDFH . historydescription _Document _TableRemoveColumn ) ; oLogicDocument . RemoveTableCells ( ) ; oLogicDocument . FinalizeAction ( ) ; return true } else return false } ; asc _docs _api . prototype . remTable = function ( ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return false ; oLogicDocument . SelectTable ( c _oAscTableSelectionType . Table ) ;
if ( ! oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _Remove ) ) { oLogicDocument . StartAction ( AscDFH . historydescription _Document _RemoveTable ) ; oLogicDocument . RemoveTable ( ) ; oLogicDocument . FinalizeAction ( ) ; return true } else return false } ; 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 ( ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( changestype _Table _Properties ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _MergeTableCells ) ; this . WordControl . m _oLogicDocument . MergeTableCells ( ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . SplitCell =
function ( Cols , Rows ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( changestype _Table _Properties ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _SplitTableCells ) ; this . WordControl . m _oLogicDocument . SplitTableCells ( Cols , Rows ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . asc _DistributeTableCells = function ( isHorizontally ) { var oLogicDocument = this . WordControl . m _oLogicDocument ; if ( ! oLogicDocument ) return ; var bResult = false ;
if ( false === oLogicDocument . Document _Is _SelectionLocked ( changestype _Table _Properties ) ) { oLogicDocument . StartAction ( AscDFH . historydescription _Document _DistributeTableCells ) ; bResult = oLogicDocument . DistributeTableCells ( isHorizontally ) ; oLogicDocument . FinalizeAction ( ) } return bResult } ; asc _docs _api . prototype . asc _RemoveTableCells = function ( ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return false ; if ( ! oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _Remove ) ) { oLogicDocument . StartAction ( AscDFH . historydescription _Document _RemoveTableCells ) ;
oLogicDocument . RemoveTableCells ( ) ; oLogicDocument . FinalizeAction ( ) ; return true } else return false } ; 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 ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( changestype _Table _Properties ) ) { if ( obj . CellBorders ) { if ( obj . CellBorders . Left &&
obj . CellBorders . Left . Color ) obj . CellBorders . Left . Unifill = AscFormat . CreateUnifillFromAscColor ( obj . CellBorders . Left . Color , 1 ) ; if ( obj . CellBorders . Top && obj . CellBorders . Top . Color ) obj . CellBorders . Top . Unifill = AscFormat . CreateUnifillFromAscColor ( obj . CellBorders . Top . Color , 1 ) ; if ( obj . CellBorders . Right && obj . CellBorders . Right . Color ) obj . CellBorders . Right . Unifill = AscFormat . CreateUnifillFromAscColor ( obj . CellBorders . Right . Color , 1 ) ; if ( obj . CellBorders . Bottom && obj . CellBorders . Bottom . Color ) obj . CellBorders . Bottom . Unifill =
AscFormat . CreateUnifillFromAscColor ( obj . CellBorders . Bottom . Color , 1 ) ; if ( obj . CellBorders . InsideH && obj . CellBorders . InsideH . Color ) obj . CellBorders . InsideH . Unifill = AscFormat . CreateUnifillFromAscColor ( obj . CellBorders . InsideH . Color , 1 ) ; if ( obj . CellBorders . InsideV && obj . CellBorders . InsideV . Color ) obj . CellBorders . InsideV . Unifill = AscFormat . CreateUnifillFromAscColor ( obj . CellBorders . InsideV . Color , 1 ) } if ( obj . CellsBackground && obj . CellsBackground . Color ) obj . CellsBackground . Unifill = AscFormat . CreateUnifillFromAscColor ( obj . CellsBackground . Color ,
1 ) ; this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _ApplyTablePr ) ; this . WordControl . m _oLogicDocument . SetTableProps ( obj ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; 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 ) { if ( tblProp . CellsBackground && tblProp . CellsBackground . Unifill ) { var LogicDocument =
this . WordControl . m _oLogicDocument ; tblProp . CellsBackground . Unifill . check ( LogicDocument . Get _Theme ( ) , LogicDocument . Get _ColorMap ( ) ) ; var RGBA = tblProp . CellsBackground . Unifill . getRGBAColor ( ) ; tblProp . CellsBackground . Color = new AscCommonWord . CDocumentColor ( RGBA . R , RGBA . G , RGBA . B , false ) } 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 . AddImage = function ( ) { this . asc _addImage ( ) } ; asc _docs _api . prototype . AddImageUrl2 = function ( url ) { this . AddImageUrl ( AscCommon . getFullImageSrc2 ( url ) ) } ;
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 [ "obj" ] || obj instanceof AscCommon . CContentControlPr && obj . GetInternalId ( ) ) ) this . AddImageUrl ( urls [ 0 ] , undefined , undefined , obj ) ; else if ( this . ImageLoader ) { var oApi = this ; this . ImageLoader . LoadImagesWithCallback ( urls ,
function ( ) { var sContentControlId = oApi . asc _GetCurrentContentControl ( ) ; var oContentControl = AscCommon . g _oTableId . Get _ById ( sContentControlId ) ; if ( oContentControl && oContentControl . IsPicture ( ) && urls && urls . length ) oApi . asc _SetContentControlPictureUrl ( urls [ 0 ] , sContentControlId ) ; else if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( changestype _Paragraph _Content ) ) { var aImages = [ ] ; for ( var i = 0 ; i < urls . length ; ++ i ) { var _image = oApi . ImageLoader . LoadImage ( urls [ i ] , 1 ) ; if ( _image ) aImages . push ( _image ) } if ( aImages . length ) { oApi . WordControl . m _oLogicDocument . StartAction ( ) ;
oApi . WordControl . m _oLogicDocument . AddImages ( aImages ) ; oApi . WordControl . m _oLogicDocument . FinalizeAction ( ) } } } , [ ] ) } } ; asc _docs _api . prototype . AddImageUrl = function ( url , imgProp , token , obj ) { if ( g _oDocumentUrls . getLocal ( url ) ) this . AddImageUrlAction ( url , imgProp , obj ) ; else { var t = this ; AscCommon . sendImgUrls ( this , [ url ] , function ( data ) { if ( data && data [ 0 ] && data [ 0 ] . url !== "error" ) t . AddImageUrlAction ( data [ 0 ] . url , imgProp , obj ) } , false , undefined , token ) } } ; asc _docs _api . prototype . AddImageUrlAction = function ( url , imgProp , obj ) { var _image =
this . ImageLoader . LoadImage ( url , 1 ) ; if ( null != _image ) { var ColumnSize = this . WordControl . m _oLogicDocument . GetColumnSize ( ) ; var _w = Math . max ( 1 , ColumnSize . W ) ; var _h = Math . max ( 1 , ColumnSize . H ) ; 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 . ImgApply ( new asc _CImgProperty ( { ShapeProperties : AscShapeProp } ) ) } else if ( obj && obj . isImageChangeUrl ) { var AscImageProp = new asc _CImgProperty ; AscImageProp . ImageUrl = src ; this . ImgApply ( AscImageProp ) } else if ( obj && obj [ "obj" ] && obj [ "obj" ] . Get _Id ) this . asc _SetContentControlPictureUrl ( src ,
obj [ "obj" ] . Get _Id ( ) ) ; else if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( changestype _Paragraph _Content ) ) { var imageLocal = g _oDocumentUrls . getImageLocal ( src ) ; if ( imageLocal ) src = imageLocal ; this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _AddImageUrl ) ; if ( undefined === imgProp || undefined === imgProp . WrappingStyle || 0 == imgProp . WrappingStyle ) this . WordControl . m _oLogicDocument . AddInlineImage ( _w , _h , src ) ; else this . WordControl . m _oLogicDocument . AddInlineImage ( _w ,
_h , src , null , true ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } else { this . sync _StartAction ( c _oAscAsyncActionType . BlockInteraction , c _oAscAsyncAction . LoadImage ) ; this . asyncImageEndLoaded2 = function ( _image ) { var ColumnSize = this . WordControl . m _oLogicDocument . GetColumnSize ( ) ; var _w = Math . max ( 1 , ColumnSize . W ) ; var _h = Math . max ( 1 , ColumnSize . H ) ; 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 . ImgApply ( new asc _CImgProperty ( { ShapeProperties : AscShapeProp } ) ) } else if ( obj &&
obj . isImageChangeUrl ) { var AscImageProp = new asc _CImgProperty ; AscImageProp . ImageUrl = src ; this . ImgApply ( AscImageProp ) } else if ( obj && obj [ "obj" ] && obj [ "obj" ] . Get _Id ) this . asc _SetContentControlPictureUrl ( src , obj [ "obj" ] . Get _Id ( ) ) ; else if ( obj instanceof AscCommon . CContentControlPr && obj . GetInternalId ( ) ) this . asc _SetContentControlPictureUrl ( src , obj . GetInternalId ( ) ) ; else if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( changestype _Paragraph _Content ) ) { var imageLocal = g _oDocumentUrls . getImageLocal ( src ) ;
if ( imageLocal ) src = imageLocal ; this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _AddImageUrlLong ) ; if ( undefined === imgProp || undefined === imgProp . WrappingStyle || 0 == imgProp . WrappingStyle ) this . WordControl . m _oLogicDocument . AddInlineImage ( _w , _h , src ) ; else this . WordControl . m _oLogicDocument . AddInlineImage ( _w , _h , src , null , true ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } this . sync _EndAction ( c _oAscAsyncActionType . BlockInteraction , c _oAscAsyncAction . LoadImage ) ; this . asyncImageEndLoaded2 =
null } } } ; asc _docs _api . prototype . AddImageToPage = function ( sUrl , nPageIndex , dX , dY , dW , dH ) { var LogicDocument = this . WordControl . m _oLogicDocument ; var oldClickCount = global _mouseEvent . ClickCount ; global _mouseEvent . Button = 0 ; global _mouseEvent . ClickCount = 1 ; LogicDocument . OnMouseDown ( global _mouseEvent , dX , dY , nPageIndex ) ; LogicDocument . OnMouseUp ( global _mouseEvent , dX , dY , nPageIndex ) ; LogicDocument . OnMouseMove ( global _mouseEvent , dX , dY , nPageIndex ) ; global _mouseEvent . ClickCount = oldClickCount ; if ( false === LogicDocument . Document _Is _SelectionLocked ( changestype _Paragraph _Content ) ) { var oPosH =
new Asc . CImagePositionH ; oPosH . put _RelativeFrom ( Asc . c _oAscRelativeFromH . Page ) ; oPosH . put _Align ( false ) ; oPosH . put _Value ( dX ) ; var oPosV = new Asc . CImagePositionV ; oPosV . put _RelativeFrom ( Asc . c _oAscRelativeFromV . Page ) ; oPosV . put _Align ( false ) ; oPosV . put _Value ( dY ) ; var oImageProps = new asc _CImgProperty ; oImageProps . asc _putWrappingStyle ( c _oAscWrapStyle2 . Square ) ; oImageProps . asc _putPositionH ( oPosH ) ; oImageProps . asc _putPositionV ( oPosV ) ; LogicDocument . StartAction ( AscDFH . historydescription _Document _AddImageToPage ) ; LogicDocument . Start _SilentMode ( ) ;
LogicDocument . AddInlineImage ( dW , dH , sUrl ) ; LogicDocument . SetImageProps ( oImageProps ) ; LogicDocument . End _SilentMode ( true ) ; LogicDocument . FinalizeAction ( ) } } ; 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 . put _ShapesAlign = function ( type , alignType ) { if ( ! this . WordControl ) return ; if ( ! this . WordControl . m _oLogicDocument ) return ;
if ( ! AscFormat . isRealNumber ( alignType ) ) alignType = Asc . c _oAscObjectsAlignType . Slide ; this . WordControl . m _oLogicDocument . PutShapesAlign ( type , alignType ) } ; asc _docs _api . prototype . DistributeHorizontally = function ( alignType ) { if ( ! AscFormat . isRealNumber ( alignType ) ) alignType = Asc . c _oAscObjectsAlignType . Margin ; this . WordControl . m _oLogicDocument . DistributeDrawingsHorizontally ( alignType ) } ; asc _docs _api . prototype . DistributeVertically = function ( alignType ) { if ( ! AscFormat . isRealNumber ( alignType ) ) alignType = Asc . c _oAscObjectsAlignType . Margin ;
this . WordControl . m _oLogicDocument . DistributeDrawingsVertically ( alignType ) } ; asc _docs _api . prototype . ImgApply = function ( obj ) { if ( ! AscCommon . isRealObject ( obj ) ) return ; var ImagePr = obj , AdditionalData , LogicDocument = this . WordControl . m _oLogicDocument ; if ( obj . ChartProperties && obj . ChartProperties . type === Asc . c _oAscChartTypeSettings . stock ) if ( ! AscFormat . CheckStockChart ( this . WordControl . m _oLogicDocument . DrawingObjects , this ) ) return ; if ( AscFormat . isRealNumber ( ImagePr . ChangeLevel ) ) { switch ( ImagePr . ChangeLevel ) { case 0 : { this . WordControl . m _oLogicDocument . DrawingObjects . bringToFront ( ) ;
break } case 1 : { this . WordControl . m _oLogicDocument . DrawingObjects . bringForward ( ) ; break } case 2 : { this . WordControl . m _oLogicDocument . DrawingObjects . sendToBack ( ) ; break } case 3 : { this . WordControl . m _oLogicDocument . DrawingObjects . bringBackward ( ) } } return } var aParagraphs = [ ] , aSelectedObjects = this . WordControl . m _oLogicDocument . DrawingObjects . selectedObjects , i , j , oParentParagraph ; for ( i = 0 ; i < aSelectedObjects . length ; ++ i ) { oParentParagraph = aSelectedObjects [ i ] . parent . Get _ParentParagraph ( ) ; AscFormat . checkObjectInArray ( aParagraphs ,
oParentParagraph ) } AdditionalData = { Type : AscCommon . changestype _2 _ElementsArray _and _Type , Elements : aParagraphs , CheckType : changestype _Paragraph _Content } ; if ( ImagePr . Group === 1 || ImagePr . Group === - 1 ) { if ( false == this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _Drawing _Props , AdditionalData ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _GroupUnGroup ) ; if ( ImagePr . Group === 1 ) this . WordControl . m _oLogicDocument . DrawingObjects . groupSelectedObjects ( ) ;
else this . WordControl . m _oLogicDocument . DrawingObjects . unGroupSelectedObjects ( ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } return } if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _Drawing _Props ) ) { if ( ImagePr . ShapeProperties ) ImagePr . ImageUrl = "" ; var sImageUrl = null , fReplaceCallback = null , bImageUrl = false , sImageToDownLoad = "" , sToken = undefined ; if ( ! AscCommon . isNullOrEmptyString ( ImagePr . ImageUrl ) ) { if ( ! g _oDocumentUrls . getImageLocal ( ImagePr . ImageUrl ) ) { sImageUrl =
ImagePr . ImageUrl ; sToken = ImagePr . Token ; fReplaceCallback = function ( sUrl ) { ImagePr . ImageUrl = sUrl ; sImageToDownLoad = sUrl } } sImageToDownLoad = ImagePr . ImageUrl } else if ( ImagePr . ShapeProperties && ImagePr . ShapeProperties . fill && ImagePr . ShapeProperties . fill . fill && ! AscCommon . isNullOrEmptyString ( ImagePr . ShapeProperties . fill . fill . url ) ) { if ( ! g _oDocumentUrls . getImageLocal ( ImagePr . ShapeProperties . fill . fill . url ) ) { sImageUrl = ImagePr . ShapeProperties . fill . fill . url ; sToken = ImagePr . ShapeProperties . fill . fill . token ; fReplaceCallback =
function ( sUrl ) { ImagePr . ShapeProperties . fill . fill . url = sUrl ; sImageToDownLoad = sUrl } } sImageToDownLoad = ImagePr . ShapeProperties . fill . fill . url } var oApi = this ; if ( ! AscCommon . isNullOrEmptyString ( sImageToDownLoad ) ) { var fApplyCallback = function ( ) { var _img = oApi . ImageLoader . LoadImage ( sImageToDownLoad , 1 ) ; if ( null != _img ) { oApi . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _ApplyImagePrWithUrl ) ; oApi . WordControl . m _oLogicDocument . SetImageProps ( ImagePr ) ; oApi . WordControl . m _oLogicDocument . UpdateInterface ( ) ;
oApi . WordControl . m _oLogicDocument . UpdateSelection ( ) ; oApi . WordControl . m _oLogicDocument . FinalizeAction ( ) } else oApi . asyncImageEndLoaded2 = function ( _image ) { oApi . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _ApplyImagePrWithUrlLong ) ; oApi . WordControl . m _oLogicDocument . SetImageProps ( ImagePr ) ; oApi . WordControl . m _oLogicDocument . UpdateInterface ( ) ; oApi . WordControl . m _oLogicDocument . UpdateSelection ( ) ; oApi . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; if ( sImageUrl ) { if ( window [ "AscDesktopEditor" ] &&
window [ "AscDesktopEditor" ] [ "IsLocalFile" ] ( ) ) { var _url = window [ "AscDesktopEditor" ] [ "LocalFileGetImageUrl" ] ( sImageToDownLoad ) ; _url = g _oDocumentUrls . getImageUrl ( _url ) ; fReplaceCallback ( _url ) ; fApplyCallback ( ) ; return } AscCommon . sendImgUrls ( this , [ sImageToDownLoad ] , function ( data ) { if ( data && data [ 0 ] && data [ 0 ] . url !== "error" ) { fReplaceCallback ( data [ 0 ] . url ) ; fApplyCallback ( ) } } , false , undefined , sToken ) } else fApplyCallback ( ) } else { ImagePr . ImageUrl = null ; if ( ! this . noCreatePoint || this . exucuteHistory ) { if ( ! this . noCreatePoint &&
! this . exucuteHistory && this . exucuteHistoryEnd ) { if ( - 1 !== this . nCurPointItemsLength ) History . UndoLastPoint ( ) ; else this . WordControl . m _oLogicDocument . Create _NewHistoryPoint ( AscDFH . historydescription _Document _ApplyImagePr ) ; this . WordControl . m _oLogicDocument . SetImageProps ( ImagePr ) ; this . exucuteHistoryEnd = false ; this . nCurPointItemsLength = - 1 } else { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _ApplyImagePr ) ; this . WordControl . m _oLogicDocument . SetImageProps ( ImagePr ) ; this . WordControl . m _oLogicDocument . UpdateInterface ( ) ;
this . WordControl . m _oLogicDocument . UpdateSelection ( ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } if ( this . exucuteHistory ) { this . exucuteHistory = false ; var oPoint = History . Points [ History . Index ] ; if ( oPoint ) this . nCurPointItemsLength = oPoint . Items . length } if ( this . exucuteHistoryEnd ) this . exucuteHistoryEnd = false } else { var bNeedCheckChangesCount = false ; if ( - 1 !== this . nCurPointItemsLength ) History . UndoLastPoint ( ) ; else { bNeedCheckChangesCount = true ; this . WordControl . m _oLogicDocument . Create _NewHistoryPoint ( AscDFH . historydescription _Document _ApplyImagePr ) } this . WordControl . m _oLogicDocument . SetImageProps ( ImagePr ) ;
if ( bNeedCheckChangesCount ) { var oPoint = History . Points [ History . Index ] ; if ( oPoint ) this . nCurPointItemsLength = oPoint . Items . length } } this . exucuteHistoryEnd = false } } } ; 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 . ShapeApply = function ( shapeProps ) { var image _url = "" ; if ( shapeProps . fill != null ) if ( shapeProps . fill . fill != null && shapeProps . fill . type ==
c _oAscFill . FILL _TYPE _BLIP ) { image _url = shapeProps . fill . fill . asc _getUrl ( ) ; var _tx _id = shapeProps . fill . fill . asc _getTextureId ( ) ; if ( null != _tx _id && 0 <= _tx _id && _tx _id < AscCommon . g _oUserTexturePresets . length ) image _url = AscCommon . g _oUserTexturePresets [ _tx _id ] } if ( image _url != "" ) { var _image = this . ImageLoader . LoadImage ( image _url , 1 ) ; var imageLocal = g _oDocumentUrls . getImageLocal ( image _url ) ; if ( imageLocal ) shapeProps . fill . fill . asc _putUrl ( imageLocal ) ; if ( null != _image ) { this . WordControl . m _oLogicDocument . ShapeApply ( shapeProps ) ;
this . WordControl . m _oDrawingDocument . DrawImageTextureFillShape ( image _url ) } else { this . sync _StartAction ( c _oAscAsyncActionType . BlockInteraction , c _oAscAsyncAction . LoadImage ) ; var oProp = shapeProps ; this . asyncImageEndLoaded2 = function ( _image ) { this . WordControl . m _oLogicDocument . ShapeApply ( oProp ) ; this . WordControl . m _oDrawingDocument . DrawImageTextureFillShape ( image _url ) ; this . sync _EndAction ( c _oAscAsyncActionType . BlockInteraction , c _oAscAsyncAction . LoadImage ) ; this . asyncImageEndLoaded2 = null } } } else this . WordControl . m _oLogicDocument . ShapeApply ( shapeProps ) } ;
asc _docs _api . prototype . sync _AddImageCallback = function ( ) { this . sendEvent ( "asc_onAddImage" ) } ; asc _docs _api . prototype . sync _ImgPropCallback = function ( imgProp ) { this . SelectedObjectsStack [ this . SelectedObjectsStack . length ] = new asc _CSelectedObject ( c _oAscTypeSelectElement . Image , new asc _CImgProperty ( imgProp ) ) } ; asc _docs _api . prototype . sync _ImgWrapStyleChangedCallback = function ( style ) { this . sendEvent ( "asc_onImgWrapStyleChanged" , style ) } ; 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 . Document _UpdateInterfaceState ( ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . asc _startEditCurrentOleObject = function ( ) { this . WordControl . m _oLogicDocument . DrawingObjects . startEditCurrentOleObject ( ) } ; function CContextMenuData ( obj ) { if ( obj ) { this . Type = undefined != obj . Type ? obj . Type : Asc . c _oAscContextMenuTypes . 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 Asc . c _oAscContextMenuTypes . ChangeHdrFtr : { this . PageNum = undefined != obj . PageNum ? obj . PageNum : 0 ; this . Header = undefined != obj . Header ? obj . Header : true ; break } } } else { this . Type = Asc . c _oAscContextMenuTypes . Common ; this . X _abs = 0 ; this . Y _abs = 0 } } 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 _PageNum = function ( ) { return this . PageNum } ; CContextMenuData . prototype . is _Header = function ( ) { return this . Header } ; asc _docs _api . prototype . sync _ContextMenuCallback = function ( Data ) { this . sendEvent ( "asc_onContextMenu" , new CContextMenuData ( Data ) ) } ; 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 ) { this . sendEvent ( "asc_onMouseMove" , Data ) } ; asc _docs _api . prototype . sync _ShowForeignCursorLabel = function ( UserId , X , Y , Color ) { 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 . 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 ( oHyperProps ) { var sBookmarkName = this . private _CheckHeadingHyperlinkProps ( oHyperProps ) ; if ( null !== oHyperProps . Text && undefined !== oHyperProps . Text ) AscFonts . FontPickerByCharacter . checkText ( oHyperProps . Text , this , function ( ) { this . private _AddHyperlink ( oHyperProps , sBookmarkName ) } ) ; else this . private _AddHyperlink ( oHyperProps , sBookmarkName ) } ; asc _docs _api . prototype . private _CheckHeadingHyperlinkProps = function ( oHyperProps ) { var oHeading = oHyperProps . get _Heading ( ) ;
var sBookmarkName = null ; if ( oHeading ) { var oBookmarksManager = this . WordControl . m _oLogicDocument . GetBookmarksManager ( ) ; sBookmarkName = oBookmarksManager . GetNameForHeadingBookmark ( oHeading ) ; var oBookmark = oBookmarksManager . GetBookmarkByName ( sBookmarkName ) ; if ( oBookmark && oBookmark [ 0 ] . GetParagraph ( ) === oHeading ) { oHyperProps . put _Heading ( null ) ; oHyperProps . put _Bookmark ( sBookmarkName ) ; sBookmarkName = null } else { if ( oBookmark ) { var nCounter = 1 ; while ( oBookmarksManager . GetBookmarkByName ( sBookmarkName + "_" + nCounter ) ) nCounter ++ ;
sBookmarkName += "_" + nCounter } oHyperProps . put _Bookmark ( sBookmarkName ) } } return sBookmarkName } ; asc _docs _api . prototype . private _AddHyperlink = function ( oHyperProps , sBookmarkName , oParagraph ) { var isLocked = false ; if ( sBookmarkName ) isLocked = this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( changestype _Paragraph _Content , { Type : AscCommon . changestype _2 _Element _and _Type , Element : oHyperProps . get _Heading ( ) , CheckType : changestype _Paragraph _Content } ) ; else isLocked = this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( changestype _Paragraph _Content ) ;
if ( ! isLocked ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _AddHyperlink ) ; if ( sBookmarkName && oHyperProps . get _Heading ( ) ) oHyperProps . get _Heading ( ) . AddBookmarkAtBegin ( sBookmarkName ) ; this . WordControl . m _oLogicDocument . AddHyperlink ( oHyperProps ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . change _Hyperlink = function ( oHyperProps ) { if ( ! oHyperProps || ! oHyperProps . get _InternalHyperlink ( ) ) return ; var sBookmarkName = this . private _CheckHeadingHyperlinkProps ( oHyperProps ) ;
if ( null !== oHyperProps . Text && undefined !== oHyperProps . Text ) AscFonts . FontPickerByCharacter . checkText ( oHyperProps . Text , this , function ( ) { this . private _ChangeHyperlink ( oHyperProps , sBookmarkName ) } ) ; else this . private _ChangeHyperlink ( oHyperProps , sBookmarkName ) } ; asc _docs _api . prototype . private _ChangeHyperlink = function ( oHyperProps , sBookmarkName ) { var isLocked = false ; if ( sBookmarkName ) isLocked = this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( changestype _Paragraph _Content , { Type : AscCommon . changestype _2 _Element _and _Type ,
Element : oHyperProps . get _Heading ( ) , CheckType : changestype _Paragraph _Content } ) ; else isLocked = this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( changestype _Paragraph _Content ) ; if ( ! isLocked ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _ChangeHyperlink ) ; if ( sBookmarkName && oHyperProps . get _Heading ( ) ) oHyperProps . get _Heading ( ) . AddBookmarkAtBegin ( sBookmarkName ) ; this . WordControl . m _oLogicDocument . ModifyHyperlink ( oHyperProps ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ;
asc _docs _api . prototype . remove _Hyperlink = function ( oHyperProps ) { if ( ! oHyperProps || ! oHyperProps . get _InternalHyperlink ( ) ) return ; if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( changestype _Paragraph _Content ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _RemoveHyperlink ) ; this . WordControl . m _oLogicDocument . RemoveHyperlink ( oHyperProps ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . asc _GetHyperlinkAnchors = function ( ) { if ( ! this . WordControl ||
! this . WordControl . m _oLogicDocument ) return [ ] ; return this . WordControl . m _oLogicDocument . GetHyperlinkAnchors ( ) } ; 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 _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 ) { var ParaId = SpellCheckProperty . ParaId ; var Paragraph = g _oTableId . Get _ById ( ParaId ) ; if ( null != Paragraph && false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( changestype _None , { Type : AscCommon . changestype _2 _Element _and _Type , Element : Paragraph , CheckType : changestype _Paragraph _Content } ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _ReplaceMisspelledWord ) ;
Paragraph . ReplaceMisspelledWord ( Word , SpellCheckProperty . Element ) ; Paragraph . Document _SetThisElementCurrent ( true ) ; this . WordControl . m _oLogicDocument . Recalculate ( ) ; this . WordControl . m _oLogicDocument . UpdateSelection ( ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; 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 ( ) } } ; 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 ( ) ;
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 _Document _SectPr ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetDefaultLanguage ) ; this . WordControl . m _oLogicDocument . Set _DefaultLanguage ( Lang ) ;
this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; 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 ) { editor . WordControl . m _oLogicDocument . Spelling . Use = isOn ; editor . WordControl . m _oDrawingDocument . ClearCachePages ( ) ;
editor . WordControl . m _oDrawingDocument . FirePaint ( ) } } ; asc _docs _api . prototype . asc _restartCheckSpelling = function ( ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( oLogicDocument ) oLogicDocument . Restart _CheckSpelling ( ) } ; function asc _CCommentDataWord ( obj ) { if ( obj ) { this . m _bGlobal = undefined != obj . m _bGlobal ? obj . m _bGlobal : false ; 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 _sProviderId = undefined != obj . m _sProviderId ? obj . m _sProviderId : "" ; 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 _sInitials = undefined != obj . m _sInitials ? obj . m _sInitials : this . asc _makeInitials ( this . m _sUserName ) ; this . m _nDurableId = undefined != obj . m _nDurableId ? obj . m _nDurableId : AscCommon . CreateDurableId ( ) ; 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 _CCommentDataWord ( obj . m _aReplies [ Index ] ) ; this . m _aReplies . push ( Reply ) } } } else { this . m _bGlobal = false ; this . m _sText = "" ; this . m _sTime = "" ; this . m _sOOTime = "" ; this . m _sUserId = "" ; this . m _sProviderId = "" ; this . m _sQuoteText = null ; this . m _bSolved = false ; this . m _sUserName = "" ; this . m _sInitials = "" ; this . m _nDurableId = AscCommon . CreateDurableId ( ) ; this . m _sUserData =
"" ; this . m _aReplies = [ ] } } asc _CCommentDataWord . prototype . asc _getText = function ( ) { return this . m _sText } ; asc _CCommentDataWord . prototype . asc _putText = function ( v ) { this . m _sText = v ? v . slice ( 0 , Asc . c _oAscMaxCellOrCommentLength ) : v } ; asc _CCommentDataWord . prototype . asc _getTime = function ( ) { return this . m _sTime } ; asc _CCommentDataWord . prototype . asc _putTime = function ( v ) { this . m _sTime = v } ; asc _CCommentDataWord . prototype . asc _getOnlyOfficeTime = function ( ) { return this . m _sOOTime } ; asc _CCommentDataWord . prototype . asc _putOnlyOfficeTime =
function ( v ) { this . m _sOOTime = v } ; asc _CCommentDataWord . prototype . asc _getUserId = function ( ) { return this . m _sUserId } ; asc _CCommentDataWord . prototype . asc _putUserId = function ( v ) { this . m _sUserId = v ; this . m _sProviderId = "Teamlab" } ; asc _CCommentDataWord . prototype . asc _getProviderId = function ( ) { return this . m _sProviderId } ; asc _CCommentDataWord . prototype . asc _putProviderId = function ( v ) { this . m _sProviderId = v } ; asc _CCommentDataWord . prototype . asc _getUserName = function ( ) { return this . m _sUserName } ; asc _CCommentDataWord . prototype . asc _putUserName =
function ( v ) { this . m _sUserName = v ; this . m _sInitials = this . asc _makeInitials ( this . m _sUserName ) } ; asc _CCommentDataWord . prototype . asc _getInitials = function ( ) { return this . m _sInitials } ; asc _CCommentDataWord . prototype . asc _putInitials = function ( v ) { this . m _sInitials = v } ; asc _CCommentDataWord . prototype . asc _getQuoteText = function ( ) { return this . m _sQuoteText } ; asc _CCommentDataWord . prototype . asc _putQuoteText = function ( v ) { this . m _sQuoteText = v } ; asc _CCommentDataWord . prototype . asc _getSolved = function ( ) { return this . m _bSolved } ; asc _CCommentDataWord . prototype . asc _putSolved =
function ( v ) { this . m _bSolved = v } ; asc _CCommentDataWord . prototype . asc _getGuid = function ( ) { return this . m _nDurableId . toString ( 16 ) . padStart ( 8 , "0" ) } ; asc _CCommentDataWord . prototype . asc _putGuid = function ( v ) { this . m _nDurableId = parseInt ( v , 16 ) } ; asc _CCommentDataWord . prototype . asc _getDurableId = function ( ) { return this . m _nDurableId } ; asc _CCommentDataWord . prototype . asc _getReply = function ( i ) { return this . m _aReplies [ i ] } ; asc _CCommentDataWord . prototype . asc _addReply = function ( v ) { this . m _aReplies . push ( v ) } ; asc _CCommentDataWord . prototype . asc _getRepliesCount =
function ( v ) { return this . m _aReplies . length } ; asc _CCommentDataWord . prototype . asc _putDocumentFlag = function ( val ) { this . m _bGlobal = val } ; asc _CCommentDataWord . prototype . asc _getDocumentFlag = function ( ) { return this . m _bGlobal } ; asc _CCommentDataWord . prototype . asc _makeInitials = function ( name ) { var initials = "" ; if ( name ) name . split ( " " ) . forEach ( function ( elem ) { if ( elem . length > 0 ) initials += elem [ 0 ] } ) ; return initials } ; asc _CCommentDataWord . prototype . asc _getUserData = function ( ) { return this . m _sUserData } ; asc _CCommentDataWord . prototype . asc _putUserData =
function ( v ) { this . m _sUserData = v } ; asc _docs _api . prototype . asc _showComments = function ( isShowSolved ) { if ( null == this . WordControl . m _oLogicDocument ) return ; this . WordControl . m _oLogicDocument . ShowComments ( isShowSolved ) } ; 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 ( true === AscCommon . CollaborativeEditing . Get _GlobalLock ( ) ) return null ;
var oLogicDocument = this . WordControl . m _oLogicDocument ; if ( ! oLogicDocument ) return null ; if ( true !== this . can _AddQuotedComment ( ) || false === oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _Paragraph _Content , null , true , oLogicDocument . IsEditCommentsMode ( ) ) ) { var CommentData = new AscCommon . CCommentData ; CommentData . Read _FromAscCommentData ( AscCommentData ) ; if ( "" === CommentData . m _sTime ) CommentData . m _sTime = ( ( new Date ) . getTime ( ) - ( new Date ) . getTimezoneOffset ( ) * 6E4 ) . toString ( ) ; if ( "" === CommentData . m _sOOTime ) CommentData . m _sOOTime =
( new Date ) . getTime ( ) . toString ( ) ; this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _AddComment ) ; var Comment = this . WordControl . m _oLogicDocument . AddComment ( CommentData , AscCommentData . asc _getDocumentFlag ( ) ) ; if ( null != Comment ) this . sync _AddComment ( Comment . Get _Id ( ) , CommentData ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) ; return Comment . Get _Id ( ) } return null } ; asc _docs _api . prototype . asc _removeComment = function ( Id ) { var oLogicDocument = this . WordControl . m _oLogicDocument ; if ( ! oLogicDocument ) return ;
if ( false === oLogicDocument . Document _Is _SelectionLocked ( changestype _None , { Type : AscCommon . changestype _2 _Comment , Id : Id } , false , oLogicDocument . IsEditCommentsMode ( ) ) ) { oLogicDocument . StartAction ( AscDFH . historydescription _Document _RemoveComment ) ; oLogicDocument . RemoveComment ( Id , true , true ) ; oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . asc _changeComment = function ( Id , AscCommentData ) { var oLogicDocument = this . WordControl . m _oLogicDocument ; if ( ! oLogicDocument ) return ; if ( false === oLogicDocument . Document _Is _SelectionLocked ( changestype _None ,
{ Type : AscCommon . changestype _2 _Comment , Id : Id } , false , oLogicDocument . IsEditCommentsMode ( ) ) ) { var CommentData = new AscCommon . CCommentData ; CommentData . Read _FromAscCommentData ( AscCommentData ) ; oLogicDocument . StartAction ( AscDFH . historydescription _Document _ChangeComment ) ; oLogicDocument . EditComment ( Id , CommentData ) ; oLogicDocument . FinalizeAction ( ) ; this . sync _ChangeCommentData ( Id , CommentData ) } } ; asc _docs _api . prototype . asc _selectComment = function ( Id ) { if ( null == this . WordControl . m _oLogicDocument ) return ; this . WordControl . m _oLogicDocument . SelectComment ( Id ,
true ) } ; asc _docs _api . prototype . asc _showComment = function ( Id ) { if ( Id instanceof Array ) this . WordControl . m _oLogicDocument . ShowComment ( Id ) ; else this . WordControl . m _oLogicDocument . ShowComment ( [ Id ] ) } ; asc _docs _api . prototype . asc _GetCommentsReportByAuthors = function ( ) { var oReport = { } ; function privateProcessCommentData ( isTopComment , oCommentData ) { var sUserName = oCommentData . GetUserName ( ) ; var nDateTime = oCommentData . GetDateTime ( ) ; if ( ! oReport [ sUserName ] ) oReport [ sUserName ] = [ ] ; var arrUserComments = oReport [ sUserName ] ; var nPos =
0 ; var nLen = arrUserComments . length ; while ( nPos < nLen ) { if ( nDateTime < arrUserComments [ nPos ] . Data . GetDateTime ( ) ) break ; nPos ++ } arrUserComments . splice ( nPos , 0 , { Top : isTopComment , Data : oCommentData } ) ; for ( var nIndex = 0 , nCount = oCommentData . GetRepliesCount ( ) ; nIndex < nCount ; ++ nIndex ) privateProcessCommentData ( false , oCommentData . GetReply ( nIndex ) ) } var oLogicDocument = this . WordControl . m _oLogicDocument ; if ( ! oLogicDocument ) return oReport ; var oAllComments = oLogicDocument . Comments . GetAllComments ( ) ; for ( var sId in oAllComments ) { var oComment =
oAllComments [ sId ] ; privateProcessCommentData ( true , oComment . GetData ( ) ) } return oReport } ; 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 ) ; if ( window . g _asc _plugins ) window . g _asc _plugins . onPluginEvent ( "onRemoveComment" , { "Id" : Id } ) } ; asc _docs _api . prototype . sync _AddComment = function ( Id , CommentData ) { var AscCommentData = new asc _CCommentDataWord ( CommentData ) ;
this . sendEvent ( "asc_onAddComment" , Id , AscCommentData ) ; if ( window . g _asc _plugins ) window . g _asc _plugins . onPluginEvent ( "onAddComment" , { "Id" : Id , "Data" : CommentData . ConvertToSimpleObject ( ) } ) } ; asc _docs _api . prototype . sync _ShowComment = function ( arrId , X , Y ) { this . sendEvent ( "asc_onShowComment" , arrId , 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 _CCommentDataWord ( CommentData ) ; this . sendEvent ( "asc_onChangeCommentData" , Id , AscCommentData ) ; if ( window . g _asc _plugins ) window . g _asc _plugins . onPluginEvent ( "onChangeCommentData" , { "Id" : Id , "Data" : CommentData . ConvertToSimpleObject ( ) } ) } ; 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 . asc _RemoveAllComments =
function ( isMine , isCurrent , arrIds ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return ; var arrCommentsId = undefined !== arrIds ? arrIds : oLogicDocument . GetAllComments ( isMine , isCurrent ) ; if ( ! oLogicDocument . IsSelectionLocked ( changestype _None , { Type : AscCommon . changestype _2 _Comment , Id : arrCommentsId } , false , oLogicDocument . IsEditCommentsMode ( ) ) ) { oLogicDocument . StartAction ( AscDFH . historydescription _Document _RemoveAllComments ) ; for ( var nIndex = 0 , nCount = arrCommentsId . length ; nIndex < nCount ; ++ nIndex ) { var oComment =
oLogicDocument . Comments . Get _ById ( arrCommentsId [ nIndex ] ) ; if ( oComment && AscCommon . UserInfoParser . canDeleteComment ( oComment . GetUserName ( ) ) ) oLogicDocument . RemoveComment ( arrCommentsId [ nIndex ] , true , false ) } oLogicDocument . Recalculate ( ) ; oLogicDocument . UpdateInterface ( ) ; oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . asc _ResolveAllComments = function ( isMine , isCurrent , arrIds ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return ; var arrCommentsId = undefined !== arrIds ? arrIds : oLogicDocument . GetAllComments ( isMine ,
isCurrent ) ; if ( ! oLogicDocument . IsSelectionLocked ( changestype _None , { Type : AscCommon . changestype _2 _Comment , Id : arrCommentsId } , false , oLogicDocument . IsEditCommentsMode ( ) ) ) { oLogicDocument . StartAction ( AscDFH . historydescription _Document _ResolveAllComments ) ; for ( var nIndex = 0 , nCount = arrCommentsId . length ; nIndex < nCount ; ++ nIndex ) { var oComment = oLogicDocument . Comments . Get _ById ( arrCommentsId [ nIndex ] ) ; if ( oComment && AscCommon . UserInfoParser . canEditComment ( oComment . GetUserName ( ) ) && ! oComment . IsSolved ( ) && oComment . GetData ( ) ) { var oCommentData =
oComment . GetData ( ) . Copy ( ) ; oCommentData . SetSolved ( true ) ; oComment . SetData ( oCommentData ) ; this . sync _ChangeCommentData ( arrCommentsId [ nIndex ] , oCommentData ) } } oLogicDocument . Recalculate ( ) ; oLogicDocument . UpdateInterface ( ) ; oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . sync _LockHeaderFooters = function ( ) { this . sendEvent ( "asc_onLockHeaderFooters" ) } ; asc _docs _api . prototype . sync _LockDocumentProps = function ( ) { this . sendEvent ( "asc_onLockDocumentProps" ) } ; asc _docs _api . prototype . sync _UnLockHeaderFooters = function ( ) { this . sendEvent ( "asc_onUnLockHeaderFooters" ) } ;
asc _docs _api . prototype . sync _UnLockDocumentProps = function ( ) { this . sendEvent ( "asc_onUnLockDocumentProps" ) } ; asc _docs _api . prototype . sync _CollaborativeChanges = function ( ) { if ( true !== AscCommon . CollaborativeEditing . Is _Fast ( ) && ( true !== this . WordControl . m _oLogicDocument . IsViewModeInReview ( ) || true !== this . WordControl . m _oLogicDocument . IsFastCollaborationBeforeViewModeInReview ( ) ) ) this . sendEvent ( "asc_onCollaborativeChanges" ) } ; asc _docs _api . prototype . sync _LockDocumentSchema = function ( ) { this . sendEvent ( "asc_onLockDocumentSchema" ) } ;
asc _docs _api . prototype . sync _UnLockDocumentSchema = function ( ) { this . sendEvent ( "asc_onUnLockDocumentSchema" ) } ; 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 ( 0 , this . WordControl . m _nZoomValue ) } ; asc _docs _api . prototype . zoom100 = function ( ) { this . zoom ( 100 ) } ; asc _docs _api . prototype . zoom = function ( percent ) { var _old _val = this . WordControl . m _nZoomValue ; this . WordControl . m _nZoomValue = percent ; this . WordControl . m _nZoomType = 0 ; this . WordControl . zoom _Fire ( 0 ,
_old _val ) } ; asc _docs _api . prototype . goToPage = function ( number ) { this . WordControl . GoToPage ( number ) } ; asc _docs _api . prototype . getCountPages = function ( ) { return this . WordControl . m _oDrawingDocument . m _lPagesCount } ; asc _docs _api . prototype . getCurrentPage = function ( ) { return this . WordControl . m _oDrawingDocument . m _lCurrentPage } ; 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 . asc _enableKeyEvents = function ( value , isFromInput ) { if ( ! this . isLoadFullApi ) { this . tmpFocus = value ; return } if ( this . WordControl && this . WordControl . IsFocus != value ) { this . WordControl . IsFocus = value ; if ( this . WordControl . IsFocus && null != this . WordControl . TextBoxInput ) this . WordControl . TextBoxInput . focus ( ) ; this . sendEvent ( "asc_onEnableKeyEventsChanged" , value ) } if ( isFromInput !== true &&
AscCommon . g _inputContext ) AscCommon . g _inputContext . setInterfaceEnableKeyEvents ( value ) } ; 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 . asyncFontsDocumentStartLoaded = function ( blockType ) { if ( this . isPasteFonts _Images ) this . sync _StartAction ( c _oAscAsyncActionType . BlockInteraction , c _oAscAsyncAction . LoadFont ) ; else if ( this . isSaveFonts _Images ) this . sync _StartAction ( c _oAscAsyncActionType . Information ,
c _oAscAsyncAction . LoadFont ) ; else { this . sync _StartAction ( undefined === blockType ? c _oAscAsyncActionType . BlockInteraction : blockType , c _oAscAsyncAction . LoadDocumentFonts ) ; if ( undefined !== this . asyncMethodCallback ) return ; 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 ; _progress . CurrentImage = 0 } } ; asc _docs _api . prototype . GenerateStyles = function ( ) { if ( window [ "NATIVE_EDITOR_ENJINE" ] === true ) if ( ! this . asc _checkNeedCallback ( "asc_onInitEditorStyles" ) ) return ; var StylesPainter = new AscCommonWord . CStylesPainter ; var LogicDocument = this . WordControl . m _oLogicDocument ; if ( LogicDocument ) { var isShowParaMarks = LogicDocument . Is _ShowParagraphMarks ( ) ; var isLocalTrackRevisions =
false ; if ( LogicDocument . IsTrackRevisions ( ) ) { isLocalTrackRevisions = LogicDocument . GetLocalTrackRevisions ( ) ; LogicDocument . SetLocalTrackRevisions ( false ) } if ( true === isShowParaMarks ) LogicDocument . Set _ShowParagraphMarks ( false , false ) ; StylesPainter . GenerateStyles ( this , null == this . LoadedObject ? this . WordControl . m _oLogicDocument . Get _Styles ( ) . Style : this . LoadedObjectDS ) ; if ( false !== isLocalTrackRevisions ) LogicDocument . SetLocalTrackRevisions ( isLocalTrackRevisions ) ; if ( true === isShowParaMarks ) LogicDocument . Set _ShowParagraphMarks ( true ,
false ) } } ; asc _docs _api . prototype . asyncFontsDocumentEndLoaded = function ( blockType ) { if ( this . isPasteFonts _Images ) this . sync _EndAction ( c _oAscAsyncActionType . BlockInteraction , c _oAscAsyncAction . LoadFont ) ; else if ( this . isSaveFonts _Images ) this . sync _EndAction ( c _oAscAsyncActionType . Information , 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 ) } var _oldAsyncLoadImages = this . ImageLoader . bIsAsyncLoadDocumentImages ; this . ImageLoader . bIsAsyncLoadDocumentImages = false ; this . ImageLoader . LoadDocumentImages ( this . pasteImageMap ) ; this . ImageLoader . bIsAsyncLoadDocumentImages = true ;
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 ( ) ; if ( null != this . WordControl . m _oLogicDocument ) { this . WordControl . m _oDrawingDocument . CheckGuiControlColors ( ) ; this . sendColorThemes ( this . WordControl . m _oLogicDocument . theme ) ; this . sendEvent ( "asc_onUpdateChartStyles" ) } 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 ; if ( ! this . isOnlyReaderMode ) { 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 ( this . OpenDocumentProgress && ! this . ImageLoader . bIsAsyncLoadDocumentImages ) this . OpenDocumentProgress . ImagesCount += _st _count } 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 . CreateFontsCharMap = function ( ) { var _info = new CFontsCharMap ; _info . StartWork ( ) ; this . WordControl . m _oLogicDocument . Document _CreateFontCharMap ( _info ) ; return _info . EndWork ( ) } ; asc _docs _api . prototype . sync _SendThemeColors = function ( colors , standart _colors ) { this . _gui _control _colors = { Colors : colors ,
StandartColors : 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 . m _oLogicDocument . theme } ; asc _docs _api . prototype . ChangeColorScheme = function ( sSchemeName ) { if ( null == this . WordControl . m _oLogicDocument ) return ; var _changer = this . WordControl . m _oLogicDocument . DrawingObjects ; if ( null == _changer ) return ; var theme = this . WordControl . m _oLogicDocument . theme ; var scheme =
AscCommon . getColorSchemeByName ( sSchemeName ) ; if ( ! scheme ) scheme = theme . getExtraClrScheme ( sSchemeName ) ; if ( ! scheme ) return ; if ( this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _ColorScheme ) === false ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _ChangeColorScheme ) ; theme . changeColorScheme ( scheme ) ; this . WordControl . m _oDrawingDocument . CheckGuiControlColors ( ) ; this . chartPreviewManager . clearPreviews ( ) ; this . textArtPreviewManager . clear ( ) ; this . sendEvent ( "asc_onUpdateChartStyles" ) ;
this . WordControl . m _oLogicDocument . Recalculate ( ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) ; this . WordControl . m _oDrawingDocument . ClearCachePages ( ) ; this . WordControl . OnScroll ( ) ; this . WordControl . m _oDrawingDocument . CheckGuiControlColors ( ) ; this . WordControl . m _oLogicDocument . Document _UpdateInterfaceState ( ) } } ; asc _docs _api . prototype . asc _ChangeColorSchemeByIdx = function ( nIdx ) { if ( null == this . WordControl . m _oLogicDocument ) return ; var _changer = this . WordControl . m _oLogicDocument . DrawingObjects ; if ( null == _changer ) return ;
var theme = this . getCurrentTheme ( ) ; if ( ! theme ) return ; var scheme = this . getColorSchemeByIdx ( nIdx ) ; if ( ! scheme ) return ; if ( this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _ColorScheme ) === false ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _ChangeColorScheme ) ; theme . changeColorScheme ( scheme ) ; this . WordControl . m _oDrawingDocument . CheckGuiControlColors ( ) ; this . chartPreviewManager . clearPreviews ( ) ; this . textArtPreviewManager . clear ( ) ; this . sendEvent ( "asc_onUpdateChartStyles" ) ;
this . WordControl . m _oLogicDocument . Recalculate ( ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) ; this . WordControl . m _oDrawingDocument . ClearCachePages ( ) ; this . WordControl . OnScroll ( ) ; this . WordControl . m _oDrawingDocument . CheckGuiControlColors ( ) ; this . WordControl . m _oLogicDocument . Document _UpdateInterfaceState ( ) } } ; asc _docs _api . prototype . asyncImagesDocumentEndLoaded = function ( ) { this . ImageLoader . bIsLoadDocumentFirst = false ; var _bIsOldPaste = this . isPasteFonts _Images ; if ( null != this . WordControl . m _oDrawingDocument . m _oDocumentRenderer ) { if ( this . EndActionLoadImages ==
1 ) this . sync _EndAction ( c _oAscAsyncActionType . BlockInteraction , c _oAscAsyncAction . LoadDocumentImages ) ; else if ( this . EndActionLoadImages == 2 ) if ( this . isPasteFonts _Images ) this . sync _EndAction ( c _oAscAsyncActionType . BlockInteraction , c _oAscAsyncAction . LoadImage ) ; else this . sync _EndAction ( c _oAscAsyncActionType . Information , c _oAscAsyncAction . LoadImage ) ; this . EndActionLoadImages = 0 ; this . WordControl . m _oDrawingDocument . OpenDocument ( ) ; this . LoadedObject = null ; this . bInit _word _control = true ; if ( false === this . isPasteFonts _Images ) this . onDocumentContentReady ( ) ;
this . WordControl . InitControl ( ) ; if ( this . isViewMode ) this . asc _setViewMode ( true ) ; return } 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 ( false === this . isPasteFonts _Images &&
false === this . isSaveFonts _Images && false === this . isLoadImagesCustom ) { this . ServerImagesWaitComplete = true ; this . _openDocumentEndCallback ( ) } else 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 ( ) ; if ( this . bInit _word _control === false ) { this . bInit _word _control = true ; this . onDocumentContentReady ( ) } } else if ( this . isLoadImagesCustom ) { this . isLoadImagesCustom =
false ; this . loadCustomImageMap = null ; if ( ! this . ImageLoader . bIsAsyncLoadDocumentImages ) this . SyncLoadImages _callback ( ) } } ; asc _docs _api . prototype . _openDocumentEndCallback = function ( ) { if ( this . isDocumentLoadComplete || ! this . ServerImagesWaitComplete || ! this . ServerIdWaitComplete || ! this . WordControl || ! this . WordControl . m _oLogicDocument ) return ; var isSendOnReady = false ; if ( 0 == this . DocumentType ) this . WordControl . m _oLogicDocument . LoadEmptyDocument ( ) ; else if ( 1 == this . DocumentType ) this . WordControl . m _oLogicDocument . LoadTestDocument ( ) ;
else if ( this . LoadedObject ) { var Document = this . WordControl . m _oLogicDocument ; if ( this . isApplyChangesOnOpenEnabled ) { if ( AscCommon . EncryptionWorker ) { AscCommon . EncryptionWorker . init ( ) ; if ( ! AscCommon . EncryptionWorker . isChangesHandled ) return AscCommon . EncryptionWorker . handleChanges ( AscCommon . CollaborativeEditing . m _aChanges , this , this . _openDocumentEndCallback ) } if ( false === this . isSaveFonts _Images && ! isSendOnReady ) { isSendOnReady = true ; this . bInit _word _control = true ; Document . Start _SilentMode ( ) } this . isApplyChangesOnOpenEnabled =
false ; this . _applyPreOpenLocks ( ) ; AscCommon . CollaborativeEditing . Apply _Changes ( ) ; AscCommon . CollaborativeEditing . Release _Locks ( ) ; this . isApplyChangesOnOpen = true } if ( false === this . isSaveFonts _Images && ! isSendOnReady ) { isSendOnReady = true ; this . bInit _word _control = true ; Document . Start _SilentMode ( ) } Document . MoveCursorToStartPos ( false ) ; if ( isSendOnReady ) { this . onDocumentContentReady ( ) ; Document . End _SilentMode ( false ) } if ( ! this . isOnlyReaderMode ) { if ( false === this . isSaveFonts _Images ) Document . RecalculateFromStart ( ) ; this . WordControl . m _oDrawingDocument . TargetStart ( ) } else { Document . RecalculateAllTables ( ) ;
var data = { All : true } ; Document . DrawingObjects . recalculate _ ( data ) ; Document . DrawingObjects . recalculateText _ ( data ) ; if ( ! this . WordControl . IsReaderMode ( ) ) this . ChangeReaderMode ( ) ; else this . WordControl . UpdateReaderContent ( ) } } if ( false === this . isSaveFonts _Images && ! isSendOnReady ) { isSendOnReady = true ; this . bInit _word _control = true ; this . onDocumentContentReady ( ) } this . WordControl . m _oLogicDocument . Document _UpdateInterfaceState ( ) ; this . WordControl . m _oLogicDocument . Document _UpdateSelectionState ( ) ; this . LoadedObject = null ; this . WordControl . InitControl ( ) ;
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 = c _oAscAdvancedOptionsAction . None } ; asc _docs _api . prototype . UpdateInterfaceState = function ( ) { if ( this . WordControl . m _oLogicDocument != null ) this . WordControl . m _oLogicDocument . UpdateInterface ( ) } ; 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 } var _fontSelections = g _fontApplication . g _fontSelections ; if ( _fontSelections . CurrentLoadedObj != null ) { var _rfonts = _fontSelections . getSetupRFonts ( _fontSelections . CurrentLoadedObj ) ; this . WordControl . m _oLogicDocument . TextBox _Put ( _fontSelections . CurrentLoadedObj . text , _rfonts ) ; this . WordControl . ReinitTB ( ) ; _fontSelections . CurrentLoadedObj = null ; this . sync _EndAction ( c _oAscAsyncActionType . BlockInteraction ,
c _oAscAsyncAction . LoadFont ) ; return } if ( this . FontAsyncLoadType == 1 ) { this . FontAsyncLoadType = 0 ; this . asc _AddMath2 ( this . FontAsyncLoadParam ) ; this . FontAsyncLoadParam = null ; return } if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _Paragraph _TextProperties ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetTextFontNameLong ) ; this . WordControl . m _oLogicDocument . AddToParagraph ( new AscCommonWord . ParaTextPr ( { FontFamily : { Name : fontinfo . Name ,
Index : - 1 } } ) ) ; this . WordControl . m _oLogicDocument . UpdateInterface ( ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . asc _replaceLoadImageCallback = function ( fCallback ) { this . asyncImageEndLoaded2 = fCallback } ; asc _docs _api . prototype . asyncImageEndLoaded = function ( _image ) { if ( this . asyncImageEndLoaded2 ) this . asyncImageEndLoaded2 ( _image ) ; else if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( changestype _Paragraph _Content ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _AddImage ) ;
this . WordControl . m _oLogicDocument . AddInlineImage ( 50 , 50 , _image . src ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . openDocument = function ( file ) { if ( file . changes && this . VersionHistory ) { this . VersionHistory . changes = file . changes ; this . VersionHistory . applyChanges ( this ) } if ( file . bSerFormat ) this . OpenDocument2 ( file . url , file . data ) ; else this . OpenDocument ( file . url , file . data ) } ; asc _docs _api . prototype . asyncImageEndLoadedBackground = function ( _image ) { this . WordControl . m _oDrawingDocument . CheckRasterImageOnScreen ( _image . src ) ;
if ( this . WordControl . m _oDrawingDocument . LastDrawingUrl == _image . src ) { this . WordControl . m _oDrawingDocument . LastDrawingUrl = "" ; this . UpdateInterfaceState ( ) } } ; asc _docs _api . prototype . IsAsyncOpenDocumentImages = function ( ) { return true } ; 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 _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 . SyncLoadImages = function ( _images ) { this . isLoadImagesCustom = true ; this . loadCustomImageMap = _images ; var _count = 0 ; var _loaded = this . ImageLoader . map _image _index ; var _new _len = this . loadCustomImageMap . length ; for ( var i = 0 ; i < _new _len ; i ++ ) { if ( undefined !== _loaded [ this . loadCustomImageMap [ i ] ] ) { this . loadCustomImageMap . splice ( i , 1 ) ; i -- ; _new _len -- ; continue } ++ _count } if ( _count > 0 ) { this . EndActionLoadImages = 2 ; this . sync _StartAction ( c _oAscAsyncActionType . Information , c _oAscAsyncAction . LoadImage ) } this . ImageLoader . LoadDocumentImages ( this . loadCustomImageMap ) } ;
asc _docs _api . prototype . SyncLoadImages _callback = function ( ) { this . WordControl . OnRePaintAttack ( ) } ; 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 ( ) } } ; asc _docs _api . prototype . initEvents2MobileAdvances = function ( ) { } ; 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 ( ) { if ( window [ "IS_NATIVE_EDITOR" ] ) return window [ "native" ] [ "GetDrawingEndPage" ] ( ) ;
var lPage1 = this . WordControl . m _oDrawingDocument . m _lDrawingFirst ; var lPage2 = lPage1 + 1 ; if ( lPage2 > this . WordControl . m _oDrawingDocument . m _lDrawingEnd ) return lPage1 ; var lWindHeight = this . WordControl . m _oEditor . HtmlElement . height ; var arPages = this . WordControl . m _oDrawingDocument . m _arrPages ; var dist1 = arPages [ lPage1 ] . drawingPage . bottom ; var dist2 = lWindHeight - arPages [ lPage2 ] . drawingPage . top ; if ( dist1 > dist2 ) return lPage1 ; return lPage2 } ; 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 . GoToHeader = function ( pageNumber ) { if ( this . WordControl . m _oDrawingDocument . IsFreezePage ( pageNumber ) ) return ;
var bForceRedraw = false ; var LogicDocument = this . WordControl . m _oLogicDocument ; if ( AscCommonWord . docpostype _HdrFtr !== LogicDocument . GetDocPosType ( ) ) { LogicDocument . SetDocPosType ( AscCommonWord . docpostype _HdrFtr ) ; bForceRedraw = true } var oldClickCount = global _mouseEvent . ClickCount ; global _mouseEvent . Button = 0 ; global _mouseEvent . ClickCount = 1 ; LogicDocument . OnMouseDown ( global _mouseEvent , 0 , 0 , pageNumber ) ; LogicDocument . OnMouseUp ( global _mouseEvent , 0 , 0 , pageNumber ) ; LogicDocument . OnMouseMove ( global _mouseEvent , 0 , 0 , pageNumber ) ;
LogicDocument . MoveCursorLeft ( ) ; LogicDocument . UpdateInterface ( ) ; LogicDocument . UpdateSelection ( ) ; global _mouseEvent . ClickCount = oldClickCount ; if ( true === bForceRedraw ) { this . WordControl . m _oDrawingDocument . ClearCachePages ( ) ; this . WordControl . m _oDrawingDocument . FirePaint ( ) } } ; asc _docs _api . prototype . GoToFooter = function ( pageNumber ) { if ( this . WordControl . m _oDrawingDocument . IsFreezePage ( pageNumber ) ) return ; var bForceRedraw = false ; var LogicDocument = this . WordControl . m _oLogicDocument ; if ( AscCommonWord . docpostype _HdrFtr !==
LogicDocument . GetDocPosType ( ) ) { LogicDocument . SetDocPosType ( AscCommonWord . docpostype _HdrFtr ) ; bForceRedraw = true } var oldClickCount = global _mouseEvent . ClickCount ; global _mouseEvent . Button = 0 ; global _mouseEvent . ClickCount = 1 ; LogicDocument . OnMouseDown ( global _mouseEvent , 0 , AscCommon . Page _Height , pageNumber ) ; LogicDocument . OnMouseUp ( global _mouseEvent , 0 , AscCommon . Page _Height , pageNumber ) ; LogicDocument . OnMouseMove ( global _mouseEvent , 0 , 0 , pageNumber ) ; LogicDocument . MoveCursorLeft ( ) ; LogicDocument . UpdateInterface ( ) ; LogicDocument . UpdateSelection ( ) ;
global _mouseEvent . ClickCount = oldClickCount ; if ( true === bForceRedraw ) { this . WordControl . m _oDrawingDocument . ClearCachePages ( ) ; this . WordControl . m _oDrawingDocument . FirePaint ( ) } } ; 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 ) { var value = true === _value ? c _oAscFormatPainterState . kOn : false === _value ? c _oAscFormatPainterState . kOff : _value ; this . isPaintFormat = value ; if ( c _oAscFormatPainterState . kOff !== value ) this . WordControl . m _oLogicDocument . Document _Format _Copy ( ) } ;
asc _docs _api . prototype . ChangeShapeType = function ( value ) { this . ImgApply ( new asc _CImgProperty ( { ShapeProperties : { type : value } } ) ) } ; asc _docs _api . prototype . sync _PaintFormatCallback = function ( _value ) { var value = true === _value ? c _oAscFormatPainterState . kOn : false === _value ? c _oAscFormatPainterState . kOff : _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 ) ; this . WordControl . m _oLogicDocument . Document _Format _Copy ( ) } } ; asc _docs _api . prototype . sync _MarkerFormatCallback = function ( value ) { this . isMarkerFormat = value ; return this . sendEvent ( "asc_onMarkerFormatChanged" , value ) } ; asc _docs _api . prototype . asc _SendForm = function ( ) { var t = this ; this . sync _StartAction ( c _oAscAsyncActionType . Information , c _oAscAsyncAction . Submit ) ; var data = { "type" : "sendForm" , "userconnectionid" : this . CoAuthoringApi . getUserConnectionId ( ) } ; this . saveFromChanges ( data , Asc . c _nMaxConversionTime , function ( isTimeout ,
response ) { if ( ! ( response && response . success ) ) t . sendEvent ( "asc_onError" , Asc . c _oAscError . ID . Submit , c _oAscError . Level . NoCritical ) ; t . sync _EndAction ( c _oAscAsyncActionType . Information , c _oAscAsyncAction . Submit ) } ) } ; asc _docs _api . prototype . SetTableDrawMode = function ( value ) { if ( ! this . WordControl || ! this . WordControl . m _oLogicDocument ) return ; this . isDrawTablePen = value ; this . WordControl . m _oLogicDocument . DrawTableMode . Draw = value ; if ( this . isDrawTablePen && this . isDrawTableErase ) this . SetTableEraseMode ( false ) ; this . WordControl . m _oDrawingDocument . UnlockCursorType ( ) ;
if ( this . isDrawTablePen ) this . WordControl . m _oDrawingDocument . LockCursorType ( "de-tablepen" ) } ; asc _docs _api . prototype . sync _TableDrawModeCallback = function ( value ) { this . isDrawTablePen = value ; this . WordControl . m _oLogicDocument . DrawTableMode . Draw = value ; if ( ! this . isDrawTablePen ) { this . WordControl . m _oLogicDocument . DrawTableMode . Start = false ; this . WordControl . m _oDrawingDocument . UnlockCursorType ( ) } return this . sendEvent ( "asc_onTableDrawModeChanged" , value ) } ; asc _docs _api . prototype . SetTableEraseMode = function ( value ) { if ( ! this . WordControl ||
! this . WordControl . m _oLogicDocument ) return ; this . isDrawTableErase = value ; this . WordControl . m _oLogicDocument . DrawTableMode . Erase = value ; if ( this . isDrawTableErase && this . isDrawTablePen ) this . SetTableDrawMode ( false ) ; this . WordControl . m _oDrawingDocument . UnlockCursorType ( ) ; if ( this . isDrawTableErase ) this . WordControl . m _oDrawingDocument . LockCursorType ( "de-tableeraser" ) } ; asc _docs _api . prototype . sync _TableEraseModeCallback = function ( value ) { this . isDrawTableErase = value ; this . WordControl . m _oLogicDocument . DrawTableMode . Erase =
value ; if ( ! this . isDrawTableErase ) { this . WordControl . m _oLogicDocument . DrawTableMode . Start = false ; this . WordControl . m _oDrawingDocument . UnlockCursorType ( ) } return this . sendEvent ( "asc_onTableEraseModeChanged" , value ) } ; asc _docs _api . prototype . StartAddShape = function ( sPreset , is _apply ) { if ( this . isDrawTablePen ) this . sync _TableDrawModeCallback ( false ) ; if ( this . isDrawTableErase ) this . sync _TableEraseModeCallback ( false ) ; this . isStartAddShape = true ; this . addShapePreset = sPreset ; if ( is _apply ) this . WordControl . m _oDrawingDocument . LockCursorType ( "crosshair" ) ;
else { editor . sync _EndAddShape ( ) ; editor . sync _StartAddShapeCallback ( false ) } } ; asc _docs _api . prototype . AddShapeOnCurrentPage = function ( _type ) { if ( ! this . WordControl . m _oLogicDocument ) return ; this . WordControl . m _oLogicDocument . DrawingObjects . addShapeOnPage ( _type , this . GetCurrentVisiblePage ( ) ) } ; asc _docs _api . prototype . asc _canEditCrop = function ( ) { return this . WordControl . m _oLogicDocument . DrawingObjects . canStartImageCrop ( ) } ; asc _docs _api . prototype . asc _startEditCrop = function ( ) { return this . WordControl . m _oLogicDocument . DrawingObjects . startImageCrop ( ) } ;
asc _docs _api . prototype . asc _endEditCrop = function ( ) { return this . WordControl . m _oLogicDocument . DrawingObjects . endImageCrop ( ) } ; asc _docs _api . prototype . asc _cropFit = function ( ) { return this . WordControl . m _oLogicDocument . DrawingObjects . cropFit ( ) } ; asc _docs _api . prototype . asc _cropFill = function ( ) { return this . WordControl . m _oLogicDocument . DrawingObjects . cropFill ( ) } ; asc _docs _api . prototype . AddTextArt = function ( nStyle ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( changestype _Paragraph _Content ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _AddTextArt ) ;
this . WordControl . m _oLogicDocument . AddTextArt ( nStyle ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . sync _StartAddShapeCallback = function ( value ) { this . isStartAddShape = value ; return this . sendEvent ( "asc_onStartAddShapeChanged" , value ) } ; 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 . CanChangeWrapPolygon = function ( ) { return this . WordControl . m _oLogicDocument . CanChangeWrapPolygon ( ) } ;
asc _docs _api . prototype . StartChangeWrapPolygon = function ( ) { return this . WordControl . m _oLogicDocument . StartChangeWrapPolygon ( ) } ; asc _docs _api . prototype . ClearFormating = function ( ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _Paragraph _TextProperties ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _ClearFormatting ) ; this . WordControl . m _oLogicDocument . ClearParagraphFormatting ( ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ;
asc _docs _api . prototype . GetSectionInfo = function ( ) { var obj = new CAscSection ; obj . PageWidth = 297 ; obj . PageHeight = 210 ; obj . MarginLeft = 30 ; obj . MarginRight = 15 ; obj . MarginTop = 20 ; obj . MarginBottom = 20 ; return obj } ; asc _docs _api . prototype . add _SectionBreak = function ( _Type ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( changestype _Paragraph _Content ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _AddSectionBreak ) ; this . WordControl . m _oLogicDocument . Add _SectionBreak ( _Type ) ;
this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . asc _GetSectionsCount = function ( ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return 1 ; return oLogicDocument . GetSectionsCount ( ) } ; asc _docs _api . prototype . asc _setViewMode = function ( isViewMode ) { this . isViewMode = ! ! isViewMode ; if ( ! this . isLoadFullApi ) return ; if ( isViewMode ) { this . asc _SpellCheckDisconnect ( ) ; this . ShowParaMarks = false ; AscCommon . CollaborativeEditing . Set _GlobalLock ( true ) ; if ( null == this . WordControl . m _oDrawingDocument . m _oDocumentRenderer ) { this . WordControl . m _oDrawingDocument . ClearCachePages ( ) ;
this . WordControl . HideRulers ( ) } else { this . WordControl . HideRulers ( ) ; this . WordControl . OnScroll ( ) } } else { this . WordControl . checkNeedRules ( ) ; this . WordControl . m _oDrawingDocument . ClearCachePages ( ) ; this . WordControl . OnResize ( true ) } } ; asc _docs _api . prototype . OnMouseUp = function ( x , y ) { this . WordControl . onMouseUpExternal ( x , y ) } ; asc _docs _api . prototype . asyncImageEndLoaded2 = null ; 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 . 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 . _onNeedParams = function ( data , opt _isPassword ) { var t = this ; if ( opt _isPassword ) if ( this . asc _checkNeedCallback ( "asc_onAdvancedOptions" ) ) t . sendEvent ( "asc_onAdvancedOptions" ,
c _oAscAdvancedOptionsID . DRM , data ? data . message : undefined ) ; else t . sendEvent ( "asc_onError" , c _oAscError . ID . ConvertationPassword , c _oAscError . Level . Critical ) ; else if ( this . asc _checkNeedCallback ( "asc_onAdvancedOptions" ) ) { var cp = { "codepage" : AscCommon . c _oAscCodePageUtf8 , "encodings" : AscCommon . getEncodingParams ( ) } ; if ( data && typeof Blob !== "undefined" && typeof FileReader !== "undefined" ) AscCommon . getJSZipUtils ( ) . getBinaryContent ( data , function ( err , data ) { if ( err ) t . sendEvent ( "asc_onError" , c _oAscError . ID . Unknown , c _oAscError . Level . Critical ) ;
else { cp [ "data" ] = data ; t . sendEvent ( "asc_onAdvancedOptions" , c _oAscAdvancedOptionsID . TXT , new AscCommon . asc _CAdvancedOptions ( cp ) ) } } ) ; else t . sendEvent ( "asc_onAdvancedOptions" , c _oAscAdvancedOptionsID . TXT , new AscCommon . asc _CAdvancedOptions ( cp ) ) } else this . asc _setAdvancedOptions ( c _oAscAdvancedOptionsID . TXT , new Asc . asc _CTextOptions ( AscCommon . c _oAscCodePageUtf8 ) ) } ; asc _docs _api . prototype . _waitPrint = function ( actionType , options ) { if ( this . WordControl && this . WordControl . m _oDrawingDocument && ( c _oAscFileType . PDF === options . fileType ||
c _oAscFileType . PDFA === options . fileType ) ) return this . WordControl . m _oDrawingDocument . CheckPrint ( [ actionType , options ] ) ; return false } ; asc _docs _api . prototype . _downloadAs = function ( actionType , options , oAdditionalData , dataContainer ) { var t = this ; var fileType = options . fileType ; if ( c _oAscAsyncAction . SendMailMerge === actionType ) { oAdditionalData [ "c" ] = "sendmm" ; oAdditionalData [ "userindex" ] = this . CoAuthoringApi . get _indexUser ( ) } else if ( ! this . WordControl . m _oLogicDocument ) oAdditionalData [ "c" ] = "savefromorigin" ; if ( "savefromorigin" ===
oAdditionalData [ "c" ] ) oAdditionalData [ "format" ] = this . documentFormat ; else if ( null == options . oDocumentMailMerge && ( 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 ; if ( isSelection ) dd . GenerateSelectionPrint ( ) ; dataContainer . data = dd . ToRendererPart ( oAdditionalData [ "nobase64" ] , isSelection ) } else if ( c _oAscFileType . JSON ===
fileType ) { oAdditionalData [ "url" ] = this . mailMergeFileData [ "url" ] ; oAdditionalData [ "format" ] = this . mailMergeFileData [ "fileType" ] ; if ( this . mailMergeFileData [ "token" ] ) { oAdditionalData [ "tokenDownload" ] = this . mailMergeFileData [ "token" ] ; oAdditionalData [ "tokenSession" ] = undefined } oAdditionalData [ "codepage" ] = AscCommon . c _oAscCodePageUtf8 ; oAdditionalData [ "delimiter" ] = AscCommon . c _oAscCsvDelimiter . Comma } else if ( this . insertDocumentUrlsData ) { var last = this . insertDocumentUrlsData . documents . shift ( ) ; oAdditionalData [ "url" ] =
last . url ; oAdditionalData [ "format" ] = last . format ; if ( last . token ) { oAdditionalData [ "tokenDownload" ] = last . token ; oAdditionalData [ "tokenSession" ] = undefined } oAdditionalData [ "outputurls" ] = true ; oAdditionalData [ "codepage" ] = AscCommon . c _oAscCodePageUtf8 ; dataContainer . data = last . data } else if ( c _oAscFileType . HTML === fileType && null == options . oDocumentMailMerge && null == options . oMailMergeSendData ) { var _e = new AscCommon . CKeyboardEvent ; _e . CtrlKey = false ; _e . KeyCode = 27 ; this . WordControl . m _oLogicDocument . OnKeyDown ( _e ) ; dataContainer . data =
"\ufeff" + window [ "asc_docs_api" ] . prototype [ "asc_nativeGetHtml" ] . call ( this ) } else { if ( options . advancedOptions instanceof Asc . asc _CTextOptions ) oAdditionalData [ "codepage" ] = options . advancedOptions . asc _getCodePage ( ) ; var oLogicDocument ; if ( null != options . oDocumentMailMerge ) oLogicDocument = options . oDocumentMailMerge ; else oLogicDocument = this . WordControl . m _oLogicDocument ; var oBinaryFileWriter ; if ( null != options . oMailMergeSendData && c _oAscFileType . HTML === options . oMailMergeSendData . get _MailFormat ( ) ) oBinaryFileWriter =
new AscCommonWord . BinaryFileWriter ( oLogicDocument , false , true , options . compatible ) ; else oBinaryFileWriter = new AscCommonWord . BinaryFileWriter ( oLogicDocument , undefined , undefined , options . compatible ) ; dataContainer . data = oBinaryFileWriter . Write ( oAdditionalData [ "nobase64" ] ) } if ( null != options . oMailMergeSendData ) { oAdditionalData [ "mailmergesend" ] = options . oMailMergeSendData ; var MailMergeMap = this . WordControl . m _oLogicDocument . MailMergeMap ; var aJsonOut = [ ] ; if ( MailMergeMap ) { if ( MailMergeMap . length > 0 ) { var oFirstRow = MailMergeMap [ 0 ] ;
var aRowOut = [ ] ; for ( var i in oFirstRow ) aRowOut . push ( i ) ; aJsonOut . push ( aRowOut ) } for ( var i = 0 ; i < MailMergeMap . length ; ++ i ) { var oRow = MailMergeMap [ i ] ; var aRowOut = [ ] ; for ( var j in oRow ) aRowOut . push ( oRow [ j ] ) ; aJsonOut . push ( aRowOut ) } } var editorData = dataContainer . data ; dataContainer . data = JSON . stringify ( aJsonOut ) ; options . oMailMergeSendData . put _IsJson ( true ) ; var callback = options . callback ; options . callback = function ( incomeObject ) { oAdditionalData [ "savekey" ] = incomeObject [ "data" ] ; var _dataContainer = { data : editorData , part : null ,
index : 0 , count : 0 } ; options . oMailMergeSendData . put _IsJson ( false ) ; AscCommon . saveWithParts ( function ( fCallback1 , oAdditionalData1 , dataContainer1 ) { sendCommand ( t , fCallback1 , oAdditionalData1 , dataContainer1 ) } , t . fCurCallback , callback , oAdditionalData , _dataContainer ) } } if ( window . isCloudCryptoDownloadAs ) { var sParamXml = "<m_nCsvTxtEncoding>" + oAdditionalData [ "codepage" ] + "</m_nCsvTxtEncoding>" ; window [ "AscDesktopEditor" ] [ "CryptoDownloadAs" ] ( dataContainer . data , fileType , sParamXml ) ; return true } } ; 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 ( options ) { if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( changestype _Paragraph _Content ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _AddChart ) ;
AscFonts . IsCheckSymbols = true ; this . asc _SetSilentMode ( true ) ; this . WordControl . m _oLogicDocument . AddInlineImage ( null , null , null , options ) ; AscFonts . IsCheckSymbols = false ; var oThis = this ; AscFonts . FontPickerByCharacter . checkText ( "" , this , function ( ) { this . asc _SetSilentMode ( false , true ) ; oThis . WordControl . m _oLogicDocument . FinalizeAction ( ) } , false , false , false ) } } ; asc _docs _api . prototype . asc _doubleClickOnChart = function ( obj ) { this . isChartEditor = true ; this . asc _onOpenChartFrame ( ) ; if ( ! window [ "IS_NATIVE_EDITOR" ] ) this . WordControl . onMouseUpMainSimple ( ) ;
this . sendEvent ( "asc_doubleClickOnChart" , obj ) } ; asc _docs _api . prototype . asc _onCloseChartFrame = function ( ) { AscCommon . baseEditorsApi . prototype . asc _onCloseChartFrame . call ( this ) ; this . WordControl . m _bIsMouseLock = false } ; asc _docs _api . prototype . asc _editChartDrawingObject = function ( chartBinary ) { if ( AscFormat . isObject ( chartBinary ) ) if ( false === this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( changestype _Paragraph _Content ) ) { this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _EditChart ) ;
this . WordControl . m _oLogicDocument . EditChart ( chartBinary ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . sync _closeChartEditor = function ( ) { this . sendEvent ( "asc_onCloseChartEditor" ) } ; asc _docs _api . prototype . asc _setDrawCollaborationMarks = function ( bDraw ) { this . tmpCoMarksDraw = bDraw ; if ( ! this . isLoadFullApi ) return ; if ( bDraw !== this . isCoMarksDraw ) { this . isCoMarksDraw = bDraw ; this . WordControl . m _oDrawingDocument . ClearCachePages ( ) ; this . WordControl . m _oDrawingDocument . FirePaint ( ) } } ; asc _docs _api . prototype . asc _AddMath =
function ( Type ) { var loader = AscCommon . g _font _loader ; var fontinfo = g _fontApplication . GetFontInfo ( "Cambria Math" ) ; var isasync = loader . LoadFont ( fontinfo ) ; if ( false === isasync ) return this . asc _AddMath2 ( Type ) ; else { this . FontAsyncLoadType = 1 ; this . FontAsyncLoadParam = Type } } ; asc _docs _api . prototype . asc _AddMath2 = function ( nType ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return ; if ( ! oLogicDocument . IsSelectionLocked ( AscCommon . changestype _Paragraph _Content ) ) { oLogicDocument . StartAction ( AscDFH . historydescription _Document _AddMath ) ;
oLogicDocument . AddParaMath ( nType ) ; oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . asc _AddPageCount = function ( ) { this . WordControl . m _oLogicDocument . AddPageCount ( ) } ; asc _docs _api . prototype . asc _StartMailMerge = function ( oData ) { this . mailMergeFileData = oData ; this . asc _DownloadAs ( new Asc . asc _CDownloadOptions ( Asc . c _oAscFileType . JSON ) ) } ; asc _docs _api . prototype . asc _StartMailMergeByList = function ( aList ) { if ( ! aList || ! aList . length || aList . length <= 0 ) aList = [ [ ] ] ; var aFields = aList [ 0 ] ; if ( ! aFields || ! aFields . length || aFields . length <=
0 ) aFields = [ ] ; var UsedNames = { } ; for ( var Pos = 0 , Count = aFields . length ; Pos < Count ; Pos ++ ) { if ( "" === aFields [ Pos ] ) aFields [ Pos ] = "F" + ( Pos + 1 ) ; if ( undefined !== UsedNames [ aFields [ Pos ] ] ) { var Add = 1 ; var NewName = aFields [ Pos ] + Add ; while ( undefined !== UsedNames [ NewName ] ) { Add ++ ; NewName = aFields [ Pos ] + Add } aFields [ Pos ] = NewName } UsedNames [ aFields [ Pos ] ] = 1 } var DstList = [ ] ; var FieldsCount = aFields . length ; for ( var Index = 1 , Count = aList . length ; Index < Count ; Index ++ ) { var oSrcElement = aList [ Index ] ; var oDstElement = { } ; for ( var FieldIndex = 0 ; FieldIndex <
FieldsCount ; FieldIndex ++ ) { var sFieldName = aFields [ FieldIndex ] ; oDstElement [ sFieldName ] = oSrcElement [ FieldIndex ] } DstList . push ( oDstElement ) } this . WordControl . m _oLogicDocument . Start _MailMerge ( DstList , aFields ) } ; asc _docs _api . prototype . asc _GetReceptionsCount = function ( ) { return this . WordControl . m _oLogicDocument . Get _MailMergeReceptionsCount ( ) } ; asc _docs _api . prototype . asc _GetMailMergeFieldsNameList = function ( ) { return this . WordControl . m _oLogicDocument . Get _MailMergeFieldsNameList ( ) } ; asc _docs _api . prototype . asc _AddMailMergeField =
function ( Name ) { this . WordControl . m _oLogicDocument . Add _MailMergeField ( Name ) } ; asc _docs _api . prototype . asc _SetHighlightMailMergeFields = function ( Value ) { this . WordControl . m _oLogicDocument . Set _HightlighMailMergeFields ( Value ) } ; asc _docs _api . prototype . asc _PreviewMailMergeResult = function ( Index ) { this . WordControl . m _oLogicDocument . Preview _MailMergeResult ( Index ) } ; asc _docs _api . prototype . asc _EndPreviewMailMergeResult = function ( ) { this . WordControl . m _oLogicDocument . EndPreview _MailMergeResult ( ) } ; asc _docs _api . prototype . sync _StartMailMerge =
function ( ) { this . sendEvent ( "asc_onStartMailMerge" ) } ; asc _docs _api . prototype . sync _PreviewMailMergeResult = function ( Index ) { this . sendEvent ( "asc_onPreviewMailMergeResult" , Index ) } ; asc _docs _api . prototype . sync _EndPreviewMailMergeResult = function ( ) { this . sendEvent ( "asc_onEndPreviewMailMergeResult" ) } ; asc _docs _api . prototype . sync _HighlightMailMergeFields = function ( Value ) { this . sendEvent ( "asc_onHighlightMailMergeFields" , Value ) } ; asc _docs _api . prototype . asc _getMailMergeData = function ( ) { return this . WordControl . m _oLogicDocument . Get _MailMergeReceptionsList ( ) } ;
asc _docs _api . prototype . asc _setMailMergeData = function ( aList ) { this . asc _StartMailMergeByList ( aList ) } ; asc _docs _api . prototype . asc _sendMailMergeData = function ( oData ) { var t = this ; var actionType = Asc . c _oAscAsyncAction . SendMailMerge ; oData . put _UserId ( this . documentUserId ) ; oData . put _RecordCount ( oData . get _RecordTo ( ) - oData . get _RecordFrom ( ) + 1 ) ; var options = new Asc . asc _CDownloadOptions ( Asc . c _oAscFileType . TXT ) ; options . oMailMergeSendData = oData ; options . callback = function ( input ) { if ( null != input && "sendmm" === input [ "type" ] ) { if ( "ok" !=
input [ "status" ] ) 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 ) ; t . sync _EndAction ( Asc . c _oAscAsyncActionType . BlockInteraction , actionType ) } ; this . downloadAs ( actionType , options ) } ; asc _docs _api . prototype . asc _GetMailMergeFiledValue = function ( nIndex , sName ) { return this . WordControl . m _oLogicDocument . Get _MailMergeFieldValue ( nIndex , sName ) } ; asc _docs _api . prototype . asc _GetStyleFromFormatting =
function ( ) { return this . WordControl . m _oLogicDocument . GetStyleFromFormatting ( ) } ; asc _docs _api . prototype . asc _AddNewStyle = function ( oStyle ) { this . WordControl . m _oLogicDocument . Add _NewStyle ( oStyle ) } ; asc _docs _api . prototype . asc _RemoveStyle = function ( sName ) { this . WordControl . m _oLogicDocument . Remove _Style ( sName ) } ; asc _docs _api . prototype . asc _RemoveAllCustomStyles = function ( ) { this . WordControl . m _oLogicDocument . Remove _AllCustomStyles ( ) } ; asc _docs _api . prototype . asc _IsStyleDefault = function ( sName ) { return this . WordControl . m _oLogicDocument . Is _StyleDefault ( sName ) } ;
asc _docs _api . prototype . asc _IsDefaultStyleChanged = function ( sName ) { return this . WordControl . m _oLogicDocument . Is _DefaultStyleChanged ( sName ) } ; asc _docs _api . prototype . asc _GetStyleNameById = function ( StyleId ) { return this . WordControl . m _oLogicDocument . Get _StyleNameById ( StyleId ) } ; asc _docs _api . prototype . asc _SetTrackRevisions = function ( bTrack ) { return this . asc _SetLocalTrackRevisions ( bTrack ) } ; asc _docs _api . prototype . asc _IsTrackRevisions = function ( ) { var oLogicDocument = this . WordControl . m _oLogicDocument ; if ( ! oLogicDocument ) return false ;
return oLogicDocument . IsTrackRevisions ( ) } ; asc _docs _api . prototype . asc _SetLocalTrackRevisions = function ( bTrack ) { var oLogicDocument = this . WordControl . m _oLogicDocument ; if ( ! oLogicDocument ) return ; return oLogicDocument . SetLocalTrackRevisions ( bTrack , true ) } ; asc _docs _api . prototype . asc _GetLocalTrackRevisions = function ( ) { var oLogicDocument = this . WordControl . m _oLogicDocument ; if ( ! oLogicDocument ) return ; return oLogicDocument . GetLocalTrackRevisions ( ) } ; asc _docs _api . prototype . asc _SetGlobalTrackRevisions = function ( bTrack ) { var oLogicDocument =
this . WordControl . m _oLogicDocument ; if ( ! oLogicDocument ) return ; if ( ! oLogicDocument . IsSelectionLocked ( AscCommon . changestype _Document _Settings ) ) { oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetTrackRevisions ) ; oLogicDocument . SetGlobalTrackRevisions ( bTrack , true ) ; oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . asc _GetGlobalTrackRevisions = function ( ) { var oLogicDocument = this . WordControl . m _oLogicDocument ; if ( ! oLogicDocument ) return ; return oLogicDocument . GetGlobalTrackRevisions ( ) } ; asc _docs _api . prototype . sync _OnTrackRevisionsChange =
function ( localFlag , globalFlag , userId ) { this . sendEvent ( "asc_onOnTrackRevisionsChange" , localFlag , globalFlag , userId ) } ; asc _docs _api . prototype . sync _BeginCatchRevisionsChanges = function ( ) { this . RevisionChangesStack = [ ] } ; asc _docs _api . prototype . sync _EndCatchRevisionsChanges = function ( ) { this . sendEvent ( "asc_onShowRevisionsChange" , this . RevisionChangesStack ) } ; asc _docs _api . prototype . asc _GetRevisionsChangesStack = function ( ) { return this . RevisionChangesStack } ; asc _docs _api . prototype . sync _AddRevisionsChange = function ( Change ) { this . RevisionChangesStack . push ( Change ) } ;
asc _docs _api . prototype . asc _AcceptChanges = function ( oChange ) { if ( oChange ) this . WordControl . m _oLogicDocument . AcceptRevisionChange ( oChange ) ; else this . WordControl . m _oLogicDocument . AcceptRevisionChangesBySelection ( ) } ; asc _docs _api . prototype . asc _RejectChanges = function ( oChange ) { if ( oChange ) this . WordControl . m _oLogicDocument . RejectRevisionChange ( oChange ) ; else this . WordControl . m _oLogicDocument . RejectRevisionChangesBySelection ( ) } ; asc _docs _api . prototype . asc _HaveRevisionsChanges = function ( isCheckOwnChanges ) { if ( ! this . WordControl . m _oLogicDocument ) return false ;
return this . WordControl . m _oLogicDocument . HaveRevisionChanges ( isCheckOwnChanges ) } ; asc _docs _api . prototype . asc _HaveNewRevisionsChanges = function ( ) { return this . asc _HaveRevisionsChanges ( ) } ; asc _docs _api . prototype . asc _GetNextRevisionsChange = function ( ) { return this . WordControl . m _oLogicDocument . GetNextRevisionChange ( ) } ; asc _docs _api . prototype . asc _GetPrevRevisionsChange = function ( ) { return this . WordControl . m _oLogicDocument . GetPrevRevisionChange ( ) } ; asc _docs _api . prototype . sync _UpdateRevisionsChangesPosition = function ( X ,
Y ) { this . sendEvent ( "asc_onUpdateRevisionsChangesPosition" , X , Y ) } ; asc _docs _api . prototype . asc _AcceptAllChanges = function ( ) { this . WordControl . m _oLogicDocument . AcceptAllRevisionChanges ( ) } ; asc _docs _api . prototype . asc _RejectAllChanges = function ( ) { this . WordControl . m _oLogicDocument . RejectAllRevisionChanges ( ) } ; asc _docs _api . prototype . asc _GetTrackRevisionsReportByAuthors = function ( ) { var oResult = { } ; var oAllChanges = this . WordControl . m _oLogicDocument . TrackRevisionsManager . Get _AllChanges ( ) ; for ( var ParaId in oAllChanges ) { var arrChanges =
oAllChanges [ ParaId ] ; for ( var nIndex = 0 , nCount = arrChanges . length ; nIndex < nCount ; ++ nIndex ) { var oChange = arrChanges [ nIndex ] ; var sUserName = oChange . get _UserName ( ) ; var nDateTime = oChange . get _DateTime ( ) ; if ( ! oResult [ sUserName ] ) oResult [ sUserName ] = [ ] ; var arrUserChanges = oResult [ sUserName ] ; var nPos = 0 ; var nLen = arrUserChanges . length ; while ( nPos < nLen ) { if ( nDateTime < arrUserChanges [ nPos ] . get _DateTime ( ) ) break ; nPos ++ } arrUserChanges . splice ( nPos , 0 , oChange ) } } return oResult } ; asc _docs _api . prototype . asc _FollowRevisionMove = function ( oChange ) { var oLogicDocument =
this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return ; var sMoveId = oChange . GetMoveId ( ) ; var isFrom = oChange . GetMoveType ( ) === Asc . c _oAscRevisionsMove . MoveTo ; oLogicDocument . SelectTrackMove ( sMoveId , isFrom , true , true ) } ; 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 ( ! this . WordControl || ! this . WordControl . m _oLogicDocument ) return ; if ( AscCommon . CollaborativeEditing ) { AscCommon . CollaborativeEditing . Set _Fast ( isOn ) ; if ( window [ "AscCommon" ] . g _specialPasteHelper &&
isOn && ! AscCommon . CollaborativeEditing . Is _SingleUser ( ) ) window [ "AscCommon" ] . g _specialPasteHelper . SpecialPasteButton _Hide ( ) } } ; asc _docs _api . prototype . _onEndLoadSdk = function ( ) { AscCommon . baseEditorsApi . prototype . _onEndLoadSdk . call ( this ) ; History = AscCommon . History ; g _fontApplication = AscFonts . g _fontApplication ; PasteElementsId = AscCommon . PasteElementsId ; global _mouseEvent = AscCommon . global _mouseEvent ; this . WordControl = new AscCommonWord . CEditorPage ( this ) ; this . WordControl . Name = this . HtmlElementName ; this . CurrentTranslate =
AscCommonWord . translations _map [ "en" ] ; PasteElementsId . g _bIsDocumentCopyPaste = true ; this . CreateComponents ( ) ; this . WordControl . Init ( ) ; if ( this . tmpFontRenderingMode ) this . SetFontRenderingMode ( this . tmpFontRenderingMode ) ; 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 ) ; this . asc _setDrawCollaborationMarks ( this . tmpCoMarksDraw ) ; if ( this . isOnlyReaderMode ) this . ImageLoader . bIsAsyncLoadDocumentImages = false ; if ( this . openFileCryptBinary ) this . openFileCryptCallback ( this . openFileCryptBinary ) } ; asc _docs _api . prototype . asc _Recalculate = function ( bIsUpdateInterface ) { if ( ! this . WordControl . m _oLogicDocument ) return ; return this . WordControl . m _oLogicDocument . RecalculateFromStart ( bIsUpdateInterface ) } ;
asc _docs _api . prototype . asc _canPaste = function ( ) { if ( ! this . WordControl || ! this . WordControl . m _oLogicDocument || this . WordControl . m _oLogicDocument . Document _Is _SelectionLocked ( changestype _Paragraph _Content ) ) return false ; this . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _PasteHotKey ) ; return true } ; asc _docs _api . prototype . asc _GetBlockChainData = function ( ) { var oLogicDocument = this . WordControl . m _oLogicDocument ; if ( ! oLogicDocument ) return [ ] ; var arrFields = oLogicDocument . GetAllFormTextFields ( ) ;
var arrResult = [ ] ; for ( var nIndex = 0 , nCount = arrFields . length ; nIndex < nCount ; ++ nIndex ) { var oField = arrFields [ nIndex ] ; arrResult . push ( oField . GetValue ( ) ) } return arrResult } ; asc _docs _api . prototype . asc _SetBlockChainData = function ( arrData ) { var oLogicDocument = this . WordControl . m _oLogicDocument ; if ( ! oLogicDocument ) return [ ] ; var arrFields = oLogicDocument . GetAllFormTextFields ( ) ; var arrResult = [ ] ; for ( var nIndex = 0 , nCount = arrFields . length ; nIndex < nCount ; ++ nIndex ) { var oField = arrFields [ nIndex ] ; oField . SetValue ( arrData [ nIndex ] ?
arrData [ nIndex ] : "" ) } if ( ! this . isLongAction ( ) ) oLogicDocument . RecalculateFromStart ( ) } ; asc _docs _api . prototype . asc _RemoveContentControl = function ( Id ) { var oLogicDocument = this . WordControl . m _oLogicDocument ; if ( ! oLogicDocument ) return ; var isLocked = true ; var oContentControl = null ; if ( undefined === Id ) { var oInfo = oLogicDocument . GetSelectedElementsInfo ( { SkipTOC : true } ) ; var oInlineControl = oInfo . GetInlineLevelSdt ( ) ; var oBlockControl = oInfo . GetBlockLevelSdt ( ) ; if ( oInlineControl ) oContentControl = oInlineControl ; else if ( oBlockControl ) oContentControl =
oBlockControl } else oContentControl = AscCommon . g _oTableId . Get _ById ( Id ) ; if ( oContentControl && oContentControl . GetContentControlType ) { oLogicDocument . RemoveSelection ( ) ; oContentControl . SelectContentControl ( ) ; if ( oContentControl . IsFixedForm ( ) ) { var oShape = oContentControl . GetFixedFormWrapperShape ( ) ; if ( ! oShape || ! ( oShape . parent instanceof AscCommonWord . ParaDrawing ) ) return ; oLogicDocument . Select _DrawingObject ( oShape . parent . GetId ( ) ) ; if ( ! oLogicDocument . IsSelectionLocked ( AscCommon . changestype _Remove ) ) { oLogicDocument . StartAction ( AscDFH . historydescription _Document _RemoveContentControl ) ;
oLogicDocument . Remove ( - 1 , true , false , false , false ) ; oLogicDocument . Recalculate ( ) ; oLogicDocument . UpdateInterface ( ) ; oLogicDocument . UpdateSelection ( ) ; oLogicDocument . FinalizeAction ( ) } return } if ( c _oAscSdtLevelType . Block === oContentControl . GetContentControlType ( ) ) isLocked = oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _None , { Type : AscCommon . changestype _2 _ElementsArray _and _Type , Elements : [ oContentControl ] , CheckType : AscCommon . changestype _ContentControl _Remove } ) ; else if ( c _oAscSdtLevelType . Inline ===
oContentControl . GetContentControlType ( ) ) { var oParagraph = oContentControl . GetParagraph ( ) ; if ( oParagraph ) isLocked = oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _None , { Type : AscCommon . changestype _2 _ElementsArray _and _Type , Elements : [ oParagraph ] , CheckType : AscCommon . changestype _Remove } ) } Id = oContentControl . GetId ( ) } if ( false === isLocked ) { oLogicDocument . StartAction ( AscDFH . historydescription _Document _RemoveContentControl ) ; oLogicDocument . RemoveContentControl ( Id ) ; oLogicDocument . Recalculate ( ) ; oLogicDocument . UpdateInterface ( ) ;
oLogicDocument . UpdateSelection ( ) ; oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . asc _RemoveContentControlWrapper = function ( Id ) { var oLogicDocument = this . WordControl . m _oLogicDocument ; if ( ! oLogicDocument ) return ; var isLocked = true ; var oContentControl = oLogicDocument . GetContentControl ( Id ) ; if ( oContentControl && oContentControl . GetContentControlType ) { if ( c _oAscSdtLevelType . Block === oContentControl . GetContentControlType ( ) ) isLocked = oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _None , { Type : AscCommon . changestype _2 _ElementsArray _and _Type ,
Elements : [ oContentControl ] , CheckType : AscCommon . changestype _ContentControl _Remove } ) ; else if ( c _oAscSdtLevelType . Inline === oContentControl . GetContentControlType ( ) ) { var oParagraph = oContentControl . GetParagraph ( ) ; if ( oParagraph ) { var oState = oLogicDocument . SaveDocumentState ( ) ; oContentControl . SelectContentControl ( ) ; isLocked = oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _None , { Type : AscCommon . changestype _2 _ElementsArray _and _Type , Elements : [ oParagraph ] , CheckType : AscCommon . changestype _Remove } ) ;
oLogicDocument . LoadDocumentState ( oState ) } } Id = oContentControl . GetId ( ) } if ( false === isLocked ) { oLogicDocument . StartAction ( AscDFH . historydescription _Document _RemoveContentControlWrapper ) ; oLogicDocument . RemoveContentControlWrapper ( Id ) ; oLogicDocument . Recalculate ( ) ; oLogicDocument . UpdateInterface ( ) ; oLogicDocument . UpdateSelection ( ) ; oLogicDocument . FinalizeAction ( ) ; return true } return false } ; asc _docs _api . prototype . asc _SetContentControlProperties = function ( oContentControlPr , Id , isApplyToAll ) { var oLogicDocument = this . private _GetLogicDocument ( ) ;
if ( ! oLogicDocument ) return ; function preSetup ( ) { oLogicDocument . StartAction ( AscDFH . historydescription _Document _ChangeContentControlProperties ) ; AscFonts . IsCheckSymbols = true } function postSetup ( ) { AscFonts . IsCheckSymbols = false ; AscFonts . FontPickerByCharacter . checkText ( "" , oLogicDocument , function ( ) { this . Recalculate ( ) ; this . UpdateInterface ( ) ; this . UpdateSelection ( ) ; this . FinalizeAction ( ) } , false , false , false ) } if ( true === isApplyToAll ) { var arrContentControls = oLogicDocument . GetAllContentControls ( ) ; var arrCheckElements =
[ ] , arrCheckTypes = [ ] ; for ( var nIndex = 0 , nCount = arrContentControls . length ; nIndex < nCount ; ++ nIndex ) { var oContentControl = arrContentControls [ nIndex ] ; if ( c _oAscSdtLevelType . Block === oContentControl . GetContentControlType ( ) ) { arrCheckElements . push ( oContentControl ) ; arrCheckTypes . push ( AscCommon . changestype _ContentControl _Properties ) } else if ( c _oAscSdtLevelType . Inline === oContentControl . GetContentControlType ( ) ) { var oParagraph = oContentControl . GetParagraph ( ) ; if ( oParagraph ) { arrCheckElements . push ( oParagraph ) ; arrCheckTypes . push ( AscCommon . changestype _Paragraph _Properties ) } } } if ( false ===
oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _None , { Type : AscCommon . changestype _2 _Element _and _Type _Array , Elements : arrCheckElements , CheckTypes : arrCheckTypes } ) ) { preSetup ( ) ; for ( var nIndex = 0 , nCount = arrContentControls . length ; nIndex < nCount ; ++ nIndex ) arrContentControls [ nIndex ] . SetContentControlPr ( oContentControlPr ) ; postSetup ( ) } } else { var isLocked = true ; var oContentControl = oLogicDocument . GetContentControl ( Id ) ; if ( oContentControl && oContentControl . GetContentControlType ) { if ( ( Asc . c _oAscSdtLockType . ContentLocked ===
oContentControl . GetContentControlLock ( ) || Asc . c _oAscSdtLockType . SdtContentLocked === oContentControl . GetContentControlLock ( ) ) && oContentControlPr && Asc . c _oAscSdtLockType . Unlocked !== oContentControlPr . GetLock ( ) && Asc . c _oAscSdtLockType . SdtLocked !== oContentControlPr . GetLock ( ) ) if ( oContentControl . IsDatePicker ( ) && ! oContentControl . GetDatePickerPr ( ) . IsEqual ( oContentControlPr . DateTimePr ) ) oContentControlPr . DateTimePr = oContentControl . GetDatePickerPr ( ) . Copy ( ) ; if ( c _oAscSdtLevelType . Block === oContentControl . GetContentControlType ( ) ) isLocked =
oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _None , { Type : AscCommon . changestype _2 _ElementsArray _and _Type , Elements : [ oContentControl ] , CheckType : AscCommon . changestype _ContentControl _Properties } ) ; else if ( c _oAscSdtLevelType . Inline === oContentControl . GetContentControlType ( ) ) { var oParagraph = oContentControl . GetParagraph ( ) ; if ( oParagraph ) isLocked = oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _None , { Type : AscCommon . changestype _2 _ElementsArray _and _Type , Elements : [ oParagraph ] ,
CheckType : AscCommon . changestype _Paragraph _Properties } ) } } if ( false === isLocked ) { preSetup ( ) ; oContentControl . SetContentControlPr ( oContentControlPr ) ; postSetup ( ) } } } ; asc _docs _api . prototype . asc _IsContentControl = function ( ) { var oLogicDocument = this . WordControl . m _oLogicDocument ; if ( ! oLogicDocument ) return false ; var oCC = oLogicDocument . GetContentControl ( ) ; return oCC && ! oCC . IsContentControlEquation ( ) } ; asc _docs _api . prototype . asc _GetContentControlProperties = function ( ) { var oLogicDocument = this . WordControl . m _oLogicDocument ;
if ( ! oLogicDocument ) return null ; var oContentControl = oLogicDocument . GetContentControl ( ) ; return oContentControl && ! oContentControl . IsContentControlEquation ( ) ? oContentControl . GetContentControlPr ( ) : null } ; asc _docs _api . prototype . asc _GetCurrentContentControl = function ( ) { var oLogicDocument = this . WordControl . m _oLogicDocument ; if ( ! oLogicDocument ) return null ; var oContentControl = oLogicDocument . GetContentControl ( ) ; return oContentControl && ! oContentControl . IsContentControlEquation ( ) ? oContentControl . GetId ( ) : null } ; asc _docs _api . prototype . sync _ContentControlCallback =
function ( oContentControlPr ) { this . SelectedObjectsStack [ this . SelectedObjectsStack . length ] = new asc _CSelectedObject ( c _oAscTypeSelectElement . ContentControl , oContentControlPr ) } ; asc _docs _api . prototype . asc _ClearContentControl = function ( sId ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return ; var oContentControl = oLogicDocument . GetContentControl ( sId ) ; if ( ! oContentControl ) return ; oLogicDocument . RemoveSelection ( ) ; oContentControl . SelectContentControl ( ) ; oContentControl . SkipSpecialContentControlLock ( true ) ;
if ( ! oLogicDocument . IsSelectionLocked ( AscCommon . changestype _Paragraph _Content , undefined , false , oLogicDocument . IsFormFieldEditing ( ) ) ) { oLogicDocument . StartAction ( AscDFH . historydescription _Document _ClearContentControl ) ; oContentControl . ClearContentControlExt ( ) ; oLogicDocument . Recalculate ( ) ; oLogicDocument . UpdateInterface ( ) ; oLogicDocument . UpdateSelection ( ) ; oLogicDocument . FinalizeAction ( ) } oContentControl . SkipSpecialContentControlLock ( false ) } ; asc _docs _api . prototype . asc _GetContentControlRightAnchorPosition = function ( sId ) { var oLogicDocument =
this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return null ; var oContentControl = oLogicDocument . GetContentControl ( sId ) ; if ( ! oContentControl ) return null ; var oAnchor = oContentControl . GetBoundingPolygonAnchorPoint ( ) ; if ( ! oAnchor || oAnchor . Page < 0 ) return null ; var nX = oAnchor . X ; var nY = oAnchor . Y ; if ( oAnchor . Transform ) { nX = oAnchor . Transform . TransformPointX ( oAnchor . X , oAnchor . Y ) ; nY = oAnchor . Transform . TransformPointY ( oAnchor . X , oAnchor . Y ) } var oRealCoords = oLogicDocument . GetDrawingDocument ( ) . ConvertCoordsToCursorWR ( nX ,
nY , oAnchor . Page ) ; return [ oRealCoords . X , oRealCoords . Y ] } ; asc _docs _api . prototype . asc _SetGlobalContentControlHighlightColor = function ( r , g , b ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument || ! oLogicDocument . CanPerformAction ( ) ) return ; if ( undefined === r || null == r ) { r = 220 ; g = 220 ; b = 220 } oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetGlobalSdtHighlightColor ) ; oLogicDocument . SetSdtGlobalColor ( r , g , b ) ; oLogicDocument . GetDrawingDocument ( ) . ClearCachePages ( ) ; oLogicDocument . GetDrawingDocument ( ) . FirePaint ( ) ;
oLogicDocument . FinalizeAction ( ) } ; asc _docs _api . prototype . sync _OnChangeSdtGlobalSettings = function ( ) { this . sendEvent ( "asc_onChangeSdtGlobalSettings" ) } ; asc _docs _api . prototype . asc _GetGlobalContentControlHighlightColor = function ( isDefault ) { if ( true === isDefault ) return new Asc . asc _CColor ( 220 , 220 , 220 ) ; var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return new Asc . asc _CColor ( 0 , 0 , 0 ) ; var oColor = oLogicDocument . GetSdtGlobalColor ( ) ; return new Asc . asc _CColor ( oColor . r , oColor . g , oColor . b ) } ; asc _docs _api . prototype . asc _SetGlobalContentControlShowHighlight =
function ( isShow , r , g , b ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument || ! oLogicDocument . CanPerformAction ( ) ) return ; oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetGlobalSdtShowHighlight ) ; oLogicDocument . SetSdtGlobalShowHighlight ( isShow ) ; if ( undefined !== r && undefined !== g && undefined !== b ) oLogicDocument . SetSdtGlobalColor ( r , g , b ) ; oLogicDocument . Redraw ( ) ; oLogicDocument . FinalizeAction ( ) } ; asc _docs _api . prototype . asc _GetGlobalContentControlShowHighlight = function ( ) { var oLogicDocument =
this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return false ; return oLogicDocument . GetSdtGlobalShowHighlight ( ) } ; asc _docs _api . prototype . asc _SetContentControlCheckBoxPr = function ( oPr ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument || ! oPr ) return ; var oContentControl = oLogicDocument . GetContentControl ( ) ; if ( ! oContentControl || ! oContentControl . IsCheckBox ( ) ) return ; if ( oContentControl . IsForm ( ) && oPr ) { if ( oPr . GroupKey ) { oPr . CheckedSymbol = 9673 ; oPr . UncheckedSymbol = 9675 } else { oPr . CheckedSymbol =
9745 ; oPr . UncheckedSymbol = 9744 } oPr . CheckedFont = "Segoe UI Symbol" ; oPr . UncheckedFont = "Segoe UI Symbol" } if ( oPr . CheckedSymbol ) AscFonts . FontPickerByCharacter . getFontBySymbol ( oPr . CheckedSymbol ) ; if ( oPr . UncheckedSymbol ) AscFonts . FontPickerByCharacter . getFontBySymbol ( oPr . UncheckedSymbol ) ; var oFonts = { } ; if ( oPr . CheckedFont ) oFonts [ oPr . CheckedFont ] = true ; if ( oPr . UncheckedFont ) oFonts [ oPr . UncheckedFont ] = true ; AscCommon . Check _LoadingDataBeforePrepaste ( this , oFonts , { } , function ( ) { var oParagraph = oContentControl . GetParagraph ( ) ;
if ( oParagraph && ! oLogicDocument . IsSelectionLocked ( AscCommon . changestype _None , { Type : AscCommon . changestype _2 _ElementsArray _and _Type , Elements : [ oParagraph ] , CheckType : AscCommon . changestype _Paragraph _Properties } ) ) { oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetContentControlCheckBoxPr ) ; oContentControl . ApplyCheckBoxPr ( oPr ) ; oLogicDocument . Recalculate ( ) ; oLogicDocument . UpdateTracks ( ) ; oLogicDocument . FinalizeAction ( ) } } ) } ; asc _docs _api . prototype . asc _SetContentControlCheckBoxChecked = function ( isChecked ,
sId ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return ; var oContentControl = oLogicDocument . GetContentControl ( sId ) ; if ( ! oContentControl || ! oContentControl . IsCheckBox ( ) ) return ; oContentControl . SkipSpecialContentControlLock ( true ) ; if ( ! oContentControl . CanBeEdited ( ) ) { oContentControl . SkipSpecialContentControlLock ( false ) ; return } var isLocked = false ; if ( c _oAscSdtLevelType . Block === oContentControl . GetContentControlType ( ) ) isLocked = oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _None ,
{ Type : AscCommon . changestype _2 _ElementsArray _and _Type , Elements : [ oContentControl ] , CheckType : AscCommon . changestype _Paragraph _AddText } , false , oLogicDocument . IsFormFieldEditing ( ) ) ; else if ( c _oAscSdtLevelType . Inline === oContentControl . GetContentControlType ( ) ) { var oParagraph = oContentControl . GetParagraph ( ) ; if ( oParagraph ) { var oState = oLogicDocument . SaveDocumentState ( ) ; oContentControl . SelectContentControl ( ) ; isLocked = oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _None , { Type : AscCommon . changestype _2 _ElementsArray _and _Type ,
Elements : [ oParagraph ] , CheckType : AscCommon . changestype _Paragraph _AddText } , false , oLogicDocument . IsFormFieldEditing ( ) ) ; oLogicDocument . LoadDocumentState ( oState ) } } oContentControl . SkipSpecialContentControlLock ( false ) ; if ( ! isLocked ) { oLogicDocument . StartAction ( AscDFH . historydescription _Document _SelectContentControlListItem ) ; oContentControl . ToggleCheckBox ( isChecked ) ; oLogicDocument . RemoveSelection ( ) ; oContentControl . MoveCursorToContentControl ( true ) ; oLogicDocument . Recalculate ( ) ; oLogicDocument . UpdateInterface ( ) ;
oLogicDocument . UpdateTracks ( ) ; oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . asc _IsContentControlCheckBoxChecked = function ( sId ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return false ; var oContentControl = oLogicDocument . GetContentControl ( sId ) ; if ( ! oContentControl || ! oContentControl . IsCheckBox ( ) ) return false ; return oContentControl . IsCheckBoxChecked ( ) } ; asc _docs _api . prototype . asc _SetContentControlPictureUrl = function ( sUrl , sId , sToken ) { if ( this . WordControl && this . WordControl . m _oDrawingDocument ) this . WordControl . m _oDrawingDocument . UnlockCursorType ( ) ;
var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument || AscCommon . isNullOrEmptyString ( sUrl ) ) return ; var oCC = oLogicDocument . GetContentControl ( sId ) ; oCC . SkipSpecialContentControlLock ( true ) ; if ( ! oCC || ! oCC . IsPicture ( ) || ! oCC . SelectPicture ( ) || ! oCC . CanBeEdited ( ) ) { oCC . SkipSpecialContentControlLock ( false ) ; return } if ( ! oLogicDocument . IsSelectionLocked ( AscCommon . changestype _Image _Properties , undefined , false , oLogicDocument . IsFormFieldEditing ( ) ) ) { oCC . SkipSpecialContentControlLock ( false ) ; var oImagePr =
{ ImageUrl : sUrl } ; var sImageUrl = null , fReplaceCallback = null , sImageToDownLoad = "" ; if ( ! g _oDocumentUrls . getImageLocal ( sUrl ) ) { sImageUrl = sUrl ; fReplaceCallback = function ( sUrl ) { oImagePr . ImageUrl = sUrl ; sImageToDownLoad = sUrl } } sImageToDownLoad = sUrl ; var oApi = this ; var fApplyCallback = function ( ) { var fPropsCallback = function ( _img ) { if ( _img && _img . Image && oImagePr ) { var oDrawingObjects = oApi . WordControl . m _oLogicDocument . DrawingObjects ; if ( oDrawingObjects && oDrawingObjects . selectedObjects [ 0 ] ) { var dWidth = oDrawingObjects . selectedObjects [ 0 ] . extX ;
var dHeight = oDrawingObjects . selectedObjects [ 0 ] . extY ; var _ _w = Math . max ( _img . Image . width * AscCommon . g _dKoef _pix _to _mm , 1 ) ; var _ _h = Math . max ( _img . Image . height * AscCommon . g _dKoef _pix _to _mm , 1 ) ; var fKoeff = 1 / Math . max ( _ _w / dWidth , _ _h / dHeight ) ; var _w = Math . max ( 5 , _ _w * fKoeff ) ; var _h = Math . max ( 5 , _ _h * fKoeff ) ; oImagePr . Width = _w ; oImagePr . Height = _h } } oApi . WordControl . m _oLogicDocument . StartAction ( AscDFH . historydescription _Document _ApplyImagePrWithUrl ) ; oApi . WordControl . m _oLogicDocument . SetImageProps ( oImagePr ) ; oCC . SetShowingPlcHdr ( false ) ;
if ( oCC . IsPictureForm ( ) ) { oCC . UpdatePictureFormLayout ( ) ; var oShape = oCC . GetFixedFormWrapperShape ( ) ; if ( oShape && oShape . parent instanceof AscCommonWord . ParaDrawing ) oApi . WordControl . m _oLogicDocument . Select _DrawingObject ( oShape . parent . GetId ( ) ) } oApi . WordControl . m _oLogicDocument . UpdateTracks ( ) ; oApi . WordControl . m _oLogicDocument . FinalizeAction ( ) } ; var _img = oApi . ImageLoader . LoadImage ( sImageToDownLoad , 1 ) ; if ( null != _img ) fPropsCallback ( _img ) ; else oApi . asyncImageEndLoaded2 = function ( _img ) { fPropsCallback ( _img ) } } ; if ( sImageUrl ) { if ( window [ "AscDesktopEditor" ] &&
window [ "AscDesktopEditor" ] [ "IsLocalFile" ] ( ) ) { var _url = window [ "AscDesktopEditor" ] [ "LocalFileGetImageUrl" ] ( sImageToDownLoad ) ; _url = g _oDocumentUrls . getImageUrl ( _url ) ; fReplaceCallback ( _url ) ; fApplyCallback ( ) ; return } AscCommon . sendImgUrls ( this , [ sImageToDownLoad ] , function ( data ) { if ( data && data [ 0 ] && data [ 0 ] . url !== "error" ) { fReplaceCallback ( data [ 0 ] . url ) ; fApplyCallback ( ) } } , false , undefined , sToken ) } else fApplyCallback ( ) } else oCC . SkipSpecialContentControlLock ( false ) } ; asc _docs _api . prototype . asc _SetContentControlListPr =
function ( oPr , sId ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return ; var isLocked = true ; var oContentControl = oLogicDocument . GetContentControl ( sId ) ; if ( ! oContentControl || ! oContentControl . IsComboBox ( ) && ! oContentControl . DropDownList ( ) ) return ; if ( c _oAscSdtLevelType . Block === oContentControl . GetContentControlType ( ) ) isLocked = oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _None , { Type : AscCommon . changestype _2 _ElementsArray _and _Type , Elements : [ oContentControl ] , CheckType : AscCommon . changestype _ContentControl _Properties } ) ;
else if ( c _oAscSdtLevelType . Inline === oContentControl . GetContentControlType ( ) ) { var oParagraph = oContentControl . GetParagraph ( ) ; if ( oParagraph ) isLocked = oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _None , { Type : AscCommon . changestype _2 _ElementsArray _and _Type , Elements : [ oParagraph ] , CheckType : AscCommon . changestype _Paragraph _Properties } ) } if ( false === isLocked ) { oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetContentControlListPr ) ; if ( oContentControl . IsComboBox ( ) ) oContentControl . SetComboBoxPr ( oPr ) ;
else oContentControl . SetDropDownListPr ( oPr ) ; oLogicDocument . UpdateInterface ( ) ; oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . asc _SelectContentControlListItem = function ( sValue , sId ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return ; var oContentControl = oLogicDocument . GetContentControl ( sId ) ; if ( ! oContentControl || ! oContentControl . IsComboBox ( ) && ! oContentControl . IsDropDownList ( ) ) return ; oContentControl . SkipSpecialContentControlLock ( true ) ; if ( ! oContentControl . CanBeEdited ( ) ) { oContentControl . SkipSpecialContentControlLock ( false ) ;
return } var isLocked = false ; if ( c _oAscSdtLevelType . Block === oContentControl . GetContentControlType ( ) ) isLocked = oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _None , { Type : AscCommon . changestype _2 _ElementsArray _and _Type , Elements : [ oContentControl ] , CheckType : AscCommon . changestype _Paragraph _AddText } , false , oLogicDocument . IsFormFieldEditing ( ) ) ; else if ( c _oAscSdtLevelType . Inline === oContentControl . GetContentControlType ( ) ) { var oParagraph = oContentControl . GetParagraph ( ) ; if ( oParagraph ) { var oState = oLogicDocument . SaveDocumentState ( ) ;
oContentControl . SelectContentControl ( ) ; isLocked = oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _None , { Type : AscCommon . changestype _2 _ElementsArray _and _Type , Elements : [ oParagraph ] , CheckType : AscCommon . changestype _Paragraph _AddText } , false , oLogicDocument . IsFormFieldEditing ( ) ) ; oLogicDocument . LoadDocumentState ( oState ) } } oContentControl . SkipSpecialContentControlLock ( false ) ; if ( ! isLocked ) { oLogicDocument . StartAction ( AscDFH . historydescription _Document _SelectContentControlListItem ) ; oContentControl . SelectListItem ( sValue ) ;
oLogicDocument . RemoveSelection ( ) ; oContentControl . MoveCursorToContentControl ( true ) ; oLogicDocument . Recalculate ( ) ; oLogicDocument . UpdateInterface ( ) ; oLogicDocument . UpdateTracks ( ) ; oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . asc _GetContentControlListCurrentValue = function ( sId ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return null ; var oContentControl = oLogicDocument . GetContentControl ( sId ) ; if ( ! oContentControl || ! oContentControl . IsComboBox ( ) && ! oContentControl . IsDropDownList ( ) ||
oContentControl . IsPlaceHolder ( ) ) return null ; var oState = oLogicDocument . SaveDocumentState ( ) ; oLogicDocument . RemoveSelection ( ) ; oContentControl . SelectContentControl ( ) ; var oList = oContentControl . IsDropDownList ( ) ? oContentControl . GetDropDownListPr ( ) : oContentControl . GetComboBoxPr ( ) ; var nIndex = oList . FindByText ( oContentControl . GetSelectedText ( ) ) ; if ( - 1 === nIndex ) return undefined ; var sValue = oList . GetItemValue ( nIndex ) ; oLogicDocument . LoadDocumentState ( oState ) ; return sValue } ; asc _docs _api . prototype . asc _SetContentControlDatePickerPr =
function ( oPr , sId ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return ; var isLocked = true ; var oContentControl = oLogicDocument . GetContentControl ( sId ) ; if ( ! oContentControl || ! oContentControl . IsDatePicker ( ) ) return ; if ( c _oAscSdtLevelType . Block === oContentControl . GetContentControlType ( ) ) isLocked = oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _None , { Type : AscCommon . changestype _2 _ElementsArray _and _Type , Elements : [ oContentControl ] , CheckType : AscCommon . changestype _ContentControl _Properties } ,
false , oLogicDocument . IsFormFieldEditing ( ) ) ; else if ( c _oAscSdtLevelType . Inline === oContentControl . GetContentControlType ( ) ) { var oParagraph = oContentControl . GetParagraph ( ) ; if ( oParagraph ) isLocked = oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _None , { Type : AscCommon . changestype _2 _ElementsArray _and _Type , Elements : [ oParagraph ] , CheckType : AscCommon . changestype _Paragraph _Properties } , false , oLogicDocument . IsFormFieldEditing ( ) ) } if ( false === isLocked ) { oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetContentControlListPr ) ;
oContentControl . ApplyDatePickerPr ( oPr ) ; oLogicDocument . Recalculate ( ) ; oLogicDocument . UpdateInterface ( ) ; oLogicDocument . UpdateTracks ( ) ; oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . asc _SetContentControlDatePickerDate = function ( oPr , sId ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return ; var oContentControl = oLogicDocument . GetContentControl ( sId ) ; if ( ! oContentControl || ! oContentControl . IsDatePicker ( ) || ! oContentControl . CanBeEdited ( ) ) return ; this . asc _SetContentControlDatePickerPr ( oPr ,
sId ) } ; asc _docs _api . prototype . asc _SetContentControlTextPlaceholder = function ( sText , sId ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return ; var oContentControl = oLogicDocument . GetContentControl ( sId ) ; if ( ! oContentControl ) return ; oLogicDocument . SetContentControlTextPlaceholder ( sText , oContentControl ) } ; asc _docs _api . prototype . asc _SetContentControlText = function ( sText , sId ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return ; var oContentControl = oLogicDocument . GetContentControl ( sId ) ;
if ( ! oContentControl ) return ; oLogicDocument . SetContentControlText ( sText , oContentControl ) } ; asc _docs _api . prototype . asc _GetTextFormKeys = function ( ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; return oLogicDocument ? oLogicDocument . GetFormKeys ( { Text : true , ComboBox : true , DropDownList : true } ) : [ ] } ; asc _docs _api . prototype . asc _GetPictureFormKeys = function ( ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; return oLogicDocument ? oLogicDocument . GetFormKeys ( { Picture : true } ) : [ ] } ; asc _docs _api . prototype . asc _GetCheckBoxFormKeys =
function ( ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; return oLogicDocument ? oLogicDocument . GetFormKeys ( { CheckBox : true } ) : [ ] } ; asc _docs _api . prototype . asc _GetRadioButtonGroupKeys = function ( ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; return oLogicDocument ? oLogicDocument . GetFormKeys ( { RadioGroup : true } ) : [ ] } ; asc _docs _api . prototype . asc _ClearAllSpecialForms = function ( ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return ; oLogicDocument . ClearAllSpecialForms ( ) } ; asc _docs _api . prototype . asc _SetSpecialFormsHighlightColor =
function ( r , g , b ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument || ! oLogicDocument . CanPerformAction ( ) ) return ; oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetGlobalSdtHighlightColor ) ; if ( undefined === r || null == r ) oLogicDocument . SetSpecialFormsHighlight ( null ) ; else oLogicDocument . SetSpecialFormsHighlight ( r , g , b ) ; oLogicDocument . GetDrawingDocument ( ) . ClearCachePages ( ) ; oLogicDocument . GetDrawingDocument ( ) . FirePaint ( ) ; oLogicDocument . FinalizeAction ( ) } ; asc _docs _api . prototype . asc _GetSpecialFormsHighlightColor =
function ( ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return null ; var oColor = oLogicDocument . GetSpecialFormsHighlight ( ) ; return oColor ? new Asc . asc _CColor ( oColor . r , oColor . g , oColor . b ) : null } ; asc _docs _api . prototype . sync _OnChangeSpecialFormsGlobalSettings = function ( ) { this . sendEvent ( "asc_onChangeSpecialFormsGlobalSettings" ) } ; asc _docs _api . prototype . asc _SetPerformContentControlActionByClick = function ( isPerform ) { } ; asc _docs _api . prototype . asc _GetTextFormAutoWidth = function ( sId ) { var oLogicDocument =
this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return ; var oContentControl = oLogicDocument . GetContentControl ( sId ) ; if ( ! oContentControl || ! oContentControl . IsTextForm ( ) || ! oContentControl . IsInlineLevel ( ) ) return null ; var oRun = oContentControl . GetFirstRun ( ) ; if ( ! oRun ) return null ; return AscCommon . MMToTwips ( oRun . GetTextFormAutoWidth ( ) ) } ; asc _docs _api . prototype . asc _GetFormsCountByKey = function ( sKey ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return 0 ; return oLogicDocument . GetSpecialFormsByKey ( sKey ) . length } ;
asc _docs _api . prototype . asc _MoveToFillingForm = function ( isNext , isRequired , isNotFilled ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return ; if ( true === isRequired ) { var oStartCC = oLogicDocument . GetContentControl ( ) ; var oDocState = oLogicDocument . SaveDocumentState ( false ) ; var oPrevCC = null , oCurCC ; while ( 1 ) { oLogicDocument . MoveToFillingForm ( isNext ) ; oCurCC = oLogicDocument . GetContentControl ( ) ; if ( ! oCurCC || oCurCC === oStartCC || oCurCC === oPrevCC ) { oLogicDocument . LoadDocumentState ( oDocState ) ; break } if ( oCurCC . IsForm ( ) &&
oCurCC . IsFormRequired ( ) && ! oCurCC . IsCheckBox ( ) && ( true !== isNotFilled || ! oCurCC . IsFormFilled ( ) ) ) break ; if ( ! oStartCC ) oStartCC = oCurCC ; oPrevCC = oCurCC } } else oLogicDocument . MoveToFillingForm ( isNext ) ; oLogicDocument . UpdateSelection ( ) ; oLogicDocument . UpdateInterface ( ) } ; asc _docs _api . prototype . asc _IsAllRequiredFormsFilled = function ( ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return true ; return oLogicDocument . IsAllRequiredSpecialFormsFilled ( ) } ; asc _docs _api . prototype . sync _OnAllRequiredFormsFilled =
function ( isFilled ) { this . sendEvent ( "sync_onAllRequiredFormsFilled" , isFilled ) } ; asc _docs _api . prototype . asc _SetFixedForm = function ( sId , isFixed ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return ; oLogicDocument . ConvertFormFixedType ( sId , isFixed ) } ; asc _docs _api . prototype . asc _IsHighlightRequiredFields = function ( ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return false ; return oLogicDocument . IsHighlightRequiredFields ( ) } ; asc _docs _api . prototype . asc _SetHighlightRequiredFields =
function ( isHighlight ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return ; oLogicDocument . SetHighlightRequiredFields ( isHighlight ) ; oLogicDocument . DrawingDocument . ClearCachePages ( ) ; oLogicDocument . DrawingDocument . FirePaint ( ) } ; asc _docs _api . prototype . asc _UncheckContentControlButtons = function ( ) { var _controls = this . WordControl && this . WordControl . m _oDrawingDocument && this . WordControl . m _oDrawingDocument . contentControls ? this . WordControl . m _oDrawingDocument . contentControls . ContentControlObjects :
[ ] ; if ( _controls . length === 0 ) return ; if ( ! window [ "IS_NATIVE_EDITOR" ] && AscCommon . global _mouseEvent . IsLocked ) this . WordControl . onMouseUpMainSimple ( ) ; for ( var i = 0 ; i < _controls . length ; i ++ ) { _controls [ i ] . ActiveButtonIndex = - 2 ; _controls [ i ] . HoverButtonIndex = - 2 } this . WordControl . ShowOverlay ( ) ; this . WordControl . StartUpdateOverlay ( ) ; this . WordControl . OnUpdateOverlay ( ) ; this . WordControl . EndUpdateOverlay ( ) } ; asc _docs _api . prototype . asc _BeginViewModeInReview = function ( isFinal ) { this . asc _SetDisplayModeInReview ( isFinal ? Asc . c _oAscDisplayModeInReview . Final :
Asc . c _oAscDisplayModeInReview . Original ) } ; asc _docs _api . prototype . asc _EndViewModeInReview = function ( ) { this . asc _SetDisplayModeInReview ( Asc . c _oAscDisplayModeInReview . Edit ) } ; asc _docs _api . prototype . asc _SetDisplayModeInReview = function ( nMode ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( oLogicDocument ) oLogicDocument . SetDisplayModeInReview ( nMode ) } ; asc _docs _api . prototype . asc _GetDisplayModeInReview = function ( ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( oLogicDocument ) return oLogicDocument . GetDisplayModeInReview ( ) ;
return Asc . c _oAscDisplayModeInReview . Edit } ; asc _docs _api . prototype . asc _ShowDocumentOutline = function ( ) { var oLogicDocument = this . WordControl . m _oLogicDocument ; if ( ! oLogicDocument ) return ; oLogicDocument . DocumentOutline . SetUse ( true ) ; return oLogicDocument . DocumentOutline } ; asc _docs _api . prototype . asc _HideDocumentOutline = function ( ) { var oLogicDocument = this . WordControl . m _oLogicDocument ; if ( ! oLogicDocument ) return ; oLogicDocument . DocumentOutline . SetUse ( false ) } ; asc _docs _api . prototype . sync _OnDocumentOutlineUpdate = function ( ) { this . sendEvent ( "asc_onDocumentOutlineUpdate" ) } ;
asc _docs _api . prototype . sync _OnDocumentOutlineCurrentPosition = function ( nIndex ) { this . sendEvent ( "asc_onDocumentOutlineCurrentPosition" , nIndex ) } ; asc _docs _api . prototype . sync _OnDocumentOutlineUpdateAdd = function ( nIndex ) { this . sendEvent ( "asc_onDocumentOutlineUpdateAdd" , nIndex ) } ; asc _docs _api . prototype . sync _OnDocumentOutlineUpdateChange = function ( nIndex ) { this . sendEvent ( "asc_onDocumentOutlineUpdateChange" , nIndex ) } ; asc _docs _api . prototype . sync _OnDocumentOutlineUpdateRemove = function ( nIndex ) { this . sendEvent ( "asc_onDocumentOutlineUpdateRemove" ,
nIndex ) } ; asc _docs _api . prototype . asc _AddTableOfContents = function ( sHeading , oPr ) { var sReplacementText = AscCommon . translateManager . getValue ( "No table of contents entries found." ) ; AscFonts . FontPickerByCharacter . checkText ( sHeading + sReplacementText , this , function ( ) { var oLogicDocument = this . WordControl . m _oLogicDocument ; if ( ! oLogicDocument ) return ; var oTOC = oLogicDocument . GetTableOfContents ( ) ; if ( oTOC instanceof AscCommonWord . CBlockLevelSdt && oTOC . IsBuiltInUnique ( ) ) { if ( oPr ) this . asc _SetTableOfContentsPr ( oPr ) ; return } this . WordControl . m _oLogicDocument . AddTableOfContents ( sHeading ,
oPr ) } ) } ; asc _docs _api . prototype . asc _RemoveTableOfContents = function ( oTOC ) { var oLogicDocument = this . WordControl . m _oLogicDocument ; if ( ! oLogicDocument ) return ; if ( ! oTOC ) { oTOC = oLogicDocument . GetTableOfContents ( ) ; if ( ! oTOC ) return } if ( oTOC instanceof AscCommonWord . CBlockLevelSdt ) this . asc _RemoveContentControl ( oTOC . GetId ( ) ) ; else if ( oTOC instanceof AscCommonWord . CComplexField ) { var oCF = oTOC ; oTOC = null ; var oBeginChar = oCF . GetBeginChar ( ) ; if ( oBeginChar && oBeginChar . GetRun ( ) ) { var oParentCCs = oBeginChar . GetRun ( ) . GetParentContentControls ( ) ;
for ( var nIndex = 0 , nCount = oParentCCs . length ; nIndex < nCount ; ++ nIndex ) if ( oParentCCs [ nIndex ] . IsBlockLevel ( ) && oParentCCs [ nIndex ] . IsBuiltInTableOfContents ( ) ) { oTOC = oParentCCs [ nIndex ] ; break } } if ( oTOC ) this . asc _RemoveContentControl ( oTOC . GetId ( ) ) ; else this . asc _RemoveComplexField ( oCF ) } } ; asc _docs _api . prototype . asc _GetTableOfContentsPr = function ( isCurrent ) { var oLogicDocument = this . WordControl . m _oLogicDocument ; if ( ! oLogicDocument ) return ; var oTOC = oLogicDocument . GetTableOfContents ( isCurrent ) ; if ( ! oTOC ) return ; if ( oTOC instanceof
AscCommonWord . CBlockLevelSdt ) { var oInnerTOC = oTOC . GetInnerTableOfContents ( ) ; if ( ! ( oInnerTOC instanceof AscCommonWord . CComplexField ) ) { var oPr = new Asc . CTableOfContentsPr ; oPr . InitFromSdtTOC ( oTOC ) ; return oPr } oTOC = oInnerTOC } if ( oTOC instanceof AscCommonWord . CComplexField ) { var oPr = new Asc . CTableOfContentsPr ; oPr . InitFromTOCInstruction ( oTOC ) ; oPr . CheckStylesType ( oLogicDocument . GetStyles ( ) ) ; return oPr } return null } ; asc _docs _api . prototype . asc _SetTableOfContentsPr = function ( oPr ) { if ( ! ( oPr instanceof Asc . CTableOfContentsPr ) ) return ;
var oLogicDocument = this . WordControl . m _oLogicDocument ; if ( ! oLogicDocument ) return ; var oTOC = oPr . ComplexField ; if ( ! oTOC ) { oTOC = oLogicDocument . GetTableOfContents ( ) ; if ( ! oTOC ) return } if ( oTOC instanceof AscCommonWord . CBlockLevelSdt ) { var oInnerTOC = oTOC . GetInnerTableOfContents ( ) ; if ( ! oInnerTOC ) { oLogicDocument . AddTableOfContents ( null , oPr , oTOC ) ; return } oTOC = oInnerTOC } if ( ! oTOC ) return ; var oStyles = oLogicDocument . GetStyles ( ) ; var nStylesType = oPr . get _StylesType ( ) ; var isTOF = oPr . get _Caption ( ) !== undefined ; var isNeedChangeStyles =
false ; if ( isTOF ) isNeedChangeStyles = Asc . c _oAscTOFStylesType . Current !== nStylesType && nStylesType !== oStyles . GetTOFStyleType ( ) ; else isNeedChangeStyles = Asc . c _oAscTOCStylesType . Current !== nStylesType && nStylesType !== oStyles . GetTOCStylesType ( ) ; oTOC . SelectField ( ) ; var isLocked = true ; if ( isNeedChangeStyles ) isLocked = oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _Paragraph _Content , { Type : AscCommon . changestype _2 _AdditionalTypes , Types : [ AscCommon . changestype _Document _Styles ] } ) ; else isLocked = oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _Paragraph _Content ) ;
if ( ! isLocked ) { oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetComplexFieldPr ) ; if ( isNeedChangeStyles ) if ( isTOF ) oStyles . SetTOFStyleType ( nStylesType ) ; else oStyles . SetTOCStylesType ( nStylesType ) ; oTOC . SetPr ( oPr ) ; oTOC . Update ( ) ; oLogicDocument . Recalculate ( ) ; oLogicDocument . UpdateInterface ( ) ; oLogicDocument . UpdateSelection ( ) ; oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . asc _UpdateTableOfContents = function ( isUpdatePageNumbers , oTOC ) { var oLogicDocument = this . WordControl . m _oLogicDocument ;
if ( ! oLogicDocument ) return ; if ( ! oTOC ) { oTOC = oLogicDocument . GetTableOfContents ( ) ; if ( ! oTOC ) return } if ( oTOC instanceof AscCommonWord . CBlockLevelSdt ) oTOC = oTOC . GetInnerTableOfContents ( ) ; if ( ! oTOC ) return ; var oState = oLogicDocument . SaveDocumentState ( ) ; oTOC . SelectField ( ) ; if ( isUpdatePageNumbers ) { if ( false === oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _Paragraph _Content ) ) { oLogicDocument . StartAction ( AscDFH . historydescription _Document _UpdateTableOfContents ) ; var arrParagraphs = oLogicDocument . GetCurrentParagraph ( false ,
true ) ; for ( var nParaIndex = 0 , nParasCount = arrParagraphs . length ; nParaIndex < nParasCount ; ++ nParaIndex ) { var arrPageNumbers = arrParagraphs [ nParaIndex ] . GetComplexFieldsArrayByType ( AscCommonWord . fieldtype _PAGEREF ) ; for ( var nRefIndex = 0 , nRefsCount = arrPageNumbers . length ; nRefIndex < nRefsCount ; ++ nRefIndex ) arrPageNumbers [ nRefIndex ] . Update ( ) } oLogicDocument . LoadDocumentState ( oState ) ; oLogicDocument . Recalculate ( ) ; oLogicDocument . UpdateInterface ( ) ; oLogicDocument . UpdateSelection ( ) ; oLogicDocument . FinalizeAction ( ) } } else if ( false ===
oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _Document _Content ) ) { oLogicDocument . StartAction ( AscDFH . historydescription _Document _UpdateTableOfContents ) ; oTOC . Update ( ) ; oLogicDocument . LoadDocumentState ( oState ) ; oLogicDocument . Recalculate ( ) ; oLogicDocument . UpdateInterface ( ) ; oLogicDocument . UpdateSelection ( ) ; oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . asc _CanUpdateTablesOfFigures = function ( ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; var aTOF = oLogicDocument . GetAllTablesOfFigures ( true ) ;
return aTOF . length > 0 } ; asc _docs _api . prototype . asc _UpdateTablesOfFigures = function ( ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; var aTOF = oLogicDocument . GetAllTablesOfFigures ( true ) ; if ( aTOF . length === 0 ) return ; var oApi = this ; var fCallback = function ( isUpdatePageNumbers ) { var oTOF = aTOF . pop ( ) ; if ( oTOF ) oApi . asc _UpdateTableOfContents ( isUpdatePageNumbers , oTOF ) ; if ( aTOF . length > 0 ) { aTOF [ aTOF . length - 1 ] . SelectField ( ) ; oApi . sendEvent ( "asc_onAscTOFUpdate" , fCallback ) } } ; aTOF [ aTOF . length - 1 ] . SelectField ( ) ; oApi . sendEvent ( "asc_onAscTOFUpdate" ,
fCallback ) } ; asc _docs _api . prototype . asc _AddTableOfFigures = function ( oPr ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; var oApi = this ; if ( ! oLogicDocument ) return ; var sCaption = oPr . get _CaptionForInstruction ( ) ; var aTOF , oTOF , nIndex , sInstrCaption ; var oTOFToReplace = null ; var oInstruction ; aTOF = oLogicDocument . GetAllTablesOfFigures ( true ) ; if ( aTOF . length > 0 ) oTOFToReplace = aTOF [ 0 ] ; if ( ! oTOFToReplace ) { aTOF = oLogicDocument . GetAllTablesOfFigures ( ) ; if ( aTOF . length > 0 ) if ( typeof sCaption === "string" && sCaption . length > 0 ) for ( nIndex =
0 ; nIndex < aTOF . length ; ++ nIndex ) { oTOF = aTOF [ nIndex ] ; oInstruction = oTOF . GetInstruction ( ) ; if ( ! oInstruction ) continue ; sInstrCaption = oInstruction . GetCaptionOnlyText ( ) || oInstruction . GetCaption ( ) ; if ( sInstrCaption === sCaption ) { oTOFToReplace = oTOF ; break } } } if ( oTOFToReplace ) { var oState = oLogicDocument . SaveDocumentState ( ) ; oTOFToReplace . SelectFieldValue ( ) ; this . sendEvent ( "asc_onAscReplaceCurrentTOF" , function ( bReplace ) { if ( ! bReplace ) { oLogicDocument . MoveCursorRight ( false , false , false ) ; oLogicDocument . AddTableOfFigures ( oPr ) } else { oPr . ComplexField =
oTOFToReplace ; oLogicDocument . LoadDocumentState ( oState ) ; oApi . asc _SetTableOfContentsPr ( oPr ) } } ) } else oLogicDocument . AddTableOfFigures ( oPr ) } ; asc _docs _api . prototype . asc _GetTableOfFiguresPr = function ( ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return null ; var aTOF = oLogicDocument . GetAllTablesOfFigures ( true ) ; if ( aTOF . length > 0 ) { var oPr = new Asc . CTableOfContentsPr ; oPr . InitFromTOCInstruction ( aTOF [ 0 ] ) ; oPr . CheckStylesType ( oLogicDocument . GetStyles ( ) ) ; return oPr } return null } ; asc _docs _api . prototype . asc _GetCurrentComplexField =
function ( ) { var oLogicDocument = this . WordControl . m _oLogicDocument ; if ( ! oLogicDocument ) return ; return oLogicDocument . GetCurrentComplexField ( ) } ; asc _docs _api . prototype . asc _UpdateComplexField = function ( oComplexField ) { var oLogicDocument = this . WordControl . m _oLogicDocument ; if ( ! oLogicDocument || ! ( oComplexField instanceof AscCommonWord . CComplexField || oComplexField instanceof AscCommonWord . ParaPageNum || oComplexField instanceof AscCommonWord . ParaPageCount ) ) return ; if ( oComplexField instanceof AscCommonWord . ParaPageNum ||
oComplexField instanceof AscCommonWord . ParaPageCount ) { var oRun = oComplexField . GetParent ( ) ; if ( ! oRun ) return ; var nInRunPos = oRun . GetElementPosition ( oComplexField ) ; if ( - 1 === nInRunPos ) return ; var oParagraph = oRun . GetParagraph ( ) ; if ( ! oParagraph ) return ; if ( false === oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _None , { Type : AscCommon . changestype _2 _ElementsArray _and _Type , Elements : [ oParagraph ] , CheckType : AscCommon . changestype _Paragraph _Content } ) ) { oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetComplexFieldPr ) ;
oRun . RemoveFromContent ( nInRunPos , 1 ) ; oRun . AddToContent ( nInRunPos , oComplexField instanceof AscCommonWord . ParaPageNum ? new AscCommonWord . ParaPageNum : new AscCommonWord . ParaPageCount ( oLogicDocument . GetPagesCount ( ) ) ) ; oLogicDocument . Recalculate ( ) ; oLogicDocument . UpdateInterface ( ) ; oLogicDocument . UpdateSelection ( ) ; oLogicDocument . FinalizeAction ( ) } } else { oComplexField . SelectField ( ) ; if ( false === oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _Paragraph _Content ) ) { oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetComplexFieldPr ) ;
oComplexField . Update ( ) ; oLogicDocument . Recalculate ( ) ; oLogicDocument . UpdateInterface ( ) ; oLogicDocument . UpdateSelection ( ) ; oLogicDocument . FinalizeAction ( ) } } } ; asc _docs _api . prototype . asc _RemoveComplexField = function ( oComplexField ) { var oLogicDocument = this . WordControl . m _oLogicDocument ; if ( ! oComplexField || ! oLogicDocument ) return ; if ( oComplexField instanceof AscCommonWord . ParaPageNum || oComplexField instanceof AscCommonWord . ParaPageCount ) { var oRun = oComplexField . GetParent ( ) ; if ( ! oRun ) return ; var nInRunPos = oRun . GetElementPosition ( oComplexField ) ;
if ( - 1 === nInRunPos ) return ; var oParagraph = oRun . GetParagraph ( ) ; if ( ! oParagraph ) return ; if ( false === oLogicDocument . Document _Is _SelectionLocked ( { Type : AscCommon . changestype _2 _ElementsArray _and _Type , Elements : [ oParagraph ] , CheckType : AscCommon . changestype _Paragraph _Content } ) ) { oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetComplexFieldPr ) ; oRun . RemoveFromContent ( nInRunPos , 1 ) ; oLogicDocument . Recalculate ( ) ; oLogicDocument . UpdateInterface ( ) ; oLogicDocument . UpdateSelection ( ) ; oLogicDocument . FinalizeAction ( ) } } else { oComplexField . SelectField ( ) ;
if ( false === oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _Remove ) ) { oLogicDocument . StartAction ( AscDFH . historydescription _Document _RemoveComplexField ) ; oComplexField . RemoveField ( ) ; oLogicDocument . Recalculate ( ) ; oLogicDocument . UpdateInterface ( ) ; oLogicDocument . UpdateSelection ( ) ; oLogicDocument . FinalizeAction ( ) } } } ; asc _docs _api . prototype . asc _SetComplexFieldPr = function ( oComplexField , oPr , isUpdate ) { var oLogicDocument = this . WordControl . m _oLogicDocument ; if ( ! oLogicDocument || ! oPr || ! ( oComplexField instanceof
AscCommonWord . CComplexField || oComplexField instanceof AscCommonWord . ParaPageNum || oComplexField instanceof AscCommonWord . ParaPageCount ) ) return ; if ( oComplexField instanceof AscCommonWord . ParaPageNum || oComplexField instanceof AscCommonWord . ParaPageCount ) return ; oComplexField . SelectField ( ) ; if ( false === oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _Paragraph _Content ) ) { oLogicDocument . StartAction ( AscDFH . historydescription _Document _SetComplexFieldPr ) ; oComplexField . SetPr ( oPr ) ; if ( isUpdate ) oComplexField . Update ( ) ;
oLogicDocument . Recalculate ( ) ; oLogicDocument . UpdateInterface ( ) ; oLogicDocument . UpdateSelection ( ) ; oLogicDocument . FinalizeAction ( ) } } ; asc _docs _api . prototype . asc _AddTableFormula = function ( sFormula ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return ; oLogicDocument . AddTableCellFormula ( sFormula ) } ; asc _docs _api . prototype . asc _GetTableFormula = function ( ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return "=" ; return oLogicDocument . GetTableCellFormula ( ) } ; asc _docs _api . prototype . asc _GetTableFormulaFormats =
function ( ) { return [ "#,##0" , "#,##0.00" , "$#,##0.00;($#,##0.00)" , "0" , "0%" , "0.00" , "0.00%" ] } ; asc _docs _api . prototype . asc _ParseTableFormulaInstrLine = function ( sInstrLine ) { return this . WordControl . m _oLogicDocument . ParseTableFormulaInstrLine ( sInstrLine ) } ; asc _docs _api . prototype . asc _CreateInstructionLine = function ( sFormula , sFormat ) { var sRet = sFormula ; if ( typeof sFormat === "string" && sFormat . length > 0 ) sRet += ' \\# "' + sFormat + '"' ; return sRet } ; asc _docs _api . prototype . asc _addDateTime = function ( oPr ) { var sTextForCheck = null ; if ( ! oPr . get _Update ( ) ) sTextForCheck =
oPr . get _String ( ) ; var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( sTextForCheck ) AscFonts . FontPickerByCharacter . checkText ( sTextForCheck , this , function ( ) { oLogicDocument . AddDateTime ( oPr ) } ) ; else oLogicDocument . AddDateTime ( oPr ) } ; asc _docs _api . prototype . asc _AddObjectCaption = function ( oPr ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return ; oLogicDocument . AddCaption ( oPr ) } ; asc _docs _api . prototype . asc _GetBookmarksManager = function ( ) { var oLogicDocument = this . WordControl . m _oLogicDocument ;
if ( ! oLogicDocument ) return null ; var oManager = oLogicDocument . GetBookmarksManager ( ) ; oManager . Update ( ) ; return oManager } ; asc _docs _api . prototype . asc _OnBookmarksUpdate = function ( ) { this . sendEvent ( "asc_onBookmarksUpdate" ) } ; asc _docs _api . prototype . asc _GetHeadingLevel = function ( sStyleName ) { var oLogicDocument = this . WordControl . m _oLogicDocument ; if ( ! oLogicDocument || ! sStyleName ) return - 1 ; return oLogicDocument . GetStyles ( ) . GetHeadingLevelByName ( sStyleName ) } ; asc _docs _api . prototype . asc _GetStylesArray = function ( ) { var oLogicDocument =
this . WordControl . m _oLogicDocument ; if ( ! oLogicDocument ) return [ ] ; return oLogicDocument . GetStyles ( ) . GetAscStylesArray ( ) } ; asc _docs _api . prototype . asc _getAllUsedParagraphStyles = function ( ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return [ ] ; var aStyles = oLogicDocument . GetAllUsedParagraphStyles ( ) ; var aAscStyles = [ ] ; for ( var nStyle = 0 ; nStyle < aStyles . length ; ++ nStyle ) aAscStyles . push ( aStyles [ nStyle ] . ToAscStyle ( ) ) ; return aAscStyles } ; 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 _SetFirstLetterAutoCorrectExceptions =
function ( arrExceptions ) { var oLogicDocument = this . WordControl . m _oLogicDocument ; if ( ! oLogicDocument ) return ; return oLogicDocument . SetFirstLetterAutoCorrectExceptions ( arrExceptions ) } ; asc _docs _api . prototype . asc _GetFirstLetterAutoCorrectExceptions = function ( ) { var oLogicDocument = this . WordControl . m _oLogicDocument ; if ( ! oLogicDocument ) return [ ] ; return oLogicDocument . GetFirstLetterAutoCorrectExceptions ( ) } ; asc _docs _api . prototype . asc _GetSelectedText = function ( ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return null ;
return oLogicDocument . GetSelectedText ( false ) } ; asc _docs _api . prototype . asc _AddBlankPage = function ( ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return null ; oLogicDocument . AddBlankPage ( ) } ; 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 ) } ; asc _docs _api . prototype . sync _OnConvertEquationToMath = function ( oEquation ) { this . sendEvent ( "asc_onConvertEquationToMath" , oEquation ) } ; asc _docs _api . prototype . asc _ConvertEquationToMath = function ( oEquation , isAll ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; var loader = AscCommon . g _font _loader ; var fontinfo = g _fontApplication . GetFontInfo ( "Cambria Math" ) ; var isasync = loader . LoadFont ( fontinfo , function ( ) { oLogicDocument . ConvertEquationToMath ( oEquation ,
isAll ) } , this ) ; if ( false === isasync ) oLogicDocument . ConvertEquationToMath ( oEquation , isAll ) } ; asc _docs _api . prototype . asc _GetAllNumberedParagraphs = function ( ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; return oLogicDocument . GetAllNumberedParagraphs ( ) } ; asc _docs _api . prototype . asc _AddCrossRefToParagraph = function ( oParagraph , nType , bHyperlink , bAboveBelow , sSeparator ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; oLogicDocument . AddRefToParagraph ( oParagraph , nType , bHyperlink , bAboveBelow , sSeparator ) } ; asc _docs _api . prototype . asc _GetAllHeadingParagraphs =
function ( ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; var arrOutline = [ ] ; oLogicDocument . GetOutlineParagraphs ( arrOutline , { SkipEmptyParagraphs : true , OutlineStart : 1 , OutlineEnd : 9 } ) ; var aParagraphs = [ ] ; for ( var nIndex = 0 ; nIndex < arrOutline . length ; ++ nIndex ) aParagraphs . push ( arrOutline [ nIndex ] . Paragraph ) ; return aParagraphs } ; asc _docs _api . prototype . asc _AddCrossRefToBookmark = function ( sName , nType , bHyperlink , bAboveBelow , sSeparator ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; oLogicDocument . AddRefToBookmark ( sName ,
nType , bHyperlink , bAboveBelow , sSeparator ) } ; asc _docs _api . prototype . asc _GetAllFootNoteParagraphs = function ( ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; return oLogicDocument . GetFootNotesFirstParagraphs ( ) } ; asc _docs _api . prototype . asc _AddCrossRefToNote = function ( oParagraph , nType , bHyperlink , bAboveBelow ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; oLogicDocument . AddNoteRefToParagraph ( oParagraph , nType , bHyperlink , bAboveBelow ) } ; asc _docs _api . prototype . asc _GetAllEndNoteParagraphs = function ( ) { var oLogicDocument =
this . private _GetLogicDocument ( ) ; return oLogicDocument . GetEndNotesFirstParagraphs ( ) } ; asc _docs _api . prototype . asc _GetAllCaptionParagraphs = function ( sCaption ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; return oLogicDocument . GetAllCaptionParagraphs ( sCaption ) } ; asc _docs _api . prototype . asc _AddCrossRefToCaption = function ( sCaption , oParagraph , nType , bHyperlink , bAboveBelow ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; oLogicDocument . AddRefToCaption ( sCaption , oParagraph , nType , bHyperlink , bAboveBelow ) } ;
asc _docs _api . prototype . asc _ChangeTextCase = function ( nType ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return ; oLogicDocument . ChangeTextCase ( nType ) } ; 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 ( ) ; this . DocumentType = 2 ; this . LoadedObjectDS =
this . WordControl . m _oLogicDocument . CopyStyle ( ) ; g _oIdCounter . Set _Load ( true ) ; var openParams = { checkFileSize : false , charCount : 0 , parCount : 0 } ; var oBinaryFileReader = new AscCommonWord . BinaryFileReader ( this . WordControl . m _oLogicDocument , openParams ) ; if ( undefined !== version ) AscCommon . CurFileVersion = version ; if ( oBinaryFileReader . Read ( base64File ) ) { g _oIdCounter . Set _Load ( false ) ; this . LoadedObject = 1 } else this . sendEvent ( "asc_onError" , c _oAscError . ID . MobileUnexpectedCharCount , c _oAscError . Level . Critical ) ; if ( window [ "NATIVE_EDITOR_ENJINE" ] ===
true && undefined != window [ "native" ] ) { AscCommon . CDocsCoApi . prototype . askSaveChanges = function ( callback ) { callback ( { "saveLock" : false } ) } ; AscCommon . CDocsCoApi . prototype . saveChanges = function ( arrayChanges , deleteIndex , excelAdditionalInfo ) { if ( window [ "native" ] [ "SaveChanges" ] ) window [ "native" ] [ "SaveChanges" ] ( arrayChanges . join ( '","' ) , deleteIndex , arrayChanges . length ) } } if ( undefined != window [ "Native" ] ) return ; this . DocumentOrientation = null == editor . WordControl . m _oLogicDocument ? true : ! editor . WordControl . m _oLogicDocument . Orientation ;
var sizeMM ; if ( this . DocumentOrientation ) sizeMM = DocumentPageSize . getSize ( AscCommon . Page _Width , AscCommon . Page _Height ) ; else sizeMM = DocumentPageSize . getSize ( AscCommon . Page _Height , AscCommon . Page _Width ) ; this . sync _DocSizeCallback ( sizeMM . w _mm , sizeMM . h _mm ) ; this . sync _PageOrientCallback ( editor . get _DocumentOrientation ( ) ) ; if ( this . GenerateNativeStyles !== undefined ) { this . GenerateNativeStyles ( ) ; if ( this . WordControl . m _oDrawingDocument . CheckTableStylesOne !== undefined ) this . WordControl . m _oDrawingDocument . CheckTableStylesOne ( ) } } ;
window [ "asc_docs_api" ] . prototype [ "asc_nativeCalculateFile" ] = function ( options ) { if ( null == this . WordControl . m _oLogicDocument ) return ; var Document = this . WordControl . m _oLogicDocument ; if ( window [ "NATIVE_EDITOR_ENJINE" ] === undefined && this . isApplyChangesOnOpenEnabled ) { this . isApplyChangesOnOpenEnabled = false ; if ( 1 === AscCommon . CollaborativeEditing . m _nUseType ) { this . isApplyChangesOnOpen = true ; AscCommon . CollaborativeEditing . Apply _Changes ( ) ; AscCommon . CollaborativeEditing . Release _Locks ( ) ; return } } Document . MoveCursorToStartPos ( ) ;
if ( window [ "IS_NATIVE_EDITOR" ] ) Document . RecalculateFromStart ( ) ; else { var pagescount = undefined ; if ( options && options [ "printOptions" ] && options [ "printOptions" ] [ "onlyFirstPage" ] ) pagescount = 1 ; Document . RecalculateAllAtOnce ( true , pagescount ) } Document . Document _UpdateInterfaceState ( ) ; Document . Document _UpdateSelectionState ( ) ; this . ShowParaMarks = false } ; window [ "asc_docs_api" ] . prototype [ "asc_nativeApplyChanges" ] = function ( changes ) { this . _coAuthoringSetChanges ( changes , new AscCommonWord . CDocumentColor ( 191 , 255 , 199 ) ) ; AscCommon . CollaborativeEditing . Apply _OtherChanges ( ) } ;
window [ "asc_docs_api" ] . prototype . asc _SetSilentMode = function ( bEnabled , bAddition ) { if ( ! this . WordControl . m _oLogicDocument ) return ; if ( bEnabled ) this . WordControl . m _oLogicDocument . Start _SilentMode ( ) ; else this . WordControl . m _oLogicDocument . End _SilentMode ( bAddition ) } ; 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 _color = new AscCommonWord . CDocumentColor ( 191 , 255 , 199 ) ; var _count =
stream . 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 oBinaryFileWriter = new AscCommonWord . BinaryFileWriter ( this . WordControl . m _oLogicDocument ) ;
return oBinaryFileWriter . Write ( ) } ; window [ "asc_docs_api" ] . prototype [ "asc_nativeGetFile2" ] = function ( ) { var oBinaryFileWriter = new AscCommonWord . BinaryFileWriter ( this . WordControl . m _oLogicDocument ) ; return oBinaryFileWriter . Write ( true , true ) } ; window [ "asc_docs_api" ] . prototype . asc _nativeGetFile3 = function ( ) { var oBinaryFileWriter = new AscCommonWord . BinaryFileWriter ( this . WordControl . m _oLogicDocument ) ; return { data : oBinaryFileWriter . Write ( true , true ) , header : AscCommon . c _oSerFormat . Signature + ";v" + Asc . c _nVersionNoBase64 +
";" + oBinaryFileWriter . memory . GetCurPosition ( ) + ";" } } ; window [ "asc_docs_api" ] . prototype [ "asc_nativeGetFileData" ] = function ( ) { var oBinaryFileWriter = new AscCommonWord . BinaryFileWriter ( this . WordControl . m _oLogicDocument ) ; var _memory = oBinaryFileWriter . memory ; oBinaryFileWriter . Write ( true ) ; var _header = AscCommon . c _oSerFormat . Signature + ";v" + Asc . c _nVersionNoBase64 + ";" + _memory . GetCurPosition ( ) + ";" ; window [ "native" ] [ "Save_End" ] ( _header , _memory . GetCurPosition ( ) ) ; return _memory . ImData . data } ; window [ "asc_docs_api" ] . prototype [ "asc_nativeGetHtml" ] =
function ( ) { var _old = PasteElementsId . copyPasteUseBinary ; PasteElementsId . copyPasteUseBinary = false ; this . WordControl . m _oLogicDocument . SelectAll ( ) ; var oCopyProcessor = new AscCommon . CopyProcessor ( this ) ; oCopyProcessor . Start ( ) ; var _ret = '<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body>' + oCopyProcessor . getInnerHtml ( ) + "</body></html>" ; this . WordControl . m _oLogicDocument . RemoveSelection ( ) ; PasteElementsId . copyPasteUseBinary = _old ; return _ret } ; window [ "asc_docs_api" ] . prototype [ "asc_AddHtml" ] =
function ( _iframeId ) { var ifr = document . getElementById ( _iframeId ) ; var frameWindow = window . frames [ _iframeId ] ; if ( frameWindow ) if ( null != frameWindow . document && null != frameWindow . document . body && this . WordControl . m _oLogicDocument . CanPerformAction ( ) ) { ifr . style . display = "block" ; this . WordControl . m _oLogicDocument . StartAction ( ) ; this . asc _SetSilentMode ( true ) ; AscCommon . Editor _Paste _Exec ( this , AscCommon . c _oAscClipboardDataFormat . HtmlElement , frameWindow . document . body , ifr ) ; this . WordControl . m _oLogicDocument . FinalizeAction ( ) ;
this . asc _SetSilentMode ( false ) } if ( ifr ) document . body . removeChild ( ifr ) } ; 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 ; if ( isSelection ) _drawing _document . GenerateSelectionPrint ( ) ;
var _drawing _document _print = _drawing _document . printedDocument ? _drawing _document . printedDocument . DrawingDocument : _drawing _document ; var pagescount = Math . min ( _drawing _document _print . m _lPagesCount , _drawing _document _print . m _lCountCalculatePages ) ; window [ "AscDesktopEditor" ] [ "Print_Start" ] ( this . DocumentUrl , pagescount , "" , _drawing _document . printedDocument ? 0 : 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 ; for ( var i = 0 ; i < pagescount ; i ++ ) { oDocRenderer . Memory . Seek ( 0 ) ; oDocRenderer . VectorMemoryForPrint . ClearNoAttack ( ) ; var page = _drawing _document _print . m _arrPages [ i ] ; oDocRenderer . BeginPage ( page . width _mm , page . height _mm ) ; _drawing _document _print . m _oLogicDocument . DrawPage ( i , oDocRenderer ) ; oDocRenderer . EndPage ( ) ; window [ "AscDesktopEditor" ] [ "Print_Page" ] ( oDocRenderer . Memory . GetBase64Memory ( ) , page . width _mm , page . height _mm ) } this . ShowParaMarks =
bOldShowMarks ; _drawing _document . printedDocument = null ; window [ "AscDesktopEditor" ] [ "Print_End" ] ( ) } return } var page = this . WordControl . m _oDrawingDocument . m _arrPages [ _page ] ; _printer . BeginPage ( page . width _mm , page . height _mm ) ; this . WordControl . m _oLogicDocument . DrawPage ( _page , _printer ) ; _printer . EndPage ( ) } ; window [ "asc_docs_api" ] . prototype [ "asc_nativePrintPagesCount" ] = function ( ) { return this . WordControl . m _oDrawingDocument . m _lPagesCount } ; 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 ; 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 [ "Add_Text" ] = function ( _text ) { this . WordControl . m _oLogicDocument . TextBox _Put ( _text ) } ; window [ "asc_docs_api" ] . prototype [ "Add_NewParagraph" ] = function ( ) { var LogicDocument = this . WordControl . m _oLogicDocument ; if ( false === LogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _Document _Content _Add ) ) { LogicDocument . StartAction ( AscDFH . historydescription _Document _EnterButton ) ; LogicDocument . AddNewParagraph ( true ) ; LogicDocument . FinalizeAction ( ) } } ;
window [ "asc_docs_api" ] . prototype [ "Cursor_MoveLeft" ] = function ( ) { this . WordControl . m _oLogicDocument . MoveCursorLeft ( ) } ; window [ "asc_docs_api" ] . prototype [ "Cursor_MoveRight" ] = function ( ) { this . WordControl . m _oLogicDocument . MoveCursorRight ( ) } ; window [ "asc_docs_api" ] . prototype [ "Cursor_MoveUp" ] = function ( ) { this . WordControl . m _oLogicDocument . MoveCursorUp ( ) } ; window [ "asc_docs_api" ] . prototype [ "Cursor_MoveDown" ] = function ( ) { this . WordControl . m _oLogicDocument . MoveCursorDown ( ) } ; window [ "asc_docs_api" ] . prototype [ "Get_DocumentRecalcId" ] =
function ( ) { return this . WordControl . m _oLogicDocument . RecalcId } ; window [ "asc_docs_api" ] . prototype [ "asc_IsSpellCheckCurrentWord" ] = function ( ) { return this . IsSpellCheckCurrentWord } ; window [ "asc_docs_api" ] . prototype [ "asc_putSpellCheckCurrentWord" ] = function ( value ) { this . IsSpellCheckCurrentWord = value } ; window [ "asc_docs_api" ] . prototype [ "asc_setParagraphStylesSizes" ] = function ( width , height ) { if ( window [ "AscCommon" ] && window [ "AscCommon" ] . GlobalSkin ) { AscCommon . GlobalSkin . STYLE _THUMBNAIL _WIDTH = width ; AscCommon . GlobalSkin . STYLE _THUMBNAIL _HEIGHT =
height } else { AscCommon . TEMP _STYLE _THUMBNAIL _WIDTH = width ; AscCommon . TEMP _STYLE _THUMBNAIL _HEIGHT = height } } ; asc _docs _api . prototype . SetDrawImagePlaceContents = function ( id , props ) { if ( this . WordControl . m _oDrawingDocument ) this . WordControl . m _oDrawingDocument . SetDrawImagePlaceContents ( id , props ) } ; asc _docs _api . prototype . SetDrawImagePlaceTableOfFigures = function ( id , props ) { if ( this . WordControl . m _oDrawingDocument ) this . WordControl . m _oDrawingDocument . SetDrawImagePlaceTableOfFigures ( id , props ) } ; asc _docs _api . prototype . SetDrawImagePreviewMargins =
function ( id , props ) { if ( this . WordControl . m _oDrawingDocument ) this . WordControl . m _oDrawingDocument . SetDrawImagePreviewMargins ( id , props ) } ; asc _docs _api . prototype . SetDrawImagePreviewBullet = function ( id , props , level , is _multi _level ) { if ( this . WordControl . m _oDrawingDocument ) this . WordControl . m _oDrawingDocument . SetDrawImagePreviewBullet ( id , props , level , is _multi _level ) } ; asc _docs _api . prototype . SetDrawImagePreviewBulletChangeListLevel = function ( id , props ) { if ( this . WordControl . m _oDrawingDocument ) this . WordControl . m _oDrawingDocument . SetDrawImagePreviewBulletChangeListLevel ( id ,
props ) } ; asc _docs _api . prototype . asc _PreConvertTextToTable = function ( oProps ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return ; return oLogicDocument . GetConvertTextToTableProps ( oProps ) } ; asc _docs _api . prototype . asc _ConvertTextToTable = function ( oProps ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return ; return oLogicDocument . ConvertTextToTable ( oProps ) } ; asc _docs _api . prototype . asc _ConvertTableToText = function ( sep _type , sep , nested ) { var oLogicDocument = this . private _GetLogicDocument ( ) ;
if ( ! oLogicDocument ) return ; return oLogicDocument . ConvertTableToText ( { type : sep _type , separator : sep , nested : nested } ) } ; asc _docs _api . prototype . SetDrawImagePreviewBulletForMenu = function ( id , type ) { if ( this . WordControl . m _oDrawingDocument ) this . WordControl . m _oDrawingDocument . SetDrawImagePreviewBulletForMenu ( id , type ) } ; 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 ( ) } ; window [ "asc_docs_api" ] . prototype [ "asc_getButtonsTOC" ] = function ( id1 , id2 ) { if ( this . WordControl && this . WordControl . m _oDrawingDocument ) this . WordControl . m _oDrawingDocument . GetTOC _Buttons ( id1 , id2 ) } ; 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 ) ; this . UpdateInterfaceState ( ) ; oLogicDocument . FinalizeAction ( true ) } } ; asc _docs _api . prototype . asc _isCompatibilityMode = function ( ) { if ( null !== this . WordControl . m _oLogicDocument ) return AscCommon . document _compatibility _mode _Word15 !== this . WordControl . m _oLogicDocument . GetCompatibilityMode ( ) ; return false } ; asc _docs _api . prototype . asc _Remove = function ( ) { var oDocument = this . private _GetLogicDocument ( ) ; if ( oDocument ) { var oController =
oDocument . DrawingObjects ; if ( oController ) { oController . resetChartElementsSelection ( ) ; AscCommon . baseEditorsApi . prototype . asc _Remove . call ( this ) } } } ; asc _docs _api . prototype . onUpdateRestrictions = function ( ) { if ( this . WordControl ) this . WordControl . checkMouseHandMode ( ) ; var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return ; if ( this . WordControl && this . WordControl . m _oDrawingDocument ) { var contentControls = this . WordControl . m _oDrawingDocument . contentControls ; if ( contentControls && contentControls . ContentControlObjects . length !==
0 ) { contentControls . clearAttack ( ) ; oLogicDocument . UpdateSelection ( ) } } var oHistory = oLogicDocument . GetHistory ( ) ; if ( this . isRestrictionSignatures ( ) && oHistory && ! oHistory . Have _Changes ( ) ) { oHistory . Clear ( ) ; oLogicDocument . UpdateInterface ( ) } if ( this . isDrawTablePen || this . isDrawTableErase ) { this . isDrawTablePen && this . sync _TableDrawModeCallback ( false ) ; this . isDrawTableErase && this . sync _TableEraseModeCallback ( false ) ; oLogicDocument . UpdateCursorType ( oLogicDocument . CurPos . RealX , oLogicDocument . CurPos . RealY , oLogicDocument . CurPage ,
new AscCommon . CMouseEventHandler ) } else if ( true === this . isMarkerFormat ) { this . sync _MarkerFormatCallback ( false ) ; oLogicDocument . UpdateCursorType ( oLogicDocument . CurPos . RealX , oLogicDocument . CurPos . RealY , oLogicDocument . CurPage , new AscCommon . CMouseEventHandler ) } else if ( c _oAscFormatPainterState . kOff !== this . isPaintFormat ) { this . sync _PaintFormatCallback ( c _oAscFormatPainterState . kOff ) ; oLogicDocument . UpdateCursorType ( oLogicDocument . CurPos . RealX , oLogicDocument . CurPos . RealY , oLogicDocument . CurPage , new AscCommon . CMouseEventHandler ) } else if ( this . isStartAddShape ) { this . sync _StartAddShapeCallback ( false ) ;
this . sync _EndAddShape ( ) ; oLogicDocument . DrawingObjects . endTrackNewShape ( ) ; oLogicDocument . UpdateCursorType ( oLogicDocument . CurPos . RealX , oLogicDocument . CurPos . RealY , oLogicDocument . CurPage , new AscCommon . CMouseEventHandler ) } oLogicDocument . UpdateSelection ( ) } ; asc _docs _api . prototype . isShowShapeAdjustments = function ( ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( oLogicDocument ) return oLogicDocument . IsShowShapeAdjustments ( ) ; return true } ; asc _docs _api . prototype . isShowTableAdjustments = function ( ) { var oLogicDocument =
this . private _GetLogicDocument ( ) ; if ( oLogicDocument ) return oLogicDocument . IsShowTableAdjustments ( ) ; return true } ; asc _docs _api . prototype . isShowEquationTrack = function ( ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( oLogicDocument ) return oLogicDocument . IsShowEquationTrack ( ) ; return true } ; asc _docs _api . prototype . asc _GetSelectionBounds = function ( ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return [ [ 0 , 0 ] , [ 0 , 0 ] , [ 0 , 0 ] , [ 0 , 0 ] ] ; var oDrawingDocument = oLogicDocument . GetDrawingDocument ( ) ;
if ( ! oDrawingDocument ) return [ [ 0 , 0 ] , [ 0 , 0 ] , [ 0 , 0 ] , [ 0 , 0 ] ] ; var oSelectBounds = oLogicDocument . GetSelectionBounds ( ) ; if ( ! oSelectBounds || ! oSelectBounds . Start || ! oSelectBounds . End ) return [ [ 0 , 0 ] , [ 0 , 0 ] , [ 0 , 0 ] , [ 0 , 0 ] ] ; var x0 = oSelectBounds . Start . X ; var y0 = oSelectBounds . Start . Y ; var x1 = oSelectBounds . Start . X ; var y1 = oSelectBounds . Start . Y + oSelectBounds . Start . H ; var x2 = oSelectBounds . End . X + oSelectBounds . End . W ; var y2 = oSelectBounds . End . Y ; var x3 = oSelectBounds . End . X + oSelectBounds . End . W ; var y3 = oSelectBounds . End . Y + oSelectBounds . End . H ;
var oCurrentParagraph = oLogicDocument . GetCurrentParagraph ( ) ; var oMatrix = oCurrentParagraph ? oCurrentParagraph . Get _ParentTextTransform ( ) : null ; if ( oMatrix && ! AscCommon . global _MatrixTransformer . IsIdentity ( oMatrix ) ) { x0 = oMatrix . TransformPointX ( oSelectBounds . Start . X , oSelectBounds . Start . Y ) ; y0 = oMatrix . TransformPointY ( oSelectBounds . Start . X , oSelectBounds . Start . Y ) ; x1 = oMatrix . TransformPointX ( oSelectBounds . Start . X , oSelectBounds . Start . Y + oSelectBounds . Start . H ) ; y1 = oMatrix . TransformPointY ( oSelectBounds . Start . X , oSelectBounds . Start . Y +
oSelectBounds . Start . H ) ; x2 = oMatrix . TransformPointX ( oSelectBounds . End . X + oSelectBounds . End . W , oSelectBounds . End . Y ) ; y2 = oMatrix . TransformPointY ( oSelectBounds . End . X + oSelectBounds . End . W , oSelectBounds . End . Y ) ; x3 = oMatrix . TransformPointX ( oSelectBounds . End . X + oSelectBounds . End . W , oSelectBounds . End . Y + oSelectBounds . End . H ) ; y3 = oMatrix . TransformPointY ( oSelectBounds . End . X + oSelectBounds . End . W , oSelectBounds . End . Y + oSelectBounds . End . H ) } var oPos0 = oDrawingDocument . ConvertCoordsToCursorWR ( x0 , y0 , oSelectBounds . Start . Page , undefined ,
false ) ; var oPos1 = oDrawingDocument . ConvertCoordsToCursorWR ( x1 , y1 , oSelectBounds . Start . Page , undefined , false ) ; var oPos2 = oDrawingDocument . ConvertCoordsToCursorWR ( x2 , y2 , oSelectBounds . End . Page , undefined , false ) ; var oPos3 = oDrawingDocument . ConvertCoordsToCursorWR ( x3 , y3 , oSelectBounds . End . Page , undefined , false ) ; return [ [ oPos0 . X , oPos0 . Y ] , [ oPos1 . X , oPos1 . Y ] , [ oPos2 . X , oPos2 . Y ] , [ oPos3 . X , oPos3 . Y ] ] } ; window [ "Asc" ] = window [ "Asc" ] || { } ; CAscSection . prototype [ "get_PageWidth" ] = CAscSection . prototype . get _PageWidth ; CAscSection . prototype [ "get_PageHeight" ] =
CAscSection . prototype . get _PageHeight ; CAscSection . prototype [ "get_MarginLeft" ] = CAscSection . prototype . get _MarginLeft ; CAscSection . prototype [ "get_MarginRight" ] = CAscSection . prototype . get _MarginRight ; CAscSection . prototype [ "get_MarginTop" ] = CAscSection . prototype . get _MarginTop ; CAscSection . prototype [ "get_MarginBottom" ] = CAscSection . prototype . get _MarginBottom ; CHeaderProp . prototype [ "get_Type" ] = CHeaderProp . prototype . get _Type ; CHeaderProp . prototype [ "put_Type" ] = CHeaderProp . prototype . put _Type ; CHeaderProp . prototype [ "get_Position" ] =
CHeaderProp . prototype . get _Position ; CHeaderProp . prototype [ "put_Position" ] = CHeaderProp . prototype . put _Position ; CHeaderProp . prototype [ "get_DifferentFirst" ] = CHeaderProp . prototype . get _DifferentFirst ; CHeaderProp . prototype [ "put_DifferentFirst" ] = CHeaderProp . prototype . put _DifferentFirst ; CHeaderProp . prototype [ "get_DifferentEvenOdd" ] = CHeaderProp . prototype . get _DifferentEvenOdd ; CHeaderProp . prototype [ "put_DifferentEvenOdd" ] = CHeaderProp . prototype . put _DifferentEvenOdd ; CHeaderProp . prototype [ "get_LinkToPrevious" ] = CHeaderProp . prototype . get _LinkToPrevious ;
CHeaderProp . prototype [ "get_Locked" ] = CHeaderProp . prototype . get _Locked ; CHeaderProp . prototype [ "get_StartPageNumber" ] = CHeaderProp . prototype . get _StartPageNumber ; CHeaderProp . prototype [ "put_StartPageNumber" ] = CHeaderProp . prototype . put _StartPageNumber ; window [ "Asc" ] [ "CMailMergeSendData" ] = window [ "Asc" ] . CMailMergeSendData = CMailMergeSendData ; CMailMergeSendData . prototype [ "get_From" ] = CMailMergeSendData . prototype . get _From ; CMailMergeSendData . prototype [ "put_From" ] = CMailMergeSendData . prototype . put _From ; CMailMergeSendData . prototype [ "get_To" ] =
CMailMergeSendData . prototype . get _To ; CMailMergeSendData . prototype [ "put_To" ] = CMailMergeSendData . prototype . put _To ; CMailMergeSendData . prototype [ "get_Subject" ] = CMailMergeSendData . prototype . get _Subject ; CMailMergeSendData . prototype [ "put_Subject" ] = CMailMergeSendData . prototype . put _Subject ; CMailMergeSendData . prototype [ "get_MailFormat" ] = CMailMergeSendData . prototype . get _MailFormat ; CMailMergeSendData . prototype [ "put_MailFormat" ] = CMailMergeSendData . prototype . put _MailFormat ; CMailMergeSendData . prototype [ "get_FileName" ] =
CMailMergeSendData . prototype . get _FileName ; CMailMergeSendData . prototype [ "put_FileName" ] = CMailMergeSendData . prototype . put _FileName ; CMailMergeSendData . prototype [ "get_Message" ] = CMailMergeSendData . prototype . get _Message ; CMailMergeSendData . prototype [ "put_Message" ] = CMailMergeSendData . prototype . put _Message ; CMailMergeSendData . prototype [ "get_RecordFrom" ] = CMailMergeSendData . prototype . get _RecordFrom ; CMailMergeSendData . prototype [ "put_RecordFrom" ] = CMailMergeSendData . prototype . put _RecordFrom ; CMailMergeSendData . prototype [ "get_RecordTo" ] =
CMailMergeSendData . prototype . get _RecordTo ; CMailMergeSendData . prototype [ "put_RecordTo" ] = CMailMergeSendData . prototype . put _RecordTo ; CMailMergeSendData . prototype [ "get_RecordCount" ] = CMailMergeSendData . prototype . get _RecordCount ; CMailMergeSendData . prototype [ "put_RecordCount" ] = CMailMergeSendData . prototype . put _RecordCount ; CMailMergeSendData . prototype [ "get_UserId" ] = CMailMergeSendData . prototype . get _UserId ; CMailMergeSendData . prototype [ "put_UserId" ] = CMailMergeSendData . prototype . put _UserId ; window [ "Asc" ] [ "CAscFootnotePr" ] =
window [ "Asc" ] . CAscFootnotePr = CAscFootnotePr ; CAscFootnotePr . prototype [ "get_Pos" ] = CAscFootnotePr . prototype . get _Pos ; CAscFootnotePr . prototype [ "put_Pos" ] = CAscFootnotePr . prototype . put _Pos ; CAscFootnotePr . prototype [ "get_NumStart" ] = CAscFootnotePr . prototype . get _NumStart ; CAscFootnotePr . prototype [ "put_NumStart" ] = CAscFootnotePr . prototype . put _NumStart ; CAscFootnotePr . prototype [ "get_NumFormat" ] = CAscFootnotePr . prototype . get _NumFormat ; CAscFootnotePr . prototype [ "put_NumFormat" ] = CAscFootnotePr . prototype . put _NumFormat ;
CAscFootnotePr . prototype [ "get_NumRestart" ] = CAscFootnotePr . prototype . get _NumRestart ; CAscFootnotePr . prototype [ "put_NumRestart" ] = CAscFootnotePr . prototype . put _NumRestart ; window [ "Asc" ] [ "asc_docs_api" ] = asc _docs _api ; 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 [ "SetLanguage" ] = asc _docs _api . prototype . SetLanguage ; asc _docs _api . prototype [ "asc_GetFontThumbnailsPath" ] = asc _docs _api . prototype . asc _GetFontThumbnailsPath ; asc _docs _api . prototype [ "TranslateStyleName" ] = asc _docs _api . prototype . TranslateStyleName ; asc _docs _api . prototype [ "CheckChangedDocument" ] = asc _docs _api . prototype . CheckChangedDocument ; 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 [ "SetTextBoxInputMode" ] = asc _docs _api . prototype . SetTextBoxInputMode ; asc _docs _api . prototype [ "GetTextBoxInputMode" ] = asc _docs _api . prototype . GetTextBoxInputMode ; asc _docs _api . prototype [ "ChangeReaderMode" ] = asc _docs _api . prototype . ChangeReaderMode ; asc _docs _api . prototype [ "SetReaderModeOnly" ] =
asc _docs _api . prototype . SetReaderModeOnly ; asc _docs _api . prototype [ "IncreaseReaderFontSize" ] = asc _docs _api . prototype . IncreaseReaderFontSize ; asc _docs _api . prototype [ "DecreaseReaderFontSize" ] = asc _docs _api . prototype . DecreaseReaderFontSize ; asc _docs _api . prototype [ "CreateCSS" ] = asc _docs _api . prototype . CreateCSS ; asc _docs _api . prototype [ "GetCopyPasteDivId" ] = asc _docs _api . prototype . GetCopyPasteDivId ; asc _docs _api . prototype [ "ContentToHTML" ] = asc _docs _api . prototype . ContentToHTML ; asc _docs _api . prototype [ "InitEditor" ] = asc _docs _api . prototype . InitEditor ;
asc _docs _api . prototype [ "InitViewer" ] = asc _docs _api . prototype . InitViewer ; asc _docs _api . prototype [ "OpenDocument" ] = asc _docs _api . prototype . OpenDocument ; 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_isCompatibilityMode" ] = asc _docs _api . prototype . asc _isCompatibilityMode ; 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 [ "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_PropertyThemeColors" ] = asc _docs _api . prototype . get _PropertyThemeColors ; asc _docs _api . prototype [ "_coAuthoringSetChange" ] = asc _docs _api . prototype . _coAuthoringSetChange ; asc _docs _api . prototype [ "_coAuthoringSetChanges" ] = asc _docs _api . prototype . _coAuthoringSetChanges ; 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 [ "asc_coAuthoringDisconnect" ] = asc _docs _api . prototype . asc _coAuthoringDisconnect ; asc _docs _api . prototype [ "asc_SpellCheckDisconnect" ] = asc _docs _api . prototype . asc _SpellCheckDisconnect ; asc _docs _api . prototype [ "_onUpdateDocumentCanSave" ] = asc _docs _api . prototype . _onUpdateDocumentCanSave ;
asc _docs _api . prototype [ "put_FramePr" ] = asc _docs _api . prototype . put _FramePr ; asc _docs _api . prototype [ "asyncFontEndLoaded_MathDraw" ] = asc _docs _api . prototype . asyncFontEndLoaded _MathDraw ; asc _docs _api . prototype [ "sendMathTypesToMenu" ] = asc _docs _api . prototype . sendMathTypesToMenu ; asc _docs _api . prototype [ "asyncFontEndLoaded_DropCap" ] = asc _docs _api . prototype . asyncFontEndLoaded _DropCap ; asc _docs _api . prototype [ "asc_addDropCap" ] = asc _docs _api . prototype . asc _addDropCap ; asc _docs _api . prototype [ "removeDropcap" ] = asc _docs _api . prototype . removeDropcap ;
asc _docs _api . prototype [ "get_TextProps" ] = asc _docs _api . prototype . get _TextProps ; asc _docs _api . prototype [ "GetJSONLogicDocument" ] = asc _docs _api . prototype . GetJSONLogicDocument ; asc _docs _api . prototype [ "get_ContentCount" ] = asc _docs _api . prototype . get _ContentCount ; asc _docs _api . prototype [ "select_Element" ] = asc _docs _api . prototype . select _Element ; asc _docs _api . prototype [ "UpdateTextPr" ] = asc _docs _api . prototype . UpdateTextPr ; 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 [ "asc_DownloadAsMailMerge" ] = asc _docs _api . prototype . asc _DownloadAsMailMerge ; asc _docs _api . prototype [ "asc_DownloadOrigin" ] = asc _docs _api . prototype . asc _DownloadOrigin ; 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 [ "asc_setAdvancedOptions" ] = asc _docs _api . prototype . asc _setAdvancedOptions ; asc _docs _api . prototype [ "asc_decodeBuffer" ] = asc _docs _api . prototype . asc _decodeBuffer ; asc _docs _api . prototype [ "SetFontRenderingMode" ] = asc _docs _api . prototype . SetFontRenderingMode ; asc _docs _api . prototype [ "startGetDocInfo" ] = asc _docs _api . prototype . startGetDocInfo ; 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 [ "can_CopyCut" ] = asc _docs _api . prototype . can _CopyCut ; asc _docs _api . prototype [ "sync_CanCopyCutCallback" ] = asc _docs _api . prototype . sync _CanCopyCutCallback ; asc _docs _api . prototype [ "setStartPointHistory" ] = asc _docs _api . prototype . setStartPointHistory ; asc _docs _api . prototype [ "setEndPointHistory" ] = asc _docs _api . prototype . setEndPointHistory ; 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 [ "gotoHeader" ] = asc _docs _api . prototype . gotoHeader ; 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 [ "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 [ "asc_isSelectSearchingResults" ] = asc _docs _api . prototype . asc _isSelectSearchingResults ; asc _docs _api . prototype [ "sync_ReplaceAllCallback" ] =
asc _docs _api . prototype . sync _ReplaceAllCallback ; 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_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_TextPrDStrikeout" ] = asc _docs _api . prototype . put _TextPrDStrikeout ; asc _docs _api . prototype [ "put_TextPrSpacing" ] = asc _docs _api . prototype . put _TextPrSpacing ; asc _docs _api . prototype [ "put_TextPrCaps" ] = asc _docs _api . prototype . put _TextPrCaps ; asc _docs _api . prototype [ "put_TextPrSmallCaps" ] = asc _docs _api . prototype . put _TextPrSmallCaps ; asc _docs _api . prototype [ "put_TextPrPosition" ] =
asc _docs _api . prototype . put _TextPrPosition ; asc _docs _api . prototype [ "put_TextPrLang" ] = asc _docs _api . prototype . put _TextPrLang ; 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 [ "put_Borders" ] = asc _docs _api . prototype . put _Borders ;
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 [ "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 [ "asc_ContinueNumbering" ] =
asc _docs _api . prototype . asc _ContinueNumbering ; asc _docs _api . prototype [ "asc_RestartNumbering" ] = asc _docs _api . prototype . asc _RestartNumbering ; asc _docs _api . prototype [ "asc_GetCurrentNumberingId" ] = asc _docs _api . prototype . asc _GetCurrentNumberingId ; asc _docs _api . prototype [ "asc_GetCurrentNumberingLvl" ] = asc _docs _api . prototype . asc _GetCurrentNumberingLvl ; asc _docs _api . prototype [ "asc_GetCalculatedNumberingValue" ] = asc _docs _api . prototype . asc _GetCalculatedNumberingValue ; asc _docs _api . prototype [ "asc_GetNumberingPr" ] = asc _docs _api . prototype . asc _GetNumberingPr ;
asc _docs _api . prototype [ "asc_AddNewNumbering" ] = asc _docs _api . prototype . asc _AddNewNumbering ; asc _docs _api . prototype [ "asc_ChangeNumberingLvl" ] = asc _docs _api . prototype . asc _ChangeNumberingLvl ; asc _docs _api . prototype [ "asc_SetNumberingLvl" ] = asc _docs _api . prototype . asc _SetNumberingLvl ; asc _docs _api . prototype [ "put_Style" ] = asc _docs _api . prototype . put _Style ; asc _docs _api . prototype [ "asc_SetParagraphSuppressLineNumbers" ] = asc _docs _api . prototype . asc _SetParagraphSuppressLineNumbers ; asc _docs _api . prototype [ "SetDeviceInputHelperId" ] =
asc _docs _api . prototype . SetDeviceInputHelperId ; 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 [ "put_PageBreak" ] = asc _docs _api . prototype . put _PageBreak ; asc _docs _api . prototype [ "put_WidowControl" ] = asc _docs _api . prototype . put _WidowControl ; asc _docs _api . prototype [ "put_KeepLines" ] = asc _docs _api . prototype . put _KeepLines ; asc _docs _api . prototype [ "put_KeepNext" ] = asc _docs _api . prototype . put _KeepNext ; asc _docs _api . prototype [ "put_AddSpaceBetweenPrg" ] = asc _docs _api . prototype . put _AddSpaceBetweenPrg ; asc _docs _api . prototype [ "put_LineHighLight" ] = asc _docs _api . prototype . put _LineHighLight ;
asc _docs _api . prototype [ "put_TextColor" ] = asc _docs _api . prototype . put _TextColor ; asc _docs _api . prototype [ "put_ParagraphShade" ] = asc _docs _api . prototype . put _ParagraphShade ; asc _docs _api . prototype [ "put_PrIndent" ] = asc _docs _api . prototype . put _PrIndent ; asc _docs _api . prototype [ "put_ParagraphOutlineLvl" ] = asc _docs _api . prototype . put _ParagraphOutlineLvl ; 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 [ "put_Margins" ] = asc _docs _api . prototype . put _Margins ; 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_TextHighLight" ] = asc _docs _api . prototype . sync _TextHighLight ; 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_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_WidowControlCallback" ] =
asc _docs _api . prototype . sync _WidowControlCallback ; asc _docs _api . prototype [ "sync_KeepNextCallback" ] = asc _docs _api . prototype . sync _KeepNextCallback ; 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 [ "sync_MathPropCallback" ] = asc _docs _api . prototype . sync _MathPropCallback ; asc _docs _api . prototype [ "sync_EndAddShape" ] = asc _docs _api . prototype . sync _EndAddShape ; asc _docs _api . prototype [ "SetDrawingFreeze" ] = asc _docs _api . prototype . SetDrawingFreeze ; asc _docs _api . prototype [ "change_PageOrient" ] = asc _docs _api . prototype . change _PageOrient ; asc _docs _api . prototype [ "get_DocumentOrientation" ] = asc _docs _api . prototype . get _DocumentOrientation ; asc _docs _api . prototype [ "change_DocSize" ] = asc _docs _api . prototype . change _DocSize ;
asc _docs _api . prototype [ "get_DocumentWidth" ] = asc _docs _api . prototype . get _DocumentWidth ; asc _docs _api . prototype [ "get_DocumentHeight" ] = asc _docs _api . prototype . get _DocumentHeight ; asc _docs _api . prototype [ "put_AddPageBreak" ] = asc _docs _api . prototype . put _AddPageBreak ; asc _docs _api . prototype [ "put_AddColumnBreak" ] = asc _docs _api . prototype . put _AddColumnBreak ; 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_PageNum" ] = asc _docs _api . prototype . put _PageNum ; asc _docs _api . prototype [ "put_HeadersAndFootersDistance" ] = asc _docs _api . prototype . put _HeadersAndFootersDistance ; asc _docs _api . prototype [ "HeadersAndFooters_DifferentFirstPage" ] = asc _docs _api . prototype . HeadersAndFooters _DifferentFirstPage ;
asc _docs _api . prototype [ "HeadersAndFooters_DifferentOddandEvenPage" ] = asc _docs _api . prototype . HeadersAndFooters _DifferentOddandEvenPage ; asc _docs _api . prototype [ "HeadersAndFooters_LinkToPrevious" ] = asc _docs _api . prototype . HeadersAndFooters _LinkToPrevious ; asc _docs _api . prototype [ "asc_SetSectionStartPage" ] = asc _docs _api . prototype . asc _SetSectionStartPage ; asc _docs _api . prototype [ "sync_DocSizeCallback" ] = asc _docs _api . prototype . sync _DocSizeCallback ; asc _docs _api . prototype [ "sync_PageOrientCallback" ] = asc _docs _api . prototype . sync _PageOrientCallback ;
asc _docs _api . prototype [ "sync_HeadersAndFootersPropCallback" ] = asc _docs _api . prototype . sync _HeadersAndFootersPropCallback ; 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 [ "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 [ "asc_DistributeTableCells" ] =
asc _docs _api . prototype . asc _DistributeTableCells ; asc _docs _api . prototype [ "asc_RemoveTableCells" ] = asc _docs _api . prototype . asc _RemoveTableCells ; 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 [ "AddImage" ] = asc _docs _api . prototype . AddImage ; asc _docs _api . prototype [ "asc_addImage" ] = asc _docs _api . prototype . asc _addImage ; asc _docs _api . prototype [ "AddImageUrl2" ] = asc _docs _api . prototype . AddImageUrl2 ; asc _docs _api . prototype [ "AddImageUrl" ] = asc _docs _api . prototype . AddImageUrl ; asc _docs _api . prototype [ "AddImageUrlAction" ] = asc _docs _api . prototype . AddImageUrlAction ; asc _docs _api . prototype [ "AddImageToPage" ] = asc _docs _api . prototype . AddImageToPage ; asc _docs _api . prototype [ "asc_getSelectedDrawingObjectsCount" ] =
asc _docs _api . prototype . asc _getSelectedDrawingObjectsCount ; 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 [ "ImgApply" ] = asc _docs _api . prototype . ImgApply ; 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 [ "ShapeApply" ] =
asc _docs _api . prototype . ShapeApply ; 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 [ "sync_ImgWrapStyleChangedCallback" ] = asc _docs _api . prototype . sync _ImgWrapStyleChangedCallback ; asc _docs _api . prototype [ "sync_ContextMenuCallback" ] = asc _docs _api . prototype . sync _ContextMenuCallback ; 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 [ "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 [ "asc_GetHyperlinkAnchors" ] = asc _docs _api . prototype . asc _GetHyperlinkAnchors ; 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 [ "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_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 [ "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_removeComment" ] = asc _docs _api . prototype . asc _removeComment ; 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 [ "asc_GetCommentsReportByAuthors" ] = asc _docs _api . prototype . asc _GetCommentsReportByAuthors ; 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 [ "asc_RemoveAllComments" ] =
asc _docs _api . prototype . asc _RemoveAllComments ; asc _docs _api . prototype [ "asc_ResolveAllComments" ] = asc _docs _api . prototype . asc _ResolveAllComments ; asc _docs _api . prototype [ "sync_LockHeaderFooters" ] = asc _docs _api . prototype . sync _LockHeaderFooters ; asc _docs _api . prototype [ "sync_LockDocumentProps" ] = asc _docs _api . prototype . sync _LockDocumentProps ; asc _docs _api . prototype [ "sync_UnLockHeaderFooters" ] = asc _docs _api . prototype . sync _UnLockHeaderFooters ; asc _docs _api . prototype [ "sync_UnLockDocumentProps" ] = asc _docs _api . prototype . sync _UnLockDocumentProps ;
asc _docs _api . prototype [ "sync_CollaborativeChanges" ] = asc _docs _api . prototype . sync _CollaborativeChanges ; asc _docs _api . prototype [ "sync_LockDocumentSchema" ] = asc _docs _api . prototype . sync _LockDocumentSchema ; asc _docs _api . prototype [ "sync_UnLockDocumentSchema" ] = asc _docs _api . prototype . sync _UnLockDocumentSchema ; 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 [ "asc_enableKeyEvents" ] = asc _docs _api . prototype . asc _enableKeyEvents ; asc _docs _api . prototype [ "GenerateStyles" ] = asc _docs _api . prototype . GenerateStyles ; asc _docs _api . prototype [ "asyncFontsDocumentEndLoaded" ] = asc _docs _api . prototype . asyncFontsDocumentEndLoaded ; asc _docs _api . prototype [ "CreateFontsCharMap" ] =
asc _docs _api . prototype . CreateFontsCharMap ; 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 [ "UpdateInterfaceState" ] = asc _docs _api . prototype . UpdateInterfaceState ; asc _docs _api . prototype [ "asyncFontEndLoaded" ] = asc _docs _api . prototype . asyncFontEndLoaded ; asc _docs _api . prototype [ "asyncImageEndLoaded" ] =
asc _docs _api . prototype . asyncImageEndLoaded ; asc _docs _api . prototype [ "asyncImageEndLoadedBackground" ] = asc _docs _api . prototype . asyncImageEndLoadedBackground ; asc _docs _api . prototype [ "IsAsyncOpenDocumentImages" ] = asc _docs _api . prototype . IsAsyncOpenDocumentImages ; asc _docs _api . prototype [ "pre_Paste" ] = asc _docs _api . prototype . pre _Paste ; asc _docs _api . prototype [ "pre_Save" ] = asc _docs _api . prototype . pre _Save ; asc _docs _api . prototype [ "SyncLoadImages" ] = asc _docs _api . prototype . SyncLoadImages ; asc _docs _api . prototype [ "SyncLoadImages_callback" ] =
asc _docs _api . prototype . SyncLoadImages _callback ; 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 [ "GoToHeader" ] = asc _docs _api . prototype . GoToHeader ; asc _docs _api . prototype [ "GoToFooter" ] = asc _docs _api . prototype . GoToFooter ; 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 [ "ChangeShapeType" ] = asc _docs _api . prototype . ChangeShapeType ; 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 [ "StartAddShape" ] = asc _docs _api . prototype . StartAddShape ; asc _docs _api . prototype [ "AddShapeOnCurrentPage" ] = asc _docs _api . prototype . AddShapeOnCurrentPage ;
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 [ "asc_GetWatermarkProps" ] =
asc _docs _api . prototype . asc _GetWatermarkProps ; asc _docs _api . prototype [ "asc_SetWatermarkProps" ] = asc _docs _api . prototype . asc _SetWatermarkProps ; asc _docs _api . prototype [ "asc_WatermarkRemove" ] = asc _docs _api . prototype . asc _WatermarkRemove ; asc _docs _api . prototype [ "sync_StartAddShapeCallback" ] = asc _docs _api . prototype . sync _StartAddShapeCallback ; asc _docs _api . prototype [ "CanGroup" ] = asc _docs _api . prototype . CanGroup ; asc _docs _api . prototype [ "CanUnGroup" ] = asc _docs _api . prototype . CanUnGroup ; asc _docs _api . prototype [ "CanChangeWrapPolygon" ] =
asc _docs _api . prototype . CanChangeWrapPolygon ; asc _docs _api . prototype [ "StartChangeWrapPolygon" ] = asc _docs _api . prototype . StartChangeWrapPolygon ; asc _docs _api . prototype [ "ClearFormating" ] = asc _docs _api . prototype . ClearFormating ; asc _docs _api . prototype [ "GetSectionInfo" ] = asc _docs _api . prototype . GetSectionInfo ; asc _docs _api . prototype [ "add_SectionBreak" ] = asc _docs _api . prototype . add _SectionBreak ; asc _docs _api . prototype [ "asc_GetSectionsCount" ] = asc _docs _api . prototype . asc _GetSectionsCount ; asc _docs _api . prototype [ "asc_setViewMode" ] =
asc _docs _api . prototype . asc _setViewMode ; asc _docs _api . prototype [ "OnMouseUp" ] = asc _docs _api . prototype . OnMouseUp ; asc _docs _api . prototype [ "asyncImageEndLoaded2" ] = asc _docs _api . prototype . asyncImageEndLoaded2 ; asc _docs _api . prototype [ "SetDrawImagePlaceParagraph" ] = asc _docs _api . prototype . SetDrawImagePlaceParagraph ; 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_getChartObject" ] =
asc _docs _api . prototype . asc _getChartObject ; asc _docs _api . prototype [ "asc_addChartDrawingObject" ] = asc _docs _api . prototype . asc _addChartDrawingObject ; asc _docs _api . prototype [ "asc_doubleClickOnChart" ] = asc _docs _api . prototype . asc _doubleClickOnChart ; asc _docs _api . prototype [ "asc_onCloseChartFrame" ] = asc _docs _api . prototype . asc _onCloseChartFrame ; 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_setDrawCollaborationMarks" ] = asc _docs _api . prototype . asc _setDrawCollaborationMarks ; asc _docs _api . prototype [ "asc_AddMath" ] = asc _docs _api . prototype . asc _AddMath ; asc _docs _api . prototype [ "asc_AddMath2" ] = asc _docs _api . prototype . asc _AddMath2 ; asc _docs _api . prototype [ "asc_AddPageCount" ] = asc _docs _api . prototype . asc _AddPageCount ;
asc _docs _api . prototype [ "asc_StartMailMerge" ] = asc _docs _api . prototype . asc _StartMailMerge ; asc _docs _api . prototype [ "asc_StartMailMergeByList" ] = asc _docs _api . prototype . asc _StartMailMergeByList ; asc _docs _api . prototype [ "asc_GetReceptionsCount" ] = asc _docs _api . prototype . asc _GetReceptionsCount ; asc _docs _api . prototype [ "asc_GetMailMergeFieldsNameList" ] = asc _docs _api . prototype . asc _GetMailMergeFieldsNameList ; asc _docs _api . prototype [ "asc_AddMailMergeField" ] = asc _docs _api . prototype . asc _AddMailMergeField ; asc _docs _api . prototype [ "asc_SetHighlightMailMergeFields" ] =
asc _docs _api . prototype . asc _SetHighlightMailMergeFields ; asc _docs _api . prototype [ "asc_PreviewMailMergeResult" ] = asc _docs _api . prototype . asc _PreviewMailMergeResult ; asc _docs _api . prototype [ "asc_EndPreviewMailMergeResult" ] = asc _docs _api . prototype . asc _EndPreviewMailMergeResult ; asc _docs _api . prototype [ "sync_StartMailMerge" ] = asc _docs _api . prototype . sync _StartMailMerge ; asc _docs _api . prototype [ "sync_PreviewMailMergeResult" ] = asc _docs _api . prototype . sync _PreviewMailMergeResult ; asc _docs _api . prototype [ "sync_EndPreviewMailMergeResult" ] =
asc _docs _api . prototype . sync _EndPreviewMailMergeResult ; asc _docs _api . prototype [ "sync_HighlightMailMergeFields" ] = asc _docs _api . prototype . sync _HighlightMailMergeFields ; asc _docs _api . prototype [ "asc_getMailMergeData" ] = asc _docs _api . prototype . asc _getMailMergeData ; asc _docs _api . prototype [ "asc_setMailMergeData" ] = asc _docs _api . prototype . asc _setMailMergeData ; asc _docs _api . prototype [ "asc_sendMailMergeData" ] = asc _docs _api . prototype . asc _sendMailMergeData ; asc _docs _api . prototype [ "asc_GetMailMergeFiledValue" ] = asc _docs _api . prototype . asc _GetMailMergeFiledValue ;
asc _docs _api . prototype [ "asc_GetStyleFromFormatting" ] = asc _docs _api . prototype . asc _GetStyleFromFormatting ; asc _docs _api . prototype [ "asc_AddNewStyle" ] = asc _docs _api . prototype . asc _AddNewStyle ; asc _docs _api . prototype [ "asc_RemoveStyle" ] = asc _docs _api . prototype . asc _RemoveStyle ; asc _docs _api . prototype [ "asc_RemoveAllCustomStyles" ] = asc _docs _api . prototype . asc _RemoveAllCustomStyles ; asc _docs _api . prototype [ "asc_IsStyleDefault" ] = asc _docs _api . prototype . asc _IsStyleDefault ; asc _docs _api . prototype [ "asc_IsDefaultStyleChanged" ] =
asc _docs _api . prototype . asc _IsDefaultStyleChanged ; asc _docs _api . prototype [ "asc_GetStyleNameById" ] = asc _docs _api . prototype . asc _GetStyleNameById ; asc _docs _api . prototype [ "asc_SetTrackRevisions" ] = asc _docs _api . prototype . asc _SetTrackRevisions ; asc _docs _api . prototype [ "asc_IsTrackRevisions" ] = asc _docs _api . prototype . asc _IsTrackRevisions ; asc _docs _api . prototype [ "asc_SetLocalTrackRevisions" ] = asc _docs _api . prototype . asc _SetLocalTrackRevisions ; asc _docs _api . prototype [ "asc_GetLocalTrackRevisions" ] = asc _docs _api . prototype . asc _GetLocalTrackRevisions ;
asc _docs _api . prototype [ "asc_SetGlobalTrackRevisions" ] = asc _docs _api . prototype . asc _SetGlobalTrackRevisions ; asc _docs _api . prototype [ "asc_GetGlobalTrackRevisions" ] = asc _docs _api . prototype . asc _GetGlobalTrackRevisions ; asc _docs _api . prototype [ "sync_BeginCatchRevisionsChanges" ] = asc _docs _api . prototype . sync _BeginCatchRevisionsChanges ; asc _docs _api . prototype [ "sync_EndCatchRevisionsChanges" ] = asc _docs _api . prototype . sync _EndCatchRevisionsChanges ; asc _docs _api . prototype [ "asc_GetRevisionsChangesStack" ] = asc _docs _api . prototype . asc _GetRevisionsChangesStack ;
asc _docs _api . prototype [ "sync_AddRevisionsChange" ] = asc _docs _api . prototype . sync _AddRevisionsChange ; asc _docs _api . prototype [ "asc_AcceptChanges" ] = asc _docs _api . prototype . asc _AcceptChanges ; asc _docs _api . prototype [ "asc_RejectChanges" ] = asc _docs _api . prototype . asc _RejectChanges ; asc _docs _api . prototype [ "asc_HaveRevisionsChanges" ] = asc _docs _api . prototype . asc _HaveRevisionsChanges ; asc _docs _api . prototype [ "asc_HaveNewRevisionsChanges" ] = asc _docs _api . prototype . asc _HaveNewRevisionsChanges ; asc _docs _api . prototype [ "asc_GetNextRevisionsChange" ] =
asc _docs _api . prototype . asc _GetNextRevisionsChange ; asc _docs _api . prototype [ "asc_GetPrevRevisionsChange" ] = asc _docs _api . prototype . asc _GetPrevRevisionsChange ; asc _docs _api . prototype [ "sync_UpdateRevisionsChangesPosition" ] = asc _docs _api . prototype . sync _UpdateRevisionsChangesPosition ; asc _docs _api . prototype [ "asc_AcceptAllChanges" ] = asc _docs _api . prototype . asc _AcceptAllChanges ; asc _docs _api . prototype [ "asc_RejectAllChanges" ] = asc _docs _api . prototype . asc _RejectAllChanges ; asc _docs _api . prototype [ "asc_GetTrackRevisionsReportByAuthors" ] =
asc _docs _api . prototype . asc _GetTrackRevisionsReportByAuthors ; asc _docs _api . prototype [ "asc_FollowRevisionMove" ] = asc _docs _api . prototype . asc _FollowRevisionMove ; 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 [ "asc_CloseFile" ] = asc _docs _api . prototype . asc _CloseFile ; 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_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_nativeInitBuilder" ] = asc _docs _api . prototype . asc _nativeInitBuilder ;
asc _docs _api . prototype [ "asc_SetSilentMode" ] = asc _docs _api . prototype . asc _SetSilentMode ; 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_SpecialPaste" ] = asc _docs _api . prototype . asc _SpecialPaste ; asc _docs _api . prototype [ "SetDrawImagePlaceContents" ] = asc _docs _api . prototype . SetDrawImagePlaceContents ; asc _docs _api . prototype [ "SetDrawImagePlaceTableOfFigures" ] =
asc _docs _api . prototype . SetDrawImagePlaceTableOfFigures ; asc _docs _api . prototype [ "SetDrawImagePreviewMargins" ] = asc _docs _api . prototype . SetDrawImagePreviewMargins ; asc _docs _api . prototype [ "SetDrawImagePreviewBullet" ] = asc _docs _api . prototype . SetDrawImagePreviewBullet ; asc _docs _api . prototype [ "ConvertTextToTable" ] = asc _docs _api . prototype . ConvertTextToTable ; asc _docs _api . prototype [ "ConvertTableToText" ] = asc _docs _api . prototype . ConvertTableToText ; asc _docs _api . prototype [ "SetDrawImagePreviewBulletChangeListLevel" ] = asc _docs _api . prototype . SetDrawImagePreviewBulletChangeListLevel ;
asc _docs _api . prototype [ "SetDrawImagePreviewBulletForMenu" ] = asc _docs _api . prototype . SetDrawImagePreviewBulletForMenu ; asc _docs _api . prototype [ "asc_RemoveContentControl" ] = asc _docs _api . prototype . asc _RemoveContentControl ; asc _docs _api . prototype [ "asc_RemoveContentControlWrapper" ] = asc _docs _api . prototype . asc _RemoveContentControlWrapper ; asc _docs _api . prototype [ "asc_SetContentControlProperties" ] = asc _docs _api . prototype . asc _SetContentControlProperties ; asc _docs _api . prototype [ "asc_IsContentControl" ] = asc _docs _api . prototype . asc _IsContentControl ;
asc _docs _api . prototype [ "asc_GetContentControlProperties" ] = asc _docs _api . prototype . asc _GetContentControlProperties ; asc _docs _api . prototype [ "asc_GetCurrentContentControl" ] = asc _docs _api . prototype . asc _GetCurrentContentControl ; asc _docs _api . prototype [ "asc_ClearContentControl" ] = asc _docs _api . prototype . asc _ClearContentControl ; asc _docs _api . prototype [ "asc_GetContentControlRightAnchorPosition" ] = asc _docs _api . prototype . asc _GetContentControlRightAnchorPosition ; asc _docs _api . prototype [ "asc_UncheckContentControlButtons" ] =
asc _docs _api . prototype . asc _UncheckContentControlButtons ; asc _docs _api . prototype [ "asc_SetGlobalContentControlHighlightColor" ] = asc _docs _api . prototype . asc _SetGlobalContentControlHighlightColor ; asc _docs _api . prototype [ "asc_GetGlobalContentControlHighlightColor" ] = asc _docs _api . prototype . asc _GetGlobalContentControlHighlightColor ; asc _docs _api . prototype [ "asc_SetGlobalContentControlShowHighlight" ] = asc _docs _api . prototype . asc _SetGlobalContentControlShowHighlight ; asc _docs _api . prototype [ "asc_GetGlobalContentControlShowHighlight" ] =
asc _docs _api . prototype . asc _GetGlobalContentControlShowHighlight ; asc _docs _api . prototype [ "asc_SetContentControlCheckBoxPr" ] = asc _docs _api . prototype . asc _SetContentControlCheckBoxPr ; asc _docs _api . prototype [ "asc_SetContentControlCheckBoxChecked" ] = asc _docs _api . prototype . asc _SetContentControlCheckBoxChecked ; asc _docs _api . prototype [ "asc_IsContentControlCheckBoxChecked" ] = asc _docs _api . prototype . asc _IsContentControlCheckBoxChecked ; asc _docs _api . prototype [ "asc_SetContentControlPictureUrl" ] = asc _docs _api . prototype . asc _SetContentControlPictureUrl ;
asc _docs _api . prototype [ "asc_SetContentControlListPr" ] = asc _docs _api . prototype . asc _SetContentControlListPr ; asc _docs _api . prototype [ "asc_SelectContentControlListItem" ] = asc _docs _api . prototype . asc _SelectContentControlListItem ; asc _docs _api . prototype [ "asc_GetContentControlListCurrentValue" ] = asc _docs _api . prototype . asc _GetContentControlListCurrentValue ; asc _docs _api . prototype [ "asc_SetContentControlDatePickerPr" ] = asc _docs _api . prototype . asc _SetContentControlDatePickerPr ; asc _docs _api . prototype [ "asc_SetContentControlDatePickerDate" ] =
asc _docs _api . prototype . asc _SetContentControlDatePickerDate ; asc _docs _api . prototype [ "asc_SetContentControlTextPlaceholder" ] = asc _docs _api . prototype . asc _SetContentControlTextPlaceholder ; asc _docs _api . prototype [ "asc_SetContentControlText" ] = asc _docs _api . prototype . asc _SetContentControlText ; asc _docs _api . prototype [ "asc_GetTextFormKeys" ] = asc _docs _api . prototype . asc _GetTextFormKeys ; asc _docs _api . prototype [ "asc_GetPictureFormKeys" ] = asc _docs _api . prototype . asc _GetPictureFormKeys ; asc _docs _api . prototype [ "asc_GetCheckBoxFormKeys" ] =
asc _docs _api . prototype . asc _GetCheckBoxFormKeys ; asc _docs _api . prototype [ "asc_GetRadioButtonGroupKeys" ] = asc _docs _api . prototype . asc _GetRadioButtonGroupKeys ; asc _docs _api . prototype [ "asc_ClearAllSpecialForms" ] = asc _docs _api . prototype . asc _ClearAllSpecialForms ; asc _docs _api . prototype [ "asc_SetSpecialFormsHighlightColor" ] = asc _docs _api . prototype . asc _SetSpecialFormsHighlightColor ; asc _docs _api . prototype [ "asc_GetSpecialFormsHighlightColor" ] = asc _docs _api . prototype . asc _GetSpecialFormsHighlightColor ; asc _docs _api . prototype [ "asc_SetPerformContentControlActionByClick" ] =
asc _docs _api . prototype . asc _SetPerformContentControlActionByClick ; asc _docs _api . prototype [ "asc_GetTextFormAutoWidth" ] = asc _docs _api . prototype . asc _GetTextFormAutoWidth ; asc _docs _api . prototype [ "asc_GetFormsCountByKey" ] = asc _docs _api . prototype . asc _GetFormsCountByKey ; asc _docs _api . prototype [ "asc_MoveToFillingForm" ] = asc _docs _api . prototype . asc _MoveToFillingForm ; asc _docs _api . prototype [ "asc_IsAllRequiredFormsFilled" ] = asc _docs _api . prototype . asc _IsAllRequiredFormsFilled ; asc _docs _api . prototype [ "asc_SendForm" ] = asc _docs _api . prototype . asc _SendForm ;
asc _docs _api . prototype [ "asc_SetFixedForm" ] = asc _docs _api . prototype . asc _SetFixedForm ; asc _docs _api . prototype [ "asc_IsHighlightRequiredFields" ] = asc _docs _api . prototype . asc _IsHighlightRequiredFields ; asc _docs _api . prototype [ "asc_SetHighlightRequiredFields" ] = asc _docs _api . prototype . asc _SetHighlightRequiredFields ; asc _docs _api . prototype [ "asc_BeginViewModeInReview" ] = asc _docs _api . prototype . asc _BeginViewModeInReview ; asc _docs _api . prototype [ "asc_EndViewModeInReview" ] = asc _docs _api . prototype . asc _EndViewModeInReview ;
asc _docs _api . prototype [ "asc_SetDisplayModeInReview" ] = asc _docs _api . prototype . asc _SetDisplayModeInReview ; asc _docs _api . prototype [ "asc_GetDisplayModeInReview" ] = asc _docs _api . prototype . asc _GetDisplayModeInReview ; asc _docs _api . prototype [ "asc_ShowDocumentOutline" ] = asc _docs _api . prototype . asc _ShowDocumentOutline ; asc _docs _api . prototype [ "asc_HideDocumentOutline" ] = asc _docs _api . prototype . asc _HideDocumentOutline ; asc _docs _api . prototype [ "sync_OnDocumentOutlineUpdate" ] = asc _docs _api . prototype . sync _OnDocumentOutlineUpdate ;
asc _docs _api . prototype [ "sync_OnDocumentOutlineCurrentPosition" ] = asc _docs _api . prototype . sync _OnDocumentOutlineCurrentPosition ; asc _docs _api . prototype [ "asc_AddTableOfContents" ] = asc _docs _api . prototype . asc _AddTableOfContents ; asc _docs _api . prototype [ "asc_RemoveTableOfContents" ] = asc _docs _api . prototype . asc _RemoveTableOfContents ; asc _docs _api . prototype [ "asc_GetTableOfContentsPr" ] = asc _docs _api . prototype . asc _GetTableOfContentsPr ; asc _docs _api . prototype [ "asc_SetTableOfContentsPr" ] = asc _docs _api . prototype . asc _SetTableOfContentsPr ;
asc _docs _api . prototype [ "asc_UpdateTableOfContents" ] = asc _docs _api . prototype . asc _UpdateTableOfContents ; asc _docs _api . prototype [ "asc_getAllUsedParagraphStyles" ] = asc _docs _api . prototype . asc _getAllUsedParagraphStyles ; asc _docs _api . prototype [ "asc_CanUpdateTablesOfFigures" ] = asc _docs _api . prototype . asc _CanUpdateTablesOfFigures ; asc _docs _api . prototype [ "asc_UpdateTablesOfFigures" ] = asc _docs _api . prototype . asc _UpdateTablesOfFigures ; asc _docs _api . prototype [ "asc_AddTableOfFigures" ] = asc _docs _api . prototype . asc _AddTableOfFigures ;
asc _docs _api . prototype [ "asc_GetTableOfFiguresPr" ] = asc _docs _api . prototype . asc _GetTableOfFiguresPr ; asc _docs _api . prototype [ "asc_GetCurrentComplexField" ] = asc _docs _api . prototype . asc _GetCurrentComplexField ; asc _docs _api . prototype [ "asc_UpdateComplexField" ] = asc _docs _api . prototype . asc _UpdateComplexField ; asc _docs _api . prototype [ "asc_RemoveComplexField" ] = asc _docs _api . prototype . asc _RemoveComplexField ; asc _docs _api . prototype [ "asc_SetComplexFieldPr" ] = asc _docs _api . prototype . asc _SetComplexFieldPr ; asc _docs _api . prototype [ "asc_AddTableFormula" ] =
asc _docs _api . prototype . asc _AddTableFormula ; asc _docs _api . prototype [ "asc_GetTableFormula" ] = asc _docs _api . prototype . asc _GetTableFormula ; asc _docs _api . prototype [ "asc_GetTableFormulaFormats" ] = asc _docs _api . prototype . asc _GetTableFormulaFormats ; asc _docs _api . prototype [ "asc_ParseTableFormulaInstrLine" ] = asc _docs _api . prototype . asc _ParseTableFormulaInstrLine ; asc _docs _api . prototype [ "asc_CreateInstructionLine" ] = asc _docs _api . prototype . asc _CreateInstructionLine ; asc _docs _api . prototype [ "asc_addDateTime" ] = asc _docs _api . prototype . asc _addDateTime ;
asc _docs _api . prototype [ "asc_AddObjectCaption" ] = asc _docs _api . prototype . asc _AddObjectCaption ; asc _docs _api . prototype [ "asc_GetBookmarksManager" ] = asc _docs _api . prototype . asc _GetBookmarksManager ; asc _docs _api . prototype [ "asc_OnBookmarksUpdate" ] = asc _docs _api . prototype . asc _OnBookmarksUpdate ; asc _docs _api . prototype [ "asc_GetHeadingLevel" ] = asc _docs _api . prototype . asc _GetHeadingLevel ; asc _docs _api . prototype [ "asc_GetStylesArray" ] = asc _docs _api . prototype . asc _GetStylesArray ; 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_SetFirstLetterAutoCorrectExceptions" ] = asc _docs _api . prototype . asc _SetFirstLetterAutoCorrectExceptions ; asc _docs _api . prototype [ "asc_GetFirstLetterAutoCorrectExceptions" ] = asc _docs _api . prototype . asc _GetFirstLetterAutoCorrectExceptions ; asc _docs _api . prototype [ "asc_GetSelectedText" ] = asc _docs _api . prototype . asc _GetSelectedText ; asc _docs _api . prototype [ "asc_AddBlankPage" ] = asc _docs _api . prototype . asc _AddBlankPage ; 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 [ "asc_ConvertEquationToMath" ] = asc _docs _api . prototype . asc _ConvertEquationToMath ; asc _docs _api . prototype [ "asc_GetAllNumberedParagraphs" ] = asc _docs _api . prototype . asc _GetAllNumberedParagraphs ; asc _docs _api . prototype [ "asc_AddCrossRefToParagraph" ] = asc _docs _api . prototype . asc _AddCrossRefToParagraph ; asc _docs _api . prototype [ "asc_GetAllHeadingParagraphs" ] = asc _docs _api . prototype . asc _GetAllHeadingParagraphs ; asc _docs _api . prototype [ "asc_AddCrossRefToBookmark" ] =
asc _docs _api . prototype . asc _AddCrossRefToBookmark ; asc _docs _api . prototype [ "asc_GetAllFootNoteParagraphs" ] = asc _docs _api . prototype . asc _GetAllFootNoteParagraphs ; asc _docs _api . prototype [ "asc_AddCrossRefToNote" ] = asc _docs _api . prototype . asc _AddCrossRefToNote ; asc _docs _api . prototype [ "asc_GetAllEndNoteParagraphs" ] = asc _docs _api . prototype . asc _GetAllEndNoteParagraphs ; asc _docs _api . prototype [ "asc_GetAllCaptionParagraphs" ] = asc _docs _api . prototype . asc _GetAllCaptionParagraphs ; asc _docs _api . prototype [ "asc_AddCrossRefToCaption" ] =
asc _docs _api . prototype . asc _AddCrossRefToCaption ; asc _docs _api . prototype [ "asc_ChangeTextCase" ] = asc _docs _api . prototype . asc _ChangeTextCase ; asc _docs _api . prototype [ "SetTableDrawMode" ] = asc _docs _api . prototype . SetTableDrawMode ; asc _docs _api . prototype [ "SetTableEraseMode" ] = asc _docs _api . prototype . SetTableEraseMode ; asc _docs _api . prototype [ "asc_PreConvertTextToTable" ] = asc _docs _api . prototype . asc _PreConvertTextToTable ; asc _docs _api . prototype [ "asc_ConvertTextToTable" ] = asc _docs _api . prototype . asc _ConvertTextToTable ; asc _docs _api . prototype [ "asc_ConvertTableToText" ] =
asc _docs _api . prototype . asc _ConvertTableToText ; asc _docs _api . prototype [ "asc_GetSelectionBounds" ] = asc _docs _api . prototype . asc _GetSelectionBounds ; 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 [ "asc_OnHideContextMenu" ] = asc _docs _api . prototype . asc _OnHideContextMenu ; asc _docs _api . prototype [ "asc_OnShowContextMenu" ] = asc _docs _api . prototype . asc _OnShowContextMenu ; 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 ; 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 ; 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_PageNum" ] = CContextMenuData . prototype . get _PageNum ; CContextMenuData . prototype [ "is_Header" ] = CContextMenuData . prototype . is _Header ; window [ "Asc" ] [ "asc_CCommentDataWord" ] = asc _CCommentDataWord ; asc _CCommentDataWord . prototype [ "asc_getText" ] = asc _CCommentDataWord . prototype . asc _getText ; asc _CCommentDataWord . prototype [ "asc_putText" ] = asc _CCommentDataWord . prototype . asc _putText ; asc _CCommentDataWord . prototype [ "asc_getTime" ] = asc _CCommentDataWord . prototype . asc _getTime ;
asc _CCommentDataWord . prototype [ "asc_putTime" ] = asc _CCommentDataWord . prototype . asc _putTime ; asc _CCommentDataWord . prototype [ "asc_getOnlyOfficeTime" ] = asc _CCommentDataWord . prototype . asc _getOnlyOfficeTime ; asc _CCommentDataWord . prototype [ "asc_putOnlyOfficeTime" ] = asc _CCommentDataWord . prototype . asc _putOnlyOfficeTime ; asc _CCommentDataWord . prototype [ "asc_getUserId" ] = asc _CCommentDataWord . prototype . asc _getUserId ; asc _CCommentDataWord . prototype [ "asc_putUserId" ] = asc _CCommentDataWord . prototype . asc _putUserId ; asc _CCommentDataWord . prototype [ "asc_getProviderId" ] =
asc _CCommentDataWord . prototype . asc _getProviderId ; asc _CCommentDataWord . prototype [ "asc_putProviderId" ] = asc _CCommentDataWord . prototype . asc _putProviderId ; asc _CCommentDataWord . prototype [ "asc_getUserName" ] = asc _CCommentDataWord . prototype . asc _getUserName ; asc _CCommentDataWord . prototype [ "asc_putUserName" ] = asc _CCommentDataWord . prototype . asc _putUserName ; asc _CCommentDataWord . prototype [ "asc_getInitials" ] = asc _CCommentDataWord . prototype . asc _getInitials ; asc _CCommentDataWord . prototype [ "asc_putInitials" ] = asc _CCommentDataWord . prototype . asc _putInitials ;
asc _CCommentDataWord . prototype [ "asc_getQuoteText" ] = asc _CCommentDataWord . prototype . asc _getQuoteText ; asc _CCommentDataWord . prototype [ "asc_putQuoteText" ] = asc _CCommentDataWord . prototype . asc _putQuoteText ; asc _CCommentDataWord . prototype [ "asc_getSolved" ] = asc _CCommentDataWord . prototype . asc _getSolved ; asc _CCommentDataWord . prototype [ "asc_putSolved" ] = asc _CCommentDataWord . prototype . asc _putSolved ; asc _CCommentDataWord . prototype [ "asc_getGuid" ] = asc _CCommentDataWord . prototype . asc _getGuid ; asc _CCommentDataWord . prototype [ "asc_putGuid" ] =
asc _CCommentDataWord . prototype . asc _putGuid ; asc _CCommentDataWord . prototype [ "asc_getReply" ] = asc _CCommentDataWord . prototype . asc _getReply ; asc _CCommentDataWord . prototype [ "asc_addReply" ] = asc _CCommentDataWord . prototype . asc _addReply ; asc _CCommentDataWord . prototype [ "asc_getRepliesCount" ] = asc _CCommentDataWord . prototype . asc _getRepliesCount ; asc _CCommentDataWord . prototype [ "asc_getDocumentFlag" ] = asc _CCommentDataWord . prototype . asc _getDocumentFlag ; asc _CCommentDataWord . prototype [ "asc_putDocumentFlag" ] = asc _CCommentDataWord . prototype . asc _putDocumentFlag ;
asc _CCommentDataWord . prototype [ "asc_getUserData" ] = asc _CCommentDataWord . prototype . asc _getUserData ; asc _CCommentDataWord . prototype [ "asc_putUserData" ] = asc _CCommentDataWord . prototype . asc _putUserData ; AscCommon . setUpAllFonts = function ( ) { var testFontCurrent = 0 ; var testFontsInterval = 0 ; var _fonts = [ ] ; for ( var i = 0 ; i < AscFonts . g _font _infos . length ; i ++ ) _fonts . push ( new AscFonts . CFont ( AscFonts . g _font _infos [ i ] . Name , 0 , "" , 0 , null ) ) ; console . log ( "start..." ) ; function logFont ( font , name ) { var face = font . m _pFace ; if ( ! face . os2 || face . os2 . version ==
65535 ) return ; var isTypo = ( face . os2 . fsSelection & 128 ) != 0 ; if ( isTypo && face . height != face . os2 . sTypoAscender - face . os2 . sTypoDescender + face . os2 . sTypoLineGap ) { console . log ( "[" + face . family _name + "] typo" ) ; console . log ( face . ascender + ", " + face . descender + ", " + face . height ) ; console . log ( face . os2 . sTypoAscender + ", " + face . os2 . sTypoDescender + ", " + ( face . os2 . sTypoAscender - face . os2 . sTypoDescender + face . os2 . sTypoLineGap ) ) } if ( ! isTypo && face . height != face . os2 . usWinAscent + face . os2 . usWinDescent ) { console . log ( "[" + face . family _name + "] win" ) ;
console . log ( face . ascender + ", " + face . descender + ", " + face . height ) ; console . log ( face . os2 . usWinAscent + ", " + face . os2 . usWinDescent + ", " + ( face . os2 . usWinAscent + face . os2 . usWinDescent ) ) } } editor . asyncMethodCallback = function ( ) { testFontsInterval = setInterval ( function ( ) { if ( testFontCurrent >= AscFonts . g _font _infos . length ) { clearInterval ( testFontsInterval ) ; console . log ( "end" ) ; return } var _info = AscFonts . g _font _infos [ testFontCurrent ++ ] ; if ( _info . indexR != - 1 ) { var fontfile = AscCommon . g _font _loader . fontFiles [ _info . indexR ] ; var pFontFile =
AscCommon . g _fontManager . LoadFont ( fontfile , _info . faceIndexR , 12 , false , false , false , false , true ) ; logFont ( pFontFile , "regular" ) } if ( _info . indexB != - 1 ) { var fontfile = AscCommon . g _font _loader . fontFiles [ _info . indexB ] ; var pFontFile = AscCommon . g _fontManager . LoadFont ( fontfile , _info . faceIndexB , 12 , true , false , false , false , true ) ; logFont ( pFontFile , "bold" ) } if ( _info . indexI != - 1 ) { var fontfile = AscCommon . g _font _loader . fontFiles [ _info . indexI ] ; var pFontFile = AscCommon . g _fontManager . LoadFont ( fontfile , _info . faceIndexI , 12 , false , true ,
false , false , true ) ; logFont ( pFontFile , "italic" ) } if ( _info . indexBI != - 1 ) { var fontfile = AscCommon . g _font _loader . fontFiles [ _info . indexBI ] ; var pFontFile = AscCommon . g _fontManager . LoadFont ( fontfile , _info . faceIndexBI , 12 , true , true , false , false , true ) ; logFont ( pFontFile , "bold italic" ) } } , 10 ) } ; AscCommon . g _font _loader . LoadDocumentFonts2 ( _fonts ) } } ) ( window , window . document ) ; "use strict" ;
( function ( window , undefined ) { var Api = window [ "asc_docs_api" ] ; window [ "asc_docs_api" ] . prototype [ "pluginMethod_OpenFile" ] = function ( binaryFile , fields ) { this . asc _CloseFile ( ) ; this . FontLoader . IsLoadDocumentFonts2 = true ; this . OpenDocument2 ( this . DocumentUrl , binaryFile ) ; if ( fields ) this . asc _SetBlockChainData ( fields ) ; this . restrictions = Asc . c _oAscRestrictionType . OnlyForms } ; window [ "asc_docs_api" ] . prototype [ "pluginMethod_GetFields" ] = function ( ) { return this . asc _GetBlockChainData ( ) } ; window [ "asc_docs_api" ] . prototype [ "pluginMethod_InsertAndReplaceContentControls" ] =
function ( arrDocuments ) { var _worker = new AscCommon . CContentControlPluginWorker ( this , arrDocuments ) ; return _worker . start ( ) } ; window [ "asc_docs_api" ] . prototype [ "pluginMethod_RemoveContentControls" ] = function ( arrDocuments ) { var _worker = new AscCommon . CContentControlPluginWorker ( this , arrDocuments ) ; return _worker . delete ( ) } ; window [ "asc_docs_api" ] . prototype [ "pluginMethod_GetAllContentControls" ] = function ( ) { var _blocks = this . WordControl . m _oLogicDocument . GetAllContentControls ( ) ; var _ret = [ ] ; var _obj = null ; for ( var i = 0 ; i <
_blocks . length ; i ++ ) { _obj = _blocks [ i ] . GetContentControlPr ( ) ; _ret . push ( { "Tag" : _obj . Tag , "Id" : _obj . Id , "Lock" : _obj . Lock , "InternalId" : _obj . InternalId } ) } return _ret } ; window [ "asc_docs_api" ] . prototype [ "pluginMethod_RemoveContentControl" ] = function ( InternalId ) { return this . asc _RemoveContentControlWrapper ( InternalId ) } ; window [ "asc_docs_api" ] . prototype [ "pluginMethod_GetCurrentContentControl" ] = function ( ) { return this . asc _GetCurrentContentControl ( ) } ; window [ "asc_docs_api" ] . prototype [ "pluginMethod_GetCurrentContentControlPr" ] =
function ( contentFormat ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; var oState ; var prop = this . asc _GetContentControlProperties ( ) ; if ( ! prop ) return null ; if ( oLogicDocument && prop . CC && contentFormat ) { oState = oLogicDocument . SaveDocumentState ( ) ; prop . CC . SelectContentControl ( ) } if ( prop && prop . CC ) delete prop . CC ; prop [ "Tag" ] = prop . Tag ; prop [ "Id" ] = prop . Id ; prop [ "Lock" ] = prop . Lock ; prop [ "InternalId" ] = prop . InternalId ; prop [ "Appearance" ] = prop . Appearance ; if ( contentFormat ) { var copy _data = { data : "" , pushData : function ( format ,
value ) { this . data = value } } ; var copy _format = 1 ; if ( contentFormat == Asc . EPluginDataType . html ) copy _format = 2 ; this . asc _CheckCopy ( copy _data , copy _format ) ; prop [ "content" ] = copy _data . data } if ( oState && contentFormat ) { oLogicDocument . LoadDocumentState ( oState ) ; oLogicDocument . UpdateSelection ( ) } return prop } ; window [ "asc_docs_api" ] . prototype [ "pluginMethod_SelectContentControl" ] = function ( id ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return ; oLogicDocument . SelectContentControl ( id ) } ; window [ "asc_docs_api" ] . prototype [ "pluginMethod_MoveCursorToContentControl" ] =
function ( id , isBegin ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return ; oLogicDocument . MoveCursorToContentControl ( id , isBegin ) } ; window [ "asc_docs_api" ] . prototype [ "pluginMethod_GetSelectedText" ] = function ( ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return ; return oLogicDocument . GetSelectedText ( false , { NewLine : true , NewLineParagraph : true } ) } ; window [ "asc_docs_api" ] . prototype [ "pluginMethod_RemoveSelectedContent" ] = function ( ) { var oLogicDocument = this . private _GetLogicDocument ( ) ;
if ( ! oLogicDocument || ! oLogicDocument . IsSelectionUse ( ) ) return ; if ( false === oLogicDocument . Document _Is _SelectionLocked ( AscCommon . changestype _Remove , null , true , oLogicDocument . IsFormFieldEditing ( ) ) ) { oLogicDocument . StartAction ( AscDFH . historydescription _Document _BackSpaceButton ) ; oLogicDocument . Remove ( - 1 , true ) ; oLogicDocument . FinalizeAction ( ) } } ; window [ "asc_docs_api" ] . prototype [ "pluginMethod_AddComment" ] = function ( oCommentData ) { var oCD = undefined ; if ( oCommentData ) { oCD = new AscCommon . CCommentData ; oCD . ReadFromSimpleObject ( oCommentData ) } return this . asc _addComment ( new window [ "Asc" ] [ "asc_CCommentDataWord" ] ( oCD ) ) } ;
window [ "asc_docs_api" ] . prototype [ "pluginMethod_MoveCursorToStart" ] = function ( isMoveToMainContent ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( oLogicDocument ) if ( isMoveToMainContent ) oLogicDocument . MoveCursorToStartOfDocument ( ) ; else oLogicDocument . MoveCursorToStartPos ( false ) } ; window [ "asc_docs_api" ] . prototype [ "pluginMethod_MoveCursorToEnd" ] = function ( isMoveToMainContent ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( oLogicDocument ) { if ( isMoveToMainContent ) oLogicDocument . MoveCursorToStartOfDocument ( ) ;
oLogicDocument . MoveCursorToEndPos ( false ) } } ; window [ "asc_docs_api" ] . prototype [ "pluginMethod_SearchAndReplace" ] = function ( oProperties ) { var sSearch = oProperties [ "searchString" ] ; var sReplace = oProperties [ "replaceString" ] ; var isMatchCase = undefined !== oProperties [ "matchCase" ] ? oProperties . matchCase : true ; var oSearchEngine = this . WordControl . m _oLogicDocument . Search ( sSearch , { MatchCase : isMatchCase } ) ; if ( ! oSearchEngine ) return ; this . WordControl . m _oLogicDocument . ReplaceSearchElement ( sReplace , true , null , false ) } ; window [ "asc_docs_api" ] . prototype [ "pluginMethod_GetFileHTML" ] =
function ( ) { return this . ContentToHTML ( true ) } ; window [ "asc_docs_api" ] . prototype [ "pluginMethod_GetAllComments" ] = function ( ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return ; var arrResult = [ ] ; var oComments = oLogicDocument . Comments . GetAllComments ( ) ; for ( var sId in oComments ) { var oComment = oComments [ sId ] ; arrResult . push ( { "Id" : oComment . GetId ( ) , "Data" : oComment . GetData ( ) . ConvertToSimpleObject ( ) } ) } return arrResult } ; window [ "asc_docs_api" ] . prototype [ "pluginMethod_RemoveComments" ] = function ( arrIds ) { this . asc _RemoveAllComments ( false ,
false , arrIds ) } ; window [ "asc_docs_api" ] . prototype [ "pluginMethod_ChangeComment" ] = function ( sId , oCommentData ) { var oCD = undefined ; if ( oCommentData ) { oCD = new AscCommon . CCommentData ; oCD . ReadFromSimpleObject ( oCommentData ) ; var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( oLogicDocument && AscCommonWord && AscCommonWord . CDocument && oLogicDocument instanceof AscCommonWord . CDocument ) { var oComment = oLogicDocument . Comments . Get _ById ( sId ) ; if ( oComment ) { var sQuotedText = oComment . GetData ( ) . GetQuoteText ( ) ; if ( sQuotedText ) oCD . SetQuoteText ( sQuotedText ) } } } this . asc _changeComment ( sId ,
new window [ "Asc" ] [ "asc_CCommentDataWord" ] ( oCD ) ) } ; window [ "asc_docs_api" ] . prototype [ "pluginMethod_MoveToComment" ] = function ( sId ) { this . asc _selectComment ( sId ) } ; window [ "asc_docs_api" ] . prototype [ "pluginMethod_SetDisplayModeInReview" ] = function ( sMode ) { var oLogicDocument = this . private _GetLogicDocument ( ) ; if ( ! oLogicDocument ) return ; if ( "final" === sMode ) oLogicDocument . SetDisplayModeInReview ( Asc . c _oAscDisplayModeInReview . Final , true ) ; else if ( "original" === sMode ) oLogicDocument . SetDisplayModeInReview ( Asc . c _oAscDisplayModeInReview . Original ,
true ) ; else if ( "simple" === sMode ) oLogicDocument . SetDisplayModeInReview ( Asc . c _oAscDisplayModeInReview . Simple , true ) ; else oLogicDocument . SetDisplayModeInReview ( Asc . c _oAscDisplayModeInReview . Edit , true ) } } ) ( window ) ; "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 ( ) { return ; 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 ( ) }