| 43 | } |
| 44 | |
| 45 | QWidget* Workbook::view() const { |
| 46 | #ifndef SDK |
| 47 | if (!m_partView) { |
| 48 | m_view = new WorkbookView(const_cast<Workbook*>(this)); |
| 49 | m_partView = m_view; |
| 50 | connect(this, &Workbook::viewAboutToBeDeleted, [this]() { |
| 51 | m_view = nullptr; |
| 52 | }); |
| 53 | } |
| 54 | return m_partView; |
| 55 | #else |
| 56 | return nullptr; |
| 57 | #endif |
| 58 | } |
| 59 | |
| 60 | bool Workbook::exportView() const { |
| 61 | Spreadsheet* s = currentSpreadsheet(); |