| 1165 | } |
| 1166 | |
| 1167 | bool OriginProjectParser::loadMatrixWorkbook(Workbook* workbook, bool preview) { |
| 1168 | DEBUG(Q_FUNC_INFO) |
| 1169 | // load matrix workbook sheets |
| 1170 | const auto& originMatrix = m_originFile->matrix(findMatrixByName(workbook->name())); |
| 1171 | for (size_t s = 0; s < originMatrix.sheets.size(); ++s) { |
| 1172 | auto* matrix = new Matrix(QString::fromStdString(originMatrix.sheets[s].name)); |
| 1173 | loadMatrix(matrix, preview, s, workbook->name()); |
| 1174 | workbook->addChildFast(matrix); |
| 1175 | } |
| 1176 | |
| 1177 | return true; |
| 1178 | } |
| 1179 | |
| 1180 | bool OriginProjectParser::loadMatrix(Matrix* matrix, bool preview, size_t sheetIndex, const QString& mwbName) { |
| 1181 | DEBUG(Q_FUNC_INFO) |
nothing calls this directly
no test coverage detected