xref: /aoo42x/main/sd/source/ui/inc/present.hxx (revision cdf0e10c)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
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.
14  *
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).
20  *
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.
25  *
26  ************************************************************************/
27 
28 
29 #ifndef _SD_PRESENT_HXX_
30 #define _SD_PRESENT_HXX_
31 
32 #ifndef _LSTBOX_HXX //autogen
33 #include <vcl/lstbox.hxx>
34 #endif
35 #include <vcl/fixed.hxx>
36 #ifndef _BUTTON_HXX //autogen
37 #include <vcl/button.hxx>
38 #endif
39 #ifndef _BUTTON_HXX //autogen
40 #include <vcl/button.hxx>
41 #endif
42 #ifndef _DIALOG_HXX //autogen
43 #include <vcl/dialog.hxx>
44 #endif
45 #ifndef _FIELD_HXX //autogen
46 #include <vcl/field.hxx>
47 #endif
48 
49 class SfxItemSet;
50 class List;
51 
52 /*************************************************************************
53 |* Dialog zum Festlegen von Optionen und Starten der Praesentation
54 \************************************************************************/
55 class SdStartPresentationDlg : public ModalDialog
56 {
57 private:
58 
59 	FixedLine			aGrpRange;
60 	RadioButton			aRbtAll;
61 	RadioButton			aRbtAtDia;
62 	RadioButton			aRbtCustomshow;
63 	ListBox				aLbDias;
64 	ListBox				aLbCustomshow;
65 
66 	FixedLine			aGrpKind;
67 	RadioButton			aRbtStandard;
68 	RadioButton			aRbtWindow;
69 	RadioButton			aRbtAuto;
70 	TimeField			aTmfPause;
71 	CheckBox			aCbxAutoLogo;
72 
73 	FixedLine			aGrpOptions;
74 	CheckBox			aCbxManuel;
75 	CheckBox			aCbxMousepointer;
76 	CheckBox			aCbxPen;
77 	CheckBox			aCbxNavigator;
78 	CheckBox            aCbxAnimationAllowed;
79 	CheckBox            aCbxChangePage;
80 	CheckBox			aCbxAlwaysOnTop;
81 
82 	FixedLine			maGrpMonitor;
83 	FixedText			maFtMonitor;
84 	ListBox				maLBMonitor;
85 
86 	OKButton			aBtnOK;
87 	CancelButton		aBtnCancel;
88 	HelpButton			aBtnHelp;
89 
90 	List*				pCustomShowList;
91 	const SfxItemSet&	rOutAttrs;
92 	sal_Int32			mnMonitors;
93 
94 	String				msPrimaryMonitor;
95 	String				msMonitor;
96 	String				msAllMonitors;
97 
98 						DECL_LINK( ChangeRangeHdl, void * );
99 						DECL_LINK( ClickWindowPresentationHdl, void * );
100 						DECL_LINK( ChangePauseHdl, void * );
101 
102 	void				InitMonitorSettings();
103 
104 public:
105 						SdStartPresentationDlg( Window* pWindow,
106 								const SfxItemSet& rInAttrs,
107 								List& rPageNames,
108 								List* pCSList );
109 
110 	void				GetAttr( SfxItemSet& rOutAttrs );
111 };
112 
113 #endif // _SD_PRESENT_HXX_
114 
115