Stop leaking all ScPostIt instances.
[LibreOffice.git] / sc / source / ui / inc / colorformat.hxx
blobcf094b5bf09829e3579fcb179748f6d65a28cfbe
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
8 */
10 #ifndef SC_COLORFORMAT_HXX
11 #define SC_COLORFORMAT_HXX
13 #include <vcl/button.hxx>
14 #include <vcl/dialog.hxx>
15 #include <vcl/fixed.hxx>
16 #include <svtools/ctrlbox.hxx>
17 #include <svl/zforlist.hxx>
18 #include "anyrefdg.hxx"
20 struct ScDataBarFormatData;
21 class ScDocument;
23 class ScDataBarSettingsDlg : public ModalDialog
25 private:
26 OKButton maBtnOk;
27 CancelButton maBtnCancel;
28 FixedLine maFlBarColors;
29 FixedLine maFlAxes;
30 FixedLine maFlValues;
32 FixedText maFtMin;
33 FixedText maFtMax;
34 FixedText maFtPositive;
35 FixedText maFtNegative;
36 FixedText maFtPosition;
37 FixedText maFtAxisColor;
39 ColorListBox maLbPos;
40 ColorListBox maLbNeg;
41 ColorListBox maLbAxisCol;
43 ListBox maLbTypeMin;
44 ListBox maLbTypeMax;
45 ListBox maLbAxisPos;
47 Edit maEdMin;
48 Edit maEdMax;
50 OUString maStrWarnSameValue;
51 SvNumberFormatter* mpNumberFormatter;
53 ScDocument* mpDoc;
54 ScAddress maPos;
56 DECL_LINK(OkBtnHdl, void*);
57 DECL_LINK(TypeSelectHdl, void*);
59 void Init();
61 public:
62 ScDataBarSettingsDlg(Window* pParent, const ScDataBarFormatData& rData, ScDocument* pDoc, const ScAddress& rPos);
64 ScDataBarFormatData* GetData();
67 #endif
69 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */