Insert > Header and Footers... depend on Format > Page Style. We have the following scenarios: [x] Header: [x] Same on left/right [x] Same on first [x] Footer: [x] Same on left/right [x] Same on first => Header/Footer -> as expected [x] Header: [x] Same on left/right [ ] Same on first [ ] Footer => Header (right) -> I'd expect Header (but it starts ScHFEditRightHeaderDlg) (same for Footer) Page Layout: Mirrored [x] Header/Footer: [ ] Same on left/right [x] Same on first => Header/Footer (first/left/right) -> would expect Header/Footer (left/right) but no first Page Layout: Mirrored [x] Header/Footer: [x] Same on left/right [ ] Same on first => Header/Footer -> would expect Header/Footer (first) and Header/Footer ---- We currently have a large number of dialogs for the command, see sc/source/ui/inc/hfedtdlg.hxx. It executes per SID_HFEDIT and picks one of the RID_SCDLG_HFEDIT_* depending on the page settings. Would be much easier to maintain if the tabs were conditionally added or removed in one c'tor. I wonder how Caolan's work in ScHFEditActiveDlg comes into play with all these other functions. The
In bug 121777 I suggested something about it
(In reply to Roman Kuznetsov from comment #1) > In bug 121777 I suggested something about it Interesting idea. But it misses header/footer varying on first/left/right pages. And that's what seems to be broken.