Lines Matching refs:attributes

7297 function pushAttributes(xml, attributes) {
7298 if (attributes) {
7299 _.each(attributes, function (value, name) {
7327 value: function openNode(name, attributes) {
7340 pushAttributes(xml, attributes);
7410 value: function leafNode(name, attributes, text) {
7411 this.openNode(name, attributes);
8331 this._parsedName = node.attributes.name;
8332 this._parsedLocalSheetId = node.attributes.localSheetId;
8471 name: utils.xmlDecode(node.attributes.name),
8472 id: parseInt(node.attributes.sheetId, 10),
8473 state: node.attributes.state,
8474 rId: node.attributes['r:id']
8619 date1904: node.attributes.date1904 === '1'
8682 var attributes = {
8692 attributes.visibility = model.visibility;
8695 xmlStream.leafNode('workbookView', attributes);
8719 addN('x', node.attributes.xWindow, 0);
8720 addN('y', node.attributes.yWindow, 0);
8721 addN('width', node.attributes.windowWidth, 25000);
8722 addN('height', node.attributes.windowHeight, 10000);
8723 addS('visibility', node.attributes.visibility, 'visible');
8724 addN('activeTab', node.attributes.activeTab, undefined);
8725 addN('firstSheet', node.attributes.firstSheet, undefined);
9152 }, node.attributes);
9954 insetmode: node.attributes['o:insetmode']
10084 var attributes = {
10099 attributes.inset = inset;
10103 xmlStream.openNode('v:textbox', attributes);
10115 inset: this.reverseConversionUnit(node.attributes.inset)
10978 this.model = node.attributes;
11173 editAs: node.attributes.editAs || 'oneCell'
11390 rId: node.attributes['r:embed']
12088 width: parseInt(node.attributes.cx || '0', 10) / EMU_PER_PIXEL_AT_96_DPI,
12089 height: parseInt(node.attributes.cy || '0', 10) / EMU_PER_PIXEL_AT_96_DPI
12173 rId: node.attributes['r:id'],
12174 tooltip: node.attributes.tooltip
12931 this.model = node.attributes.ref;
13299 address: node.attributes.r
13301 this.t = node.attributes.t;
13303 if (node.attributes.s) {
13304 this.model.styleId = parseInt(node.attributes.s, 10);
13311 this.model.si = node.attributes.si;
13312 this.model.shareType = node.attributes.t;
13313 this.model.ref = node.attributes.ref;
13602 var attributes = _ref.attributes;
13604 iconSet: attributes.iconSet,
13605 iconId: BaseXform.toIntValue(attributes.iconId)
13733 var attributes = _ref.attributes;
13735 type: attributes.type,
13736 x14Id: attributes.id,
13737 priority: BaseXform.toIntValue(attributes.priority)
13836 type: node.attributes.type
14166 var attributes = _ref.attributes;
14169 minLength: BaseXform.toIntValue(attributes.minLength, 0),
14170 maxLength: BaseXform.toIntValue(attributes.maxLength, 100),
14171 border: BaseXform.toBoolValue(attributes.border, false),
14172 gradient: BaseXform.toBoolValue(attributes.gradient, true),
14173 …negativeBarColorSameAsPositive: BaseXform.toBoolValue(attributes.negativeBarColorSameAsPositive, t…
14174 …negativeBarBorderColorSameAsPositive: BaseXform.toBoolValue(attributes.negativeBarBorderColorSameA…
14175 axisPosition: BaseXform.toStringValue(attributes.axisPosition, 'auto'),
14176 direction: BaseXform.toStringValue(attributes.direction, 'leftToRight')
14376 var attributes = _ref.attributes;
14379 iconSet: BaseXform.toStringValue(attributes.iconSet, '3TrafficLights'),
14380 reverse: BaseXform.toBoolValue(attributes.reverse, false),
14381 showValue: BaseXform.toBoolValue(attributes.showValue, true)
14617 var opType = function opType(attributes) {
14618 var type = attributes.type,
14619 operator = attributes.operator;
14824 var attributes = _ref.attributes;
14825 return _objectSpread(_objectSpread({}, opType(attributes)), {}, {
14826 dxfId: BaseXform.toIntValue(attributes.dxfId),
14827 priority: BaseXform.toIntValue(attributes.priority),
14828 timePeriod: attributes.timePeriod,
14829 percent: BaseXform.toBoolValue(attributes.percent),
14830 bottom: BaseXform.toBoolValue(attributes.bottom),
14831 rank: BaseXform.toIntValue(attributes.rank),
14832 aboveAverage: BaseXform.toBoolValue(attributes.aboveAverage)
14928 type: node.attributes.type,
14929 value: BaseXform.toFloatValue(node.attributes.val)
15108 var attributes = _ref.attributes;
15110 ref: attributes.sqref,
15679 var attributes = _ref.attributes;
15681 iconSet: BaseXform.toStringValue(attributes.iconSet, '3TrafficLights'),
15682 reverse: BaseXform.toBoolValue(attributes.reverse),
15683 showValue: BaseXform.toBoolValue(attributes.showValue),
15790 min: parseInt(node.attributes.min || '0', 10),
15791 max: parseInt(node.attributes.max || '0', 10),
15792 … width: node.attributes.width === undefined ? undefined : parseFloat(node.attributes.width || '0')
15795 if (node.attributes.style) {
15796 model.styleId = parseInt(node.attributes.style, 10);
15799 …if (node.attributes.hidden === true || node.attributes.hidden === 'true' || node.attributes.hidden…
15803 if (node.attributes.bestFit) {
15807 if (node.attributes.outlineLevel) {
15808 model.outlineLevel = parseInt(node.attributes.outlineLevel, 10);
15811 if (node.attributes.collapsed) {
15889 function assign(definedName, attributes, name, defaultValue) {
15890 var value = attributes[name];
15910 function assignBool(definedName, attributes, name, defaultValue) {
15911 var value = attributes[name];
16089 this._address = node.attributes.sqref;
16091 type: node.attributes.type || 'any',
16095 if (node.attributes.type) {
16096 assignBool(dataValidation, node.attributes, 'allowBlank');
16099 assignBool(dataValidation, node.attributes, 'showInputMessage');
16100 assignBool(dataValidation, node.attributes, 'showErrorMessage');
16109 assign(dataValidation, node.attributes, 'operator', 'between');
16113 assign(dataValidation, node.attributes, 'promptTitle');
16114 assign(dataValidation, node.attributes, 'prompt');
16115 assign(dataValidation, node.attributes, 'errorStyle');
16116 assign(dataValidation, node.attributes, 'errorTitle');
16117 assign(dataValidation, node.attributes, 'error');
16265 this.model = node.attributes.ref;
16344 rId: node.attributes['r:id']
16620 if (node.attributes.differentFirst) {
16621 this.model.differentFirst = parseInt(node.attributes.differentFirst, 0) === 1;
16624 if (node.attributes.differentOddEven) {
16625 this.model.differentOddEven = parseInt(node.attributes.differentOddEven, 0) === 1;
16771 address: node.attributes.ref,
16772 rId: node.attributes['r:id'],
16773 tooltip: node.attributes.tooltip
16849 this.model = node.attributes.ref;
17018 …summaryBelow: isDefined(node.attributes.summaryBelow) ? Boolean(Number(node.attributes.summaryBelo…
17019 …summaryRight: isDefined(node.attributes.summaryRight) ? Boolean(Number(node.attributes.summaryRigh…
17093 this.model = node.attributes.ref;
17163 var attributes = {
17172 if (_.some(attributes, function (value) {
17175 xmlStream.leafNode(this.tag, attributes);
17185 left: parseFloat(node.attributes.left || 0.7),
17186 right: parseFloat(node.attributes.right || 0.7),
17187 top: parseFloat(node.attributes.top || 0.75),
17188 bottom: parseFloat(node.attributes.bottom || 0.75),
17189 header: parseFloat(node.attributes.header || 0.3),
17190 footer: parseFloat(node.attributes.footer || 0.3)
17273 fitToPage: node.attributes.fitToPage === '1'
17385 var attributes = {
17404 if (_.some(attributes, function (value) {
17407 xmlStream.leafNode(this.tag, attributes);
17417 paperSize: pageSizeToModel(node.attributes.paperSize),
17418 orientation: node.attributes.orientation || 'portrait',
17419 horizontalDpi: parseInt(node.attributes.horizontalDpi || '4294967295', 10),
17420 verticalDpi: parseInt(node.attributes.verticalDpi || '4294967295', 10),
17421 pageOrder: node.attributes.pageOrder || 'downThenOver',
17422 blackAndWhite: node.attributes.blackAndWhite === '1',
17423 draft: node.attributes.draft === '1',
17424 cellComments: node.attributes.cellComments || 'None',
17425 errors: node.attributes.errors || 'displayed',
17426 scale: parseInt(node.attributes.scale || '100', 10),
17427 fitToWidth: parseInt(node.attributes.fitToWidth || '1', 10),
17428 fitToHeight: parseInt(node.attributes.fitToHeight || '1', 10),
17429 firstPageNumber: parseInt(node.attributes.firstPageNumber || '1', 10),
17430 useFirstPageNumber: node.attributes.useFirstPageNumber === '1',
17431 usePrinterDefaults: node.attributes.usePrinterDefaults === '1',
17432 copies: parseInt(node.attributes.copies || '1', 10)
17513 rId: node.attributes['r:id']
17589 var attributes = {
17596 if (_.some(attributes, function (value) {
17599 xmlStream.leafNode(this.tag, attributes);
17609 showRowColHeaders: node.attributes.headings === '1',
17610 showGridLines: node.attributes.gridLines === '1',
17611 horizontalCentered: node.attributes.horizontalCentered === '1',
17612 verticalCentered: node.attributes.verticalCentered === '1'
17824 var spans = node.attributes.spans ? node.attributes.spans.split(':').map(function (span) {
17828 number: parseInt(node.attributes.r, 10),
17834 if (node.attributes.s) {
17835 model.styleId = parseInt(node.attributes.s, 10);
17838 …if (node.attributes.hidden === true || node.attributes.hidden === 'true' || node.attributes.hidden…
17842 if (node.attributes.bestFit) {
17846 if (node.attributes.ht) {
17847 model.height = parseFloat(node.attributes.ht);
17850 if (node.attributes.outlineLevel) {
17851 model.outlineLevel = parseInt(node.attributes.outlineLevel, 10);
17854 if (node.attributes.collapsed) {
17966 var attributes = {
17974 attributes.defaultColWidth = model.defaultColWidth;
17979 attributes.customHeight = '1';
17982 if (_.some(attributes, function (value) {
17985 xmlStream.leafNode('sheetFormatPr', attributes);
17994 defaultRowHeight: parseFloat(node.attributes.defaultRowHeight || '0'),
17995 dyDescent: parseFloat(node.attributes['x14ac:dyDescent'] || '0'),
17996 outlineLevelRow: parseInt(node.attributes.outlineLevelRow || '0', 10),
17997 outlineLevelCol: parseInt(node.attributes.outlineLevelCol || '0', 10)
18000 if (node.attributes.defaultColWidth) {
18001 this.model.defaultColWidth = parseFloat(node.attributes.defaultColWidth);
18226 var attributes = {
18244 attributes.algorithmName = model.algorithmName;
18245 attributes.hashValue = model.hashValue;
18246 attributes.saltValue = model.saltValue;
18247 attributes.spinCount = model.spinCount;
18248 attributes.objects = booleanToXml(model.objects === false, '1');
18249 attributes.scenarios = booleanToXml(model.scenarios === false, '1');
18252 if (_.some(attributes, function (value) {
18255 xmlStream.leafNode(this.tag, attributes);
18265 sheet: xmlToBoolean(node.attributes.sheet, '1'),
18266 objects: node.attributes.objects === '1' ? false : undefined,
18267 scenarios: node.attributes.scenarios === '1' ? false : undefined,
18268 selectLockedCells: node.attributes.selectLockedCells === '1' ? false : undefined,
18269 selectUnlockedCells: node.attributes.selectUnlockedCells === '1' ? false : undefined,
18270 formatCells: xmlToBoolean(node.attributes.formatCells, '0'),
18271 formatColumns: xmlToBoolean(node.attributes.formatColumns, '0'),
18272 formatRows: xmlToBoolean(node.attributes.formatRows, '0'),
18273 insertColumns: xmlToBoolean(node.attributes.insertColumns, '0'),
18274 insertRows: xmlToBoolean(node.attributes.insertRows, '0'),
18275 insertHyperlinks: xmlToBoolean(node.attributes.insertHyperlinks, '0'),
18276 deleteColumns: xmlToBoolean(node.attributes.deleteColumns, '0'),
18277 deleteRows: xmlToBoolean(node.attributes.deleteRows, '0'),
18278 sort: xmlToBoolean(node.attributes.sort, '0'),
18279 autoFilter: xmlToBoolean(node.attributes.autoFilter, '0'),
18280 pivotTables: xmlToBoolean(node.attributes.pivotTables, '0')
18283 if (node.attributes.algorithmName) {
18284 this.model.algorithmName = node.attributes.algorithmName;
18285 this.model.hashValue = node.attributes.hashValue;
18286 this.model.saltValue = node.attributes.saltValue;
18287 this.model.spinCount = parseInt(node.attributes.spinCount, 10);
18461 workbookViewId: parseInt(node.attributes.workbookViewId, 10),
18462 rightToLeft: node.attributes.rightToLeft === '1',
18463 tabSelected: node.attributes.tabSelected === '1',
18464 showRuler: !(node.attributes.showRuler === '0'),
18465 showRowColHeaders: !(node.attributes.showRowColHeaders === '0'),
18466 showGridLines: !(node.attributes.showGridLines === '0'),
18467 zoomScale: parseInt(node.attributes.zoomScale || '100', 10),
18468 zoomScaleNormal: parseInt(node.attributes.zoomScaleNormal || '100', 10),
18469 style: node.attributes.view
18477 xSplit: parseInt(node.attributes.xSplit || '0', 10),
18478 ySplit: parseInt(node.attributes.ySplit || '0', 10),
18479 topLeftCell: node.attributes.topLeftCell,
18480 activePane: node.attributes.activePane || 'topLeft',
18481 state: node.attributes.state
18487 var name = node.attributes.pane || 'topLeft';
18490 activeCell: node.attributes.activeCell
18635 rId: node.attributes['r:id']
19445 this.model = this._parse(node.attributes[this.attr]);
19545 this.model = parseInt(node.attributes[this.attr], 10);
19646 this.model = node.attributes[this.attr];
19869 sb: parseInt(node.attributes.sb, 10),
19870 eb: parseInt(node.attributes.eb, 10)
20714 add(node.attributes.horizontal, 'horizontal', node.attributes.horizontal);
20715 …add(node.attributes.vertical, 'vertical', node.attributes.vertical === 'center' ? 'middle' : node.
20716 add(node.attributes.wrapText, 'wrapText', !!node.attributes.wrapText);
20717 add(node.attributes.shrinkToFit, 'shrinkToFit', !!node.attributes.shrinkToFit);
20718 add(node.attributes.indent, 'indent', parseInt(node.attributes.indent, 10));
20719 …add(node.attributes.textRotation, 'textRotation', textRotationXform.toModel(node.attributes.textRo…
20720 …add(node.attributes.readingOrder, 'readingOrder', node.attributes.readingOrder === '2' ? 'rtl' : '…
20824 var style = node.attributes.style;
20962 this.diagonalUp = !!node.attributes.diagonalUp;
20963 this.diagonalDown = !!node.attributes.diagonalDown;
21101 if (node.attributes.rgb) {
21103 argb: node.attributes.rgb
21105 } else if (node.attributes.theme) {
21107 theme: parseInt(node.attributes.theme, 10)
21110 if (node.attributes.tint) {
21111 this.model.tint = parseFloat(node.attributes.tint);
21113 } else if (node.attributes.indexed) {
21115 indexed: parseInt(node.attributes.indexed, 10)
21378 position: parseFloat(node.attributes.position)
21464 pattern: node.attributes.patternType
21611 if (node.attributes.degree) {
21613 model.degree = parseInt(node.attributes.degree, 10);
21614 } else if (node.attributes.type === 'path') {
21617 left: node.attributes.left ? parseFloat(node.attributes.left) : 0,
21618 top: node.attributes.top ? parseFloat(node.attributes.top) : 0
21621 if (node.attributes.right !== node.attributes.left) {
21622 model.center.right = node.attributes.right ? parseFloat(node.attributes.right) : 0;
21625 if (node.attributes.bottom !== node.attributes.top) {
21626 … model.center.bottom = node.attributes.bottom ? parseFloat(node.attributes.bottom) : 0;
22101 id: parseInt(node.attributes.numFmtId, 10),
22102 formatCode: node.attributes.formatCode.replace(/[\\](.)/g, '$1')
22214 locked: !(node.attributes.locked === '0'),
22215 hidden: node.attributes.hidden === '1'
22361 numFmtId: parseInt(node.attributes.numFmtId, 10),
22362 fontId: parseInt(node.attributes.fontId, 10),
22363 fillId: parseInt(node.attributes.fillId, 10),
22364 borderId: parseInt(node.attributes.borderId, 10)
22368 this.model.xfId = parseInt(node.attributes.xfId, 10);
23220 this.model = node.attributes.val || true;
23337 autoFilterRef: node.attributes.ref,
23448 var attributes = node.attributes;
23450 filterButton: attributes.hiddenButton === '0'
23536 var attributes = node.attributes;
23538 name: attributes.name,
23539 totalsRowLabel: attributes.totalsRowLabel,
23540 totalsRowFunction: attributes.totalsRowFunction,
23541 dxfId: attributes.dxfId
23622 var attributes = node.attributes;
23624 theme: attributes.name ? attributes.name : null,
23625 showFirstColumn: attributes.showFirstColumn === '1',
23626 showLastColumn: attributes.showLastColumn === '1',
23627 showRowStripes: attributes.showRowStripes === '1',
23628 showColumnStripes: attributes.showColumnStripes === '1'
23755 attributes = node.attributes;
23761 name: attributes.name,
23762 displayName: attributes.displayName || attributes.name,
23763 tableRef: attributes.ref,
23764 totalsRow: attributes.totalsRowCount === '1',
23765 headerRow: attributes.headerRowCount === '1'
77226 attributes: Object.create(null)
77871 var attributes = tag.attributes;
77910 attributes[name] = attr;
77925 var attributes = this.tag.attributes;
77936 if (attributes[name] !== undefined) {
77940 attributes[name] = value;