update dev300-m58
[ooovba.git] / chart2 / source / controller / dialogs / res_DataLabel.hxx
blobe560eed9f573bdc825287c242090d19d6ce1c4ea
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: res_DataLabel.hxx,v $
10 * $Revision: 1.5.72.1 $
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_RES_DATALABEL_HXX
31 #define CHART2_RES_DATALABEL_HXX
33 #include "res_TextSeparator.hxx"
34 // header for class CheckBox
35 #include <vcl/button.hxx>
36 // header for class SfxItemSet
37 #include <svtools/itemset.hxx>
38 #include "TextDirectionListBox.hxx"
40 #include <svx/dialcontrol.hxx>
42 class SvNumberFormatter;
44 //.............................................................................
45 namespace chart
47 //.............................................................................
49 class DataLabelResources
51 public:
52 DataLabelResources( Window* pParent, const SfxItemSet& rInAttrs );
53 virtual ~DataLabelResources();
55 BOOL FillItemSet(SfxItemSet& rOutAttrs) const;
56 void Reset(const SfxItemSet& rInAttrs);
58 void SetNumberFormatter( SvNumberFormatter* pFormatter );
60 private:
61 CheckBox m_aCBNumber;
62 PushButton m_aPB_NumberFormatForValue;
63 CheckBox m_aCBPercent;
64 PushButton m_aPB_NumberFormatForPercent;
65 CheckBox m_aCBCategory;
66 CheckBox m_aCBSymbol;
68 TextSeparatorResources m_aSeparatorResources;
70 FixedText m_aFT_LabelPlacement;
71 ListBox m_aLB_LabelPlacement;
73 FixedLine m_aFL_Rotate;
74 svx::DialControl m_aDC_Dial;
75 FixedText m_aFT_Degrees;
76 NumericField m_aNF_Degrees;
78 FixedText m_aFT_TextDirection;
79 TextDirectionListBox m_aLB_TextDirection;
81 ::std::map< sal_Int32, USHORT > m_aPlacementToListBoxMap;
82 ::std::map< USHORT, sal_Int32 > m_aListBoxToPlacementMap;
84 SvNumberFormatter* m_pNumberFormatter;
85 bool m_bNumberFormatMixedState;
86 bool m_bPercentFormatMixedState;
87 ULONG m_nNumberFormatForValue;
88 ULONG m_nNumberFormatForPercent;
90 bool m_bSourceFormatMixedState;
91 bool m_bPercentSourceMixedState;
92 bool m_bSourceFormatForValue;
93 bool m_bSourceFormatForPercent;
95 Window* m_pWindow;
96 SfxItemPool* m_pPool;
98 DECL_LINK(NumberFormatDialogHdl, PushButton * );
99 DECL_LINK(CheckHdl, CheckBox* );
100 void EnableControls();
103 //.............................................................................
104 } //namespace chart
105 //.............................................................................
107 #endif