diff options
author | Eike Rathke <er@openoffice.org> | 2001-04-18 11:34:53 +0000 |
---|---|---|
committer | Eike Rathke <er@openoffice.org> | 2001-04-18 11:34:53 +0000 |
commit | 945c2e5d0efa0183f778d438824baf34013aea23 (patch) | |
tree | 1c89f35e3e02f5d4dfd807c0c5186df91b545528 /sc/source/ui/docshell/docsh6.cxx | |
parent | 08558e289cbfeb2ccf1e576f5bd8ccbcee3b8762 (diff) |
ScTableLink with refresh delay
Diffstat (limited to 'sc/source/ui/docshell/docsh6.cxx')
-rw-r--r-- | sc/source/ui/docshell/docsh6.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sc/source/ui/docshell/docsh6.cxx b/sc/source/ui/docshell/docsh6.cxx index a69fc60cf3de..0accbfe6edd6 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.4 $ + * $Revision: 1.5 $ * - * last change: $Author: jp $ $Date: 2001-03-08 20:49:42 $ + * last change: $Author: er $ $Date: 2001-04-18 12:30:51 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -515,12 +515,16 @@ void ScDocShell::UpdateLinks() String aDocName = aDocument.GetLinkDoc(i); String aFltName = aDocument.GetLinkFlt(i); String aOptions = aDocument.GetLinkOpt(i); + ULONG nRefresh = aDocument.GetLinkRefreshDelay(i); BOOL bThere = FALSE; for (USHORT j=0; j<i && !bThere; j++) // im Dokument mehrfach? if (aDocument.IsLinked(j) && aDocument.GetLinkDoc(j) == aDocName && aDocument.GetLinkFlt(j) == aFltName && aDocument.GetLinkOpt(j) == aOptions) + // Ignore refresh delay in compare, it should be the + // same for identical links and we don't want dupes + // if it ain't. bThere = TRUE; if (!bThere) // schon als Filter eingetragen? @@ -534,7 +538,7 @@ void ScDocShell::UpdateLinks() } if (!bThere) { - ScTableLink* pLink = new ScTableLink( this, aDocName, aFltName, aOptions ); + ScTableLink* pLink = new ScTableLink( this, aDocName, aFltName, aOptions, nRefresh ); pLink->SetInCreate( TRUE ); pLinkManager->InsertFileLink( *pLink, OBJECT_CLIENT_FILE, aDocName, &aFltName ); pLink->Update(); |