xref: /trunk/main/dbaccess/source/ui/dlg/AdabasStat.hxx (revision cdf0e10c)
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 #ifndef _DBAUI_ADASTAT_HXX_
28 #define _DBAUI_ADASTAT_HXX_
29 
30 #ifndef _SV_FIXED_HXX
31 #include <vcl/fixed.hxx>
32 #endif
33 #ifndef _SV_BUTTON_HXX
34 #include <vcl/button.hxx>
35 #endif
36 #ifndef _SV_DIALOG_HXX
37 #include <vcl/dialog.hxx>
38 #endif
39 #ifndef DBAUI_FIELDCONTROLS_HXX
40 #include "FieldControls.hxx"
41 #endif
42 #ifndef _PRGSBAR_HXX
43 #include <svtools/prgsbar.hxx>
44 #endif
45 #ifndef _COM_SUN_STAR_SDBC_XCONNECTION_HPP_
46 #include <com/sun/star/sdbc/XConnection.hpp>
47 #endif
48 #ifndef _COM_SUN_STAR_LANG_XMULTISERVICEFACTORY_HPP_
49 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
50 #endif
51 
52 
53 namespace dbaui
54 {
55 	//========================================================================
56 	// shows some statistics
57 	//========================================================================
58 	class OAdabasStatistics : public ModalDialog
59 	{
60 	protected:
61 
62         FixedLine               m_FL_FILES;
63 		FixedText				m_FT_SYSDEVSPACE;
64 		OPropEditCtrl			m_ET_SYSDEVSPACE;
65 		FixedText				m_FT_TRANSACTIONLOG;
66 		OPropEditCtrl			m_ET_TRANSACTIONLOG;
67 		FixedText				m_FT_DATADEVSPACE;
68 		OPropListBoxCtrl		m_LB_DATADEVS;
69         FixedLine               m_FL_SIZES;
70 		FixedText				m_FT_SIZE;
71 		OPropEditCtrl			m_ET_SIZE;
72 		FixedText				m_FT_FREESIZE;
73 		OPropEditCtrl			m_ET_FREESIZE;
74 		FixedText				m_FT_MEMORYUSING;
75 		OPropNumericEditCtrl	m_ET_MEMORYUSING;
76 
77 		OKButton				m_PB_OK;
78 
79 		::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >
80 								m_xConnection;	/// valid as long as the page is active
81 		sal_Bool				m_bErrorShown; // true when we shown already the error
82 
83 		// check if the given table is accessable by the connected user
84 		sal_Bool checkSystemTable(const ::rtl::OUString& _rsSystemTable, ::rtl::OUString& _rsSchemaName );
85 		void showError();
86 
87 	public:
88 		OAdabasStatistics(	Window* pParent,
89 							const ::rtl::OUString& _rUser,
90 							const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _xCurrentConnection,
91 							const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _xFactory);
92 		~OAdabasStatistics();
93 
94 	};
95 }
96 #endif //_DBAUI_ADASTAT_HXX_
97 
98 
99