| 143 | } |
| 144 | |
| 145 | QStringList OdsOptionsWidget::selectedOdsSheetNames() const { |
| 146 | const auto& items = ui.twDataRegions->selectedItems(); |
| 147 | DEBUG(Q_FUNC_INFO << ", number of selected items = " << items.size()) |
| 148 | |
| 149 | QStringList names; |
| 150 | for (const auto* item : items) { |
| 151 | if (item->parent()) { // child of sheet |
| 152 | QString sheetName = item->parent()->text(0); |
| 153 | sheetName = sheetName.split(QLatin1Char('/')).last(); |
| 154 | // DEBUG(Q_FUNC_INFO << ", sheet name = " << STDSTRING(sheetName)) |
| 155 | names.push_back(QString(sheetName + QLatin1Char('!') + item->text(0))); |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | return names; |
| 160 | } |
| 161 | |
| 162 | QVector<QStringList> OdsOptionsWidget::previewString() const { |
| 163 | return m_previewString; |