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