summaryrefslogtreecommitdiffstats
path: root/embeddedobj/test
diff options
context:
space:
mode:
authorMikhail Voitenko <mav@openoffice.org>2003-12-09 14:32:47 +0000
committerMikhail Voitenko <mav@openoffice.org>2003-12-09 14:32:47 +0000
commit013a64cc3a53ae98f0f552ab70398ce324889f4c (patch)
treeb2f0b57230b7e99cbbf9860b322384b9daab080b /embeddedobj/test
parent#112923# allow to control storing of visual representation for OLE objects (diff)
downloadcore-013a64cc3a53ae98f0f552ab70398ce324889f4c.tar.gz
core-013a64cc3a53ae98f0f552ab70398ce324889f4c.zip
#112923# allow to control storing of visual representation for OLE objects
Diffstat (limited to 'embeddedobj/test')
-rw-r--r--embeddedobj/test/Container1/EmbedContApp.java11
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 );