Merge branch 'release/v7.1.0' into develop
This commit is contained in:
commit
b5a19477b1
|
@ -165,7 +165,7 @@
|
||||||
navigation: false/true // navigation button in de
|
navigation: false/true // navigation button in de
|
||||||
} / false / true, // view tab
|
} / false / true, // view tab
|
||||||
save: false/true // save button on toolbar in
|
save: false/true // save button on toolbar in
|
||||||
},
|
} / false / true, // use instead of customization.toolbar,
|
||||||
header: {
|
header: {
|
||||||
users: false/true // users list button
|
users: false/true // users list button
|
||||||
save: false/true // save button
|
save: false/true // save button
|
||||||
|
@ -179,7 +179,7 @@
|
||||||
textLang: false/true // text language button in de/pe
|
textLang: false/true // text language button in de/pe
|
||||||
docLang: false/true // document language button in de/pe
|
docLang: false/true // document language button in de/pe
|
||||||
actionStatus: false/true // status of operation
|
actionStatus: false/true // status of operation
|
||||||
}
|
} / false / true, // use instead of customization.statusBar
|
||||||
},
|
},
|
||||||
features: { // disable feature
|
features: { // disable feature
|
||||||
spellcheck: {
|
spellcheck: {
|
||||||
|
@ -194,8 +194,8 @@
|
||||||
leftMenu: true, // must be deprecated. use layout.leftMenu instead
|
leftMenu: true, // must be deprecated. use layout.leftMenu instead
|
||||||
rightMenu: true, // must be deprecated. use layout.rightMenu instead
|
rightMenu: true, // must be deprecated. use layout.rightMenu instead
|
||||||
hideRightMenu: false, // hide or show right panel on first loading
|
hideRightMenu: false, // hide or show right panel on first loading
|
||||||
toolbar: true,
|
toolbar: true, // must be deprecated. use layout.toolbar instead
|
||||||
statusBar: true,
|
statusBar: true, // must be deprecated. use layout.statusBar instead
|
||||||
autosave: true,
|
autosave: true,
|
||||||
forcesave: false,
|
forcesave: false,
|
||||||
commentAuthorOnly: false, // must be deprecated. use permissions.editCommentAuthorOnly and permissions.deleteCommentAuthorOnly instead
|
commentAuthorOnly: false, // must be deprecated. use permissions.editCommentAuthorOnly and permissions.deleteCommentAuthorOnly instead
|
||||||
|
|
|
@ -255,6 +255,7 @@ define([
|
||||||
var picker = this.menuPicker;
|
var picker = this.menuPicker;
|
||||||
if (picker) {
|
if (picker) {
|
||||||
var record = picker.getSelectedRec();
|
var record = picker.getSelectedRec();
|
||||||
|
this.itemMarginLeft = undefined;
|
||||||
this.fillComboView(record || picker.store.at(0), !!record, true);
|
this.fillComboView(record || picker.store.at(0), !!record, true);
|
||||||
|
|
||||||
picker.onResize();
|
picker.onResize();
|
||||||
|
|
|
@ -383,10 +383,20 @@
|
||||||
height: @combo-dataview-height-calc;
|
height: @combo-dataview-height-calc;
|
||||||
}
|
}
|
||||||
|
|
||||||
.item {
|
.item, .menu-picker-container .dataview .group-items-container .item {
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
margin: @combo-dataview-item-margins 0 0 @combo-dataview-item-margins;
|
margin: @combo-dataview-item-margins;
|
||||||
.box-shadow(none);
|
.box-shadow(none);
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
.box-shadow(0 0 0 2px @border-preview-hover-ie);
|
||||||
|
.box-shadow(0 0 0 @scaled-two-px-value @border-preview-hover);
|
||||||
|
}
|
||||||
|
|
||||||
|
&.selected {
|
||||||
|
.box-shadow(0 0 0 2px @border-preview-select-ie);
|
||||||
|
.box-shadow(0 0 0 @scaled-two-px-value @border-preview-select);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu-picker-container {
|
.menu-picker-container {
|
||||||
|
@ -396,8 +406,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.group-items-container .item {
|
.group-items-container .item {
|
||||||
box-shadow: none;
|
|
||||||
margin: @scaled-two-px-value 0 0 @scaled-two-px-value;
|
|
||||||
&:last-child {
|
&:last-child {
|
||||||
margin-bottom: @combo-dataview-item-margins;
|
margin-bottom: @combo-dataview-item-margins;
|
||||||
}
|
}
|
||||||
|
@ -429,11 +437,10 @@
|
||||||
width: @x-huge-btn-icon-size;
|
width: @x-huge-btn-icon-size;
|
||||||
height: @x-huge-btn-icon-size;
|
height: @x-huge-btn-icon-size;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
margin-top: -2px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.caption{
|
.caption{
|
||||||
line-height: 18px;
|
line-height: 12px;
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
|
@ -2084,6 +2084,10 @@ define([
|
||||||
console.log("Obsolete: The 'leftMenu' parameter of the 'customization' section is deprecated. Please use 'leftMenu' parameter in the 'customization.layout' section instead.");
|
console.log("Obsolete: The 'leftMenu' parameter of the 'customization' section is deprecated. Please use 'leftMenu' parameter in the 'customization.layout' section instead.");
|
||||||
if (this.appOptions.customization.rightMenu!==undefined)
|
if (this.appOptions.customization.rightMenu!==undefined)
|
||||||
console.log("Obsolete: The 'rightMenu' parameter of the 'customization' section is deprecated. Please use 'rightMenu' parameter in the 'customization.layout' section instead.");
|
console.log("Obsolete: The 'rightMenu' parameter of the 'customization' section is deprecated. Please use 'rightMenu' parameter in the 'customization.layout' section instead.");
|
||||||
|
if (this.appOptions.customization.statusBar!==undefined)
|
||||||
|
console.log("Obsolete: The 'statusBar' parameter of the 'customization' section is deprecated. Please use 'statusBar' parameter in the 'customization.layout' section instead.");
|
||||||
|
if (this.appOptions.customization.toolbar!==undefined)
|
||||||
|
console.log("Obsolete: The 'toolbar' parameter of the 'customization' section is deprecated. Please use 'toolbar' parameter in the 'customization.layout' section instead.");
|
||||||
}
|
}
|
||||||
promise = this.getApplication().getController('Common.Controllers.Plugins').applyUICustomization();
|
promise = this.getApplication().getController('Common.Controllers.Plugins').applyUICustomization();
|
||||||
}
|
}
|
||||||
|
|
|
@ -107,12 +107,12 @@ define([
|
||||||
|
|
||||||
switch ( type ) {
|
switch ( type ) {
|
||||||
case Asc.c_oAscWrapStyle2.Inline: menu.items[0].setChecked(true); break;
|
case Asc.c_oAscWrapStyle2.Inline: menu.items[0].setChecked(true); break;
|
||||||
case Asc.c_oAscWrapStyle2.Square: menu.items[1].setChecked(true); break;
|
case Asc.c_oAscWrapStyle2.Square: menu.items[2].setChecked(true); break;
|
||||||
case Asc.c_oAscWrapStyle2.Tight: menu.items[2].setChecked(true); break;
|
case Asc.c_oAscWrapStyle2.Tight: menu.items[3].setChecked(true); break;
|
||||||
case Asc.c_oAscWrapStyle2.Through: menu.items[3].setChecked(true); break;
|
case Asc.c_oAscWrapStyle2.Through: menu.items[4].setChecked(true); break;
|
||||||
case Asc.c_oAscWrapStyle2.TopAndBottom: menu.items[4].setChecked(true); break;
|
case Asc.c_oAscWrapStyle2.TopAndBottom: menu.items[5].setChecked(true); break;
|
||||||
case Asc.c_oAscWrapStyle2.Behind: menu.items[6].setChecked(true); break;
|
case Asc.c_oAscWrapStyle2.Behind: menu.items[8].setChecked(true); break;
|
||||||
case Asc.c_oAscWrapStyle2.InFront: menu.items[5].setChecked(true); break;
|
case Asc.c_oAscWrapStyle2.InFront: menu.items[7].setChecked(true); break;
|
||||||
default:
|
default:
|
||||||
for (var i in menu.items) {
|
for (var i in menu.items) {
|
||||||
menu.items[i].setChecked( false );
|
menu.items[i].setChecked( false );
|
||||||
|
@ -140,7 +140,7 @@ define([
|
||||||
_.each(me.toolbar.btnImgWrapping.menu.items, function(item) {
|
_.each(me.toolbar.btnImgWrapping.menu.items, function(item) {
|
||||||
item.setDisabled(notflow);
|
item.setDisabled(notflow);
|
||||||
});
|
});
|
||||||
me.toolbar.btnImgWrapping.menu.items[8].setDisabled(!me.api.CanChangeWrapPolygon());
|
me.toolbar.btnImgWrapping.menu.items[10].setDisabled(!me.api.CanChangeWrapPolygon());
|
||||||
|
|
||||||
var control_props = me.api.asc_IsContentControl() ? this.api.asc_GetContentControlProperties() : null,
|
var control_props = me.api.asc_IsContentControl() ? this.api.asc_GetContentControlProperties() : null,
|
||||||
lock_type = (control_props) ? control_props.get_Lock() : Asc.c_oAscSdtLockType.Unlocked,
|
lock_type = (control_props) ? control_props.get_Lock() : Asc.c_oAscSdtLockType.Unlocked,
|
||||||
|
|
|
@ -2910,6 +2910,7 @@ define([
|
||||||
this.toolbar.btnRedo.setDisabled(this._state.can_redo!==true);
|
this.toolbar.btnRedo.setDisabled(this._state.can_redo!==true);
|
||||||
this.toolbar.btnCopy.setDisabled(this._state.can_copycut!==true);
|
this.toolbar.btnCopy.setDisabled(this._state.can_copycut!==true);
|
||||||
this.toolbar.btnPrint.setDisabled(!this.toolbar.mode.canPrint);
|
this.toolbar.btnPrint.setDisabled(!this.toolbar.mode.canPrint);
|
||||||
|
this.toolbar.btnDarkDocument && this.toolbar.btnDarkDocument.setDisabled(!Common.UI.Themes.isDarkTheme());
|
||||||
if (!this._state.mmdisable) {
|
if (!this._state.mmdisable) {
|
||||||
this.toolbar.btnMailRecepients.setDisabled(false);
|
this.toolbar.btnMailRecepients.setDisabled(false);
|
||||||
this.toolbar.mnuMailRecepients.items[2].setVisible(this.toolbar.mode.fileChoiceUrl || this.toolbar.mode.canRequestMailMergeRecipients);
|
this.toolbar.mnuMailRecepients.items[2].setVisible(this.toolbar.mode.fileChoiceUrl || this.toolbar.mode.canRequestMailMergeRecipients);
|
||||||
|
@ -3241,6 +3242,7 @@ define([
|
||||||
var viewtab = me.getApplication().getController('ViewTab');
|
var viewtab = me.getApplication().getController('ViewTab');
|
||||||
viewtab.setApi(me.api).setConfig({toolbar: me, mode: config});
|
viewtab.setApi(me.api).setConfig({toolbar: me, mode: config});
|
||||||
Array.prototype.push.apply(me.toolbar.toolbarControls, viewtab.getView('ViewTab').getButtons());
|
Array.prototype.push.apply(me.toolbar.toolbarControls, viewtab.getView('ViewTab').getButtons());
|
||||||
|
me.toolbar.btnDarkDocument = viewtab.getView('ViewTab').btnDarkDocument;
|
||||||
}
|
}
|
||||||
if ( config.isEdit && config.canFeatureContentControl && config.canFeatureForms || config.isRestrictedEdit && config.canFillForms ) {
|
if ( config.isEdit && config.canFeatureContentControl && config.canFeatureForms || config.isRestrictedEdit && config.canFillForms ) {
|
||||||
if (config.isFormCreator) {
|
if (config.isFormCreator) {
|
||||||
|
|
|
@ -72,12 +72,22 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
setConfig: function(config) {
|
setConfig: function(config) {
|
||||||
|
var mode = config.mode;
|
||||||
this.toolbar = config.toolbar;
|
this.toolbar = config.toolbar;
|
||||||
this.view = this.createView('ViewTab', {
|
this.view = this.createView('ViewTab', {
|
||||||
toolbar: this.toolbar.toolbar,
|
toolbar: this.toolbar.toolbar,
|
||||||
mode: config.mode,
|
mode: mode,
|
||||||
compactToolbar: this.toolbar.toolbar.isCompactView
|
compactToolbar: this.toolbar.toolbar.isCompactView
|
||||||
});
|
});
|
||||||
|
if (mode.canBrandingExt && mode.customization && mode.customization.statusBar === false || !Common.UI.LayoutManager.isElementVisible('statusBar')) {
|
||||||
|
this.view.chStatusbar.$el.remove();
|
||||||
|
var slotChkRulers = this.view.chRulers.$el,
|
||||||
|
groupRulers = slotChkRulers.closest('.group'),
|
||||||
|
groupToolbar = this.view.chToolbar.$el.closest('.group');
|
||||||
|
groupToolbar.find('.elset')[1].append(slotChkRulers[0]);
|
||||||
|
groupRulers.remove();
|
||||||
|
this.view.cmpEl.find('.separator-rulers').remove();
|
||||||
|
}
|
||||||
this.addListeners({
|
this.addListeners({
|
||||||
'ViewTab': {
|
'ViewTab': {
|
||||||
'zoom:topage': _.bind(this.onBtnZoomTo, this, 'topage'),
|
'zoom:topage': _.bind(this.onBtnZoomTo, this, 'topage'),
|
||||||
|
|
|
@ -171,7 +171,7 @@ define([
|
||||||
|
|
||||||
var _intvars = Common.Utils.InternalSettings;
|
var _intvars = Common.Utils.InternalSettings;
|
||||||
var $filemenu = $('.toolbar-fullview-panel');
|
var $filemenu = $('.toolbar-fullview-panel');
|
||||||
$filemenu.css('top', _intvars.get('toolbar-height-tabs'));
|
$filemenu.css('top', Common.UI.LayoutManager.isElementVisible('toolbar') ? _intvars.get('toolbar-height-tabs') : 0);
|
||||||
|
|
||||||
me.viewport.$el.attr('applang', me.appConfig.lang.split(/[\-_]/)[0]);
|
me.viewport.$el.attr('applang', me.appConfig.lang.split(/[\-_]/)[0]);
|
||||||
|
|
||||||
|
@ -205,7 +205,7 @@ define([
|
||||||
_intvars.set('toolbar-height-compact', _tabs_new_height);
|
_intvars.set('toolbar-height-compact', _tabs_new_height);
|
||||||
_intvars.set('toolbar-height-normal', _tabs_new_height + _intvars.get('toolbar-height-controls'));
|
_intvars.set('toolbar-height-normal', _tabs_new_height + _intvars.get('toolbar-height-controls'));
|
||||||
|
|
||||||
$filemenu.css('top', _tabs_new_height + _intvars.get('document-title-height'));
|
$filemenu.css('top', (Common.UI.LayoutManager.isElementVisible('toolbar') ? _tabs_new_height : 0) + _intvars.get('document-title-height'));
|
||||||
|
|
||||||
toolbar = me.getApplication().getController('Toolbar').getView();
|
toolbar = me.getApplication().getController('Toolbar').getView();
|
||||||
toolbar.btnCollabChanges = me.header.btnSave;
|
toolbar.btnCollabChanges = me.header.btnSave;
|
||||||
|
@ -246,7 +246,7 @@ define([
|
||||||
value: 'statusbar'
|
value: 'statusbar'
|
||||||
});
|
});
|
||||||
|
|
||||||
if ( config.canBrandingExt && config.customization && config.customization.statusBar === false )
|
if ( config.canBrandingExt && config.customization && config.customization.statusBar === false || !Common.UI.LayoutManager.isElementVisible('statusBar'))
|
||||||
me.header.mnuitemHideStatusBar.hide();
|
me.header.mnuitemHideStatusBar.hide();
|
||||||
|
|
||||||
me.header.mnuitemHideRulers = new Common.UI.MenuItem({
|
me.header.mnuitemHideRulers = new Common.UI.MenuItem({
|
||||||
|
|
|
@ -202,14 +202,14 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="separator long"></div>
|
<div class="separator long"></div>
|
||||||
<div class="group small">
|
<div class="group small">
|
||||||
<div class="elset">
|
|
||||||
<span class="btn-slot text" id="slot-chk-statusbar"></span>
|
|
||||||
</div>
|
|
||||||
<div class="elset">
|
<div class="elset">
|
||||||
<span class="btn-slot text" id="slot-chk-toolbar"></span>
|
<span class="btn-slot text" id="slot-chk-toolbar"></span>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="elset">
|
||||||
|
<span class="btn-slot text" id="slot-chk-statusbar"></span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="separator long"></div>
|
<div class="separator long separator-rulers"></div>
|
||||||
<div class="group small">
|
<div class="group small">
|
||||||
<div class="elset">
|
<div class="elset">
|
||||||
<span class="btn-slot text" id="slot-chk-rulers"></span>
|
<span class="btn-slot text" id="slot-chk-rulers"></span>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<div id="file-menu-panel" class="toolbar-fullview-panel hint-section" style="display:none;"></div>
|
<div id="file-menu-panel" class="toolbar-fullview-panel hint-section" style="display:none;"></div>
|
||||||
</section>
|
</section>
|
||||||
<section id="app-title" class="layout-item"></section>
|
<section id="app-title" class="layout-item"></section>
|
||||||
<div id="toolbar" class="layout-item hint-section"></div>
|
<div id="toolbar" class="layout-item hint-section" data-layout-name="toolbar"></div>
|
||||||
<div class="layout-item middle">
|
<div class="layout-item middle">
|
||||||
<div id="viewport-hbox-layout" class="layout-ct hbox">
|
<div id="viewport-hbox-layout" class="layout-ct hbox">
|
||||||
<div id="left-menu" class="layout-item hint-section" data-layout-name="leftMenu" style="width: 40px;"></div>
|
<div id="left-menu" class="layout-item hint-section" data-layout-name="leftMenu" style="width: 40px;"></div>
|
||||||
|
@ -14,6 +14,6 @@
|
||||||
<div id="left-panel-history" class="layout-item"></div>
|
<div id="left-panel-history" class="layout-item"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="statusbar" class="layout-item"></div>
|
<div id="statusbar" class="layout-item" data-layout-name="statusBar"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1637,22 +1637,22 @@ define([
|
||||||
this.menuImageWrap.menu.items[0].setChecked(true);
|
this.menuImageWrap.menu.items[0].setChecked(true);
|
||||||
break;
|
break;
|
||||||
case Asc.c_oAscWrapStyle2.Square:
|
case Asc.c_oAscWrapStyle2.Square:
|
||||||
this.menuImageWrap.menu.items[1].setChecked(true);
|
|
||||||
break;
|
|
||||||
case Asc.c_oAscWrapStyle2.Tight:
|
|
||||||
this.menuImageWrap.menu.items[2].setChecked(true);
|
this.menuImageWrap.menu.items[2].setChecked(true);
|
||||||
break;
|
break;
|
||||||
case Asc.c_oAscWrapStyle2.Through:
|
case Asc.c_oAscWrapStyle2.Tight:
|
||||||
this.menuImageWrap.menu.items[3].setChecked(true);
|
this.menuImageWrap.menu.items[3].setChecked(true);
|
||||||
break;
|
break;
|
||||||
case Asc.c_oAscWrapStyle2.TopAndBottom:
|
case Asc.c_oAscWrapStyle2.Through:
|
||||||
this.menuImageWrap.menu.items[4].setChecked(true);
|
this.menuImageWrap.menu.items[4].setChecked(true);
|
||||||
break;
|
break;
|
||||||
|
case Asc.c_oAscWrapStyle2.TopAndBottom:
|
||||||
|
this.menuImageWrap.menu.items[5].setChecked(true);
|
||||||
|
break;
|
||||||
case Asc.c_oAscWrapStyle2.Behind:
|
case Asc.c_oAscWrapStyle2.Behind:
|
||||||
this.menuImageWrap.menu.items[6].setChecked(true);
|
this.menuImageWrap.menu.items[8].setChecked(true);
|
||||||
break;
|
break;
|
||||||
case Asc.c_oAscWrapStyle2.InFront:
|
case Asc.c_oAscWrapStyle2.InFront:
|
||||||
this.menuImageWrap.menu.items[5].setChecked(true);
|
this.menuImageWrap.menu.items[7].setChecked(true);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -2329,6 +2329,7 @@ define([
|
||||||
checkmark : false,
|
checkmark : false,
|
||||||
checkable : true
|
checkable : true
|
||||||
}).on('click', onItemClick),
|
}).on('click', onItemClick),
|
||||||
|
{ caption: '--' },
|
||||||
new Common.UI.MenuItem({
|
new Common.UI.MenuItem({
|
||||||
caption : me.txtSquare,
|
caption : me.txtSquare,
|
||||||
iconCls : 'menu__icon wrap-square',
|
iconCls : 'menu__icon wrap-square',
|
||||||
|
@ -2361,6 +2362,7 @@ define([
|
||||||
checkmark : false,
|
checkmark : false,
|
||||||
checkable : true
|
checkable : true
|
||||||
}).on('click', onItemClick),
|
}).on('click', onItemClick),
|
||||||
|
{ caption: '--' },
|
||||||
new Common.UI.MenuItem({
|
new Common.UI.MenuItem({
|
||||||
caption : me.txtInFront,
|
caption : me.txtInFront,
|
||||||
iconCls : 'menu__icon wrap-infront',
|
iconCls : 'menu__icon wrap-infront',
|
||||||
|
@ -2616,7 +2618,7 @@ define([
|
||||||
|
|
||||||
var cls = 'menu__icon ';
|
var cls = 'menu__icon ';
|
||||||
if (notflow) {
|
if (notflow) {
|
||||||
for (var i = 0; i < 6; i++) {
|
for (var i = 0; i < 8; i++) {
|
||||||
me.menuImageWrap.menu.items[i].setChecked(false);
|
me.menuImageWrap.menu.items[i].setChecked(false);
|
||||||
}
|
}
|
||||||
cls += 'wrap-inline';
|
cls += 'wrap-inline';
|
||||||
|
@ -2627,31 +2629,31 @@ define([
|
||||||
cls += 'wrap-inline';
|
cls += 'wrap-inline';
|
||||||
break;
|
break;
|
||||||
case Asc.c_oAscWrapStyle2.Square:
|
case Asc.c_oAscWrapStyle2.Square:
|
||||||
me.menuImageWrap.menu.items[1].setChecked(true);
|
me.menuImageWrap.menu.items[2].setChecked(true);
|
||||||
cls += 'wrap-square';
|
cls += 'wrap-square';
|
||||||
break;
|
break;
|
||||||
case Asc.c_oAscWrapStyle2.Tight:
|
case Asc.c_oAscWrapStyle2.Tight:
|
||||||
me.menuImageWrap.menu.items[2].setChecked(true);
|
me.menuImageWrap.menu.items[3].setChecked(true);
|
||||||
cls += 'wrap-tight';
|
cls += 'wrap-tight';
|
||||||
break;
|
break;
|
||||||
case Asc.c_oAscWrapStyle2.Through:
|
case Asc.c_oAscWrapStyle2.Through:
|
||||||
me.menuImageWrap.menu.items[3].setChecked(true);
|
me.menuImageWrap.menu.items[4].setChecked(true);
|
||||||
cls += 'wrap-through';
|
cls += 'wrap-through';
|
||||||
break;
|
break;
|
||||||
case Asc.c_oAscWrapStyle2.TopAndBottom:
|
case Asc.c_oAscWrapStyle2.TopAndBottom:
|
||||||
me.menuImageWrap.menu.items[4].setChecked(true);
|
me.menuImageWrap.menu.items[5].setChecked(true);
|
||||||
cls += 'wrap-topandbottom';
|
cls += 'wrap-topandbottom';
|
||||||
break;
|
break;
|
||||||
case Asc.c_oAscWrapStyle2.Behind:
|
case Asc.c_oAscWrapStyle2.Behind:
|
||||||
me.menuImageWrap.menu.items[6].setChecked(true);
|
me.menuImageWrap.menu.items[8].setChecked(true);
|
||||||
cls += 'wrap-behind';
|
cls += 'wrap-behind';
|
||||||
break;
|
break;
|
||||||
case Asc.c_oAscWrapStyle2.InFront:
|
case Asc.c_oAscWrapStyle2.InFront:
|
||||||
me.menuImageWrap.menu.items[5].setChecked(true);
|
me.menuImageWrap.menu.items[7].setChecked(true);
|
||||||
cls += 'wrap-infront';
|
cls += 'wrap-infront';
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
for (var i = 0; i < 6; i++) {
|
for (var i = 0; i < 8; i++) {
|
||||||
me.menuImageWrap.menu.items[i].setChecked(false);
|
me.menuImageWrap.menu.items[i].setChecked(false);
|
||||||
}
|
}
|
||||||
cls += 'wrap-infront';
|
cls += 'wrap-infront';
|
||||||
|
|
|
@ -1720,7 +1720,9 @@ define([
|
||||||
wrapType : Asc.c_oAscWrapStyle2.Inline,
|
wrapType : Asc.c_oAscWrapStyle2.Inline,
|
||||||
checkmark : false,
|
checkmark : false,
|
||||||
checkable : true
|
checkable : true
|
||||||
}, {
|
},
|
||||||
|
{ caption: '--' },
|
||||||
|
{
|
||||||
caption : _holder_view.txtSquare,
|
caption : _holder_view.txtSquare,
|
||||||
iconCls : 'menu__icon wrap-square',
|
iconCls : 'menu__icon wrap-square',
|
||||||
toggleGroup : 'imgwrapping',
|
toggleGroup : 'imgwrapping',
|
||||||
|
@ -1748,7 +1750,9 @@ define([
|
||||||
wrapType : Asc.c_oAscWrapStyle2.TopAndBottom,
|
wrapType : Asc.c_oAscWrapStyle2.TopAndBottom,
|
||||||
checkmark : false,
|
checkmark : false,
|
||||||
checkable : true
|
checkable : true
|
||||||
}, {
|
},
|
||||||
|
{ caption: '--' },
|
||||||
|
{
|
||||||
caption : _holder_view.txtInFront,
|
caption : _holder_view.txtInFront,
|
||||||
iconCls : 'menu__icon wrap-infront',
|
iconCls : 'menu__icon wrap-infront',
|
||||||
toggleGroup : 'imgwrapping',
|
toggleGroup : 'imgwrapping',
|
||||||
|
|
|
@ -178,7 +178,6 @@ define([
|
||||||
dataHintDirection: 'bottom',
|
dataHintDirection: 'bottom',
|
||||||
dataHintOffset: 'small'
|
dataHintOffset: 'small'
|
||||||
});
|
});
|
||||||
this.lockedControls.push(this.btnDarkDocument);
|
|
||||||
|
|
||||||
this.chStatusbar = new Common.UI.CheckBox({
|
this.chStatusbar = new Common.UI.CheckBox({
|
||||||
el: $host.findById('#slot-chk-statusbar'),
|
el: $host.findById('#slot-chk-statusbar'),
|
||||||
|
@ -212,6 +211,8 @@ define([
|
||||||
dataHintOffset: 'small'
|
dataHintOffset: 'small'
|
||||||
});
|
});
|
||||||
this.lockedControls.push(this.chRulers);
|
this.lockedControls.push(this.chRulers);
|
||||||
|
|
||||||
|
this.cmpEl = $host;
|
||||||
},
|
},
|
||||||
|
|
||||||
render: function (el) {
|
render: function (el) {
|
||||||
|
@ -235,6 +236,7 @@ define([
|
||||||
button.setDisabled(state);
|
button.setDisabled(state);
|
||||||
}
|
}
|
||||||
}, this);
|
}, this);
|
||||||
|
this.btnDarkDocument && this.btnDarkDocument.setDisabled(state);
|
||||||
},
|
},
|
||||||
|
|
||||||
turnNavigation: function (state) {
|
turnNavigation: function (state) {
|
||||||
|
|
|
@ -4,20 +4,25 @@ import { f7 } from 'framework7-react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
const ErrorController = inject('storeAppOptions')(({storeAppOptions, LoadingDocument}) => {
|
const ErrorController = inject('storeAppOptions')(({storeAppOptions, LoadingDocument}) => {
|
||||||
const {t} = useTranslation();
|
|
||||||
const _t = t("Error", { returnObjects: true });
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
Common.Notifications.on('engineCreated', (api) => {
|
const on_engine_created = k => { k.asc_registerCallback('asc_onError', onError); };
|
||||||
api.asc_registerCallback('asc_onError', onError);
|
|
||||||
});
|
const api = Common.EditorApi.get();
|
||||||
|
if ( !api ) Common.Notifications.on('engineCreated', on_engine_created);
|
||||||
|
else on_engine_created(api);
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
const api = Common.EditorApi.get();
|
const api = Common.EditorApi.get();
|
||||||
if ( api ) api.asc_unregisterCallback('asc_onError', onError);
|
if ( api ) api.asc_unregisterCallback('asc_onError', onError);
|
||||||
|
|
||||||
|
Common.Notifications.off('engineCreated', on_engine_created);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const onError = (id, level, errData) => {
|
const onError = (id, level, errData) => {
|
||||||
|
const {t} = useTranslation();
|
||||||
|
const _t = t("Error", { returnObjects: true });
|
||||||
|
|
||||||
if (id === Asc.c_oAscError.ID.LoadingScriptError) {
|
if (id === Asc.c_oAscError.ID.LoadingScriptError) {
|
||||||
f7.notification.create({
|
f7.notification.create({
|
||||||
title: _t.criticalErrorTitle,
|
title: _t.criticalErrorTitle,
|
||||||
|
|
|
@ -1720,6 +1720,10 @@ define([
|
||||||
console.log("Obsolete: The 'leftMenu' parameter of the 'customization' section is deprecated. Please use 'leftMenu' parameter in the 'customization.layout' section instead.");
|
console.log("Obsolete: The 'leftMenu' parameter of the 'customization' section is deprecated. Please use 'leftMenu' parameter in the 'customization.layout' section instead.");
|
||||||
if (this.appOptions.customization.rightMenu!==undefined)
|
if (this.appOptions.customization.rightMenu!==undefined)
|
||||||
console.log("Obsolete: The 'rightMenu' parameter of the 'customization' section is deprecated. Please use 'rightMenu' parameter in the 'customization.layout' section instead.");
|
console.log("Obsolete: The 'rightMenu' parameter of the 'customization' section is deprecated. Please use 'rightMenu' parameter in the 'customization.layout' section instead.");
|
||||||
|
if (this.appOptions.customization.statusBar!==undefined)
|
||||||
|
console.log("Obsolete: The 'statusBar' parameter of the 'customization' section is deprecated. Please use 'statusBar' parameter in the 'customization.layout' section instead.");
|
||||||
|
if (this.appOptions.customization.toolbar!==undefined)
|
||||||
|
console.log("Obsolete: The 'toolbar' parameter of the 'customization' section is deprecated. Please use 'toolbar' parameter in the 'customization.layout' section instead.");
|
||||||
}
|
}
|
||||||
promise = this.getApplication().getController('Common.Controllers.Plugins').applyUICustomization();
|
promise = this.getApplication().getController('Common.Controllers.Plugins').applyUICustomization();
|
||||||
}
|
}
|
||||||
|
|
|
@ -74,12 +74,16 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
setConfig: function(config) {
|
setConfig: function(config) {
|
||||||
|
var mode = config.mode;
|
||||||
this.toolbar = config.toolbar;
|
this.toolbar = config.toolbar;
|
||||||
this.view = this.createView('ViewTab', {
|
this.view = this.createView('ViewTab', {
|
||||||
toolbar: this.toolbar.toolbar,
|
toolbar: this.toolbar.toolbar,
|
||||||
mode: config.mode,
|
mode: mode,
|
||||||
compactToolbar: this.toolbar.toolbar.isCompactView
|
compactToolbar: this.toolbar.toolbar.isCompactView
|
||||||
});
|
});
|
||||||
|
if (mode.canBrandingExt && mode.customization && mode.customization.statusBar === false || !Common.UI.LayoutManager.isElementVisible('statusBar')) {
|
||||||
|
this.view.chStatusbar.$el.remove();
|
||||||
|
}
|
||||||
this.addListeners({
|
this.addListeners({
|
||||||
'ViewTab': {
|
'ViewTab': {
|
||||||
'zoom:toslide': _.bind(this.onBtnZoomTo, this, 'toslide'),
|
'zoom:toslide': _.bind(this.onBtnZoomTo, this, 'toslide'),
|
||||||
|
|
|
@ -181,7 +181,7 @@ define([
|
||||||
|
|
||||||
var _intvars = Common.Utils.InternalSettings;
|
var _intvars = Common.Utils.InternalSettings;
|
||||||
var $filemenu = $('.toolbar-fullview-panel');
|
var $filemenu = $('.toolbar-fullview-panel');
|
||||||
$filemenu.css('top', _intvars.get('toolbar-height-tabs'));
|
$filemenu.css('top', Common.UI.LayoutManager.isElementVisible('toolbar') ? _intvars.get('toolbar-height-tabs') : 0);
|
||||||
|
|
||||||
me.viewport.$el.attr('applang', me.appConfig.lang.split(/[\-_]/)[0]);
|
me.viewport.$el.attr('applang', me.appConfig.lang.split(/[\-_]/)[0]);
|
||||||
|
|
||||||
|
@ -206,7 +206,7 @@ define([
|
||||||
_intvars.set('toolbar-height-compact', _tabs_new_height);
|
_intvars.set('toolbar-height-compact', _tabs_new_height);
|
||||||
_intvars.set('toolbar-height-normal', _tabs_new_height + _intvars.get('toolbar-height-controls'));
|
_intvars.set('toolbar-height-normal', _tabs_new_height + _intvars.get('toolbar-height-controls'));
|
||||||
|
|
||||||
$filemenu.css('top', _tabs_new_height + _intvars.get('document-title-height'));
|
$filemenu.css('top', (Common.UI.LayoutManager.isElementVisible('toolbar') ? _tabs_new_height : 0) + _intvars.get('document-title-height'));
|
||||||
|
|
||||||
toolbar = me.getApplication().getController('Toolbar').getView('Toolbar');
|
toolbar = me.getApplication().getController('Toolbar').getView('Toolbar');
|
||||||
toolbar.btnCollabChanges = me.header.btnSave;
|
toolbar.btnCollabChanges = me.header.btnSave;
|
||||||
|
@ -255,7 +255,7 @@ define([
|
||||||
value: 'statusbar'
|
value: 'statusbar'
|
||||||
});
|
});
|
||||||
|
|
||||||
if ( config.canBrandingExt && config.customization && config.customization.statusBar === false )
|
if ( config.canBrandingExt && config.customization && config.customization.statusBar === false || !Common.UI.LayoutManager.isElementVisible('statusBar'))
|
||||||
me.header.mnuitemHideStatusBar.hide();
|
me.header.mnuitemHideStatusBar.hide();
|
||||||
|
|
||||||
me.header.mnuitemHideRulers = new Common.UI.MenuItem({
|
me.header.mnuitemHideRulers = new Common.UI.MenuItem({
|
||||||
|
|
|
@ -211,10 +211,10 @@
|
||||||
<div class="separator long"></div>
|
<div class="separator long"></div>
|
||||||
<div class="group small">
|
<div class="group small">
|
||||||
<div class="elset">
|
<div class="elset">
|
||||||
<span class="btn-slot text" id="slot-chk-statusbar"></span>
|
<span class="btn-slot text" id="slot-chk-toolbar"></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="elset">
|
<div class="elset">
|
||||||
<span class="btn-slot text" id="slot-chk-toolbar"></span>
|
<span class="btn-slot text" id="slot-chk-statusbar"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
</section>
|
</section>
|
||||||
<div id="viewport-vbox-layout" class="layout-ct vbox">
|
<div id="viewport-vbox-layout" class="layout-ct vbox">
|
||||||
<section id="app-title" class="layout-item"></section>
|
<section id="app-title" class="layout-item"></section>
|
||||||
<div id="toolbar" class="layout-item hint-section"></div>
|
<div id="toolbar" class="layout-item hint-section" data-layout-name="toolbar"></div>
|
||||||
<div class="layout-item middle">
|
<div class="layout-item middle">
|
||||||
<div id="viewport-hbox-layout" class="layout-ct hbox">
|
<div id="viewport-hbox-layout" class="layout-ct hbox">
|
||||||
<div id="left-menu" class="layout-item hint-section" data-layout-name="leftMenu" style="width: 40px;"></div>
|
<div id="left-menu" class="layout-item hint-section" data-layout-name="leftMenu" style="width: 40px;"></div>
|
||||||
|
@ -15,6 +15,6 @@
|
||||||
<div id="left-panel-history" class="layout-item"></div>
|
<div id="left-panel-history" class="layout-item"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="statusbar" class="layout-item"></div>
|
<div id="statusbar" class="layout-item" data-layout-name="statusBar"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -161,7 +161,7 @@ define([
|
||||||
this._arrEffectName = [{group:'none', value: AscFormat.ANIM_PRESET_NONE, iconCls: 'animation-none', displayValue: this.textNone}].concat(Common.define.effectData.getEffectData());
|
this._arrEffectName = [{group:'none', value: AscFormat.ANIM_PRESET_NONE, iconCls: 'animation-none', displayValue: this.textNone}].concat(Common.define.effectData.getEffectData());
|
||||||
_.forEach(this._arrEffectName,function (elm){elm.tip = elm.displayValue;});
|
_.forEach(this._arrEffectName,function (elm){elm.tip = elm.displayValue;});
|
||||||
this._arrEffectOptions = [];
|
this._arrEffectOptions = [];
|
||||||
var itemWidth = 87,
|
var itemWidth = 88,
|
||||||
itemHeight = 40;
|
itemHeight = 40;
|
||||||
this.listEffectsMore = new Common.UI.MenuItem({
|
this.listEffectsMore = new Common.UI.MenuItem({
|
||||||
caption: this.textMoreEffects
|
caption: this.textMoreEffects
|
||||||
|
@ -416,7 +416,7 @@ define([
|
||||||
]
|
]
|
||||||
}));
|
}));
|
||||||
|
|
||||||
var itemWidth = 87,
|
var itemWidth = 88,
|
||||||
itemHeight = 40;
|
itemHeight = 40;
|
||||||
var onShowBefore = function(menu) {
|
var onShowBefore = function(menu) {
|
||||||
var picker = new Common.UI.DataView({
|
var picker = new Common.UI.DataView({
|
||||||
|
|
|
@ -136,7 +136,7 @@ define([
|
||||||
item.tip = item.title;
|
item.tip = item.title;
|
||||||
});
|
});
|
||||||
|
|
||||||
var itemWidth = 87,
|
var itemWidth = 88,
|
||||||
itemHeight = 40;
|
itemHeight = 40;
|
||||||
this.listEffects = new Common.UI.ComboDataView({
|
this.listEffects = new Common.UI.ComboDataView({
|
||||||
cls: 'combo-transitions',
|
cls: 'combo-transitions',
|
||||||
|
|
|
@ -15,15 +15,25 @@
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.group-items-container {
|
.grouped-data .group-items-container {
|
||||||
float: left;
|
float: left;
|
||||||
position: relative;
|
position: relative;
|
||||||
.item {
|
.item {
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
margin: @scaled-two-px-value 0 0 @scaled-two-px-value;
|
margin: @scaled-two-px-value;
|
||||||
&:last-child {
|
&:last-child {
|
||||||
margin-bottom: @scaled-two-px-value;
|
margin-bottom: @scaled-two-px-value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
.box-shadow(0 0 0 2px @border-preview-hover-ie);
|
||||||
|
.box-shadow(0 0 0 @scaled-two-px-value @border-preview-hover);
|
||||||
|
}
|
||||||
|
|
||||||
|
&.selected {
|
||||||
|
.box-shadow(0 0 0 2px @border-preview-select-ie);
|
||||||
|
.box-shadow(0 0 0 @scaled-two-px-value @border-preview-select);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -132,7 +132,6 @@
|
||||||
@import "rightmenu.less";
|
@import "rightmenu.less";
|
||||||
@import "advanced-settings.less";
|
@import "advanced-settings.less";
|
||||||
@import "document-preview.less";
|
@import "document-preview.less";
|
||||||
@import "transitions.less";
|
|
||||||
@import "animation.less";
|
@import "animation.less";
|
||||||
|
|
||||||
@import "sprites/iconssmall@1x";
|
@import "sprites/iconssmall@1x";
|
||||||
|
|
|
@ -1,26 +0,0 @@
|
||||||
.combo-transitions {
|
|
||||||
.btn_item {
|
|
||||||
color: @text-normal-ie;
|
|
||||||
color: @text-normal;
|
|
||||||
display: inline-flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
|
|
||||||
.icon:not(svg) {
|
|
||||||
width: @x-huge-btn-icon-size;
|
|
||||||
height: @x-huge-btn-icon-size;
|
|
||||||
min-width: 0;
|
|
||||||
margin-top: -2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.caption{
|
|
||||||
line-height: normal;
|
|
||||||
font-size: 11px;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
overflow: hidden;
|
|
||||||
width: 100%;
|
|
||||||
text-align: center;
|
|
||||||
padding: 0 2px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -4,20 +4,25 @@ import { f7 } from 'framework7-react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
const ErrorController = inject('storeAppOptions')(({storeAppOptions, LoadingDocument}) => {
|
const ErrorController = inject('storeAppOptions')(({storeAppOptions, LoadingDocument}) => {
|
||||||
const {t} = useTranslation();
|
|
||||||
const _t = t("Error", { returnObjects: true });
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
Common.Notifications.on('engineCreated', (api) => {
|
const on_engine_created = k => { k.asc_registerCallback('asc_onError', onError); };
|
||||||
api.asc_registerCallback('asc_onError', onError);
|
|
||||||
});
|
const api = Common.EditorApi.get();
|
||||||
|
if ( !api ) Common.Notifications.on('engineCreated', on_engine_created);
|
||||||
|
else on_engine_created(api);
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
const api = Common.EditorApi.get();
|
const api = Common.EditorApi.get();
|
||||||
if ( api ) api.asc_unregisterCallback('asc_onError', onError);
|
if ( api ) api.asc_unregisterCallback('asc_onError', onError);
|
||||||
|
|
||||||
|
Common.Notifications.off('engineCreated', on_engine_created);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const onError = (id, level, errData) => {
|
const onError = (id, level, errData) => {
|
||||||
|
const {t} = useTranslation();
|
||||||
|
const _t = t("Error", { returnObjects: true });
|
||||||
|
|
||||||
if (id === Asc.c_oAscError.ID.LoadingScriptError) {
|
if (id === Asc.c_oAscError.ID.LoadingScriptError) {
|
||||||
f7.notification.create({
|
f7.notification.create({
|
||||||
title: _t.criticalErrorTitle,
|
title: _t.criticalErrorTitle,
|
||||||
|
|
|
@ -74,7 +74,7 @@
|
||||||
font-size: 0;
|
font-size: 0;
|
||||||
border: 1px solid #dfdfdf;
|
border: 1px solid #dfdfdf;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
padding-top: 48px;
|
padding-top: 28px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.loadmask > .placeholder > .columns {
|
.loadmask > .placeholder > .columns {
|
||||||
|
|
|
@ -71,7 +71,7 @@
|
||||||
font-size: 0;
|
font-size: 0;
|
||||||
border: 1px solid #dfdfdf;
|
border: 1px solid #dfdfdf;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
padding-top: 48px;
|
padding-top: 28px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.loadmask > .placeholder > .columns {
|
.loadmask > .placeholder > .columns {
|
||||||
|
|
|
@ -2090,6 +2090,10 @@ define([
|
||||||
console.log("Obsolete: The 'leftMenu' parameter of the 'customization' section is deprecated. Please use 'leftMenu' parameter in the 'customization.layout' section instead.");
|
console.log("Obsolete: The 'leftMenu' parameter of the 'customization' section is deprecated. Please use 'leftMenu' parameter in the 'customization.layout' section instead.");
|
||||||
if (this.appOptions.customization.rightMenu!==undefined)
|
if (this.appOptions.customization.rightMenu!==undefined)
|
||||||
console.log("Obsolete: The 'rightMenu' parameter of the 'customization' section is deprecated. Please use 'rightMenu' parameter in the 'customization.layout' section instead.");
|
console.log("Obsolete: The 'rightMenu' parameter of the 'customization' section is deprecated. Please use 'rightMenu' parameter in the 'customization.layout' section instead.");
|
||||||
|
if (this.appOptions.customization.statusBar!==undefined)
|
||||||
|
console.log("Obsolete: The 'statusBar' parameter of the 'customization' section is deprecated. Please use 'statusBar' parameter in the 'customization.layout' section instead.");
|
||||||
|
if (this.appOptions.customization.toolbar!==undefined)
|
||||||
|
console.log("Obsolete: The 'toolbar' parameter of the 'customization' section is deprecated. Please use 'toolbar' parameter in the 'customization.layout' section instead.");
|
||||||
}
|
}
|
||||||
promise = this.getApplication().getController('Common.Controllers.Plugins').applyUICustomization();
|
promise = this.getApplication().getController('Common.Controllers.Plugins').applyUICustomization();
|
||||||
}
|
}
|
||||||
|
|
|
@ -78,11 +78,15 @@ define([
|
||||||
|
|
||||||
setConfig: function(config) {
|
setConfig: function(config) {
|
||||||
this.toolbar = config.toolbar;
|
this.toolbar = config.toolbar;
|
||||||
|
var mode = config.mode;
|
||||||
this.view = this.createView('ViewTab', {
|
this.view = this.createView('ViewTab', {
|
||||||
toolbar: this.toolbar.toolbar,
|
toolbar: this.toolbar.toolbar,
|
||||||
mode: config.mode,
|
mode: mode,
|
||||||
compactToolbar: this.toolbar.toolbar.isCompactView
|
compactToolbar: this.toolbar.toolbar.isCompactView
|
||||||
});
|
});
|
||||||
|
if (mode.canBrandingExt && mode.customization && mode.customization.statusBar === false || !Common.UI.LayoutManager.isElementVisible('statusBar')) {
|
||||||
|
this.view.chStatusbar.$el.remove();
|
||||||
|
}
|
||||||
this.addListeners({
|
this.addListeners({
|
||||||
'ViewTab': {
|
'ViewTab': {
|
||||||
'zoom:selected': _.bind(this.onSelectedZoomValue, this),
|
'zoom:selected': _.bind(this.onSelectedZoomValue, this),
|
||||||
|
|
|
@ -152,7 +152,7 @@ define([
|
||||||
|
|
||||||
var _intvars = Common.Utils.InternalSettings;
|
var _intvars = Common.Utils.InternalSettings;
|
||||||
var $filemenu = $('.toolbar-fullview-panel');
|
var $filemenu = $('.toolbar-fullview-panel');
|
||||||
$filemenu.css('top', _intvars.get('toolbar-height-tabs'));
|
$filemenu.css('top', Common.UI.LayoutManager.isElementVisible('toolbar') ? _intvars.get('toolbar-height-tabs') : 0);
|
||||||
|
|
||||||
me.viewport.$el.attr('applang', me.appConfig.lang.split(/[\-_]/)[0]);
|
me.viewport.$el.attr('applang', me.appConfig.lang.split(/[\-_]/)[0]);
|
||||||
|
|
||||||
|
@ -180,7 +180,7 @@ define([
|
||||||
_intvars.set('toolbar-height-compact', _tabs_new_height);
|
_intvars.set('toolbar-height-compact', _tabs_new_height);
|
||||||
_intvars.set('toolbar-height-normal', _tabs_new_height + _intvars.get('toolbar-height-controls'));
|
_intvars.set('toolbar-height-normal', _tabs_new_height + _intvars.get('toolbar-height-controls'));
|
||||||
|
|
||||||
$filemenu.css('top', _tabs_new_height + _intvars.get('document-title-height'));
|
$filemenu.css('top', (Common.UI.LayoutManager.isElementVisible('toolbar') ? _tabs_new_height : 0) + _intvars.get('document-title-height'));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( config.customization ) {
|
if ( config.customization ) {
|
||||||
|
@ -225,6 +225,8 @@ define([
|
||||||
checkable: true,
|
checkable: true,
|
||||||
value: 'statusbar'
|
value: 'statusbar'
|
||||||
});
|
});
|
||||||
|
if ( config.canBrandingExt && config.customization && config.customization.statusBar === false || !Common.UI.LayoutManager.isElementVisible('statusBar'))
|
||||||
|
me.header.mnuitemCompactStatusBar.hide();
|
||||||
|
|
||||||
me.header.mnuitemHideFormulaBar = new Common.UI.MenuItem({
|
me.header.mnuitemHideFormulaBar = new Common.UI.MenuItem({
|
||||||
caption : me.textHideFBar,
|
caption : me.textHideFBar,
|
||||||
|
|
|
@ -294,10 +294,10 @@
|
||||||
<div class="separator long"></div>
|
<div class="separator long"></div>
|
||||||
<div class="group small">
|
<div class="group small">
|
||||||
<div class="elset">
|
<div class="elset">
|
||||||
<span class="btn-slot text" id="slot-chk-statusbar"></span>
|
<span class="btn-slot text" id="slot-chk-toolbar"></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="elset">
|
<div class="elset">
|
||||||
<span class="btn-slot text" id="slot-chk-toolbar"></span>
|
<span class="btn-slot text" id="slot-chk-statusbar"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<div id="file-menu-panel" class="toolbar-fullview-panel hint-section" style="display:none;"></div>
|
<div id="file-menu-panel" class="toolbar-fullview-panel hint-section" style="display:none;"></div>
|
||||||
</section>
|
</section>
|
||||||
<section id="app-title" class="layout-item"></section>
|
<section id="app-title" class="layout-item"></section>
|
||||||
<div id="toolbar" class="layout-item hint-section"></div>
|
<div id="toolbar" class="layout-item hint-section" data-layout-name="toolbar"></div>
|
||||||
<div class="layout-item">
|
<div class="layout-item">
|
||||||
<div id="viewport-hbox-layout" class="layout-ct hbox">
|
<div id="viewport-hbox-layout" class="layout-ct hbox">
|
||||||
<div id="left-menu" class="layout-item hint-section" data-layout-name="leftMenu" style="width: 40px;"></div>
|
<div id="left-menu" class="layout-item hint-section" data-layout-name="leftMenu" style="width: 40px;"></div>
|
||||||
|
@ -19,6 +19,6 @@
|
||||||
<div id="left-panel-history" class="layout-item hint-section"></div>
|
<div id="left-panel-history" class="layout-item hint-section"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="statusbar" class="layout-item"></div>
|
<div id="statusbar" class="layout-item" data-layout-name="statusBar"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -4,20 +4,24 @@ import { f7 } from 'framework7-react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
const ErrorController = inject('storeAppOptions')(({storeAppOptions, LoadingDocument}) => {
|
const ErrorController = inject('storeAppOptions')(({storeAppOptions, LoadingDocument}) => {
|
||||||
const {t} = useTranslation();
|
|
||||||
const _t = t("Error", { returnObjects: true });
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
Common.Notifications.on('engineCreated', (api) => {
|
const on_engine_created = k => { k.asc_registerCallback('asc_onError', onError); };
|
||||||
api.asc_registerCallback('asc_onError', onError);
|
|
||||||
});
|
const api = Common.EditorApi.get();
|
||||||
|
if ( !api ) Common.Notifications.on('engineCreated', on_engine_created);
|
||||||
|
else on_engine_created(api);
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
const api = Common.EditorApi.get();
|
const api = Common.EditorApi.get();
|
||||||
if ( api ) api.asc_unregisterCallback('asc_onError', onError);
|
if ( api ) api.asc_unregisterCallback('asc_onError', onError);
|
||||||
|
|
||||||
|
Common.Notifications.off('engineCreated', on_engine_created);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const onError = (id, level, errData) => {
|
const onError = (id, level, errData) => {
|
||||||
|
const {t} = useTranslation();
|
||||||
|
const _t = t("Error", { returnObjects: true });
|
||||||
const api = Common.EditorApi.get();
|
const api = Common.EditorApi.get();
|
||||||
|
|
||||||
if (id === Asc.c_oAscError.ID.LoadingScriptError) {
|
if (id === Asc.c_oAscError.ID.LoadingScriptError) {
|
||||||
|
|
Loading…
Reference in a new issue