Overview | Module | Use | Devguide | Index

Methods' Summary | Methods' Details | Attributes' Summary | Attributes' Details

:: com :: sun :: star :: frame ::
interface XRecordableDispatch
  Base Hierarchy
      ::com::sun::star::uno::XInterface
       |
       +-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);
See also XDispatchRecorderSupplier See also XDispatch Since version OpenOffice.org 1.1.1

Methods' Summary
dispatchAndRecord | dispatch and record it

Methods' Details
dispatchAndRecord
[oneway] void dispatchAndRecord( | [in] ::com::sun::star::util::URL [in] sequence< ::com::sun::star::beans::PropertyValue > [in] XDispatchRecorder | URL, Arguments, 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

Copyright © 2003 Sun Microsystems, Inc.