1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef INCLUDED_CHART2_SOURCE_CONTROLLER_DIALOGS_RES_DATALABEL_HXX
20 #define INCLUDED_CHART2_SOURCE_CONTROLLER_DIALOGS_RES_DATALABEL_HXX
22 #define NUMBER_SEPARATORS 4
24 #include <vcl/button.hxx>
25 #include <vcl/layout.hxx>
26 #include <svl/itemset.hxx>
27 #include "TextDirectionListBox.hxx"
28 #include <svx/dialcontrol.hxx>
29 #include <sfx2/tabdlg.hxx>
31 class SvNumberFormatter
;
36 class DataLabelResources
39 DataLabelResources( VclBuilderContainer
* pWindow
, vcl::Window
* pParent
, const SfxItemSet
& rInAttrs
);
40 virtual ~DataLabelResources();
42 bool FillItemSet(SfxItemSet
* rOutAttrs
) const;
43 void Reset(const SfxItemSet
& rInAttrs
);
45 void SetNumberFormatter( SvNumberFormatter
* pFormatter
);
48 VclPtr
<CheckBox
> m_pCBNumber
;
49 VclPtr
<PushButton
> m_pPB_NumberFormatForValue
;
50 VclPtr
<CheckBox
> m_pCBPercent
;
51 VclPtr
<PushButton
> m_pPB_NumberFormatForPercent
;
52 VclPtr
<FixedText
> m_pFT_NumberFormatForPercent
;
53 VclPtr
<CheckBox
> m_pCBCategory
;
54 VclPtr
<CheckBox
> m_pCBSymbol
;
56 VclPtr
<VclHBox
> m_pSeparatorResources
;
57 VclPtr
<ListBox
> m_pLB_Separator
;
58 OUString m_aEntryMap
[NUMBER_SEPARATORS
];
60 VclPtr
<VclHBox
> m_pBxLabelPlacement
;
61 VclPtr
<ListBox
> m_pLB_LabelPlacement
;
63 VclPtr
<VclHBox
> m_pBxOrientation
;
64 VclPtr
<svx::DialControl
> m_pDC_Dial
;
65 VclPtr
<FixedText
> m_pFT_Dial
;
66 VclPtr
<NumericField
> m_pNF_Degrees
;
68 VclPtr
<VclHBox
> m_pBxTextDirection
;
69 VclPtr
<TextDirectionListBox
> m_pLB_TextDirection
;
71 ::std::map
< sal_Int32
, sal_uInt16
> m_aPlacementToListBoxMap
;
72 ::std::map
< sal_uInt16
, sal_Int32
> m_aListBoxToPlacementMap
;
74 SvNumberFormatter
* m_pNumberFormatter
;
75 bool m_bNumberFormatMixedState
;
76 bool m_bPercentFormatMixedState
;
77 sal_uLong m_nNumberFormatForValue
;
78 sal_uLong m_nNumberFormatForPercent
;
80 bool m_bSourceFormatMixedState
;
81 bool m_bPercentSourceMixedState
;
82 bool m_bSourceFormatForValue
;
83 bool m_bSourceFormatForPercent
;
85 VclPtr
<vcl::Window
> m_pWindow
;
88 DECL_LINK(NumberFormatDialogHdl
, PushButton
* );
89 DECL_LINK(CheckHdl
, CheckBox
* );
90 void EnableControls();
97 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */