Kaydet (Commit) 013a64cc authored tarafından Mikhail Voitenko's avatar Mikhail Voitenko

#112923# allow to control storing of visual representation for OLE objects

üst 86ef28fc
...@@ -43,6 +43,8 @@ public class EmbedContApp extends Applet implements MouseListener, XEmbeddedClie ...@@ -43,6 +43,8 @@ public class EmbedContApp extends Applet implements MouseListener, XEmbeddedClie
{ {
private XMultiServiceFactory m_xServiceFactory; private XMultiServiceFactory m_xServiceFactory;
private final boolean m_bStoreVisRepl = false;
private XJob m_xMainThreadExecutor; private XJob m_xMainThreadExecutor;
private NamedValue[] m_pValuesForExecutor; private NamedValue[] m_pValuesForExecutor;
...@@ -1108,7 +1110,11 @@ public class EmbedContApp extends Applet implements MouseListener, XEmbeddedClie ...@@ -1108,7 +1110,11 @@ public class EmbedContApp extends Applet implements MouseListener, XEmbeddedClie
Object oStorage = xStorageFactory.createInstanceWithArguments( aArgs ); Object oStorage = xStorageFactory.createInstanceWithArguments( aArgs );
XStorage xTargetStorage = (XStorage)UnoRuntime.queryInterface( XStorage.class, oStorage ); 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 ); xPersist.saveCompleted( true );
// the object must be already based on new storage // the object must be already based on new storage
...@@ -1191,7 +1197,8 @@ public class EmbedContApp extends Applet implements MouseListener, XEmbeddedClie ...@@ -1191,7 +1197,8 @@ public class EmbedContApp extends Applet implements MouseListener, XEmbeddedClie
else else
oEmbObj = xEmbedCreator.createInstanceInitFromEntry( xTargetStorage, oEmbObj = xEmbedCreator.createInstanceInitFromEntry( xTargetStorage,
"EmbedSub", "EmbedSub",
false ); false,
new PropertyValue[0] );
m_xEmbedObj = (XEmbeddedObject)UnoRuntime.queryInterface( XEmbeddedObject.class, oEmbObj ); m_xEmbedObj = (XEmbeddedObject)UnoRuntime.queryInterface( XEmbeddedObject.class, oEmbObj );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment