1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: CollectionView.hxx,v $
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>
37 #ifndef _BUTTON_HXX //autogen
38 #include <vcl/button.hxx>
41 #include <vcl/edit.hxx>
44 #include <vcl/fixed.hxx>
46 #ifndef _COM_SUN_STAR_UCB_XCONTENT_HPP_
47 #include <com/sun/star/ucb/XContent.hpp>
49 #ifndef _COM_SUN_STAR_LANG_XMULTISERVICEFACTORY_HPP_
50 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
53 //.........................................................................
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
;
69 CancelButton m_aPB_CANCEL
;
70 HelpButton m_aPB_HELP
;
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
;
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();
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 //.........................................................................
98 //.........................................................................
101 #endif //DBAUI_COLLECTIONVIEW_HXX