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