update dev300-m58
[ooovba.git] / offapi / com / sun / star / presentation / XSlideShowController.idl
blobc9688b77ae36a93f22caa4ef28f25bf51458a016
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XSlideShowController.idl,v $
11 * $Revision: 1.4 $
13 * This file is part of OpenOffice.org.
15 * OpenOffice.org is free software: you can redistribute it and/or modify
16 * it under the terms of the GNU Lesser General Public License version 3
17 * only, as published by the Free Software Foundation.
19 * OpenOffice.org is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU Lesser General Public License version 3 for more details
23 * (a copy is included in the LICENSE file that accompanied this code).
25 * You should have received a copy of the GNU Lesser General Public License
26 * version 3 along with OpenOffice.org. If not, see
27 * <http://www.openoffice.org/license.html>
28 * for a copy of the LGPLv3 License.
30 ************************************************************************/
31 #ifndef __com_sun_star_presentation_XSlideShowController_idl__
32 #define __com_sun_star_presentation_XSlideShowController_idl__
34 #ifndef __com_sun_star_drawing_XDrawPage_idl__
35 #include <com/sun/star/drawing/XDrawPage.idl>
36 #endif
38 #ifndef __com_sun_star_container_XIndexAccess_idl__
39 #include <com/sun/star/container/XIndexAccess.idl>
40 #endif
42 #ifndef __com_sun_star_lang_XComponent_idl__
43 #include <com/sun/star/lang/XComponent.idl>
44 #endif
46 #ifndef __com_sun_star_presentation_XSlideShow_idl__
47 #include <com/sun/star/presentation/XSlideShow.idl>
48 #endif
50 //=============================================================================
52 module com { module sun { module star { module presentation {
54 //=============================================================================
56 /** interface to control a running slideshow.
58 @see XPresentation2
59 @since OOo 3.0
61 interface XSlideShowController
63 //-------------------------------------------------------------------------
65 /** returns true if the slideshow is still running.
66 If this returns false, this component is already disposed.
67 You can start a new slideshow and get a new instance
68 of <type>XSlideShowController</type> from <type>XPresentation2</type>
70 boolean isRunning();
72 //-------------------------------------------------------------------------
74 /** @returns
75 the number of slides in this slideshow.
77 @see getSlideByIndex
79 long getSlideCount();
81 //-------------------------------------------------------------------------
83 /** gives access to the slides that will be shown in this slideshow.
85 <p>Slides are returned in the order they will be displayed in the
86 presentation which can be different than the orders of slides in
87 the document. Not all slides must be present and each slide can
88 be used more than once.
90 @returns
91 the slide at the specified index.
93 @param Index
94 specifies the position in the list of slides that are displayed
95 in this slideshow. The first index is 0.
97 @throws com::sun::star::lang::IndexOutOfBoundException
98 if the index is not valid.
101 ::com::sun::star::drawing::XDrawPage getSlideByIndex( [in] long Index )
102 raises( com::sun::star::lang::IndexOutOfBoundsException );
104 //-------------------------------------------------------------------------
106 /** addes a listener that recieves events while the slideshow is running. */
107 void addSlideShowListener( [in] XSlideShowListener Listener );
109 //-------------------------------------------------------------------------
111 /** removes a listener. */
112 void removeSlideShowListener( [in] XSlideShowListener Listener );
114 //-------------------------------------------------------------------------
116 /** start next effects that wait on a generic trigger.
117 <p>If no generic triggers are waiting the next
118 slide will be displayed.
120 void gotoNextEffect();
122 //-------------------------------------------------------------------------
124 /** undo the last effects that where triggered by a generic trigger.
125 <p>If there is no previous effect that can be undone then the
126 previous slide will be displayed.
128 void gotoPreviousEffect();
130 //-------------------------------------------------------------------------
132 /** goto and display first slide */
133 void gotoFirstSlide();
135 //-------------------------------------------------------------------------
137 /** goto and display next slide.
138 <p>Remaining effects on the current slide will be skiped.*/
139 void gotoNextSlide();
141 //-------------------------------------------------------------------------
143 /** goto and display previous slide.
144 <p>Remaining effects on the current slide will be skiped.*/
145 void gotoPreviousSlide();
147 //-------------------------------------------------------------------------
149 /** goto and display last slide.
150 <p>Remaining effects on the current slide will be skiped.*/
151 void gotoLastSlide();
153 //-------------------------------------------------------------------------
155 /** goto the given textual bookmark */
156 void gotoBookmark( [in] string Bookmark );
158 //-------------------------------------------------------------------------
160 /** jumps to the given slide.
161 <p>The slide can also be a slide that would normaly not be shown during
162 the current slideshow.
164 @throws com::sun::star::lang::IllegalArgumentException
165 if the given page is not a valid slide of the document for
166 which this slideshow is started. Also not allowed are master,
167 notes and handout pages.
169 void gotoSlide( [in] com::sun::star::drawing::XDrawPage Page )
170 raises( com::sun::star::lang::IllegalArgumentException );
172 //-------------------------------------------------------------------------
174 /** jumps to the slide at the given index.
176 void gotoSlideIndex( [in] long Index );
178 //-------------------------------------------------------------------------
180 /** stop all currently played sounds */
181 void stopSound();
183 //-------------------------------------------------------------------------
185 /** pauses the slideshow. All effects are paused.
186 <p>The slideshow continues on next user input or if
187 <member>resume</member> is called.
189 void pause();
191 //-------------------------------------------------------------------------
193 /** resumes a paused slideshow.
195 void resume();
197 //-------------------------------------------------------------------------
199 /** returns <TRUE/> if the slideshow is currently paused.
201 @see <member>pause</member>
202 @see <member>resume</member>
204 boolean isPaused();
206 //-------------------------------------------------------------------------
208 /** pauses the slideshow and blanks the screen in the given color.
209 <p>Change attribute <member>Pause</member> to false to unpause
210 the slideshow.
212 void blankScreen( [in] long Color );
214 //-------------------------------------------------------------------------
216 /** activates the user interface of this slideshow.
218 @see <member>deactivate()</member>
219 @see <member>isActive()</member>
221 void activate();
223 //-------------------------------------------------------------------------
224 /** can be called to deactivate the user interface of this slideshow.
226 <p>A deactivated
227 @see <member>activate()</member>
228 @see <member>isActive()</member>
230 void deactivate();
232 //-------------------------------------------------------------------------
234 /** determines if the slideshow is active.
236 @return
237 <TRUE/> for UI active slideshow
238 <br>
239 <FALSE/> otherwise
241 boolean isActive();
243 //-------------------------------------------------------------------------
245 /** returns slide that is currently displayed */
246 com::sun::star::drawing::XDrawPage getCurrentSlide();
248 //-------------------------------------------------------------------------
250 /** returns the index of the current slide. */
251 long getCurrentSlideIndex();
253 //-------------------------------------------------------------------------
255 /** the index for the slide that is displayed next. */
256 long getNextSlideIndex();
258 //-------------------------------------------------------------------------
260 /** returns <TRUE/> if the slideshow was started to run endlessly.
262 boolean isEndless();
264 //-------------------------------------------------------------------------
266 /** Returns <TRUE/> if the slideshow was started in full-screen mode.
268 boolean isFullScreen();
270 //-------------------------------------------------------------------------
272 /** If this attribute is set to <TRUE/>, the window of the slideshow is
273 always on top of all other windows.
275 [attribute] boolean AlwaysOnTop;
277 //-------------------------------------------------------------------------
279 /** If this attribute is <TRUE/>, the mouse is visible during the
280 slideshow.
282 [attribute] boolean MouseVisible;
284 //-------------------------------------------------------------------------
286 /** If this is <TRUE/>, a pen is shown during presentation.
288 <p>You can draw on the presentation with this pen.</p>
290 [attribute] boolean UsePen;
292 //-------------------------------------------------------------------------
294 /** This attribute changes the color of the pen. */
295 [attribute] long PenColor;
297 //-------------------------------------------------------------------------
299 /** returns the actuall <type>XSlideShow</type> instance that runs the
300 slideshow.
301 <br>Normaly all navigation should be done using this controller and
302 not the <type>XSlideShow</type> itself. */
303 XSlideShow getSlideShow();
305 //-------------------------------------------------------------------------
308 //=============================================================================
310 }; }; }; };
312 #endif