diff options
author | Matúš Kukan <matus.kukan@collabora.com> | 2014-02-19 12:21:12 +0100 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2014-02-19 12:26:41 +0100 |
commit | 9ad3fc29dd98167c35fcb599da0b4e764ddf04dd (patch) | |
tree | 3e917373b7fa68099115249eee5b405d8e6d51a0 /sd/source | |
parent | 3d024d29fa7344240f6cf407d023ef3537b0a5a9 (diff) |
Avoid app specific CreateDialogFactory code for non-DESKTOP.
As happened in 7e9ac5952711400ad856b3328c5cc00c05cec6f2 for cui library.
Change-Id: If51201eb452d4b84729b37949fb9b949020b47b8
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/ui/dlg/sdabstdlg.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sd/source/ui/dlg/sdabstdlg.cxx b/sd/source/ui/dlg/sdabstdlg.cxx index b62eea74fda9..34b737aa9c94 100644 --- a/sd/source/ui/dlg/sdabstdlg.cxx +++ b/sd/source/ui/dlg/sdabstdlg.cxx @@ -17,6 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <config_features.h> #include "sdabstdlg.hxx" @@ -38,19 +39,21 @@ extern "C" SdAbstractDialogFactory* SdCreateDialogFactory(); SdAbstractDialogFactory* SdAbstractDialogFactory::Create() { -#ifndef DISABLE_DYNLOADING SdFuncPtrCreateDialogFactory fp = 0; +#if HAVE_FEATURE_DESKTOP +#ifndef DISABLE_DYNLOADING static ::osl::Module aDialogLibrary; static const OUString sLibName(::vcl::unohelper::CreateLibraryName("sdui", sal_True)); if ( aDialogLibrary.is() || aDialogLibrary.loadRelative( &thisModule, sLibName ) ) fp = ( SdAbstractDialogFactory* (SAL_CALL*)() ) aDialogLibrary.getFunctionSymbol( "CreateDialogFactory" ); +#else + fp = SdCreateDialogFactory(); +#endif +#endif if ( fp ) return fp(); return 0; -#else - return SdCreateDialogFactory(); -#endif } |