Debian Codegraph @

extensions/VisualEditor/lib/ve/src/ui/tools/ve.ui.IndentationTool.js

raw symbols SCIP
1 /*!
2 * VisualEditor UserInterface IndentationTool classes.
3 *
4 * @copyright See AUTHORS.txt
5 */
6
7 /**
8 * UserInterface indentation tool.
9 *
10 * @abstract
11 * @class
12 * @extends ve.ui.Tool
13 * @constructor
14 * @param {OO.ui.ToolGroup} toolGroup
15 * @param {Object} [config] Configuration options
16 */
17 ve.ui.IndentationTool = function VeUiIndentationTool() {
18 // Parent constructor
19 ve.ui.IndentationTool.super.apply( this, arguments );
20 };
21
22 /* Inheritance */
23
24 OO.inheritClass( ve.ui.IndentationTool, ve.ui.Tool );
25
26 /**
27 * UserInterface indent tool.
28 *
29 * @class
30 * @extends ve.ui.IndentationTool
31 * @constructor
32 * @param {OO.ui.ToolGroup} toolGroup
33 * @param {Object} [config] Configuration options
34 */
35 ve.ui.IncreaseIndentationTool = function VeUiIncreaseIndentationTool() {
36 ve.ui.IncreaseIndentationTool.super.apply( this, arguments );
37 };
38 OO.inheritClass( ve.ui.IncreaseIndentationTool, ve.ui.IndentationTool );
39 ve.ui.IncreaseIndentationTool.static.name = 'indent';
40 ve.ui.IncreaseIndentationTool.static.group = 'structure';
41 ve.ui.IncreaseIndentationTool.static.icon = 'indent';
42 ve.ui.IncreaseIndentationTool.static.title =
43 OO.ui.deferMsg( 'visualeditor-indentationbutton-indent-tooltip' );
44 ve.ui.IncreaseIndentationTool.static.commandName = 'indent';
45 ve.ui.toolFactory.register( ve.ui.IncreaseIndentationTool );
46
47 /**
48 * UserInterface outdent tool.
49 *
50 * TODO: Consistency between increase/decrease, indent/outdent and indent/unindent.
51 *
52 * @class
53 * @extends ve.ui.IndentationTool
54 * @constructor
55 * @param {OO.ui.ToolGroup} toolGroup
56 * @param {Object} [config] Configuration options
57 */
58 ve.ui.DecreaseIndentationTool = function VeUiDecreaseIndentationTool() {
59 ve.ui.DecreaseIndentationTool.super.apply( this, arguments );
60 };
61 OO.inheritClass( ve.ui.DecreaseIndentationTool, ve.ui.IndentationTool );
62 ve.ui.DecreaseIndentationTool.static.name = 'outdent';
63 ve.ui.DecreaseIndentationTool.static.group = 'structure';
64 ve.ui.DecreaseIndentationTool.static.icon = 'outdent';
65 ve.ui.DecreaseIndentationTool.static.title =
66 OO.ui.deferMsg( 'visualeditor-indentationbutton-outdent-tooltip' );
67 ve.ui.DecreaseIndentationTool.static.commandName = 'outdent';
68 ve.ui.toolFactory.register( ve.ui.DecreaseIndentationTool );