| 97 | } |
| 98 | |
| 99 | Spreadsheet* Workbook::currentSpreadsheet() const { |
| 100 | #ifndef SDK |
| 101 | if (!m_view) |
| 102 | return nullptr; |
| 103 | |
| 104 | int index = m_view->currentIndex(); |
| 105 | if (index != -1) { |
| 106 | auto* aspect = child<AbstractAspect>(index); |
| 107 | return dynamic_cast<Spreadsheet*>(aspect); |
| 108 | } |
| 109 | #endif |
| 110 | return nullptr; |
| 111 | } |
| 112 | |
| 113 | Matrix* Workbook::currentMatrix() const { |
| 114 | #ifndef SDK |