1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 
25 #ifndef _WINFOPIMPL_HXX_
26 #define _WINFOPIMPL_HXX_
27 
28 
29 //------------------------------------------------------------------------
30 // includes
31 //------------------------------------------------------------------------
32 
33 #include <com/sun/star/lang/IllegalArgumentException.hpp>
34 #include "MtaFop.hxx"
35 
36 //------------------------------------------------------------------------
37 // forward
38 //------------------------------------------------------------------------
39 
40 class CFolderPicker;
41 
42 //------------------------------------------------------------------------
43 // deklarations
44 //------------------------------------------------------------------------
45 
46 class CWinFolderPickerImpl : public CMtaFolderPicker
47 {
48 public:
49 	CWinFolderPickerImpl( CFolderPicker* aFolderPicker );
50 
51 	//-----------------------------------------------------------------------------------------
52 	// XExecutableDialog
53 	//-----------------------------------------------------------------------------------------
54 
55     virtual sal_Int16 SAL_CALL execute(  )
56 		throw( com::sun::star::uno::RuntimeException );
57 
58 	//-----------------------------------------------------
59 	// XFolderPicker
60 	//-----------------------------------------------------
61 
62 	virtual void SAL_CALL setDisplayDirectory( const rtl::OUString& aDirectory )
63 		throw( com::sun::star::lang::IllegalArgumentException, com::sun::star::uno::RuntimeException );
64 
65 	virtual rtl::OUString SAL_CALL getDisplayDirectory( )
66 		throw( com::sun::star::uno::RuntimeException );
67 
68     virtual rtl::OUString SAL_CALL getDirectory( )
69         throw( com::sun::star::uno::RuntimeException );
70 
71 protected:
72 	virtual void SAL_CALL onSelChanged( const rtl::OUString& aNewPath );
73 
74 private:
75 	CFolderPicker*	m_pFolderPicker;
76 	sal_Int16		m_nLastDlgResult;
77 };
78 
79 #endif
80