Update ooo320-m1
[ooovba.git] / fpicker / source / unx / gnome / SalGtkFolderPicker.hxx
blob049374ef81da216a489fdf36c507347560d77c05
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: SalGtkFolderPicker.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 _SALGTKFOLDERPICKER_HXX_
32 #define _SALGTKFOLDERPICKER_HXX_
34 //_______________________________________________________________________________________________________________________
35 // includes of other projects
36 //_______________________________________________________________________________________________________________________
38 #ifndef _CPPUHELPER_COMPBASE3_HXX_
39 #include <cppuhelper/implbase3.hxx>
40 #endif
42 #ifndef _SALGTKPICKER_HXX_
43 #include "SalGtkPicker.hxx"
44 #endif
46 #include <memory>
48 #ifndef _RTL_USTRING_H_
49 #include <rtl/ustring.hxx>
50 #endif
52 #include <list>
54 //----------------------------------------------------------
55 // class declaration
56 //----------------------------------------------------------
58 class SalGtkFolderPicker :
59 public SalGtkPicker,
60 public cppu::WeakImplHelper3<
61 ::com::sun::star::ui::dialogs::XFolderPicker,
62 ::com::sun::star::lang::XServiceInfo,
63 ::com::sun::star::util::XCancellable >
65 public:
67 // constructor
68 SalGtkFolderPicker( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceMgr );
70 //------------------------------------------------------------------------------------
71 // XExecutableDialog functions
72 //------------------------------------------------------------------------------------
74 virtual void SAL_CALL setTitle( const ::rtl::OUString& aTitle )
75 throw( ::com::sun::star::uno::RuntimeException );
77 virtual sal_Int16 SAL_CALL execute( )
78 throw( ::com::sun::star::uno::RuntimeException );
80 //------------------------------------------------------------------------------------
81 // XFolderPicker functions
82 //------------------------------------------------------------------------------------
84 virtual void SAL_CALL setDisplayDirectory( const rtl::OUString& rDirectory )
85 throw( com::sun::star::lang::IllegalArgumentException, com::sun::star::uno::RuntimeException );
87 virtual rtl::OUString SAL_CALL getDisplayDirectory( )
88 throw( com::sun::star::uno::RuntimeException );
90 virtual rtl::OUString SAL_CALL getDirectory( )
91 throw( com::sun::star::uno::RuntimeException );
93 virtual void SAL_CALL setDescription( const rtl::OUString& rDescription )
94 throw( com::sun::star::uno::RuntimeException );
97 //------------------------------------------------
98 // XServiceInfo
99 //------------------------------------------------
101 virtual ::rtl::OUString SAL_CALL getImplementationName( )
102 throw(::com::sun::star::uno::RuntimeException);
104 virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
105 throw(::com::sun::star::uno::RuntimeException);
107 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( )
108 throw(::com::sun::star::uno::RuntimeException);
110 //------------------------------------------------
111 // XCancellable
112 //------------------------------------------------
114 virtual void SAL_CALL cancel( )
115 throw( ::com::sun::star::uno::RuntimeException );
117 //------------------------------------------------
118 // XEventListener
119 //------------------------------------------------
121 virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& aEvent )
122 throw(::com::sun::star::uno::RuntimeException);
124 private:
125 // prevent copy and assignment
126 SalGtkFolderPicker( const SalGtkFolderPicker& );
127 SalGtkFolderPicker& operator=( const SalGtkFolderPicker& );
128 private:
129 // to instanciate own services
130 ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_xServiceMgr;
132 #if 0
133 public:
134 virtual ~SalGtkFolderPicker();
135 #endif
138 #endif // _SALGTKFOLDERPICKER_HXX_