LibreOffice Module sc (master)  1
tpcalc.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 
20 #ifndef INCLUDED_SC_SOURCE_UI_INC_TPCALC_HXX
21 #define INCLUDED_SC_SOURCE_UI_INC_TPCALC_HXX
22 
23 #include <sfx2/tabdlg.hxx>
24 #include "editfield.hxx"
25 
26 class ScDocOptions;
27 
29 {
30 public:
31  ScTpCalcOptions(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rCoreSet);
32  static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rCoreSet);
33  virtual ~ScTpCalcOptions() override;
34  virtual bool FillItemSet ( SfxItemSet* rCoreSet ) override;
35  virtual void Reset ( const SfxItemSet* rCoreSet ) override;
36  virtual DeactivateRC DeactivatePage ( SfxItemSet* pSet ) override;
37 
38 private:
39  std::unique_ptr<ScDocOptions> pOldOptions;
40  std::unique_ptr<ScDocOptions> pLocalOptions;
41  sal_uInt16 nWhichCalc;
42 
43  std::unique_ptr<weld::CheckButton> m_xBtnIterate;
44  std::unique_ptr<weld::Label> m_xFtSteps;
45  std::unique_ptr<weld::SpinButton> m_xEdSteps;
46  std::unique_ptr<weld::Label> m_xFtEps;
47  std::unique_ptr<ScDoubleField> m_xEdEps;
48 
49  std::unique_ptr<weld::RadioButton> m_xBtnDateStd;
50  std::unique_ptr<weld::RadioButton> m_xBtnDateSc10;
51  std::unique_ptr<weld::RadioButton> m_xBtnDate1904;
52 
53  std::unique_ptr<weld::CheckButton> m_xBtnCase;
54  std::unique_ptr<weld::CheckButton> m_xBtnCalc;
55  std::unique_ptr<weld::CheckButton> m_xBtnMatch;
56  std::unique_ptr<weld::RadioButton> m_xBtnWildcards;
57  std::unique_ptr<weld::RadioButton> m_xBtnRegex;
58  std::unique_ptr<weld::RadioButton> m_xBtnLiteral;
59  std::unique_ptr<weld::CheckButton> m_xBtnLookUp;
60  std::unique_ptr<weld::CheckButton> m_xBtnGeneralPrec;
61 
62  std::unique_ptr<weld::Label> m_xFtPrec;
63  std::unique_ptr<weld::SpinButton> m_xEdPrec;
64 
65  std::unique_ptr<weld::CheckButton> m_xBtnThread;
66 
67 private:
68  void Init();
69 
70  // Handler:
71  DECL_LINK( RadioClickHdl, weld::Button&, void );
72  DECL_LINK( CheckClickHdl, weld::ToggleButton&, void );
73 };
74 
75 #endif
76 
77 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::CheckButton > m_xBtnCase
Definition: tpcalc.hxx:53
std::unique_ptr< weld::CheckButton > m_xBtnThread
Definition: tpcalc.hxx:65
const SfxItemSet * pSet
virtual void Reset(const SfxItemSet *rCoreSet) override
Definition: tpcalc.cxx:85
virtual bool FillItemSet(SfxItemSet *rCoreSet) override
Definition: tpcalc.cxx:160
virtual ~ScTpCalcOptions() override
Definition: tpcalc.cxx:66
std::unique_ptr< weld::SpinButton > m_xEdPrec
Definition: tpcalc.hxx:63
std::unique_ptr< weld::RadioButton > m_xBtnRegex
Definition: tpcalc.hxx:57
std::unique_ptr< ScDoubleField > m_xEdEps
Definition: tpcalc.hxx:47
ScTpCalcOptions(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rCoreSet)
Definition: tpcalc.cxx:35
std::unique_ptr< weld::RadioButton > m_xBtnDate1904
Definition: tpcalc.hxx:51
std::unique_ptr< weld::CheckButton > m_xBtnMatch
Definition: tpcalc.hxx:55
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: tpcalc.cxx:198
std::unique_ptr< weld::RadioButton > m_xBtnWildcards
Definition: tpcalc.hxx:56
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rCoreSet)
Definition: tpcalc.cxx:80
DECL_LINK(RadioClickHdl, weld::Button &, void)
sal_uInt16 nWhichCalc
Definition: tpcalc.hxx:41
std::unique_ptr< ScDocOptions > pOldOptions
Definition: tpcalc.hxx:39
std::unique_ptr< weld::CheckButton > m_xBtnGeneralPrec
Definition: tpcalc.hxx:60
std::unique_ptr< weld::CheckButton > m_xBtnCalc
Definition: tpcalc.hxx:54
std::unique_ptr< weld::Label > m_xFtEps
Definition: tpcalc.hxx:46
std::unique_ptr< weld::SpinButton > m_xEdSteps
Definition: tpcalc.hxx:45
std::unique_ptr< weld::Label > m_xFtPrec
Definition: tpcalc.hxx:62
std::unique_ptr< weld::CheckButton > m_xBtnLookUp
Definition: tpcalc.hxx:59
DeactivateRC
std::unique_ptr< weld::RadioButton > m_xBtnDateStd
Definition: tpcalc.hxx:49
std::unique_ptr< ScDocOptions > pLocalOptions
Definition: tpcalc.hxx:40
std::unique_ptr< weld::CheckButton > m_xBtnIterate
Definition: tpcalc.hxx:43
std::unique_ptr< weld::Label > m_xFtSteps
Definition: tpcalc.hxx:44
void Init()
Definition: tpcalc.cxx:70
std::unique_ptr< weld::RadioButton > m_xBtnDateSc10
Definition: tpcalc.hxx:50
std::unique_ptr< weld::RadioButton > m_xBtnLiteral
Definition: tpcalc.hxx:58