| 5666 | } |
| 5667 | |
| 5668 | void |
| 5669 | LayoutViewBase::paste_interactive (bool transient_mode) |
| 5670 | { |
| 5671 | clear_selection (); |
| 5672 | |
| 5673 | std::unique_ptr<db::Transaction> trans (new db::Transaction (manager (), tl::to_string (tr ("Paste and move")))); |
| 5674 | |
| 5675 | lay::Editables::paste (); |
| 5676 | |
| 5677 | // temporarily close the transaction and pass to the move service for appending it's own |
| 5678 | // operations. |
| 5679 | trans->close (); |
| 5680 | |
| 5681 | if (mp_move_service && mp_move_service->start_move (trans.release (), transient_mode)) { |
| 5682 | switch_mode (-1); // move mode |
| 5683 | } |
| 5684 | } |
| 5685 | |
| 5686 | void |
| 5687 | LayoutViewBase::copy () |
no test coverage detected