Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
11 : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : * contributor license agreements. See the NOTICE file distributed
13 : * with this work for additional information regarding copyright
14 : * ownership. The ASF licenses this file to you under the Apache
15 : * License, Version 2.0 (the "License"); you may not use this file
16 : * except in compliance with the License. You may obtain a copy of
17 : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : */
19 :
20 : #ifndef _SALGTKFOLDERPICKER_HXX_
21 : #define _SALGTKFOLDERPICKER_HXX_
22 :
23 : #include <list>
24 : #include <memory>
25 : #include <rtl/ustring.hxx>
26 : #include <cppuhelper/implbase1.hxx>
27 :
28 : #include "gtk/fpicker/SalGtkPicker.hxx"
29 :
30 0 : class SalGtkFolderPicker :
31 : public SalGtkPicker,
32 : public cppu::WeakImplHelper1<
33 : ::com::sun::star::ui::dialogs::XFolderPicker2 >
34 : {
35 : public:
36 :
37 : // constructor
38 : SalGtkFolderPicker( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& xServiceMgr );
39 :
40 : //------------------------------------------------------------------------------------
41 : // XExecutableDialog functions
42 : //------------------------------------------------------------------------------------
43 :
44 : virtual void SAL_CALL setTitle( const ::rtl::OUString& aTitle )
45 : throw( ::com::sun::star::uno::RuntimeException );
46 :
47 : virtual sal_Int16 SAL_CALL execute( )
48 : throw( ::com::sun::star::uno::RuntimeException );
49 :
50 : //------------------------------------------------------------------------------------
51 : // XFolderPicker functions
52 : //------------------------------------------------------------------------------------
53 :
54 : virtual void SAL_CALL setDisplayDirectory( const rtl::OUString& rDirectory )
55 : throw( com::sun::star::lang::IllegalArgumentException, com::sun::star::uno::RuntimeException );
56 :
57 : virtual rtl::OUString SAL_CALL getDisplayDirectory( )
58 : throw( com::sun::star::uno::RuntimeException );
59 :
60 : virtual rtl::OUString SAL_CALL getDirectory( )
61 : throw( com::sun::star::uno::RuntimeException );
62 :
63 : virtual void SAL_CALL setDescription( const rtl::OUString& rDescription )
64 : throw( com::sun::star::uno::RuntimeException );
65 :
66 : //------------------------------------------------
67 : // XCancellable
68 : //------------------------------------------------
69 :
70 : virtual void SAL_CALL cancel( )
71 : throw( ::com::sun::star::uno::RuntimeException );
72 :
73 : //------------------------------------------------
74 : // XEventListener
75 : //------------------------------------------------
76 :
77 : virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& aEvent )
78 : throw(::com::sun::star::uno::RuntimeException);
79 :
80 : private:
81 : // prevent copy and assignment
82 : SalGtkFolderPicker( const SalGtkFolderPicker& );
83 : SalGtkFolderPicker& operator=( const SalGtkFolderPicker& );
84 : };
85 :
86 : #endif // _SALGTKFOLDERPICKER_HXX_
87 :
88 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|