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 .
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 //===================================================================
35 class ScTpCalcOptions
: public SfxTabPage
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
);
46 ScTpCalcOptions( Window
* pParent
,
47 const SfxItemSet
& rCoreSet
);
51 CheckBox
* m_pBtnIterate
;
52 FixedText
* m_pFtSteps
;
53 NumericField
* m_pEdSteps
;
55 ScDoubleField
* m_pEdEps
;
57 RadioButton
* m_pBtnDateStd
;
58 RadioButton
* m_pBtnDateSc10
;
59 RadioButton
* m_pBtnDate1904
;
63 CheckBox
* m_pBtnMatch
;
64 CheckBox
* m_pBtnRegex
;
65 CheckBox
* m_pBtnLookUp
;
66 CheckBox
* m_pBtnGeneralPrec
;
69 NumericField
* m_pEdPrec
;
71 ScDocOptions
* pOldOptions
;
72 ScDocOptions
* pLocalOptions
;
73 sal_uInt16 nWhichCalc
;
78 //------------------------------------
80 DECL_LINK( RadioClickHdl
, RadioButton
* );
81 DECL_LINK( CheckClickHdl
, CheckBox
* );
87 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */