update dev300-m58
[ooovba.git] / dbaccess / source / ui / inc / dlgsize.hxx
blobb5bc327ec5c778ec082e8c2b150ba60e07b5152a
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: dlgsize.hxx,v $
10 * $Revision: 1.4 $
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_DLGSIZE_HXX
31 #define _DBAUI_DLGSIZE_HXX
33 #ifndef _DIALOG_HXX //autogen
34 #include <vcl/dialog.hxx>
35 #endif
37 #ifndef _FIELD_HXX //autogen
38 #include <vcl/field.hxx>
39 #endif
41 #ifndef _BUTTON_HXX //autogen
42 #include <vcl/button.hxx>
43 #endif
45 #ifndef _FIXED_HXX //autogen
46 #include <vcl/fixed.hxx>
47 #endif
49 //.........................................................................
50 namespace dbaui
52 //.........................................................................
54 class DlgSize : public ModalDialog
56 private:
57 sal_Int32 m_nPrevValue, m_nStandard;
58 void SetValue( sal_Int32 nVal );
60 protected:
61 DECL_LINK( CbClickHdl, Button * );
63 FixedText aFT_VALUE;
64 MetricField aMF_VALUE;
65 CheckBox aCB_STANDARD;
66 OKButton aPB_OK;
67 CancelButton aPB_CANCEL;
68 HelpButton aPB_HELP;
70 public:
71 DlgSize( Window * pParent, sal_Int32 nVal, BOOL bRow, sal_Int32 _nAlternativeStandard = -1 );
72 ~DlgSize();
74 sal_Int32 GetValue();
76 //.........................................................................
77 } // namespace dbaui
78 //.........................................................................
80 #endif // _DBAUI_DLGSIZE_HXX