diff options
author | Mikhail Voitenko <mav@openoffice.org> | 2003-12-08 11:49:52 +0000 |
---|---|---|
committer | Mikhail Voitenko <mav@openoffice.org> | 2003-12-08 11:49:52 +0000 |
commit | eb1cd39087221aed407426e1469b82598f0932fd (patch) | |
tree | 477e342a666d705348b3830d256b871027c049da /embeddedobj/test | |
parent | 0e38f35193f807ae2b53e27dc065ce1f87f0c28f (diff) |
#112923# properties to initialize object
Diffstat (limited to 'embeddedobj/test')
-rw-r--r-- | embeddedobj/test/Container1/EmbedContApp.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/embeddedobj/test/Container1/EmbedContApp.java b/embeddedobj/test/Container1/EmbedContApp.java index 1922b1b76395..1165b11b7992 100644 --- a/embeddedobj/test/Container1/EmbedContApp.java +++ b/embeddedobj/test/Container1/EmbedContApp.java @@ -950,7 +950,8 @@ public class EmbedContApp extends Applet implements MouseListener, XEmbeddedClie Object oEmbObj = xEmbedFactory.createInstanceInitNew( pClassID, "Dummy name", m_xStorage, - "EmbedSub" ); + "EmbedSub", + new PropertyValue[0] ); xEmbObj = (XEmbeddedObject)UnoRuntime.queryInterface( XEmbeddedObject.class, oEmbObj ); } else @@ -986,7 +987,7 @@ public class EmbedContApp extends Applet implements MouseListener, XEmbeddedClie aMedDescr[0].Value = (Object) aLinkURL; aMedDescr[1].Name = "ReadOnly"; aMedDescr[1].Value = (Object) new Boolean( false ); - Object oEmbObj = xLinkCreator.createInstanceLink( m_xStorage, "EmbedSub", aMedDescr ); + Object oEmbObj = xLinkCreator.createInstanceLink( m_xStorage, "EmbedSub", aMedDescr, new PropertyValue[0] ); xEmbObj = (XEmbeddedObject)UnoRuntime.queryInterface( XEmbeddedObject.class, oEmbObj ); } else @@ -1022,7 +1023,8 @@ public class EmbedContApp extends Applet implements MouseListener, XEmbeddedClie aMedDescr[1].Value = (Object) new Boolean( false ); Object oEmbObj = xEmbedCreator.createInstanceInitFromMediaDescriptor( m_xStorage, "EmbedSub", - aMedDescr ); + aMedDescr, + new PropertyValue[0] ); xEmbObj = (XEmbeddedObject)UnoRuntime.queryInterface( XEmbeddedObject.class, oEmbObj ); } else @@ -1123,7 +1125,7 @@ public class EmbedContApp extends Applet implements MouseListener, XEmbeddedClie Object oStorage = xStorageFactory.createInstanceWithArguments( aArgs ); XStorage xTargetStorage = (XStorage)UnoRuntime.queryInterface( XStorage.class, oStorage ); - xPersist.storeAsEntry( xTargetStorage, "EmbedSub", new PropertyValue[0] ); + xPersist.storeAsEntry( xTargetStorage, "EmbedSub", new PropertyValue[0], new PropertyValue[0] ); xPersist.saveCompleted( true ); // the object must be already based on new storage |