diff options
-rw-r--r-- | sd/source/ui/slidesorter/controller/SlsSlotManager.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx b/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx index 17b4adeeb958..da52ddc630da 100644 --- a/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx +++ b/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx @@ -742,6 +742,13 @@ void SlotManager::GetClipboardState ( SfxItemSet& rSet) } } + ViewShellBase* pBase = mrSlideSorter.GetViewShellBase(); + if (pBase && pBase->isContentExtractionLocked()) + { + rSet.DisableItem(SID_COPY); + rSet.DisableItem(SID_CUT); + } + // Cut, copy, and delete page are disabled when there is no selection. if (!(rSet.GetItemState(SID_CUT) == SfxItemState::DEFAULT || rSet.GetItemState(SID_COPY) == SfxItemState::DEFAULT |