summaryrefslogtreecommitdiff
path: root/sw/source/ui
diff options
context:
space:
mode:
authorOliver Specht <os@openoffice.org>2001-02-26 11:08:18 +0000
committerOliver Specht <os@openoffice.org>2001-02-26 11:08:18 +0000
commit3e8cfc5ebf56c2cb8b3497c7191e23461f761b3c (patch)
tree2eeb525a960b953a2f10b47fde9939443341609d /sw/source/ui
parent563fa5c7e296ecba2cb5d3c513b2264221b6e657 (diff)
#76652# XLinkUpdate implemented
Diffstat (limited to 'sw/source/ui')
-rw-r--r--sw/source/ui/uno/unotxdoc.cxx23
1 files changed, 21 insertions, 2 deletions
diff --git a/sw/source/ui/uno/unotxdoc.cxx b/sw/source/ui/uno/unotxdoc.cxx
index 3986a842a175..0252cdddd03c 100644
--- a/sw/source/ui/uno/unotxdoc.cxx
+++ b/sw/source/ui/uno/unotxdoc.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: unotxdoc.cxx,v $
*
- * $Revision: 1.18 $
+ * $Revision: 1.19 $
*
- * last change: $Author: os $ $Date: 2001-02-21 07:38:49 $
+ * last change: $Author: os $ $Date: 2001-02-26 12:08:18 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -186,6 +186,9 @@
#include <cppuhelper/implbase1.hxx>
#endif
+#ifndef _SVXLINKMGR_HXX
+#include <svx/linkmgr.hxx>
+#endif
#ifndef _SVX_UNOMID_HXX
#include <svx/unomid.hxx>
#endif
@@ -2132,6 +2135,22 @@ void SwXTextDocument::removeRefreshListener(const Reference< util::XRefreshListe
{
DBG_WARNING("not implemented")
}
+/* -----------------------------26.02.01 12:22--------------------------------
+
+ ---------------------------------------------------------------------------*/
+void SwXTextDocument::updateLinks( ) throw(RuntimeException)
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ if(!IsValid())
+ throw RuntimeException();
+ SwDoc* pDoc = pDocShell->GetDoc();
+ SvxLinkManager& rLnkMan = pDoc->GetLinkManager();
+ if( rLnkMan.GetLinks().Count() )
+ {
+ UnoActionContext aAction(pDoc);
+ rLnkMan.UpdateAllLinks( FALSE, FALSE, TRUE );
+ }
+}
/* -----------------------------20.06.00 09:54--------------------------------
---------------------------------------------------------------------------*/