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: AdabasStat.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 ************************************************************************/
30 #ifndef _DBAUI_ADASTAT_HXX_
31 #define _DBAUI_ADASTAT_HXX_
34 #include <vcl/fixed.hxx>
36 #ifndef _SV_BUTTON_HXX
37 #include <vcl/button.hxx>
39 #ifndef _SV_DIALOG_HXX
40 #include <vcl/dialog.hxx>
42 #ifndef DBAUI_FIELDCONTROLS_HXX
43 #include "FieldControls.hxx"
46 #include <svtools/prgsbar.hxx>
48 #ifndef _COM_SUN_STAR_SDBC_XCONNECTION_HPP_
49 #include <com/sun/star/sdbc/XConnection.hpp>
51 #ifndef _COM_SUN_STAR_LANG_XMULTISERVICEFACTORY_HPP_
52 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
58 //========================================================================
59 // shows some statistics
60 //========================================================================
61 class OAdabasStatistics
: public ModalDialog
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
;
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
;
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
);
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
);
99 #endif //_DBAUI_ADASTAT_HXX_