[DE] Lock toolbar on changing review display mode
This commit is contained in:
parent
b3e7cf5b5c
commit
e7e077c76d
|
@ -326,7 +326,7 @@ Common.UI.HintManager = new(function() {
|
||||||
if (!_isItemDisabled(item)) {
|
if (!_isItemDisabled(item)) {
|
||||||
var leftBorder = 0,
|
var leftBorder = 0,
|
||||||
rightBorder = docW;
|
rightBorder = docW;
|
||||||
if (!_isEditDiagram && $(_currentSection).prop('id') === 'toolbar' && ($(_currentSection).find('.toolbar-mask').length > 0 || item.closest('.group').find('.toolbar-group-mask').length > 0)
|
if (!_isEditDiagram && $(_currentSection).prop('id') === 'toolbar' && ($(_currentSection).find('.toolbar-mask').length > 0)
|
||||||
|| ($('#about-menu-panel').is(':visible') && item.closest('.hint-section').prop('id') === 'right-menu')) { // don't show right menu hints when about is visible
|
|| ($('#about-menu-panel').is(':visible') && item.closest('.hint-section').prop('id') === 'right-menu')) { // don't show right menu hints when about is visible
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -535,7 +535,7 @@ Common.UI.HintManager = new(function() {
|
||||||
} else {
|
} else {
|
||||||
_isComplete = false;
|
_isComplete = false;
|
||||||
_hideHints();
|
_hideHints();
|
||||||
if (!_isEditDiagram && $(_currentSection).prop('id') === 'toolbar' && ($(_currentSection).find('.toolbar-mask').length > 0 || curr.closest('.group').find('.toolbar-group-mask').length > 0)) {
|
if (!_isEditDiagram && $(_currentSection).prop('id') === 'toolbar' && ($(_currentSection).find('.toolbar-mask').length > 0)) {
|
||||||
_resetToDefault();
|
_resetToDefault();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -100,6 +100,7 @@ define([
|
||||||
onLaunch: function () {
|
onLaunch: function () {
|
||||||
this.collection = this.getApplication().getCollection('Common.Collections.ReviewChanges');
|
this.collection = this.getApplication().getCollection('Common.Collections.ReviewChanges');
|
||||||
this.userCollection = this.getApplication().getCollection('Common.Collections.Users');
|
this.userCollection = this.getApplication().getCollection('Common.Collections.Users');
|
||||||
|
this.viewmode = false;
|
||||||
|
|
||||||
this._state = {posx: -1000, posy: -1000, popoverVisible: false, previewMode: false, compareSettings: null, wsLock: false, wsProps: []};
|
this._state = {posx: -1000, posy: -1000, popoverVisible: false, previewMode: false, compareSettings: null, wsLock: false, wsProps: []};
|
||||||
|
|
||||||
|
@ -160,13 +161,23 @@ define([
|
||||||
this.document = data.doc;
|
this.document = data.doc;
|
||||||
},
|
},
|
||||||
|
|
||||||
SetDisabled: function(state) {
|
SetDisabled: function(state, reviewMode, fillFormwMode) {
|
||||||
if (this.dlgChanges)
|
if (this.dlgChanges)
|
||||||
this.dlgChanges.close();
|
this.dlgChanges.close();
|
||||||
this.view && this.view.SetDisabled(state, this.langs, {comments: !!this._state.wsProps['Objects']});
|
if (reviewMode)
|
||||||
|
this.lockToolbar(Common.enumLock.previewReviewMode, state);
|
||||||
|
else if (fillFormwMode)
|
||||||
|
this.lockToolbar(Common.enumLock.fillFormwMode, state);
|
||||||
|
else
|
||||||
|
this.lockToolbar(Common.enumLock.viewMode, state);
|
||||||
|
|
||||||
this.setPreviewMode(state);
|
this.setPreviewMode(state);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
lockToolbar: function (causes, lock, opts) {
|
||||||
|
Common.Utils.lockControls(causes, lock, opts, this.view.getButtons());
|
||||||
|
},
|
||||||
|
|
||||||
setPreviewMode: function(mode) { //disable accept/reject in popover
|
setPreviewMode: function(mode) { //disable accept/reject in popover
|
||||||
if (this.viewmode === mode) return;
|
if (this.viewmode === mode) return;
|
||||||
this.viewmode = mode;
|
this.viewmode = mode;
|
||||||
|
@ -177,6 +188,7 @@ define([
|
||||||
this.popoverChanges && this.popoverChanges.each(function (model) {
|
this.popoverChanges && this.popoverChanges.each(function (model) {
|
||||||
model.set('hint', !me.appConfig.canReview);
|
model.set('hint', !me.appConfig.canReview);
|
||||||
});
|
});
|
||||||
|
// Common.Utils.lockControls(Common.enumLock.viewMode, this.viewmode, {array: [this.view.btnCompare]});
|
||||||
},
|
},
|
||||||
|
|
||||||
onApiShowChange: function (sdkchange) {
|
onApiShowChange: function (sdkchange) {
|
||||||
|
@ -203,8 +215,7 @@ define([
|
||||||
|
|
||||||
var btnlock = lock || !editable;
|
var btnlock = lock || !editable;
|
||||||
if (this.appConfig.canReview && !this.appConfig.isReviewOnly && this._state.lock !== btnlock) {
|
if (this.appConfig.canReview && !this.appConfig.isReviewOnly && this._state.lock !== btnlock) {
|
||||||
this.view.btnAccept.setDisabled(btnlock);
|
Common.Utils.lockControls(Common.enumLock.reviewChangelock, btnlock, {array: [this.view.btnAccept, this.view.btnReject]});
|
||||||
this.view.btnReject.setDisabled(btnlock);
|
|
||||||
if (this.dlgChanges) {
|
if (this.dlgChanges) {
|
||||||
this.dlgChanges.btnAccept.setDisabled(btnlock);
|
this.dlgChanges.btnAccept.setDisabled(btnlock);
|
||||||
this.dlgChanges.btnReject.setDisabled(btnlock);
|
this.dlgChanges.btnReject.setDisabled(btnlock);
|
||||||
|
@ -776,22 +787,22 @@ define([
|
||||||
navigation: {disable: false, previewMode: true},
|
navigation: {disable: false, previewMode: true},
|
||||||
comments: {disable: false, previewMode: true},
|
comments: {disable: false, previewMode: true},
|
||||||
chat: false,
|
chat: false,
|
||||||
review: false,
|
review: true,
|
||||||
viewport: false,
|
viewport: false,
|
||||||
documentHolder: true,
|
documentHolder: true,
|
||||||
toolbar: true,
|
toolbar: true,
|
||||||
plugins: true
|
plugins: true
|
||||||
}, 'review');
|
}, 'review');
|
||||||
|
|
||||||
if (this.view) {
|
// if (this.view) {
|
||||||
this.view.$el.find('.no-group-mask.review').css('opacity', 1);
|
// this.view.$el.find('.no-group-mask.review').css('opacity', 1);
|
||||||
|
//
|
||||||
this.view.btnsDocLang && this.view.btnsDocLang.forEach(function(button) {
|
// this.view.btnsDocLang && this.view.btnsDocLang.forEach(function(button) {
|
||||||
if ( button ) {
|
// if ( button ) {
|
||||||
button.setDisabled(disable || !this.langs || this.langs.length<1);
|
// button.setDisabled(disable || !this.langs || this.langs.length<1);
|
||||||
}
|
// }
|
||||||
}, this);
|
// }, this);
|
||||||
}
|
// }
|
||||||
},
|
},
|
||||||
|
|
||||||
createToolbarPanel: function() {
|
createToolbarPanel: function() {
|
||||||
|
@ -867,8 +878,8 @@ define([
|
||||||
}
|
}
|
||||||
me.onChangeProtectSheet();
|
me.onChangeProtectSheet();
|
||||||
if (me.view) {
|
if (me.view) {
|
||||||
me.view.btnCommentRemove && me.view.btnCommentRemove.setDisabled(!Common.localStorage.getBool(me.view.appPrefix + "settings-livecomment", true) || !!this._state.wsProps['Objects']);
|
me.lockToolbar(Common.enumLock.hideComments, !Common.localStorage.getBool(me.view.appPrefix + "settings-livecomment", true), {array: [me.view.btnCommentRemove, me.view.btnCommentResolve]});
|
||||||
me.view.btnCommentResolve && me.view.btnCommentResolve.setDisabled(!Common.localStorage.getBool(me.view.appPrefix + "settings-livecomment", true) || !!this._state.wsProps['Objects']);
|
me.lockToolbar(Common.enumLock['Objects'], !!this._state.wsProps['Objects'], {array: [me.view.btnCommentRemove, me.view.btnCommentResolve]});
|
||||||
}
|
}
|
||||||
|
|
||||||
var val = Common.localStorage.getItem(me.view.appPrefix + "settings-review-hover-mode");
|
var val = Common.localStorage.getItem(me.view.appPrefix + "settings-review-hover-mode");
|
||||||
|
@ -930,11 +941,12 @@ define([
|
||||||
|
|
||||||
setLanguages: function (array) {
|
setLanguages: function (array) {
|
||||||
this.langs = array;
|
this.langs = array;
|
||||||
this.view && this.view.btnsDocLang && this.view.btnsDocLang.forEach(function(button) {
|
this.lockToolbar(Common.enumLock.noSpellcheckLangs, this.langs.length<1, {array: this.view.btnsDocLang});
|
||||||
if ( button ) {
|
// this.view && this.view.btnsDocLang && this.view.btnsDocLang.forEach(function(button) {
|
||||||
button.setDisabled(this.langs.length<1);
|
// if ( button ) {
|
||||||
}
|
// button.setDisabled(this.langs.length<1);
|
||||||
}, this);
|
// }
|
||||||
|
// }, this);
|
||||||
},
|
},
|
||||||
|
|
||||||
onDocLanguage: function() {
|
onDocLanguage: function() {
|
||||||
|
@ -954,6 +966,7 @@ define([
|
||||||
onLostEditRights: function() {
|
onLostEditRights: function() {
|
||||||
this._readonlyRights = true;
|
this._readonlyRights = true;
|
||||||
this.view && this.view.onLostEditRights();
|
this.view && this.view.onLostEditRights();
|
||||||
|
this.view && this.lockToolbar(Common.enumLock.cantShare, true, {array: [this.view.btnSharing]});
|
||||||
},
|
},
|
||||||
|
|
||||||
changeAccessRights: function(btn,event,opts) {
|
changeAccessRights: function(btn,event,opts) {
|
||||||
|
@ -985,7 +998,7 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
onCoAuthoringDisconnect: function() {
|
onCoAuthoringDisconnect: function() {
|
||||||
this.SetDisabled(true);
|
this.lockToolbar(Common.enumLock.lostConnect, true)
|
||||||
},
|
},
|
||||||
|
|
||||||
onUpdateUsers: function() {
|
onUpdateUsers: function() {
|
||||||
|
@ -1003,15 +1016,15 @@ define([
|
||||||
if (!item.asc_getView())
|
if (!item.asc_getView())
|
||||||
length++;
|
length++;
|
||||||
});
|
});
|
||||||
this.view.btnCompare.setDisabled(length>1 || this.viewmode);
|
// this.view.btnCompare.setDisabled(length>1 || this.viewmode);
|
||||||
|
Common.Utils.lockControls(Common.enumLock.hasCoeditingUsers, length>1, {array: [this.view.btnCompare]});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
commentsShowHide: function(mode) {
|
commentsShowHide: function(mode) {
|
||||||
if (!this.view) return;
|
if (!this.view) return;
|
||||||
var value = Common.Utils.InternalSettings.get(this.view.appPrefix + "settings-livecomment");
|
var value = Common.Utils.InternalSettings.get(this.view.appPrefix + "settings-livecomment");
|
||||||
(value!==undefined) && this.view.btnCommentRemove && this.view.btnCommentRemove.setDisabled(mode != 'show' && !value || !!this._state.wsProps['Objects']);
|
(value!==undefined) && this.lockToolbar(Common.enumLock.hideComments, mode != 'show' && !value, {array: [this.view.btnCommentRemove, this.view.btnCommentResolve]});
|
||||||
(value!==undefined) && this.view.btnCommentResolve && this.view.btnCommentResolve.setDisabled(mode != 'show' && !value || !!this._state.wsProps['Objects']);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
onChangeProtectSheet: function(props) {
|
onChangeProtectSheet: function(props) {
|
||||||
|
@ -1023,11 +1036,7 @@ define([
|
||||||
this._state.wsLock = props ? props.wsLock : false;
|
this._state.wsLock = props ? props.wsLock : false;
|
||||||
|
|
||||||
if (!this.view) return;
|
if (!this.view) return;
|
||||||
var leftmenu = this.getApplication().getController('LeftMenu'),
|
this.lockToolbar(Common.enumLock['Objects'], !!this._state.wsProps['Objects'], {array: [this.view.btnCommentRemove, this.view.btnCommentResolve]});
|
||||||
isCommentsVisible = leftmenu && leftmenu.isCommentsVisible();
|
|
||||||
var value = Common.Utils.InternalSettings.get(this.view.appPrefix + "settings-livecomment");
|
|
||||||
(value!==undefined) && this.view.btnCommentRemove && this.view.btnCommentRemove.setDisabled(!isCommentsVisible && !value || !!this._state.wsProps['Objects']);
|
|
||||||
(value!==undefined) && this.view.btnCommentResolve && this.view.btnCommentResolve.setDisabled(!isCommentsVisible && !value || !!this._state.wsProps['Objects']);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
textInserted: '<b>Inserted:</b>',
|
textInserted: '<b>Inserted:</b>',
|
||||||
|
|
|
@ -58,12 +58,15 @@ define([
|
||||||
Common.enumLock = {};
|
Common.enumLock = {};
|
||||||
|
|
||||||
var enumLock = {
|
var enumLock = {
|
||||||
|
noSpellcheckLangs: 'no-spellcheck-langs',
|
||||||
isReviewOnly: 'review-only',
|
isReviewOnly: 'review-only',
|
||||||
reviewChangelock: 'review-change-lock',
|
reviewChangelock: 'review-change-lock',
|
||||||
hasCoeditingUsers: 'has-coediting-users',
|
hasCoeditingUsers: 'has-coediting-users',
|
||||||
previewReviewMode: 'preview-review-mode', // display mode on Collaboration tab
|
previewReviewMode: 'preview-review-mode', // display mode on Collaboration tab
|
||||||
viewFormMode: 'view-form-mode', // view form mode on Forms tab
|
viewFormMode: 'view-form-mode', // view form mode on Forms tab
|
||||||
viewMode: 'view-mode' // view mode on disconnect, version history etc
|
viewMode: 'view-mode', // view mode on disconnect, version history etc
|
||||||
|
hideComments: 'hide-comments', // no live comments and left panel is closed
|
||||||
|
cantShare: 'cant-share'
|
||||||
};
|
};
|
||||||
for (var key in enumLock) {
|
for (var key in enumLock) {
|
||||||
if (enumLock.hasOwnProperty(key)) {
|
if (enumLock.hasOwnProperty(key)) {
|
||||||
|
@ -246,44 +249,52 @@ define([
|
||||||
Common.UI.BaseView.prototype.initialize.call(this, options);
|
Common.UI.BaseView.prototype.initialize.call(this, options);
|
||||||
|
|
||||||
this.appConfig = options.mode;
|
this.appConfig = options.mode;
|
||||||
|
this.lockedControls = [];
|
||||||
var filter = Common.localStorage.getKeysFilter();
|
var filter = Common.localStorage.getKeysFilter();
|
||||||
this.appPrefix = (filter && filter.length) ? filter.split(',')[0] : '';
|
this.appPrefix = (filter && filter.length) ? filter.split(',')[0] : '';
|
||||||
|
var _set = Common.enumLock;
|
||||||
if ( this.appConfig.canReview ) {
|
if ( this.appConfig.canReview ) {
|
||||||
this.btnAccept = new Common.UI.Button({
|
this.btnAccept = new Common.UI.Button({
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
caption: this.txtAccept,
|
caption: this.txtAccept,
|
||||||
split: !this.appConfig.canUseReviewPermissions,
|
split: !this.appConfig.canUseReviewPermissions,
|
||||||
iconCls: 'toolbar__icon btn-review-save',
|
iconCls: 'toolbar__icon btn-review-save',
|
||||||
|
lock: [_set.reviewChangelock, _set.isReviewOnly, _set.previewReviewMode, _set.lostConnect],
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'bottom',
|
dataHintDirection: 'bottom',
|
||||||
dataHintOffset: 'small'
|
dataHintOffset: 'small'
|
||||||
});
|
});
|
||||||
|
this.lockedControls.push(this.btnAccept);
|
||||||
|
|
||||||
this.btnReject = new Common.UI.Button({
|
this.btnReject = new Common.UI.Button({
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
caption: this.txtReject,
|
caption: this.txtReject,
|
||||||
split: !this.appConfig.canUseReviewPermissions,
|
split: !this.appConfig.canUseReviewPermissions,
|
||||||
iconCls: 'toolbar__icon btn-review-deny',
|
iconCls: 'toolbar__icon btn-review-deny',
|
||||||
|
lock: [_set.reviewChangelock, _set.isReviewOnly, _set.previewReviewMode, _set.lostConnect],
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'bottom',
|
dataHintDirection: 'bottom',
|
||||||
dataHintOffset: 'small'
|
dataHintOffset: 'small'
|
||||||
});
|
});
|
||||||
|
this.lockedControls.push(this.btnReject);
|
||||||
|
|
||||||
if (this.appConfig.canFeatureComparison)
|
if (this.appConfig.canFeatureComparison) {
|
||||||
this.btnCompare = new Common.UI.Button({
|
this.btnCompare = new Common.UI.Button({
|
||||||
cls : 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
caption : this.txtCompare,
|
caption: this.txtCompare,
|
||||||
split : true,
|
split: true,
|
||||||
iconCls: 'toolbar__icon btn-compare',
|
iconCls: 'toolbar__icon btn-compare',
|
||||||
|
lock: [_set.hasCoeditingUsers, _set.previewReviewMode, _set.lostConnect],
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'bottom',
|
dataHintDirection: 'bottom',
|
||||||
dataHintOffset: 'small'
|
dataHintOffset: 'small'
|
||||||
});
|
});
|
||||||
|
this.lockedControls.push(this.btnCompare);
|
||||||
|
}
|
||||||
this.btnTurnOn = new Common.UI.Button({
|
this.btnTurnOn = new Common.UI.Button({
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon btn-ic-review',
|
iconCls: 'toolbar__icon btn-ic-review',
|
||||||
|
lock: [_set.previewReviewMode, _set.lostConnect],
|
||||||
caption: this.txtTurnon,
|
caption: this.txtTurnon,
|
||||||
split: !this.appConfig.isReviewOnly,
|
split: !this.appConfig.isReviewOnly,
|
||||||
enableToggle: true,
|
enableToggle: true,
|
||||||
|
@ -292,25 +303,30 @@ define([
|
||||||
dataHintOffset: 'small'
|
dataHintOffset: 'small'
|
||||||
});
|
});
|
||||||
this.btnsTurnReview = [this.btnTurnOn];
|
this.btnsTurnReview = [this.btnTurnOn];
|
||||||
|
this.lockedControls.push(this.btnTurnOn);
|
||||||
}
|
}
|
||||||
if (this.appConfig.canViewReview) {
|
if (this.appConfig.canViewReview) {
|
||||||
this.btnPrev = new Common.UI.Button({
|
this.btnPrev = new Common.UI.Button({
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon btn-review-prev',
|
iconCls: 'toolbar__icon btn-review-prev',
|
||||||
|
lock: [_set.previewReviewMode, _set.lostConnect],
|
||||||
caption: this.txtPrev,
|
caption: this.txtPrev,
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'bottom',
|
dataHintDirection: 'bottom',
|
||||||
dataHintOffset: 'small'
|
dataHintOffset: 'small'
|
||||||
});
|
});
|
||||||
|
this.lockedControls.push(this.btnPrev);
|
||||||
|
|
||||||
this.btnNext = new Common.UI.Button({
|
this.btnNext = new Common.UI.Button({
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon btn-review-next',
|
iconCls: 'toolbar__icon btn-review-next',
|
||||||
|
lock: [_set.previewReviewMode, _set.lostConnect],
|
||||||
caption: this.txtNext,
|
caption: this.txtNext,
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'bottom',
|
dataHintDirection: 'bottom',
|
||||||
dataHintOffset: 'small'
|
dataHintOffset: 'small'
|
||||||
});
|
});
|
||||||
|
this.lockedControls.push(this.btnNext);
|
||||||
|
|
||||||
if (!this.appConfig.isRestrictedEdit && !(this.appConfig.customization && this.appConfig.customization.review && this.appConfig.customization.review.hideReviewDisplay)) {// hide Display mode option for fillForms and commenting mode
|
if (!this.appConfig.isRestrictedEdit && !(this.appConfig.customization && this.appConfig.customization.review && this.appConfig.customization.review.hideReviewDisplay)) {// hide Display mode option for fillForms and commenting mode
|
||||||
var menuTemplate = _.template('<a id="<%= id %>" tabindex="-1" type="menuitem"><div><%= caption %></div>' +
|
var menuTemplate = _.template('<a id="<%= id %>" tabindex="-1" type="menuitem"><div><%= caption %></div>' +
|
||||||
|
@ -366,6 +382,7 @@ define([
|
||||||
dataHintDirection: 'bottom',
|
dataHintDirection: 'bottom',
|
||||||
dataHintOffset: 'small'
|
dataHintOffset: 'small'
|
||||||
});
|
});
|
||||||
|
this.lockedControls.push(this.btnReviewView);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -373,23 +390,27 @@ define([
|
||||||
this.btnSharing = new Common.UI.Button({
|
this.btnSharing = new Common.UI.Button({
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon btn-ic-sharing',
|
iconCls: 'toolbar__icon btn-ic-sharing',
|
||||||
|
lock: [_set.cantShare, _set.lostConnect],
|
||||||
caption: this.txtSharing,
|
caption: this.txtSharing,
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'bottom',
|
dataHintDirection: 'bottom',
|
||||||
dataHintOffset: 'small'
|
dataHintOffset: 'small'
|
||||||
});
|
});
|
||||||
|
this.lockedControls.push(this.btnSharing);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.appConfig.isEdit && !this.appConfig.isOffline && this.appConfig.canCoAuthoring && this.appConfig.canChangeCoAuthoring) {
|
if (this.appConfig.isEdit && !this.appConfig.isOffline && this.appConfig.canCoAuthoring && this.appConfig.canChangeCoAuthoring) {
|
||||||
this.btnCoAuthMode = new Common.UI.Button({
|
this.btnCoAuthMode = new Common.UI.Button({
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon btn-ic-coedit',
|
iconCls: 'toolbar__icon btn-ic-coedit',
|
||||||
|
lock: [_set.lostConnect],
|
||||||
caption: this.txtCoAuthMode,
|
caption: this.txtCoAuthMode,
|
||||||
menu: true,
|
menu: true,
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'bottom',
|
dataHintDirection: 'bottom',
|
||||||
dataHintOffset: 'small'
|
dataHintOffset: 'small'
|
||||||
});
|
});
|
||||||
|
this.lockedControls.push(this.btnCoAuthMode);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.btnsSpelling = [];
|
this.btnsSpelling = [];
|
||||||
|
@ -399,23 +420,27 @@ define([
|
||||||
this.btnHistory = new Common.UI.Button({
|
this.btnHistory = new Common.UI.Button({
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon btn-ic-history',
|
iconCls: 'toolbar__icon btn-ic-history',
|
||||||
|
lock: [_set.lostConnect],
|
||||||
caption: this.txtHistory,
|
caption: this.txtHistory,
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'bottom',
|
dataHintDirection: 'bottom',
|
||||||
dataHintOffset: 'small'
|
dataHintOffset: 'small'
|
||||||
});
|
});
|
||||||
|
this.lockedControls.push(this.btnHistory);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.appConfig.canCoAuthoring && this.appConfig.canChat) {
|
if (this.appConfig.canCoAuthoring && this.appConfig.canChat) {
|
||||||
this.btnChat = new Common.UI.Button({
|
this.btnChat = new Common.UI.Button({
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon btn-ic-chat',
|
iconCls: 'toolbar__icon btn-ic-chat',
|
||||||
|
lock: [_set.lostConnect],
|
||||||
caption: this.txtChat,
|
caption: this.txtChat,
|
||||||
enableToggle: true,
|
enableToggle: true,
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'bottom',
|
dataHintDirection: 'bottom',
|
||||||
dataHintOffset: 'small'
|
dataHintOffset: 'small'
|
||||||
});
|
});
|
||||||
|
this.lockedControls.push(this.btnChat);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( this.appConfig.canCoAuthoring && this.appConfig.canComments ) {
|
if ( this.appConfig.canCoAuthoring && this.appConfig.canComments ) {
|
||||||
|
@ -424,19 +449,23 @@ define([
|
||||||
caption: this.txtCommentRemove,
|
caption: this.txtCommentRemove,
|
||||||
split: true,
|
split: true,
|
||||||
iconCls: 'toolbar__icon btn-rem-comment',
|
iconCls: 'toolbar__icon btn-rem-comment',
|
||||||
|
lock: [_set.previewReviewMode, _set.hideComments, _set['Objects'], _set.lostConnect],
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'bottom',
|
dataHintDirection: 'bottom',
|
||||||
dataHintOffset: 'small'
|
dataHintOffset: 'small'
|
||||||
});
|
});
|
||||||
|
this.lockedControls.push(this.btnCommentRemove);
|
||||||
this.btnCommentResolve = new Common.UI.Button({
|
this.btnCommentResolve = new Common.UI.Button({
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
caption: this.txtCommentResolve,
|
caption: this.txtCommentResolve,
|
||||||
split: true,
|
split: true,
|
||||||
iconCls: 'toolbar__icon btn-resolve-all',
|
iconCls: 'toolbar__icon btn-resolve-all',
|
||||||
|
lock: [_set.previewReviewMode, _set.hideComments, _set['Objects'], _set.lostConnect],
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'bottom',
|
dataHintDirection: 'bottom',
|
||||||
dataHintOffset: 'small'
|
dataHintOffset: 'small'
|
||||||
});
|
});
|
||||||
|
this.lockedControls.push(this.btnCommentResolve);
|
||||||
}
|
}
|
||||||
|
|
||||||
Common.NotificationCenter.on('app:ready', this.onAppReady.bind(this));
|
Common.NotificationCenter.on('app:ready', this.onAppReady.bind(this));
|
||||||
|
@ -541,8 +570,7 @@ define([
|
||||||
me.btnCompare.updateHint(me.tipCompare);
|
me.btnCompare.updateHint(me.tipCompare);
|
||||||
}
|
}
|
||||||
|
|
||||||
config.isReviewOnly && me.btnAccept.setDisabled(true);
|
Common.Utils.lockControls(Common.enumLock.isReviewOnly, config.isReviewOnly, {array: [me.btnAccept, me.btnReject]});
|
||||||
config.isReviewOnly && me.btnReject.setDisabled(true);
|
|
||||||
}
|
}
|
||||||
if (me.appConfig.canViewReview) {
|
if (me.appConfig.canViewReview) {
|
||||||
me.btnPrev.updateHint(me.hintPrev);
|
me.btnPrev.updateHint(me.hintPrev);
|
||||||
|
@ -702,6 +730,7 @@ define([
|
||||||
var button = new Common.UI.Button({
|
var button = new Common.UI.Button({
|
||||||
cls : 'btn-toolbar',
|
cls : 'btn-toolbar',
|
||||||
iconCls : 'toolbar__icon btn-ic-review',
|
iconCls : 'toolbar__icon btn-ic-review',
|
||||||
|
lock: [Common.enumLock.viewMode, Common.enumLock.previewReviewMode, Common.enumLock.lostConnect],
|
||||||
hintAnchor : 'top',
|
hintAnchor : 'top',
|
||||||
hint : this.tipReview,
|
hint : this.tipReview,
|
||||||
split : !this.appConfig.isReviewOnly,
|
split : !this.appConfig.isReviewOnly,
|
||||||
|
@ -741,13 +770,14 @@ define([
|
||||||
});
|
});
|
||||||
|
|
||||||
this.btnsTurnReview.push(button);
|
this.btnsTurnReview.push(button);
|
||||||
|
this.lockedControls.push(button);
|
||||||
return button;
|
return button;
|
||||||
} else
|
} else
|
||||||
if ( type == 'spelling' ) {
|
if ( type == 'spelling' ) {
|
||||||
button = new Common.UI.Button({
|
button = new Common.UI.Button({
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-ic-docspell',
|
iconCls: 'toolbar__icon btn-ic-docspell',
|
||||||
|
lock: [Common.enumLock.viewMode, Common.enumLock.previewReviewMode],
|
||||||
hintAnchor : 'top',
|
hintAnchor : 'top',
|
||||||
hint: this.tipSetSpelling,
|
hint: this.tipSetSpelling,
|
||||||
enableToggle: true,
|
enableToggle: true,
|
||||||
|
@ -757,25 +787,30 @@ define([
|
||||||
visible: Common.UI.FeaturesManager.canChange('spellcheck')
|
visible: Common.UI.FeaturesManager.canChange('spellcheck')
|
||||||
});
|
});
|
||||||
this.btnsSpelling.push(button);
|
this.btnsSpelling.push(button);
|
||||||
|
this.lockedControls.push(button);
|
||||||
return button;
|
return button;
|
||||||
} else if (type == 'doclang' && parent == 'statusbar' ) {
|
} else if (type == 'doclang' && parent == 'statusbar' ) {
|
||||||
button = new Common.UI.Button({
|
button = new Common.UI.Button({
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-ic-doclang',
|
iconCls: 'toolbar__icon btn-ic-doclang',
|
||||||
|
lock: [Common.enumLock.viewMode, Common.enumLock.previewReviewMode, Common.enumLock.noSpellcheckLangs, Common.enumLock.lostConnect],
|
||||||
hintAnchor : 'top',
|
hintAnchor : 'top',
|
||||||
hint: this.tipSetDocLang,
|
hint: this.tipSetDocLang,
|
||||||
disabled: true,
|
|
||||||
dataHint: '0',
|
dataHint: '0',
|
||||||
dataHintDirection: 'top',
|
dataHintDirection: 'top',
|
||||||
dataHintOffset: 'small'
|
dataHintOffset: 'small'
|
||||||
});
|
});
|
||||||
this.btnsDocLang.push(button);
|
this.btnsDocLang.push(button);
|
||||||
|
this.lockedControls.push(button);
|
||||||
|
Common.Utils.lockControls(Common.enumLock.noSpellcheckLangs, true, {array: [button]});
|
||||||
return button;
|
return button;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
getButtons: function() {
|
||||||
|
return this.lockedControls;
|
||||||
|
},
|
||||||
|
|
||||||
getUserName: function (username) {
|
getUserName: function (username) {
|
||||||
return Common.Utils.String.htmlEncode(AscCommon.UserInfoParser.getParsedName(username));
|
return Common.Utils.String.htmlEncode(AscCommon.UserInfoParser.getParsedName(username));
|
||||||
},
|
},
|
||||||
|
@ -832,33 +867,29 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
SetDisabled: function (state, langs, protectProps) {
|
SetDisabled: function (state, langs, protectProps) {
|
||||||
this.btnsSpelling && this.btnsSpelling.forEach(function(button) {
|
// this.btnsSpelling && this.btnsSpelling.forEach(function(button) {
|
||||||
if ( button ) {
|
// if ( button ) {
|
||||||
button.setDisabled(state);
|
// button.setDisabled(state);
|
||||||
}
|
// }
|
||||||
}, this);
|
// }, this);
|
||||||
this.btnsDocLang && this.btnsDocLang.forEach(function(button) {
|
// this.btnsDocLang && this.btnsDocLang.forEach(function(button) {
|
||||||
if ( button ) {
|
// if ( button ) {
|
||||||
button.setDisabled(state || langs && langs.length<1);
|
// button.setDisabled(state || langs && langs.length<1);
|
||||||
}
|
// }
|
||||||
}, this);
|
// }, this);
|
||||||
this.btnsTurnReview && this.btnsTurnReview.forEach(function(button) {
|
// this.btnsTurnReview && this.btnsTurnReview.forEach(function(button) {
|
||||||
if ( button ) {
|
// if ( button ) {
|
||||||
button.setDisabled(state);
|
// button.setDisabled(state);
|
||||||
}
|
// }
|
||||||
}, this);
|
// }, this);
|
||||||
// this.btnChat && this.btnChat.setDisabled(state);
|
// this.btnChat && this.btnChat.setDisabled(state);
|
||||||
|
|
||||||
this.btnCommentRemove && this.btnCommentRemove.setDisabled(state || !Common.Utils.InternalSettings.get(this.appPrefix + "settings-livecomment") || protectProps && protectProps.comments);
|
// this.btnCommentRemove && this.btnCommentRemove.setDisabled(state || !Common.Utils.InternalSettings.get(this.appPrefix + "settings-livecomment") || protectProps && protectProps.comments);
|
||||||
this.btnCommentResolve && this.btnCommentResolve.setDisabled(state || !Common.Utils.InternalSettings.get(this.appPrefix + "settings-livecomment") || protectProps && protectProps.comments);
|
// this.btnCommentResolve && this.btnCommentResolve.setDisabled(state || !Common.Utils.InternalSettings.get(this.appPrefix + "settings-livecomment") || protectProps && protectProps.comments);
|
||||||
},
|
},
|
||||||
|
|
||||||
onLostEditRights: function() {
|
onLostEditRights: function() {
|
||||||
this._readonlyRights = true;
|
this._readonlyRights = true;
|
||||||
if (!this.rendered)
|
|
||||||
return;
|
|
||||||
|
|
||||||
this.btnSharing && this.btnSharing.setDisabled(true);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
txtAccept: 'Accept',
|
txtAccept: 'Accept',
|
||||||
|
|
|
@ -772,7 +772,7 @@ define([
|
||||||
app.getController('Statusbar').getView('Statusbar').SetDisabled(disable);
|
app.getController('Statusbar').getView('Statusbar').SetDisabled(disable);
|
||||||
}
|
}
|
||||||
if (options.review) {
|
if (options.review) {
|
||||||
app.getController('Common.Controllers.ReviewChanges').SetDisabled(disable);
|
app.getController('Common.Controllers.ReviewChanges').SetDisabled(disable, options.reviewMode, options.fillFormwMode);
|
||||||
}
|
}
|
||||||
if (options.viewport) {
|
if (options.viewport) {
|
||||||
app.getController('Viewport').SetDisabled(disable);
|
app.getController('Viewport').SetDisabled(disable);
|
||||||
|
|
|
@ -3046,38 +3046,21 @@ define([
|
||||||
if (disable && mask.length>0 || !disable && mask.length==0) return;
|
if (disable && mask.length>0 || !disable && mask.length==0) return;
|
||||||
|
|
||||||
var toolbar = this.toolbar;
|
var toolbar = this.toolbar;
|
||||||
|
if (reviewmode)
|
||||||
|
this.toolbar.lockToolbar(Common.enumLock.previewReviewMode, disable);
|
||||||
|
else if (fillformmode)
|
||||||
|
this.toolbar.lockToolbar(Common.enumLock.fillFormwMode, disable);
|
||||||
|
|
||||||
if(disable) {
|
if(disable) {
|
||||||
if (reviewmode) {
|
if (reviewmode || fillformmode)
|
||||||
mask = $("<div class='toolbar-group-mask'>").appendTo(toolbar.$el.find('.toolbar section.panel .group:not(.no-mask):not(.no-group-mask.review):not(.no-group-mask.inner-elset)'));
|
mask = $("<div class='toolbar-group-mask'>").appendTo(toolbar.$el.find('.toolbar'));
|
||||||
mask = $("<div class='toolbar-group-mask'>").appendTo(toolbar.$el.find('.toolbar section.panel .group.no-group-mask.inner-elset .elset'));
|
else
|
||||||
} else if (fillformmode) {
|
|
||||||
mask = $("<div class='toolbar-group-mask'>").appendTo(toolbar.$el.find('.toolbar section.panel .group:not(.no-mask):not(.no-group-mask.form-view):not(.no-group-mask.inner-elset)'));
|
|
||||||
mask = $("<div class='toolbar-group-mask'>").appendTo(toolbar.$el.find('.toolbar section.panel .group.no-group-mask.inner-elset .elset:not(.no-group-mask.form-view)'));
|
|
||||||
} else
|
|
||||||
mask = $("<div class='toolbar-mask'>").appendTo(toolbar.$el.find('.toolbar'));
|
mask = $("<div class='toolbar-mask'>").appendTo(toolbar.$el.find('.toolbar'));
|
||||||
} else {
|
} else {
|
||||||
mask.remove();
|
mask.remove();
|
||||||
}
|
}
|
||||||
$('.no-group-mask').each(function(index, item){
|
toolbar.$el.find('.toolbar').toggleClass('masked', $('.toolbar-mask').length>0);
|
||||||
var $el = $(item);
|
|
||||||
if ($el.find('> .toolbar-group-mask').length>0)
|
|
||||||
$el.css('opacity', 0.4);
|
|
||||||
else {
|
|
||||||
$el.css('opacity', reviewmode || fillformmode || !disable ? 1 : 0.4);
|
|
||||||
$el.find('.elset').each(function(index, elitem){
|
|
||||||
var $elset = $(elitem);
|
|
||||||
if ($elset.find('> .toolbar-group-mask').length>0) {
|
|
||||||
$elset.css('opacity', 0.4);
|
|
||||||
} else {
|
|
||||||
$elset.css('opacity', reviewmode || fillformmode || !disable ? 1 : 0.4);
|
|
||||||
}
|
|
||||||
$el.css('opacity', 1);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
disable = disable || ((reviewmode || fillformmode) ? toolbar_mask.length>0 : group_mask.length>0);
|
disable = disable || ((reviewmode || fillformmode) ? toolbar_mask.length>0 : group_mask.length>0);
|
||||||
toolbar.$el.find('.toolbar').toggleClass('masked', disable);
|
|
||||||
if ( toolbar.synchTooltip )
|
if ( toolbar.synchTooltip )
|
||||||
toolbar.synchTooltip.hide();
|
toolbar.synchTooltip.hide();
|
||||||
|
|
||||||
|
|
|
@ -154,7 +154,7 @@ define([
|
||||||
this.btnTextField = new Common.UI.Button({
|
this.btnTextField = new Common.UI.Button({
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon btn-text-field',
|
iconCls: 'toolbar__icon btn-text-field',
|
||||||
lock: [_set.paragraphLock, _set.headerLock, _set.controlPlain, _set.contentLock, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.headerLock, _set.controlPlain, _set.contentLock, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
caption: this.capBtnText,
|
caption: this.capBtnText,
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'bottom',
|
dataHintDirection: 'bottom',
|
||||||
|
@ -165,7 +165,7 @@ define([
|
||||||
this.btnComboBox = new Common.UI.Button({
|
this.btnComboBox = new Common.UI.Button({
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon btn-combo-box',
|
iconCls: 'toolbar__icon btn-combo-box',
|
||||||
lock: [_set.paragraphLock, _set.headerLock, _set.controlPlain, _set.contentLock, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.headerLock, _set.controlPlain, _set.contentLock, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
caption: this.capBtnComboBox,
|
caption: this.capBtnComboBox,
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'bottom',
|
dataHintDirection: 'bottom',
|
||||||
|
@ -176,7 +176,7 @@ define([
|
||||||
this.btnDropDown = new Common.UI.Button({
|
this.btnDropDown = new Common.UI.Button({
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon btn-dropdown',
|
iconCls: 'toolbar__icon btn-dropdown',
|
||||||
lock: [_set.paragraphLock, _set.headerLock, _set.controlPlain, _set.contentLock, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.headerLock, _set.controlPlain, _set.contentLock, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
caption: this.capBtnDropDown,
|
caption: this.capBtnDropDown,
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'bottom',
|
dataHintDirection: 'bottom',
|
||||||
|
@ -187,7 +187,7 @@ define([
|
||||||
this.btnCheckBox = new Common.UI.Button({
|
this.btnCheckBox = new Common.UI.Button({
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon btn-checkbox',
|
iconCls: 'toolbar__icon btn-checkbox',
|
||||||
lock: [_set.paragraphLock, _set.headerLock, _set.controlPlain, _set.contentLock, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.headerLock, _set.controlPlain, _set.contentLock, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
caption: this.capBtnCheckBox,
|
caption: this.capBtnCheckBox,
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'bottom',
|
dataHintDirection: 'bottom',
|
||||||
|
@ -198,7 +198,7 @@ define([
|
||||||
this.btnRadioBox = new Common.UI.Button({
|
this.btnRadioBox = new Common.UI.Button({
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon btn-radio-button',
|
iconCls: 'toolbar__icon btn-radio-button',
|
||||||
lock: [_set.paragraphLock, _set.headerLock, _set.controlPlain, _set.contentLock, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.headerLock, _set.controlPlain, _set.contentLock, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
caption: this.capBtnRadioBox,
|
caption: this.capBtnRadioBox,
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'bottom',
|
dataHintDirection: 'bottom',
|
||||||
|
@ -209,7 +209,7 @@ define([
|
||||||
this.btnImageField = new Common.UI.Button({
|
this.btnImageField = new Common.UI.Button({
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon btn-insertimage',
|
iconCls: 'toolbar__icon btn-insertimage',
|
||||||
lock: [_set.paragraphLock, _set.headerLock, _set.controlPlain, _set.contentLock, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.headerLock, _set.controlPlain, _set.contentLock, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
caption: this.capBtnImage,
|
caption: this.capBtnImage,
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'bottom',
|
dataHintDirection: 'bottom',
|
||||||
|
@ -220,7 +220,7 @@ define([
|
||||||
this.btnViewForm = new Common.UI.Button({
|
this.btnViewForm = new Common.UI.Button({
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon btn-sheet-view',
|
iconCls: 'toolbar__icon btn-sheet-view',
|
||||||
lock: [_set.lostConnect, _set.disableOnStart],
|
lock: [ _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
caption: this.capBtnView,
|
caption: this.capBtnView,
|
||||||
enableToggle: true,
|
enableToggle: true,
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
|
@ -232,7 +232,7 @@ define([
|
||||||
this.btnClearFields = new Common.UI.Button({
|
this.btnClearFields = new Common.UI.Button({
|
||||||
cls : 'btn-toolbar',
|
cls : 'btn-toolbar',
|
||||||
iconCls : 'toolbar__icon btn-clearstyle',
|
iconCls : 'toolbar__icon btn-clearstyle',
|
||||||
lock: [_set.lostConnect, _set.disableOnStart],
|
lock: [ _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
caption : this.textClearFields,
|
caption : this.textClearFields,
|
||||||
dataHint : '1',
|
dataHint : '1',
|
||||||
dataHintDirection: 'left',
|
dataHintDirection: 'left',
|
||||||
|
@ -243,7 +243,7 @@ define([
|
||||||
this.btnHighlight = new Common.UI.ButtonColored({
|
this.btnHighlight = new Common.UI.ButtonColored({
|
||||||
cls : 'btn-toolbar',
|
cls : 'btn-toolbar',
|
||||||
iconCls : 'toolbar__icon btn-highlight',
|
iconCls : 'toolbar__icon btn-highlight',
|
||||||
lock: [_set.lostConnect, _set.disableOnStart],
|
lock: [ _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
caption : this.textHighlight,
|
caption : this.textHighlight,
|
||||||
menu : true,
|
menu : true,
|
||||||
additionalItems: [ this.mnuNoFormsColor = new Common.UI.MenuItem({
|
additionalItems: [ this.mnuNoFormsColor = new Common.UI.MenuItem({
|
||||||
|
@ -269,7 +269,7 @@ define([
|
||||||
this.btnPrevForm = new Common.UI.Button({
|
this.btnPrevForm = new Common.UI.Button({
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon previous-field',
|
iconCls: 'toolbar__icon previous-field',
|
||||||
lock: [_set.lostConnect, _set.disableOnStart],
|
lock: [ _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
caption: this.capBtnPrev,
|
caption: this.capBtnPrev,
|
||||||
// disabled: this.appConfig.isEdit && this.appConfig.canFeatureContentControl && this.appConfig.canFeatureForms, // disable only for edit mode
|
// disabled: this.appConfig.isEdit && this.appConfig.canFeatureContentControl && this.appConfig.canFeatureForms, // disable only for edit mode
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
|
@ -281,7 +281,7 @@ define([
|
||||||
this.btnNextForm = new Common.UI.Button({
|
this.btnNextForm = new Common.UI.Button({
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon next-field',
|
iconCls: 'toolbar__icon next-field',
|
||||||
lock: [_set.lostConnect, _set.disableOnStart],
|
lock: [ _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
caption: this.capBtnNext,
|
caption: this.capBtnNext,
|
||||||
// disabled: this.appConfig.isEdit && this.appConfig.canFeatureContentControl && this.appConfig.canFeatureForms, // disable only for edit mode,
|
// disabled: this.appConfig.isEdit && this.appConfig.canFeatureContentControl && this.appConfig.canFeatureForms, // disable only for edit mode,
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
|
|
|
@ -162,13 +162,13 @@ define([
|
||||||
$host = me.toolbar.$el;
|
$host = me.toolbar.$el;
|
||||||
|
|
||||||
this.btnsContents = Common.Utils.injectButtons($host.find('.btn-slot.btn-contents'), '', 'toolbar__icon btn-contents', me.capBtnInsContents,
|
this.btnsContents = Common.Utils.injectButtons($host.find('.btn-slot.btn-contents'), '', 'toolbar__icon btn-contents', me.capBtnInsContents,
|
||||||
[_set.inHeader, _set.richEditLock, _set.plainEditLock, _set.richDelLock, _set.plainDelLock, _set.lostConnect, _set.disableOnStart],
|
[_set.inHeader, _set.richEditLock, _set.plainEditLock, _set.richDelLock, _set.plainDelLock, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
true, true, undefined, '1', 'bottom', 'small');
|
true, true, undefined, '1', 'bottom', 'small');
|
||||||
this.btnsNotes = Common.Utils.injectButtons($host.find('.btn-slot.slot-notes'), '', 'toolbar__icon btn-notes', me.capBtnInsFootnote,
|
this.btnsNotes = Common.Utils.injectButtons($host.find('.btn-slot.slot-notes'), '', 'toolbar__icon btn-notes', me.capBtnInsFootnote,
|
||||||
[_set.paragraphLock, _set.inEquation, _set.inImage, _set.inHeader, _set.controlPlain, _set.richEditLock, _set.plainEditLock, _set.lostConnect, _set.disableOnStart],
|
[_set.paragraphLock, _set.inEquation, _set.inImage, _set.inHeader, _set.controlPlain, _set.richEditLock, _set.plainEditLock, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
true, true, undefined, '1', 'bottom', 'small');
|
true, true, undefined, '1', 'bottom', 'small');
|
||||||
this.btnsHyperlink = Common.Utils.injectButtons($host.find('.btn-slot.slot-inshyperlink'), '', 'toolbar__icon btn-inserthyperlink', me.capBtnInsLink,
|
this.btnsHyperlink = Common.Utils.injectButtons($host.find('.btn-slot.slot-inshyperlink'), '', 'toolbar__icon btn-inserthyperlink', me.capBtnInsLink,
|
||||||
[_set.paragraphLock, _set.headerLock, _set.hyperlinkLock, _set.lostConnect, _set.disableOnStart],
|
[_set.paragraphLock, _set.headerLock, _set.hyperlinkLock, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
undefined, undefined, undefined, '1', 'bottom', 'small');
|
undefined, undefined, undefined, '1', 'bottom', 'small');
|
||||||
Array.prototype.push.apply(this.paragraphControls, this.btnsContents.concat(this.btnsNotes, this.btnsHyperlink));
|
Array.prototype.push.apply(this.paragraphControls, this.btnsContents.concat(this.btnsNotes, this.btnsHyperlink));
|
||||||
|
|
||||||
|
@ -176,7 +176,7 @@ define([
|
||||||
parentEl: $host.find('#slot-btn-contents-update'),
|
parentEl: $host.find('#slot-btn-contents-update'),
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon btn-update',
|
iconCls: 'toolbar__icon btn-update',
|
||||||
lock: [_set.lostConnect, _set.disableOnStart],
|
lock: [ _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
caption: this.capBtnContentsUpdate,
|
caption: this.capBtnContentsUpdate,
|
||||||
split: true,
|
split: true,
|
||||||
menu: true,
|
menu: true,
|
||||||
|
@ -190,7 +190,7 @@ define([
|
||||||
parentEl: $host.find('#slot-btn-bookmarks'),
|
parentEl: $host.find('#slot-btn-bookmarks'),
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon btn-bookmarks',
|
iconCls: 'toolbar__icon btn-bookmarks',
|
||||||
lock: [_set.paragraphLock, _set.inHeader, _set.headerLock, _set.controlPlain, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.inHeader, _set.headerLock, _set.controlPlain, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
caption: this.capBtnBookmarks,
|
caption: this.capBtnBookmarks,
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'bottom',
|
dataHintDirection: 'bottom',
|
||||||
|
@ -202,7 +202,7 @@ define([
|
||||||
parentEl: $host.find('#slot-btn-caption'),
|
parentEl: $host.find('#slot-btn-caption'),
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon btn-caption',
|
iconCls: 'toolbar__icon btn-caption',
|
||||||
lock: [_set.inHeader, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.inHeader, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
caption: this.capBtnCaption,
|
caption: this.capBtnCaption,
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'bottom',
|
dataHintDirection: 'bottom',
|
||||||
|
@ -214,7 +214,7 @@ define([
|
||||||
parentEl: $host.find('#slot-btn-crossref'),
|
parentEl: $host.find('#slot-btn-crossref'),
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon btn-cross-reference',
|
iconCls: 'toolbar__icon btn-cross-reference',
|
||||||
lock: [_set.paragraphLock, _set.headerLock, _set.controlPlain, _set.richEditLock, _set.plainEditLock, _set.contentLock, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.headerLock, _set.controlPlain, _set.richEditLock, _set.plainEditLock, _set.contentLock, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
caption: this.capBtnCrossRef,
|
caption: this.capBtnCrossRef,
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'bottom',
|
dataHintDirection: 'bottom',
|
||||||
|
@ -226,7 +226,7 @@ define([
|
||||||
parentEl: $host.find('#slot-btn-tof'),
|
parentEl: $host.find('#slot-btn-tof'),
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-contents',
|
iconCls: 'toolbar__icon btn-contents',
|
||||||
lock: [_set.inHeader, _set.richEditLock, _set.plainEditLock, _set.richDelLock, _set.plainDelLock, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.inHeader, _set.richEditLock, _set.plainEditLock, _set.richDelLock, _set.plainDelLock, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
caption: this.capBtnTOF,
|
caption: this.capBtnTOF,
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'left',
|
dataHintDirection: 'left',
|
||||||
|
@ -238,7 +238,7 @@ define([
|
||||||
parentEl: $host.find('#slot-btn-tof-update'),
|
parentEl: $host.find('#slot-btn-tof-update'),
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-update',
|
iconCls: 'toolbar__icon btn-update',
|
||||||
lock: [_set.paragraphLock, _set.inHeader, _set.richEditLock, _set.plainEditLock, _set.richDelLock, _set.plainDelLock, _set.cantUpdateTOF, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.inHeader, _set.richEditLock, _set.plainEditLock, _set.richDelLock, _set.plainDelLock, _set.cantUpdateTOF, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
caption: this.capBtnContentsUpdate,
|
caption: this.capBtnContentsUpdate,
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'left',
|
dataHintDirection: 'left',
|
||||||
|
|
|
@ -213,7 +213,7 @@ define([
|
||||||
id: 'id-toolbar-btn-undo',
|
id: 'id-toolbar-btn-undo',
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-undo',
|
iconCls: 'toolbar__icon btn-undo',
|
||||||
lock: [_set.undoLock, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.undoLock, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
signals: ['disabled'],
|
signals: ['disabled'],
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'bottom',
|
dataHintDirection: 'bottom',
|
||||||
|
@ -225,7 +225,7 @@ define([
|
||||||
id: 'id-toolbar-btn-redo',
|
id: 'id-toolbar-btn-redo',
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-redo',
|
iconCls: 'toolbar__icon btn-redo',
|
||||||
lock: [_set.redoLock, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.redoLock, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
signals: ['disabled'],
|
signals: ['disabled'],
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'bottom',
|
dataHintDirection: 'bottom',
|
||||||
|
@ -237,7 +237,7 @@ define([
|
||||||
id: 'id-toolbar-btn-copy',
|
id: 'id-toolbar-btn-copy',
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-copy',
|
iconCls: 'toolbar__icon btn-copy',
|
||||||
lock: [_set.copyLock, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.copyLock, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'top',
|
dataHintDirection: 'top',
|
||||||
dataHintTitle: 'C'
|
dataHintTitle: 'C'
|
||||||
|
@ -248,7 +248,7 @@ define([
|
||||||
id: 'id-toolbar-btn-paste',
|
id: 'id-toolbar-btn-paste',
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-paste',
|
iconCls: 'toolbar__icon btn-paste',
|
||||||
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'top',
|
dataHintDirection: 'top',
|
||||||
dataHintTitle: 'V'
|
dataHintTitle: 'V'
|
||||||
|
@ -259,7 +259,7 @@ define([
|
||||||
id: 'id-toolbar-btn-incfont',
|
id: 'id-toolbar-btn-incfont',
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-incfont',
|
iconCls: 'toolbar__icon btn-incfont',
|
||||||
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'top'
|
dataHintDirection: 'top'
|
||||||
});
|
});
|
||||||
|
@ -269,7 +269,7 @@ define([
|
||||||
id: 'id-toolbar-btn-decfont',
|
id: 'id-toolbar-btn-decfont',
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-decfont',
|
iconCls: 'toolbar__icon btn-decfont',
|
||||||
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'top'
|
dataHintDirection: 'top'
|
||||||
});
|
});
|
||||||
|
@ -279,7 +279,7 @@ define([
|
||||||
id: 'id-toolbar-btn-bold',
|
id: 'id-toolbar-btn-bold',
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-bold',
|
iconCls: 'toolbar__icon btn-bold',
|
||||||
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
enableToggle: true,
|
enableToggle: true,
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'bottom'
|
dataHintDirection: 'bottom'
|
||||||
|
@ -290,7 +290,7 @@ define([
|
||||||
id: 'id-toolbar-btn-italic',
|
id: 'id-toolbar-btn-italic',
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-italic',
|
iconCls: 'toolbar__icon btn-italic',
|
||||||
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
enableToggle: true,
|
enableToggle: true,
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'bottom'
|
dataHintDirection: 'bottom'
|
||||||
|
@ -301,7 +301,7 @@ define([
|
||||||
id: 'id-toolbar-btn-underline',
|
id: 'id-toolbar-btn-underline',
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-underline',
|
iconCls: 'toolbar__icon btn-underline',
|
||||||
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
enableToggle: true,
|
enableToggle: true,
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'bottom'
|
dataHintDirection: 'bottom'
|
||||||
|
@ -312,7 +312,7 @@ define([
|
||||||
id: 'id-toolbar-btn-strikeout',
|
id: 'id-toolbar-btn-strikeout',
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-strikeout',
|
iconCls: 'toolbar__icon btn-strikeout',
|
||||||
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
enableToggle: true,
|
enableToggle: true,
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'bottom'
|
dataHintDirection: 'bottom'
|
||||||
|
@ -323,7 +323,7 @@ define([
|
||||||
id: 'id-toolbar-btn-superscript',
|
id: 'id-toolbar-btn-superscript',
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-superscript',
|
iconCls: 'toolbar__icon btn-superscript',
|
||||||
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.inEquation, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.inEquation, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
enableToggle: true,
|
enableToggle: true,
|
||||||
toggleGroup: 'superscriptGroup',
|
toggleGroup: 'superscriptGroup',
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
|
@ -335,7 +335,7 @@ define([
|
||||||
id: 'id-toolbar-btn-subscript',
|
id: 'id-toolbar-btn-subscript',
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-subscript',
|
iconCls: 'toolbar__icon btn-subscript',
|
||||||
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.inEquation, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.inEquation, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
enableToggle: true,
|
enableToggle: true,
|
||||||
toggleGroup: 'superscriptGroup',
|
toggleGroup: 'superscriptGroup',
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
|
@ -347,7 +347,7 @@ define([
|
||||||
id: 'id-toolbar-btn-highlight',
|
id: 'id-toolbar-btn-highlight',
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-highlight',
|
iconCls: 'toolbar__icon btn-highlight',
|
||||||
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.inChart, _set.inSmartart, _set.inSmartartInternal, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.inChart, _set.inSmartart, _set.inSmartartInternal, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
enableToggle: true,
|
enableToggle: true,
|
||||||
allowDepress: true,
|
allowDepress: true,
|
||||||
split: true,
|
split: true,
|
||||||
|
@ -373,7 +373,7 @@ define([
|
||||||
id: 'id-toolbar-btn-fontcolor',
|
id: 'id-toolbar-btn-fontcolor',
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-fontcolor',
|
iconCls: 'toolbar__icon btn-fontcolor',
|
||||||
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
split: true,
|
split: true,
|
||||||
menu: true,
|
menu: true,
|
||||||
auto: true,
|
auto: true,
|
||||||
|
@ -387,7 +387,7 @@ define([
|
||||||
id: 'id-toolbar-btn-paracolor',
|
id: 'id-toolbar-btn-paracolor',
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-paracolor',
|
iconCls: 'toolbar__icon btn-paracolor',
|
||||||
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.inChart, _set.inSmartart, _set.inSmartartInternal, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.inChart, _set.inSmartart, _set.inSmartartInternal, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
split: true,
|
split: true,
|
||||||
transparent: true,
|
transparent: true,
|
||||||
menu: true,
|
menu: true,
|
||||||
|
@ -402,7 +402,7 @@ define([
|
||||||
id: 'id-toolbar-btn-case',
|
id: 'id-toolbar-btn-case',
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-change-case',
|
iconCls: 'toolbar__icon btn-change-case',
|
||||||
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
menu: new Common.UI.Menu({
|
menu: new Common.UI.Menu({
|
||||||
items: [
|
items: [
|
||||||
{caption: this.mniSentenceCase, value: Asc.c_oAscChangeTextCaseType.SentenceCase},
|
{caption: this.mniSentenceCase, value: Asc.c_oAscChangeTextCaseType.SentenceCase},
|
||||||
|
@ -421,7 +421,7 @@ define([
|
||||||
id: 'id-toolbar-btn-align-left',
|
id: 'id-toolbar-btn-align-left',
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-align-left',
|
iconCls: 'toolbar__icon btn-align-left',
|
||||||
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
enableToggle: true,
|
enableToggle: true,
|
||||||
toggleGroup: 'alignGroup',
|
toggleGroup: 'alignGroup',
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
|
@ -433,7 +433,7 @@ define([
|
||||||
id: 'id-toolbar-btn-align-center',
|
id: 'id-toolbar-btn-align-center',
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-align-center',
|
iconCls: 'toolbar__icon btn-align-center',
|
||||||
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
enableToggle: true,
|
enableToggle: true,
|
||||||
toggleGroup: 'alignGroup',
|
toggleGroup: 'alignGroup',
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
|
@ -445,7 +445,7 @@ define([
|
||||||
id: 'id-toolbar-btn-align-right',
|
id: 'id-toolbar-btn-align-right',
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-align-right',
|
iconCls: 'toolbar__icon btn-align-right',
|
||||||
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
enableToggle: true,
|
enableToggle: true,
|
||||||
toggleGroup: 'alignGroup',
|
toggleGroup: 'alignGroup',
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
|
@ -457,7 +457,7 @@ define([
|
||||||
id: 'id-toolbar-btn-align-just',
|
id: 'id-toolbar-btn-align-just',
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-align-just',
|
iconCls: 'toolbar__icon btn-align-just',
|
||||||
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
enableToggle: true,
|
enableToggle: true,
|
||||||
toggleGroup: 'alignGroup',
|
toggleGroup: 'alignGroup',
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
|
@ -469,7 +469,7 @@ define([
|
||||||
id: 'id-toolbar-btn-decoffset',
|
id: 'id-toolbar-btn-decoffset',
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-decoffset',
|
iconCls: 'toolbar__icon btn-decoffset',
|
||||||
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.inSmartartInternal, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.inSmartartInternal, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'top'
|
dataHintDirection: 'top'
|
||||||
});
|
});
|
||||||
|
@ -479,7 +479,7 @@ define([
|
||||||
id: 'id-toolbar-btn-incoffset',
|
id: 'id-toolbar-btn-incoffset',
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-incoffset',
|
iconCls: 'toolbar__icon btn-incoffset',
|
||||||
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.inSmartartInternal, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.inSmartartInternal, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'top'
|
dataHintDirection: 'top'
|
||||||
});
|
});
|
||||||
|
@ -489,7 +489,7 @@ define([
|
||||||
id: 'id-toolbar-btn-linespace',
|
id: 'id-toolbar-btn-linespace',
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-linespace',
|
iconCls: 'toolbar__icon btn-linespace',
|
||||||
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
menu: new Common.UI.Menu({
|
menu: new Common.UI.Menu({
|
||||||
style: 'min-width: 60px;',
|
style: 'min-width: 60px;',
|
||||||
items: [
|
items: [
|
||||||
|
@ -511,7 +511,7 @@ define([
|
||||||
id: 'id-toolbar-btn-hidenchars',
|
id: 'id-toolbar-btn-hidenchars',
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-paragraph',
|
iconCls: 'toolbar__icon btn-paragraph',
|
||||||
lock: [_set.lostConnect, _set.disableOnStart],
|
lock: [ _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
enableToggle: true,
|
enableToggle: true,
|
||||||
split: true,
|
split: true,
|
||||||
menu: new Common.UI.Menu({
|
menu: new Common.UI.Menu({
|
||||||
|
@ -531,7 +531,7 @@ define([
|
||||||
id: 'id-toolbar-btn-markers',
|
id: 'id-toolbar-btn-markers',
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-setmarkers',
|
iconCls: 'toolbar__icon btn-setmarkers',
|
||||||
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.inChart, _set.inSmartart, _set.inSmartartInternal, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.inChart, _set.inSmartart, _set.inSmartartInternal, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
enableToggle: true,
|
enableToggle: true,
|
||||||
toggleGroup: 'markersGroup',
|
toggleGroup: 'markersGroup',
|
||||||
split: true,
|
split: true,
|
||||||
|
@ -547,7 +547,7 @@ define([
|
||||||
id: 'id-toolbar-btn-numbering',
|
id: 'id-toolbar-btn-numbering',
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-numbering',
|
iconCls: 'toolbar__icon btn-numbering',
|
||||||
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.inChart, _set.inSmartart, _set.inSmartartInternal, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.inChart, _set.inSmartart, _set.inSmartartInternal, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
enableToggle: true,
|
enableToggle: true,
|
||||||
toggleGroup: 'markersGroup',
|
toggleGroup: 'markersGroup',
|
||||||
split: true,
|
split: true,
|
||||||
|
@ -563,7 +563,7 @@ define([
|
||||||
id: 'id-toolbar-btn-multilevels',
|
id: 'id-toolbar-btn-multilevels',
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-multilevels',
|
iconCls: 'toolbar__icon btn-multilevels',
|
||||||
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.inChart, _set.inSmartart, _set.inSmartartInternal, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.inChart, _set.inSmartart, _set.inSmartartInternal, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
menu: true,
|
menu: true,
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'top',
|
dataHintDirection: 'top',
|
||||||
|
@ -595,7 +595,7 @@ define([
|
||||||
id: 'tlbtn-inserttable',
|
id: 'tlbtn-inserttable',
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon btn-inserttable',
|
iconCls: 'toolbar__icon btn-inserttable',
|
||||||
lock: [_set.headerLock, _set.richEditLock, _set.plainEditLock, _set.inEquation, _set.controlPlain, _set.richDelLock, _set.plainDelLock, _set.cantAddTable, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.headerLock, _set.richEditLock, _set.plainEditLock, _set.inEquation, _set.controlPlain, _set.richDelLock, _set.plainDelLock, _set.cantAddTable, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
caption: me.capBtnInsTable,
|
caption: me.capBtnInsTable,
|
||||||
menu: new Common.UI.Menu({
|
menu: new Common.UI.Menu({
|
||||||
items: [
|
items: [
|
||||||
|
@ -616,7 +616,8 @@ define([
|
||||||
id: 'tlbtn-insertimage',
|
id: 'tlbtn-insertimage',
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon btn-insertimage',
|
iconCls: 'toolbar__icon btn-insertimage',
|
||||||
lock: [_set.paragraphLock, _set.headerLock, _set.inEquation, _set.controlPlain, _set.richDelLock, _set.plainDelLock, _set.contentLock, _set.cantAddImagePara, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.headerLock, _set.inEquation, _set.controlPlain, _set.richDelLock, _set.plainDelLock, _set.contentLock, _set.cantAddImagePara,
|
||||||
|
_set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
caption: me.capBtnInsImage,
|
caption: me.capBtnInsImage,
|
||||||
menu: new Common.UI.Menu({
|
menu: new Common.UI.Menu({
|
||||||
items: [
|
items: [
|
||||||
|
@ -637,7 +638,7 @@ define([
|
||||||
caption: me.capBtnInsChart,
|
caption: me.capBtnInsChart,
|
||||||
iconCls: 'toolbar__icon btn-insertchart',
|
iconCls: 'toolbar__icon btn-insertchart',
|
||||||
lock: [ _set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.controlPlain, _set.richDelLock, _set.plainDelLock, _set.contentLock,
|
lock: [ _set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.controlPlain, _set.richDelLock, _set.plainDelLock, _set.contentLock,
|
||||||
_set.chartLock, _set.cantAddChart, _set.lostConnect, _set.disableOnStart],
|
_set.chartLock, _set.cantAddChart, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
menu: true,
|
menu: true,
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'bottom',
|
dataHintDirection: 'bottom',
|
||||||
|
@ -649,7 +650,7 @@ define([
|
||||||
id: 'tlbtn-inserttext',
|
id: 'tlbtn-inserttext',
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon btn-text',
|
iconCls: 'toolbar__icon btn-text',
|
||||||
lock: [_set.paragraphLock, _set.headerLock, _set.inEquation, _set.controlPlain, _set.contentLock, _set.inFootnote, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.headerLock, _set.inEquation, _set.controlPlain, _set.contentLock, _set.inFootnote, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
caption: me.capBtnInsTextbox,
|
caption: me.capBtnInsTextbox,
|
||||||
enableToggle: true,
|
enableToggle: true,
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
|
@ -662,7 +663,8 @@ define([
|
||||||
id: 'tlbtn-inserttextart',
|
id: 'tlbtn-inserttextart',
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon btn-textart',
|
iconCls: 'toolbar__icon btn-textart',
|
||||||
lock: [_set.paragraphLock, _set.headerLock, _set.inEquation, _set.controlPlain, _set.richDelLock, _set.plainDelLock, _set.contentLock, _set.inFootnote, _set.cantAddImagePara, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.headerLock, _set.inEquation, _set.controlPlain, _set.richDelLock, _set.plainDelLock, _set.contentLock, _set.inFootnote, _set.cantAddImagePara,
|
||||||
|
_set.previewReviewMode,_set.lostConnect, _set.disableOnStart],
|
||||||
caption: me.capBtnInsTextart,
|
caption: me.capBtnInsTextart,
|
||||||
menu: new Common.UI.Menu({
|
menu: new Common.UI.Menu({
|
||||||
cls: 'menu-shapes',
|
cls: 'menu-shapes',
|
||||||
|
@ -680,7 +682,7 @@ define([
|
||||||
id: 'id-toolbar-btn-editheader',
|
id: 'id-toolbar-btn-editheader',
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon btn-editheader',
|
iconCls: 'toolbar__icon btn-editheader',
|
||||||
lock: [_set.inEquation, _set.lostConnect, _set.disableOnStart],
|
lock: [ _set.previewReviewMode, _set.inEquation, _set.lostConnect, _set.disableOnStart],
|
||||||
caption: me.capBtnInsHeader,
|
caption: me.capBtnInsHeader,
|
||||||
menu: true,
|
menu: true,
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
|
@ -713,7 +715,8 @@ define([
|
||||||
id: 'id-toolbar-btn-datetime',
|
id: 'id-toolbar-btn-datetime',
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon btn-datetime',
|
iconCls: 'toolbar__icon btn-datetime',
|
||||||
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.richDelLock, _set.plainDelLock, _set.noParagraphSelected, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.richDelLock, _set.plainDelLock, _set.noParagraphSelected, _set.previewReviewMode,
|
||||||
|
_set.lostConnect, _set.disableOnStart],
|
||||||
caption: me.capBtnDateTime,
|
caption: me.capBtnDateTime,
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'bottom',
|
dataHintDirection: 'bottom',
|
||||||
|
@ -726,7 +729,7 @@ define([
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon btn-blankpage',
|
iconCls: 'toolbar__icon btn-blankpage',
|
||||||
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.inEquation, _set.richDelLock, _set.plainDelLock, _set.inHeader, _set.inFootnote, _set.inControl,
|
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.inEquation, _set.richDelLock, _set.plainDelLock, _set.inHeader, _set.inFootnote, _set.inControl,
|
||||||
_set.cantPageBreak, _set.lostConnect, _set.disableOnStart],
|
_set.cantPageBreak, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
caption: me.capBtnBlankPage,
|
caption: me.capBtnBlankPage,
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'bottom',
|
dataHintDirection: 'bottom',
|
||||||
|
@ -738,7 +741,7 @@ define([
|
||||||
id: 'tlbtn-insertshape',
|
id: 'tlbtn-insertshape',
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon btn-insertshape',
|
iconCls: 'toolbar__icon btn-insertshape',
|
||||||
lock: [_set.paragraphLock, _set.headerLock, _set.inEquation, _set.controlPlain, _set.contentLock, _set.inFootnote, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.headerLock, _set.inEquation, _set.controlPlain, _set.contentLock, _set.inFootnote, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
caption: me.capBtnInsShape,
|
caption: me.capBtnInsShape,
|
||||||
enableToggle: true,
|
enableToggle: true,
|
||||||
menu: new Common.UI.Menu({cls: 'menu-shapes menu-insert-shape'}),
|
menu: new Common.UI.Menu({cls: 'menu-shapes menu-insert-shape'}),
|
||||||
|
@ -752,7 +755,8 @@ define([
|
||||||
id: 'tlbtn-insertequation',
|
id: 'tlbtn-insertequation',
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon btn-insertequation',
|
iconCls: 'toolbar__icon btn-insertequation',
|
||||||
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.inChart, _set.controlPlain, _set.richDelLock, _set.plainDelLock, _set.cantAddEquation, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.inChart, _set.controlPlain, _set.richDelLock, _set.plainDelLock, _set.cantAddEquation,
|
||||||
|
_set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
caption: me.capBtnInsEquation,
|
caption: me.capBtnInsEquation,
|
||||||
split: true,
|
split: true,
|
||||||
menu: new Common.UI.Menu({cls: 'menu-shapes'}),
|
menu: new Common.UI.Menu({cls: 'menu-shapes'}),
|
||||||
|
@ -766,7 +770,8 @@ define([
|
||||||
id: 'tlbtn-insertsymbol',
|
id: 'tlbtn-insertsymbol',
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon btn-symbol',
|
iconCls: 'toolbar__icon btn-symbol',
|
||||||
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.richDelLock, _set.plainDelLock, _set.noParagraphSelected, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.richDelLock, _set.plainDelLock, _set.noParagraphSelected, _set.previewReviewMode,
|
||||||
|
_set.lostConnect, _set.disableOnStart],
|
||||||
caption: me.capBtnInsSymbol,
|
caption: me.capBtnInsSymbol,
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'bottom',
|
dataHintDirection: 'bottom',
|
||||||
|
@ -778,7 +783,7 @@ define([
|
||||||
id: 'tlbtn-dropcap',
|
id: 'tlbtn-dropcap',
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon btn-dropcap',
|
iconCls: 'toolbar__icon btn-dropcap',
|
||||||
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.inEquation, _set.controlPlain, _set.dropcapLock, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.inEquation, _set.controlPlain, _set.dropcapLock, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
caption: me.capBtnInsDropcap,
|
caption: me.capBtnInsDropcap,
|
||||||
menu: new Common.UI.Menu({
|
menu: new Common.UI.Menu({
|
||||||
cls: 'ppm-toolbar shifted-right',
|
cls: 'ppm-toolbar shifted-right',
|
||||||
|
@ -822,7 +827,7 @@ define([
|
||||||
id: 'tlbtn-controls',
|
id: 'tlbtn-controls',
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon btn-controls',
|
iconCls: 'toolbar__icon btn-controls',
|
||||||
lock: [_set.paragraphLock, _set.headerLock, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.headerLock, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
caption: me.capBtnInsControls,
|
caption: me.capBtnInsControls,
|
||||||
menu: new Common.UI.Menu({
|
menu: new Common.UI.Menu({
|
||||||
cls: 'ppm-toolbar shifted-right',
|
cls: 'ppm-toolbar shifted-right',
|
||||||
|
@ -906,7 +911,7 @@ define([
|
||||||
id: 'tlbtn-columns',
|
id: 'tlbtn-columns',
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon btn-columns',
|
iconCls: 'toolbar__icon btn-columns',
|
||||||
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.controlPlain, _set.inImage, _set.docPropsLock, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.controlPlain, _set.inImage, _set.docPropsLock, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
caption: me.capBtnColumns,
|
caption: me.capBtnColumns,
|
||||||
menu: new Common.UI.Menu({
|
menu: new Common.UI.Menu({
|
||||||
cls: 'ppm-toolbar shifted-right',
|
cls: 'ppm-toolbar shifted-right',
|
||||||
|
@ -965,7 +970,7 @@ define([
|
||||||
id: 'tlbtn-pageorient',
|
id: 'tlbtn-pageorient',
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon btn-pageorient',
|
iconCls: 'toolbar__icon btn-pageorient',
|
||||||
lock: [_set.docPropsLock, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.docPropsLock, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
caption: me.capBtnPageOrient,
|
caption: me.capBtnPageOrient,
|
||||||
menu: new Common.UI.Menu({
|
menu: new Common.UI.Menu({
|
||||||
cls: 'ppm-toolbar',
|
cls: 'ppm-toolbar',
|
||||||
|
@ -1007,7 +1012,7 @@ define([
|
||||||
id: 'tlbtn-pagemargins',
|
id: 'tlbtn-pagemargins',
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon btn-pagemargins',
|
iconCls: 'toolbar__icon btn-pagemargins',
|
||||||
lock: [_set.docPropsLock, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.docPropsLock, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
caption: me.capBtnMargins,
|
caption: me.capBtnMargins,
|
||||||
menu: new Common.UI.Menu({
|
menu: new Common.UI.Menu({
|
||||||
items: [
|
items: [
|
||||||
|
@ -1070,7 +1075,7 @@ define([
|
||||||
id: 'tlbtn-pagesize',
|
id: 'tlbtn-pagesize',
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon btn-pagesize',
|
iconCls: 'toolbar__icon btn-pagesize',
|
||||||
lock: [_set.docPropsLock, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.docPropsLock, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
caption: me.capBtnPageSize,
|
caption: me.capBtnPageSize,
|
||||||
menu: new Common.UI.Menu({
|
menu: new Common.UI.Menu({
|
||||||
restoreHeight: true,
|
restoreHeight: true,
|
||||||
|
@ -1194,7 +1199,7 @@ define([
|
||||||
id: 'tlbtn-line-numbers',
|
id: 'tlbtn-line-numbers',
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon btn-line-numbering',
|
iconCls: 'toolbar__icon btn-line-numbering',
|
||||||
lock: [_set.docPropsLock, _set.inImagePara, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.docPropsLock, _set.inImagePara, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
caption: me.capBtnLineNumbers,
|
caption: me.capBtnLineNumbers,
|
||||||
menu: new Common.UI.Menu({
|
menu: new Common.UI.Menu({
|
||||||
cls: 'ppm-toolbar',
|
cls: 'ppm-toolbar',
|
||||||
|
@ -1246,7 +1251,8 @@ define([
|
||||||
id: 'id-toolbar-btn-clearstyle',
|
id: 'id-toolbar-btn-clearstyle',
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-clearstyle',
|
iconCls: 'toolbar__icon btn-clearstyle',
|
||||||
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.inChart, _set.inSmartart, _set.inSmartartInternal, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.inChart, _set.inSmartart, _set.inSmartartInternal, _set.previewReviewMode,
|
||||||
|
_set.lostConnect, _set.disableOnStart],
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'top'
|
dataHintDirection: 'top'
|
||||||
});
|
});
|
||||||
|
@ -1256,7 +1262,7 @@ define([
|
||||||
id: 'id-toolbar-btn-copystyle',
|
id: 'id-toolbar-btn-copystyle',
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-copystyle',
|
iconCls: 'toolbar__icon btn-copystyle',
|
||||||
lock: [_set.lostConnect, _set.disableOnStart],
|
lock: [ _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
enableToggle: true,
|
enableToggle: true,
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'bottom'
|
dataHintDirection: 'bottom'
|
||||||
|
@ -1267,7 +1273,7 @@ define([
|
||||||
id: 'id-toolbar-btn-colorschemas',
|
id: 'id-toolbar-btn-colorschemas',
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-colorschemas',
|
iconCls: 'toolbar__icon btn-colorschemas',
|
||||||
lock: [_set.docSchemaLock, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.docSchemaLock, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
menu: new Common.UI.Menu({
|
menu: new Common.UI.Menu({
|
||||||
cls: 'shifted-left',
|
cls: 'shifted-left',
|
||||||
items: [],
|
items: [],
|
||||||
|
@ -1283,7 +1289,7 @@ define([
|
||||||
id: 'id-toolbar-btn-mailrecepients',
|
id: 'id-toolbar-btn-mailrecepients',
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-mailmerge',
|
iconCls: 'toolbar__icon btn-mailmerge',
|
||||||
lock: [_set.mmergeLock, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.mmergeLock, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'bottom',
|
dataHintDirection: 'bottom',
|
||||||
menu: new Common.UI.Menu({
|
menu: new Common.UI.Menu({
|
||||||
|
@ -1299,7 +1305,7 @@ define([
|
||||||
me.btnImgAlign = new Common.UI.Button({
|
me.btnImgAlign = new Common.UI.Button({
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon btn-img-align',
|
iconCls: 'toolbar__icon btn-img-align',
|
||||||
lock: [_set.imageLock, _set.contentLock, _set.inImageInline, _set.noObjectSelected, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.imageLock, _set.contentLock, _set.inImageInline, _set.noObjectSelected, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
caption: me.capImgAlign,
|
caption: me.capImgAlign,
|
||||||
menu: true,
|
menu: true,
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
|
@ -1310,7 +1316,7 @@ define([
|
||||||
me.btnImgGroup = new Common.UI.Button({
|
me.btnImgGroup = new Common.UI.Button({
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon btn-img-group',
|
iconCls: 'toolbar__icon btn-img-group',
|
||||||
lock: [_set.imageLock, _set.contentLock, _set.inImageInline, _set.noObjectSelected, _set.cantGroup, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.imageLock, _set.contentLock, _set.inImageInline, _set.noObjectSelected, _set.cantGroup, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
caption: me.capImgGroup,
|
caption: me.capImgGroup,
|
||||||
menu: true,
|
menu: true,
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
|
@ -1320,7 +1326,7 @@ define([
|
||||||
me.btnImgForward = new Common.UI.Button({
|
me.btnImgForward = new Common.UI.Button({
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon btn-img-frwd',
|
iconCls: 'toolbar__icon btn-img-frwd',
|
||||||
lock: [_set.cantArrange, _set.lostConnect, _set.contentLock, _set.noObjectSelected, _set.inSmartartInternal, _set.disableOnStart],
|
lock: [_set.cantArrange, _set.lostConnect, _set.contentLock, _set.noObjectSelected, _set.inSmartartInternal, _set.previewReviewMode, _set.disableOnStart],
|
||||||
caption: me.capImgForward,
|
caption: me.capImgForward,
|
||||||
split: true,
|
split: true,
|
||||||
menu: true,
|
menu: true,
|
||||||
|
@ -1331,7 +1337,7 @@ define([
|
||||||
me.btnImgBackward = new Common.UI.Button({
|
me.btnImgBackward = new Common.UI.Button({
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon btn-img-bkwd',
|
iconCls: 'toolbar__icon btn-img-bkwd',
|
||||||
lock: [_set.cantArrange, _set.lostConnect, _set.contentLock, _set.noObjectSelected, _set.inSmartartInternal, _set.disableOnStart],
|
lock: [_set.cantArrange, _set.lostConnect, _set.contentLock, _set.noObjectSelected, _set.inSmartartInternal, _set.previewReviewMode, _set.disableOnStart],
|
||||||
caption: me.capImgBackward,
|
caption: me.capImgBackward,
|
||||||
split: true,
|
split: true,
|
||||||
menu: true,
|
menu: true,
|
||||||
|
@ -1342,7 +1348,7 @@ define([
|
||||||
me.btnImgWrapping = new Common.UI.Button({
|
me.btnImgWrapping = new Common.UI.Button({
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon btn-img-wrap',
|
iconCls: 'toolbar__icon btn-img-wrap',
|
||||||
lock: [_set.cantWrap, _set.imageLock, _set.contentLock, _set.noObjectSelected, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.cantWrap, _set.imageLock, _set.contentLock, _set.noObjectSelected, _set.lostConnect, _set.previewReviewMode, _set.disableOnStart],
|
||||||
caption: me.capImgWrapping,
|
caption: me.capImgWrapping,
|
||||||
menu: true,
|
menu: true,
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
|
@ -1353,7 +1359,7 @@ define([
|
||||||
me.btnWatermark = new Common.UI.Button({
|
me.btnWatermark = new Common.UI.Button({
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon btn-watermark',
|
iconCls: 'toolbar__icon btn-watermark',
|
||||||
lock: [_set.headerLock, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.headerLock, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
caption: me.capBtnWatermark,
|
caption: me.capBtnWatermark,
|
||||||
menu: new Common.UI.Menu({
|
menu: new Common.UI.Menu({
|
||||||
cls: 'ppm-toolbar',
|
cls: 'ppm-toolbar',
|
||||||
|
@ -1392,7 +1398,7 @@ define([
|
||||||
this.cmbFontSize = new Common.UI.ComboBox({
|
this.cmbFontSize = new Common.UI.ComboBox({
|
||||||
cls: 'input-group-nr',
|
cls: 'input-group-nr',
|
||||||
menuStyle: 'min-width: 55px;',
|
menuStyle: 'min-width: 55px;',
|
||||||
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
hint: this.tipFontSize,
|
hint: this.tipFontSize,
|
||||||
data: [
|
data: [
|
||||||
{value: 8, displayValue: "8"},
|
{value: 8, displayValue: "8"},
|
||||||
|
@ -1422,7 +1428,7 @@ define([
|
||||||
cls: 'input-group-nr',
|
cls: 'input-group-nr',
|
||||||
menuCls: 'scrollable-menu',
|
menuCls: 'scrollable-menu',
|
||||||
menuStyle: 'min-width: 325px;',
|
menuStyle: 'min-width: 325px;',
|
||||||
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
hint: this.tipFontName,
|
hint: this.tipFontName,
|
||||||
store: new Common.Collections.Fonts(),
|
store: new Common.Collections.Fonts(),
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
|
@ -1440,7 +1446,8 @@ define([
|
||||||
itemHeight = 40;
|
itemHeight = 40;
|
||||||
this.listStyles = new Common.UI.ComboDataView({
|
this.listStyles = new Common.UI.ComboDataView({
|
||||||
cls: 'combo-styles',
|
cls: 'combo-styles',
|
||||||
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.inChart, _set.inSmartart, _set.inSmartartInternal, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.paragraphLock, _set.headerLock, _set.richEditLock, _set.plainEditLock, _set.inChart, _set.inSmartart, _set.inSmartartInternal, _set.previewReviewMode,
|
||||||
|
_set.lostConnect, _set.disableOnStart],
|
||||||
itemWidth: itemWidth,
|
itemWidth: itemWidth,
|
||||||
itemHeight: itemHeight,
|
itemHeight: itemHeight,
|
||||||
// hint : this.tipParagraphStyle,
|
// hint : this.tipParagraphStyle,
|
||||||
|
|
|
@ -24,12 +24,9 @@
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
width: 0;
|
||||||
bottom: 0;
|
height: 0;
|
||||||
opacity: 0;
|
background-color: transparent;
|
||||||
background-color: @background-toolbar-ie;
|
|
||||||
background-color: @background-toolbar;
|
|
||||||
z-index: @zindex-tooltip + 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.item-markerlist {
|
.item-markerlist {
|
||||||
|
|
Loading…
Reference in a new issue