tdf#112327 - Impress: disable master layouts in page view

Change-Id: Icd01828fb786a4bf10a1f54d0eb750e9a7597baf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197318
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
Tested-by: Jenkins
This commit is contained in:
Andreas Heinisch
2026-01-21 00:10:21 +01:00
parent ceafe6ac74
commit 63e4293827
2 changed files with 5 additions and 0 deletions
@@ -19,6 +19,8 @@ class masterElements(UITestCase):
xCancelBtn = xTemplateDlg.getChild("close")
self.ui_test.close_dialog_through_button(xCancelBtn)
# tdf#112327 - switch to master page view since master elements are disabled in normal mode
self.xUITest.executeCommand(".uno:SlideMasterPage")
with self.ui_test.execute_dialog_through_command(".uno:MasterLayouts") as xDialog:
xpagenumber = xDialog.getChild("pagenumber")
+3
View File
@@ -852,6 +852,9 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet )
rSet.DisableItem (SID_RENAME_MASTER_PAGE);
rSet.DisableItem (SID_CLOSE_MASTER_VIEW);
// tdf#112327 - disable master layouts in page view
rSet.DisableItem(SID_MASTER_LAYOUTS);
if (mpActualPage->IsCanvasPage())
{
rSet.DisableItem(SID_INSERTPAGE);