From c37f4bb94a119e4031796c097a35c1217e221e6c Mon Sep 17 00:00:00 2001 From: Mikhail Voitenko Date: Tue, 4 Nov 2003 13:30:21 +0000 Subject: #112739# add breakLink method --- embeddedobj/test/Container1/EmbedContApp.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'embeddedobj/test') diff --git a/embeddedobj/test/Container1/EmbedContApp.java b/embeddedobj/test/Container1/EmbedContApp.java index d6fd81c2e55c..e8e1084dc987 100644 --- a/embeddedobj/test/Container1/EmbedContApp.java +++ b/embeddedobj/test/Container1/EmbedContApp.java @@ -617,18 +617,17 @@ public class EmbedContApp extends Applet implements MouseListener, XEmbeddedClie if ( xNameAccess != null && xNameAccess.hasByName( "LinkName" ) ) m_xStorage.removeElement( "LinkName" ); - XEmbedPersist xPersist = (XEmbedPersist)UnoRuntime.queryInterface( XEmbedPersist.class, - m_xEmbedObj ); - if ( xPersist != null ) + XLinkageSupport xLinkage = (XLinkageSupport)UnoRuntime.queryInterface( XLinkageSupport.class, + m_xEmbedObj ); + if ( xLinkage != null ) { - PropertyValue[] pEmp = new PropertyValue[0]; - xPersist.setPersistentEntry( m_xStorage, "EmbedSub", EntryInitModes.ENTRY_NO_INIT, pEmp ); + xLinkage.breakLink( m_xStorage, "EmbedSub" ); m_bLinkObj = false; m_aLinkURI = null; } else JOptionPane.showMessageDialog( m_aFrame, - "No XEmbedPersist in ConvertLink... !", + "No XLinkageSupport in ConvertLink... !", "Error:", JOptionPane.ERROR_MESSAGE ); } -- cgit