diff options
author | Kurt Zenker <kz@openoffice.org> | 2004-10-04 19:15:24 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2004-10-04 19:15:24 +0000 |
commit | c7f1c33ce6ed072a01e10a273939dca3562d6edb (patch) | |
tree | b49a377e90fcccf1e6e82400268da1554f379cc8 /sc/source/ui/docshell | |
parent | c0b320af9498d6af1b3806d1cdc714e638556ebd (diff) |
INTEGRATION: CWS mav09 (1.11.58); FILE MERGED
2004/09/16 22:56:45 mav 1.11.58.5: RESYNC: (1.12-1.13); FILE MERGED
2004/07/15 10:41:09 mba 1.11.58.4: #i27773#: cleaning up todos
2004/07/09 02:28:11 mav 1.11.58.3: RESYNC: (1.11-1.12); FILE MERGED
2004/05/16 17:26:39 mba 1.11.58.2: #i27773#: new EmbeddedObjectContainer
2004/05/04 14:01:42 mba 1.11.58.1: #i27773#: remove so3
Diffstat (limited to 'sc/source/ui/docshell')
-rw-r--r-- | sc/source/ui/docshell/docsh6.cxx | 38 |
1 files changed, 13 insertions, 25 deletions
diff --git a/sc/source/ui/docshell/docsh6.cxx b/sc/source/ui/docshell/docsh6.cxx index e6f5c76daf0c..a1c1dd082942 100644 --- a/sc/source/ui/docshell/docsh6.cxx +++ b/sc/source/ui/docshell/docsh6.cxx @@ -2,9 +2,9 @@ * * $RCSfile: docsh6.cxx,v $ * - * $Revision: 1.13 $ + * $Revision: 1.14 $ * - * last change: $Author: hr $ $Date: 2004-09-08 13:53:00 $ + * last change: $Author: kz $ $Date: 2004-10-04 20:15:24 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -68,10 +68,8 @@ #pragma hdrstop #ifndef PCH -#include <so3/ipenv.hxx> #include "scitems.hxx" -#include <so3/ipenv.hxx> #include <svx/pageitem.hxx> #include <vcl/virdev.hxx> #include <svx/linkmgr.hxx> @@ -106,20 +104,6 @@ struct ScStylePair // Ole // -String ScDocShell::CreateObjectName( const String& rPrefix ) -{ - String aStr( rPrefix ); - USHORT i = 1; - aStr += String::CreateFromInt32( i ); - while( Find( aStr ) ) - { - i++; - aStr = rPrefix; - aStr += String::CreateFromInt32( i ); - } - return aStr; -} - void __EXPORT ScDocShell::SetVisArea( const Rectangle & rVisArea ) { // with the SnapVisArea call in SetVisAreaOrSize, it's safe to always @@ -169,7 +153,7 @@ void ScDocShell::SetVisAreaOrSize( const Rectangle& rVisArea, BOOL bModifyStart } else { - Rectangle aOldVisArea = SfxInPlaceObject::GetVisArea(); + Rectangle aOldVisArea = SfxObjectShell::GetVisArea(); if ( bNegativePage ) lcl_SetTopRight( aArea, aOldVisArea.TopRight() ); else @@ -183,15 +167,18 @@ void ScDocShell::SetVisAreaOrSize( const Rectangle& rVisArea, BOOL bModifyStart if ( !aDocument.IsImportingXML() ) aDocument.SnapVisArea( aArea ); + //TODO/LATER: it's unclear which IPEnv is used here + /* SvInPlaceEnvironment* pEnv = GetIPEnv(); if (pEnv) { Window* pWin = pEnv->GetEditWin(); pEnv->MakeScale( aArea.GetSize(), MAP_100TH_MM, pWin->LogicToPixel( aArea.GetSize() ) ); - } + } */ - SvInPlaceObject::SetVisArea( aArea ); + //TODO/LATER: formerly in SvInplaceObject + SfxObjectShell::SetVisArea( aArea ); if (bIsInplace) // Zoom in der InPlace View einstellen { @@ -215,7 +202,8 @@ void ScDocShell::SetVisAreaOrSize( const Rectangle& rVisArea, BOOL bModifyStart if (aOld != aNew) PostPaint(0,0,0,MAXCOL,MAXROW,MAXTAB,PAINT_GRID); - ViewChanged( ASPECT_CONTENT ); // auch im Container anzeigen + //TODO/LATER: currently not implemented + //ViewChanged( ASPECT_CONTENT ); // auch im Container anzeigen } } @@ -234,7 +222,7 @@ void ScDocShell::UpdateOle( const ScViewData* pViewData, BOOL bSnapSize ) DBG_ASSERT(pViewData,"pViewData==0 bei ScDocShell::UpdateOle"); - Rectangle aOldArea = SfxInPlaceObject::GetVisArea(); + Rectangle aOldArea = SfxObjectShell::GetVisArea(); Rectangle aNewArea = aOldArea; BOOL bChange = FALSE; @@ -420,7 +408,7 @@ void ScDocShell::UpdateLinks() for (USHORT k=nCount; k>0; ) { --k; - ::so3::SvBaseLink* pBase = *pLinkManager->GetLinks()[k]; + ::sfx2::SvBaseLink* pBase = *pLinkManager->GetLinks()[k]; if (pBase->ISA(ScTableLink)) { ScTableLink* pTabLink = (ScTableLink*)pBase; @@ -488,7 +476,7 @@ BOOL ScDocShell::ReloadTabLinks() USHORT nCount = pLinkManager->GetLinks().Count(); for (USHORT i=0; i<nCount; i++ ) { - ::so3::SvBaseLink* pBase = *pLinkManager->GetLinks()[i]; + ::sfx2::SvBaseLink* pBase = *pLinkManager->GetLinks()[i]; if (pBase->ISA(ScTableLink)) { ScTableLink* pTabLink = (ScTableLink*)pBase; |