Line data Source code
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 :
10 : #include <vcl/button.hxx>
11 : #include <vcl/dialog.hxx>
12 : #include <vcl/fixed.hxx>
13 : #include <svtools/ctrlbox.hxx>
14 : #include <svl/zforlist.hxx>
15 : #include "anyrefdg.hxx"
16 :
17 : struct ScDataBarFormatData;
18 : class ScDocument;
19 :
20 0 : class ScDataBarSettingsDlg : public ModalDialog
21 : {
22 : private:
23 : OKButton maBtnOk;
24 : CancelButton maBtnCancel;
25 : FixedLine maFlBarColors;
26 : FixedLine maFlAxes;
27 : FixedLine maFlValues;
28 :
29 : FixedText maFtMin;
30 : FixedText maFtMax;
31 : FixedText maFtPositive;
32 : FixedText maFtNegative;
33 : FixedText maFtPosition;
34 : FixedText maFtAxisColor;
35 :
36 : ColorListBox maLbPos;
37 : ColorListBox maLbNeg;
38 : ColorListBox maLbAxisCol;
39 :
40 : ListBox maLbTypeMin;
41 : ListBox maLbTypeMax;
42 : ListBox maLbAxisPos;
43 :
44 : Edit maEdMin;
45 : Edit maEdMax;
46 :
47 : OUString maStrWarnSameValue;
48 : SvNumberFormatter* mpNumberFormatter;
49 :
50 : ScDocument* mpDoc;
51 : ScAddress maPos;
52 :
53 : DECL_LINK(OkBtnHdl, void*);
54 : DECL_LINK(TypeSelectHdl, void*);
55 :
56 : void Init();
57 :
58 : public:
59 : ScDataBarSettingsDlg(Window* pParent, const ScDataBarFormatData& rData, ScDocument* pDoc, const ScAddress& rPos);
60 :
61 : ScDataBarFormatData* GetData();
62 : };
63 :
64 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|