Commit 1232f52a authored by Sergey Luzyanin's avatar Sergey Luzyanin

SetFill in ApiTextPr, SetSizes in ApiPresentation

parent fc0e3097
......@@ -361,6 +361,25 @@
}
};
/**
* Set presentation size
* @memberof ApiPresentation
/* {EMU} nWidth
/* {EMU} nHeight
*/
ApiPresentation.prototype.SetSizes = function(nWidth, nHeight) {
if(this.Presentation){
var width = nWidth/36000.0;
var height = nHeight/36000.0;
History.Add(this, {Type: AscDFH.historyitem_Presentation_SlideSize, oldW: this.Presentation.Width, newW: width, oldH: this.Presentation.Height, newH: height});
this.Presentation.Width = width;
this.Presentation.Height = height;
this.Presentation.changeSlideSizeFunction(this.Presentation.Width, this.Presentation.Height);
}
};
/**
* Create new history point.
*/
......@@ -654,6 +673,7 @@
ApiPresentation.prototype["GetCurrentSlide"] = ApiPresentation.prototype.GetCurrentSlide;
ApiPresentation.prototype["AddSlide"] = ApiPresentation.prototype.AddSlide;
ApiPresentation.prototype["CreateNewHistoryPoint"] = ApiPresentation.prototype.CreateNewHistoryPoint;
ApiPresentation.prototype["SetSizes"] = ApiPresentation.prototype.SetSizes;
ApiSlide.prototype["GetClassType"] = ApiSlide.prototype.GetClassType;
ApiSlide.prototype["RemoveAllObjects"] = ApiSlide.prototype.RemoveAllObjects;
......
......@@ -2487,6 +2487,17 @@
};
/**
* Set fill of run
* @param {ApiFill} oApiFill
*/
ApiTextPr.prototype.SetFill = function(oApiFill)
{
this.TextPr.Unifill = oApiFill.UniFill;
this.private_OnChange();
};
//------------------------------------------------------------------------------------------------------------------
//
// ApiParaPr
......@@ -4214,6 +4225,7 @@
ApiTextPr.prototype["SetPosition"] = ApiTextPr.prototype.SetPosition;
ApiTextPr.prototype["SetLanguage"] = ApiTextPr.prototype.SetLanguage;
ApiTextPr.prototype["SetShd"] = ApiTextPr.prototype.SetShd;
ApiTextPr.prototype["SetFill"] = ApiTextPr.prototype.SetFill;
ApiParaPr.prototype["GetClassType"] = ApiParaPr.prototype.GetClassType;
ApiParaPr.prototype["SetStyle"] = ApiParaPr.prototype.SetStyle;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment