Kaydet (Commit) 2a5073d9 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

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
üst c893d404
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#include <config_features.h>
#include <stdio.h> #include <stdio.h>
#include <boost/unordered_map.hpp> #include <boost/unordered_map.hpp>
...@@ -582,8 +583,13 @@ SfxWorkWindow::SfxWorkWindow( Window *pWin, SfxBindings& rB, SfxWorkWindow* pPar ...@@ -582,8 +583,13 @@ SfxWorkWindow::SfxWorkWindow( Window *pWin, SfxBindings& rB, SfxWorkWindow* pPar
bDockingAllowed(sal_True), bDockingAllowed(sal_True),
bInternalDockingAllowed(sal_True), bInternalDockingAllowed(sal_True),
bAllChildrenVisible(sal_True), bAllChildrenVisible(sal_True),
#if HAVE_FEATURE_DESKTOP
bIsFullScreen( sal_False ), bIsFullScreen( sal_False ),
bShowStatusBar( sal_True ), bShowStatusBar( sal_True ),
#else
bIsFullScreen( sal_True ),
bShowStatusBar( sal_False ),
#endif
m_nLock( 0 ), m_nLock( 0 ),
m_aStatusBarResName( RTL_CONSTASCII_USTRINGPARAM( "private:resource/statusbar/statusbar" )), m_aStatusBarResName( RTL_CONSTASCII_USTRINGPARAM( "private:resource/statusbar/statusbar" )),
m_aLayoutManagerPropName( RTL_CONSTASCII_USTRINGPARAM( "LayoutManager" )), m_aLayoutManagerPropName( RTL_CONSTASCII_USTRINGPARAM( "LayoutManager" )),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment