diff options
author | Mikhail Voitenko <mav@openoffice.org> | 2003-12-09 14:32:47 +0000 |
---|---|---|
committer | Mikhail Voitenko <mav@openoffice.org> | 2003-12-09 14:32:47 +0000 |
commit | 013a64cc3a53ae98f0f552ab70398ce324889f4c (patch) | |
tree | b2f0b57230b7e99cbbf9860b322384b9daab080b /embeddedobj | |
parent | 86ef28fc4d39dbe41d84557958b466f4a4b6c743 (diff) |
#112923# allow to control storing of visual representation for OLE objects
Diffstat (limited to 'embeddedobj')
-rw-r--r-- | embeddedobj/test/Container1/EmbedContApp.java | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/embeddedobj/test/Container1/EmbedContApp.java b/embeddedobj/test/Container1/EmbedContApp.java index 4a01c25757c8..c99a7e7dbdeb 100644 --- a/embeddedobj/test/Container1/EmbedContApp.java +++ b/embeddedobj/test/Container1/EmbedContApp.java @@ -43,6 +43,8 @@ public class EmbedContApp extends Applet implements MouseListener, XEmbeddedClie { private XMultiServiceFactory m_xServiceFactory; + private final boolean m_bStoreVisRepl = false; + private XJob m_xMainThreadExecutor; private NamedValue[] m_pValuesForExecutor; @@ -1108,7 +1110,11 @@ 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], new PropertyValue[0] ); + PropertyValue aProps[] = { new PropertyValue() }; + aProps[0].Name = "StoreVisualReplacement"; + aProps[0].Value = new Boolean( m_bStoreVisRepl ); + + xPersist.storeAsEntry( xTargetStorage, "EmbedSub", new PropertyValue[0], aProps ); xPersist.saveCompleted( true ); // the object must be already based on new storage @@ -1191,7 +1197,8 @@ public class EmbedContApp extends Applet implements MouseListener, XEmbeddedClie else oEmbObj = xEmbedCreator.createInstanceInitFromEntry( xTargetStorage, "EmbedSub", - false ); + false, + new PropertyValue[0] ); m_xEmbedObj = (XEmbeddedObject)UnoRuntime.queryInterface( XEmbeddedObject.class, oEmbObj ); |