Lines 1149-1154
Link Here
|
1149 |
} |
1149 |
} |
1150 |
|
1150 |
|
1151 |
if (rProperty.Name.equalsAsciiL( |
1151 |
if (rProperty.Name.equalsAsciiL( |
|
|
1152 |
RTL_CONSTASCII_STRINGPARAM("AutomaticSlideAdvancement") )) |
1153 |
{ |
1154 |
double nTimeout(0.0); |
1155 |
rProperty.Value >>= nTimeout; |
1156 |
maEventMultiplexer.setAutomaticSlideTimeout( nTimeout ); |
1157 |
return true; |
1158 |
} |
1159 |
|
1160 |
if (rProperty.Name.equalsAsciiL( |
1152 |
RTL_CONSTASCII_STRINGPARAM("UserPaintColor") )) |
1161 |
RTL_CONSTASCII_STRINGPARAM("UserPaintColor") )) |
1153 |
{ |
1162 |
{ |
1154 |
sal_Int32 nColor(0); |
1163 |
sal_Int32 nColor(0); |
Lines 1645-1651
Link Here
|
1645 |
osl::MutexGuard const guard( m_aMutex ); |
1654 |
osl::MutexGuard const guard( m_aMutex ); |
1646 |
|
1655 |
|
1647 |
OSL_ENSURE( !isDisposed(), "### already disposed!" ); |
1656 |
OSL_ENSURE( !isDisposed(), "### already disposed!" ); |
1648 |
|
|
|
1649 |
// This struct will receive the (interruptable) event, |
1657 |
// This struct will receive the (interruptable) event, |
1650 |
// that triggers the notifySlideEnded() method. |
1658 |
// that triggers the notifySlideEnded() method. |
1651 |
InterruptableEventPair aNotificationEvents; |
1659 |
InterruptableEventPair aNotificationEvents; |
Lines 1659-1665
Link Here
|
1659 |
// delay |
1667 |
// delay |
1660 |
aNotificationEvents = makeInterruptableDelay( |
1668 |
aNotificationEvents = makeInterruptableDelay( |
1661 |
boost::bind( &SlideShowImpl::notifySlideEnded, this ), |
1669 |
boost::bind( &SlideShowImpl::notifySlideEnded, this ), |
1662 |
maEventMultiplexer.getAutomaticTimeout() ); |
1670 |
maEventMultiplexer.getAutomaticSlideTimeout() ); |
1663 |
} |
1671 |
} |
1664 |
else |
1672 |
else |
1665 |
{ |
1673 |
{ |
Lines 1708-1716
Link Here
|
1708 |
// changes interruptable, register the interruption event |
1716 |
// changes interruptable, register the interruption event |
1709 |
// as a nextEffectEvent target. Note that the timeout |
1717 |
// as a nextEffectEvent target. Note that the timeout |
1710 |
// event is optional (e.g. manual slide changes don't |
1718 |
// event is optional (e.g. manual slide changes don't |
1711 |
// generate a timeout) |
1719 |
// generate a timeout) |
1712 |
maUserEventQueue.registerNextEffectEvent( |
1720 |
// FIXME: This causes the slide to advance too early |
1713 |
aNotificationEvents.mpImmediateEvent ); |
1721 |
//maUserEventQueue.registerNextEffectEvent( |
|
|
1722 |
// aNotificationEvents.mpImmediateEvent ); |
1714 |
|
1723 |
|
1715 |
if( aNotificationEvents.mpTimeoutEvent ) |
1724 |
if( aNotificationEvents.mpTimeoutEvent ) |
1716 |
maEventQueue.addEvent( aNotificationEvents.mpTimeoutEvent ); |
1725 |
maEventQueue.addEvent( aNotificationEvents.mpTimeoutEvent ); |