2016-04-01 13:17:09 +00:00
|
|
|
/*
|
|
|
|
*
|
2019-01-17 13:05:03 +00:00
|
|
|
* (c) Copyright Ascensio System SIA 2010-2019
|
2016-04-01 13:17:09 +00:00
|
|
|
*
|
|
|
|
* This program is a free software product. You can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
|
|
|
* version 3 as published by the Free Software Foundation. In accordance with
|
|
|
|
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
|
|
|
|
* that Ascensio System SIA expressly excludes the warranty of non-infringement
|
|
|
|
* of any third-party rights.
|
|
|
|
*
|
|
|
|
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
|
|
|
|
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
|
|
|
|
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
|
|
|
|
*
|
2019-01-17 13:00:34 +00:00
|
|
|
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
|
|
|
|
* street, Riga, Latvia, EU, LV-1050.
|
2016-04-01 13:17:09 +00:00
|
|
|
*
|
|
|
|
* The interactive user interfaces in modified source and object code versions
|
|
|
|
* of the Program must display Appropriate Legal Notices, as required under
|
|
|
|
* Section 5 of the GNU AGPL version 3.
|
|
|
|
*
|
|
|
|
* Pursuant to Section 7(b) of the License you must retain the original Product
|
|
|
|
* logo when distributing the program. Pursuant to Section 7(e) we decline to
|
|
|
|
* grant you any rights under trademark law for use of our trademarks.
|
|
|
|
*
|
|
|
|
* All the Product's GUI elements, including illustrations and icon sets, as
|
|
|
|
* well as technical writing content are licensed under the terms of the
|
|
|
|
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
|
|
|
|
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
|
|
|
|
*
|
|
|
|
*/
|
2016-03-11 00:48:53 +00:00
|
|
|
/**
|
|
|
|
* DocumentHolder.js
|
|
|
|
*
|
|
|
|
* DocumentHolder view
|
|
|
|
*
|
|
|
|
* Created by Julia Radzhabova on 3/28/14
|
2018-03-01 12:16:38 +00:00
|
|
|
* Copyright (c) 2018 Ascensio System SIA. All rights reserved.
|
2016-03-11 00:48:53 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
define([
|
|
|
|
'jquery',
|
|
|
|
'underscore',
|
|
|
|
'backbone',
|
|
|
|
'gateway',
|
|
|
|
'common/main/lib/component/Menu'
|
|
|
|
], function ($, _, Backbone, gateway) { 'use strict';
|
|
|
|
|
|
|
|
SSE.Views.DocumentHolder = Backbone.View.extend(_.extend({
|
|
|
|
el: '#editor_sdk',
|
|
|
|
|
|
|
|
// Compile our stats template
|
|
|
|
template: null,
|
|
|
|
|
|
|
|
// Delegated events for creating new items, and clearing completed ones.
|
|
|
|
events: {
|
|
|
|
},
|
|
|
|
|
|
|
|
initialize: function() {
|
|
|
|
var me = this;
|
|
|
|
|
|
|
|
this.setApi = function(api) {
|
|
|
|
me.api = api;
|
|
|
|
return me;
|
|
|
|
};
|
|
|
|
},
|
|
|
|
|
|
|
|
render: function() {
|
|
|
|
this.fireEvent('render:before', this);
|
|
|
|
|
|
|
|
this.cmpEl = $(this.el);
|
|
|
|
|
|
|
|
this.fireEvent('render:after', this);
|
|
|
|
return this;
|
|
|
|
},
|
|
|
|
|
|
|
|
focus: function() {
|
|
|
|
var me = this;
|
|
|
|
_.defer(function(){
|
2021-03-27 23:03:33 +00:00
|
|
|
me.cmpEl && me.cmpEl.focus();
|
2016-03-11 00:48:53 +00:00
|
|
|
}, 50);
|
|
|
|
},
|
|
|
|
|
2017-06-06 08:04:04 +00:00
|
|
|
createDelayedElementsViewer: function() {
|
|
|
|
var me = this;
|
|
|
|
|
|
|
|
me.menuViewCopy = new Common.UI.MenuItem({
|
2020-08-20 16:58:03 +00:00
|
|
|
iconCls: 'menu__icon btn-copy',
|
2017-06-06 08:04:04 +00:00
|
|
|
caption: me.txtCopy,
|
|
|
|
value: 'copy'
|
|
|
|
});
|
|
|
|
|
|
|
|
me.menuViewUndo = new Common.UI.MenuItem({
|
2020-08-20 16:58:03 +00:00
|
|
|
iconCls: 'menu__icon btn-undo',
|
2017-06-06 08:04:04 +00:00
|
|
|
caption: me.textUndo
|
|
|
|
});
|
|
|
|
|
|
|
|
me.menuViewCopySeparator = new Common.UI.MenuItem({
|
|
|
|
caption: '--'
|
|
|
|
});
|
|
|
|
|
|
|
|
me.menuViewAddComment = new Common.UI.MenuItem({
|
2020-08-20 16:58:03 +00:00
|
|
|
iconCls: 'menu__icon btn-menu-comments',
|
2017-06-06 08:04:04 +00:00
|
|
|
id: 'id-context-menu-item-view-add-comment',
|
|
|
|
caption: me.txtAddComment
|
|
|
|
});
|
|
|
|
|
2017-11-22 08:41:47 +00:00
|
|
|
me.menuSignatureViewSign = new Common.UI.MenuItem({caption: this.strSign, value: 0 });
|
|
|
|
me.menuSignatureDetails = new Common.UI.MenuItem({caption: this.strDetails, value: 1 });
|
|
|
|
me.menuSignatureViewSetup = new Common.UI.MenuItem({caption: this.strSetup, value: 2 });
|
|
|
|
me.menuSignatureRemove = new Common.UI.MenuItem({caption: this.strDelete, value: 3 });
|
|
|
|
me.menuViewSignSeparator = new Common.UI.MenuItem({caption: '--' });
|
|
|
|
|
2017-06-06 08:04:04 +00:00
|
|
|
this.viewModeMenu = new Common.UI.Menu({
|
2020-08-20 16:58:03 +00:00
|
|
|
cls: 'shifted-right',
|
2017-06-06 08:04:04 +00:00
|
|
|
items: [
|
|
|
|
me.menuViewCopy,
|
|
|
|
me.menuViewUndo,
|
|
|
|
me.menuViewCopySeparator,
|
2017-11-22 08:41:47 +00:00
|
|
|
me.menuSignatureViewSign,
|
|
|
|
me.menuSignatureDetails,
|
|
|
|
me.menuSignatureViewSetup,
|
|
|
|
me.menuSignatureRemove,
|
|
|
|
me.menuViewSignSeparator,
|
2017-06-06 08:04:04 +00:00
|
|
|
me.menuViewAddComment
|
|
|
|
]
|
|
|
|
});
|
|
|
|
|
|
|
|
me.fireEvent('createdelayedelements', [me]);
|
|
|
|
},
|
|
|
|
|
2016-03-11 00:48:53 +00:00
|
|
|
createDelayedElements: function() {
|
|
|
|
var me = this;
|
|
|
|
|
|
|
|
me.pmiCut = new Common.UI.MenuItem({
|
2020-08-25 12:34:03 +00:00
|
|
|
iconCls: 'menu__icon btn-cut',
|
2016-03-11 00:48:53 +00:00
|
|
|
caption : me.txtCut,
|
|
|
|
value : 'cut'
|
|
|
|
});
|
|
|
|
|
|
|
|
me.pmiCopy = new Common.UI.MenuItem({
|
2020-08-20 16:58:03 +00:00
|
|
|
iconCls: 'menu__icon btn-copy',
|
2016-03-11 00:48:53 +00:00
|
|
|
caption : me.txtCopy,
|
|
|
|
value : 'copy'
|
|
|
|
});
|
|
|
|
|
|
|
|
me.pmiPaste = new Common.UI.MenuItem({
|
2020-08-20 16:58:03 +00:00
|
|
|
iconCls: 'menu__icon btn-paste',
|
2016-03-11 00:48:53 +00:00
|
|
|
caption : me.txtPaste,
|
|
|
|
value : 'paste'
|
|
|
|
});
|
|
|
|
|
2016-03-30 12:27:16 +00:00
|
|
|
me.pmiSelectTable = new Common.UI.MenuItem({
|
|
|
|
caption : me.txtSelect,
|
|
|
|
menu : new Common.UI.Menu({
|
2020-08-20 16:58:03 +00:00
|
|
|
cls: 'shifted-right',
|
2016-03-30 12:27:16 +00:00
|
|
|
menuAlign : 'tl-tr',
|
|
|
|
items: [
|
2016-04-19 13:00:22 +00:00
|
|
|
{ caption: this.selectRowText, value: Asc.c_oAscChangeSelectionFormatTable.row},
|
|
|
|
{ caption: this.selectColumnText, value: Asc.c_oAscChangeSelectionFormatTable.column},
|
|
|
|
{ caption: this.selectDataText, value: Asc.c_oAscChangeSelectionFormatTable.data},
|
|
|
|
{ caption: this.selectTableText, value: Asc.c_oAscChangeSelectionFormatTable.all}
|
2016-03-30 12:27:16 +00:00
|
|
|
]
|
|
|
|
})
|
|
|
|
});
|
|
|
|
|
2016-03-11 00:48:53 +00:00
|
|
|
me.pmiInsertEntire = new Common.UI.MenuItem({
|
|
|
|
caption : me.txtInsert
|
|
|
|
});
|
|
|
|
|
|
|
|
me.pmiInsertCells = new Common.UI.MenuItem({
|
2020-08-20 16:58:03 +00:00
|
|
|
iconCls: 'menu__icon btn-addcell',
|
2016-03-11 00:48:53 +00:00
|
|
|
caption : me.txtInsert,
|
|
|
|
menu : new Common.UI.Menu({
|
2020-08-20 16:58:03 +00:00
|
|
|
cls: 'shifted-right',
|
2016-03-11 00:48:53 +00:00
|
|
|
menuAlign : 'tl-tr',
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
caption : me.txtShiftRight,
|
2016-04-05 11:52:34 +00:00
|
|
|
value : Asc.c_oAscInsertOptions.InsertCellsAndShiftRight
|
2016-03-11 00:48:53 +00:00
|
|
|
},{
|
|
|
|
caption : me.txtShiftDown,
|
2016-04-05 11:52:34 +00:00
|
|
|
value : Asc.c_oAscInsertOptions.InsertCellsAndShiftDown
|
2016-03-11 00:48:53 +00:00
|
|
|
},{
|
|
|
|
caption : me.txtRow,
|
2016-04-05 11:52:34 +00:00
|
|
|
value : Asc.c_oAscInsertOptions.InsertRows
|
2016-03-11 00:48:53 +00:00
|
|
|
},{
|
|
|
|
caption : me.txtColumn,
|
2016-04-05 11:52:34 +00:00
|
|
|
value : Asc.c_oAscInsertOptions.InsertColumns
|
2016-03-11 00:48:53 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
})
|
|
|
|
});
|
2016-03-30 12:27:16 +00:00
|
|
|
|
|
|
|
me.pmiInsertTable = new Common.UI.MenuItem({
|
2020-08-20 16:58:03 +00:00
|
|
|
iconCls: 'menu__icon btn-addcell',
|
2016-03-30 12:27:16 +00:00
|
|
|
caption : me.txtInsert,
|
|
|
|
menu : new Common.UI.Menu({
|
2020-08-20 16:58:03 +00:00
|
|
|
cls: 'shifted-right',
|
2016-03-30 12:27:16 +00:00
|
|
|
menuAlign : 'tl-tr',
|
|
|
|
items: [
|
2016-04-19 13:00:22 +00:00
|
|
|
{ caption: me.insertRowAboveText, value: Asc.c_oAscInsertOptions.InsertTableRowAbove},
|
|
|
|
{ caption: me.insertRowBelowText, value: Asc.c_oAscInsertOptions.InsertTableRowBelow},
|
|
|
|
{ caption: me.insertColumnLeftText, value: Asc.c_oAscInsertOptions.InsertTableColLeft},
|
|
|
|
{ caption: me.insertColumnRightText, value: Asc.c_oAscInsertOptions.InsertTableColRight}
|
2016-03-30 12:27:16 +00:00
|
|
|
]
|
|
|
|
})
|
|
|
|
});
|
2016-03-11 00:48:53 +00:00
|
|
|
|
|
|
|
me.pmiDeleteEntire = new Common.UI.MenuItem({
|
|
|
|
caption : me.txtDelete
|
|
|
|
});
|
|
|
|
|
|
|
|
me.pmiDeleteCells = new Common.UI.MenuItem({
|
2020-08-20 16:58:03 +00:00
|
|
|
iconCls: 'menu__icon btn-delcell',
|
2016-03-11 00:48:53 +00:00
|
|
|
caption : me.txtDelete,
|
|
|
|
menu : new Common.UI.Menu({
|
2020-08-20 16:58:03 +00:00
|
|
|
cls: 'shifted-right',
|
2016-03-11 00:48:53 +00:00
|
|
|
menuAlign : 'tl-tr',
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
caption : me.txtShiftLeft,
|
2016-04-05 11:52:34 +00:00
|
|
|
value : Asc.c_oAscDeleteOptions.DeleteCellsAndShiftLeft
|
2016-03-11 00:48:53 +00:00
|
|
|
},{
|
|
|
|
caption : me.txtShiftUp,
|
2016-04-05 11:52:34 +00:00
|
|
|
value : Asc.c_oAscDeleteOptions.DeleteCellsAndShiftTop
|
2016-03-11 00:48:53 +00:00
|
|
|
},{
|
|
|
|
caption : me.txtRow,
|
2016-04-05 11:52:34 +00:00
|
|
|
value : Asc.c_oAscDeleteOptions.DeleteRows
|
2016-03-11 00:48:53 +00:00
|
|
|
},{
|
|
|
|
caption : me.txtColumn,
|
2016-04-05 11:52:34 +00:00
|
|
|
value : Asc.c_oAscDeleteOptions.DeleteColumns
|
2016-03-11 00:48:53 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
})
|
|
|
|
});
|
|
|
|
|
2016-03-30 12:27:16 +00:00
|
|
|
me.pmiDeleteTable = new Common.UI.MenuItem({
|
2020-08-20 16:58:03 +00:00
|
|
|
iconCls: 'menu__icon btn-delcell',
|
2016-03-30 12:27:16 +00:00
|
|
|
caption : me.txtDelete,
|
|
|
|
menu : new Common.UI.Menu({
|
2020-08-20 16:58:03 +00:00
|
|
|
cls: 'shifted-right',
|
2016-03-30 12:27:16 +00:00
|
|
|
menuAlign : 'tl-tr',
|
|
|
|
items: [
|
2016-04-19 13:00:22 +00:00
|
|
|
{ caption: this.deleteRowText, value: Asc.c_oAscDeleteOptions.DeleteRows},
|
|
|
|
{ caption: this.deleteColumnText, value: Asc.c_oAscDeleteOptions.DeleteColumns},
|
|
|
|
{ caption: this.deleteTableText, value: Asc.c_oAscDeleteOptions.DeleteTable}
|
2016-03-30 12:27:16 +00:00
|
|
|
]
|
|
|
|
})
|
|
|
|
});
|
|
|
|
|
2016-03-11 00:48:53 +00:00
|
|
|
me.pmiClear = new Common.UI.MenuItem({
|
2020-08-20 16:58:03 +00:00
|
|
|
iconCls: 'menu__icon btn-clearstyle',
|
2016-03-11 00:48:53 +00:00
|
|
|
caption : me.txtClear,
|
|
|
|
menu : new Common.UI.Menu({
|
2020-08-20 16:58:03 +00:00
|
|
|
cls: 'shifted-right',
|
2016-03-11 00:48:53 +00:00
|
|
|
menuAlign : 'tl-tr',
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
caption : me.txtClearAll,
|
2016-04-05 11:52:34 +00:00
|
|
|
value : Asc.c_oAscCleanOptions.All
|
2016-03-11 00:48:53 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
caption : me.txtClearText,
|
2016-04-05 11:52:34 +00:00
|
|
|
value : Asc.c_oAscCleanOptions.Text
|
2016-03-11 00:48:53 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
caption : me.txtClearFormat,
|
2016-04-05 11:52:34 +00:00
|
|
|
value : Asc.c_oAscCleanOptions.Format
|
2016-03-11 00:48:53 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
caption : me.txtClearComments,
|
2016-04-05 11:52:34 +00:00
|
|
|
value : Asc.c_oAscCleanOptions.Comments
|
2016-03-11 00:48:53 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
caption : me.txtClearHyper,
|
2016-04-05 11:52:34 +00:00
|
|
|
value : Asc.c_oAscCleanOptions.Hyperlinks
|
2016-03-11 00:48:53 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
})
|
|
|
|
});
|
|
|
|
|
|
|
|
me.pmiSortCells = new Common.UI.MenuItem({
|
|
|
|
caption : me.txtSort,
|
|
|
|
menu : new Common.UI.Menu({
|
2020-08-20 16:58:03 +00:00
|
|
|
cls: 'shifted-right',
|
2016-03-11 00:48:53 +00:00
|
|
|
menuAlign : 'tl-tr',
|
|
|
|
items: [
|
|
|
|
{
|
2020-08-20 16:58:03 +00:00
|
|
|
iconCls: 'menu__icon btn-sort-down',
|
2016-03-11 00:48:53 +00:00
|
|
|
caption : me.txtAscending,
|
2016-05-05 14:38:57 +00:00
|
|
|
value : Asc.c_oAscSortOptions.Ascending
|
2016-03-11 00:48:53 +00:00
|
|
|
},{
|
2020-08-20 16:58:03 +00:00
|
|
|
iconCls: 'menu__icon btn-sort-up',
|
2016-03-11 00:48:53 +00:00
|
|
|
caption : me.txtDescending,
|
2016-05-05 14:38:57 +00:00
|
|
|
value : Asc.c_oAscSortOptions.Descending
|
2016-05-17 08:33:39 +00:00
|
|
|
},{
|
|
|
|
caption : me.txtSortCellColor,
|
|
|
|
value : Asc.c_oAscSortOptions.ByColorFill
|
|
|
|
},{
|
|
|
|
caption : me.txtSortFontColor,
|
|
|
|
value : Asc.c_oAscSortOptions.ByColorFont
|
2020-11-26 21:25:44 +00:00
|
|
|
},{
|
|
|
|
caption : me.txtCustomSort,
|
|
|
|
value : 'advanced'
|
2016-03-11 00:48:53 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
})
|
|
|
|
});
|
|
|
|
|
2016-05-17 08:01:41 +00:00
|
|
|
me.pmiFilterCells = new Common.UI.MenuItem({
|
2020-08-20 16:58:03 +00:00
|
|
|
iconCls: 'menu__icon btn-autofilter',
|
2016-05-17 08:01:41 +00:00
|
|
|
caption : me.txtFilter,
|
|
|
|
menu : new Common.UI.Menu({
|
2020-08-20 16:58:03 +00:00
|
|
|
cls: 'shifted-right',
|
2016-05-17 08:01:41 +00:00
|
|
|
menuAlign : 'tl-tr',
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
caption : me.txtFilterValue,
|
|
|
|
value : 0
|
|
|
|
},{
|
|
|
|
caption : me.txtFilterCellColor,
|
|
|
|
value : 1
|
|
|
|
},{
|
|
|
|
caption : me.txtFilterFontColor,
|
|
|
|
value : 2
|
|
|
|
}
|
|
|
|
]
|
|
|
|
})
|
|
|
|
});
|
|
|
|
|
|
|
|
me.pmiReapply = new Common.UI.MenuItem({
|
|
|
|
caption : me.txtReapply
|
|
|
|
});
|
|
|
|
|
2021-03-04 20:15:29 +00:00
|
|
|
me.mnuGroupPivot = new Common.UI.MenuItem({
|
|
|
|
caption : this.txtGroup,
|
|
|
|
value : 'grouping'
|
|
|
|
});
|
|
|
|
|
|
|
|
me.mnuUnGroupPivot = new Common.UI.MenuItem({
|
|
|
|
caption : this.txtUngroup,
|
|
|
|
value : 'ungrouping'
|
|
|
|
});
|
|
|
|
|
2016-03-11 00:48:53 +00:00
|
|
|
me.pmiInsFunction = new Common.UI.MenuItem({
|
2020-08-20 16:58:03 +00:00
|
|
|
iconCls: 'menu__icon btn-function',
|
2016-03-11 00:48:53 +00:00
|
|
|
caption : me.txtFormula
|
|
|
|
});
|
|
|
|
|
|
|
|
me.menuAddHyperlink = new Common.UI.MenuItem({
|
2020-08-25 12:34:03 +00:00
|
|
|
iconCls: 'menu__icon btn-inserthyperlink',
|
2016-03-11 00:48:53 +00:00
|
|
|
caption : me.txtInsHyperlink,
|
|
|
|
inCell : true
|
|
|
|
});
|
|
|
|
|
|
|
|
me.menuEditHyperlink = new Common.UI.MenuItem({
|
|
|
|
caption : me.editHyperlinkText,
|
|
|
|
inCell : true
|
|
|
|
});
|
|
|
|
|
|
|
|
me.menuRemoveHyperlink = new Common.UI.MenuItem({
|
|
|
|
caption : me.removeHyperlinkText
|
|
|
|
});
|
|
|
|
|
|
|
|
me.menuHyperlink = new Common.UI.MenuItem({
|
2020-08-25 12:34:03 +00:00
|
|
|
iconCls: 'menu__icon btn-inserthyperlink',
|
2016-03-11 00:48:53 +00:00
|
|
|
caption : me.txtInsHyperlink,
|
|
|
|
menu : new Common.UI.Menu({
|
2020-08-20 16:58:03 +00:00
|
|
|
cls: 'shifted-right',
|
2016-03-11 00:48:53 +00:00
|
|
|
menuAlign: 'tl-tr',
|
|
|
|
items : [
|
|
|
|
me.menuEditHyperlink,
|
|
|
|
me.menuRemoveHyperlink
|
|
|
|
]
|
|
|
|
})
|
|
|
|
});
|
|
|
|
|
|
|
|
me.pmiRowHeight = new Common.UI.MenuItem({
|
|
|
|
caption : me.txtRowHeight,
|
2016-07-26 12:47:48 +00:00
|
|
|
menu : new Common.UI.Menu({
|
2020-08-20 16:58:03 +00:00
|
|
|
cls: 'shifted-right',
|
2016-07-26 12:47:48 +00:00
|
|
|
menuAlign: 'tl-tr',
|
|
|
|
items : [
|
|
|
|
{ caption: me.txtAutoRowHeight, value: 'auto-row-height' },
|
|
|
|
{ caption: me.txtCustomRowHeight, value: 'row-height' }
|
|
|
|
]
|
|
|
|
})
|
2016-03-11 00:48:53 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
me.pmiColumnWidth = new Common.UI.MenuItem({
|
|
|
|
caption : me.txtColumnWidth,
|
2016-07-26 12:47:48 +00:00
|
|
|
menu : new Common.UI.Menu({
|
2020-08-20 16:58:03 +00:00
|
|
|
cls: 'shifted-right',
|
2016-07-26 12:47:48 +00:00
|
|
|
menuAlign: 'tl-tr',
|
|
|
|
items : [
|
|
|
|
{ caption: me.txtAutoColumnWidth, value: 'auto-column-width' },
|
|
|
|
{ caption: me.txtCustomColumnWidth, value: 'column-width' }
|
|
|
|
]
|
|
|
|
})
|
2016-03-11 00:48:53 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
me.pmiEntireHide = new Common.UI.MenuItem({
|
|
|
|
caption : me.txtHide
|
|
|
|
});
|
|
|
|
|
|
|
|
me.pmiEntireShow = new Common.UI.MenuItem({
|
|
|
|
caption : me.txtShow
|
|
|
|
});
|
|
|
|
|
|
|
|
me.pmiAddComment = new Common.UI.MenuItem({
|
2020-08-20 16:58:03 +00:00
|
|
|
iconCls: 'menu__icon btn-menu-comments',
|
2016-03-11 00:48:53 +00:00
|
|
|
id : 'id-context-menu-item-add-comment',
|
|
|
|
caption : me.txtAddComment
|
|
|
|
});
|
|
|
|
|
|
|
|
me.pmiCellMenuSeparator = new Common.UI.MenuItem({
|
|
|
|
caption : '--'
|
|
|
|
});
|
|
|
|
|
|
|
|
me.pmiAddNamedRange = new Common.UI.MenuItem({
|
|
|
|
id : 'id-context-menu-item-add-named-range',
|
|
|
|
caption : me.txtAddNamedRange
|
|
|
|
});
|
|
|
|
|
|
|
|
me.pmiFreezePanes = new Common.UI.MenuItem({
|
|
|
|
caption : me.textFreezePanes
|
|
|
|
});
|
|
|
|
|
2016-10-25 13:22:22 +00:00
|
|
|
me.pmiEntriesList = new Common.UI.MenuItem({
|
|
|
|
caption : me.textEntriesList
|
|
|
|
});
|
|
|
|
|
2016-11-25 12:58:57 +00:00
|
|
|
me.pmiSparklines = new Common.UI.MenuItem({
|
|
|
|
caption : me.txtSparklines,
|
|
|
|
menu : new Common.UI.Menu({
|
2020-08-20 16:58:03 +00:00
|
|
|
cls: 'shifted-right',
|
2016-11-25 12:58:57 +00:00
|
|
|
menuAlign: 'tl-tr',
|
|
|
|
items : [
|
|
|
|
{ caption: me.txtClearSparklines, value: Asc.c_oAscCleanOptions.Sparklines },
|
|
|
|
{ caption: me.txtClearSparklineGroups, value: Asc.c_oAscCleanOptions.SparklineGroups }
|
|
|
|
]
|
|
|
|
})
|
|
|
|
});
|
|
|
|
|
2018-04-13 13:29:31 +00:00
|
|
|
var numFormatTemplate = _.template('<a id="<%= id %>" tabindex="-1" type="menuitem">'+
|
|
|
|
'<div style="position: relative;">'+
|
|
|
|
'<div style="position: absolute; left: 0; width: 100px;"><%= caption %></div>' +
|
|
|
|
'<label style="width: 100%; max-width: 300px; overflow: hidden; text-overflow: ellipsis; text-align: right; vertical-align: bottom; padding-left: 100px; color: silver;cursor: pointer;"><%= options.exampleval ? options.exampleval : "" %></label>' +
|
|
|
|
'</div></a>');
|
|
|
|
|
|
|
|
me.pmiNumFormat = new Common.UI.MenuItem({
|
|
|
|
caption: me.txtNumFormat,
|
|
|
|
menu: new Common.UI.Menu({
|
2020-08-20 16:58:03 +00:00
|
|
|
cls: 'shifted-right',
|
2018-04-13 13:29:31 +00:00
|
|
|
menuAlign: 'tl-tr',
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
caption: this.txtGeneral,
|
|
|
|
template: numFormatTemplate,
|
|
|
|
checkable: true,
|
|
|
|
format: 'General',
|
|
|
|
exampleval: '100',
|
|
|
|
value: Asc.c_oAscNumFormatType.General
|
|
|
|
},
|
|
|
|
{
|
|
|
|
caption: this.txtNumber,
|
|
|
|
template: numFormatTemplate,
|
|
|
|
checkable: true,
|
|
|
|
format: '0.00',
|
|
|
|
exampleval: '100,00',
|
|
|
|
value: Asc.c_oAscNumFormatType.Number
|
|
|
|
},
|
|
|
|
{
|
|
|
|
caption: this.txtScientific,
|
|
|
|
template: numFormatTemplate,
|
|
|
|
checkable: true,
|
|
|
|
format: '0.00E+00',
|
|
|
|
exampleval: '1,00E+02',
|
|
|
|
value: Asc.c_oAscNumFormatType.Scientific
|
|
|
|
},
|
|
|
|
{
|
|
|
|
caption: this.txtAccounting,
|
|
|
|
template: numFormatTemplate,
|
|
|
|
checkable: true,
|
|
|
|
format: '_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)',
|
|
|
|
exampleval: '100,00 $',
|
|
|
|
value: Asc.c_oAscNumFormatType.Accounting
|
|
|
|
},
|
|
|
|
{
|
|
|
|
caption: this.txtCurrency,
|
|
|
|
template: numFormatTemplate,
|
|
|
|
checkable: true,
|
|
|
|
format: '$#,##0.00',
|
|
|
|
exampleval: '100,00 $',
|
|
|
|
value: Asc.c_oAscNumFormatType.Currency
|
|
|
|
},
|
|
|
|
{
|
|
|
|
caption: this.txtDate,
|
|
|
|
template: numFormatTemplate,
|
|
|
|
checkable: true,
|
|
|
|
format: 'MM-dd-yyyy',
|
|
|
|
exampleval: '04-09-1900',
|
|
|
|
value: Asc.c_oAscNumFormatType.Date
|
|
|
|
},
|
|
|
|
{
|
|
|
|
caption: this.txtTime,
|
|
|
|
template: numFormatTemplate,
|
|
|
|
checkable: true,
|
|
|
|
format: 'HH:MM:ss',
|
|
|
|
exampleval: '00:00:00',
|
|
|
|
value: Asc.c_oAscNumFormatType.Time
|
|
|
|
},
|
|
|
|
{
|
|
|
|
caption: this.txtPercentage,
|
|
|
|
template: numFormatTemplate,
|
|
|
|
checkable: true,
|
|
|
|
format: '0.00%',
|
|
|
|
exampleval: '100,00%',
|
|
|
|
value: Asc.c_oAscNumFormatType.Percent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
caption: this.txtFraction,
|
|
|
|
template: numFormatTemplate,
|
|
|
|
checkable: true,
|
|
|
|
format: '# ?/?',
|
|
|
|
exampleval: '100',
|
|
|
|
value: Asc.c_oAscNumFormatType.Fraction
|
|
|
|
},
|
|
|
|
{
|
|
|
|
caption: this.txtText,
|
|
|
|
template: numFormatTemplate,
|
|
|
|
checkable: true,
|
|
|
|
format: '@',
|
|
|
|
exampleval: '100',
|
|
|
|
value: Asc.c_oAscNumFormatType.Text
|
|
|
|
},
|
|
|
|
{caption: '--'},
|
|
|
|
me.pmiAdvancedNumFormat = new Common.UI.MenuItem({
|
|
|
|
caption: me.textMoreFormats,
|
|
|
|
value: 'advanced'
|
|
|
|
})
|
|
|
|
]
|
|
|
|
})
|
|
|
|
});
|
|
|
|
|
2021-03-11 20:11:07 +00:00
|
|
|
me.pmiCondFormat = new Common.UI.MenuItem({
|
|
|
|
caption : me.txtCondFormat
|
|
|
|
});
|
|
|
|
|
2016-03-11 00:48:53 +00:00
|
|
|
me.ssMenu = new Common.UI.Menu({
|
2020-08-20 16:58:03 +00:00
|
|
|
cls: 'shifted-right',
|
2022-02-09 19:51:43 +00:00
|
|
|
restoreHeightAndTop: true,
|
2016-03-11 00:48:53 +00:00
|
|
|
id : 'id-context-menu-cell',
|
|
|
|
items : [
|
|
|
|
me.pmiCut,
|
|
|
|
me.pmiCopy,
|
|
|
|
me.pmiPaste,
|
|
|
|
{caption: '--'},
|
2016-03-30 12:27:16 +00:00
|
|
|
me.pmiSelectTable,
|
2016-03-11 00:48:53 +00:00
|
|
|
me.pmiInsertEntire,
|
|
|
|
me.pmiInsertCells,
|
2016-03-30 12:27:16 +00:00
|
|
|
me.pmiInsertTable,
|
2016-03-11 00:48:53 +00:00
|
|
|
me.pmiDeleteEntire,
|
|
|
|
me.pmiDeleteCells,
|
2016-03-30 12:27:16 +00:00
|
|
|
me.pmiDeleteTable,
|
2016-03-11 00:48:53 +00:00
|
|
|
me.pmiClear,
|
2016-05-17 08:01:41 +00:00
|
|
|
{caption: '--'},
|
2016-11-25 12:58:57 +00:00
|
|
|
me.pmiSparklines,
|
2016-03-11 00:48:53 +00:00
|
|
|
me.pmiSortCells,
|
2016-05-17 08:01:41 +00:00
|
|
|
me.pmiFilterCells,
|
|
|
|
me.pmiReapply,
|
2021-03-04 20:15:29 +00:00
|
|
|
me.mnuGroupPivot,
|
|
|
|
me.mnuUnGroupPivot,
|
2016-03-11 00:48:53 +00:00
|
|
|
{caption: '--'},
|
|
|
|
me.pmiAddComment,
|
|
|
|
me.pmiCellMenuSeparator,
|
2018-04-13 13:29:31 +00:00
|
|
|
me.pmiNumFormat,
|
2021-03-11 20:11:07 +00:00
|
|
|
me.pmiCondFormat,
|
2016-10-25 13:22:22 +00:00
|
|
|
me.pmiEntriesList,
|
2016-03-11 00:48:53 +00:00
|
|
|
me.pmiAddNamedRange,
|
|
|
|
me.pmiInsFunction,
|
|
|
|
me.menuAddHyperlink,
|
|
|
|
me.menuHyperlink,
|
|
|
|
me.pmiRowHeight,
|
|
|
|
me.pmiColumnWidth,
|
|
|
|
me.pmiEntireHide,
|
|
|
|
me.pmiEntireShow,
|
|
|
|
me.pmiFreezePanes
|
|
|
|
]
|
|
|
|
});
|
|
|
|
|
|
|
|
me.mnuGroupImg = new Common.UI.MenuItem({
|
|
|
|
caption : this.txtGroup,
|
2019-11-21 16:15:47 +00:00
|
|
|
iconCls : 'menu__icon shape-group',
|
2016-03-11 00:48:53 +00:00
|
|
|
type : 'group',
|
|
|
|
value : 'grouping'
|
|
|
|
});
|
|
|
|
|
|
|
|
me.mnuUnGroupImg = new Common.UI.MenuItem({
|
|
|
|
caption : this.txtUngroup,
|
2019-11-21 16:15:47 +00:00
|
|
|
iconCls : 'menu__icon shape-ungroup',
|
2016-03-11 00:48:53 +00:00
|
|
|
type : 'group',
|
|
|
|
value : 'ungrouping'
|
|
|
|
});
|
|
|
|
|
|
|
|
me.mnuShapeSeparator = new Common.UI.MenuItem({
|
|
|
|
caption : '--'
|
|
|
|
});
|
|
|
|
|
|
|
|
me.mnuShapeAdvanced = new Common.UI.MenuItem({
|
2020-08-20 16:58:03 +00:00
|
|
|
iconCls : 'menu__icon btn-menu-shape',
|
2016-03-11 00:48:53 +00:00
|
|
|
caption : me.advancedShapeText
|
|
|
|
});
|
|
|
|
|
2017-04-11 11:05:56 +00:00
|
|
|
me.mnuImgAdvanced = new Common.UI.MenuItem({
|
2020-08-20 16:58:03 +00:00
|
|
|
iconCls : 'menu__icon btn-menu-image',
|
2017-04-11 11:05:56 +00:00
|
|
|
caption : me.advancedImgText
|
|
|
|
});
|
|
|
|
|
2020-05-25 17:25:16 +00:00
|
|
|
me.mnuSlicerSeparator = new Common.UI.MenuItem({
|
|
|
|
caption : '--'
|
|
|
|
});
|
|
|
|
|
|
|
|
me.mnuSlicerAdvanced = new Common.UI.MenuItem({
|
2020-08-20 16:58:03 +00:00
|
|
|
iconCls : 'menu__icon btn-slicer',
|
2020-05-25 17:25:16 +00:00
|
|
|
caption : me.advancedSlicerText
|
|
|
|
});
|
|
|
|
|
2016-03-11 00:48:53 +00:00
|
|
|
me.mnuChartEdit = new Common.UI.MenuItem({
|
2020-08-20 16:58:03 +00:00
|
|
|
iconCls : 'menu__icon btn-menu-chart',
|
2016-03-11 00:48:53 +00:00
|
|
|
caption : me.chartText
|
|
|
|
});
|
|
|
|
|
|
|
|
me.pmiImgCut = new Common.UI.MenuItem({
|
2020-08-25 12:34:03 +00:00
|
|
|
iconCls: 'menu__icon btn-cut',
|
2016-03-11 00:48:53 +00:00
|
|
|
caption : me.txtCut,
|
|
|
|
value : 'cut'
|
|
|
|
});
|
|
|
|
|
|
|
|
me.pmiImgCopy = new Common.UI.MenuItem({
|
2020-08-20 16:58:03 +00:00
|
|
|
iconCls: 'menu__icon btn-copy',
|
2016-03-11 00:48:53 +00:00
|
|
|
caption : me.txtCopy,
|
|
|
|
value : 'copy'
|
|
|
|
});
|
|
|
|
|
|
|
|
me.pmiImgPaste = new Common.UI.MenuItem({
|
2020-08-20 16:58:03 +00:00
|
|
|
iconCls: 'menu__icon btn-paste',
|
2016-03-11 00:48:53 +00:00
|
|
|
caption : me.txtPaste,
|
|
|
|
value : 'paste'
|
|
|
|
});
|
|
|
|
|
2017-11-22 08:41:47 +00:00
|
|
|
me.menuSignatureEditSign = new Common.UI.MenuItem({caption: this.strSign, value: 0 });
|
|
|
|
me.menuSignatureEditSetup = new Common.UI.MenuItem({caption: this.strSetup, value: 2 });
|
|
|
|
me.menuEditSignSeparator = new Common.UI.MenuItem({ caption: '--' });
|
|
|
|
|
2018-04-11 13:46:44 +00:00
|
|
|
me.menuImgOriginalSize = new Common.UI.MenuItem({
|
|
|
|
caption : me.originalSizeText
|
|
|
|
});
|
|
|
|
|
|
|
|
me.menuImgReplace = new Common.UI.MenuItem({
|
|
|
|
caption : me.textReplace,
|
|
|
|
menu : new Common.UI.Menu({
|
2020-08-20 16:58:03 +00:00
|
|
|
cls: 'shifted-right',
|
2018-04-11 13:46:44 +00:00
|
|
|
menuAlign: 'tl-tr',
|
|
|
|
items: [
|
|
|
|
new Common.UI.MenuItem({caption : this.textFromFile, value: 'file'}),
|
2020-05-13 14:43:45 +00:00
|
|
|
new Common.UI.MenuItem({caption : this.textFromUrl, value: 'url'}),
|
|
|
|
new Common.UI.MenuItem({caption : this.textFromStorage, value: 'storage'})
|
2018-04-11 13:46:44 +00:00
|
|
|
]
|
|
|
|
})
|
|
|
|
});
|
|
|
|
|
2019-04-09 11:29:51 +00:00
|
|
|
me.menuImgCrop = new Common.UI.MenuItem({
|
|
|
|
caption : me.textCrop,
|
|
|
|
menu : new Common.UI.Menu({
|
2020-08-20 16:58:03 +00:00
|
|
|
cls: 'shifted-right',
|
2019-04-09 11:29:51 +00:00
|
|
|
menuAlign: 'tl-tr',
|
|
|
|
items: [
|
|
|
|
new Common.UI.MenuItem({
|
|
|
|
caption: me.textCrop,
|
|
|
|
checkable: true,
|
|
|
|
allowDepress: true,
|
|
|
|
value : 0
|
|
|
|
}),
|
|
|
|
new Common.UI.MenuItem({
|
|
|
|
caption: me.textCropFill,
|
|
|
|
value : 1
|
|
|
|
}),
|
|
|
|
new Common.UI.MenuItem({
|
|
|
|
caption: me.textCropFit,
|
|
|
|
value : 2
|
|
|
|
})
|
|
|
|
]
|
|
|
|
})
|
|
|
|
});
|
|
|
|
|
2018-10-24 10:46:58 +00:00
|
|
|
me.mnuBringToFront = new Common.UI.MenuItem({
|
|
|
|
caption : this.textArrangeFront,
|
2019-11-21 16:15:47 +00:00
|
|
|
iconCls : 'menu__icon arrange-front',
|
2018-10-24 10:46:58 +00:00
|
|
|
type : 'arrange',
|
|
|
|
value : Asc.c_oAscDrawingLayerType.BringToFront
|
|
|
|
});
|
|
|
|
me.mnuSendToBack = new Common.UI.MenuItem({
|
|
|
|
caption : this.textArrangeBack,
|
2019-11-21 16:15:47 +00:00
|
|
|
iconCls : 'menu__icon arrange-back',
|
2019-02-27 09:52:19 +00:00
|
|
|
type : 'arrange',
|
|
|
|
value : Asc.c_oAscDrawingLayerType.SendToBack
|
2018-10-24 10:46:58 +00:00
|
|
|
});
|
|
|
|
me.mnuBringForward = new Common.UI.MenuItem({
|
|
|
|
caption : this.textArrangeForward,
|
2019-11-21 16:15:47 +00:00
|
|
|
iconCls : 'menu__icon arrange-forward',
|
2019-02-27 09:52:19 +00:00
|
|
|
type : 'arrange',
|
|
|
|
value : Asc.c_oAscDrawingLayerType.BringForward
|
2018-10-24 10:46:58 +00:00
|
|
|
});
|
|
|
|
me.mnuSendBackward = new Common.UI.MenuItem({
|
|
|
|
caption: this.textArrangeBackward,
|
2019-11-21 16:15:47 +00:00
|
|
|
iconCls : 'menu__icon arrange-backward',
|
2019-02-27 09:52:19 +00:00
|
|
|
type : 'arrange',
|
|
|
|
value : Asc.c_oAscDrawingLayerType.SendBackward
|
|
|
|
});
|
|
|
|
|
|
|
|
me.menuImageArrange = new Common.UI.MenuItem({
|
|
|
|
caption : me.textArrange,
|
|
|
|
menu : new Common.UI.Menu({
|
2020-08-20 16:58:03 +00:00
|
|
|
cls: 'shifted-right',
|
2019-02-27 09:52:19 +00:00
|
|
|
menuAlign: 'tl-tr',
|
|
|
|
items: [
|
|
|
|
me.mnuBringToFront,
|
|
|
|
me.mnuSendToBack,
|
|
|
|
me.mnuBringForward,
|
|
|
|
me.mnuSendBackward,
|
|
|
|
{ caption: '--' },
|
|
|
|
me.mnuGroupImg,
|
|
|
|
me.mnuUnGroupImg
|
|
|
|
]
|
|
|
|
})
|
|
|
|
});
|
|
|
|
|
|
|
|
me.menuImageAlign = new Common.UI.MenuItem({
|
|
|
|
caption : me.textAlign,
|
|
|
|
menu : new Common.UI.Menu({
|
2020-08-20 16:58:03 +00:00
|
|
|
cls: 'shifted-right',
|
2019-02-27 09:52:19 +00:00
|
|
|
menuAlign: 'tl-tr',
|
|
|
|
items: [{
|
|
|
|
caption : me.textShapeAlignLeft,
|
2019-11-21 16:15:47 +00:00
|
|
|
iconCls : 'menu__icon shape-align-left',
|
2019-02-27 09:52:19 +00:00
|
|
|
value : 0
|
|
|
|
}, {
|
|
|
|
caption : me.textShapeAlignCenter,
|
2019-11-21 16:15:47 +00:00
|
|
|
iconCls : 'menu__icon shape-align-center',
|
2019-02-27 09:52:19 +00:00
|
|
|
value : 4
|
|
|
|
}, {
|
|
|
|
caption : me.textShapeAlignRight,
|
2019-11-21 16:15:47 +00:00
|
|
|
iconCls : 'menu__icon shape-align-right',
|
2019-02-27 09:52:19 +00:00
|
|
|
value : 1
|
|
|
|
}, {
|
|
|
|
caption : me.textShapeAlignTop,
|
2019-11-21 16:15:47 +00:00
|
|
|
iconCls : 'menu__icon shape-align-top',
|
2019-02-27 09:52:19 +00:00
|
|
|
value : 3
|
|
|
|
}, {
|
|
|
|
caption : me.textShapeAlignMiddle,
|
2019-11-21 16:15:47 +00:00
|
|
|
iconCls : 'menu__icon shape-align-middle',
|
2019-02-27 09:52:19 +00:00
|
|
|
value : 5
|
|
|
|
}, {
|
|
|
|
caption : me.textShapeAlignBottom,
|
2019-11-21 16:15:47 +00:00
|
|
|
iconCls : 'menu__icon shape-align-bottom',
|
2019-02-27 09:52:19 +00:00
|
|
|
value : 2
|
|
|
|
},
|
|
|
|
{caption: '--'},
|
|
|
|
{
|
|
|
|
caption: me.txtDistribHor,
|
2019-11-21 16:15:47 +00:00
|
|
|
iconCls: 'menu__icon shape-distribute-hor',
|
2019-02-27 09:52:19 +00:00
|
|
|
value: 6
|
|
|
|
},
|
|
|
|
{
|
|
|
|
caption: me.txtDistribVert,
|
2019-11-21 16:15:47 +00:00
|
|
|
iconCls: 'menu__icon shape-distribute-vert',
|
2019-02-27 09:52:19 +00:00
|
|
|
value: 7
|
|
|
|
}]
|
|
|
|
})
|
|
|
|
});
|
|
|
|
|
|
|
|
me.menuImgRotate = new Common.UI.MenuItem({
|
|
|
|
caption : me.textRotate,
|
|
|
|
menu : new Common.UI.Menu({
|
2020-08-20 16:58:03 +00:00
|
|
|
cls: 'shifted-right',
|
2019-02-27 09:52:19 +00:00
|
|
|
menuAlign: 'tl-tr',
|
|
|
|
items: [
|
|
|
|
new Common.UI.MenuItem({
|
2020-08-20 16:58:03 +00:00
|
|
|
iconCls: 'menu__icon btn-rotate-90',
|
2019-02-27 10:11:28 +00:00
|
|
|
caption: me.textRotate90,
|
2019-02-27 09:52:19 +00:00
|
|
|
type : 'rotate',
|
2019-02-27 10:11:28 +00:00
|
|
|
value : 1
|
2019-02-27 09:52:19 +00:00
|
|
|
}),
|
|
|
|
new Common.UI.MenuItem({
|
2020-08-20 16:58:03 +00:00
|
|
|
iconCls: 'menu__icon btn-rotate-270',
|
2019-02-27 10:11:28 +00:00
|
|
|
caption: me.textRotate270,
|
2019-02-27 09:52:19 +00:00
|
|
|
type : 'rotate',
|
2019-02-27 10:11:28 +00:00
|
|
|
value : 0
|
2019-02-27 09:52:19 +00:00
|
|
|
}),
|
2019-02-27 11:51:52 +00:00
|
|
|
{ caption: '--' },
|
2019-02-27 09:52:19 +00:00
|
|
|
new Common.UI.MenuItem({
|
2020-08-20 16:58:03 +00:00
|
|
|
iconCls: 'menu__icon btn-flip-hor',
|
2019-02-27 09:52:19 +00:00
|
|
|
caption: me.textFlipH,
|
|
|
|
type : 'flip',
|
|
|
|
value : 1
|
|
|
|
}),
|
|
|
|
new Common.UI.MenuItem({
|
2020-08-20 16:58:03 +00:00
|
|
|
iconCls: 'menu__icon btn-flip-vert',
|
2019-02-27 09:52:19 +00:00
|
|
|
caption: me.textFlipV,
|
|
|
|
type : 'flip',
|
|
|
|
value : 0
|
|
|
|
})
|
|
|
|
]
|
|
|
|
})
|
2018-10-24 10:46:58 +00:00
|
|
|
});
|
2019-02-27 09:52:19 +00:00
|
|
|
|
2021-04-16 20:29:20 +00:00
|
|
|
me.menuImgMacro = new Common.UI.MenuItem({
|
|
|
|
caption: me.textMacro
|
|
|
|
});
|
|
|
|
|
2021-09-21 10:34:31 +00:00
|
|
|
me.menuImgEditPoints = new Common.UI.MenuItem({
|
|
|
|
caption: me.textEditPoints
|
|
|
|
});
|
|
|
|
|
|
|
|
me.menuImgEditPointsSeparator = new Common.UI.MenuItem({
|
|
|
|
caption : '--'
|
|
|
|
});
|
|
|
|
|
2016-03-11 00:48:53 +00:00
|
|
|
this.imgMenu = new Common.UI.Menu({
|
2020-08-20 16:58:03 +00:00
|
|
|
cls: 'shifted-right',
|
2022-02-09 19:51:43 +00:00
|
|
|
restoreHeightAndTop: true,
|
2016-03-11 00:48:53 +00:00
|
|
|
items: [
|
|
|
|
me.pmiImgCut,
|
|
|
|
me.pmiImgCopy,
|
|
|
|
me.pmiImgPaste,
|
|
|
|
{caption: '--'},
|
2017-11-22 08:41:47 +00:00
|
|
|
me.menuSignatureEditSign,
|
|
|
|
me.menuSignatureEditSetup,
|
|
|
|
me.menuEditSignSeparator,
|
2021-09-21 10:34:31 +00:00
|
|
|
me.menuImgEditPoints,
|
|
|
|
me.menuImgEditPointsSeparator,
|
2019-02-27 09:52:19 +00:00
|
|
|
me.menuImageArrange,
|
|
|
|
me.menuImageAlign,
|
|
|
|
me.menuImgRotate,
|
2021-04-16 20:29:20 +00:00
|
|
|
me.menuImgMacro,
|
2016-03-11 00:48:53 +00:00
|
|
|
me.mnuShapeSeparator,
|
2019-04-09 11:29:51 +00:00
|
|
|
me.menuImgCrop,
|
2016-03-11 00:48:53 +00:00
|
|
|
me.mnuChartEdit,
|
2017-04-11 11:05:56 +00:00
|
|
|
me.mnuShapeAdvanced,
|
2018-04-11 13:46:44 +00:00
|
|
|
me.menuImgOriginalSize,
|
|
|
|
me.menuImgReplace,
|
2020-05-25 17:25:16 +00:00
|
|
|
me.mnuImgAdvanced,
|
|
|
|
me.mnuSlicerSeparator,
|
|
|
|
me.mnuSlicerAdvanced
|
2016-03-11 00:48:53 +00:00
|
|
|
]
|
|
|
|
});
|
|
|
|
|
|
|
|
this.menuParagraphVAlign = new Common.UI.MenuItem({
|
2020-08-20 18:03:07 +00:00
|
|
|
iconCls: 'menu__icon btn-align-top',
|
2016-03-11 00:48:53 +00:00
|
|
|
caption : this.vertAlignText,
|
|
|
|
menu : new Common.UI.Menu({
|
2020-08-20 16:58:03 +00:00
|
|
|
cls: 'shifted-right',
|
2016-03-11 00:48:53 +00:00
|
|
|
menuAlign : 'tl-tr',
|
|
|
|
items: [
|
|
|
|
me.menuParagraphTop = new Common.UI.MenuItem({
|
2020-08-20 16:58:03 +00:00
|
|
|
iconCls: 'menu__icon btn-align-top',
|
2016-03-11 00:48:53 +00:00
|
|
|
caption : me.topCellText,
|
|
|
|
checkable : true,
|
2020-08-20 16:58:03 +00:00
|
|
|
checkmark : false,
|
2016-03-11 00:48:53 +00:00
|
|
|
toggleGroup : 'popupparagraphvalign',
|
2016-11-10 11:24:18 +00:00
|
|
|
value : Asc.c_oAscVAlign.Top
|
2016-03-11 00:48:53 +00:00
|
|
|
}),
|
|
|
|
me.menuParagraphCenter = new Common.UI.MenuItem({
|
2020-08-20 16:58:03 +00:00
|
|
|
iconCls: 'menu__icon btn-align-middle',
|
2016-03-11 00:48:53 +00:00
|
|
|
caption : me.centerCellText,
|
|
|
|
checkable : true,
|
2020-08-20 16:58:03 +00:00
|
|
|
checkmark : false,
|
2016-03-11 00:48:53 +00:00
|
|
|
toggleGroup : 'popupparagraphvalign',
|
2016-11-10 11:24:18 +00:00
|
|
|
value : Asc.c_oAscVAlign.Center
|
2016-03-11 00:48:53 +00:00
|
|
|
}),
|
|
|
|
this.menuParagraphBottom = new Common.UI.MenuItem({
|
2020-08-20 16:58:03 +00:00
|
|
|
iconCls: 'menu__icon btn-align-bottom',
|
2016-03-11 00:48:53 +00:00
|
|
|
caption : me.bottomCellText,
|
|
|
|
checkable : true,
|
2020-08-20 16:58:03 +00:00
|
|
|
checkmark : false,
|
2016-03-11 00:48:53 +00:00
|
|
|
toggleGroup : 'popupparagraphvalign',
|
2016-11-10 11:24:18 +00:00
|
|
|
value : Asc.c_oAscVAlign.Bottom
|
2016-03-11 00:48:53 +00:00
|
|
|
})
|
|
|
|
]
|
|
|
|
})
|
|
|
|
});
|
|
|
|
|
|
|
|
me.menuParagraphDirection = new Common.UI.MenuItem({
|
2020-08-20 18:03:07 +00:00
|
|
|
iconCls: 'menu__icon text-orient-hor',
|
2016-03-11 00:48:53 +00:00
|
|
|
caption : me.directionText,
|
|
|
|
menu : new Common.UI.Menu({
|
2020-08-20 16:58:03 +00:00
|
|
|
cls: 'shifted-right',
|
2016-03-11 00:48:53 +00:00
|
|
|
menuAlign: 'tl-tr',
|
|
|
|
items : [
|
|
|
|
me.menuParagraphDirectH = new Common.UI.MenuItem({
|
|
|
|
caption : me.directHText,
|
2019-11-21 16:15:47 +00:00
|
|
|
iconCls : 'menu__icon text-orient-hor',
|
2016-03-11 00:48:53 +00:00
|
|
|
checkable : true,
|
2019-11-21 16:15:47 +00:00
|
|
|
checkmark : false,
|
2016-03-11 00:48:53 +00:00
|
|
|
checked : false,
|
|
|
|
toggleGroup : 'popupparagraphdirect',
|
2016-04-05 11:52:34 +00:00
|
|
|
direction : Asc.c_oAscVertDrawingText.normal
|
2016-03-11 00:48:53 +00:00
|
|
|
}),
|
|
|
|
me.menuParagraphDirect90 = new Common.UI.MenuItem({
|
|
|
|
caption : me.direct90Text,
|
2019-11-21 16:15:47 +00:00
|
|
|
iconCls : 'menu__icon text-orient-rdown',
|
2016-03-11 00:48:53 +00:00
|
|
|
checkable : true,
|
2019-11-21 16:15:47 +00:00
|
|
|
checkmark : false,
|
2016-03-11 00:48:53 +00:00
|
|
|
checked : false,
|
|
|
|
toggleGroup : 'popupparagraphdirect',
|
2016-04-05 11:52:34 +00:00
|
|
|
direction : Asc.c_oAscVertDrawingText.vert
|
2016-03-11 00:48:53 +00:00
|
|
|
}),
|
|
|
|
me.menuParagraphDirect270 = new Common.UI.MenuItem({
|
|
|
|
caption : me.direct270Text,
|
2019-11-21 16:15:47 +00:00
|
|
|
iconCls : 'menu__icon text-orient-rup',
|
2016-03-11 00:48:53 +00:00
|
|
|
checkable : true,
|
2019-11-21 16:15:47 +00:00
|
|
|
checkmark : false,
|
2016-03-11 00:48:53 +00:00
|
|
|
checked : false,
|
|
|
|
toggleGroup : 'popupparagraphdirect',
|
2016-04-05 11:52:34 +00:00
|
|
|
direction : Asc.c_oAscVertDrawingText.vert270
|
2016-03-11 00:48:53 +00:00
|
|
|
})
|
|
|
|
]
|
|
|
|
})
|
|
|
|
});
|
|
|
|
|
2017-05-18 07:31:18 +00:00
|
|
|
me.menuParagraphBullets = new Common.UI.MenuItem({
|
2020-08-20 16:58:03 +00:00
|
|
|
iconCls: 'menu__icon btn-setmarkers',
|
2017-05-18 07:31:18 +00:00
|
|
|
caption : me.bulletsText,
|
|
|
|
menu : new Common.UI.Menu({
|
2020-08-20 16:58:03 +00:00
|
|
|
cls: 'shifted-right',
|
2017-05-18 07:31:18 +00:00
|
|
|
menuAlign: 'tl-tr',
|
|
|
|
items : [
|
2021-08-23 14:47:10 +00:00
|
|
|
{ template: _.template('<div id="id-docholder-menu-bullets" class="menu-layouts" style="width: 376px; margin: 4px 2px 4px 6px;"></div>') },
|
2017-05-18 07:31:18 +00:00
|
|
|
{caption: '--'},
|
|
|
|
me.menuParagraphBulletNone = new Common.UI.MenuItem({
|
|
|
|
caption : me.textNone,
|
|
|
|
checkable : true,
|
|
|
|
checked : false,
|
|
|
|
value : -1
|
2019-11-07 11:01:07 +00:00
|
|
|
}),
|
|
|
|
me.mnuListSettings = new Common.UI.MenuItem({
|
|
|
|
caption: me.textListSettings,
|
|
|
|
value: 'settings'
|
2017-05-18 07:31:18 +00:00
|
|
|
})
|
|
|
|
]
|
|
|
|
})
|
|
|
|
});
|
2021-04-03 07:44:20 +00:00
|
|
|
|
2017-05-18 07:31:18 +00:00
|
|
|
me.paraBulletsPicker = {
|
|
|
|
conf: {rec: null},
|
2021-09-27 09:59:39 +00:00
|
|
|
delayRenderTips: true,
|
2017-05-18 07:31:18 +00:00
|
|
|
store : new Common.UI.DataViewStore([
|
2021-09-27 09:59:39 +00:00
|
|
|
{group: 'menu-list-bullet-group', id: 'id-markers-' + Common.UI.getId(), type: 0, subtype: 1, skipRenderOnChange: true, tip: this.tipMarkersFRound},
|
|
|
|
{group: 'menu-list-bullet-group', id: 'id-markers-' + Common.UI.getId(), type: 0, subtype: 2, skipRenderOnChange: true, tip: this.tipMarkersHRound},
|
|
|
|
{group: 'menu-list-bullet-group', id: 'id-markers-' + Common.UI.getId(), type: 0, subtype: 3, skipRenderOnChange: true, tip: this.tipMarkersFSquare},
|
|
|
|
{group: 'menu-list-bullet-group', id: 'id-markers-' + Common.UI.getId(), type: 0, subtype: 4, skipRenderOnChange: true, tip: this.tipMarkersStar},
|
|
|
|
{group: 'menu-list-bullet-group', id: 'id-markers-' + Common.UI.getId(), type: 0, subtype: 5, skipRenderOnChange: true, tip: this.tipMarkersArrow},
|
|
|
|
{group: 'menu-list-bullet-group', id: 'id-markers-' + Common.UI.getId(), type: 0, subtype: 6, skipRenderOnChange: true, tip: this.tipMarkersCheckmark},
|
|
|
|
{group: 'menu-list-bullet-group', id: 'id-markers-' + Common.UI.getId(), type: 0, subtype: 7, skipRenderOnChange: true, tip: this.tipMarkersFRhombus},
|
|
|
|
{group: 'menu-list-bullet-group', id: 'id-markers-' + Common.UI.getId(), type: 0, subtype: 8, skipRenderOnChange: true, tip: this.tipMarkersDash},
|
|
|
|
{group: 'menu-list-number-group', id: 'id-numbers-' + Common.UI.getId(), type: 1, subtype: 4, skipRenderOnChange: true, tip: this.tipNumCapitalLetters},
|
|
|
|
{group: 'menu-list-number-group', id: 'id-numbers-' + Common.UI.getId(), type: 1, subtype: 5, skipRenderOnChange: true, tip: this.tipNumLettersParentheses},
|
|
|
|
{group: 'menu-list-number-group', id: 'id-numbers-' + Common.UI.getId(), type: 1, subtype: 6, skipRenderOnChange: true, tip: this.tipNumLettersPoints},
|
|
|
|
{group: 'menu-list-number-group', id: 'id-numbers-' + Common.UI.getId(), type: 1, subtype: 1, skipRenderOnChange: true, tip: this.tipNumNumbersPoint},
|
|
|
|
{group: 'menu-list-number-group', id: 'id-numbers-' + Common.UI.getId(), type: 1, subtype: 2, skipRenderOnChange: true, tip: this.tipNumNumbersParentheses},
|
|
|
|
{group: 'menu-list-number-group', id: 'id-numbers-' + Common.UI.getId(), type: 1, subtype: 3, skipRenderOnChange: true, tip: this.tipNumRoman},
|
|
|
|
{group: 'menu-list-number-group', id: 'id-numbers-' + Common.UI.getId(), type: 1, subtype: 7, skipRenderOnChange: true, tip: this.tipNumRomanSmall}
|
2021-04-03 07:44:20 +00:00
|
|
|
]),
|
|
|
|
groups: new Common.UI.DataViewGroupStore([
|
|
|
|
{id: 'menu-list-bullet-group', caption: this.textBullets},
|
|
|
|
{id: 'menu-list-number-group', caption: this.textNumbering}
|
2017-05-18 07:31:18 +00:00
|
|
|
]),
|
|
|
|
selectRecord: function (rec) {
|
|
|
|
this.conf.rec = rec;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2016-03-11 00:48:53 +00:00
|
|
|
me.menuAddHyperlinkShape = new Common.UI.MenuItem({
|
2020-08-25 12:34:03 +00:00
|
|
|
iconCls: 'menu__icon btn-inserthyperlink',
|
2016-03-11 00:48:53 +00:00
|
|
|
caption : me.txtInsHyperlink
|
|
|
|
});
|
|
|
|
|
|
|
|
me.menuEditHyperlinkShape = new Common.UI.MenuItem({
|
|
|
|
caption : me.editHyperlinkText
|
|
|
|
});
|
|
|
|
|
|
|
|
me.menuRemoveHyperlinkShape = new Common.UI.MenuItem({
|
|
|
|
caption : me.removeHyperlinkText
|
|
|
|
});
|
|
|
|
|
|
|
|
me.menuHyperlinkShape = new Common.UI.MenuItem({
|
2020-08-25 12:34:03 +00:00
|
|
|
iconCls: 'menu__icon btn-inserthyperlink',
|
2016-03-11 00:48:53 +00:00
|
|
|
caption : me.txtInsHyperlink,
|
|
|
|
menu : new Common.UI.Menu({
|
2020-08-20 16:58:03 +00:00
|
|
|
cls: 'shifted-right',
|
2016-03-11 00:48:53 +00:00
|
|
|
menuAlign: 'tl-tr',
|
|
|
|
items : [
|
|
|
|
me.menuEditHyperlinkShape,
|
|
|
|
me.menuRemoveHyperlinkShape
|
|
|
|
]
|
|
|
|
})
|
|
|
|
});
|
|
|
|
|
|
|
|
this.pmiTextAdvanced = new Common.UI.MenuItem({
|
2020-08-20 16:58:03 +00:00
|
|
|
iconCls: 'menu__icon btn-paragraph',
|
2016-03-11 00:48:53 +00:00
|
|
|
caption : me.txtTextAdvanced
|
|
|
|
});
|
|
|
|
|
|
|
|
me.pmiTextCut = new Common.UI.MenuItem({
|
2020-08-25 12:34:03 +00:00
|
|
|
iconCls: 'menu__icon btn-cut',
|
2016-03-11 00:48:53 +00:00
|
|
|
caption : me.txtCut,
|
|
|
|
value : 'cut'
|
|
|
|
});
|
|
|
|
|
|
|
|
me.pmiTextCopy = new Common.UI.MenuItem({
|
2020-08-20 16:58:03 +00:00
|
|
|
iconCls: 'menu__icon btn-copy',
|
2016-03-11 00:48:53 +00:00
|
|
|
caption : me.txtCopy,
|
|
|
|
value : 'copy'
|
|
|
|
});
|
|
|
|
|
|
|
|
me.pmiTextPaste = new Common.UI.MenuItem({
|
2020-08-20 16:58:03 +00:00
|
|
|
iconCls: 'menu__icon btn-paste',
|
2016-03-11 00:48:53 +00:00
|
|
|
caption : me.txtPaste,
|
|
|
|
value : 'paste'
|
|
|
|
});
|
|
|
|
|
|
|
|
this.textInShapeMenu = new Common.UI.Menu({
|
2020-08-20 16:58:03 +00:00
|
|
|
cls: 'shifted-right',
|
2016-03-11 00:48:53 +00:00
|
|
|
items: [
|
|
|
|
me.pmiTextCut,
|
|
|
|
me.pmiTextCopy,
|
|
|
|
me.pmiTextPaste,
|
|
|
|
{caption: '--'},
|
|
|
|
me.menuParagraphVAlign,
|
|
|
|
me.menuParagraphDirection,
|
2017-05-18 07:31:18 +00:00
|
|
|
me.menuParagraphBullets,
|
2016-03-11 00:48:53 +00:00
|
|
|
me.menuAddHyperlinkShape,
|
|
|
|
me.menuHyperlinkShape,
|
|
|
|
{caption: '--'},
|
|
|
|
me.pmiTextAdvanced
|
|
|
|
]
|
|
|
|
});
|
|
|
|
|
2019-07-23 10:24:38 +00:00
|
|
|
me.pmiCommonCut = new Common.UI.MenuItem({
|
2020-08-25 12:34:03 +00:00
|
|
|
iconCls: 'menu__icon btn-cut',
|
2019-07-23 10:24:38 +00:00
|
|
|
caption : me.txtCut,
|
|
|
|
value : 'cut'
|
|
|
|
});
|
|
|
|
|
|
|
|
me.pmiCommonCopy = new Common.UI.MenuItem({
|
2020-08-20 16:58:03 +00:00
|
|
|
iconCls: 'menu__icon btn-copy',
|
2019-07-23 10:24:38 +00:00
|
|
|
caption : me.txtCopy,
|
|
|
|
value : 'copy'
|
|
|
|
});
|
|
|
|
|
|
|
|
me.pmiCommonPaste = new Common.UI.MenuItem({
|
2020-08-20 16:58:03 +00:00
|
|
|
iconCls: 'menu__icon btn-paste',
|
2019-07-23 10:24:38 +00:00
|
|
|
caption : me.txtPaste,
|
|
|
|
value : 'paste'
|
|
|
|
});
|
|
|
|
|
|
|
|
this.copyPasteMenu = new Common.UI.Menu({
|
2020-08-20 16:58:03 +00:00
|
|
|
cls: 'shifted-right',
|
2019-07-23 10:24:38 +00:00
|
|
|
items: [
|
|
|
|
me.pmiCommonCut,
|
|
|
|
me.pmiCommonCopy,
|
|
|
|
me.pmiCommonPaste
|
|
|
|
]
|
|
|
|
});
|
|
|
|
|
2016-03-11 00:48:53 +00:00
|
|
|
this.entriesMenu = new Common.UI.Menu({
|
|
|
|
maxHeight: 200,
|
|
|
|
cyclic: false,
|
|
|
|
items: []
|
|
|
|
}).on('show:after', function () {
|
|
|
|
this.scroller.update({alwaysVisibleY: true});
|
2021-03-05 16:29:02 +00:00
|
|
|
}).on('keydown:before', function (menu, e) {
|
|
|
|
if (e.altKey && e.keyCode == Common.UI.Keys.DOWN) {
|
|
|
|
var li = $(e.target).closest('li');
|
|
|
|
if (li.length>0)
|
|
|
|
li.click();
|
|
|
|
else
|
|
|
|
menu.hide();
|
|
|
|
}
|
2016-03-11 00:48:53 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
this.funcMenu = new Common.UI.Menu({
|
|
|
|
maxHeight: 200,
|
|
|
|
cyclic: false,
|
|
|
|
items: []
|
|
|
|
}).on('render:after', function(mnu) {
|
2016-07-06 10:59:54 +00:00
|
|
|
mnu.cmpEl.removeAttr('oo_editor_input').attr('oo_editor_keyboard', true);
|
2016-03-11 00:48:53 +00:00
|
|
|
});
|
|
|
|
|
2020-06-29 12:30:24 +00:00
|
|
|
this.tableTotalMenu = new Common.UI.Menu({
|
|
|
|
maxHeight: 160,
|
|
|
|
cyclic: false,
|
|
|
|
cls: 'lang-menu',
|
|
|
|
items: [
|
|
|
|
{caption: this.textNone, value: Asc.ETotalsRowFunction.totalrowfunctionNone, checkable: true},
|
|
|
|
{caption: this.textAverage, value: Asc.ETotalsRowFunction.totalrowfunctionAverage, checkable: true },
|
|
|
|
{caption: this.textCount, value: Asc.ETotalsRowFunction.totalrowfunctionCount, checkable: true },
|
|
|
|
{caption: this.textMax, value: Asc.ETotalsRowFunction.totalrowfunctionMax, checkable: true },
|
|
|
|
{caption: this.textMin, value: Asc.ETotalsRowFunction.totalrowfunctionMin, checkable: true },
|
|
|
|
{caption: this.textSum, value: Asc.ETotalsRowFunction.totalrowfunctionSum, checkable: true },
|
|
|
|
{caption: this.textStdDev, value: Asc.ETotalsRowFunction.totalrowfunctionStdDev, checkable: true },
|
|
|
|
{caption: this.textVar, value: Asc.ETotalsRowFunction.totalrowfunctionVar, checkable: true },
|
|
|
|
{caption: this.textMore, value: Asc.ETotalsRowFunction.totalrowfunctionCustom, checkable: true }
|
|
|
|
]
|
|
|
|
});
|
|
|
|
|
2016-03-11 00:48:53 +00:00
|
|
|
me.fireEvent('createdelayedelements', [me]);
|
|
|
|
},
|
|
|
|
|
2017-06-06 08:04:04 +00:00
|
|
|
setMenuItemCommentCaptionMode: function (item, add, editable) {
|
|
|
|
item.setCaption(add ? this.txtAddComment : (editable ? this.txtEditComment : this.txtShowComment), true);
|
2016-03-11 00:48:53 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
txtSort: 'Sort',
|
|
|
|
txtAscending: 'Ascending',
|
|
|
|
txtDescending: 'Descending',
|
|
|
|
txtFormula: 'Insert Function',
|
|
|
|
txtInsHyperlink: 'Hyperlink',
|
|
|
|
txtCut: 'Cut',
|
|
|
|
txtCopy: 'Copy',
|
|
|
|
txtPaste: 'Paste',
|
|
|
|
txtInsert: 'Insert',
|
|
|
|
txtDelete: 'Delete',
|
|
|
|
txtClear: 'Clear',
|
|
|
|
txtClearAll: 'All',
|
|
|
|
txtClearText: 'Text',
|
|
|
|
txtClearFormat: 'Format',
|
|
|
|
txtClearHyper: 'Hyperlink',
|
|
|
|
txtClearComments: 'Comments',
|
|
|
|
txtShiftRight: 'Shift cells right',
|
|
|
|
txtShiftLeft: 'Shift cells left',
|
|
|
|
txtShiftUp: 'Shift cells up',
|
|
|
|
txtShiftDown: 'Shift cells down',
|
|
|
|
txtRow: 'Entire Row',
|
|
|
|
txtColumn: 'Entire Column',
|
2016-07-26 12:47:48 +00:00
|
|
|
txtColumnWidth: 'Set Column Width',
|
|
|
|
txtRowHeight: 'Set Row Height',
|
2016-03-11 00:48:53 +00:00
|
|
|
txtWidth: 'Width',
|
|
|
|
txtHide: 'Hide',
|
|
|
|
txtShow: 'Show',
|
|
|
|
textArrangeFront: 'Bring To Front',
|
|
|
|
textArrangeBack: 'Send To Back',
|
|
|
|
textArrangeForward: 'Bring Forward',
|
|
|
|
textArrangeBackward: 'Send Backward',
|
|
|
|
txtArrange: 'Arrange',
|
|
|
|
txtAddComment: 'Add Comment',
|
|
|
|
txtEditComment: 'Edit Comment',
|
|
|
|
txtUngroup: 'Ungroup',
|
|
|
|
txtGroup: 'Group',
|
|
|
|
topCellText: 'Align Top',
|
2017-06-06 08:29:30 +00:00
|
|
|
centerCellText: 'Align Middle',
|
2016-03-11 00:48:53 +00:00
|
|
|
bottomCellText: 'Align Bottom',
|
|
|
|
vertAlignText: 'Vertical Alignment',
|
|
|
|
txtTextAdvanced: 'Text Advanced Settings',
|
|
|
|
editHyperlinkText: 'Edit Hyperlink',
|
|
|
|
removeHyperlinkText: 'Remove Hyperlink',
|
|
|
|
editChartText: 'Edit Data',
|
|
|
|
advancedShapeText: 'Shape Advanced Settings',
|
|
|
|
chartText: 'Chart Advanced Settings',
|
|
|
|
directionText: 'Text Direction',
|
|
|
|
directHText: 'Horizontal',
|
2017-05-15 13:32:01 +00:00
|
|
|
direct90Text: 'Rotate Text Down',
|
|
|
|
direct270Text: 'Rotate Text Up',
|
2016-03-11 00:48:53 +00:00
|
|
|
txtAddNamedRange: 'Define Name',
|
|
|
|
textFreezePanes: 'Freeze Panes',
|
2016-03-30 12:27:16 +00:00
|
|
|
textUnFreezePanes: 'Unfreeze Panes',
|
|
|
|
txtSelect: 'Select',
|
2017-04-11 11:05:56 +00:00
|
|
|
selectRowText : 'Row',
|
|
|
|
selectColumnText : 'Entire Column',
|
|
|
|
selectDataText : 'Column Data',
|
|
|
|
selectTableText : 'Table',
|
|
|
|
insertRowAboveText : 'Row Above',
|
|
|
|
insertRowBelowText : 'Row Below',
|
|
|
|
insertColumnLeftText : 'Column Left',
|
|
|
|
insertColumnRightText : 'Column Right',
|
|
|
|
deleteRowText : 'Row',
|
|
|
|
deleteColumnText : 'Column',
|
|
|
|
deleteTableText : 'Table',
|
2016-05-17 08:01:41 +00:00
|
|
|
txtFilter: 'Filter',
|
|
|
|
txtFilterValue: 'Filter by Selected cell\'s value',
|
|
|
|
txtFilterCellColor: 'Filter by cell\'s color',
|
|
|
|
txtFilterFontColor: 'Filter by font color',
|
2016-05-17 08:33:39 +00:00
|
|
|
txtReapply: 'Reapply',
|
|
|
|
txtSortCellColor: 'Selected Cell Color on top',
|
2016-07-26 12:47:48 +00:00
|
|
|
txtSortFontColor: 'Selected Font Color on top',
|
|
|
|
txtAutoColumnWidth: 'Auto Fit Column Width',
|
|
|
|
txtAutoRowHeight: 'Auto Fit Row Height',
|
|
|
|
txtCustomColumnWidth: 'Custom Column Width',
|
2016-10-25 13:22:22 +00:00
|
|
|
txtCustomRowHeight: 'Custom Row Height',
|
2016-11-25 12:58:57 +00:00
|
|
|
textEntriesList: 'Select from drop-down list',
|
|
|
|
txtSparklines: 'Sparklines',
|
|
|
|
txtClearSparklines: 'Clear Selected Sparklines',
|
2017-04-11 11:05:56 +00:00
|
|
|
txtClearSparklineGroups: 'Clear Selected Sparkline Groups',
|
|
|
|
txtShowComment: 'Show Comment',
|
2017-05-18 07:31:18 +00:00
|
|
|
advancedImgText: 'Image Advanced Settings',
|
|
|
|
textNone: 'None',
|
2017-06-06 08:04:04 +00:00
|
|
|
bulletsText: 'Bullets and Numbering',
|
2017-11-22 08:41:47 +00:00
|
|
|
textUndo: 'Undo',
|
|
|
|
strSign: 'Sign',
|
|
|
|
strDetails: 'Signature Details',
|
|
|
|
strSetup: 'Signature Setup',
|
2018-04-11 13:46:44 +00:00
|
|
|
strDelete: 'Remove Signature',
|
2019-11-06 08:16:29 +00:00
|
|
|
originalSizeText: 'Actual Size',
|
2018-04-11 13:46:44 +00:00
|
|
|
textReplace: 'Replace image',
|
|
|
|
textFromUrl: 'From URL',
|
2018-04-13 13:29:31 +00:00
|
|
|
textFromFile: 'From File',
|
|
|
|
txtNumFormat: 'Number Format',
|
|
|
|
txtGeneral: 'General',
|
|
|
|
txtNumber: 'Number',
|
|
|
|
txtScientific: 'Scientific',
|
|
|
|
txtAccounting: 'Accounting',
|
|
|
|
txtCurrency: 'Currency',
|
|
|
|
txtDate: 'Date',
|
|
|
|
txtTime: 'Time',
|
|
|
|
txtPercentage: 'Percentage',
|
|
|
|
txtFraction: 'Fraction',
|
|
|
|
txtText: 'Text',
|
2018-06-28 09:27:11 +00:00
|
|
|
textMoreFormats: 'More formats',
|
|
|
|
textShapeAlignLeft : 'Align Left',
|
|
|
|
textShapeAlignRight : 'Align Right',
|
|
|
|
textShapeAlignCenter : 'Align Center',
|
|
|
|
textShapeAlignTop : 'Align Top',
|
|
|
|
textShapeAlignBottom : 'Align Bottom',
|
2019-02-14 14:50:36 +00:00
|
|
|
textShapeAlignMiddle : 'Align Middle',
|
|
|
|
txtDistribHor: 'Distribute Horizontally',
|
2019-02-27 09:52:19 +00:00
|
|
|
txtDistribVert: 'Distribute Vertically',
|
2019-02-27 10:11:28 +00:00
|
|
|
textRotate270: 'Rotate 90° Counterclockwise',
|
|
|
|
textRotate90: 'Rotate 90° Clockwise',
|
2019-02-27 09:52:19 +00:00
|
|
|
textFlipV: 'Flip Vertically',
|
|
|
|
textFlipH: 'Flip Horizontally',
|
2019-02-27 10:11:28 +00:00
|
|
|
textRotate: 'Rotate',
|
2019-02-27 09:52:19 +00:00
|
|
|
textArrange: 'Arrange',
|
2019-04-09 11:29:51 +00:00
|
|
|
textAlign: 'Align',
|
|
|
|
textCrop: 'Crop',
|
|
|
|
textCropFill: 'Fill',
|
2019-11-07 11:01:07 +00:00
|
|
|
textCropFit: 'Fit',
|
2020-05-13 14:43:45 +00:00
|
|
|
textListSettings: 'List Settings',
|
2020-05-25 17:25:16 +00:00
|
|
|
textFromStorage: 'From Storage',
|
2020-06-29 12:30:24 +00:00
|
|
|
advancedSlicerText: 'Slicer Advanced Settings',
|
|
|
|
textAverage: 'Average',
|
|
|
|
textMax: 'Max',
|
|
|
|
textMin: 'Min',
|
|
|
|
textCount: 'Count',
|
|
|
|
textSum: 'Sum',
|
|
|
|
textStdDev: 'StdDev',
|
|
|
|
textVar: 'Var',
|
2020-11-26 21:25:44 +00:00
|
|
|
textMore: 'More functions',
|
2021-03-11 20:11:07 +00:00
|
|
|
txtCustomSort: 'Custom sort',
|
2021-04-03 07:44:20 +00:00
|
|
|
txtCondFormat: 'Conditional Formatting',
|
|
|
|
textBullets: 'Bullets',
|
2021-04-16 20:29:20 +00:00
|
|
|
textNumbering: 'Numbering',
|
2021-09-21 10:34:31 +00:00
|
|
|
textMacro: 'Assign Macro',
|
2021-09-27 09:59:39 +00:00
|
|
|
textEditPoints: 'Edit Points',
|
|
|
|
tipNumCapitalLetters: 'A. B. C.',
|
|
|
|
tipNumLettersParentheses: 'a) b) c)',
|
|
|
|
tipNumLettersPoints: 'a. b. c.',
|
|
|
|
tipNumNumbersPoint: '1. 2. 3.',
|
|
|
|
tipNumNumbersParentheses: '1) 2) 3)',
|
|
|
|
tipNumRoman: 'I. II. III.',
|
|
|
|
tipNumRomanSmall: 'i. ii. iii.',
|
|
|
|
tipMarkersFRound: 'Filled round bullets',
|
|
|
|
tipMarkersHRound: 'Hollow round bullets',
|
|
|
|
tipMarkersFSquare: 'Filled square bullets',
|
|
|
|
tipMarkersStar: 'Star bullets',
|
|
|
|
tipMarkersArrow: 'Arrow bullets',
|
|
|
|
tipMarkersCheckmark: 'Checkmark bullets',
|
|
|
|
tipMarkersFRhombus: 'Filled rhombus bullets',
|
|
|
|
tipMarkersDash: 'Dash bullets'
|
2016-07-26 12:47:48 +00:00
|
|
|
|
2016-03-11 00:48:53 +00:00
|
|
|
}, SSE.Views.DocumentHolder || {}));
|
|
|
|
});
|