[ooo-build-commit] .: Branch 'ooo-build-3-2-1' - patches/dev300

Thorsten Behrens thorsten at kemper.freedesktop.org
Mon May 17 13:22:13 PDT 2010


 patches/dev300/apply                                  |    2 
 patches/dev300/cws-impressmedia01-slotparams-fix.diff |   85 ++++++++++++++++++
 2 files changed, 86 insertions(+), 1 deletion(-)

New commits:
commit 3bbc9c350a306ff88146c3b9c0ce71ea4c8222a0
Author: Thorsten Behrens <tbehrens at novell.com>
Date:   Mon May 17 22:19:06 2010 +0200

    Fix crash due to missing slot call parameter
    
    * patches/dev300/apply: added below patch
    * patches/dev300/cws-impressmedia01-slotparams-fix.diff: make sure
      SID_INSERT_AVMEDIA is executed with two parameters given. This
      patch also goes all the way to make gallery sounds to be embedded,
      too - avoiding the nasty surprises of privately-added gallery items
      suddenly missing on the target machine. Fixes n#597691.

diff --git a/patches/dev300/apply b/patches/dev300/apply
index 6e62ab9..8c2f9b2 100644
--- a/patches/dev300/apply
+++ b/patches/dev300/apply
@@ -3902,7 +3902,7 @@ transogl-crossplatform.diff, ericb
 # embed generic media files inside odf docs, 1st part
 # FIXME: svx-sound.diff depends on this diff
 cws-impressmedia01-backport.diff, i#83753, thorsten
-
+cws-impressmedia01-slotparams-fix.diff, n#597691, thorsten
 cws-impressmedia01-crash-fix.diff, n#588570, thorsten
 
 [ Fixes ]
