sd/Module_sd.mk | 2 +- sd/source/ui/dlg/filedlg.cxx | 3 ++- sd/source/ui/dlg/sdabstdlg.cxx | 4 +--- 3 files changed, 4 insertions(+), 5 deletions(-)
New commits: commit e54e668c51ec9230a3fc6a7cb1080d5696bea14e Author: Tor Lillqvist <[email protected]> AuthorDate: Mon Feb 25 15:49:11 2019 +0200 Commit: Tor Lillqvist <[email protected]> CommitDate: Mon Feb 25 20:34:19 2019 +0200 Fix build when !HAVE_FEATURE_AVMEDIA Change-Id: I17fa4d503d197b9b7c7405281001ea92714494a9 diff --git a/sd/source/ui/dlg/filedlg.cxx b/sd/source/ui/dlg/filedlg.cxx index 4db7263c5d99..3781ee676618 100644 --- a/sd/source/ui/dlg/filedlg.cxx +++ b/sd/source/ui/dlg/filedlg.cxx @@ -119,6 +119,7 @@ IMPL_LINK_NOARG(SdFileDialog_Imp, PlayMusicHdl, void*, void) OUString aUrl( GetPath() ); if ( !aUrl.isEmpty() ) { +#if HAVE_FEATURE_AVMEDIA try { mxPlayer.set( avmedia::MediaWindow::createPlayer( aUrl, "" ), css::uno::UNO_QUERY_THROW ); @@ -129,7 +130,7 @@ IMPL_LINK_NOARG(SdFileDialog_Imp, PlayMusicHdl, void*, void) { mxPlayer.clear(); } - +#endif if (mxPlayer.is()) { try commit d71c5461704e120af9ae33aeefb79702be475680 Author: Tor Lillqvist <[email protected]> AuthorDate: Mon Feb 25 15:36:38 2019 +0200 Commit: Tor Lillqvist <[email protected]> CommitDate: Mon Feb 25 20:33:15 2019 +0200 Build the sdui library for non-DESKTOP, too In order to get the Impress-specific dialogs in the (new, Online-based) iOS and Android apps, too. Change-Id: I7400326bafc1b8a0470b5ed0fb631ae984b7b795 diff --git a/sd/Module_sd.mk b/sd/Module_sd.mk index 59f792a78037..5ac3add08cd5 100644 --- a/sd/Module_sd.mk +++ b/sd/Module_sd.mk @@ -13,7 +13,7 @@ $(eval $(call gb_Module_add_targets,sd,\ Library_sd \ Library_sdd \ Library_sdfilt \ - $(call gb_Helper_optional,DESKTOP,Library_sdui) \ + Library_sdui \ Package_opengl \ Package_web \ Package_xml \ commit 056be933ea041939401f945df7f6e0a23e53a616 Author: Tor Lillqvist <[email protected]> AuthorDate: Mon Feb 25 15:34:13 2019 +0200 Commit: Tor Lillqvist <[email protected]> CommitDate: Mon Feb 25 20:33:00 2019 +0200 Make SdAbstractDialogFactory::Create() do its job also on non-DESKTOP Change-Id: Ife76336dbdeaadf08f631e3542be73a8568f5368 diff --git a/sd/source/ui/dlg/sdabstdlg.cxx b/sd/source/ui/dlg/sdabstdlg.cxx index 22f85571f2f4..53ce9a009458 100644 --- a/sd/source/ui/dlg/sdabstdlg.cxx +++ b/sd/source/ui/dlg/sdabstdlg.cxx @@ -39,7 +39,6 @@ extern "C" SdAbstractDialogFactory* SdCreateDialogFactory(); SdAbstractDialogFactory* SdAbstractDialogFactory::Create() { SdFuncPtrCreateDialogFactory fp = nullptr; -#if HAVE_FEATURE_DESKTOP #ifndef DISABLE_DYNLOADING static ::osl::Module aDialogLibrary; static const OUString sLibName(SDUI_DLL_NAME); @@ -49,7 +48,6 @@ SdAbstractDialogFactory* SdAbstractDialogFactory::Create() #else fp = SdCreateDialogFactory; #endif -#endif if ( fp ) return fp(); return nullptr; commit 895573518e84e319655877baadda1adc54003435 Author: Tor Lillqvist <[email protected]> AuthorDate: Mon Feb 25 15:33:01 2019 +0200 Commit: Tor Lillqvist <[email protected]> CommitDate: Mon Feb 25 20:32:47 2019 +0200 We want the function pointer here, but not call it yet We will call it just a few lines later. Change-Id: I967ff4eec2cfb1dcc7e8b02f32232be65b6366db diff --git a/sd/source/ui/dlg/sdabstdlg.cxx b/sd/source/ui/dlg/sdabstdlg.cxx index cf61289997db..22f85571f2f4 100644 --- a/sd/source/ui/dlg/sdabstdlg.cxx +++ b/sd/source/ui/dlg/sdabstdlg.cxx @@ -47,7 +47,7 @@ SdAbstractDialogFactory* SdAbstractDialogFactory::Create() fp = reinterpret_cast<SdAbstractDialogFactory* (SAL_CALL*)()>( aDialogLibrary.getFunctionSymbol( "SdCreateDialogFactory" )); #else - fp = SdCreateDialogFactory(); + fp = SdCreateDialogFactory; #endif #endif if ( fp ) _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
