2017-04-07 00:55:45 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor DataModel MWTOCDisableMetaItem class.
|
|
|
|
*
|
2023-12-01 16:06:11 +00:00
|
|
|
* @copyright See AUTHORS.txt
|
2017-04-07 00:55:45 +00:00
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2024-04-30 21:32:03 +00:00
|
|
|
* DataModel TOC meta item (for `__FORCETOC__` and `__NOTOC__`).
|
2017-04-07 00:55:45 +00:00
|
|
|
*
|
|
|
|
* @class
|
|
|
|
* @extends ve.dm.MWFlaggedMetaItem
|
|
|
|
* @constructor
|
|
|
|
* @param {Object} element Reference to element in meta-linmod
|
|
|
|
*/
|
|
|
|
ve.dm.MWTOCMetaItem = function VeDmMWTOCMetaItem() {
|
|
|
|
// Parent constructor
|
|
|
|
ve.dm.MWTOCMetaItem.super.apply( this, arguments );
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Inheritance */
|
|
|
|
|
|
|
|
OO.inheritClass( ve.dm.MWTOCMetaItem, ve.dm.MWFlaggedMetaItem );
|
|
|
|
|
|
|
|
/* Static Properties */
|
|
|
|
|
|
|
|
ve.dm.MWTOCMetaItem.static.name = 'mwTOC';
|
|
|
|
|
|
|
|
ve.dm.MWTOCMetaItem.static.group = 'mwTOC';
|
|
|
|
|
|
|
|
ve.dm.MWTOCMetaItem.static.matchRdfaTypes = [ 'mw:PageProp/forcetoc', 'mw:PageProp/notoc' ];
|
|
|
|
|
|
|
|
/* Registration */
|
|
|
|
|
|
|
|
ve.dm.modelRegistry.register( ve.dm.MWTOCMetaItem );
|