cui/source/tabpages/swpossizetabpage.cxx | 7 +++++++ 1 file changed, 7 insertions(+)
New commits: commit 6086dea1f783f6dd1752ffc531ec21234dc1a08a Author: Miklos Vajna <[email protected]> AuthorDate: Fri Jan 2 10:47:55 2026 +0100 Commit: Caolán McNamara <[email protected]> CommitDate: Mon Jan 5 09:43:19 2026 +0100 cool#13945 cui lok: hide UI to set DOCX-incompatible anchor types This is similar to commit 4154d281fbecaadf6cd118c00cc6cff929e339a4 (sw lok: hide UI to set Word-incompatible anchor types, 2019-07-05), but here the context menu was already filtered, so just need to hide two radio buttons in the Writer-specific tab page of the shape position & size dialog. Change-Id: I575872a65deb2e6c6bc08515752911991e6505f2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196411 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Caolán McNamara <[email protected]> diff --git a/cui/source/tabpages/swpossizetabpage.cxx b/cui/source/tabpages/swpossizetabpage.cxx index 72a2f2ab60b3..14ea0fbcac21 100644 --- a/cui/source/tabpages/swpossizetabpage.cxx +++ b/cui/source/tabpages/swpossizetabpage.cxx @@ -629,6 +629,13 @@ SvxSwPosSizeTabPage::SvxSwPosSizeTabPage(weld::Container* pPage, weld::DialogCon m_xHoriMirrorCB->connect_toggled(LINK(this, SvxSwPosSizeTabPage, MirrorHdl)); m_xPositionCB->connect_toggled(LINK(this, SvxSwPosSizeTabPage, ProtectHdl)); + + if (comphelper::LibreOfficeKit::isActive()) + { + // Hide these, they can't be saved to OOXML. + m_xToPageRB->hide(); + m_xToFrameRB->hide(); + } } SvxSwPosSizeTabPage::~SvxSwPosSizeTabPage()
