define(["require", "exports", "@syncfusion/ej2-base", "./table-of-contents-group", "./footnotes-group", "../ribbon-base/ribbon-constants"], function (require, exports, ej2_base_1, table_of_contents_group_1, footnotes_group_1, ribbon_constants_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.REFERENCES_TAB_ID = '_reference_tab';
var ReferenceTab = (function () {
function ReferenceTab(container) {
this.container = container;
this.localObj = new ej2_base_1.L10n('documenteditorcontainer', this.container.defaultLocale, this.container.locale);
this.tableOfContentsGroup = new table_of_contents_group_1.TableOfContentsGroup(this.container);
this.footnotesGroup = new footnotes_group_1.FootnotesGroup(this.container);
}
ReferenceTab.prototype.getReferenceTab = function () {
return {
id: this.container.element.id + ribbon_constants_1.RIBBON_ID + exports.REFERENCES_TAB_ID,
keyTip: 'S',
header: this.localObj.getConstant('References'),
groups: [
this.tableOfContentsGroup.getGroupModel(),
this.footnotesGroup.getGroupModel()
]
};
};
ReferenceTab.prototype.updateSelectionState = function () {
this.tableOfContentsGroup.updateSelection();
this.footnotesGroup.updateSelection();
};
ReferenceTab.prototype.destroy = function () {
Eif (this.tableOfContentsGroup) {
this.tableOfContentsGroup.destroy();
}
Eif (this.footnotesGroup) {
this.footnotesGroup.destroy();
}
this.tableOfContentsGroup = null;
this.footnotesGroup = null;
};
return ReferenceTab;
}());
exports.ReferenceTab = ReferenceTab;
});
|