summaryrefslogtreecommitdiff
path: root/sw/source/core/ole/ndole.cxx
diff options
context:
space:
mode:
authorValentin Kettner <vakevk+libreoffice@gmail.com>2014-06-15 20:54:04 +0200
committerValentin Kettner <vakevk+libreoffice@gmail.com>2014-07-15 15:44:03 +0200
commit54ca3a6efa89eb2222abf0a51597074be25ce322 (patch)
tree1bedc9ab1816d9282fba35b2d9c9be007b1f89b1 /sw/source/core/ole/ndole.cxx
parenta27e8f6c8dd81d1fa1a34a88890bcd944682146d (diff)
Refactored IDocumentLinksAdministration out of SwDoc.
To the new class DocumentLinksAdministrationManager. Additional to the Interface methods SwDoc::SelectServerObj was also moved and sw/source/core/doc/docdde.cxx was deleted as it became empty. Also fixed OUString usage in IDocumentLinksAdministration.hxx . Change-Id: I1f2bf0881a7d4add9c657b6441851ae14ad8d161
Diffstat (limited to 'sw/source/core/ole/ndole.cxx')
-rw-r--r--sw/source/core/ole/ndole.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/sw/source/core/ole/ndole.cxx b/sw/source/core/ole/ndole.cxx
index 7c47e26d7887..872ef569e9fd 100644
--- a/sw/source/core/ole/ndole.cxx
+++ b/sw/source/core/ole/ndole.cxx
@@ -48,6 +48,7 @@
#include <frmatr.hxx>
#include <ndole.hxx>
#include <DocumentSettingManager.hxx>
+#include <IDocumentLinksAdministration.hxx>
#include <comphelper/classids.hxx>
#include <vcl/graph.hxx>
@@ -516,7 +517,7 @@ bool SwOLENode::UpdateLinkURL_Impl()
if ( mpObjectLink )
{
OUString aNewLinkURL;
- GetDoc()->GetLinkManager().GetDisplayNames( mpObjectLink, 0, &aNewLinkURL, 0, 0 );
+ GetDoc()->getIDocumentLinksAdministration().GetLinkManager().GetDisplayNames( mpObjectLink, 0, &aNewLinkURL, 0, 0 );
if ( !aNewLinkURL.equalsIgnoreAsciiCase( maLinkURL ) )
{
if ( !aOLEObj.xOLERef.is() )
@@ -586,7 +587,7 @@ void SwOLENode::DisconnectFileLink_Impl()
{
if ( mpObjectLink )
{
- GetDoc()->GetLinkManager().Remove( mpObjectLink );
+ GetDoc()->getIDocumentLinksAdministration().GetLinkManager().Remove( mpObjectLink );
mpObjectLink = NULL;
}
}
@@ -606,7 +607,7 @@ void SwOLENode::CheckFileLink_Impl()
// this is a file link so the model link manager should handle it
mpObjectLink = new SwEmbedObjectLink( this );
maLinkURL = aLinkURL;
- GetDoc()->GetLinkManager().InsertFileLink( *mpObjectLink, OBJECT_CLIENT_OLE, aLinkURL, NULL, NULL );
+ GetDoc()->getIDocumentLinksAdministration().GetLinkManager().InsertFileLink( *mpObjectLink, OBJECT_CLIENT_OLE, aLinkURL, NULL, NULL );
mpObjectLink->Connect();
}
}