diff options
author | Szabolcs Toth <toth.szabolcs@nisz.hu> | 2020-10-22 12:23:43 +0200 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2020-10-26 10:38:02 +0100 |
commit | 6a10ea009ef590ac13d01d19fbfbc28c916ef1d4 (patch) | |
tree | 3b63f3e2a2cd842c68cf3cc363143b1bcdc1a8e5 /cui | |
parent | sw: prefix members of SwContentViewConfig, SwCursorConfig, SwGridConfig ... (diff) | |
download | core-6a10ea009ef590ac13d01d19fbfbc28c916ef1d4.tar.gz core-6a10ea009ef590ac13d01d19fbfbc28c916ef1d4.zip |
tdf#137650 sw page top border relative orientation: add UI
as new menu item "page text area top" of Position/Vertical
popup menu "to:" in Position and Size dialog window of
shapes.
Follow-up of commit 1c593e1916c9164c7db71da2017cfc26972f8e9f
(tdf#133045 sw: add shape alignment to the top page border).
See also commit 8af2c4e3a517e3b75f2ace9719c1ca03153baddf
(sw from-bottom relative orientation: add UI)
Change-Id: I98671fa9c7c184c8f360ccb35e671df68cd271b5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104661
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/tabpages/swpossizetabpage.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cui/source/tabpages/swpossizetabpage.cxx b/cui/source/tabpages/swpossizetabpage.cxx index b0366bf48053..2b9c8c70a4b4 100644 --- a/cui/source/tabpages/swpossizetabpage.cxx +++ b/cui/source/tabpages/swpossizetabpage.cxx @@ -98,8 +98,9 @@ enum class LB { VertLine = 0x080000, // vertical text line RelPagePrintAreaBottom = 0x100000, // bottom of text area of page + RelPagePrintAreaTop = 0x200000, - LAST = 0x200000 + LAST = 0x400000 }; } @@ -118,6 +119,7 @@ RelationMap const aRelationMap[] = {SvxSwFramePosString::REL_FRM_RIGHT, SvxSwFramePosString::MIR_REL_FRM_RIGHT, LB::RelFrameRight, RelOrientation::FRAME_RIGHT}, {SvxSwFramePosString::REL_PG_FRAME, SvxSwFramePosString::REL_PG_FRAME, LB::RelPageFrame, RelOrientation::PAGE_FRAME}, {SvxSwFramePosString::REL_PG_PRTAREA,SvxSwFramePosString::REL_PG_PRTAREA, LB::RelPagePrintArea, RelOrientation::PAGE_PRINT_AREA}, + {SvxSwFramePosString::REL_PG_PRTAREA_TOP,SvxSwFramePosString::REL_PG_PRTAREA_TOP, LB::RelPagePrintAreaTop, RelOrientation::PAGE_PRINT_AREA_TOP}, {SvxSwFramePosString::REL_PG_PRTAREA_BOTTOM,SvxSwFramePosString::REL_PG_PRTAREA_BOTTOM, LB::RelPagePrintAreaBottom, RelOrientation::PAGE_PRINT_AREA_BOTTOM}, {SvxSwFramePosString::REL_CHAR, SvxSwFramePosString::REL_CHAR, LB::RelChar, RelOrientation::CHAR}, @@ -259,7 +261,7 @@ FrmMap const aHParaHtmlAbsMap[] = constexpr auto VERT_PARA_REL = LB::VertFrame|LB::VertPrintArea| - LB::RelPageFrame|LB::RelPagePrintArea|LB::RelPagePrintAreaBottom; + LB::RelPageFrame|LB::RelPagePrintArea| LB::RelPagePrintAreaTop |LB::RelPagePrintAreaBottom; FrmMap const aVParaMap[] = { |