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