diff options
author | Christian Lippka <christian.lippka@sun.com> | 2010-07-07 15:53:12 +0200 |
---|---|---|
committer | Christian Lippka <christian.lippka@sun.com> | 2010-07-07 15:53:12 +0200 |
commit | 78ce81b376371b23759f0b67e5664fd1faf7dbee (patch) | |
tree | 5b233749074a47709ac9f34f13f4db1c787dda37 /sd | |
parent | 976f6be2e65ba681b70d91943265baaec75398c5 (diff) |
#i112791# add missing update for SID_INSERTPAGE slot on slide change
Diffstat (limited to 'sd')
-rwxr-xr-x | sd/source/ui/slidesorter/controller/SlsSlotManager.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
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); + } } |