Kaydet (Commit) 33d086fe authored tarafından Noel Grandin's avatar Noel Grandin

Fix compilation of MS-Windows FilePicker

...broken by 4b51374a "fdo#46808,
Adapt ui::dialogs::FilePicker UNO service to new style."

Change-Id: Ie57b08ea16c9f8e350177c050a6d9ff952fd7332
üst a1609205
...@@ -67,12 +67,9 @@ namespace ...@@ -67,12 +67,9 @@ namespace
//----------------------------------------------------------------------------------------- //-----------------------------------------------------------------------------------------
CFilePicker::CFilePicker( const uno::Reference<lang::XMultiServiceFactory>& xServiceMgr) : CFilePicker::CFilePicker( const uno::Reference<lang::XMultiServiceFactory>& xServiceMgr) :
cppu::WeakComponentImplHelper3< CFilePicker_Base(m_rbHelperMtx),
XFilePicker2, m_xServiceMgr(xServiceMgr),
XFilePicker3, m_aAsyncEventNotifier(rBHelper)
lang::XServiceInfo>(m_rbHelperMtx),
m_xServiceMgr(xServiceMgr),
m_aAsyncEventNotifier(rBHelper)
{ {
HINSTANCE hInstance = GetModuleHandle(FILE_PICKER_DLL_NAME); HINSTANCE hInstance = GetModuleHandle(FILE_PICKER_DLL_NAME);
OSL_POSTCOND( hInstance, "The name of the service dll must have changed" ); OSL_POSTCOND( hInstance, "The name of the service dll must have changed" );
......
...@@ -52,14 +52,16 @@ protected: ...@@ -52,14 +52,16 @@ protected:
osl::Mutex m_rbHelperMtx; osl::Mutex m_rbHelperMtx;
}; };
typedef ::cppu::WeakComponentImplHelper5 <
::com::sun::star::ui::dialogs::XFilePicker2,
::com::sun::star::ui::dialogs::XFilePicker3,
::com::sun::star::ui::dialogs::XFilePickerControlAccess,
::com::sun::star::ui::dialogs::XFilePreview,
::com::sun::star::lang::XServiceInfo > CFilePicker_Base;
class CFilePicker : class CFilePicker :
public CFilePickerDummy, public CFilePickerDummy,
public cppu::WeakComponentImplHelper5< public CFilePicker_Base
::com::sun::star::ui::dialogs::XFilePicker2,
::com::sun::star::ui::dialogs::XFilePicker3,
::com::sun::star::ui::dialogs::XFilePickerControlAccess,
::com::sun::star::ui::dialogs::XFilePreview,
::com::sun::star::lang::XServiceInfo >
{ {
public: public:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment