Stop leaking all ScPostIt instances.
[LibreOffice.git] / sc / source / ui / inc / tpcalc.hxx
blob645d98fb0405acf5e641ef70527ac7be55b99d77
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/.
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 .
20 #ifndef SC_TPCALC_HXX
21 #define SC_TPCALC_HXX
24 #include <sfx2/tabdlg.hxx>
25 #include <vcl/fixed.hxx>
26 #include <vcl/field.hxx>
27 #include <vcl/group.hxx>
28 #include <svtools/stdctrl.hxx>
29 #include "editfield.hxx"
31 //===================================================================
33 class ScDocOptions;
35 class ScTpCalcOptions : public SfxTabPage
37 public:
38 static SfxTabPage* Create ( Window* pParent,
39 const SfxItemSet& rCoreSet );
40 virtual sal_Bool FillItemSet ( SfxItemSet& rCoreSet );
41 virtual void Reset ( const SfxItemSet& rCoreSet );
42 using SfxTabPage::DeactivatePage;
43 virtual int DeactivatePage ( SfxItemSet* pSet = NULL );
45 private:
46 ScTpCalcOptions( Window* pParent,
47 const SfxItemSet& rCoreSet );
48 ~ScTpCalcOptions();
50 private:
51 CheckBox* m_pBtnIterate;
52 FixedText* m_pFtSteps;
53 NumericField* m_pEdSteps;
54 FixedText* m_pFtEps;
55 ScDoubleField* m_pEdEps;
57 RadioButton* m_pBtnDateStd;
58 RadioButton* m_pBtnDateSc10;
59 RadioButton* m_pBtnDate1904;
61 CheckBox* m_pBtnCase;
62 CheckBox* m_pBtnCalc;
63 CheckBox* m_pBtnMatch;
64 CheckBox* m_pBtnRegex;
65 CheckBox* m_pBtnLookUp;
66 CheckBox* m_pBtnGeneralPrec;
68 FixedText* m_pFtPrec;
69 NumericField* m_pEdPrec;
71 ScDocOptions* pOldOptions;
72 ScDocOptions* pLocalOptions;
73 sal_uInt16 nWhichCalc;
75 private:
76 void Init();
78 //------------------------------------
79 // Handler:
80 DECL_LINK( RadioClickHdl, RadioButton* );
81 DECL_LINK( CheckClickHdl, CheckBox* );
85 #endif
87 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */