| 135 | } |
| 136 | |
| 137 | void |
| 138 | Editables::cut () |
| 139 | { |
| 140 | if (has_selection ()) { |
| 141 | |
| 142 | cancel_edits (); |
| 143 | |
| 144 | // this dummy operation will update the screen: |
| 145 | if (manager ()) { |
| 146 | manager ()->queue (this, new db::Op ()); |
| 147 | } |
| 148 | |
| 149 | db::Clipboard::instance ().clear (); |
| 150 | for (iterator e = begin (); e != end (); ++e) { |
| 151 | e->cut (); |
| 152 | } |
| 153 | |
| 154 | } |
| 155 | } |
| 156 | |
| 157 | void |
| 158 | Editables::copy () |