Commit fe1e7c9f authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

выставление картиночной заливки в текстартах в таблицах

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@64135 954022d7-b5bf-4e40-9824-e11837661b57
parent cd327af2
...@@ -1091,7 +1091,7 @@ function DrawingObjects() { ...@@ -1091,7 +1091,7 @@ function DrawingObjects() {
if (urls && urls.length > 0 && sheetId == worksheet.model.getId()) { if (urls && urls.length > 0 && sheetId == worksheet.model.getId()) {
var url = urls[0]; var url = urls[0];
if ( api.isImageChangeUrl || api.isShapeImageChangeUrl ) if ( api.isImageChangeUrl || api.isShapeImageChangeUrl || api.isTextArtChangeUrl)
_this.editImageDrawingObject(url); _this.editImageDrawingObject(url);
else else
_this.addImageDrawingObject(url, null); _this.addImageDrawingObject(url, null);
...@@ -1589,6 +1589,21 @@ function DrawingObjects() { ...@@ -1589,6 +1589,21 @@ function DrawingObjects() {
_this.setGraphicObjectProps(imgProps); _this.setGraphicObjectProps(imgProps);
api.isShapeImageChangeUrl = false; api.isShapeImageChangeUrl = false;
} }
else if(api.isTextArtChangeUrl)
{
var imgProps = new asc_CImgProperty();
var AscShapeProp = new asc_CShapeProperty();
imgProps.ShapeProperties = AscShapeProp;
var oFill = new asc_CShapeFill();
oFill.type = c_oAscFill.FILL_TYPE_BLIP;
oFill.fill = new asc_CFillBlip();
oFill.fill.asc_putUrl(imageUrl);
AscShapeProp.textArtProperties = new asc_TextArtProperties();
AscShapeProp.textArtProperties.asc_putFill(oFill);
_this.setGraphicObjectProps(imgProps);
api.isTextArtChangeUrl = false;
}
_this.showDrawingObjects(true); _this.showDrawingObjects(true);
} }
......
...@@ -136,6 +136,7 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS"; ...@@ -136,6 +136,7 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
this.textArtElementId = null; this.textArtElementId = null;
this.isImageChangeUrl = false; this.isImageChangeUrl = false;
this.isShapeImageChangeUrl = false; this.isShapeImageChangeUrl = false;
this.isTextArtChangeUrl = false;
//Флаги для применения свойств через слайдеры //Флаги для применения свойств через слайдеры
this.noCreatePoint = false; this.noCreatePoint = false;
...@@ -2797,6 +2798,11 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS"; ...@@ -2797,6 +2798,11 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
this.asc_showImageFileDialog(); this.asc_showImageFileDialog();
}; };
spreadsheet_api.prototype.asc_changeArtImageFromFile = function() {
this.isTextArtChangeUrl = true;
this.asc_showImageFileDialog();
};
spreadsheet_api.prototype.asc_putPrLineSpacing = function(type, value) { spreadsheet_api.prototype.asc_putPrLineSpacing = function(type, value) {
var ws = this.wb.getWorksheet(); var ws = this.wb.getWorksheet();
ws.objectRender.controller.putPrLineSpacing(type, value); ws.objectRender.controller.putPrLineSpacing(type, value);
...@@ -3747,6 +3753,7 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS"; ...@@ -3747,6 +3753,7 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
prot["asc_unregisterCallback"] = prot.asc_unregisterCallback; prot["asc_unregisterCallback"] = prot.asc_unregisterCallback;
prot["asc_getController"] = prot.asc_getController; prot["asc_getController"] = prot.asc_getController;
prot["asc_changeArtImageFromFile"] = prot.asc_changeArtImageFromFile;
prot["asc_SetDocumentPlaceChangedEnabled"] = prot.asc_SetDocumentPlaceChangedEnabled; prot["asc_SetDocumentPlaceChangedEnabled"] = prot.asc_SetDocumentPlaceChangedEnabled;
......
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