18package org.openoffice.test.tools;
36 private final XMultiServiceFactory
m_orb;
63 XDispatch xReturn =
null;
66 XDispatchProvider xProvider = UnoRuntime.queryInterface( XDispatchProvider.class,
m_controller.getFrame() );
67 if (
null != xProvider )
70 XURLTransformer xTransformer = UnoRuntime.queryInterface( XURLTransformer.class,
71 m_orb.createInstance(
"com.sun.star.util.URLTransformer" ) );
72 xTransformer.parseStrict(
aURL );
74 xReturn = xProvider.queryDispatch(
aURL[0],
"", 0 );
88 return dispatch( i_url,
new PropertyValue[0] );
92 private boolean dispatch(
final String i_url,
final PropertyValue[] i_arguments )
throws com.
sun.
star.
uno.Exception
94 URL[] completeURL =
new URL[] {
new URL() };
95 completeURL[0].Complete = i_url;
97 if ( dispatcher ==
null )
100 dispatcher.dispatch( completeURL[0], i_arguments );