bump product version to 4.1.6.2
[LibreOffice.git] / dbaccess / source / ui / inc / CollectionView.hxx
blob6ec8a4140117fd8e000b998fd55c20fd8979ddb6
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 //.........................................................................
31 namespace dbaui
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;
40 ImageButton m_aUp;
41 SvtFileView m_aView;
42 FixedText m_aFTName;
43 Edit m_aName;
44 FixedLine m_aFL;
45 PushButton m_aPB_OK;
46 CancelButton m_aPB_CANCEL;
47 HelpButton m_aPB_HELP;
48 String m_sPath;
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;
51 Size m_aDlgSize;
52 Size m_a6Size;
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();
62 public:
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 //.........................................................................
73 } // namespace dbaui
74 //.........................................................................
77 #endif //DBAUI_COLLECTIONVIEW_HXX
80 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */