diff options
author | Matúš Kukan <matus.kukan@collabora.com> | 2014-02-18 09:25:02 +0100 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2014-02-18 09:37:17 +0100 |
commit | bac3b0c12e11438166e28358e04d4e175a3e09f2 (patch) | |
tree | 2eb27c656ac97d912083e2105dc9f7af5fff1254 /sw/source | |
parent | 3714d1c599308059db351b9867b9350aa533e3e3 (diff) |
sw: Avoid linking in a lot of, mostly UI related, code for mobile platforms.
Change-Id: Ic49a22140233e72e6f1e103558825970f1ee3df3
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/ui/app/swdll.cxx | 4 | ||||
-rw-r--r-- | sw/source/ui/app/swmodule.cxx | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/sw/source/ui/app/swdll.cxx b/sw/source/ui/app/swdll.cxx index a8a7dd2245ea..cb6d19e079e1 100644 --- a/sw/source/ui/app/swdll.cxx +++ b/sw/source/ui/app/swdll.cxx @@ -17,6 +17,8 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <config_features.h> + #include <svx/svdobj.hxx> #include "globdoc.hrc" @@ -126,11 +128,13 @@ SwDLL::SwDLL() // register your view-factories here RegisterFactories(); +#if HAVE_FEATURE_DESKTOP // register your shell-interfaces here RegisterInterfaces(); // register your controllers here RegisterControls(); +#endif } SwDLL::~SwDLL() diff --git a/sw/source/ui/app/swmodule.cxx b/sw/source/ui/app/swmodule.cxx index 2536d8680719..e5231a6368c3 100644 --- a/sw/source/ui/app/swmodule.cxx +++ b/sw/source/ui/app/swmodule.cxx @@ -17,6 +17,8 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <config_features.h> + #include <hintids.hxx> #include <swerror.h> #include <vcl/wrkwin.hxx> @@ -242,6 +244,7 @@ void SwDLL::RegisterFactories() if ( SvtModuleOptions().IsWriter() ) SwView::RegisterFactory ( 2 ); +#if HAVE_FEATURE_DESKTOP SwWebView::RegisterFactory ( 5 ); if ( SvtModuleOptions().IsWriter() ) @@ -249,6 +252,7 @@ void SwDLL::RegisterFactories() SwSrcView::RegisterFactory ( 6 ); SwPagePreview::RegisterFactory ( 7 ); } +#endif } void SwDLL::RegisterInterfaces() |