cid#1607171 Data race condition
[LibreOffice.git] / sd / source / ui / inc / present.hxx
blob36d7469582636a3a04700aaf315e934e17da70ab
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 #pragma once
22 #include <vcl/weld.hxx>
23 #include <vcl/weldutils.hxx>
25 class SfxItemSet;
26 class SdCustomShowList;
28 /**
29 * Dialog to define optionsm_xnd to start the presentation
31 class SdStartPresentationDlg : public weld::GenericDialogController
33 private:
34 SdCustomShowList* pCustomShowList;
35 const SfxItemSet& rOutAttrs;
36 sal_Int32 mnMonitors;
38 std::unique_ptr<weld::RadioButton> m_xRbtAll;
39 std::unique_ptr<weld::RadioButton> m_xRbtAtDia;
40 std::unique_ptr<weld::RadioButton> m_xRbtCustomshow;
41 std::unique_ptr<weld::ComboBox> m_xLbDias;
42 std::unique_ptr<weld::ComboBox> m_xLbCustomshow;
44 std::unique_ptr<weld::RadioButton> m_xRbtStandard;
45 std::unique_ptr<weld::RadioButton> m_xRbtWindow;
46 std::unique_ptr<weld::CheckButton> m_xCbxAuto;
47 std::unique_ptr<weld::FormattedSpinButton> m_xTmfPause;
48 std::unique_ptr<weld::TimeFormatter> m_xFormatter;
49 std::unique_ptr<weld::CheckButton> m_xCbxAutoLogo;
51 std::unique_ptr<weld::CheckButton> m_xCbxManuel;
52 std::unique_ptr<weld::CheckButton> m_xCbxMousepointer;
53 std::unique_ptr<weld::CheckButton> m_xCbxPen;
54 std::unique_ptr<weld::CheckButton> m_xCbxAnimationAllowed;
55 std::unique_ptr<weld::CheckButton> m_xCbxChangePage;
56 std::unique_ptr<weld::CheckButton> m_xCbxAlwaysOnTop;
57 std::unique_ptr<weld::CheckButton> m_xCbxShowNavigationButton;
58 std::unique_ptr<weld::ComboBox> m_xLbNavigationButtonsSize;
59 std::unique_ptr<weld::Label> m_xFtNavigationButtonsSize;
60 std::unique_ptr<weld::Frame> m_xFrameEnableRemote;
61 std::unique_ptr<weld::CheckButton> m_xCbxEnableRemote;
62 std::unique_ptr<weld::CheckButton> m_xCbxEnableRemoteInsecure;
63 std::unique_ptr<weld::CheckButton> m_xCbxInteractiveMode;
65 std::unique_ptr<weld::ComboBox> m_xLbConsole;
67 std::unique_ptr<weld::Label> m_xFtMonitor;
68 std::unique_ptr<weld::ComboBox> m_xLBMonitor;
70 std::unique_ptr<weld::Label> m_xMonitor;
71 std::unique_ptr<weld::Label> m_xAllMonitors;
72 std::unique_ptr<weld::Label> m_xMonitorExternal;
73 std::unique_ptr<weld::Label> m_xExternal;
75 DECL_LINK(ChangeRemoteHdl, weld::Toggleable&, void);
76 DECL_LINK(ChangeRangeHdl, weld::Toggleable&, void);
77 DECL_LINK(ClickWindowPresentationHdl, weld::Toggleable&, void);
78 void ChangePause();
79 DECL_LINK(ChangePauseHdl, weld::FormattedSpinButton&, void);
81 void InitMonitorSettings();
82 enum DisplayType {
83 EXTERNAL_IS_NUMBER,
84 MONITOR_NORMAL,
85 MONITOR_IS_EXTERNAL,
87 sal_Int32 InsertDisplayEntry(const OUString &aName,
88 sal_Int32 nDisplay);
89 OUString GetDisplayName( sal_Int32 nDisplay,
90 DisplayType eType );
91 public:
92 SdStartPresentationDlg(weld::Window* pWindow,
93 const SfxItemSet& rInAttrs,
94 const std::vector<OUString> &rPageNames,
95 SdCustomShowList* pCSList);
96 virtual ~SdStartPresentationDlg() override;
97 virtual short run() override;
98 void GetAttr( SfxItemSet& rOutAttrs );
101 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */