xref: /aoo41x/main/sc/source/ui/inc/corodlg.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 
28 #ifndef SC_CORODLG_HXX
29 #define SC_CORODLG_HXX
30 
31 #ifndef _DIALOG_HXX //autogen
32 #include <vcl/dialog.hxx>
33 #endif
34 #ifndef _BUTTON_HXX //autogen
35 #include <vcl/button.hxx>
36 #endif
37 #ifndef _FIXED_HXX //autogen
38 #include <vcl/fixed.hxx>
39 #endif
40 
41 #include "sc.hrc"
42 #include "scresid.hxx"
43 
44 //------------------------------------------------------------------------
45 
46 class ScColRowLabelDlg : public ModalDialog
47 {
48 public:
49 			ScColRowLabelDlg( Window* pParent,
50 							  sal_Bool bCol = sal_False,
51 							  sal_Bool bRow = sal_False )
52 				: ModalDialog( pParent, ScResId( RID_SCDLG_CHARTCOLROW ) ),
53                   aFlColRow  ( this, ScResId(6) ),
54 				  aBtnRow	 ( this, ScResId(2) ),
55 				  aBtnCol	 ( this, ScResId(1) ),
56 				  aBtnOk	 ( this, ScResId(3) ),
57 				  aBtnCancel ( this, ScResId(4) ),
58                   aBtnHelp   ( this, ScResId(5) )
59 				{
60 					FreeResource();
61 					aBtnCol.Check( bCol );
62 					aBtnRow.Check( bRow );
63 				}
64 
65 	sal_Bool IsCol() { return aBtnCol.IsChecked(); }
66 	sal_Bool IsRow() { return aBtnRow.IsChecked(); }
67 
68 private:
69     FixedLine       aFlColRow;
70 	CheckBox		aBtnRow;
71 	CheckBox		aBtnCol;
72 	OKButton		aBtnOk;
73 	CancelButton	aBtnCancel;
74 	HelpButton		aBtnHelp;
75 };
76 
77 
78 #endif
79 
80 
81 
82