| 41 | } |
| 42 | |
| 43 | void CsvUndo::createUndoStateTable(CsvTable &table, std::string descr) { |
| 44 | size_t size; |
| 45 | this->id = uniqNumber; |
| 46 | this->type = TCRUNCHER_UNDO_TYPE_TABLE; |
| 47 | this->undoStorage = table.getStorage(); |
| 48 | size = table.headerRow->size(); |
| 49 | this->headerRow.resize(size); |
| 50 | for( size_t r = 0; r < size; ++r) { |
| 51 | this->headerRow.at(r) = table.headerRow->at(r); |
| 52 | } |
| 53 | this->descr = descr; |
| 54 | this->hasCustomHeaderRow = table.customHeaderRowShown(); |
| 55 | this->flags = table.flags; |
| 56 | this->selection = { table.s_top, table.s_left, table.s_bottom, table.s_right }; |
| 57 | // printf("createUndoStateTable: %s (%p) ID:%d\n", descr.c_str(), (void *)this->table, uniqNumber); |
| 58 | } |
| 59 | |
| 60 | void CsvUndo::createUndoStateCell(std::string cellContent, table_index_t R, table_index_t C, bool hasCustomHeaderRow, std::string descr) { |
| 61 | this->id = uniqNumber; |
no test coverage detected