fpicker/source/office/OfficeFilePicker.hxx |   25 +++++++++++++++++--------
 1 file changed, 17 insertions(+), 8 deletions(-)

New commits:
commit c04c95958030bd4872fbbc0b3d4bc996fb041488
Author: Noel Grandin <n...@peralex.com>
Date:   Thu Feb 21 15:41:36 2013 +0200

    fix for fdo#61187
    
    ... "CRASH when click 'Add' in EXTENSIONS Manager to open LibO File Dialog"
    
    This one must have been broken for a long while, because it didn't
    even implement XFilePicker before.
    
    Change-Id: I7c5d4e4c3ba14f4c6dffa91a25a745e6ca51ec37
    Signed-off-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/fpicker/source/office/OfficeFilePicker.hxx 
b/fpicker/source/office/OfficeFilePicker.hxx
index 2e90ebd..4feadbe 100644
--- a/fpicker/source/office/OfficeFilePicker.hxx
+++ b/fpicker/source/office/OfficeFilePicker.hxx
@@ -19,12 +19,10 @@
 #ifndef INCLUDED_SVT_FILEPICKER_HXX
 #define INCLUDED_SVT_FILEPICKER_HXX
 
-#include <cppuhelper/implbase7.hxx>
+#include <cppuhelper/implbase5.hxx>
 #include <com/sun/star/ui/dialogs/XFilePickerControlAccess.hpp>
-#include <com/sun/star/ui/dialogs/XFilePickerNotifier.hpp>
 #include <com/sun/star/ui/dialogs/XFilePreview.hpp>
-#include <com/sun/star/ui/dialogs/XFilterManager.hpp>
-#include <com/sun/star/ui/dialogs/XFilterGroupManager.hpp>
+#include <com/sun/star/ui/dialogs/XFilePicker3.hpp>
 #include <com/sun/star/ui/dialogs/XFilePickerListener.hpp>
 #include <com/sun/star/ui/dialogs/XAsynchronousExecutableDialog.hpp>
 #include <com/sun/star/lang/XServiceInfo.hpp>
@@ -52,11 +50,9 @@ typedef ::com::sun::star::uno::Sequence< OUString >  
OUStringList;   // can be t
 
 // class SvtFilePicker ---------------------------------------------------
 
-typedef ::cppu::ImplHelper7 <   
::com::sun::star::ui::dialogs::XFilePickerControlAccess
-                            ,   
::com::sun::star::ui::dialogs::XFilePickerNotifier
+typedef ::cppu::ImplHelper5 <   ::com::sun::star::ui::dialogs::XFilePicker3
+                            ,   
::com::sun::star::ui::dialogs::XFilePickerControlAccess
                             ,   ::com::sun::star::ui::dialogs::XFilePreview
-                            ,   ::com::sun::star::ui::dialogs::XFilterManager
-                            ,   
::com::sun::star::ui::dialogs::XFilterGroupManager
                             ,   ::com::sun::star::lang::XServiceInfo
                             ,   
::com::sun::star::ui::dialogs::XAsynchronousExecutableDialog
                             >   SvtFilePicker_Base;
@@ -164,6 +160,19 @@ public:
     
//------------------------------------------------------------------------------------
     virtual void SAL_CALL           appendFilterGroup( const OUString& 
sGroupTitle, const com::sun::star::uno::Sequence< 
com::sun::star::beans::StringPair >& aFilters ) throw 
(::com::sun::star::lang::IllegalArgumentException, 
::com::sun::star::uno::RuntimeException);
 
+
+    
//------------------------------------------------------------------------------------
+    // these methods are here because they're ambiguous
+    
//------------------------------------------------------------------------------------
+    virtual void SAL_CALL           cancel() throw( 
::com::sun::star::uno::RuntimeException )
+     { ::svt::OCommonPicker::cancel(); }
+    virtual void SAL_CALL           dispose() throw( 
::com::sun::star::uno::RuntimeException )
+     { ::svt::OCommonPicker::dispose(); }
+    virtual void SAL_CALL           addEventListener(const 
com::sun::star::uno::Reference<com::sun::star::lang::XEventListener>& l) throw( 
::com::sun::star::uno::RuntimeException )
+     { ::svt::OCommonPicker::addEventListener(l); }
+    virtual void SAL_CALL           removeEventListener(const 
com::sun::star::uno::Reference<com::sun::star::lang::XEventListener>& l) throw( 
::com::sun::star::uno::RuntimeException )
+     { ::svt::OCommonPicker::removeEventListener(l); }
+
     
//------------------------------------------------------------------------------------
     // XInitialization functions
     
//------------------------------------------------------------------------------------
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to