(incubating) | The Free and Open Productivity Suite

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for OpenOffice.org version 3.3.

:: com :: sun :: star :: frame ::

interface XRecordableDispatch
Description
extends an existing XDispatch implementation with functionality for dispatch recording

This interface can be implemented as an additional one beside an existing XDispatch one to provide record functionality of dispatches. Because it's an additional interface the status events are available there and not at this interface.

But normaly this interface mustn't be used directly. If a dispatch object is well known and recording was enabled on a XDispatchRecorderSupplier it's possible to use method XDispatchRecorderSupplier::dispatchAndRecord() of it to make dispatch and recording automaticly. The interface XRecordableDispatch is used transparently there.

Example
 XDispatch xDispatcher = xFrame.queryDispatch(aURL,"",0);
 XRecordableDispatch xRecordable = (XRecordableDispatch)UnoRuntime.queryInterface(
   XRecordableDispatch.class,
   xDispatcher);

 xDispatcher.addStatusListener(this,aURL);

 if (xRecordable!=null)
   xRecordable.dispatchAndRecord(aURL,lArguments,xRecorder);
 else
   xDispatcher.dispatch(aURL,lArguments);
 ...
 xDispatcher.removeStatusListener(this,aURL);
 
Since
OOo 1.1.2
See also
XDispatchRecorderSupplier, XDispatch

Methods' Summary
dispatchAndRecord dispatch and record it  
Methods' Details
dispatchAndRecord
[oneway] void
dispatchAndRecord( [in] ::com::sun::star::util::URL  URL,
[in] sequence< ::com::sun::star::beans::PropertyValue >  Arguments,
[in] XDispatchRecorder  Recorder );

Description
dispatch and record it
Parameter URL
full parsed URL wich describe the feature which should be dispatched (executed)
Parameter Arguments
optional arguments for this request (see ::com::sun::star::document::MediaDescriptor for details)
Parameter Recorder
object which can be used to record the request (available on XDispatchRecorderSupplier::getDispatchRecorder())
Top of Page

Apache OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.

Copyright & License
Apache and the Apache feather logos are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.