CollaboraOnline / online

Collabora Online is a collaborative online office suite based on LibreOffice technology. This is also the source for the Collabora Office apps for iOS and Android.
https://collaboraonline.com
Other
1.85k stars 704 forks source link

Add user toggle for the ui mode to switch while editing #3955

Closed juliusknorr closed 2 years ago

juliusknorr commented 2 years ago

Is your feature request related to a problem? Please describe. Users have different preferences on the ui mode to either use the notebookbar or the classic toolbar.

Describe the solution you'd like An option to switch while editing a document between the two modes. E.g. through the Menu

View > Switch to classic toolbar

or

View > Switch to notebook bar

Describe alternatives you've considered A user setting on the integration side could be used to store the default, but immediate switching would be more intuitive.

Additional context This issue is the outcome of previous discussion with @jancborchardt and @pedropintosilva

Ezinnem commented 2 years ago

@eszkadev @pedropintosilva, please can you take a look sometime?

eszkadev commented 2 years ago

this._map.fire('changeuimode', {mode: msg.Values.Mode, force: false}); from browser/src/map/handler/Map.WOPI.js switches the mode. for more info see: browser/src/control/Control.UIManager.js onChangeUIMode

eszkadev commented 2 years ago

Switching the mode should also notify the integrator by post message. In UIManager we should send in onChangeUIMode: eg. map.fire('postMessage', {msgId: 'Action_ChangeUIMode_Resp', args: {Mode: 'notebookbar'}});