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