Skip to content

WIP: allow multi-duplicating items on facing pages

a.l.e requested to merge a.l.e/scribus:duplicate-multipage-pages into master

currently, scribus crashes if you try to multi-duplicate items from facing pages.

this patch is a partial solution that makes scribus do the right thing when the selection and the duplication settings are sane.

  • odd and even duplication are disabled when items are on multiple pages
  • the user has to do something "intelligent", otherwise useless things will happen.
  • the main target is to allow duplicating the linked frames from facing pages. with linking.
  • i've removed the check for the chain of text frames being on the same page

once we know how the feature is used, we can add further checks:

  • sanitize the manual range (currently, the range can only be a list of pages. all other value will lead to "useless" results; it might even be better to disable it and add a field with the maximal number of copies)
  • when the document has facing pages, the number of pages in the selection must be even and the selection must start on an odd page (otherwise you get "useless" results)
  • when linking text frames, the first text frame in the selection will be used: we probably cannot change this (without a big UI and cognitive overhead). how can we explain this to the user (should we issue a warning if the selection does not look "correct")
  • if the text being linked is in a chain, we simply link the first duplicated text frame in the selection with the last frame in the preview copy (or the original): how can we explain this to the user? how can we "easily" detect an ill-defined selection?

i can continue working on this patch, if any of the points above should be done NOW...

Merge request reports