summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2013-10-11 11:49:50 +0300
committerTor Lillqvist <tml@collabora.com>2013-10-11 13:15:04 +0300
commitc7f7c954e0817de664344a620938a4e99ac7549c (patch)
tree16cbdf635093d8ee3007dc57e9691937d78ccecf /sfx2
parent3a912a626f9f96b62a6c425292a25ec02280d926 (diff)
Don't display menu unless HAVE_FEATURE_DESKTOP_GUI_ELEMENTS
Idea from http://lists.freedesktop.org/archives/libreoffice/2013-July/054088.html . Sure, there must be tons of more code that should be ifdeffed for HAVE_FEATURE_DESKTOP_GUI_ELEMENTS. Change-Id: I1ef9ec749b795919c6e52e4f9e0a03bd0e874bc3
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/dispatch.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sfx2/source/control/dispatch.cxx b/sfx2/source/control/dispatch.cxx
index 9d525150e89c..27f6288bb2b4 100644
--- a/sfx2/source/control/dispatch.cxx
+++ b/sfx2/source/control/dispatch.cxx
@@ -17,6 +17,8 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <config_features.h>
+
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/frame/XDispatchRecorderSupplier.hpp>
#include <com/sun/star/frame/XLayoutManager.hpp>
@@ -1238,6 +1240,7 @@ IMPL_LINK( SfxDispatcher, PostMsgHandler, SfxRequest*, pReq )
//--------------------------------------------------------------------
void SfxDispatcher::SetMenu_Impl()
{
+#if HAVE_FEATURE_DESKTOP_GUI_ELEMENTS
if ( pImp->pFrame )
{
SfxViewFrame* pTop = pImp->pFrame->GetTopViewFrame();
@@ -1262,6 +1265,7 @@ void SfxDispatcher::SetMenu_Impl()
}
}
}
+#endif
}
//--------------------------------------------------------------------