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