diff options
author | RĂ¼diger Timm <rt@openoffice.org> | 2005-01-31 08:11:16 +0000 |
---|---|---|
committer | RĂ¼diger Timm <rt@openoffice.org> | 2005-01-31 08:11:16 +0000 |
commit | 55c4da9006fb55cdefae3fda62875e27de5a5473 (patch) | |
tree | 008502db5ee96998970f37d33663a7a448c770c3 | |
parent | 1e3f71544c89c1a3f7e285bffaff4672821db00e (diff) |
INTEGRATION: CWS mav15 (1.6.92); FILE MERGED
2005/01/21 13:28:17 mav 1.6.92.1: #i39746# cache the visual area size for OLE objects and switch own objects to RUNNING state automatically
-rw-r--r-- | sw/source/ui/uiview/swcli.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sw/source/ui/uiview/swcli.cxx b/sw/source/ui/uiview/swcli.cxx index bd4f74ac9e..8d166cff5e 100644 --- a/sw/source/ui/uiview/swcli.cxx +++ b/sw/source/ui/uiview/swcli.cxx @@ -2,9 +2,9 @@ * * $RCSfile: swcli.cxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: rt $ $Date: 2004-11-26 16:29:33 $ + * last change: $Author: rt $ $Date: 2005-01-31 09:11:16 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -132,8 +132,7 @@ void SwOleClient::RequestNewObjectArea( Rectangle& aLogRect ) // size has changed, so first change visual area of the object before we resize its view // without this the object always would be scaled - now it has the choice - // TODO/LEAN: getMapUnit still needs running state - svt::EmbeddedObjectRef::TryRunningState( GetObject() ); + // TODO/LEAN: getMapUnit can switch object to running state MapMode aObjectMap( VCLUnoHelper::UnoEmbed2VCLMapUnit( GetObject()->getMapUnit( GetAspect() ) ) ); MapMode aClientMap( GetEditWin()->GetMapMode().GetMapUnit() ); @@ -177,8 +176,7 @@ void SwOleClient::ViewChanged() //CalcAndSetScale() der WrtShell beruecksichtig, wenn die Groesse/Pos des //Rahmens in der Core sich veraendert. - // TODO/LEAN: getMapUnit still needs running state - svt::EmbeddedObjectRef::TryRunningState( GetObject() ); + // TODO/LEAN: getMapUnit can switch object to running state awt::Size aSz = GetObject()->getVisualAreaSize( GetAspect() ); Size aVisSize( aSz.Width, aSz.Height ); |