Update ooo320-m1
[ooovba.git] / fpicker / source / odma / ODMAFolderPicker.hxx
blob290f164de21629e17b0732286dcd1bf0db0fd894
1 /*************************************************************************
3 * OpenOffice.org - a multi-platform office productivity suite
5 * $RCSfile$
7 * $Revision: 12010 $
9 * last change: $Author: tml $ $Date: 2008-03-26 02:30:23 +0200 (on, 26 mar 2008) $
11 * The Contents of this file are made available subject to
12 * the terms of GNU Lesser General Public License Version 2.1.
15 * GNU Lesser General Public License Version 2.1
16 * =============================================
17 * Copyright 2005 by Sun Microsystems, Inc.
18 * 901 San Antonio Road, Palo Alto, CA 94303, USA
20 * This library is free software; you can redistribute it and/or
21 * modify it under the terms of the GNU Lesser General Public
22 * License version 2.1, as published by the Free Software Foundation.
24 * This library is distributed in the hope that it will be useful,
25 * but WITHOUT ANY WARRANTY; without even the implied warranty of
26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
27 * Lesser General Public License for more details.
29 * You should have received a copy of the GNU Lesser General Public
30 * License along with this library; if not, write to the Free Software
31 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
32 * MA 02111-1307 USA
34 ************************************************************************/
35 #ifndef INCLUDED_ODMA_FOLDERPICKER_HXX
36 #define INCLUDED_ODMA_FOLDERPICKER_HXX
38 #ifndef _CPPUHELPER_COMPBASE2_HXX_
39 #include <cppuhelper/compbase2.hxx>
40 #endif
42 #ifndef _COM_SUN_STAR_UI_DIALOGS_XFOLDERPICKER_HPP_
43 #include <com/sun/star/ui/dialogs/XFolderPicker.hpp>
44 #endif
45 #ifndef _COM_SUN_STAR_LANG_XSERVICEINFO_HPP_
46 #include <com/sun/star/lang/XServiceInfo.hpp>
47 #endif
48 #ifndef _COM_SUN_STAR_LANG_XSINGLESERVICEFACTORY_HPP_
49 #include <com/sun/star/lang/XSingleServiceFactory.hpp>
50 #endif
51 #ifndef _COM_SUN_STAR_LANG_DISPOSEDEXCEPTION_HPP_
52 #include <com/sun/star/lang/DisposedException.hpp>
53 #endif
54 #ifndef _COM_SUN_STAR_UNO_XCOMPONENTCONTEXT_HPP_
55 #include <com/sun/star/uno/XComponentContext.hpp>
56 #endif
58 // class ODMAFolderPicker ---------------------------------------------------
60 class ODMAFolderPicker :
61 public cppu::WeakComponentImplHelper2<
62 ::com::sun::star::ui::dialogs::XFolderPicker,
63 ::com::sun::star::lang::XServiceInfo >
65 private:
66 sal_Bool m_bUseDMS;
68 protected:
69 ::osl::Mutex m_rbHelperMtx;
71 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > m_xInterface;
73 public:
74 ODMAFolderPicker( const ::com::sun::star::uno::Reference < ::com::sun::star::lang::XMultiServiceFactory >& xFactory );
76 // XFolderPicker functions
78 virtual void SAL_CALL setDisplayDirectory( const ::rtl::OUString& aDirectory )
79 throw( ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException );
81 virtual ::rtl::OUString SAL_CALL getDisplayDirectory( )
82 throw( ::com::sun::star::uno::RuntimeException );
84 virtual ::rtl::OUString SAL_CALL getDirectory( )
85 throw( ::com::sun::star::uno::RuntimeException );
87 virtual void SAL_CALL setDescription( const ::rtl::OUString& aDescription )
88 throw ( ::com::sun::star::uno::RuntimeException );
90 // XExecutableDialog functions
92 virtual void SAL_CALL setTitle( const ::rtl::OUString& _rTitle )
93 throw (::com::sun::star::uno::RuntimeException);
95 virtual sal_Int16 SAL_CALL execute( )
96 throw (::com::sun::star::uno::RuntimeException);
98 // XServiceInfo functions
100 virtual ::rtl::OUString SAL_CALL getImplementationName( )
101 throw( ::com::sun::star::uno::RuntimeException );
103 virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& sServiceName )
104 throw( ::com::sun::star::uno::RuntimeException );
106 virtual com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( )
107 throw( ::com::sun::star::uno::RuntimeException );
109 /* Helper for XServiceInfo */
110 static com::sun::star::uno::Sequence< ::rtl::OUString > impl_getStaticSupportedServiceNames( );
111 static ::rtl::OUString impl_getStaticImplementationName( );
113 /* Helper for registry */
114 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 )
115 throw( com::sun::star::uno::Exception );
118 #endif // INCLUDED_ODMA_FOLDERPICKER_HXX