[DE] Table of contents: draw preview.

This commit is contained in:
Julia Radzhabova 2018-02-19 12:33:21 +03:00
parent 06dc9231a9
commit e42f6ea3c7

View file

@ -159,7 +159,7 @@ define([
properties.put_RightAlignTab(this.chAlign.getValue() == 'checked'); properties.put_RightAlignTab(this.chAlign.getValue() == 'checked');
properties.put_TabLeader(this.cmbLeader.getValue()); properties.put_TabLeader(this.cmbLeader.getValue());
} }
// this.api.SetDrawImagePlaceContents('tableofcontents-img', properties); this.api.SetDrawImagePlaceContents('tableofcontents-img', properties);
} }
}, this)); }, this));
@ -177,7 +177,7 @@ define([
if (checked) { if (checked) {
properties.put_TabLeader(this.cmbLeader.getValue()); properties.put_TabLeader(this.cmbLeader.getValue());
} }
// this.api.SetDrawImagePlaceContents('tableofcontents-img', properties); this.api.SetDrawImagePlaceContents('tableofcontents-img', properties);
} }
}, this)); }, this));
@ -199,7 +199,7 @@ define([
if (this.api && !this._noApply) { if (this.api && !this._noApply) {
var properties = (this._originalProps) ? this._originalProps : new Asc.CTableOfContentsPr(); var properties = (this._originalProps) ? this._originalProps : new Asc.CTableOfContentsPr();
properties.put_TabLeader(record.value); properties.put_TabLeader(record.value);
// this.api.SetDrawImagePlaceContents('tableofcontents-img', properties); this.api.SetDrawImagePlaceContents('tableofcontents-img', properties);
} }
}, this)); }, this));
@ -212,7 +212,7 @@ define([
if (this.api && !this._noApply) { if (this.api && !this._noApply) {
var properties = (this._originalProps) ? this._originalProps : new Asc.CTableOfContentsPr(); var properties = (this._originalProps) ? this._originalProps : new Asc.CTableOfContentsPr();
properties.put_Hyperlink(field.getValue()=='checked'); properties.put_Hyperlink(field.getValue()=='checked');
// this.api.SetDrawImagePlaceContents('tableofcontents-img', properties); this.api.SetDrawImagePlaceContents('tableofcontents-img', properties);
} }
}, this)); }, this));
@ -269,7 +269,7 @@ define([
if (this.api && !this._noApply) { if (this.api && !this._noApply) {
var properties = (this._originalProps) ? this._originalProps : new Asc.CTableOfContentsPr(); var properties = (this._originalProps) ? this._originalProps : new Asc.CTableOfContentsPr();
properties.put_StylesType(record.value); properties.put_StylesType(record.value);
// this.api.SetDrawImagePlaceContents('tableofcontents-img', properties); this.api.SetDrawImagePlaceContents('tableofcontents-img', properties);
} }
}, this)); }, this));
@ -293,7 +293,7 @@ define([
var properties = (this._originalProps) ? this._originalProps : new Asc.CTableOfContentsPr(); var properties = (this._originalProps) ? this._originalProps : new Asc.CTableOfContentsPr();
properties.clear_Styles(); properties.clear_Styles();
properties.put_OutlineRange(this.startLevel, this.endLevel); properties.put_OutlineRange(this.startLevel, this.endLevel);
// this.api.SetDrawImagePlaceContents('tableofcontents-img', properties); this.api.SetDrawImagePlaceContents('tableofcontents-img', properties);
} }
}, this)); }, this));
@ -333,6 +333,11 @@ define([
Common.Views.AdvancedSettingsWindow.prototype.show.apply(this, arguments); Common.Views.AdvancedSettingsWindow.prototype.show.apply(this, arguments);
}, },
close: function() {
this.api.SetDrawImagePlaceContents(null);
Common.Views.AdvancedSettingsWindow.prototype.close.apply(this);
},
_setDefaults: function (props) { _setDefaults: function (props) {
this._noApply = true; this._noApply = true;
@ -459,7 +464,7 @@ define([
} }
} }
// this.api.SetDrawImagePlaceContents('tableofcontents-img', this._originalProps); this.api.SetDrawImagePlaceContents('tableofcontents-img', this._originalProps);
this._noApply = false; this._noApply = false;
}, },