Bugzilla – Attachment 51651 Details for
Bug 39983
[Feature Request] Support Mac OSX 10.7 (Lion) full-screen mode
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Third patch, hack in progress
fullscreen.desktop.diff (text/plain), 3.06 KB, created by
Don't use this account, use tml@iki.fi
on 2011-09-27 00:24:40 UTC
(
hide
)
Description:
Third patch, hack in progress
Filename:
MIME Type:
Creator:
Don't use this account, use tml@iki.fi
Created:
2011-09-27 00:24:40 UTC
Size:
3.06 KB
patch
obsolete
>diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx >index a3b3ceb..7a572d8 100644 >--- a/desktop/source/app/app.cxx >+++ b/desktop/source/app/app.cxx >@@ -50,6 +50,7 @@ > #include "migration.hxx" > > #include <svtools/javacontext.hxx> >+#include <com/sun/star/frame/XLayoutManager.hpp> > #include <com/sun/star/frame/XSessionManagerListener.hpp> > #include <com/sun/star/frame/XSynchronousDispatch.hpp> > #include <com/sun/star/document/CorruptedFilterConfigurationException.hpp> >@@ -139,8 +140,10 @@ > #include <vcl/bitmap.hxx> > #include <vcl/stdtext.hxx> > #include <vcl/msgbox.hxx> >+#include <vcl/wrkwin.hxx> > #include <sfx2/sfx.hrc> > #include <sfx2/app.hxx> >+#include <sfx2/viewfrm.hxx> > #include <svl/itemset.hxx> > #include <svl/eitem.hxx> > #include <ucbhelper/contentbroker.hxx> >@@ -3153,6 +3156,54 @@ void Desktop::HandleAppEvent( const ApplicationEvent& rAppEvent ) > if( pD ) > pD->doShutdown(); > } >+#ifdef MACOSX >+ else if( rAppEvent.GetEvent() == "TOGGLEFULLSCREEN" ) >+ { >+ SfxViewFrame *pTop = SfxViewFrame::Current()->GetTopViewFrame(); >+ if ( pTop ) >+ { >+ WorkWindow* pWork = (WorkWindow*) pTop->GetFrame().GetSystemWindow(); >+ if ( pWork ) >+ { >+ com::sun::star::uno::Reference< com::sun::star::frame::XFrame > xFrame( >+ SfxViewFrame::Current()->GetFrame().GetFrameInterface(), >+ com::sun::star::uno::UNO_QUERY); >+ >+ Reference< ::com::sun::star::beans::XPropertySet > xPropSet( xFrame, UNO_QUERY ); >+ Reference< ::com::sun::star::frame::XLayoutManager > xLayoutManager; >+ if ( xPropSet.is() ) >+ { >+ try >+ { >+ Any aValue = xPropSet->getPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "LayoutManager" ))); >+ aValue >>= xLayoutManager; >+ } >+ catch ( css::uno::Exception& ) >+ { >+ } >+ } >+ sal_Bool bNewFullScreenMode = rAppEvent.GetData().EqualsAscii( "ENTER" ); >+ if ( bNewFullScreenMode != !pWork->IsFullScreenMode() ) >+ { >+ Reference< ::com::sun::star::beans::XPropertySet > xLMPropSet( xLayoutManager, UNO_QUERY ); >+ if ( xLMPropSet.is() ) >+ { >+ try >+ { >+ xLMPropSet->setPropertyValue( >+ ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "HideCurrentUI" )), >+ makeAny( bNewFullScreenMode )); >+ } >+ catch ( ::com::sun::star::beans::UnknownPropertyException& ) >+ { >+ } >+ } >+ pWork->SetMenuBarMode( bNewFullScreenMode ? MENUBAR_MODE_HIDE : MENUBAR_MODE_NORMAL ); >+ } >+ } >+ } >+ } >+#endif > } > > void Desktop::OpenSplashScreen()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 39983
:
51649
|
51650
| 51651 |
72070
|
83419