Tag: cws_src680_oj14
User: oj      
Date: 2007-06-01 06:37:30+0000
Log:
 #i77272# select object when context menu open

File Changes:

Directory: /dba/reportdesign/source/ui/report/
==============================================

File [changed]: dlgedfunc.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/reportdesign/source/ui/report/dlgedfunc.cxx?r1=1.1.2.5&r2=1.1.2.6
Delta lines:  +17 -2
--------------------
--- dlgedfunc.cxx       2007-05-30 12:28:35+0000        1.1.2.5
+++ dlgedfunc.cxx       2007-06-01 06:37:28+0000        1.1.2.6
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: dlgedfunc.cxx,v $
  *
- *  $Revision: 1.1.2.5 $
+ *  $Revision: 1.1.2.6 $
  *
- *  last change: $Author: oj $ $Date: 2007/05/30 12:28:35 $
+ *  last change: $Author: oj $ $Date: 2007/06/01 06:37:28 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -184,6 +184,21 @@
             bHandled = TRUE;
         }
     }
+    else if ( rMEvt.IsRight() && !rMEvt.IsLeft() && rMEvt.GetClicks() == 1 ) 
// mark object when context menu was selected
+    {
+        OSectionView* pView = pParent->getView();
+        //const USHORT nHitLog = USHORT ( 
pParent->PixelToLogic(Size(3,0)).Width() );
+        SdrPageView* pPV = pView->GetSdrPageView();
+               SdrViewEvent aVEvt;
+               pView->PickAnything(rMEvt, SDRMOUSEBUTTONDOWN, aVEvt);
+        if ( aVEvt.pRootObj )
+                   pView->MarkObj(aVEvt.pRootObj, pPV);
+        else
+            pParent->getViewsWindow()->unmarkAllObjects(NULL);
+
+
+        bHandled = TRUE;
+    }
        return bHandled;
 }
 




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to