diff options
author | Oliver Bolte <obo@openoffice.org> | 2004-06-04 10:24:38 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2004-06-04 10:24:38 +0000 |
commit | 7e5015d2c20d5c59ac51d4180896f8d8c95fd12f (patch) | |
tree | 24b6b58cbeb28fba2c91d00f9f052009ceff5f06 /sc/source/ui/docshell/docsh6.cxx | |
parent | c5218f224ebf863369eff42d85b3837f19e65083 (diff) |
INTEGRATION: CWS rowlimit (1.10.180); FILE MERGED
2004/04/29 16:31:51 er 1.10.180.4: RESYNC: (1.10-1.11); FILE MERGED
2004/02/25 01:17:53 er 1.10.180.3: #i1967# type correctness
2004/02/04 11:28:16 er 1.10.180.2: #i1967# replace ScTripel,ScRefTripel with ScAddress,ScRefAddress; get rid of some warnings
2004/01/14 15:50:13 er 1.10.180.1: #i1967# SCCOL,SCROW,SCTAB replace USHORT; SCsCOL,SCsROW,SCsTAB replace short
Diffstat (limited to 'sc/source/ui/docshell/docsh6.cxx')
-rw-r--r-- | sc/source/ui/docshell/docsh6.cxx | 38 |
1 files changed, 18 insertions, 20 deletions
diff --git a/sc/source/ui/docshell/docsh6.cxx b/sc/source/ui/docshell/docsh6.cxx index 4c8c358e3b91..d3bf5ea6ca19 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.11 $ + * $Revision: 1.12 $ * - * last change: $Author: obo $ $Date: 2004-03-17 16:28:52 $ + * last change: $Author: obo $ $Date: 2004-06-04 11:24:38 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -320,12 +320,12 @@ void ScDocShell::SetVisAreaOrSize( const Rectangle& rVisArea, BOOL bModifyStart if (aDocument.IsEmbedded()) { - ScTripel aOldStart,aOldEnd; - aDocument.GetEmbedded(aOldStart,aOldEnd); + ScRange aOld; + aDocument.GetEmbedded( aOld); aDocument.SetEmbedded( aArea ); - ScTripel aNewStart,aNewEnd; - aDocument.GetEmbedded(aNewStart,aNewEnd); - if (aNewStart!=aOldStart || aNewEnd!=aOldEnd) + ScRange aNew; + aDocument.GetEmbedded( aNew); + if (aOld != aNew) PostPaint(0,0,0,MAXCOL,MAXROW,MAXTAB,PAINT_GRID); ViewChanged( ASPECT_CONTENT ); // auch im Container anzeigen @@ -356,7 +356,7 @@ void ScDocShell::UpdateOle( const ScViewData* pViewData, BOOL bSnapSize ) aNewArea = aDocument.GetEmbeddedRect(); else { - USHORT nTab = pViewData->GetTabNo(); + SCTAB nTab = pViewData->GetTabNo(); if ( nTab != aDocument.GetVisibleTab() ) { aDocument.SetVisibleTab( nTab ); @@ -364,8 +364,8 @@ void ScDocShell::UpdateOle( const ScViewData* pViewData, BOOL bSnapSize ) } BOOL bNegativePage = aDocument.IsNegativePage( nTab ); - USHORT nX = pViewData->GetPosX(SC_SPLIT_LEFT); - USHORT nY = pViewData->GetPosY(SC_SPLIT_BOTTOM); + SCCOL nX = pViewData->GetPosX(SC_SPLIT_LEFT); + SCROW nY = pViewData->GetPosY(SC_SPLIT_BOTTOM); Rectangle aMMRect = aDocument.GetMMRect( nX,nY, nX,nY, nTab ); if (bNegativePage) lcl_SetTopRight( aNewArea, aMMRect.TopRight() ); @@ -525,17 +525,15 @@ BOOL __EXPORT ScDocShell::Insert( SfxObjectShell &rSource, void ScDocShell::UpdateLinks() { SvxLinkManager* pLinkManager = aDocument.GetLinkManager(); - USHORT nCount; - USHORT i; StrCollection aNames; // nicht mehr benutzte Links raus - nCount = pLinkManager->GetLinks().Count(); - for (i=nCount; i>0; ) + USHORT nCount = pLinkManager->GetLinks().Count(); + for (USHORT k=nCount; k>0; ) { - --i; - ::so3::SvBaseLink* pBase = *pLinkManager->GetLinks()[i]; + --k; + ::so3::SvBaseLink* pBase = *pLinkManager->GetLinks()[k]; if (pBase->ISA(ScTableLink)) { ScTableLink* pTabLink = (ScTableLink*)pBase; @@ -548,7 +546,7 @@ void ScDocShell::UpdateLinks() else // nicht mehr benutzt -> loeschen { pTabLink->SetAddUndo(TRUE); - pLinkManager->Remove(i); + pLinkManager->Remove(k); } } } @@ -556,8 +554,8 @@ void ScDocShell::UpdateLinks() // neue Links eintragen - nCount = aDocument.GetTableCount(); - for (i=0; i<nCount; i++) + SCTAB nTabCount = aDocument.GetTableCount(); + for (SCTAB i=0; i<nTabCount; i++) if (aDocument.IsLinked(i)) { String aDocName = aDocument.GetLinkDoc(i); @@ -565,7 +563,7 @@ void ScDocShell::UpdateLinks() String aOptions = aDocument.GetLinkOpt(i); ULONG nRefresh = aDocument.GetLinkRefreshDelay(i); BOOL bThere = FALSE; - for (USHORT j=0; j<i && !bThere; j++) // im Dokument mehrfach? + for (SCTAB j=0; j<i && !bThere; j++) // im Dokument mehrfach? if (aDocument.IsLinked(j) && aDocument.GetLinkDoc(j) == aDocName && aDocument.GetLinkFlt(j) == aFltName |