Merge remote-tracking branch 'remotes/origin/release/v9.0.0' into develop

This commit is contained in:
Ilya Kirillov
2025-06-16 11:17:39 +03:00
178 changed files with 46003 additions and 33486 deletions

View File

@ -3047,6 +3047,9 @@
} else {
w.WriteBool(false);
}
if(w.bWriteCompiledColors) {
w.WriteLong(((this.RGBA.R << 16) & 0xFF0000) + ((this.RGBA.G << 8) & 0xFF00) + this.RGBA.B);
}
};
CUniColor.prototype.Read_FromBinary = function (r) {
if (r.GetBool()) {
@ -3088,6 +3091,12 @@
} else {
this.Mods = null;
}
if(r.bReadCompiledColors) {
let RGB = r.GetLong();
this.RGBA.R = (RGB >> 16) & 0xFF;
this.RGBA.G = (RGB >> 8) & 0xFF;
this.RGBA.B = RGB & 0xFF;
}
};
CUniColor.prototype.createDuplicate = function () {
var duplicate = new CUniColor();
@ -3621,6 +3630,15 @@
return false;
}
}
if (fill.Effects.length !== this.Effects.length) {
return false;
}
for (let i = 0; i < fill.Effects.length; i += 1) {
if (!fill.Effects[i].IsIdentical(this.Effects[i])) {
return false;
}
}
/*
if(fill.rotWithShape != this.rotWithShape)
{
@ -3766,6 +3784,13 @@
}
}
};
CBlipFill.prototype.createDuplicateNoRaster = function(transparent) {
let sId = this.RasterImageId;
this.RasterImageId = null;
let copy = this.createDuplicate();
this.RasterImageId = sId;
return copy;
};
//-----Effects-----
var EFFECT_TYPE_NONE = 0;
@ -3957,6 +3982,16 @@
oCopy.tresh = this.tresh;
return oCopy;
};
CAlphaBiLevel.prototype.IsIdentical = function (oEffect) {
if (this.Type !== oEffect.Type) {
return false;
}
if (this.tresh !== oEffect.tresh) {
return false;
}
return true;
};
function CAlphaCeiling() {
CBaseNoIdObject.call(this);
@ -3973,7 +4008,12 @@
var oCopy = new CAlphaCeiling();
return oCopy;
};
CAlphaCeiling.prototype.IsIdentical = function (oEffect) {
if (this.Type !== oEffect.Type) {
return false;
}
return true;
};
function CAlphaFloor() {
CBaseNoIdObject.call(this);
}
@ -3989,7 +4029,12 @@
var oCopy = new CAlphaFloor();
return oCopy;
};
CAlphaFloor.prototype.IsIdentical = function (oEffect) {
if (this.Type !== oEffect.Type) {
return false;
}
return true;
};
function CAlphaInv() {
CBaseNoIdObject.call(this);
this.unicolor = null;
@ -4019,6 +4064,15 @@
}
return oCopy;
};
CAlphaInv.prototype.IsIdentical = function (oEffect) {
if (this.Type !== oEffect.Type) {
return false;
}
if (!(this.unicolor && oEffect.unicolor && this.unicolor.IsIdentical(oEffect.unicolor) || !this.unicolor && !oEffect.unicolor)) {
return false;
}
return true;
};
var effectcontainertypeSib = 0;
var effectcontainertypeTree = 1;
@ -4062,6 +4116,27 @@
}
return oCopy;
};
CEffectContainer.prototype.IsIdentical = function (oEffect) {
if (this.Type !== oEffect.Type) {
return false;
}
if (this.type !== oEffect.type) {
return false;
}
if (this.effectList.length !== oEffect.effectList.length) {
return false;
}
for (let i = 0; i < this.effectList.length; i += 1) {
if (!this.effectList[i].IsIdentical(oEffect.effectList[i])) {
return false;
}
}
// todo ?
/*if (this.name !== oEffect.name) {
return false;
}*/
return true;
};
function CAlphaMod() {
CBaseNoIdObject.call(this);
@ -4082,6 +4157,15 @@
oCopy.cont = this.cont.createDuplicate();
return oCopy;
};
CAlphaMod.prototype.IsIdentical = function (oEffect) {
if (this.Type !== oEffect.Type) {
return false;
}
if (!(this.cont && oEffect.cont && this.cont.IsIdentical(oEffect.cont) || !this.cont && !oEffect.cont)) {
return false;
}
return true;
};
function CAlphaModFix() {
CBaseNoIdObject.call(this);
@ -4102,6 +4186,15 @@
oCopy.amt = this.amt;
return oCopy;
};
CAlphaModFix.prototype.IsIdentical = function (oEffect) {
if (this.Type !== oEffect.Type) {
return false;
}
if (this.amt !== oEffect.amt) {
return false;
}
return true;
};
function CAlphaOutset() {
CBaseNoIdObject.call(this);
@ -4122,6 +4215,16 @@
oCopy.rad = this.rad;
return oCopy;
};
CAlphaOutset.prototype.IsIdentical = function (oEffect) {
if (this.Type !== oEffect.Type) {
return false;
}
if (this.rad !== oEffect.rad) {
return false;
}
return true;
};
function CAlphaRepl() {
CBaseNoIdObject.call(this);
@ -4142,6 +4245,16 @@
oCopy.a = this.a;
return oCopy;
};
CAlphaRepl.prototype.IsIdentical = function (oEffect) {
if (this.Type !== oEffect.Type) {
return false;
}
if (this.a !== oEffect.a) {
return false;
}
return true;
};
function CBiLevel() {
CBaseNoIdObject.call(this);
@ -4162,6 +4275,17 @@
oCopy.thresh = this.thresh;
return oCopy;
};
CBiLevel.prototype.IsIdentical = function (oEffect) {
if (this.Type !== oEffect.Type) {
return false;
}
if (this.thresh !== oEffect.thresh) {
return false;
}
return true;
};
var blendmodeDarken = 0;
var blendmodeLighten = 1;
@ -4192,6 +4316,18 @@
oCopy.cont = this.cont.createDuplicate();
return oCopy;
};
CBlend.prototype.IsIdentical = function (oEffect) {
if (this.Type !== oEffect.Type) {
return false;
}
if (this.blend !== oEffect.blend) {
return false;
}
if (!(this.cont && oEffect.cont && this.cont.IsIdentical(oEffect.cont) || !this.cont && !oEffect.cont)) {
return false;
}
return true;
};
function CBlur() {
CBaseNoIdObject.call(this);
@ -4216,6 +4352,19 @@
oCopy.grow = this.grow;
return oCopy;
};
CBlur.prototype.IsIdentical = function (oEffect) {
if (this.Type !== oEffect.Type) {
return false;
}
if (this.rad !== oEffect.rad) {
return false;
}
if (this.grow !== oEffect.grow) {
return false;
}
return true;
};
function CClrChange() {
CBaseNoIdObject.call(this);
@ -4245,6 +4394,21 @@
oCopy.useA = this.useA;
return oCopy;
};
CClrChange.prototype.IsIdentical = function (oEffect) {
if (this.Type !== oEffect.Type) {
return false;
}
if (!(this.clrFrom && oEffect.clrFrom && this.clrFrom.IsIdentical(oEffect.clrFrom) || !this.clrFrom && !oEffect.clrFrom)) {
return false;
}
if (!(this.clrTo && oEffect.clrTo && this.clrTo.IsIdentical(oEffect.clrTo) || !this.clrTo && !oEffect.clrTo)) {
return false;
}
if (this.useA !== oEffect.useA) {
return false;
}
return true;
};
function CClrRepl() {
CBaseNoIdObject.call(this);
@ -4266,6 +4430,15 @@
oCopy.color = this.color.createDuplicate();
return oCopy;
};
CClrRepl.prototype.IsIdentical = function (oEffect) {
if (this.Type !== oEffect.Type) {
return false;
}
if (!(this.color && oEffect.color && this.color.IsIdentical(oEffect.color) || !this.color && !oEffect.color)) {
return false;
}
return true;
};
function CDuotone() {
CBaseNoIdObject.call(this);
@ -4296,6 +4469,23 @@
}
return oCopy;
};
CDuotone.prototype.IsIdentical = function (oEffect) {
if (this.Type !== oEffect.Type) {
return false;
}
if (this.colors.length !== oEffect.colors.length) {
return false;
}
for (let i = 0; i < this.colors.length; i += 1) {
if (!this.colors[i].IsIdentical(oEffect.colors[i])) {
return false;
}
}
return true;
};
function CEffectElement() {
@ -4317,6 +4507,15 @@
oCopy.ref = this.ref;
return oCopy;
};
CEffectElement.prototype.IsIdentical = function (oEffect) {
if (this.Type !== oEffect.Type) {
return false;
}
if (this.ref !== oEffect.ref) {
return false;
}
return true;
};
function CFillEffect() {
CBaseNoIdObject.call(this);
@ -4337,6 +4536,16 @@
oCopy.fill = this.fill.createDuplicate();
return oCopy;
};
CFillEffect.prototype.IsIdentical = function (oEffect) {
if (this.Type !== oEffect.Type) {
return false;
}
if (!(this.fill && oEffect.fill && this.fill.IsIdentical(oEffect.fill) || !this.fill && !oEffect.fill)) {
return false;
}
return true;
};
function CFillOverlay() {
CBaseNoIdObject.call(this);
@ -4361,6 +4570,21 @@
oCopy.blend = this.blend;
return oCopy;
};
CFillOverlay.prototype.IsIdentical = function (oEffect) {
if (this.Type !== oEffect.Type) {
return false;
}
if (!(this.fill && oEffect.fill && this.fill.IsIdentical(oEffect) || !this.fill && !oEffect.fill)) {
return false;
}
if (this.blend !== oEffect.blend) {
return false;
}
return true;
};
function CGlow() {
CBaseNoIdObject.call(this);
@ -4385,6 +4609,18 @@
oCopy.rad = this.rad;
return oCopy;
};
CGlow.prototype.IsIdentical = function (oEffect) {
if (this.Type !== oEffect.Type) {
return false;
}
if (!(this.color && oEffect.color && this.color.IsIdentical(oEffect.color) || !this.color && !oEffect.color)) {
return false;
}
if (this.rad !== oEffect.rad) {
return false;
}
return true;
};
function CGrayscl() {
CBaseNoIdObject.call(this);
@ -4401,7 +4637,13 @@
var oCopy = new CGrayscl();
return oCopy;
};
CGrayscl.prototype.IsIdentical = function (oEffect) {
if (this.Type !== oEffect.Type) {
return false;
}
return true;
};
function CHslEffect() {
CBaseNoIdObject.call(this);
@ -4430,6 +4672,21 @@
oCopy.l = this.l;
return oCopy;
};
CHslEffect.prototype.IsIdentical = function (oEffect) {
if (this.Type !== oEffect.Type) {
return false;
}
if (this.h !== oEffect.h) {
return false;
}
if (this.s !== oEffect.s) {
return false;
}
if (this.l !== oEffect.l) {
return false;
}
return true;
};
function CInnerShdw() {
CBaseNoIdObject.call(this);
@ -4462,7 +4719,29 @@
oCopy.dist = this.dist;
return oCopy;
};
CInnerShdw.prototype.IsIdentical = function (oEffect) {
if (this.Type !== oEffect.Type) {
return false;
}
if (!(this.color && oEffect.color && this.color.IsIdentical(oEffect.color) || !this.color && !oEffect.color)) {
return false;
}
if (this.blurRad !== oEffect.blurRad) {
return false;
}
if (this.dir !== oEffect.dir) {
return false;
}
if (this.dist !== oEffect.dist) {
return false;
}
return true;
};
function CLumEffect() {
CBaseNoIdObject.call(this);
this.bright = null;
@ -4486,6 +4765,18 @@
oCopy.contrast = this.contrast;
return oCopy;
};
CLumEffect.prototype.IsIdentical = function (oEffect) {
if (this.Type !== oEffect.Type) {
return false;
}
if (this.bright !== oEffect.bright) {
return false;
}
if (this.contrast !== oEffect.contrast) {
return false;
}
return true;
};
function COuterShdw() {
CBaseNoIdObject.call(this);
@ -4786,6 +5077,24 @@
oCopy.dist = this.dist;
return oCopy;
};
CPrstShdw.prototype.IsIdentical = function (oEffect) {
if (this.Type !== oEffect.Type) {
return false;
}
if (!(this.color && oEffect.color && this.color.IsIdentical(oEffect.color) || !this.color && !oEffect.color)) {
return false;
}
if (this.prst !== oEffect.prst) {
return false;
}
if (this.dir !== oEffect.dir) {
return false;
}
if (this.dist !== oEffect.dist) {
return false;
}
return true;
};
function CReflection() {
CBaseNoIdObject.call(this);
@ -4858,7 +5167,54 @@
oCopy.sy = this.sy;
return oCopy;
};
CReflection.prototype.IsIdentical = function (oEffect) {
if (this.Type !== oEffect.Type) {
return false;
}
if (this.algn !== oEffect.algn) {
return false;
}
if (this.blurRad !== oEffect.blurRad) {
return false;
}
if (this.stA !== oEffect.stA) {
return false;
}
if (this.endA !== oEffect.endA) {
return false;
}
if (this.stPos !== oEffect.stPos) {
return false;
}
if (this.endPos !== oEffect.endPos) {
return false;
}
if (this.dir !== oEffect.dir) {
return false;
}
if (this.fadeDir !== oEffect.fadeDir) {
return false;
}
if (this.dist !== oEffect.dist) {
return false;
}
if (this.kx !== oEffect.kx) {
return false;
}
if (this.ky !== oEffect.ky) {
return false;
}
if (this.rotWithShape !== oEffect.rotWithShape) {
return false;
}
if (this.sx !== oEffect.sx) {
return false;
}
if (this.sy !== oEffect.sy) {
return false;
}
return true;
};
function CRelOff() {
CBaseNoIdObject.call(this);
this.tx = null;
@ -4882,6 +5238,19 @@
oCopy.ty = this.ty;
return oCopy;
};
CRelOff.prototype.IsIdentical = function (oEffect) {
if (this.Type !== oEffect.Type) {
return false;
}
if (this.tx !== oEffect.tx) {
return false;
}
if (this.ty !== oEffect.ty) {
return false;
}
return true;
};
function CSoftEdge() {
CBaseNoIdObject.call(this);
this.rad = null;
@ -4901,6 +5270,17 @@
oCopy.rad = this.rad;
return oCopy;
};
CSoftEdge.prototype.IsIdentical = function (oEffect) {
if (this.Type !== oEffect.Type) {
return false;
}
if (this.rad !== oEffect.rad) {
return false;
}
return true;
};
function CTintEffect() {
CBaseNoIdObject.call(this);
@ -4925,7 +5305,21 @@
oCopy.hue = this.hue;
return oCopy;
};
CTintEffect.prototype.IsIdentical = function (oEffect) {
if (this.Type !== oEffect.Type) {
return false;
}
if (this.amt !== oEffect.amt) {
return false;
}
if (this.hue !== oEffect.hue) {
return false;
}
return true;
};
function CXfrmEffect() {
CBaseNoIdObject.call(this);
this.kx = null;
@ -4965,6 +5359,31 @@
oCopy.ty = this.ty;
return oCopy;
};
CXfrmEffect.prototype.IsIdentical = function (oEffect) {
if (this.Type !== oEffect.Type) {
return false;
}
if (this.kx !== oEffect.kx) {
return false;
}
if (this.ky !== oEffect.ky) {
return false;
}
if (this.sx !== oEffect.sx) {
return false;
}
if (this.sy !== oEffect.sy) {
return false;
}
if (this.tx !== oEffect.tx) {
return false;
}
if (this.ty !== oEffect.ty) {
return false;
}
return true;
};
//-----------------
@ -8763,7 +9182,8 @@
this.handleUpdateGeometry();
};
CSpPr.prototype.setFill = function (pr) {
AscCommon.History.Add(new CChangesDrawingsObjectNoId(this, AscDFH.historyitem_SpPr_SetFill, this.Fill, pr));
if(!pr || !pr.isBlipFill() || !Asc.editor.evalCommand)
AscCommon.History.Add(new CChangesDrawingsObjectNoId(this, AscDFH.historyitem_SpPr_SetFill, this.Fill, pr));
this.Fill = pr;
if (this.parent && this.parent.handleUpdateFill) {
this.parent.handleUpdateFill();
@ -13537,6 +13957,89 @@
this.title = oProps.title;
this.version = oProps.version;
};
CCore.prototype.setCategory = function (sCategory) {
const coreCopy = this.copy();
coreCopy.asc_putCategory(sCategory);
this.setProps(coreCopy);
};
CCore.prototype.setContentStatus = function (sContentStatus) {
const coreCopy = this.copy();
coreCopy.asc_putContentStatus(sContentStatus);
this.setProps(coreCopy);
};
CCore.prototype.setCreated = function (oCreatedDate) {
if (oCreatedDate instanceof Date && !isNaN(oCreatedDate)) {
const coreCopy = this.copy();
coreCopy.asc_putCreated(oCreatedDate);
this.setProps(coreCopy);
}
};
CCore.prototype.setCreator = function (sCreator) {
const coreCopy = this.copy();
coreCopy.asc_putCreator(sCreator);
this.setProps(coreCopy);
};
CCore.prototype.setDescription = function (sDescription) {
const coreCopy = this.copy();
coreCopy.asc_putDescription(sDescription);
this.setProps(coreCopy);
};
CCore.prototype.setIdentifier = function (sIdentifier) {
const coreCopy = this.copy();
coreCopy.asc_putIdentifier(sIdentifier);
this.setProps(coreCopy);
};
CCore.prototype.setKeywords = function (sKeywords) {
const coreCopy = this.copy();
coreCopy.asc_putKeywords(sKeywords);
this.setProps(coreCopy);
};
CCore.prototype.setLanguage = function (sLanguage) {
const coreCopy = this.copy();
coreCopy.asc_putLanguage(sLanguage);
this.setProps(coreCopy);
};
CCore.prototype.setLastModifiedBy = function (sLastModifiedBy) {
const coreCopy = this.copy();
coreCopy.asc_putLastModifiedBy(sLastModifiedBy);
this.setProps(coreCopy);
};
CCore.prototype.setLastPrinted = function (oLastPrintedDate) {
if (oLastPrintedDate instanceof Date && !isNaN(oLastPrintedDate)) {
const coreCopy = this.copy();
coreCopy.asc_putLastPrinted(oLastPrintedDate);
this.setProps(coreCopy);
}
};
CCore.prototype.setModified = function (oModifiedDate) {
if (oModifiedDate instanceof Date && !isNaN(oModifiedDate)) {
const coreCopy = this.copy();
coreCopy.asc_putModified(oModifiedDate);
this.setProps(coreCopy);
}
};
CCore.prototype.setRevision = function (sRevision) {
const coreCopy = this.copy();
coreCopy.asc_putRevision(sRevision);
this.setProps(coreCopy);
};
CCore.prototype.setSubject = function (sSubject) {
const coreCopy = this.copy();
coreCopy.asc_putSubject(sSubject);
this.setProps(coreCopy);
};
CCore.prototype.setTitle = function (sTitle) {
const coreCopy = this.copy();
coreCopy.asc_putTitle(sTitle);
this.setProps(coreCopy);
};
CCore.prototype.setVersion = function (sVersion) {
const coreCopy = this.copy();
coreCopy.asc_putVersion(sVersion);
this.setProps(coreCopy);
};
CCore.prototype.Refresh_RecalcData = function () {
};
CCore.prototype.Refresh_RecalcData2 = function () {
@ -13612,6 +14115,21 @@
prot["asc_putSubject"] = prot.asc_putSubject;
prot["asc_putVersion"] = prot.asc_putVersion;
prot["setCategory"] = prot.setCategory;
prot["setContentStatus"] = prot.setContentStatus;
prot["setCreated"] = prot.setCreated;
prot["setCreator"] = prot.setCreator;
prot["setDescription"] = prot.setDescription;
prot["setIdentifier"] = prot.setIdentifier;
prot["setKeywords"] = prot.setKeywords;
prot["setLanguage"] = prot.setLanguage;
prot["setLastModifiedBy"] = prot.setLastModifiedBy;
prot["setLastPrinted"] = prot.setLastPrinted;
prot["setModified"] = prot.setModified;
prot["setRevision"] = prot.setRevision;
prot["setSubject"] = prot.setSubject;
prot["setTitle"] = prot.setTitle;
prot["setVersion"] = prot.setVersion;
function PartTitle() {
CBaseNoIdObject.call(this);
@ -19741,6 +20259,38 @@
window['AscFormat'].DRAW_TYPE_PENCIL = DRAW_TYPE_PENCIL;
window['AscFormat'].DRAW_TYPE_HIGHLITER = DRAW_TYPE_HIGHLITER;
window['AscFormat'].EFFECT_TYPE_NONE = EFFECT_TYPE_NONE;
window['AscFormat'].EFFECT_TYPE_OUTERSHDW = EFFECT_TYPE_OUTERSHDW;
window['AscFormat'].EFFECT_TYPE_GLOW = EFFECT_TYPE_GLOW;
window['AscFormat'].EFFECT_TYPE_DUOTONE = EFFECT_TYPE_DUOTONE;
window['AscFormat'].EFFECT_TYPE_XFRM = EFFECT_TYPE_XFRM;
window['AscFormat'].EFFECT_TYPE_BLUR = EFFECT_TYPE_BLUR;
window['AscFormat'].EFFECT_TYPE_PRSTSHDW = EFFECT_TYPE_PRSTSHDW;
window['AscFormat'].EFFECT_TYPE_INNERSHDW = EFFECT_TYPE_INNERSHDW;
window['AscFormat'].EFFECT_TYPE_REFLECTION = EFFECT_TYPE_REFLECTION;
window['AscFormat'].EFFECT_TYPE_SOFTEDGE = EFFECT_TYPE_SOFTEDGE;
window['AscFormat'].EFFECT_TYPE_FILLOVERLAY = EFFECT_TYPE_FILLOVERLAY;
window['AscFormat'].EFFECT_TYPE_ALPHACEILING = EFFECT_TYPE_ALPHACEILING;
window['AscFormat'].EFFECT_TYPE_ALPHAFLOOR = EFFECT_TYPE_ALPHAFLOOR;
window['AscFormat'].EFFECT_TYPE_TINTEFFECT = EFFECT_TYPE_TINTEFFECT;
window['AscFormat'].EFFECT_TYPE_RELOFF = EFFECT_TYPE_RELOFF;
window['AscFormat'].EFFECT_TYPE_LUM = EFFECT_TYPE_LUM;
window['AscFormat'].EFFECT_TYPE_HSL = EFFECT_TYPE_HSL;
window['AscFormat'].EFFECT_TYPE_GRAYSCL = EFFECT_TYPE_GRAYSCL;
window['AscFormat'].EFFECT_TYPE_ELEMENT = EFFECT_TYPE_ELEMENT;
window['AscFormat'].EFFECT_TYPE_ALPHAREPL = EFFECT_TYPE_ALPHAREPL;
window['AscFormat'].EFFECT_TYPE_ALPHAOUTSET = EFFECT_TYPE_ALPHAOUTSET;
window['AscFormat'].EFFECT_TYPE_ALPHAMODFIX = EFFECT_TYPE_ALPHAMODFIX;
window['AscFormat'].EFFECT_TYPE_ALPHABILEVEL = EFFECT_TYPE_ALPHABILEVEL;
window['AscFormat'].EFFECT_TYPE_BILEVEL = EFFECT_TYPE_BILEVEL;
window['AscFormat'].EFFECT_TYPE_DAG = EFFECT_TYPE_DAG;
window['AscFormat'].EFFECT_TYPE_FILL = EFFECT_TYPE_FILL;
window['AscFormat'].EFFECT_TYPE_CLRREPL = EFFECT_TYPE_CLRREPL;
window['AscFormat'].EFFECT_TYPE_CLRCHANGE = EFFECT_TYPE_CLRCHANGE;
window['AscFormat'].EFFECT_TYPE_ALPHAINV = EFFECT_TYPE_ALPHAINV;
window['AscFormat'].EFFECT_TYPE_ALPHAMOD = EFFECT_TYPE_ALPHAMOD;
window['AscFormat'].EFFECT_TYPE_BLEND = EFFECT_TYPE_BLEND;
window['AscFormat'].fCreateEffectByType = fCreateEffectByType;
window['AscFormat'].COuterShdw = COuterShdw;
@ -19825,5 +20375,15 @@
window['AscFormat'].CVarStyle = CVarStyle;
window['AscFormat'].CFontProps = CFontProps;
window['AscFormat'].CLineStyle = CLineStyle;
window["AscFormat"].RECT_ALIGN_B = RECT_ALIGN_B;
window["AscFormat"].RECT_ALIGN_BL = RECT_ALIGN_BL;
window["AscFormat"].RECT_ALIGN_BR = RECT_ALIGN_BR;
window["AscFormat"].RECT_ALIGN_CTR = RECT_ALIGN_CTR;
window["AscFormat"].RECT_ALIGN_L = RECT_ALIGN_L;
window["AscFormat"].RECT_ALIGN_R = RECT_ALIGN_R;
window["AscFormat"].RECT_ALIGN_T = RECT_ALIGN_T;
window["AscFormat"].RECT_ALIGN_TL = RECT_ALIGN_TL;
window["AscFormat"].RECT_ALIGN_TR = RECT_ALIGN_TR;
})
(window);