diff options
author | Mikhail Voitenko <mav@openoffice.org> | 2003-11-04 13:30:21 +0000 |
---|---|---|
committer | Mikhail Voitenko <mav@openoffice.org> | 2003-11-04 13:30:21 +0000 |
commit | c37f4bb94a119e4031796c097a35c1217e221e6c (patch) | |
tree | 286a47c0866e78782812c9d3cffabb3188c2ec3b /embeddedobj/test | |
parent | c606cf901739b73ddd9ec45a57f3d9c95f305f99 (diff) |
#112739# add breakLink method
Diffstat (limited to 'embeddedobj/test')
-rw-r--r-- | embeddedobj/test/Container1/EmbedContApp.java | 11 |
1 files changed, 5 insertions, 6 deletions
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 ); } |