[SSE] Debug equations.
This commit is contained in:
parent
381e886ef9
commit
65251b5250
|
@ -1243,12 +1243,11 @@ define([
|
|||
eqlen = this.addEquationMenu(4);
|
||||
} else
|
||||
this.clearEquationMenu(4);
|
||||
documentHolder.menuEquationSeparator.setVisible(isEquation && eqlen>0);
|
||||
|
||||
if (showMenu) this.showPopupMenu(documentHolder.textInShapeMenu, {}, event);
|
||||
documentHolder.textInShapeMenu.items[3].setVisible( documentHolder.menuHyperlinkShape.isVisible() ||
|
||||
documentHolder.menuAddHyperlinkShape.isVisible() ||
|
||||
documentHolder.menuParagraphVAlign.isVisible());
|
||||
documentHolder.menuParagraphVAlign.isVisible() || isEquation);
|
||||
} else if (!this.permissions.isEditMailMerge && !this.permissions.isEditDiagram || (seltype !== Asc.c_oAscSelectionType.RangeImage && seltype !== Asc.c_oAscSelectionType.RangeShape &&
|
||||
seltype !== Asc.c_oAscSelectionType.RangeChart && seltype !== Asc.c_oAscSelectionType.RangeChartText && seltype !== Asc.c_oAscSelectionType.RangeShapeText)) {
|
||||
if (!showMenu && !documentHolder.ssMenu.isVisible()) return;
|
||||
|
@ -1561,7 +1560,7 @@ define([
|
|||
},
|
||||
|
||||
initEquationMenu: function() {
|
||||
if (!me._currentMathObj) return;
|
||||
if (!this._currentMathObj) return;
|
||||
var me = this,
|
||||
type = me._currentMathObj.get_Type(),
|
||||
value = me._currentMathObj,
|
||||
|
|
|
@ -558,17 +558,12 @@ define([
|
|||
value : 'paste'
|
||||
});
|
||||
|
||||
me.menuEquationSeparator = new Common.UI.MenuItem({
|
||||
caption : '--'
|
||||
});
|
||||
|
||||
this.textInShapeMenu = new Common.UI.Menu({
|
||||
items: [
|
||||
me.pmiTextCut,
|
||||
me.pmiTextCopy,
|
||||
me.pmiTextPaste,
|
||||
{caption: '--'},
|
||||
me.menuEquationSeparator,
|
||||
me.menuParagraphVAlign,
|
||||
me.menuParagraphDirection,
|
||||
me.menuAddHyperlinkShape,
|
||||
|
|
BIN
apps/spreadsheeteditor/main/resources/img/toolbar/math.png
Normal file
BIN
apps/spreadsheeteditor/main/resources/img/toolbar/math.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 38 KiB |
BIN
apps/spreadsheeteditor/main/resources/img/toolbar/math@2x.png
Normal file
BIN
apps/spreadsheeteditor/main/resources/img/toolbar/math@2x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 95 KiB |
|
@ -253,3 +253,8 @@
|
|||
margin-bottom: -2px;
|
||||
}
|
||||
}
|
||||
|
||||
.item-equation {
|
||||
border: 1px solid @gray;
|
||||
.background-ximage('@{app-image-path}/toolbar/math.png', '@{app-image-path}/toolbar/math@2x.png', 1500px);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue