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: XSlideShowController.idl,v $
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
>
38 #ifndef __com_sun_star_container_XIndexAccess_idl__
39 #include
<com
/sun
/star
/container
/XIndexAccess.idl
>
42 #ifndef __com_sun_star_lang_XComponent_idl__
43 #include
<com
/sun
/star
/lang
/XComponent.idl
>
46 #ifndef __com_sun_star_presentation_XSlideShow_idl__
47 #include
<com
/sun
/star
/presentation
/XSlideShow.idl
>
50 //=============================================================================
52 module com
{ module sun
{ module star
{ module presentation
{
54 //=============================================================================
56 /** interface to control a running slideshow.
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>
72 //-------------------------------------------------------------------------
75 the number of slides in this slideshow.
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.
91 the slide at the specified 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 */
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.
191 //-------------------------------------------------------------------------
193 /** resumes a paused slideshow.
197 //-------------------------------------------------------------------------
199 /** returns <TRUE/> if the slideshow is currently paused.
201 @see <member>pause</member>
202 @see <member>resume</member>
206 //-------------------------------------------------------------------------
208 /** pauses the slideshow and blanks the screen in the given color.
209 <p>Change attribute <member>Pause</member> to false to unpause
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>
223 //-------------------------------------------------------------------------
224 /** can be called to deactivate the user interface of this slideshow.
227 @see <member>activate()</member>
228 @see <member>isActive()</member>
232 //-------------------------------------------------------------------------
234 /** determines if the slideshow is active.
237 <TRUE/> for UI active slideshow
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.
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
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
301 <br>Normaly all navigation should be done using this controller and
302 not the <type>XSlideShow</type> itself. */
303 XSlideShow getSlideShow
();
305 //-------------------------------------------------------------------------
308 //=============================================================================