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 _CHART2_DLG_INSERT_AXIS_GRID_HXX
24 #define _CHART2_DLG_INSERT_AXIS_GRID_HXX
25 
26 // header for class ModalDialog
27 #include <vcl/dialog.hxx>
28 // header for class FixedLine
29 #include <vcl/fixed.hxx>
30 // header for class CheckBox
31 #ifndef _SV_BUTTON_HXX
32 #include <vcl/button.hxx>
33 #endif
34 #include <com/sun/star/uno/Sequence.hxx>
35 
36 //.............................................................................
37 namespace chart
38 {
39 //.............................................................................
40 
41 struct InsertAxisOrGridDialogData
42 {
43     ::com::sun::star::uno::Sequence< sal_Bool > aPossibilityList;
44     ::com::sun::star::uno::Sequence< sal_Bool > aExistenceList;
45 
46     InsertAxisOrGridDialogData();
47 };
48 
49 /*************************************************************************
50 |*
51 |* insert Axis dialog (also base for grid dialog)
52 |*
53 \************************************************************************/
54 class SchAxisDlg : public ModalDialog
55 {
56 protected:
57 	FixedLine			aFlPrimary;
58     FixedLine			aFlPrimaryGrid;
59 	CheckBox			aCbPrimaryX;
60 	CheckBox			aCbPrimaryY;
61 	CheckBox			aCbPrimaryZ;
62 
63 	FixedLine			aFlSecondary;
64     FixedLine			aFlSecondaryGrid;
65 	CheckBox			aCbSecondaryX;
66 	CheckBox			aCbSecondaryY;
67     CheckBox			aCbSecondaryZ;
68 
69 	OKButton			aPbOK;
70 	CancelButton		aPbCancel;
71 	HelpButton	 		aPbHelp;
72 
73 public:
74 	SchAxisDlg( Window* pParent, const InsertAxisOrGridDialogData& rInput, sal_Bool bAxisDlg=true );
75 	virtual ~SchAxisDlg();
76 
77     void getResult( InsertAxisOrGridDialogData& rOutput );
78 };
79 
80 
81 /*************************************************************************
82 |*
83 |* Grid dialog
84 |*
85 \************************************************************************/
86 class SchGridDlg : public SchAxisDlg
87 {
88 public:
89 	SchGridDlg( Window* pParent, const InsertAxisOrGridDialogData& rInput );
90 	virtual ~SchGridDlg();
91 };
92 
93 //.............................................................................
94 } //namespace chart
95 //.............................................................................
96 
97 #endif
98