tdf#91920 sw page gutter margin, from top: add UI
commit9dc25ec68f3342f257ac0b0a6ed2f7165473ed3d
authorMiklos Vajna <vmiklos@collabora.com>
Mon, 8 Feb 2021 08:46:50 +0000 (8 09:46 +0100)
committerMiklos Vajna <vmiklos@collabora.com>
Wed, 10 Feb 2021 11:12:02 +0000 (10 12:12 +0100)
treebb36cabedfd3c94455080969d9fa8f6631a244dd
parent4165dd0f8acb3fe95542056f45e861f4a156807a
tdf#91920 sw page gutter margin, from top: add UI

- read from sw::DocumentSettingManager::mbGutterAtTop

- improve the preview widget to take gutter position into account

- also change it when the gutter position widget changes

- write it back to sw::DocumentSettingManager::mbGutterAtTop on
  modification

- always check if the dialog's input item set has SID_ATTR_CHAR_GRABBAG,
  otherwise do nothing to keep Calc/Impress unchanged

[ And in this branch, fix a silent merge conflict that mis-positioned
labelGutterMargin in the .ui file. ]

(cherry picked from commit 63d3bf99101e2138a21a74a3d717d4f25d3d242f)

Conflicts:
cui/uiconfig/ui/pageformatpage.ui
sw/source/core/doc/DocumentSettingManager.cxx

Change-Id: I05ef864bf7ac18f4c6829d78312044560e6402d0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110671
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
cui/source/inc/page.hxx
cui/source/tabpages/page.cxx
cui/uiconfig/ui/pageformatpage.ui
sw/source/uibase/app/docst.cxx
sw/source/uibase/app/docstyle.cxx