In Word only the first-page-shared flag is shared between header and footer, while the existence of header and footer is independent. Split into core flags `DisableFirstHeader` / `DisableFirstFooter`, properties `HeaderNoFirst` / `FooterNoFirst` (which allows removing some special checks as the name prefix checks now cover these). `SectionPropertyMap::setHeaderFooterProperties()` had some special code to turn off a header but not a footer, add that to do it consistently. Also rename the ODF attributes, `is-first-page-header-enabled` better describes the values than `is-first-page-header-shared`. Signed-off-by: Michael Stahl <michael.stahl@collabora.com> Change-Id: Ieee9cb7a8f7b4fb7e66352c95142d8ccb06f9cb5 Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/4383 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins CPCI <releng@collaboraoffice.com> (cherry picked from commit a443891f1a6480421fa08c311526c1a9d4bdd642) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/206703 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>