xref: /aoo4110/main/dbaccess/source/ui/inc/dlgsize.hxx (revision b1cdbd2c)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef _DBAUI_DLGSIZE_HXX
24 #define _DBAUI_DLGSIZE_HXX
25 
26 #ifndef _DIALOG_HXX //autogen
27 #include <vcl/dialog.hxx>
28 #endif
29 
30 #ifndef _FIELD_HXX //autogen
31 #include <vcl/field.hxx>
32 #endif
33 
34 #ifndef _BUTTON_HXX //autogen
35 #include <vcl/button.hxx>
36 #endif
37 
38 #ifndef _FIXED_HXX //autogen
39 #include <vcl/fixed.hxx>
40 #endif
41 
42 //.........................................................................
43 namespace dbaui
44 {
45 //.........................................................................
46 
47 	class DlgSize : public ModalDialog
48 	{
49 	private:
50 		sal_Int32		m_nPrevValue, m_nStandard;
51 		void			SetValue( sal_Int32 nVal );
52 
53 	protected:
54 		DECL_LINK( CbClickHdl, Button * );
55 
56 		FixedText		aFT_VALUE;
57 		MetricField		aMF_VALUE;
58 		CheckBox		aCB_STANDARD;
59 		OKButton		aPB_OK;
60 		CancelButton	aPB_CANCEL;
61 		HelpButton		aPB_HELP;
62 
63 	public:
64 		DlgSize( Window * pParent, sal_Int32 nVal, sal_Bool bRow, sal_Int32 _nAlternativeStandard = -1 );
65 		~DlgSize();
66 
67 		sal_Int32 GetValue();
68 	};
69 //.........................................................................
70 }	// namespace dbaui
71 //.........................................................................
72 
73 #endif // _DBAUI_DLGSIZE_HXX
74 
75