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