Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
11 : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : * contributor license agreements. See the NOTICE file distributed
13 : * with this work for additional information regarding copyright
14 : * ownership. The ASF licenses this file to you under the Apache
15 : * License, Version 2.0 (the "License"); you may not use this file
16 : * except in compliance with the License. You may obtain a copy of
17 : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : */
19 :
20 : #ifndef INCLUDED_SD_SOURCE_UI_INC_PRESENT_HXX
21 : #define INCLUDED_SD_SOURCE_UI_INC_PRESENT_HXX
22 :
23 : #include <vcl/lstbox.hxx>
24 : #include <vcl/fixed.hxx>
25 : #include <vcl/button.hxx>
26 : #include <vcl/dialog.hxx>
27 : #include <vcl/field.hxx>
28 :
29 : class SfxItemSet;
30 : class List;
31 : class SdCustomShowList;
32 :
33 : /**
34 : * Dialog to define options and to start the presentation
35 : */
36 0 : class SdStartPresentationDlg : public ModalDialog
37 : {
38 : private:
39 :
40 : RadioButton* aRbtAll;
41 : RadioButton* aRbtAtDia;
42 : RadioButton* aRbtCustomshow;
43 : ListBox* aLbDias;
44 : ListBox* aLbCustomshow;
45 :
46 : RadioButton* aRbtStandard;
47 : RadioButton* aRbtWindow;
48 : RadioButton* aRbtAuto;
49 : TimeField* aTmfPause;
50 : CheckBox* aCbxAutoLogo;
51 :
52 : CheckBox* aCbxManuel;
53 : CheckBox* aCbxMousepointer;
54 : CheckBox* aCbxPen;
55 : CheckBox* aCbxNavigator;
56 : CheckBox* aCbxAnimationAllowed;
57 : CheckBox* aCbxChangePage;
58 : CheckBox* aCbxAlwaysOnTop;
59 :
60 : FixedText* maFtMonitor;
61 : ListBox* maLBMonitor;
62 :
63 : SdCustomShowList* pCustomShowList;
64 : const SfxItemSet& rOutAttrs;
65 : sal_Int32 mnMonitors;
66 :
67 : FixedText* msMonitor;
68 : FixedText* msAllMonitors;
69 : FixedText* msMonitorExternal;
70 : FixedText* msExternal;
71 :
72 : DECL_LINK( ChangeRangeHdl, void * );
73 : DECL_LINK( ClickWindowPresentationHdl, void * );
74 : DECL_LINK( ChangePauseHdl, void * );
75 :
76 : void InitMonitorSettings();
77 : enum DisplayType {
78 : EXTERNAL_IS_NUMBER,
79 : MONITOR_NORMAL,
80 : MONITOR_IS_EXTERNAL,
81 : };
82 : sal_Int32 InsertDisplayEntry(const rtl::OUString &aName,
83 : sal_Int32 nDisplay);
84 : OUString GetDisplayName( sal_Int32 nDisplay,
85 : DisplayType eType );
86 : public:
87 : SdStartPresentationDlg( vcl::Window* pWindow,
88 : const SfxItemSet& rInAttrs,
89 : const std::vector<OUString> &rPageNames,
90 : SdCustomShowList* pCSList );
91 :
92 : void GetAttr( SfxItemSet& rOutAttrs );
93 : };
94 :
95 : #endif // INCLUDED_SD_SOURCE_UI_INC_PRESENT_HXX
96 :
97 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|