fix #21309: Grey out three options of Export layout if unticked in preferences
fix #21345: Part still visible if in view before deletion
make bracket span change undoable
fix #21313
fix #21277