36 : GenericDialogController(pWindow,
"modules/simpress/ui/presentationdialog.ui",
"PresentationDialog")
37 , pCustomShowList(pCSList)
40 , m_xRbtAll(m_xBuilder->weld_radio_button(
"allslides"))
41 , m_xRbtAtDia(m_xBuilder->weld_radio_button(
"from"))
42 , m_xRbtCustomshow(m_xBuilder->weld_radio_button(
"customslideshow"))
43 , m_xLbDias(m_xBuilder->weld_combo_box(
"from_cb"))
44 , m_xLbCustomshow(m_xBuilder->weld_combo_box(
"customslideshow_cb"))
45 , m_xRbtStandard(m_xBuilder->weld_radio_button(
"default"))
46 , m_xRbtWindow(m_xBuilder->weld_radio_button(
"window"))
47 , m_xRbtAuto(m_xBuilder->weld_radio_button(
"auto"))
48 , m_xTmfPause(m_xBuilder->weld_formatted_spin_button(
"pauseduration"))
49 , m_xFormatter(new
weld::TimeFormatter(*m_xTmfPause))
50 , m_xCbxAutoLogo(m_xBuilder->weld_check_button(
"showlogo"))
51 , m_xCbxManuel(m_xBuilder->weld_check_button(
"manualslides"))
52 , m_xCbxMousepointer(m_xBuilder->weld_check_button(
"pointervisible"))
53 , m_xCbxPen(m_xBuilder->weld_check_button(
"pointeraspen"))
54 , m_xCbxAnimationAllowed(m_xBuilder->weld_check_button(
"animationsallowed"))
55 , m_xCbxChangePage(m_xBuilder->weld_check_button(
"changeslidesbyclick"))
56 , m_xCbxAlwaysOnTop(m_xBuilder->weld_check_button(
"alwaysontop"))
57 , m_xCbxShowNavigationButton(m_xBuilder->weld_check_button(
"shownavigationbutton"))
58 , m_xFtMonitor(m_xBuilder->weld_label(
"presdisplay_label"))
59 , m_xLBMonitor(m_xBuilder->weld_combo_box(
"presdisplay_cb"))
60 , m_xMonitor(m_xBuilder->weld_label(
"monitor_str"))
61 , m_xAllMonitors(m_xBuilder->weld_label(
"allmonitors_str"))
62 , m_xMonitorExternal(m_xBuilder->weld_label(
"externalmonitor_str"))
63 , m_xExternal(m_xBuilder->weld_label(
"external_str"))
65 m_xFormatter->SetExtFormat(ExtTimeFieldFormat::LongDuration);
82 for (
const auto& rPageName : rPageNames)
91 pCustomShow !=
nullptr;
165 aName =
aName.replaceFirst(
"%1", OUString::number( nDisplay ) );
196 sal_Int32 nSelectedIndex (-1);
197 sal_Int32 nDefaultExternalIndex (-1);
198 const sal_Int32 nDefaultSelectedDisplay (
202 sal_Int32 nInsertedEntry;
207 if( nDefaultSelectedDisplay == 0)
208 nSelectedIndex = nInsertedEntry;
211 for( sal_Int32 nDisplay = 0; nDisplay <
mnMonitors; nDisplay++ )
214 nDisplay == nExternalIndex ?
219 if( nDisplay + 1 == nDefaultSelectedDisplay )
220 nSelectedIndex = nInsertedEntry;
223 if( nDisplay == nExternalIndex )
224 nDefaultExternalIndex = nInsertedEntry;
228 if( nDefaultSelectedDisplay == -1 )
229 nSelectedIndex = nInsertedEntry;
231 if (nSelectedIndex < 0)
233 if (nExternalIndex < 0)
236 nSelectedIndex = nDefaultExternalIndex;
281 m_xLbDias->set_sensitive( m_xRbtAtDia->get_active() );
282 m_xLbCustomshow->set_sensitive( m_xRbtCustomshow->get_active() );
290 const bool bAuto = m_xRbtAuto->get_active();
291 const bool bWindow = m_xRbtWindow->get_active();
293 m_xTmfPause->set_sensitive( bAuto );
294 m_xCbxAutoLogo->set_sensitive( bAuto && ( m_xFormatter->GetTime().GetMSFromTime() > 0 ) );
296 const bool bDisplay = !bWindow && ( mnMonitors > 1 );
297 m_xFtMonitor->set_sensitive( bDisplay );
298 m_xLBMonitor->set_sensitive( bDisplay );
302 m_xCbxAlwaysOnTop->set_sensitive(
false);
303 m_xCbxAlwaysOnTop->set_active(
false);
306 m_xCbxAlwaysOnTop->set_sensitive(
true);
static unsigned int GetScreenCount()
static unsigned int GetDisplayExternalScreen()
sal_uInt16 GetCurPos() const
void Seek(sal_uInt16 nNewPos)
const OUString & GetName() const
Dialog to define optionsm_xnd to start the presentation.
virtual ~SdStartPresentationDlg() override
std::unique_ptr< weld::CheckButton > m_xCbxAutoLogo
void InitMonitorSettings()
std::unique_ptr< weld::CheckButton > m_xCbxMousepointer
std::unique_ptr< weld::CheckButton > m_xCbxManuel
std::unique_ptr< weld::CheckButton > m_xCbxShowNavigationButton
SdCustomShowList * pCustomShowList
sal_Int32 InsertDisplayEntry(const OUString &aName, sal_Int32 nDisplay)
Store display index together with name in user data.
std::unique_ptr< weld::FormattedSpinButton > m_xTmfPause
std::unique_ptr< weld::ComboBox > m_xLbCustomshow
std::unique_ptr< weld::CheckButton > m_xCbxAlwaysOnTop
std::unique_ptr< weld::CheckButton > m_xCbxPen
std::unique_ptr< weld::RadioButton > m_xRbtCustomshow
std::unique_ptr< weld::RadioButton > m_xRbtAtDia
OUString GetDisplayName(sal_Int32 nDisplay, DisplayType eType)
std::unique_ptr< weld::CheckButton > m_xCbxChangePage
std::unique_ptr< weld::Label > m_xFtMonitor
std::unique_ptr< weld::RadioButton > m_xRbtWindow
std::unique_ptr< weld::Label > m_xMonitorExternal
std::unique_ptr< weld::RadioButton > m_xRbtStandard
void GetAttr(SfxItemSet &rOutAttrs)
sets the selected attributes of the dialog
std::unique_ptr< weld::Label > m_xAllMonitors
std::unique_ptr< weld::CheckButton > m_xCbxAnimationAllowed
SdStartPresentationDlg(weld::Window *pWindow, const SfxItemSet &rInAttrs, const std::vector< OUString > &rPageNames, SdCustomShowList *pCSList)
std::unique_ptr< weld::RadioButton > m_xRbtAuto
std::unique_ptr< weld::ComboBox > m_xLBMonitor
std::unique_ptr< weld::ComboBox > m_xLbDias
const SfxItemSet & rOutAttrs
std::unique_ptr< weld::RadioButton > m_xRbtAll
std::unique_ptr< weld::TimeFormatter > m_xFormatter
std::unique_ptr< weld::Label > m_xMonitor
std::unique_ptr< weld::Label > m_xExternal
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
#define LINK(Instance, Class, Member)
IMPL_LINK_NOARG(SdStartPresentationDlg, ChangeRangeHdl, weld::Toggleable &, void)
Handler: Enabled/Disabled Listbox "Dias".