| 152 | } |
| 153 | |
| 154 | get model() { |
| 155 | return { |
| 156 | creator: this.creator || 'Unknown', |
| 157 | lastModifiedBy: this.lastModifiedBy || 'Unknown', |
| 158 | lastPrinted: this.lastPrinted, |
| 159 | created: this.created, |
| 160 | modified: this.modified, |
| 161 | properties: this.properties, |
| 162 | worksheets: this.worksheets.map(worksheet => worksheet.model), |
| 163 | sheets: this.worksheets.map(ws => ws.model).filter(Boolean), |
| 164 | definedNames: this._definedNames.model, |
| 165 | views: this.views, |
| 166 | company: this.company, |
| 167 | manager: this.manager, |
| 168 | title: this.title, |
| 169 | subject: this.subject, |
| 170 | keywords: this.keywords, |
| 171 | category: this.category, |
| 172 | description: this.description, |
| 173 | language: this.language, |
| 174 | revision: this.revision, |
| 175 | contentStatus: this.contentStatus, |
| 176 | themes: this._themes, |
| 177 | media: this.media, |
| 178 | pivotTables: this.pivotTables, |
| 179 | calcProperties: this.calcProperties, |
| 180 | }; |
| 181 | } |
| 182 | |
| 183 | set model(value) { |
| 184 | this.creator = value.creator; |