1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XDispatchRecorder.idl,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_frame_XDispatchRecorder_idl__
31 #define __com_sun_star_frame_XDispatchRecorder_idl__
33 #ifndef __com_sun_star_uno_XInterface_idl__
34 #include
<com
/sun
/star
/uno
/XInterface.idl
>
37 #ifndef __com_sun_star_util_URL_idl__
38 #include
<com
/sun
/star
/util
/URL.idl
>
41 #ifndef __com_sun_star_beans_PropertyValue_idl__
42 #include
<com
/sun
/star
/beans
/PropertyValue.idl
>
45 //=============================================================================
47 module com
{ module sun
{ module star
{ module frame
{
49 published
interface XFrame
;
51 //=============================================================================
52 /** provides recording functionality of dispatches
55 With such recorder it will be possible to record requests of type
56 <type>XDispatch</type> by using additional interface
57 <type>XRecordableDispatch</type>. The result of that will be a
58 a script which can be used to start the dispatch at later time again.
59 Such recorder objects are available on a <type>XDispatchRecorderSupplier</type>
60 which is provided by the <type>Frame</type> service.
64 @see XDispatchRecorderSupplier
68 published
interface XDispatchRecorder
: com
::sun
::star
::uno
::XInterface
70 //-------------------------------------------------------------------------
71 /** initializes the recorder by passing the frame for which all
72 macro statements shall be recorded
75 it includes the document on which such requests shall be recorded
77 void startRecording
( [in] com
::sun
::star
::frame
::XFrame Frame
);
79 //-------------------------------------------------------------------------
80 /** stops the recording process
83 Must be called in pairs with <member>XDispatchRecorder::startRecording()</member>.
86 @attention The recorder uses this method to control the lifetime of its internal
87 used macro buffer. It will be cleared here. So the macro must be fetched
88 before endRecording() is called.
90 @see getRecordedMacro()
94 //-------------------------------------------------------------------------
95 /** records a single dispatch call identified by its command URL
98 the full parsed command URL
101 optional arguments for the command URL
103 (see <type scope="com::sun::star::document">MediaDescriptor</type>
104 for further informations)
107 [in] com
::sun
::star
::util
::URL URL
,
108 [in] sequence
<com
::sun
::star
::beans
::PropertyValue
> Arguments
);
110 //-------------------------------------------------------------------------
111 /** records a single dispatch call identified by its command URL, but
115 This way calls that failed on execution can be documented.
119 the full parsed command URL
122 optional arguments for the command URL
124 (see <type scope="com::sun::star::document">MediaDescriptor</type>
125 for further informations)
127 void recordDispatchAsComment
(
128 [in] com
::sun
::star
::util
::URL URL
,
129 [in] sequence
<com
::sun
::star
::beans
::PropertyValue
> Arguments
);
131 //-------------------------------------------------------------------------
132 /** returns the recorded source code
135 This method must be used before <member>endRecording()</member> is called!
136 Otherwhise the macro will be relased.
140 the recorded data as a string which can be interpreted as a script
142 string getRecordedMacro
();
145 //=============================================================================