merged tag ooo/OOO330_m14
[LibreOffice.git] / offapi / com / sun / star / presentation / XSlideShowController.idl
blob97a670c29486c471a5b86eeb933b2e0f23aabed5
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
27 #ifndef __com_sun_star_presentation_XSlideShowController_idl__
28 #define __com_sun_star_presentation_XSlideShowController_idl__
30 #ifndef __com_sun_star_drawing_XDrawPage_idl__
31 #include <com/sun/star/drawing/XDrawPage.idl>
32 #endif
34 #ifndef __com_sun_star_container_XIndexAccess_idl__
35 #include <com/sun/star/container/XIndexAccess.idl>
36 #endif
38 #ifndef __com_sun_star_lang_XComponent_idl__
39 #include <com/sun/star/lang/XComponent.idl>
40 #endif
42 #ifndef __com_sun_star_presentation_XSlideShow_idl__
43 #include <com/sun/star/presentation/XSlideShow.idl>
44 #endif
46 //=============================================================================
48 module com { module sun { module star { module presentation {
50 //=============================================================================
52 /** interface to control a running slideshow.
54 @see XPresentation2
55 @since OOo 3.0
57 interface XSlideShowController
59 //-------------------------------------------------------------------------
61 /** returns true if the slideshow is still running.
62 If this returns false, this component is already disposed.
63 You can start a new slideshow and get a new instance
64 of <type>XSlideShowController</type> from <type>XPresentation2</type>
66 boolean isRunning();
68 //-------------------------------------------------------------------------
70 /** @returns
71 the number of slides in this slideshow.
73 @see getSlideByIndex
75 long getSlideCount();
77 //-------------------------------------------------------------------------
79 /** gives access to the slides that will be shown in this slideshow.
81 <p>Slides are returned in the order they will be displayed in the
82 presentation which can be different than the orders of slides in
83 the document. Not all slides must be present and each slide can
84 be used more than once.
86 @returns
87 the slide at the specified index.
89 @param Index
90 specifies the position in the list of slides that are displayed
91 in this slideshow. The first index is 0.
93 @throws com::sun::star::lang::IndexOutOfBoundException
94 if the index is not valid.
97 ::com::sun::star::drawing::XDrawPage getSlideByIndex( [in] long Index )
98 raises( com::sun::star::lang::IndexOutOfBoundsException );
100 //-------------------------------------------------------------------------
102 /** addes a listener that recieves events while the slideshow is running. */
103 void addSlideShowListener( [in] XSlideShowListener Listener );
105 //-------------------------------------------------------------------------
107 /** removes a listener. */
108 void removeSlideShowListener( [in] XSlideShowListener Listener );
110 //-------------------------------------------------------------------------
112 /** start next effects that wait on a generic trigger.
113 <p>If no generic triggers are waiting the next
114 slide will be displayed.
116 void gotoNextEffect();
118 //-------------------------------------------------------------------------
120 /** undo the last effects that where triggered by a generic trigger.
121 <p>If there is no previous effect that can be undone then the
122 previous slide will be displayed.
124 void gotoPreviousEffect();
126 //-------------------------------------------------------------------------
128 /** goto and display first slide */
129 void gotoFirstSlide();
131 //-------------------------------------------------------------------------
133 /** goto and display next slide.
134 <p>Remaining effects on the current slide will be skiped.*/
135 void gotoNextSlide();
137 //-------------------------------------------------------------------------
139 /** goto and display previous slide.
140 <p>Remaining effects on the current slide will be skiped.*/
141 void gotoPreviousSlide();
143 //-------------------------------------------------------------------------
145 /** goto and display last slide.
146 <p>Remaining effects on the current slide will be skiped.*/
147 void gotoLastSlide();
149 //-------------------------------------------------------------------------
151 /** goto the given textual bookmark */
152 void gotoBookmark( [in] string Bookmark );
154 //-------------------------------------------------------------------------
156 /** jumps to the given slide.
157 <p>The slide can also be a slide that would normaly not be shown during
158 the current slideshow.
160 @throws com::sun::star::lang::IllegalArgumentException
161 if the given page is not a valid slide of the document for
162 which this slideshow is started. Also not allowed are master,
163 notes and handout pages.
165 void gotoSlide( [in] com::sun::star::drawing::XDrawPage Page )
166 raises( com::sun::star::lang::IllegalArgumentException );
168 //-------------------------------------------------------------------------
170 /** jumps to the slide at the given index.
172 void gotoSlideIndex( [in] long Index );
174 //-------------------------------------------------------------------------
176 /** stop all currently played sounds */
177 void stopSound();
179 //-------------------------------------------------------------------------
181 /** pauses the slideshow. All effects are paused.
182 <p>The slideshow continues on next user input or if
183 <member>resume</member> is called.
185 void pause();
187 //-------------------------------------------------------------------------
189 /** resumes a paused slideshow.
191 void resume();
193 //-------------------------------------------------------------------------
195 /** returns <TRUE/> if the slideshow is currently paused.
197 @see <member>pause</member>
198 @see <member>resume</member>
200 boolean isPaused();
202 //-------------------------------------------------------------------------
204 /** pauses the slideshow and blanks the screen in the given color.
205 <p>Change attribute <member>Pause</member> to false to unpause
206 the slideshow.
208 void blankScreen( [in] long Color );
210 //-------------------------------------------------------------------------
212 /** activates the user interface of this slideshow.
214 @see <member>deactivate()</member>
215 @see <member>isActive()</member>
217 void activate();
219 //-------------------------------------------------------------------------
220 /** can be called to deactivate the user interface of this slideshow.
222 <p>A deactivated
223 @see <member>activate()</member>
224 @see <member>isActive()</member>
226 void deactivate();
228 //-------------------------------------------------------------------------
230 /** determines if the slideshow is active.
232 @return
233 <TRUE/> for UI active slideshow
234 <br>
235 <FALSE/> otherwise
237 boolean isActive();
239 //-------------------------------------------------------------------------
241 /** returns slide that is currently displayed */
242 com::sun::star::drawing::XDrawPage getCurrentSlide();
244 //-------------------------------------------------------------------------
246 /** returns the index of the current slide. */
247 long getCurrentSlideIndex();
249 //-------------------------------------------------------------------------
251 /** the index for the slide that is displayed next. */
252 long getNextSlideIndex();
254 //-------------------------------------------------------------------------
256 /** returns <TRUE/> if the slideshow was started to run endlessly.
258 boolean isEndless();
260 //-------------------------------------------------------------------------
262 /** Returns <TRUE/> if the slideshow was started in full-screen mode.
264 boolean isFullScreen();
266 //-------------------------------------------------------------------------
268 /** If this attribute is set to <TRUE/>, the window of the slideshow is
269 always on top of all other windows.
271 [attribute] boolean AlwaysOnTop;
273 //-------------------------------------------------------------------------
275 /** If this attribute is <TRUE/>, the mouse is visible during the
276 slideshow.
278 [attribute] boolean MouseVisible;
280 //-------------------------------------------------------------------------
282 /** If this is <TRUE/>, a pen is shown during presentation.
284 <p>You can draw on the presentation with this pen.</p>
286 [attribute] boolean UsePen;
288 //-------------------------------------------------------------------------
290 /** This attribute changes the color of the pen. */
291 [attribute] long PenColor;
293 //-------------------------------------------------------------------------
295 /** returns the actuall <type>XSlideShow</type> instance that runs the
296 slideshow.
297 <br>Normaly all navigation should be done using this controller and
298 not the <type>XSlideShow</type> itself. */
299 XSlideShow getSlideShow();
301 //-------------------------------------------------------------------------
304 //=============================================================================
306 }; }; }; };
308 #endif