[DE] Margins Dialog: preview

This commit is contained in:
Julia Svinareva 2019-12-18 15:52:54 +03:00
parent e87d9e388b
commit aad24e1e0d

View file

@ -131,7 +131,7 @@ define([
if (this.api) {
this.properties = (this.properties) ? this.properties : new Asc.CDocumentSectionProps();
this.properties.put_TopMargin(Common.Utils.Metric.fnRecalcToMM(field.getNumberValue()));
//this.api.SetDrawImagePreviewMargins('page-margins-preview', this.properties);
this.api.SetDrawImagePreviewMargins('page-margins-preview', this.properties);
}
}, this));
this.spinners.push(this.spnTop);
@ -149,7 +149,7 @@ define([
if (this.api) {
this.properties = (this.properties) ? this.properties : new Asc.CDocumentSectionProps();
this.properties.put_BottomMargin(Common.Utils.Metric.fnRecalcToMM(field.getNumberValue()));
//this.api.SetDrawImagePreviewMargins('page-margins-preview', this.properties);
this.api.SetDrawImagePreviewMargins('page-margins-preview', this.properties);
}
}, this));
this.spinners.push(this.spnBottom);
@ -167,7 +167,7 @@ define([
if (this.api) {
this.properties = (this.properties) ? this.properties : new Asc.CDocumentSectionProps();
this.properties.put_LeftMargin(Common.Utils.Metric.fnRecalcToMM(field.getNumberValue()));
//this.api.SetDrawImagePreviewMargins('page-margins-preview', this.properties);
this.api.SetDrawImagePreviewMargins('page-margins-preview', this.properties);
}
}, this));
this.spinners.push(this.spnLeft);
@ -185,7 +185,7 @@ define([
if (this.api) {
this.properties = (this.properties) ? this.properties : new Asc.CDocumentSectionProps();
this.properties.put_RightMargin(Common.Utils.Metric.fnRecalcToMM(field.getNumberValue()));
//this.api.SetDrawImagePreviewMargins('page-margins-preview', this.properties);
this.api.SetDrawImagePreviewMargins('page-margins-preview', this.properties);
}
}, this));
this.spinners.push(this.spnRight);
@ -203,7 +203,7 @@ define([
if (this.api) {
this.properties = (this.properties) ? this.properties : new Asc.CDocumentSectionProps();
this.properties.put_Gutter(Common.Utils.Metric.fnRecalcToMM(field.getNumberValue()));
//this.api.SetDrawImagePreviewMargins('page-margins-preview', this.properties);
this.api.SetDrawImagePreviewMargins('page-margins-preview', this.properties);
}
}, this));
this.spinners.push(this.spnGutter);
@ -223,7 +223,7 @@ define([
if (this.api) {
this.properties = (this.properties) ? this.properties : new Asc.CDocumentSectionProps();
this.properties.put_GutterAtTop(record.value);
//this.api.SetDrawImagePreviewMargins('page-margins-preview', this.properties);
this.api.SetDrawImagePreviewMargins('page-margins-preview', this.properties);
}
}, this));
@ -242,7 +242,7 @@ define([
if (this.api) {
this.properties = (this.properties) ? this.properties : new Asc.CDocumentSectionProps();
this.properties.put_Orientation(record.value);
//this.api.SetDrawImagePreviewMargins('page-margins-preview', this.properties);
this.api.SetDrawImagePreviewMargins('page-margins-preview', this.properties);
}
}, this));
@ -271,7 +271,7 @@ define([
if (this.api) {
this.properties = (this.properties) ? this.properties : new Asc.CDocumentSectionProps();
this.properties.put_MirrorMargins(record.value);
//this.api.SetDrawImagePreviewMargins('page-margins-preview', this.properties);
this.api.SetDrawImagePreviewMargins('page-margins-preview', this.properties);
}
}, this));
@ -341,7 +341,7 @@ define([
this.cmbGutterPosition.setDisabled(mirrorMargins);
if (this.api) {
//this.api.SetDrawImagePreviewMargins('page-margins-preview', this.properties);
this.api.SetDrawImagePreviewMargins('page-margins-preview', this.properties);
}
}
},