diff options
Diffstat (limited to 'sd/source/ui/sidebar/SlideBackground.cxx')
-rw-r--r-- | sd/source/ui/sidebar/SlideBackground.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sd/source/ui/sidebar/SlideBackground.cxx b/sd/source/ui/sidebar/SlideBackground.cxx index e7e7424a8932..12df05bfa0d9 100644 --- a/sd/source/ui/sidebar/SlideBackground.cxx +++ b/sd/source/ui/sidebar/SlideBackground.cxx @@ -298,6 +298,14 @@ void SlideBackground::HandleContextChange( mpInsertImage->Show(); } + // The Insert Image button in the sidebar issues .uno:SelectBackground, + // which when invoked without arguments will open the file-open-dialog + // to prompt the user to select a file. This is useless in LOOL. + // Hide for now so the user will only be able to use the menu to insert + // background image, which prompts the user for file selection in the browser. + if (comphelper::LibreOfficeKit::isActive()) + mpInsertImage->Hide(); + // Need to do a relayouting, otherwise the panel size is not updated after show / hide controls sfx2::sidebar::Panel* pPanel = dynamic_cast<sfx2::sidebar::Panel*>(GetParent()); if(pPanel) @@ -864,7 +872,7 @@ void SlideBackground::NotifyItemUpdate( if (pSizeItem) { Size aPaperSize = pSizeItem->GetSize(); - if(mpPaperOrientation->GetSelectedEntryPos() == 0) + if (mpPaperOrientation->GetSelectedEntryPos() == 0) Swap(aPaperSize); Paper ePaper = SvxPaperInfo::GetSvxPaper(aPaperSize, meUnit); |