merge the formfield patch from ooo-build
[ooovba.git] / chart2 / source / controller / dialogs / tp_AxisPositions.hxx
blobfa242aee896125e7c57ab170fa93749836249807
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: tp_AxisPositions.hxx,v $
10 * $Revision: 1.1.4.2 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _CHART2_TP_AXISPOSITIONS_HXX
31 #define _CHART2_TP_AXISPOSITIONS_HXX
33 // header for SfxTabPage
34 #include <sfx2/tabdlg.hxx>
35 #include <svtools/fmtfield.hxx>
36 #include <vcl/fixed.hxx>
37 #include <vcl/button.hxx>
38 #include <vcl/field.hxx>
39 #include <vcl/lstbox.hxx>
40 //class SvNumberFormatter;
42 //.............................................................................
43 namespace chart
45 //.............................................................................
47 class AxisPositionsTabPage : public SfxTabPage
49 public:
50 AxisPositionsTabPage( Window* pParent, const SfxItemSet& rInAttrs );
52 static SfxTabPage* Create( Window* pParent, const SfxItemSet& rInAttrs );
53 virtual BOOL FillItemSet( SfxItemSet& rOutAttrs );
54 virtual void Reset( const SfxItemSet& rInAttrs );
55 using TabPage::DeactivatePage;
56 virtual int DeactivatePage( SfxItemSet* pItemSet = NULL );
58 void SetNumFormatter( SvNumberFormatter* pFormatter );
60 void SetCrossingAxisIsCategoryAxis( bool bCrossingAxisIsCategoryAxis );
61 void SetCategories( const ::com::sun::star::uno::Sequence< rtl::OUString >& rCategories );
63 void SupportAxisPositioning( bool bSupportAxisPositioning );
65 private: //methods:
66 DECL_LINK( CrossesAtSelectHdl, void* );
67 DECL_LINK( PlaceLabelsSelectHdl, void* );
69 private: //member:
70 FixedLine m_aFL_AxisLine;
71 FixedText m_aFT_CrossesAt;
72 ListBox m_aLB_CrossesAt;
73 FormattedField m_aED_CrossesAt;
74 ComboBox m_aED_CrossesAtCategory;
75 CheckBox m_aCB_AxisBetweenCategories;
77 FixedLine m_aFL_Labels;
78 FixedText m_aFT_PlaceLabels;
79 ListBox m_aLB_PlaceLabels;
80 FixedText m_aFT_LabelDistance;
81 FormattedField m_aED_LabelDistance;
83 FixedLine m_aFL_Ticks;
85 FixedText m_aFT_Major;
86 CheckBox m_aCB_TicksInner;
87 CheckBox m_aCB_TicksOuter;
89 FixedText m_aFT_Minor;
90 CheckBox m_aCB_MinorInner;
91 CheckBox m_aCB_MinorOuter;
93 FixedLine m_aFL_Vertical;
94 FixedText m_aFT_PlaceTicks;
95 ListBox m_aLB_PlaceTicks;
97 FixedLine m_aFL_Grids;
98 CheckBox m_aCB_MajorGrid;
99 PushButton m_aPB_MajorGrid;
100 CheckBox m_aCB_MinorGrid;
101 PushButton m_aPB_MinorGrid;
103 SvNumberFormatter* m_pNumFormatter;
105 bool m_bCrossingAxisIsCategoryAxis;
106 ::com::sun::star::uno::Sequence< rtl::OUString > m_aCategories;
108 bool m_bSupportAxisPositioning;
111 //.............................................................................
112 } //namespace chart
113 //.............................................................................
115 #endif