diff options
author | Szymon Kłos <eszkadev@gmail.com> | 2015-06-30 15:31:30 +0200 |
---|---|---|
committer | Szymon Kłos <eszkadev@gmail.com> | 2015-07-16 09:53:16 +0200 |
commit | 86859c115c9d8ff1b46f6fef4fdc0fc30a4a766f (patch) | |
tree | 79977672ada15feac4f0da58acd3708cf9f9d8ee /fpicker/source/office/OfficeFilePicker.hxx | |
parent | 0b2ec9b1b32eac9d99c4ea7aa9401168a8cd5da2 (diff) |
FilePicker interface for RemoteFilesDialog
Change-Id: I797d3fcf62bb858713d1e8af10e82f9c095bcf2b
Diffstat (limited to 'fpicker/source/office/OfficeFilePicker.hxx')
-rw-r--r-- | fpicker/source/office/OfficeFilePicker.hxx | 39 |
1 files changed, 36 insertions, 3 deletions
diff --git a/fpicker/source/office/OfficeFilePicker.hxx b/fpicker/source/office/OfficeFilePicker.hxx index fa8313e16a85..df6ad1c7b195 100644 --- a/fpicker/source/office/OfficeFilePicker.hxx +++ b/fpicker/source/office/OfficeFilePicker.hxx @@ -61,7 +61,7 @@ class SvtFilePicker :public SvtFilePicker_Base ,public ::svt::OCommonPicker ,public ::svt::IFilePickerListener { -private: +protected: FilterList* m_pFilterList; ElementList* m_pElemList; @@ -205,14 +205,14 @@ protected: // OCommonPicker overridables - virtual VclPtr<SvtFileDialog> implCreateDialog( vcl::Window* _pParent ) SAL_OVERRIDE; + virtual VclPtr<SvtFileDialog_Base> implCreateDialog( vcl::Window* _pParent ) SAL_OVERRIDE; virtual sal_Int16 implExecutePicker( ) SAL_OVERRIDE; virtual bool implHandleInitializationArgument( const OUString& _rName, const ::com::sun::star::uno::Any& _rValue ) SAL_OVERRIDE; -private: +protected: WinBits getWinBits( WinBits& rExtraBits ); virtual void notify( sal_Int16 _nEventId, sal_Int16 _nControlId ) SAL_OVERRIDE; @@ -226,6 +226,39 @@ private: DECL_LINK( DialogClosedHdl, Dialog* ); }; +// SvtRemoteFilePicker + +class SvtRemoteFilePicker : public SvtFilePicker +{ +public: + SvtRemoteFilePicker( const ::com::sun::star::uno::Reference < ::com::sun::star::lang::XMultiServiceFactory >& xFactory ); + + virtual VclPtr<SvtFileDialog_Base> implCreateDialog( vcl::Window* _pParent ) SAL_OVERRIDE; + + // disambiguate XInterface + + DECLARE_XINTERFACE( ) + + // disambiguate XTypeProvider + + DECLARE_XTYPEPROVIDER( ) + + /* XServiceInfo */ + virtual OUString SAL_CALL getImplementationName() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE; + virtual sal_Bool SAL_CALL supportsService( const OUString& sServiceName ) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE; + virtual com::sun::star::uno::Sequence< OUString > SAL_CALL + getSupportedServiceNames() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE; + + /* Helper for XServiceInfo */ + static com::sun::star::uno::Sequence< OUString > impl_getStaticSupportedServiceNames(); + static OUString impl_getStaticImplementationName(); + + /* Helper for registry */ + static ::com::sun::star::uno::Reference< com::sun::star::uno::XInterface > SAL_CALL impl_createInstance ( + const ::com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxContext ) + throw( com::sun::star::uno::Exception ); +}; + #endif // INCLUDED_FPICKER_SOURCE_OFFICE_OFFICEFILEPICKER_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |