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