diff --git a/apps/documenteditor/main/resources/img/toolbar/1.25x/btn-change-case.png b/apps/common/main/resources/img/toolbar/1.25x/btn-change-case.png similarity index 100% rename from apps/documenteditor/main/resources/img/toolbar/1.25x/btn-change-case.png rename to apps/common/main/resources/img/toolbar/1.25x/btn-change-case.png diff --git a/apps/documenteditor/main/resources/img/toolbar/1.25x/btn-higlight.png b/apps/common/main/resources/img/toolbar/1.25x/btn-higlight.png similarity index 100% rename from apps/documenteditor/main/resources/img/toolbar/1.25x/btn-higlight.png rename to apps/common/main/resources/img/toolbar/1.25x/btn-higlight.png diff --git a/apps/documenteditor/main/resources/img/toolbar/1.5x/btn-change-case.png b/apps/common/main/resources/img/toolbar/1.5x/btn-change-case.png similarity index 100% rename from apps/documenteditor/main/resources/img/toolbar/1.5x/btn-change-case.png rename to apps/common/main/resources/img/toolbar/1.5x/btn-change-case.png diff --git a/apps/documenteditor/main/resources/img/toolbar/1.5x/btn-highlight.png b/apps/common/main/resources/img/toolbar/1.5x/btn-highlight.png similarity index 100% rename from apps/documenteditor/main/resources/img/toolbar/1.5x/btn-highlight.png rename to apps/common/main/resources/img/toolbar/1.5x/btn-highlight.png diff --git a/apps/documenteditor/main/resources/img/toolbar/1.75x/btn-change-case.png b/apps/common/main/resources/img/toolbar/1.75x/btn-change-case.png similarity index 100% rename from apps/documenteditor/main/resources/img/toolbar/1.75x/btn-change-case.png rename to apps/common/main/resources/img/toolbar/1.75x/btn-change-case.png diff --git a/apps/documenteditor/main/resources/img/toolbar/1.75x/btn-higlight.png b/apps/common/main/resources/img/toolbar/1.75x/btn-higlight.png similarity index 100% rename from apps/documenteditor/main/resources/img/toolbar/1.75x/btn-higlight.png rename to apps/common/main/resources/img/toolbar/1.75x/btn-higlight.png diff --git a/apps/documenteditor/main/resources/img/toolbar/1x/btn-change-case.png b/apps/common/main/resources/img/toolbar/1x/btn-change-case.png similarity index 100% rename from apps/documenteditor/main/resources/img/toolbar/1x/btn-change-case.png rename to apps/common/main/resources/img/toolbar/1x/btn-change-case.png diff --git a/apps/documenteditor/main/resources/img/toolbar/1x/btn-highlight.png b/apps/common/main/resources/img/toolbar/1x/btn-highlight.png similarity index 100% rename from apps/documenteditor/main/resources/img/toolbar/1x/btn-highlight.png rename to apps/common/main/resources/img/toolbar/1x/btn-highlight.png diff --git a/apps/documenteditor/main/resources/img/toolbar/2x/btn-change-case.png b/apps/common/main/resources/img/toolbar/2x/btn-change-case.png similarity index 100% rename from apps/documenteditor/main/resources/img/toolbar/2x/btn-change-case.png rename to apps/common/main/resources/img/toolbar/2x/btn-change-case.png diff --git a/apps/documenteditor/main/resources/img/toolbar/2x/btn-highlight.png b/apps/common/main/resources/img/toolbar/2x/btn-highlight.png similarity index 100% rename from apps/documenteditor/main/resources/img/toolbar/2x/btn-highlight.png rename to apps/common/main/resources/img/toolbar/2x/btn-highlight.png diff --git a/apps/presentationeditor/main/app/controller/Toolbar.js b/apps/presentationeditor/main/app/controller/Toolbar.js index 7c3ccb00e..96a51a0d9 100644 --- a/apps/presentationeditor/main/app/controller/Toolbar.js +++ b/apps/presentationeditor/main/app/controller/Toolbar.js @@ -279,6 +279,7 @@ define([ toolbar.btnVerticalAlign.menu.on('item:click', _.bind(this.onMenuVerticalAlignSelect, this)); toolbar.btnDecLeftOffset.on('click', _.bind(this.onDecOffset, this)); toolbar.btnIncLeftOffset.on('click', _.bind(this.onIncOffset, this)); + toolbar.mnuChangeCase.on('item:click', _.bind(this.onChangeCase, this)); toolbar.btnMarkers.on('click', _.bind(this.onMarkers, this)); toolbar.btnNumbers.on('click', _.bind(this.onNumbers, this)); toolbar.mnuMarkerSettings.on('click', _.bind(this.onMarkerSettingsClick, this, 0)); @@ -1106,6 +1107,12 @@ define([ Common.component.Analytics.trackEvent('ToolBar', 'Indent'); }, + onChangeCase: function(menu, item, e) { + if (this.api) + this.api.asc_ChangeTextCase(item.value); + Common.NotificationCenter.trigger('edit:complete', this.toolbar); + }, + onMenuHorizontalAlignSelect: function(menu, item) { this._state.pralign = undefined; var btnHorizontalAlign = this.toolbar.btnHorizontalAlign; diff --git a/apps/presentationeditor/main/app/template/Toolbar.template b/apps/presentationeditor/main/app/template/Toolbar.template index e00003b78..2a6ba001f 100644 --- a/apps/presentationeditor/main/app/template/Toolbar.template +++ b/apps/presentationeditor/main/app/template/Toolbar.template @@ -43,11 +43,12 @@