[SSE] Save page options before printing
This commit is contained in:
parent
88d3f18815
commit
8e11524cd8
|
@ -196,13 +196,7 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
savePageOptions: function(panel) {
|
savePageOptions: function(panel) {
|
||||||
var wc = this.api.asc_getWorksheetsCount(),
|
this.api.asc_savePagePrintOptions(this._changedProps);
|
||||||
index = -1;
|
|
||||||
|
|
||||||
while (++index < wc) {
|
|
||||||
if (this._changedProps[index])
|
|
||||||
this.api.asc_setPageOptions(this._changedProps[index], index);
|
|
||||||
}
|
|
||||||
Common.NotificationCenter.trigger('page:settings');
|
Common.NotificationCenter.trigger('page:settings');
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -249,6 +243,7 @@ define([
|
||||||
|
|
||||||
var printtype = this.printSettingsDlg.getRange();
|
var printtype = this.printSettingsDlg.getRange();
|
||||||
this.adjPrintParams.asc_setPrintType(printtype);
|
this.adjPrintParams.asc_setPrintType(printtype);
|
||||||
|
this.adjPrintParams.asc_setPageOptionsMap(this._changedProps);
|
||||||
Common.localStorage.setItem("sse-print-settings-range", printtype);
|
Common.localStorage.setItem("sse-print-settings-range", printtype);
|
||||||
|
|
||||||
if ( this.printSettingsDlg.type=='print' )
|
if ( this.printSettingsDlg.type=='print' )
|
||||||
|
|
Loading…
Reference in a new issue