Kaydet (Commit) 8eb047db authored tarafından Oliver Bolte's avatar Oliver Bolte

INTEGRATION: CWS fwk77 (1.131.64); FILE MERGED

2007/12/03 05:14:09 pb 1.131.64.2: RESYNC: (1.131-1.132); FILE MERGED
2007/10/22 14:39:06 cd 1.131.64.1: #i82381# Use new property to implement full screen mode correctly
üst 4dea1be2
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: viewfrm.cxx,v $ * $RCSfile: viewfrm.cxx,v $
* *
* $Revision: 1.132 $ * $Revision: 1.133 $
* *
* last change: $Author: ihi $ $Date: 2007-11-21 16:51:01 $ * last change: $Author: obo $ $Date: 2008-01-04 16:35:05 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -3474,9 +3474,40 @@ void SfxViewFrame::MiscExec_Impl( SfxRequest& rReq ) ...@@ -3474,9 +3474,40 @@ void SfxViewFrame::MiscExec_Impl( SfxRequest& rReq )
WorkWindow* pWork = (WorkWindow*) pTop->GetTopFrame_Impl()->GetTopWindow_Impl(); WorkWindow* pWork = (WorkWindow*) pTop->GetTopFrame_Impl()->GetTopWindow_Impl();
if ( pWork ) if ( pWork )
{ {
com::sun::star::uno::Reference< com::sun::star::frame::XFrame > xFrame(
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 ( Exception& )
{
}
}
BOOL bNewFullScreenMode = pItem ? pItem->GetValue() : !pWork->IsFullScreenMode(); BOOL bNewFullScreenMode = pItem ? pItem->GetValue() : !pWork->IsFullScreenMode();
if ( bNewFullScreenMode != pWork->IsFullScreenMode() ) 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->ShowFullScreenMode( bNewFullScreenMode ); pWork->ShowFullScreenMode( bNewFullScreenMode );
pWork->SetMenuBarMode( bNewFullScreenMode ? MENUBAR_MODE_HIDE : MENUBAR_MODE_NORMAL ); pWork->SetMenuBarMode( bNewFullScreenMode ? MENUBAR_MODE_HIDE : MENUBAR_MODE_NORMAL );
GetFrame()->GetWorkWindow_Impl()->SetFullScreen_Impl( bNewFullScreenMode ); GetFrame()->GetWorkWindow_Impl()->SetFullScreen_Impl( bNewFullScreenMode );
......
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