233 CUniObject* obj = |
233 CUniObject* obj = |
234 iDocument.DataModel()->SmilModel().GetObjectByIndex( slideCount-1, objectCount-1 ); |
234 iDocument.DataModel()->SmilModel().GetObjectByIndex( slideCount-1, objectCount-1 ); |
235 if(obj->MediaInfo()->MimeType().CompareF( KMsgMimeImageJpeg )== 0) |
235 if(obj->MediaInfo()->MimeType().CompareF( KMsgMimeImageJpeg )== 0) |
236 { |
236 { |
237 iOptimizedFlow = ETrue; |
237 iOptimizedFlow = ETrue; |
238 iObserver.EditorOperationEvent( EUniEditorOperationSendUi, |
|
239 EUniEditorOperationPartialComplete ); |
|
240 iOptimizedFlow = EFalse; |
|
241 } |
238 } |
242 } |
239 } |
243 |
240 |
244 if ( iDocument.DataModel()->ObjectList().Count() || |
241 if ( iDocument.DataModel()->ObjectList().Count() || |
245 iDocument.DataModel()->AttachmentList().Count() ) |
242 iDocument.DataModel()->AttachmentList().Count() ) |
478 if ( !iImageOperation ) |
475 if ( !iImageOperation ) |
479 { |
476 { |
480 iImageOperation = CUniEditorProcessImageOperation::NewL( *this, iDocument, iFs ); |
477 iImageOperation = CUniEditorProcessImageOperation::NewL( *this, iDocument, iFs ); |
481 } |
478 } |
482 |
479 |
|
480 iImageOperation->SetOptimizedFlow(iOptimizedFlow); |
483 // Processes if needed: |
481 // Processes if needed: |
484 iImageOperation->Process( static_cast<CMsgImageInfo*>( aObject->MediaInfo() ), |
482 iImageOperation->Process( static_cast<CMsgImageInfo*>( aObject->MediaInfo() ), |
485 aObject->AttachmentId(), |
483 aObject->AttachmentId(), |
486 iPreviousSize ); |
484 iPreviousSize ); |
487 iPreparedObject = aObject; |
485 iPreparedObject = aObject; |
581 // --------------------------------------------------------- |
579 // --------------------------------------------------------- |
582 // CUniEditorSendUiOperation::HandleOperationEvent |
580 // CUniEditorSendUiOperation::HandleOperationEvent |
583 // --------------------------------------------------------- |
581 // --------------------------------------------------------- |
584 // |
582 // |
585 void CUniEditorSendUiOperation::HandleOperationEvent( TUniEditorOperationType aOperation, |
583 void CUniEditorSendUiOperation::HandleOperationEvent( TUniEditorOperationType aOperation, |
586 TUniEditorOperationEvent /*aEvent*/ ) |
584 TUniEditorOperationEvent aEvent ) |
587 { |
585 { |
588 TBool remove( EFalse ); |
586 TBool remove( EFalse ); |
589 |
587 |
590 TMsvAttachmentId attaId( KMsvNullIndexEntryId ); |
588 TMsvAttachmentId attaId( KMsvNullIndexEntryId ); |
591 CMsgMediaInfo* info = NULL; |
589 CMsgMediaInfo* info = NULL; |
592 |
590 |
593 if ( aOperation == EUniEditorOperationProcessImage ) |
591 if ( aOperation == EUniEditorOperationProcessImage ) |
594 { |
592 { |
|
593 if( aEvent == EUniEditorOperationPartialComplete) |
|
594 { |
|
595 if(iOptimizedFlow) |
|
596 { |
|
597 iObserver.EditorOperationEvent( EUniEditorOperationSendUi, |
|
598 EUniEditorOperationPartialComplete ); |
|
599 iOptimizedFlow = EFalse; |
|
600 } |
|
601 return; |
|
602 } |
|
603 iOptimizedFlow = EFalse; |
595 // Process image error handling |
604 // Process image error handling |
596 CArrayFixFlat<TInt>* errors = iImageOperation->GetErrors(); |
605 CArrayFixFlat<TInt>* errors = iImageOperation->GetErrors(); |
597 for ( TInt i = 0; i < errors->Count(); i++ ) |
606 for ( TInt i = 0; i < errors->Count(); i++ ) |
598 { |
607 { |
599 if ( errors->At( i ) == EUniProcessImgUserAbort ) |
608 if ( errors->At( i ) == EUniProcessImgUserAbort ) |