Debian Codegraph @

extensions/Math/modules/ve-math/ve.ui.MWMathContextItem.js

raw symbols SCIP
1 /*!
2 * VisualEditor MWMathContextItem class.
3 *
4 * @copyright See AUTHORS.txt
5 */
6
7 /**
8 * Context item for a math node.
9 *
10 * @class
11 * @extends ve.ui.MWLatexContextItem
12 *
13 * @param {ve.ui.LinearContext} context Context the item is in
14 * @param {ve.dm.Model} model Model the item is related to
15 * @param {Object} config Configuration options
16 */
17 ve.ui.MWMathContextItem = function VeUiMWMathContextItem() {
18 // Parent constructor
19 ve.ui.MWMathContextItem.super.apply( this, arguments );
20 };
21
22 /* Inheritance */
23
24 OO.inheritClass( ve.ui.MWMathContextItem, ve.ui.MWLatexContextItem );
25
26 /* Static Properties */
27
28 ve.ui.MWMathContextItem.static.name = 'math';
29
30 ve.ui.MWMathContextItem.static.icon = 'mathematics';
31
32 ve.ui.MWMathContextItem.static.label = OO.ui.deferMsg( 'math-visualeditor-mwmathdialog-title' );
33
34 ve.ui.MWMathContextItem.static.modelClasses = [ ve.dm.MWMathNode ];
35
36 ve.ui.MWMathContextItem.static.embeddable = false;
37
38 ve.ui.MWMathContextItem.static.commandName = 'mathDialog';
39
40 ve.ui.MWMathContextItem.static.inlineEditCommand = 'mathInspector';
41
42 /* Registration */
43
44 ve.ui.contextItemFactory.register( ve.ui.MWMathContextItem );