diff --git a/patches/dev300/cws-impressmedia01-slotparams-fix.diff b/patches/dev300/cws-impressmedia01-slotparams-fix.diff
new file mode 100644
index 0000000..1a4f2df
--- /dev/null
+++ b/patches/dev300/cws-impressmedia01-slotparams-fix.diff
@@ -0,0 +1,85 @@
+Give additional slot call parameters for SID_INSERT_AVMEDIA
+
+From: Thorsten Behrens <tbehrens at novell.com>
+
+
+---
+
+ avmedia/source/framework/mediaplayer.cxx |    8 +++++++-
+ sc/source/ui/view/tabvwsh9.cxx           |    4 +++-
+ sd/source/ui/view/drviews9.cxx           |    4 +++-
+ sw/source/ui/shells/basesh.cxx           |    4 +++-
+ 4 files changed, 16 insertions(+), 4 deletions(-)
+
+
+diff --git avmedia/source/framework/mediaplayer.cxx avmedia/source/framework/mediaplayer.cxx
+index 1042c8e..8f172ff 100644
+--- avmedia/source/framework/mediaplayer.cxx
++++ avmedia/source/framework/mediaplayer.cxx
+@@ -36,6 +36,7 @@
+ #include "helpids.hrc"
+ 
+ #include <svtools/stritem.hxx>
++#include <svtools/eitem.hxx>
+ #include <sfx2/app.hxx>
+ #include <sfx2/sfxsids.hrc>
+ #include <sfx2/bindings.hxx>
+@@ -162,7 +163,12 @@ void MediaFloater::dispatchCurrentURL()
+     if( pDispatcher )
+     {	
+         const SfxStringItem aMediaURLItem( SID_INSERT_AVMEDIA, getURL() );
+-        pDispatcher->Execute( SID_INSERT_AVMEDIA, SFX_CALLMODE_RECORD, &aMediaURLItem, 0L );
++        const SfxBoolItem   aLinkFlagItem( FN_PARAM_1, FALSE );
++        pDispatcher->Execute( SID_INSERT_AVMEDIA, 
++                              SFX_CALLMODE_RECORD, 
++                              &aMediaURLItem, 
++                              &aLinkFlagItem, 
++                              0L );
+     }
+ }
+ 
+diff --git sc/source/ui/view/tabvwsh9.cxx sc/source/ui/view/tabvwsh9.cxx
+index 88ebdc9..8ea0417 100644
+--- sc/source/ui/view/tabvwsh9.cxx
++++ sc/source/ui/view/tabvwsh9.cxx
+@@ -154,7 +154,9 @@ void ScTabViewShell::ExecGallery( SfxRequest& rReq )
+                 if ( pGal )
+                 {
+                     const SfxStringItem aMediaURLItem( SID_INSERT_AVMEDIA, pGal->GetURL().GetMainURL( INetURLObject::NO_DECODE ) );
+-                       GetViewFrame()->GetDispatcher()->Execute( SID_INSERT_AVMEDIA, SFX_CALLMODE_SYNCHRON, &aMediaURLItem, 0L );
++                    const SfxBoolItem   aLinkFlagItem( FN_PARAM_1, FALSE );
++                       GetViewFrame()->GetDispatcher()->Execute( 
++                           SID_INSERT_AVMEDIA, SFX_CALLMODE_SYNCHRON, &aMediaURLItem, &aLinkFlagItem, 0L );
+                 }
+             }
+         }
+diff --git sd/source/ui/view/drviews9.cxx sd/source/ui/view/drviews9.cxx
+index 57064c6..0f8dd8c 100644
+--- sd/source/ui/view/drviews9.cxx
++++ sd/source/ui/view/drviews9.cxx
+@@ -220,7 +220,9 @@ void DrawViewShell::ExecGallery(SfxRequest& rReq)
+             else if( nFormats & SGA_FORMAT_SOUND )
+             {
+                 const SfxStringItem aMediaURLItem( SID_INSERT_AVMEDIA, pGal->GetURL().GetMainURL( INetURLObject::NO_DECODE ) );
+-                   GetViewFrame()->GetDispatcher()->Execute( SID_INSERT_AVMEDIA, SFX_CALLMODE_SYNCHRON, &aMediaURLItem, 0L );
++                const SfxBoolItem   aLinkFlagItem( FN_PARAM_1, FALSE );
++                GetViewFrame()->GetDispatcher()->Execute( 
++                    SID_INSERT_AVMEDIA, SFX_CALLMODE_SYNCHRON, &aMediaURLItem, &aLinkFlagItem, 0L );
+             }
+ 
+             GetDocSh()->SetWaitCursor( FALSE );
+diff --git sw/source/ui/shells/basesh.cxx sw/source/ui/shells/basesh.cxx
+index a32d3e1..c891e53 100644
+--- sw/source/ui/shells/basesh.cxx
++++ sw/source/ui/shells/basesh.cxx
+@@ -776,7 +776,9 @@ void SwBaseShell::Execute(SfxRequest &rReq)
+                 else if(!rSh.IsSelFrmMode() && SGA_FORMAT_SOUND & ((SfxUInt32Item*)pItem)->GetValue())
+                 {
+                     const SfxStringItem aMediaURLItem( SID_INSERT_AVMEDIA, pGal->GetURL().GetMainURL( INetURLObject::NO_DECODE ) );
+-                       GetView().GetViewFrame()->GetDispatcher()->Execute( SID_INSERT_AVMEDIA, SFX_CALLMODE_SYNCHRON, &aMediaURLItem, 0L );
++                    const SfxBoolItem   aLinkFlagItem( FN_PARAM_1, FALSE );
++                       GetView().GetViewFrame()->GetDispatcher()->Execute( 
++                           SID_INSERT_AVMEDIA, SFX_CALLMODE_SYNCHRON, &aMediaURLItem, &aLinkFlagItem, 0L );
+ /*
+                     String sURL( pGal->GetURL().GetMainURL( INetURLObject::NO_DECODE ) );
+                     String sLabel( pGal->GetURL().getBase() );


More information about the ooo-build-commit mailing list