sc/source/ui/drawfunc/fuins1.cxx | 7 +++---- sd/source/ui/view/sdview.cxx | 4 ++++ 2 files changed, 7 insertions(+), 4 deletions(-)
New commits: commit 92f531209675e1855798f513fb7698fceddd022b Author: Michael Meeks <michael.me...@collabora.com> AuthorDate: Tue Jul 5 13:54:42 2022 +0100 Commit: Michael Meeks <michael.me...@collabora.com> CommitDate: Tue Jul 5 18:04:31 2022 +0200 fix build with disable-avmedia. Change-Id: Ia57db9b2bcec4ff73e1332bb5b2197080343baa4 Signed-off-by: Michael Meeks <michael.me...@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136831 Tested-by: Jenkins diff --git a/sc/source/ui/drawfunc/fuins1.cxx b/sc/source/ui/drawfunc/fuins1.cxx index c6f2f69daaa5..1e2791b12e16 100644 --- a/sc/source/ui/drawfunc/fuins1.cxx +++ b/sc/source/ui/drawfunc/fuins1.cxx @@ -207,6 +207,8 @@ static void lcl_InsertGraphic( const Graphic& rGraphic, pObj->SetGraphicLink( rFileName ); } +#if HAVE_FEATURE_AVMEDIA + static void lcl_InsertMedia( const OUString& rMediaURL, bool bApi, ScTabViewShell* pViewSh, const vcl::Window* pWindow, SdrView* pView, const Size& rPrefSize, bool const bLink ) @@ -241,12 +243,8 @@ static void lcl_InsertMedia( const OUString& rMediaURL, bool bApi, { uno::Reference<frame::XModel> const xModel( rData.GetDocument().GetDocumentShell()->GetModel()); -#if HAVE_FEATURE_AVMEDIA bool const bRet = ::avmedia::EmbedMedia(xModel, rMediaURL, realURL); if (!bRet) { return; } -#else - return; -#endif } SdrMediaObj* pObj = new SdrMediaObj( @@ -256,6 +254,7 @@ static void lcl_InsertMedia( const OUString& rMediaURL, bool bApi, pObj->setURL( realURL, ""/*TODO?*/ ); pView->InsertObjectAtView( pObj, *pPV, bApi ? SdrInsertFlags::DONTMARK : SdrInsertFlags::NONE ); } +#endif FuInsertGraphic::FuInsertGraphic( ScTabViewShell& rViewSh, vcl::Window* pWin, diff --git a/sd/source/ui/view/sdview.cxx b/sd/source/ui/view/sdview.cxx index 9ab22b73bf5b..429a8c408753 100644 --- a/sd/source/ui/view/sdview.cxx +++ b/sd/source/ui/view/sdview.cxx @@ -17,6 +17,8 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <config_features.h> + #include <com/sun/star/embed/NoVisualAreaSizeException.hpp> #include <com/sun/star/embed/XEmbeddedObject.hpp> #include <com/sun/star/linguistic2/XSpellChecker1.hpp> @@ -143,11 +145,13 @@ View::~View() // release content of selection clipboard, if we own the content ClearSelectionClipboard(); +#if HAVE_FEATURE_AVMEDIA if (mxDropMediaSizeListener) { suppress_fun_call_w_exception(mxDropMediaSizeListener->dispose()); mxDropMediaSizeListener.clear(); } +#endif maDropErrorIdle.Stop(); maDropInsertFileIdle.Stop();