| 5177 | } |
| 5178 | |
| 5179 | void |
| 5180 | LayoutViewBase::select_cell_dispatch (const cell_path_type &path, int cellview_index) |
| 5181 | { |
| 5182 | bool set_max_hier = (m_full_hier_new_cell || has_max_hier ()); |
| 5183 | if (m_clear_ruler_new_cell) { |
| 5184 | |
| 5185 | // This is a HACK, but the clean solution would be to provide a new editable |
| 5186 | // method like "clear_annotations": |
| 5187 | lay::Plugin *antPlugin = get_plugin_by_name ("ant::Plugin"); |
| 5188 | if (antPlugin) { |
| 5189 | antPlugin->menu_activated ("ant::clear_all_rulers_internal"); |
| 5190 | } |
| 5191 | |
| 5192 | } |
| 5193 | |
| 5194 | if (m_fit_new_cell) { |
| 5195 | select_cell_fit (path, cellview_index); |
| 5196 | } else { |
| 5197 | select_cell (path, cellview_index); |
| 5198 | } |
| 5199 | set_current_cell_path (cellview_index, path); |
| 5200 | if (set_max_hier) { |
| 5201 | max_hier (); |
| 5202 | } |
| 5203 | } |
| 5204 | |
| 5205 | void |
| 5206 | LayoutViewBase::select_cell_fit (const cell_path_type &path, int index) |
nothing calls this directly
no test coverage detected