merge the formfield patch from ooo-build
[ooovba.git] / dbaccess / source / ui / inc / CollectionView.hxx
blobf5c3e62bd9d23e670bd295e03509695437e82379
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: CollectionView.hxx,v $
10 * $Revision: 1.5 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef DBAUI_COLLECTIONVIEW_HXX
32 #define DBAUI_COLLECTIONVIEW_HXX
34 #ifndef _SVT_FILEVIEW_HXX
35 #include <svtools/fileview.hxx>
36 #endif
37 #ifndef _BUTTON_HXX //autogen
38 #include <vcl/button.hxx>
39 #endif
40 #ifndef _SV_EDIT_HXX
41 #include <vcl/edit.hxx>
42 #endif
43 #ifndef _SV_FIXED_HXX
44 #include <vcl/fixed.hxx>
45 #endif
46 #ifndef _COM_SUN_STAR_UCB_XCONTENT_HPP_
47 #include <com/sun/star/ucb/XContent.hpp>
48 #endif
49 #ifndef _COM_SUN_STAR_LANG_XMULTISERVICEFACTORY_HPP_
50 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
51 #endif
53 //.........................................................................
54 namespace dbaui
56 //.........................................................................
57 /* this class allows to browse through the collection of forms and reports
59 class OCollectionView : public ModalDialog
61 FixedText m_aFTCurrentPath;
62 ImageButton m_aNewFolder;
63 ImageButton m_aUp;
64 SvtFileView m_aView;
65 FixedText m_aFTName;
66 Edit m_aName;
67 FixedLine m_aFL;
68 PushButton m_aPB_OK;
69 CancelButton m_aPB_CANCEL;
70 HelpButton m_aPB_HELP;
71 String m_sPath;
72 ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XContent> m_xContent;
73 ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_xORB;
74 Size m_aDlgSize;
75 Size m_a6Size;
76 sal_Int32 m_nFixDeltaHeight;
77 sal_Bool m_bCreateForm;
79 DECL_LINK(Up_Click,PushButton*);
80 DECL_LINK(NewFolder_Click,PushButton*);
81 DECL_LINK(Save_Click,PushButton*);
82 DECL_LINK(Dbl_Click_FileView,SvtFileView*);
84 /// sets the fixedtext to the right content
85 void initCurrentPath();
86 public:
87 OCollectionView( Window * pParent
88 ,const ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XContent>& _xContent
89 ,const ::rtl::OUString& _sDefaultName
90 ,const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _xORB);
91 virtual ~OCollectionView();
93 ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XContent> getSelectedFolder() const;
94 ::rtl::OUString getName() const;
96 //.........................................................................
97 } // namespace dbaui
98 //.........................................................................
101 #endif //DBAUI_COLLECTIONVIEW_HXX