1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
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.
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).
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.
26 ************************************************************************/
27 #ifndef CHART2_RES_DATALABEL_HXX
28 #define CHART2_RES_DATALABEL_HXX
30 #include "res_TextSeparator.hxx"
31 // header for class CheckBox
32 #include <vcl/button.hxx>
33 // header for class SfxItemSet
34 #include <svl/itemset.hxx>
35 #include "TextDirectionListBox.hxx"
37 #include <svx/dialcontrol.hxx>
39 class SvNumberFormatter
;
41 //.............................................................................
44 //.............................................................................
46 class DataLabelResources
49 DataLabelResources( Window
* pParent
, const SfxItemSet
& rInAttrs
);
50 virtual ~DataLabelResources();
52 BOOL
FillItemSet(SfxItemSet
& rOutAttrs
) const;
53 void Reset(const SfxItemSet
& rInAttrs
);
55 void SetNumberFormatter( SvNumberFormatter
* pFormatter
);
59 PushButton m_aPB_NumberFormatForValue
;
60 CheckBox m_aCBPercent
;
61 PushButton m_aPB_NumberFormatForPercent
;
62 CheckBox m_aCBCategory
;
65 TextSeparatorResources m_aSeparatorResources
;
67 FixedText m_aFT_LabelPlacement
;
68 ListBox m_aLB_LabelPlacement
;
70 FixedLine m_aFL_Rotate
;
71 svx::DialControl m_aDC_Dial
;
72 FixedText m_aFT_Degrees
;
73 NumericField m_aNF_Degrees
;
75 FixedText m_aFT_TextDirection
;
76 TextDirectionListBox m_aLB_TextDirection
;
78 ::std::map
< sal_Int32
, USHORT
> m_aPlacementToListBoxMap
;
79 ::std::map
< USHORT
, sal_Int32
> m_aListBoxToPlacementMap
;
81 SvNumberFormatter
* m_pNumberFormatter
;
82 bool m_bNumberFormatMixedState
;
83 bool m_bPercentFormatMixedState
;
84 ULONG m_nNumberFormatForValue
;
85 ULONG m_nNumberFormatForPercent
;
87 bool m_bSourceFormatMixedState
;
88 bool m_bPercentSourceMixedState
;
89 bool m_bSourceFormatForValue
;
90 bool m_bSourceFormatForPercent
;
95 DECL_LINK(NumberFormatDialogHdl
, PushButton
* );
96 DECL_LINK(CheckHdl
, CheckBox
* );
97 void EnableControls();
100 //.............................................................................
102 //.............................................................................