bump product version to 5.0.4.1
[LibreOffice.git] / sd / source / ui / inc / present.hxx
blob0398823c783d1f4fab6cff48363133740b66718c
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_SD_SOURCE_UI_INC_PRESENT_HXX
21 #define INCLUDED_SD_SOURCE_UI_INC_PRESENT_HXX
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>
29 class SfxItemSet;
30 class List;
31 class SdCustomShowList;
33 /**
34 * Dialog to define options and to start the presentation
36 class SdStartPresentationDlg : public ModalDialog
38 private:
40 VclPtr<RadioButton> aRbtAll;
41 VclPtr<RadioButton> aRbtAtDia;
42 VclPtr<RadioButton> aRbtCustomshow;
43 VclPtr<ListBox> aLbDias;
44 VclPtr<ListBox> aLbCustomshow;
46 VclPtr<RadioButton> aRbtStandard;
47 VclPtr<RadioButton> aRbtWindow;
48 VclPtr<RadioButton> aRbtAuto;
49 VclPtr<TimeField> aTmfPause;
50 VclPtr<CheckBox> aCbxAutoLogo;
52 VclPtr<CheckBox> aCbxManuel;
53 VclPtr<CheckBox> aCbxMousepointer;
54 VclPtr<CheckBox> aCbxPen;
55 VclPtr<CheckBox> aCbxNavigator;
56 VclPtr<CheckBox> aCbxAnimationAllowed;
57 VclPtr<CheckBox> aCbxChangePage;
58 VclPtr<CheckBox> aCbxAlwaysOnTop;
60 VclPtr<FixedText> maFtMonitor;
61 VclPtr<ListBox> maLBMonitor;
63 SdCustomShowList* pCustomShowList;
64 const SfxItemSet& rOutAttrs;
65 sal_Int32 mnMonitors;
67 VclPtr<FixedText> msMonitor;
68 VclPtr<FixedText> msAllMonitors;
69 VclPtr<FixedText> msMonitorExternal;
70 VclPtr<FixedText> msExternal;
72 DECL_LINK( ChangeRangeHdl, void * );
73 DECL_LINK( ClickWindowPresentationHdl, void * );
74 DECL_LINK( ChangePauseHdl, void * );
76 void InitMonitorSettings();
77 enum DisplayType {
78 EXTERNAL_IS_NUMBER,
79 MONITOR_NORMAL,
80 MONITOR_IS_EXTERNAL,
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 virtual ~SdStartPresentationDlg();
92 virtual void dispose() SAL_OVERRIDE;
94 void GetAttr( SfxItemSet& rOutAttrs );
97 #endif // INCLUDED_SD_SOURCE_UI_INC_PRESENT_HXX
99 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */