summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-04-01 23:31:18 +0300
committerTor Lillqvist <tml@iki.fi>2013-04-01 23:49:57 +0300
commit2a5073d91702061177b279e7a8555a1f30266015 (patch)
tree0c2aaac681daf6e944345c7c7ded83550281dd35
parentc893d404c6bb90990ea18db70f27647269a6369f (diff)
Avoid desktop GUI elements in non-DESKTOP environment
One simple early step: Start a SfxWorkWindow (what a meaningless name...) in "full-screen" mode, and without a status bar. Still lots of ifdefs etc to add if we want to avoid compiling in all the tons of related code. Change-Id: Id8b37bd215423a839643c5c1f426f6455956a886
-rw-r--r--sfx2/source/appl/workwin.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sfx2/source/appl/workwin.cxx b/sfx2/source/appl/workwin.cxx
index 0a379df68e9f..99da99d4e611 100644
--- a/sfx2/source/appl/workwin.cxx
+++ b/sfx2/source/appl/workwin.cxx
@@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <config_features.h>
#include <stdio.h>
#include <boost/unordered_map.hpp>
@@ -582,8 +583,13 @@ SfxWorkWindow::SfxWorkWindow( Window *pWin, SfxBindings& rB, SfxWorkWindow* pPar
bDockingAllowed(sal_True),
bInternalDockingAllowed(sal_True),
bAllChildrenVisible(sal_True),
+#if HAVE_FEATURE_DESKTOP
bIsFullScreen( sal_False ),
bShowStatusBar( sal_True ),
+#else
+ bIsFullScreen( sal_True ),
+ bShowStatusBar( sal_False ),
+#endif
m_nLock( 0 ),
m_aStatusBarResName( RTL_CONSTASCII_USTRINGPARAM( "private:resource/statusbar/statusbar" )),
m_aLayoutManagerPropName( RTL_CONSTASCII_USTRINGPARAM( "LayoutManager" )),