diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2021-03-29 18:01:28 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2021-03-29 20:38:53 +0200 |
commit | 67e53dfeadbbc4f4ab207af0d2cd4e8f556b73d4 (patch) | |
tree | a2d22b671520179466aa72a909f1098e791bdd9b /sw/source | |
parent | 1bdef3250fc57ea3f9b69a1f55ceb035329b6fa9 (diff) |
sw page rtl gutter margin: add doc model
This is a new flag on the page style, and if it's true, then non-top
gutter is right, not left.
This is just the doc model, other parts will come in follow-up commits.
Change-Id: I36ffe9d2f62fc057cf98952c743d415d9240513d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113323
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/bastyp/init.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/doc/docdesc.cxx | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/core/bastyp/init.cxx b/sw/source/core/bastyp/init.cxx index e3b40ced6452..305c2c3d1310 100644 --- a/sw/source/core/bastyp/init.cxx +++ b/sw/source/core/bastyp/init.cxx @@ -410,6 +410,7 @@ SfxItemInfo aSlotTab[] = { 0, true }, // RES_FRMATR_GRABBAG { 0, true }, // RES_TEXT_VERT_ADJUST { 0, true }, // RES_BACKGROUND_FULL_SIZE + { 0, true }, // RES_RTL_GUTTER { 0, true }, // RES_GRFATR_MIRRORGRF { SID_ATTR_GRAF_CROP, true }, // RES_GRFATR_CROPGRF @@ -614,6 +615,7 @@ void InitCore() aAttrTab[ RES_FRMATR_GRABBAG - POOLATTR_BEGIN ] = new SfxGrabBagItem(RES_FRMATR_GRABBAG); aAttrTab[ RES_TEXT_VERT_ADJUST - POOLATTR_BEGIN ] = new SdrTextVertAdjustItem(SDRTEXTVERTADJUST_TOP,RES_TEXT_VERT_ADJUST); aAttrTab[ RES_BACKGROUND_FULL_SIZE - POOLATTR_BEGIN ] = new SfxBoolItem(RES_BACKGROUND_FULL_SIZE, true); + aAttrTab[ RES_RTL_GUTTER - POOLATTR_BEGIN ] = new SfxBoolItem(RES_RTL_GUTTER, false); aAttrTab[ RES_GRFATR_MIRRORGRF- POOLATTR_BEGIN ] = new SwMirrorGrf; aAttrTab[ RES_GRFATR_CROPGRF- POOLATTR_BEGIN ] = new SwCropGrf; diff --git a/sw/source/core/doc/docdesc.cxx b/sw/source/core/doc/docdesc.cxx index a66feb74ee85..05831ab5e487 100644 --- a/sw/source/core/doc/docdesc.cxx +++ b/sw/source/core/doc/docdesc.cxx @@ -142,6 +142,7 @@ static void lcl_DescSetAttr( const SwFrameFormat &rSource, SwFrameFormat &rDest, RES_FRAMEDIR, RES_FRAMEDIR, // [114 RES_HEADER_FOOTER_EAT_SPACING, RES_HEADER_FOOTER_EAT_SPACING, // [115 RES_BACKGROUND_FULL_SIZE, RES_BACKGROUND_FULL_SIZE, // [131 + RES_RTL_GUTTER, RES_RTL_GUTTER, // [132 RES_UNKNOWNATR_CONTAINER, RES_UNKNOWNATR_CONTAINER, // [143 // take over DrawingLayer FillStyles @@ -186,6 +187,7 @@ static void lcl_DescSetAttr( const SwFrameFormat &rSource, SwFrameFormat &rDest, case RES_COL: case RES_PAPER_BIN: case RES_BACKGROUND_FULL_SIZE: + case RES_RTL_GUTTER: bExecuteId = false; break; default: |