define(["require", "exports"], function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function getWorkbookRequiredModules(context, modules) {
if (modules === void 0) { modules = []; }
modules.push({
member: 'dataBind',
args: [context]
});
modules.push({
member: 'workbookProtectSheet',
args: [context]
});
if (context.allowSave) {
modules.push({
member: 'workbookSave',
args: [context]
});
}
if (context.allowPrint) {
modules.push({
member: 'print',
args: [context]
});
}
if (context.allowOpen) {
modules.push({
member: 'workbookOpen',
args: [context]
});
}
if (context.allowEditing) {
modules.push({
member: 'workbookEdit',
args: [context]
});
modules.push({
member: 'workbookFormula',
args: [context]
});
}
if (context.allowNumberFormatting) {
modules.push({
member: 'workbookNumberFormat',
args: [context]
});
}
if (context.allowCellFormatting) {
modules.push({
member: 'workbookcellformat',
args: [context]
});
}
if (context.allowSorting) {
modules.push({ member: 'workbookSort', args: [context] });
}
if (context.allowHyperlink) {
modules.push({ member: 'workbookHyperlink', args: [context] });
}
if (context.allowFiltering) {
modules.push({ member: 'workbookFilter', args: [context] });
}
if (context.allowFindAndReplace) {
modules.push({ member: 'workbookfindAndReplace', args: [context] });
}
if (context.allowInsert) {
modules.push({ member: 'workbookinsert', args: [context] });
}
if (context.allowDelete) {
modules.push({ member: 'workbookdelete', args: [context] });
}
if (context.allowDataValidation) {
modules.push({ member: 'workbookDataValidation', args: [context] });
}
if (context.allowMerge) {
modules.push({ member: 'workbookmerge', args: [context] });
}
if (context.allowCellFormatting) {
modules.push({ member: 'workbookConditionalFormatting', args: [context] });
}
if (context.allowImage) {
modules.push({ member: 'workbookImage', args: [context] });
}
if (context.allowChart) {
modules.push({ member: 'workbookChart', args: [context] });
}
if (context.allowAutoFill) {
modules.push({ member: 'workbookautofill', args: [context] });
}
return modules;
}
exports.getWorkbookRequiredModules = getWorkbookRequiredModules;
});
|