INTEGRATION: CWS dba22 (1.31.2); FILE MERGED
2004/12/09 13:46:24 pl 1.31.2.2: #i38376# enable child transparent mode on default window 2004/12/03 12:55:17 fs 1.31.2.1: #i37023# #i36007# ImplGetCompatiblePeer: forward the graphics to the newly created peer
This commit is contained in:
parent
65d177a597
commit
8034ef19c0
1 changed files with 19 additions and 9 deletions
|
@ -2,9 +2,9 @@
|
|||
*
|
||||
* $RCSfile: unocontrol.cxx,v $
|
||||
*
|
||||
* $Revision: 1.31 $
|
||||
* $Revision: 1.32 $
|
||||
*
|
||||
* last change: $Author: obo $ $Date: 2004-11-16 10:01:30 $
|
||||
* last change: $Author: kz $ $Date: 2005-01-21 16:47:07 $
|
||||
*
|
||||
* The Contents of this file are made available subject to the terms of
|
||||
* either of the following licenses
|
||||
|
@ -173,7 +173,10 @@ WorkWindow* lcl_GetDefaultWindow()
|
|||
{
|
||||
static WorkWindow* pW = NULL;
|
||||
if ( !pW )
|
||||
{
|
||||
pW = new WorkWindow( NULL, 0 );
|
||||
pW->EnableChildTransparentMode();
|
||||
}
|
||||
return pW;
|
||||
}
|
||||
|
||||
|
@ -256,12 +259,12 @@ Reference< XWindowPeer > UnoControl::ImplGetCompatiblePeer( sal_Bool bAcceptE
|
|||
|
||||
mbCreatingCompatiblePeer = sal_True;
|
||||
|
||||
Reference< XWindowPeer > xP;
|
||||
Reference< XWindowPeer > xCompatiblePeer;
|
||||
|
||||
if ( bAcceptExistingPeer )
|
||||
xP = getPeer();
|
||||
xCompatiblePeer = getPeer();
|
||||
|
||||
if ( !xP.is() )
|
||||
if ( !xCompatiblePeer.is() )
|
||||
{
|
||||
// Peer unsichtbar erzeugen...
|
||||
sal_Bool bVis = maComponentInfos.bVisible;
|
||||
|
@ -277,20 +280,27 @@ Reference< XWindowPeer > UnoControl::ImplGetCompatiblePeer( sal_Bool bAcceptE
|
|||
|
||||
WorkWindow* pWW;
|
||||
{
|
||||
osl::Guard< vos::IMutex > aGuard( Application::GetSolarMutex() );
|
||||
pWW = lcl_GetDefaultWindow();
|
||||
osl::Guard< vos::IMutex > aGuard( Application::GetSolarMutex() );
|
||||
pWW = lcl_GetDefaultWindow();
|
||||
}
|
||||
xMe->createPeer( NULL, pWW->GetComponentInterface( sal_True ) );
|
||||
xP = getPeer();
|
||||
xCompatiblePeer = getPeer();
|
||||
setPeer( xCurrentPeer );
|
||||
|
||||
if ( xCompatiblePeer.is() && mxGraphics.is() )
|
||||
{
|
||||
Reference< XView > xPeerView( xCompatiblePeer, UNO_QUERY );
|
||||
if ( xPeerView.is() )
|
||||
xPeerView->setGraphics( mxGraphics );
|
||||
}
|
||||
|
||||
if( bVis )
|
||||
maComponentInfos.bVisible = sal_True;
|
||||
}
|
||||
|
||||
mbCreatingCompatiblePeer = sal_False;
|
||||
|
||||
return xP;
|
||||
return xCompatiblePeer;
|
||||
}
|
||||
|
||||
void UnoControl::ImplSetPeerProperty( const ::rtl::OUString& rPropName, const Any& rVal )
|
||||
|
|
Loading…
Reference in a new issue