[PE] Added collaboration tab.
This commit is contained in:
parent
1057868cda
commit
aec113963d
|
@ -277,6 +277,7 @@
|
|||
.button-normal-icon(~'x-huge .btn-ic-reviewview', 30, @toolbar-big-icon-size);
|
||||
.button-normal-icon(~'x-huge .btn-ic-history', 30, @toolbar-big-icon-size);
|
||||
.button-normal-icon(~'x-huge .btn-ic-chat', 30, @toolbar-big-icon-size);
|
||||
.button-normal-icon(~'x-huge .btn-ic-sharing', 30, @toolbar-big-icon-size);
|
||||
.button-normal-icon(review-save, 14, @toolbar-big-icon-size);
|
||||
.button-normal-icon(review-deny, 15, @toolbar-big-icon-size);
|
||||
.button-normal-icon(review-next, 16, @toolbar-big-icon-size);
|
||||
|
|
|
@ -1618,6 +1618,7 @@
|
|||
"DE.Views.Toolbar.textTabInsert": "Insert",
|
||||
"DE.Views.Toolbar.textTabLayout": "Layout",
|
||||
"DE.Views.Toolbar.textTabReview": "Review",
|
||||
"DE.Views.Toolbar.textTabCollaboration": "Collaboration",
|
||||
"DE.Views.Toolbar.textTitleError": "Error",
|
||||
"DE.Views.Toolbar.textToCurrent": "To current position",
|
||||
"DE.Views.Toolbar.textTop": "Top: ",
|
||||
|
|
|
@ -155,6 +155,7 @@ require([
|
|||
/** coauthoring end **/
|
||||
,'Common.Controllers.Plugins'
|
||||
,'Common.Controllers.ExternalDiagramEditor'
|
||||
,'Common.Controllers.ReviewChanges'
|
||||
]
|
||||
});
|
||||
|
||||
|
@ -185,6 +186,7 @@ require([
|
|||
'common/main/lib/controller/Plugins',
|
||||
'presentationeditor/main/app/view/ChartSettings',
|
||||
'common/main/lib/controller/ExternalDiagramEditor'
|
||||
,'common/main/lib/controller/ReviewChanges'
|
||||
], function() {
|
||||
app.start();
|
||||
});
|
||||
|
|
|
@ -94,6 +94,9 @@ define([
|
|||
'hide': _.bind(this.onSearchDlgHide, this),
|
||||
'search:back': _.bind(this.onQuerySearch, this, 'back'),
|
||||
'search:next': _.bind(this.onQuerySearch, this, 'next')
|
||||
},
|
||||
'Common.Views.ReviewChanges': {
|
||||
'collaboration:chat': _.bind(this.onShowHideChat, this)
|
||||
}
|
||||
});
|
||||
},
|
||||
|
@ -540,6 +543,18 @@ define([
|
|||
}
|
||||
},
|
||||
|
||||
onShowHideChat: function(state) {
|
||||
if (this.mode.canCoAuthoring && this.mode.canChat && !this.mode.isLightVersion) {
|
||||
if (state) {
|
||||
Common.UI.Menu.Manager.hideAll();
|
||||
this.leftMenu.showMenu('chat');
|
||||
} else {
|
||||
this.leftMenu.btnChat.toggle(false, true);
|
||||
this.leftMenu.onBtnMenuClick(this.leftMenu.btnChat);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
textNoTextFound : 'Text not found',
|
||||
newDocumentTitle : 'Unnamed document',
|
||||
requestEditRightsText : 'Requesting editing rights...'
|
||||
|
|
|
@ -846,7 +846,8 @@ define([
|
|||
application = this.getApplication(),
|
||||
toolbarController = application.getController('Toolbar'),
|
||||
rightmenuController = application.getController('RightMenu'),
|
||||
fontsControllers = application.getController('Common.Controllers.Fonts');
|
||||
fontsControllers = application.getController('Common.Controllers.Fonts'),
|
||||
reviewController = application.getController('Common.Controllers.ReviewChanges');
|
||||
|
||||
// me.getStore('SlideLayouts');
|
||||
fontsControllers && fontsControllers.setApi(me.api);
|
||||
|
@ -854,6 +855,8 @@ define([
|
|||
|
||||
rightmenuController && rightmenuController.setApi(me.api);
|
||||
|
||||
reviewController.setMode(me.appOptions).setConfig({config: me.editorConfig}, me.api);
|
||||
|
||||
var viewport = this.getApplication().getController('Viewport').getView('Viewport');
|
||||
|
||||
viewport.applyEditorMode();
|
||||
|
|
|
@ -2071,6 +2071,15 @@ define([
|
|||
}
|
||||
|
||||
me.toolbar.render(_.extend({compactview: compactview}, config));
|
||||
|
||||
if ( config.isEdit ) {
|
||||
var tab = {action: 'review', caption: me.toolbar.textTabCollaboration};
|
||||
var $panel = PE.getController('Common.Controllers.ReviewChanges').createToolbarPanel();
|
||||
|
||||
if ( $panel ) {
|
||||
me.toolbar.addTab(tab, $panel, 3);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
onAppReady: function (config) {
|
||||
|
|
|
@ -656,6 +656,8 @@ define([
|
|||
});
|
||||
}
|
||||
|
||||
Common.NotificationCenter.on('collaboration:sharing', _.bind(this.changeAccessRights, this));
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
|
|
|
@ -282,7 +282,7 @@ define([
|
|||
}
|
||||
if (this.mode.canChat) {
|
||||
this.panelChat['hide']();
|
||||
this.btnChat.toggle(false, true);
|
||||
this.btnChat.toggle(false);
|
||||
}
|
||||
}
|
||||
/** coauthoring end **/
|
||||
|
|
|
@ -1853,7 +1853,8 @@ define([
|
|||
textTabHome: 'Home',
|
||||
textTabInsert: 'Insert',
|
||||
textSurface: 'Surface',
|
||||
textShowPresenterView: 'Show presenter view'
|
||||
textShowPresenterView: 'Show presenter view',
|
||||
textTabCollaboration: 'Collaboration'
|
||||
}
|
||||
}()), PE.Views.Toolbar || {}));
|
||||
});
|
|
@ -146,6 +146,7 @@ require([
|
|||
/** coauthoring end **/
|
||||
,'Common.Controllers.Plugins'
|
||||
,'Common.Controllers.ExternalDiagramEditor'
|
||||
,'Common.Controllers.ReviewChanges'
|
||||
]
|
||||
});
|
||||
|
||||
|
@ -176,6 +177,7 @@ require([
|
|||
'common/main/lib/controller/Plugins',
|
||||
'presentationeditor/main/app/view/ChartSettings',
|
||||
'common/main/lib/controller/ExternalDiagramEditor'
|
||||
,'common/main/lib/controller/ReviewChanges'
|
||||
], function() {
|
||||
window.compareVersions = true;
|
||||
app.start();
|
||||
|
|
|
@ -126,6 +126,40 @@
|
|||
"Common.Views.RenameDialog.okButtonText": "Ok",
|
||||
"Common.Views.RenameDialog.textName": "File name",
|
||||
"Common.Views.RenameDialog.txtInvalidName": "The file name cannot contain any of the following characters: ",
|
||||
"Common.Views.ReviewChanges.hintNext": "To next change",
|
||||
"Common.Views.ReviewChanges.hintPrev": "To previous change",
|
||||
"Common.Views.ReviewChanges.tipAcceptCurrent": "Accept current change",
|
||||
"Common.Views.ReviewChanges.tipRejectCurrent": "Reject current change",
|
||||
"Common.Views.ReviewChanges.tipReview": "Track changes",
|
||||
"Common.Views.ReviewChanges.tipReviewView": "Select the mode you want the changes to be displayed",
|
||||
"Common.Views.ReviewChanges.tipSetDocLang": "Set document language",
|
||||
"Common.Views.ReviewChanges.tipSetSpelling": "Spell checking",
|
||||
"Common.Views.ReviewChanges.txtAccept": "Accept",
|
||||
"Common.Views.ReviewChanges.txtAcceptAll": "Accept All Changes",
|
||||
"Common.Views.ReviewChanges.txtAcceptChanges": "Accept changes",
|
||||
"Common.Views.ReviewChanges.txtAcceptCurrent": "Accept Current Change",
|
||||
"Common.Views.ReviewChanges.txtClose": "Close",
|
||||
"Common.Views.ReviewChanges.txtDocLang": "Language",
|
||||
"Common.Views.ReviewChanges.txtFinal": "All changes accepted (Preview)",
|
||||
"Common.Views.ReviewChanges.txtMarkup": "All changes (Editing)",
|
||||
"Common.Views.ReviewChanges.txtNext": "Next",
|
||||
"Common.Views.ReviewChanges.txtOriginal": "All changes rejected (Preview)",
|
||||
"Common.Views.ReviewChanges.txtPrev": "Previous",
|
||||
"Common.Views.ReviewChanges.txtReject": "Reject",
|
||||
"Common.Views.ReviewChanges.txtRejectAll": "Reject All Changes",
|
||||
"Common.Views.ReviewChanges.txtRejectChanges": "Reject changes",
|
||||
"Common.Views.ReviewChanges.txtRejectCurrent": "Reject Current Change",
|
||||
"Common.Views.ReviewChanges.txtSpelling": "Spell Checking",
|
||||
"Common.Views.ReviewChanges.txtTurnon": "Track Changes",
|
||||
"Common.Views.ReviewChanges.txtView": "Display Mode",
|
||||
"Common.Views.ReviewChanges.txtSharing": "Sharing",
|
||||
"Common.Views.ReviewChanges.tipSharing": "Manage document access rights",
|
||||
"Common.Views.ReviewChanges.txtCoAuthMode": "Co-editing Mode",
|
||||
"Common.Views.ReviewChanges.tipCoAuthMode": "Set co-editing mode",
|
||||
"Common.Views.ReviewChanges.strFast": "Fast",
|
||||
"Common.Views.ReviewChanges.strStrict": "Strict",
|
||||
"Common.Views.ReviewChanges.txtHistory": "Version History",
|
||||
"Common.Views.ReviewChanges.tipHistory": "Show version history",
|
||||
"PE.Controllers.LeftMenu.newDocumentTitle": "Unnamed presentation",
|
||||
"PE.Controllers.LeftMenu.requestEditRightsText": "Requesting editing rights...",
|
||||
"PE.Controllers.LeftMenu.textNoTextFound": "The data you have been searching for could not be found. Please adjust your search options.",
|
||||
|
@ -1312,6 +1346,7 @@
|
|||
"PE.Views.Toolbar.textTabFile": "File",
|
||||
"PE.Views.Toolbar.textTabHome": "Home",
|
||||
"PE.Views.Toolbar.textTabInsert": "Insert",
|
||||
"PE.Views.Toolbar.textTabCollaboration": "Collaboration",
|
||||
"PE.Views.Toolbar.textTitleError": "Error",
|
||||
"PE.Views.Toolbar.textUnderline": "Underline",
|
||||
"PE.Views.Toolbar.textZoom": "Zoom",
|
||||
|
|
Loading…
Reference in a new issue