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_TP_SERIESTOAXIS_HXX
24 #define _CHART2_TP_SERIESTOAXIS_HXX
25 
26 // header for SfxTabPage
27 #include <sfx2/tabdlg.hxx>
28 // header for FixedText
29 #include <vcl/fixed.hxx>
30 // header for CheckBox
31 #ifndef _SV_BUTTON_HXX
32 #include <vcl/button.hxx>
33 #endif
34 // header for MetricField
35 #include <vcl/field.hxx>
36 
37 //.............................................................................
38 namespace chart
39 {
40 //.............................................................................
41 
42 class SchOptionTabPage : public SfxTabPage
43 {
44 public:
45     SchOptionTabPage(Window* pParent, const SfxItemSet& rInAttrs);
46     virtual ~SchOptionTabPage();
47 
48     static SfxTabPage* Create(Window* pParent, const SfxItemSet& rInAttrs);
49     virtual sal_Bool FillItemSet(SfxItemSet& rOutAttrs);
50     virtual void Reset(const SfxItemSet& rInAttrs);
51 
52     void Init( bool bProvidesSecondaryYAxis, bool bProvidesOverlapAndGapWidth, bool bProvidesBarConnectors );
53 
54 private: //methods
55     void AdaptControlPositionsAndVisibility();
56 
57 private: //member
58     FixedLine	aGrpAxis;
59     RadioButton aRbtAxis1;
60     RadioButton aRbtAxis2;
61 
62     FixedLine	aGrpBar;
63     FixedText   aFTGap;
64     MetricField aMTGap;
65     FixedText   aFTOverlap;
66     MetricField aMTOverlap;
67     CheckBox	aCBConnect;
68     CheckBox    aCBAxisSideBySide;
69 
70     FixedLine   m_aFL_PlotOptions;
71     FixedText   m_aFT_MissingValues;
72     RadioButton m_aRB_DontPaint;
73     RadioButton m_aRB_AssumeZero;
74     RadioButton m_aRB_ContinueLine;
75 
76     CheckBox    m_aCBIncludeHiddenCells;
77 
78     DECL_LINK(EnableHdl, RadioButton * );
79 
80     sal_Int32   m_nAllSeriesAxisIndex;
81 
82     bool m_bProvidesSecondaryYAxis;
83     bool m_bProvidesOverlapAndGapWidth;
84     bool m_bProvidesBarConnectors;
85 };
86 
87 //.............................................................................
88 } //namespace chart
89 //.............................................................................
90 
91 #endif
92