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 INCLUDED_VCL_UNX_GTK_FPICKER_SALGTKFOLDERPICKER_HXX
21 : #define INCLUDED_VCL_UNX_GTK_FPICKER_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 : // XExecutableDialog functions
41 :
42 : virtual void SAL_CALL setTitle( const OUString& aTitle )
43 : throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
44 :
45 : virtual sal_Int16 SAL_CALL execute( )
46 : throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
47 :
48 : // XFolderPicker functions
49 :
50 : virtual void SAL_CALL setDisplayDirectory( const OUString& rDirectory )
51 : throw( com::sun::star::lang::IllegalArgumentException, com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
52 :
53 : virtual OUString SAL_CALL getDisplayDirectory( )
54 : throw( com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
55 :
56 : virtual OUString SAL_CALL getDirectory( )
57 : throw( com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
58 :
59 : virtual void SAL_CALL setDescription( const OUString& rDescription )
60 : throw( com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
61 :
62 : // XCancellable
63 :
64 : virtual void SAL_CALL cancel( )
65 : throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
66 :
67 : // XEventListener
68 :
69 : virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& aEvent )
70 : throw(::com::sun::star::uno::RuntimeException);
71 :
72 : private:
73 : // prevent copy and assignment
74 : SalGtkFolderPicker( const SalGtkFolderPicker& );
75 : SalGtkFolderPicker& operator=( const SalGtkFolderPicker& );
76 : };
77 :
78 : #endif // INCLUDED_VCL_UNX_GTK_FPICKER_SALGTKFOLDERPICKER_HXX
79 :
80 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|