update dev300-m58
[ooovba.git] / fpicker / source / aqua / SalAquaFolderPicker.hxx
blobbf28a29efae2b295dd0e20e68ed7ee5f6e377238
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: SalAquaFolderPicker.hxx,v $
10 * $Revision: 1.4 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _SALAQUAFOLDERPICKER_HXX_
32 #define _SALAQUAFOLDERPICKER_HXX_
34 //_______________________________________________________________________________________________________________________
35 // includes of other projects
36 //_______________________________________________________________________________________________________________________
38 #ifndef _CPPUHELPER_COMPBASE4_HXX_
39 #include <cppuhelper/implbase4.hxx>
40 #endif
41 #include <com/sun/star/util/XCancellable.hpp>
42 #include <com/sun/star/lang/XEventListener.hpp>
43 #include <com/sun/star/lang/XServiceInfo.hpp>
45 #ifndef _COM_SUN_STAR_UI_XFOLDERPICKER_HPP_
46 #include <com/sun/star/ui/dialogs/XFolderPicker.hpp>
47 #endif
49 #ifndef _SALAQUAPICKER_HXX_
50 #include "SalAquaPicker.hxx"
51 #endif
53 #include <memory>
55 #ifndef _RTL_USTRING_H_
56 #include <rtl/ustring.hxx>
57 #endif
59 #include <list>
61 //----------------------------------------------------------
62 // class declaration
63 //----------------------------------------------------------
65 class SalAquaFolderPicker :
66 public SalAquaPicker,
67 public cppu::WeakImplHelper4<
68 ::com::sun::star::ui::dialogs::XFolderPicker,
69 ::com::sun::star::lang::XServiceInfo,
70 ::com::sun::star::lang::XEventListener,
71 ::com::sun::star::util::XCancellable >
73 public:
75 // constructor
76 SalAquaFolderPicker( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceMgr );
78 //------------------------------------------------------------------------------------
79 // XExecutableDialog functions
80 //------------------------------------------------------------------------------------
82 virtual void SAL_CALL setTitle( const ::rtl::OUString& aTitle )
83 throw( ::com::sun::star::uno::RuntimeException );
85 virtual sal_Int16 SAL_CALL execute( )
86 throw( ::com::sun::star::uno::RuntimeException );
88 //------------------------------------------------------------------------------------
89 // XFolderPicker functions
90 //------------------------------------------------------------------------------------
92 virtual void SAL_CALL setDisplayDirectory( const rtl::OUString& rDirectory )
93 throw( com::sun::star::lang::IllegalArgumentException, com::sun::star::uno::RuntimeException );
95 virtual rtl::OUString SAL_CALL getDisplayDirectory( )
96 throw( com::sun::star::uno::RuntimeException );
98 virtual rtl::OUString SAL_CALL getDirectory( )
99 throw( com::sun::star::uno::RuntimeException );
101 virtual void SAL_CALL setDescription( const rtl::OUString& rDescription )
102 throw( com::sun::star::uno::RuntimeException );
104 //------------------------------------------------
105 // XServiceInfo
106 //------------------------------------------------
108 virtual ::rtl::OUString SAL_CALL getImplementationName( )
109 throw(::com::sun::star::uno::RuntimeException);
111 virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
112 throw(::com::sun::star::uno::RuntimeException);
114 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( )
115 throw(::com::sun::star::uno::RuntimeException);
117 //------------------------------------------------
118 // XCancellable
119 //------------------------------------------------
121 virtual void SAL_CALL cancel( )
122 throw( ::com::sun::star::uno::RuntimeException );
124 //------------------------------------------------
125 // XEventListener
126 //------------------------------------------------
128 virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& aEvent )
129 throw(::com::sun::star::uno::RuntimeException);
131 private:
132 // prevent copy and assignment
133 SalAquaFolderPicker( const SalAquaFolderPicker& );
134 SalAquaFolderPicker& operator=( const SalAquaFolderPicker& );
136 // to instantiate own services
137 ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_xServiceMgr;
141 #endif // _SALAQUAFOLDERPICKER_HXX_