diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2005-03-23 15:25:35 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2005-03-23 15:25:35 +0000 |
commit | 7568af4764decb375f43abdc35b0a553557eebf2 (patch) | |
tree | a28b1a346100fc1028619edd47437f58a5f23607 /sfx2 | |
parent | 33c0da8e8c61ee4e04a24fc4d4ff5d1a777e4ec5 (diff) |
INTEGRATION: CWS fwkfinal2 (1.7.20); FILE MERGED
2005/03/21 12:22:05 mav 1.7.20.3: #i43729# dummy method implementations
2005/03/14 14:48:35 mav 1.7.20.2: #i40665# update the replacement image
2005/03/14 14:02:03 mav 1.7.20.1: #i40665# update the replacement image
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/view/ipclient.cxx | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/sfx2/source/view/ipclient.cxx b/sfx2/source/view/ipclient.cxx index 4e4a60963a74..e1d59cf1937d 100644 --- a/sfx2/source/view/ipclient.cxx +++ b/sfx2/source/view/ipclient.cxx @@ -2,9 +2,9 @@ * * $RCSfile: ipclient.cxx,v $ * - * $Revision: 1.10 $ + * $Revision: 1.11 $ * - * last change: $Author: obo $ $Date: 2005-03-18 11:16:17 $ + * last change: $Author: vg $ $Date: 2005-03-23 16:25:35 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -291,6 +291,7 @@ void SAL_CALL SfxInPlaceClient_Impl::visibilityChanged( sal_Bool bVisible ) throw uno::RuntimeException(); m_pClient->GetViewShell()->OutplaceActivated( bVisible, m_pClient ); + m_pClient->Invalidate(); } @@ -828,9 +829,13 @@ const Fraction& SfxInPlaceClient::GetScaleHeight() const void SfxInPlaceClient::Invalidate() { // TODO/LATER: do we need both? - awt::Rectangle aAwtRect = m_pImp->getPlacement(); - Rectangle aRect = VCLRectangle( aAwtRect ); - m_pEditWin->Invalidate( aRect ); + + // the object area is provided in logical coordinates of the window but without scaling applied + Rectangle aRealObjArea( m_pImp->m_aObjArea ); + aRealObjArea.SetSize( Size( Fraction( aRealObjArea.GetWidth() ) * m_pImp->m_aScaleWidth, + Fraction( aRealObjArea.GetHeight() ) * m_pImp->m_aScaleHeight ) ); + m_pEditWin->Invalidate( aRealObjArea ); + ViewChanged(); } |