From 78ce81b376371b23759f0b67e5664fd1faf7dbee Mon Sep 17 00:00:00 2001 From: Christian Lippka Date: Wed, 7 Jul 2010 15:53:12 +0200 Subject: [PATCH] #i112791# add missing update for SID_INSERTPAGE slot on slide change --- .../ui/slidesorter/controller/SlsSlotManager.cxx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx b/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx index 6c1123abc031..e571a765bdad 100755 --- a/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx +++ b/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx @@ -614,6 +614,17 @@ void SlotManager::GetMenuState ( SfxItemSet& rSet) break; } } + + PageKind ePageKind = mrSlideSorter.GetModel().GetPageType(); + if( (eEditMode == EM_MASTERPAGE) && (ePageKind != PK_HANDOUT ) ) + { + rSet.DisableItem(SID_ASSIGN_LAYOUT); + } + + if( (eEditMode == EM_MASTERPAGE) || (ePageKind==PK_NOTES) ) + { + rSet.DisableItem(SID_INSERTPAGE); + } }