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