Lines 91-96
Link Here
|
91 |
aRbtStandard ( this, SdResId( RBT_STANDARD ) ), |
91 |
aRbtStandard ( this, SdResId( RBT_STANDARD ) ), |
92 |
aRbtWindow ( this, SdResId( RBT_WINDOW ) ), |
92 |
aRbtWindow ( this, SdResId( RBT_WINDOW ) ), |
93 |
aRbtAuto ( this, SdResId( RBT_AUTO ) ), |
93 |
aRbtAuto ( this, SdResId( RBT_AUTO ) ), |
|
|
94 |
aFtDisplay ( this, SdResId( FT_DISPLAY ) ), |
95 |
aNumFldDisplay ( this, SdResId( NUM_FLD_DISPLAY ) ), |
94 |
// aFtPause ( this, SdResId( FT_PAUSE ) ), |
96 |
// aFtPause ( this, SdResId( FT_PAUSE ) ), |
95 |
aTmfPause ( this, SdResId( TMF_PAUSE ) ), |
97 |
aTmfPause ( this, SdResId( TMF_PAUSE ) ), |
96 |
aCbxAutoLogo ( this, SdResId( CBX_AUTOLOGO ) ), |
98 |
aCbxAutoLogo ( this, SdResId( CBX_AUTOLOGO ) ), |
Lines 120-125
Link Here
|
120 |
|
122 |
|
121 |
aLink = LINK( this, SdStartPresentationDlg, ClickWindowPresentationHdl ); |
123 |
aLink = LINK( this, SdStartPresentationDlg, ClickWindowPresentationHdl ); |
122 |
aRbtStandard.SetClickHdl( aLink ); |
124 |
aRbtStandard.SetClickHdl( aLink ); |
|
|
125 |
aNumFldDisplay.SetModifyHdl( LINK( this, SdStartPresentationDlg, ModifyDisplayHdl ) ); |
123 |
aRbtWindow.SetClickHdl( aLink ); |
126 |
aRbtWindow.SetClickHdl( aLink ); |
124 |
aRbtAuto.SetClickHdl( aLink ); |
127 |
aRbtAuto.SetClickHdl( aLink ); |
125 |
|
128 |
|
Lines 172-177
Link Here
|
172 |
const BOOL bEndless = ( ( const SfxBoolItem& ) rOutAttrs.Get( ATTR_PRESENT_ENDLESS ) ).GetValue(); |
175 |
const BOOL bEndless = ( ( const SfxBoolItem& ) rOutAttrs.Get( ATTR_PRESENT_ENDLESS ) ).GetValue(); |
173 |
const BOOL bWindow = !( ( const SfxBoolItem& ) rOutAttrs.Get( ATTR_PRESENT_FULLSCREEN ) ).GetValue(); |
176 |
const BOOL bWindow = !( ( const SfxBoolItem& ) rOutAttrs.Get( ATTR_PRESENT_FULLSCREEN ) ).GetValue(); |
174 |
const long nPause = ( ( const SfxUInt32Item& ) rOutAttrs.Get( ATTR_PRESENT_PAUSE_TIMEOUT ) ).GetValue(); |
177 |
const long nPause = ( ( const SfxUInt32Item& ) rOutAttrs.Get( ATTR_PRESENT_PAUSE_TIMEOUT ) ).GetValue(); |
|
|
178 |
// const long nDisplay = ( ( const SfxUInt32Item& ) rOutAttrs.Get( ATTR_PRESENT_DISPLAY ) ).GetValue(); |
179 |
const long nDisplay = 1; |
175 |
|
180 |
|
176 |
aTmfPause.SetTime( Time( 0, 0, nPause ) ); |
181 |
aTmfPause.SetTime( Time( 0, 0, nPause ) ); |
177 |
// set cursor in timefield |
182 |
// set cursor in timefield |
Lines 181-186
Link Here
|
181 |
|
186 |
|
182 |
aCbxAutoLogo.Check( ( ( const SfxBoolItem& ) rOutAttrs.Get( ATTR_PRESENT_SHOW_PAUSELOGO ) ).GetValue() ); |
187 |
aCbxAutoLogo.Check( ( ( const SfxBoolItem& ) rOutAttrs.Get( ATTR_PRESENT_SHOW_PAUSELOGO ) ).GetValue() ); |
183 |
|
188 |
|
|
|
189 |
aNumFldDisplay.SetValue( nDisplay ); |
184 |
if( bWindow ) |
190 |
if( bWindow ) |
185 |
aRbtWindow.Check( TRUE ); |
191 |
aRbtWindow.Check( TRUE ); |
186 |
else if( bEndless ) |
192 |
else if( bEndless ) |
Lines 224-229
Link Here
|
224 |
rOutAttrs.Put( SfxBoolItem ( ATTR_PRESENT_ANIMATION_ALLOWED, aCbxAnimationAllowed.IsChecked() ) ); |
230 |
rOutAttrs.Put( SfxBoolItem ( ATTR_PRESENT_ANIMATION_ALLOWED, aCbxAnimationAllowed.IsChecked() ) ); |
225 |
rOutAttrs.Put( SfxBoolItem ( ATTR_PRESENT_CHANGE_PAGE, aCbxChangePage.IsChecked() ) ); |
231 |
rOutAttrs.Put( SfxBoolItem ( ATTR_PRESENT_CHANGE_PAGE, aCbxChangePage.IsChecked() ) ); |
226 |
rOutAttrs.Put( SfxBoolItem ( ATTR_PRESENT_ALWAYS_ON_TOP, aCbxAlwaysOnTop.IsChecked() ) ); |
232 |
rOutAttrs.Put( SfxBoolItem ( ATTR_PRESENT_ALWAYS_ON_TOP, aCbxAlwaysOnTop.IsChecked() ) ); |
|
|
233 |
rOutAttrs.Put( SfxBoolItem ( ATTR_PRESENT_DISPLAY, aNumFldDisplay.GetValue() ) ); |
227 |
rOutAttrs.Put( SfxBoolItem ( ATTR_PRESENT_FULLSCREEN, !aRbtWindow.IsChecked() ) ); |
234 |
rOutAttrs.Put( SfxBoolItem ( ATTR_PRESENT_FULLSCREEN, !aRbtWindow.IsChecked() ) ); |
228 |
rOutAttrs.Put( SfxBoolItem ( ATTR_PRESENT_ENDLESS, aRbtAuto.IsChecked() ) ); |
235 |
rOutAttrs.Put( SfxBoolItem ( ATTR_PRESENT_ENDLESS, aRbtAuto.IsChecked() ) ); |
229 |
rOutAttrs.Put( SfxUInt32Item ( ATTR_PRESENT_PAUSE_TIMEOUT, aTmfPause.GetTime().GetMSFromTime() / 1000 ) ); |
236 |
rOutAttrs.Put( SfxUInt32Item ( ATTR_PRESENT_PAUSE_TIMEOUT, aTmfPause.GetTime().GetMSFromTime() / 1000 ) ); |
Lines 267-284
Link Here
|
267 |
IMPL_LINK( SdStartPresentationDlg, ClickWindowPresentationHdl, void *, EMPTYARG ) |
274 |
IMPL_LINK( SdStartPresentationDlg, ClickWindowPresentationHdl, void *, EMPTYARG ) |
268 |
{ |
275 |
{ |
269 |
const BOOL bAuto = aRbtAuto.IsChecked(); |
276 |
const BOOL bAuto = aRbtAuto.IsChecked(); |
|
|
277 |
const BOOL bWindow = aRbtWindow.IsChecked(); |
270 |
|
278 |
|
271 |
// aFtPause.Enable( bAuto ); |
279 |
// aFtPause.Enable( bAuto ); |
272 |
aTmfPause.Enable( bAuto ); |
280 |
aTmfPause.Enable( bAuto ); |
273 |
aCbxAutoLogo.Enable( bAuto && ( aTmfPause.GetTime().GetMSFromTime() > 0UL ) ); |
281 |
aCbxAutoLogo.Enable( bAuto && ( aTmfPause.GetTime().GetMSFromTime() > 0UL ) ); |
|
|
282 |
aNumFldDisplay.Enable( ! bWindow ); |
283 |
aCbxAlwaysOnTop.Enable( ! bWindow ); |
274 |
|
284 |
|
275 |
if( aRbtWindow.IsChecked() ) |
285 |
if( bWindow ) |
276 |
{ |
|
|
277 |
aCbxAlwaysOnTop.Enable( FALSE ); |
278 |
aCbxAlwaysOnTop.Check( FALSE ); |
286 |
aCbxAlwaysOnTop.Check( FALSE ); |
279 |
} |
287 |
|
280 |
else |
288 |
return( 0L ); |
281 |
aCbxAlwaysOnTop.Enable(); |
289 |
} |
|
|
290 |
|
291 |
/************************************************************************* |
292 |
|* Handler: Numeric Field "Display" |
293 |
\************************************************************************/ |
294 |
IMPL_LINK( SdStartPresentationDlg, ModifyDisplayHdl, void *, EMPTYARG ) |
295 |
{ |
296 |
ULONG nDisplay = aNumFldDisplay.GetValue(); |
297 |
|
298 |
if ( nDisplay > 2 ) |
299 |
nDisplay = 2; |
300 |
if ( nDisplay < 1 ) |
301 |
nDisplay = 1; |
282 |
|
302 |
|
283 |
return( 0L ); |
303 |
return( 0L ); |
284 |
} |
304 |
} |