400 // CUniEditorLaunchOperation::DoPrepareHeaderL |
400 // CUniEditorLaunchOperation::DoPrepareHeaderL |
401 // --------------------------------------------------------- |
401 // --------------------------------------------------------- |
402 // |
402 // |
403 void CUniEditorLaunchOperation::DoPrepareHeaderL() |
403 void CUniEditorLaunchOperation::DoPrepareHeaderL() |
404 { |
404 { |
405 if(!iHeader) |
405 // Header is always drawn and populated |
406 { |
406 iHeader = CUniEditorHeader::NewL( iDocument.Mtm(), iDocument, iView, iFs ); |
407 // Header is always drawn and populated |
407 CompleteSelf( KErrNone ); |
408 iHeader = CUniEditorHeader::NewL( iDocument.Mtm(), iDocument, iView, iFs ); |
|
409 } |
|
410 if(!iOptimizedFlow) |
|
411 CompleteSelf( KErrNone ); |
|
412 } |
408 } |
413 |
409 |
414 // --------------------------------------------------------- |
410 // --------------------------------------------------------- |
415 // CUniEditorLaunchOperation::DoPrepareBodyL |
411 // CUniEditorLaunchOperation::DoPrepareBodyL |
416 // --------------------------------------------------------- |
412 // --------------------------------------------------------- |
417 // |
413 // |
418 void CUniEditorLaunchOperation::DoPrepareBodyL() |
414 void CUniEditorLaunchOperation::DoPrepareBodyL() |
419 { |
415 { |
420 if(!iSlideLoader) |
416 iSlideLoader = CUniSlideLoader::NewL( |
421 { |
417 iControlObserver, |
422 iSlideLoader = CUniSlideLoader::NewL( |
418 *iDocument.DataModel(), |
423 iControlObserver, |
419 iView, |
424 *iDocument.DataModel(), |
420 EUniControlEditorMode ); |
425 iView, |
421 |
426 EUniControlEditorMode ); |
|
427 } |
|
428 |
|
429 if ( iDocument.DataModel()->SmilType() == EMmsSmil ) |
422 if ( iDocument.DataModel()->SmilType() == EMmsSmil ) |
430 { |
423 { |
431 if(!iOptimizedFlow) |
424 if ( !iDocument.DataModel()->SmilModel().SlideCount() ) |
432 { |
425 { |
433 if ( !iDocument.DataModel()->SmilModel().SlideCount() ) |
426 iDocument.DataModel()->SmilModel().AddSlideL(); |
434 { |
427 } |
435 iDocument.DataModel()->SmilModel().AddSlideL(); |
428 |
436 } |
429 iSlideLoader->LoadSlideL( *this, 0 ); |
437 |
430 SetPending(); |
438 iSlideLoader->LoadSlideL( *this, 0 ); |
|
439 |
|
440 SetPending(); |
|
441 } |
|
442 } |
431 } |
443 else |
432 else |
444 { |
433 { |
445 // All unsupported files should be in |
434 // All unsupported files should be in |
446 // attachment list! |
435 // attachment list! |
628 if(aEvent == EUniEditorOperationPartialComplete) |
617 if(aEvent == EUniEditorOperationPartialComplete) |
629 { |
618 { |
630 iOptimizedFlow = iSendUiOperation->IsOptimizedFlagSet(); |
619 iOptimizedFlow = iSendUiOperation->IsOptimizedFlagSet(); |
631 if(iOptimizedFlow) |
620 if(iOptimizedFlow) |
632 { |
621 { |
633 DoPrepareHeaderL(); |
|
634 DoPrepareBodyL(); |
|
635 iObserver.EditorOperationEvent( |
622 iObserver.EditorOperationEvent( |
636 EUniEditorOperationLaunch, |
623 EUniEditorOperationLaunch, |
637 EUniEditorOperationComplete ); |
624 EUniEditorOperationComplete ); |
638 iOptimizedFlow = EFalse; |
625 iOptimizedFlow = EFalse; |
639 } |
626 } |