From 992300e341ba4764792fd38be280b4301d0d83e6 Mon Sep 17 00:00:00 2001 From: "Frank Schoenheit [fs]" Date: Wed, 17 Nov 2010 11:32:54 +0100 Subject: undoapi: doVerb does not work, currently ... but leave it here, commented out, for the moment --- sfx2/qa/complex/sfx2/undo/ChartDocumentTest.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sfx2/qa') diff --git a/sfx2/qa/complex/sfx2/undo/ChartDocumentTest.java b/sfx2/qa/complex/sfx2/undo/ChartDocumentTest.java index 1bb1be804cac..8dcabef8370e 100755 --- a/sfx2/qa/complex/sfx2/undo/ChartDocumentTest.java +++ b/sfx2/qa/complex/sfx2/undo/ChartDocumentTest.java @@ -113,7 +113,12 @@ public class ChartDocumentTest implements DocumentTest canActivate = true; assertTrue( "cannot activate OLE object", canActivate ); - // actually + // actually activate the object + //embeddedChart.doVerb( EmbedVerbs.MS_OLEVERB_SHOW ); + // if we could use XEmbeddedObject.setVerb, then we would not need the "select" thingie above, and also + // the asynchronous dispatch below would not be necessary. + // Sadly, doVerb at the moment reliably deadlocks ... :( + m_textDocument.getCurrentView().dispatch( ".uno:ObjectMenue", new NamedValue[] { new NamedValue( "VerbID", EmbedVerbs.MS_OLEVERB_SHOW ) } ); // the dispatch happens asynchronously, so wait a little (at most 1 seconds) until the chart really has been activated -- cgit