[SSE] Fix print titles
This commit is contained in:
parent
a882b4530c
commit
0ef9620d9b
|
@ -497,9 +497,9 @@ define([
|
|||
} else {
|
||||
var value = '';
|
||||
if (item.value == 'frozen')
|
||||
value = this.api.asc_getFrozen(type=='top');
|
||||
value = this.api.asc_getPrintTitlesRange(Asc.c_oAscPrintTitlesRangeType.frozen, type=='left', panel.cmbSheet.getValue());
|
||||
else if (item.value == 'first')
|
||||
value = this.api.asc_getFirst(type=='top');
|
||||
value = this.api.asc_getPrintTitlesRange(Asc.c_oAscPrintTitlesRangeType.first, type=='left', panel.cmbSheet.getValue());
|
||||
txtRange.setValue(value);
|
||||
txtRange.checkValidate();
|
||||
if (type=='top')
|
||||
|
|
|
@ -3461,6 +3461,7 @@ define([
|
|||
me = this;
|
||||
win = new SSE.Views.PrintTitlesDialog({
|
||||
api: me.api,
|
||||
sheet: me.api.asc_getActiveWorksheetIndex(),
|
||||
handler: function(dlg, result) {
|
||||
if (result == 'ok') {
|
||||
props = dlg.getSettings();
|
||||
|
|
|
@ -94,6 +94,7 @@ define([
|
|||
|
||||
this.options.tpl = _.template(this.template)(this.options);
|
||||
this.api = this.options.api;
|
||||
this.sheet = this.options.sheet;
|
||||
Common.UI.Window.prototype.initialize.call(this, this.options);
|
||||
this.dataRangeTop = '';
|
||||
this.dataRangeLeft = '';
|
||||
|
@ -260,9 +261,9 @@ define([
|
|||
} else {
|
||||
var value = '';
|
||||
if (item.value == 'frozen')
|
||||
value = this.api.asc_getFrozen(type=='top');
|
||||
value = this.api.asc_getPrintTitlesRange(Asc.c_oAscPrintTitlesRangeType.frozen, type=='left', this.sheet);
|
||||
else if (item.value == 'first')
|
||||
value = this.api.asc_getFirst(type=='top');
|
||||
value = this.api.asc_getPrintTitlesRange(Asc.c_oAscPrintTitlesRangeType.first, type=='left', this.sheet);
|
||||
txtRange.setValue(value);
|
||||
txtRange.checkValidate();
|
||||
if (type=='top')
|
||||
|
|
Loading…
Reference in a new issue