xref: /AOO41X/main/dbaccess/source/ui/inc/CollectionView.hxx (revision 2e2212a7c22e96cf6f6fab0dd042c34a45a64bd6)
1*2e2212a7SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*2e2212a7SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*2e2212a7SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*2e2212a7SAndrew Rist  * distributed with this work for additional information
6*2e2212a7SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*2e2212a7SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*2e2212a7SAndrew Rist  * "License"); you may not use this file except in compliance
9*2e2212a7SAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
11*2e2212a7SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
13*2e2212a7SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*2e2212a7SAndrew Rist  * software distributed under the License is distributed on an
15*2e2212a7SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*2e2212a7SAndrew Rist  * KIND, either express or implied.  See the License for the
17*2e2212a7SAndrew Rist  * specific language governing permissions and limitations
18*2e2212a7SAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
20*2e2212a7SAndrew Rist  *************************************************************/
21*2e2212a7SAndrew Rist 
22*2e2212a7SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef DBAUI_COLLECTIONVIEW_HXX
25cdf0e10cSrcweir #define DBAUI_COLLECTIONVIEW_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #ifndef _SVT_FILEVIEW_HXX
28cdf0e10cSrcweir #include <svtools/fileview.hxx>
29cdf0e10cSrcweir #endif
30cdf0e10cSrcweir #ifndef _BUTTON_HXX //autogen
31cdf0e10cSrcweir #include <vcl/button.hxx>
32cdf0e10cSrcweir #endif
33cdf0e10cSrcweir #ifndef _SV_EDIT_HXX
34cdf0e10cSrcweir #include <vcl/edit.hxx>
35cdf0e10cSrcweir #endif
36cdf0e10cSrcweir #ifndef _SV_FIXED_HXX
37cdf0e10cSrcweir #include <vcl/fixed.hxx>
38cdf0e10cSrcweir #endif
39cdf0e10cSrcweir #ifndef _COM_SUN_STAR_UCB_XCONTENT_HPP_
40cdf0e10cSrcweir #include <com/sun/star/ucb/XContent.hpp>
41cdf0e10cSrcweir #endif
42cdf0e10cSrcweir #ifndef _COM_SUN_STAR_LANG_XMULTISERVICEFACTORY_HPP_
43cdf0e10cSrcweir #include <com/sun/star/lang/XMultiServiceFactory.hpp>
44cdf0e10cSrcweir #endif
45cdf0e10cSrcweir 
46cdf0e10cSrcweir //.........................................................................
47cdf0e10cSrcweir namespace dbaui
48cdf0e10cSrcweir {
49cdf0e10cSrcweir //.........................................................................
50cdf0e10cSrcweir 	/* this class allows to browse through the collection of forms and reports
51cdf0e10cSrcweir 	*/
52cdf0e10cSrcweir 	class OCollectionView : public ModalDialog
53cdf0e10cSrcweir 	{
54cdf0e10cSrcweir 		FixedText		m_aFTCurrentPath;
55cdf0e10cSrcweir 		ImageButton		m_aNewFolder;
56cdf0e10cSrcweir 		ImageButton		m_aUp;
57cdf0e10cSrcweir 		SvtFileView		m_aView;
58cdf0e10cSrcweir 		FixedText		m_aFTName;
59cdf0e10cSrcweir 		Edit			m_aName;
60cdf0e10cSrcweir 		FixedLine		m_aFL;
61cdf0e10cSrcweir 		PushButton		m_aPB_OK;
62cdf0e10cSrcweir 		CancelButton	m_aPB_CANCEL;
63cdf0e10cSrcweir 		HelpButton		m_aPB_HELP;
64cdf0e10cSrcweir 		String			m_sPath;
65cdf0e10cSrcweir 		::com::sun::star::uno::Reference< ::com::sun::star::ucb::XContent>					m_xContent;
66cdf0e10cSrcweir 		::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >	m_xORB;
67cdf0e10cSrcweir 		Size			m_aDlgSize;
68cdf0e10cSrcweir 		Size			m_a6Size;
69cdf0e10cSrcweir 		sal_Int32		m_nFixDeltaHeight;
70cdf0e10cSrcweir 		sal_Bool		m_bCreateForm;
71cdf0e10cSrcweir 
72cdf0e10cSrcweir 		DECL_LINK(Up_Click,PushButton*);
73cdf0e10cSrcweir 		DECL_LINK(NewFolder_Click,PushButton*);
74cdf0e10cSrcweir 		DECL_LINK(Save_Click,PushButton*);
75cdf0e10cSrcweir 		DECL_LINK(Dbl_Click_FileView,SvtFileView*);
76cdf0e10cSrcweir 
77cdf0e10cSrcweir 		/// sets the fixedtext to the right content
78cdf0e10cSrcweir 		void initCurrentPath();
79cdf0e10cSrcweir 	public:
80cdf0e10cSrcweir 		OCollectionView( Window * pParent
81cdf0e10cSrcweir 						,const ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XContent>& _xContent
82cdf0e10cSrcweir 						,const ::rtl::OUString& _sDefaultName
83cdf0e10cSrcweir 						,const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _xORB);
84cdf0e10cSrcweir 		virtual ~OCollectionView();
85cdf0e10cSrcweir 
86cdf0e10cSrcweir 		::com::sun::star::uno::Reference< ::com::sun::star::ucb::XContent> getSelectedFolder() const;
87cdf0e10cSrcweir 		::rtl::OUString getName() const;
88cdf0e10cSrcweir 	};
89cdf0e10cSrcweir //.........................................................................
90cdf0e10cSrcweir }	// namespace dbaui
91cdf0e10cSrcweir //.........................................................................
92cdf0e10cSrcweir 
93cdf0e10cSrcweir 
94cdf0e10cSrcweir #endif //DBAUI_COLLECTIONVIEW_HXX
95cdf0e10cSrcweir 
96cdf0e10cSrcweir 
97