From c04c95958030bd4872fbbc0b3d4bc996fb041488 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 21 Feb 2013 15:41:36 +0200 Subject: [PATCH] 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 --- fpicker/source/office/OfficeFilePicker.hxx | 25 +++++++++++++++------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/fpicker/source/office/OfficeFilePicker.hxx b/fpicker/source/office/OfficeFilePicker.hxx index 2e90ebdb183b..4feadbe1031f 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 +#include #include -#include #include -#include -#include +#include #include #include #include @@ -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& l) throw( ::com::sun::star::uno::RuntimeException ) + { ::svt::OCommonPicker::addEventListener(l); } + virtual void SAL_CALL removeEventListener(const com::sun::star::uno::Reference& l) throw( ::com::sun::star::uno::RuntimeException ) + { ::svt::OCommonPicker::removeEventListener(l); } + //------------------------------------------------------------------------------------ // XInitialization functions //------------------------------------------------------------------------------------