--- a/meetingrequest/mrgui/mrfieldbuildercommon/src/cesmrrichtextviewer.cpp Tue Apr 27 16:20:14 2010 +0300
+++ b/meetingrequest/mrgui/mrfieldbuildercommon/src/cesmrrichtextviewer.cpp Tue May 11 15:57:15 2010 +0300
@@ -12,7 +12,7 @@
* Contributors:
*
* Description : CEikRichTextEditor based Rich Text viewer
-* Version : %version: e002sa33#40 %
+* Version : %version: e002sa32#41 %
*
*/
@@ -720,7 +720,7 @@
{
return linkIndex;
}
-
+
TCursorSelection currentSelection = Selection();
for ( TInt i = 0; i < iLinkList.Count(); ++i )
@@ -743,6 +743,40 @@
}
// -----------------------------------------------------------------------------
+// CESMRRichTextViewer::PointerEventOccuresOnALinkL
+// -----------------------------------------------------------------------------
+//
+EXPORT_C TBool CESMRRichTextViewer::PointerEventOccuresOnALinkL(
+ const TPointerEvent &aPointerEvent )
+ {
+ FUNC_LOG;
+ TBool ret( EFalse );
+
+ RRegion linkArea;
+ CleanupClosePushL( linkArea );
+
+ // Find matching link
+ TInt count( iLinkList.Count() );
+
+ for ( TInt i = 0; i < count; ++i )
+ {
+ CESMRRichTextLink* link = iLinkList[ i ];
+ GetLinkAreaL( linkArea, *link );
+
+ if ( linkArea.Contains( aPointerEvent.iPosition ) )
+ {
+ ret = ETrue;
+ break;
+ }
+ }
+
+ CleanupStack::PopAndDestroy( &linkArea );
+
+ return ret;
+ }
+
+
+// -----------------------------------------------------------------------------
// CESMRRichTextViewer::CESMRRichTextViewer
// -----------------------------------------------------------------------------
//