1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef DBAUI_COLLECTIONVIEW_HXX
21 #define DBAUI_COLLECTIONVIEW_HXX
23 #include <svtools/fileview.hxx>
24 #include <vcl/button.hxx>
25 #include <vcl/edit.hxx>
26 #include <vcl/fixed.hxx>
27 #include <com/sun/star/ucb/XContent.hpp>
28 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
30 //.........................................................................
33 //.........................................................................
34 /* this class allows to browse through the collection of forms and reports
36 class OCollectionView
: public ModalDialog
38 FixedText m_aFTCurrentPath
;
39 ImageButton m_aNewFolder
;
46 CancelButton m_aPB_CANCEL
;
47 HelpButton m_aPB_HELP
;
49 ::com::sun::star::uno::Reference
< ::com::sun::star::ucb::XContent
> m_xContent
;
50 ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XComponentContext
> m_xContext
;
53 sal_Bool m_bCreateForm
;
55 DECL_LINK(Up_Click
,void*);
56 DECL_LINK(NewFolder_Click
,void*);
57 DECL_LINK(Save_Click
,void*);
58 DECL_LINK(Dbl_Click_FileView
,void*);
60 /// sets the fixedtext to the right content
61 void initCurrentPath();
63 OCollectionView( Window
* pParent
64 ,const ::com::sun::star::uno::Reference
< ::com::sun::star::ucb::XContent
>& _xContent
65 ,const OUString
& _sDefaultName
66 ,const ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XComponentContext
>& _rxContext
);
67 virtual ~OCollectionView();
69 ::com::sun::star::uno::Reference
< ::com::sun::star::ucb::XContent
> getSelectedFolder() const;
70 OUString
getName() const;
72 //.........................................................................
74 //.........................................................................
77 #endif //DBAUI_COLLECTIONVIEW_HXX
80 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */