1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 .
22 #include <sfx2/tabdlg.hxx>
23 #include "editfield.hxx"
24 #include <com/sun/star/configuration/ReadWriteAccess.hpp>
25 #include <com/sun/star/beans/PropertyAttribute.hpp>
29 class ScTpCalcOptions
: public SfxTabPage
32 ScTpCalcOptions(weld::Container
* pPage
, weld::DialogController
* pController
, const SfxItemSet
& rCoreSet
);
33 static std::unique_ptr
<SfxTabPage
> Create(weld::Container
* pPage
, weld::DialogController
* pController
, const SfxItemSet
* rCoreSet
);
34 virtual ~ScTpCalcOptions() override
;
36 virtual OUString
GetAllStrings() override
;
38 virtual bool FillItemSet ( SfxItemSet
* rCoreSet
) override
;
39 virtual void Reset ( const SfxItemSet
* rCoreSet
) override
;
40 virtual DeactivateRC
DeactivatePage ( SfxItemSet
* pSet
) override
;
43 css::uno::Reference
<css::configuration::XReadWriteAccess
> m_xReadWriteAccess
;
45 std::unique_ptr
<ScDocOptions
> pOldOptions
;
46 std::unique_ptr
<ScDocOptions
> pLocalOptions
;
48 std::unique_ptr
<weld::CheckButton
> m_xBtnIterate
;
49 std::unique_ptr
<weld::Widget
> m_xBtnIterateImg
;
50 std::unique_ptr
<weld::Label
> m_xFtSteps
;
51 std::unique_ptr
<weld::SpinButton
> m_xEdSteps
;
52 std::unique_ptr
<weld::Widget
> m_xEdStepsImg
;
53 std::unique_ptr
<weld::Label
> m_xFtEps
;
54 std::unique_ptr
<ScDoubleField
> m_xEdEps
;
55 std::unique_ptr
<weld::Widget
> m_xEdEpsImg
;
57 std::unique_ptr
<weld::RadioButton
> m_xBtnDateStd
;
58 std::unique_ptr
<weld::RadioButton
> m_xBtnDateSc10
;
59 std::unique_ptr
<weld::RadioButton
> m_xBtnDate1904
;
60 std::unique_ptr
<weld::Widget
> m_xDateImg
;
62 std::unique_ptr
<weld::CheckButton
> m_xBtnCase
;
63 std::unique_ptr
<weld::Widget
> m_xBtnCaseImg
;
64 std::unique_ptr
<weld::CheckButton
> m_xBtnCalc
;
65 std::unique_ptr
<weld::Widget
> m_xBtnCalcImg
;
66 std::unique_ptr
<weld::CheckButton
> m_xBtnMatch
;
67 std::unique_ptr
<weld::Widget
> m_xBtnMatchImg
;
68 std::unique_ptr
<weld::RadioButton
> m_xBtnWildcards
;
69 std::unique_ptr
<weld::RadioButton
> m_xBtnRegex
;
70 std::unique_ptr
<weld::RadioButton
> m_xBtnLiteral
;
71 std::unique_ptr
<weld::Widget
> m_xFormulaImg
;
72 std::unique_ptr
<weld::CheckButton
> m_xBtnLookUp
;
73 std::unique_ptr
<weld::Widget
> m_xBtnLookUpImg
;
74 std::unique_ptr
<weld::CheckButton
> m_xBtnGeneralPrec
;
75 std::unique_ptr
<weld::Widget
> m_xBtnGeneralPrecImg
;
77 std::unique_ptr
<weld::Label
> m_xFtPrec
;
78 std::unique_ptr
<weld::SpinButton
> m_xEdPrec
;
79 std::unique_ptr
<weld::Widget
> m_xEdPrecImg
;
81 std::unique_ptr
<weld::CheckButton
> m_xBtnThread
;
82 std::unique_ptr
<weld::Widget
> m_xBtnThreadImg
;
88 DECL_LINK( RadioClickHdl
, weld::Toggleable
&, void );
89 DECL_LINK( CheckClickHdl
, weld::Toggleable
&, void );
92 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */