[ooo-build-commit] Branch 'ooo/OOO310' - sd/source

Jan Holesovsky kendy at kemper.freedesktop.org
Thu Jun 25 17:37:32 PDT 2009


 sd/source/ui/animations/motionpathtag.cxx |   26 +++++++++++++++++---------
 sd/source/ui/animations/motionpathtag.hxx |    1 +
 2 files changed, 18 insertions(+), 9 deletions(-)

New commits:
commit 78f3f2908d93c039230f9b315ec58234c6053e9b
Author: Oliver Bolte <obo at openoffice.org>
Date:   Thu Jun 25 09:06:48 2009 +0000

    CWS-TOOLING: integrate CWS impress173
    2009-06-16 15:50:22 +0200 sj  r273022 : #i101545# fixed crash - bracketing of graphic links has been done twice leading to a broken graphic state stack
    2009-06-05 10:37:58 +0200 cl  r272669 : #i102298# prevent export of multiple writing-mode attributes for cell styles
    2009-06-05 10:29:42 +0200 cl  r272667 : #i98403# fixed editing of motion path

diff --git a/sd/source/ui/animations/motionpathtag.cxx b/sd/source/ui/animations/motionpathtag.cxx
index ac928d4..34942f4 100644
--- a/sd/source/ui/animations/motionpathtag.cxx
+++ b/sd/source/ui/animations/motionpathtag.cxx
@@ -508,6 +508,7 @@ bool MotionPathTag::MouseButtonDown( const MouseEvent& rMEvt, SmartHdl& rHdl )
     {
         SmartTagReference xTag( this );
         mrView.getSmartTags().select( xTag );
+        selectionChanged();
         return true;
     }
     else
@@ -941,16 +942,13 @@ void MotionPathTag::CheckPossibilities()
     {
         if( isSelected() )
         {
-            if( mrView.IsFrameDragSingles() )
-            {
-                mrView.SetMoveAllowed( true );
-                mrView.SetMoveProtected( false );
-                mrView.SetResizeFreeAllowed( true );
-                mrView.SetResizePropAllowed( true );
-                mrView.SetResizeProtected( false );
+            mrView.SetMoveAllowed( true );
+            mrView.SetMoveProtected( false );
+            mrView.SetResizeFreeAllowed( true );
+            mrView.SetResizePropAllowed( true );
+            mrView.SetResizeProtected( false );
 
-            }
-            else
+            if( !mrView.IsFrameDragSingles() )
             {
                 bool b1stSmooth(true);
                 bool b1stSegm(true);
@@ -1117,8 +1115,18 @@ void MotionPathTag::deselect()
         if( pPts ) 
             pPts->Clear();
     }
+    
+    selectionChanged();
 }
 
+void MotionPathTag::selectionChanged()
+{
+    if( mrView.GetViewShell() && mrView.GetViewShell()->GetViewFrame() )
+    {
+        SfxBindings& rBindings = mrView.GetViewShell()->GetViewFrame()->GetBindings();
+        rBindings.InvalidateAll(TRUE);
+    }
+}
 // --------------------------------------------------------------------
 // IPolyPolygonEditorController
 // --------------------------------------------------------------------
diff --git a/sd/source/ui/animations/motionpathtag.hxx b/sd/source/ui/animations/motionpathtag.hxx
index 46258c4..e22b418 100644
--- a/sd/source/ui/animations/motionpathtag.hxx
+++ b/sd/source/ui/animations/motionpathtag.hxx
@@ -116,6 +116,7 @@ protected:
     virtual void deselect();
 
     void updatePathAttributes();
+    void selectionChanged();
 
 private:
     CustomAnimationPane& mrPane;


More information about the ooo-build-commit mailing list