xref: /trunk/main/chart2/source/controller/dialogs/tp_AxisLabel.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_TP_AXISLABEL_HXX
28 #define _CHART2_TP_AXISLABEL_HXX
29 
30 #include <sfx2/tabdlg.hxx>
31 #include <vcl/button.hxx>
32 #include <vcl/fixed.hxx>
33 #include <svx/dialcontrol.hxx>
34 #include <svx/wrapfield.hxx>
35 #include <svx/orienthelper.hxx>
36 #include "TextDirectionListBox.hxx"
37 
38 //.............................................................................
39 namespace chart
40 {
41 //.............................................................................
42 
43 //-----------------------------------------------------------------------------
44 /**
45 */
46 
47 class SchAxisLabelTabPage : public SfxTabPage
48 {
49 private:
50     CheckBox            aCbShowDescription;
51 
52     FixedLine           aFlOrder;
53     RadioButton         aRbSideBySide;
54     RadioButton         aRbUpDown;
55     RadioButton         aRbDownUp;
56     RadioButton         aRbAuto;
57 
58     FixedLine           aFlSeparator;
59     FixedLine           aFlTextFlow;
60     CheckBox            aCbTextOverlap;
61     CheckBox            aCbTextBreak;
62 
63     FixedLine           aFlOrient;
64     svx::DialControl    aCtrlDial;
65     FixedText           aFtRotate;
66     svx::WrapField      aNfRotate;
67     TriStateBox         aCbStacked;
68     svx::OrientationHelper aOrientHlp;
69 
70     FixedText               m_aFtTextDirection;
71     TextDirectionListBox    m_aLbTextDirection;
72 
73     sal_Bool                m_bShowStaggeringControls;
74 
75     sal_Int32           m_nInitialDegrees;
76     bool                m_bHasInitialDegrees;       /// false = DialControl in tristate
77     bool                m_bInitialStacking;
78     bool                m_bHasInitialStacking;      /// false = checkbox in tristate
79     bool                m_bComplexCategories;
80 
81     DECL_LINK ( ToggleShowLabel, void* );
82 
83 public:
84     SchAxisLabelTabPage( Window* pParent, const SfxItemSet& rInAttrs );
85     virtual ~SchAxisLabelTabPage();
86 
87     void    Construct();
88 
89     static SfxTabPage* Create( Window* pParent, const SfxItemSet& rInAttrs );
90     virtual sal_Bool FillItemSet( SfxItemSet& rOutAttrs );
91     virtual void Reset( const SfxItemSet& rInAttrs );
92 
93     void ShowStaggeringControls( sal_Bool bShowStaggeringControls );
94     void SetComplexCategories( bool bComplexCategories );
95 };
96 //.............................................................................
97 } //namespace chart
98 //.............................................................................
99 
100 #endif
101 
102