LibreOffice Module chart2 (master) 1
res_DataLabel.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19#pragma once
20
21#include <svl/itemset.hxx>
22#include <svx/dialcontrol.hxx>
24
25#include <map>
26
28
29namespace chart
30{
31
33{
34public:
35 DataLabelResources(weld::Builder* pBuilder, weld::Window* pParent, const SfxItemSet& rInAttrs);
37
38 void FillItemSet(SfxItemSet* rOutAttrs) const;
39 void Reset(const SfxItemSet& rInAttrs);
40
41 void SetNumberFormatter( SvNumberFormatter* pFormatter );
42
43private:
44 std::map< sal_Int32, sal_uInt16 > m_aPlacementToListBoxMap;
45 std::map< sal_uInt16, sal_Int32 > m_aListBoxToPlacementMap;
46
52
57
60
68
69 std::unique_ptr<weld::CheckButton> m_xCBNumber;
70 std::unique_ptr<weld::Button> m_xPB_NumberFormatForValue;
71 std::unique_ptr<weld::CheckButton> m_xCBPercent;
72 std::unique_ptr<weld::Button> m_xPB_NumberFormatForPercent;
73 std::unique_ptr<weld::Label> m_xFT_NumberFormatForPercent;
74 std::unique_ptr<weld::CheckButton> m_xCBCategory;
75 std::unique_ptr<weld::CheckButton> m_xCBSymbol;
76 std::unique_ptr<weld::CheckButton> m_xCBDataSeries;
77 std::unique_ptr<weld::CheckButton> m_xCBWrapText;
78
79 std::unique_ptr<weld::ComboBox> m_xLB_Separator;
80 std::unique_ptr<weld::ComboBox> m_xLB_LabelPlacement;
81
82 std::unique_ptr<weld::Widget> m_xBxOrientation;
83 std::unique_ptr<weld::Label> m_xFT_Dial;
84 std::unique_ptr<weld::MetricSpinButton> m_xNF_Degrees;
85
86 std::unique_ptr<weld::Widget> m_xBxTextDirection;
87
89 std::unique_ptr<svx::DialControl> m_xDC_Dial;
90 std::unique_ptr<weld::CustomWeld> m_xDC_DialWin;
91
92 std::unique_ptr<weld::CheckButton> m_xCBCustomLeaderLines;
93
94 DECL_LINK(NumberFormatDialogHdl, weld::Button&, void );
95 DECL_LINK(CheckHdl, weld::Toggleable&, void );
96 void EnableControls();
97};
98
99} //namespace chart
100
101/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::Button > m_xPB_NumberFormatForPercent
std::unique_ptr< weld::ComboBox > m_xLB_Separator
std::map< sal_uInt16, sal_Int32 > m_aListBoxToPlacementMap
void Reset(const SfxItemSet &rInAttrs)
std::unique_ptr< weld::CheckButton > m_xCBDataSeries
std::unique_ptr< weld::MetricSpinButton > m_xNF_Degrees
std::unique_ptr< weld::Label > m_xFT_Dial
weld::TriStateEnabled m_aNumberState
std::unique_ptr< weld::CheckButton > m_xCBCategory
std::unique_ptr< weld::Widget > m_xBxOrientation
weld::TriStateEnabled m_aPercentState
DECL_LINK(NumberFormatDialogHdl, weld::Button &, void)
std::unique_ptr< weld::CheckButton > m_xCBCustomLeaderLines
SvNumberFormatter * m_pNumberFormatter
std::unique_ptr< weld::Widget > m_xBxTextDirection
std::unique_ptr< weld::CheckButton > m_xCBPercent
std::unique_ptr< weld::CheckButton > m_xCBNumber
weld::TriStateEnabled m_aWrapTextState
std::unique_ptr< weld::Label > m_xFT_NumberFormatForPercent
TextDirectionListBox m_aLB_TextDirection
weld::TriStateEnabled m_aDataSeriesState
std::unique_ptr< weld::ComboBox > m_xLB_LabelPlacement
std::map< sal_Int32, sal_uInt16 > m_aPlacementToListBoxMap
std::unique_ptr< weld::CustomWeld > m_xDC_DialWin
DataLabelResources(weld::Builder *pBuilder, weld::Window *pParent, const SfxItemSet &rInAttrs)
std::unique_ptr< svx::DialControl > m_xDC_Dial
void SetNumberFormatter(SvNumberFormatter *pFormatter)
sal_uInt32 m_nNumberFormatForPercent
DECL_LINK(CheckHdl, weld::Toggleable &, void)
std::unique_ptr< weld::Button > m_xPB_NumberFormatForValue
weld::TriStateEnabled m_aCustomLeaderLinesState
weld::TriStateEnabled m_aSymbolState
std::unique_ptr< weld::CheckButton > m_xCBWrapText
void FillItemSet(SfxItemSet *rOutAttrs) const
weld::TriStateEnabled m_aCategoryState
std::unique_ptr< weld::CheckButton > m_xCBSymbol