[SSE] Fix print titles

This commit is contained in:
Julia Radzhabova 2020-03-17 18:03:42 +03:00
parent a882b4530c
commit 0ef9620d9b
3 changed files with 6 additions and 4 deletions

View file

@ -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')

View file

@ -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();

View file

@ -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')