| 5394 | } |
| 5395 | |
| 5396 | void |
| 5397 | LayoutViewBase::show_all_cells (int cv_index) |
| 5398 | { |
| 5399 | if (cv_index < 0 || cv_index >= int (m_hidden_cells.size ())) { |
| 5400 | return; |
| 5401 | } |
| 5402 | |
| 5403 | if (! m_hidden_cells [cv_index].empty ()) { |
| 5404 | if (transacting ()) { |
| 5405 | for (std::set<cell_index_type>::const_iterator ci = m_hidden_cells [cv_index].begin (); ci != m_hidden_cells [cv_index].end (); ++ci) { |
| 5406 | manager ()->queue (this, new OpHideShowCell (*ci, cv_index, true /*=show*/)); |
| 5407 | } |
| 5408 | } else if (manager () && ! replaying ()) { |
| 5409 | manager ()->clear (); |
| 5410 | } |
| 5411 | m_hidden_cells [cv_index].clear (); |
| 5412 | cell_visibility_changed_event (); |
| 5413 | redraw (); // needs redraw |
| 5414 | } |
| 5415 | } |
| 5416 | |
| 5417 | void |
| 5418 | LayoutViewBase::show_all_cells () |