xref: /AOO41X/main/sc/source/ui/inc/tpcalc.hxx (revision 38d50f7b14e1cf975d8c6468d9633894cd59b523)
1*38d50f7bSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*38d50f7bSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*38d50f7bSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*38d50f7bSAndrew Rist  * distributed with this work for additional information
6*38d50f7bSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*38d50f7bSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*38d50f7bSAndrew Rist  * "License"); you may not use this file except in compliance
9*38d50f7bSAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
11*38d50f7bSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
13*38d50f7bSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*38d50f7bSAndrew Rist  * software distributed under the License is distributed on an
15*38d50f7bSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*38d50f7bSAndrew Rist  * KIND, either express or implied.  See the License for the
17*38d50f7bSAndrew Rist  * specific language governing permissions and limitations
18*38d50f7bSAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
20*38d50f7bSAndrew Rist  *************************************************************/
21*38d50f7bSAndrew Rist 
22*38d50f7bSAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef SC_TPCALC_HXX
25cdf0e10cSrcweir #define SC_TPCALC_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir 
28cdf0e10cSrcweir #include <sfx2/tabdlg.hxx>
29cdf0e10cSrcweir #include <vcl/fixed.hxx>
30cdf0e10cSrcweir #include <vcl/field.hxx>
31cdf0e10cSrcweir #include <vcl/group.hxx>
32cdf0e10cSrcweir #include <svtools/stdctrl.hxx>
33cdf0e10cSrcweir #include "editfield.hxx"
34cdf0e10cSrcweir 
35cdf0e10cSrcweir //===================================================================
36cdf0e10cSrcweir 
37cdf0e10cSrcweir class ScDocOptions;
38cdf0e10cSrcweir 
39cdf0e10cSrcweir class ScTpCalcOptions : public SfxTabPage
40cdf0e10cSrcweir {
41cdf0e10cSrcweir public:
42cdf0e10cSrcweir     static  SfxTabPage* Create          ( Window*               pParent,
43cdf0e10cSrcweir                                           const SfxItemSet&     rCoreSet );
44cdf0e10cSrcweir     static  sal_uInt16*     GetRanges       ();
45cdf0e10cSrcweir     virtual sal_Bool        FillItemSet     ( SfxItemSet& rCoreSet );
46cdf0e10cSrcweir     virtual void        Reset           ( const SfxItemSet& rCoreSet );
47cdf0e10cSrcweir     using SfxTabPage::DeactivatePage;
48cdf0e10cSrcweir     virtual int         DeactivatePage  ( SfxItemSet* pSet = NULL );
49cdf0e10cSrcweir 
50cdf0e10cSrcweir private:
51cdf0e10cSrcweir                 ScTpCalcOptions( Window*            pParent,
52cdf0e10cSrcweir                                  const SfxItemSet&  rCoreSet );
53cdf0e10cSrcweir                 ~ScTpCalcOptions();
54cdf0e10cSrcweir 
55cdf0e10cSrcweir private:
56cdf0e10cSrcweir     FixedLine       aGbZRefs;
57cdf0e10cSrcweir     CheckBox        aBtnIterate;
58cdf0e10cSrcweir     FixedText       aFtSteps;
59cdf0e10cSrcweir     NumericField    aEdSteps;
60cdf0e10cSrcweir     FixedText       aFtEps;
61cdf0e10cSrcweir     ScDoubleField   aEdEps;
62cdf0e10cSrcweir 
63cdf0e10cSrcweir     FixedLine       aSeparatorFL;
64cdf0e10cSrcweir     FixedLine       aGbDate;
65cdf0e10cSrcweir     RadioButton     aBtnDateStd;
66cdf0e10cSrcweir     RadioButton     aBtnDateSc10;
67cdf0e10cSrcweir     RadioButton     aBtnDate1904;
68cdf0e10cSrcweir 
69cdf0e10cSrcweir     FixedLine       aHSeparatorFL;
70cdf0e10cSrcweir     CheckBox        aBtnCase;
71cdf0e10cSrcweir     CheckBox        aBtnCalc;
72cdf0e10cSrcweir     CheckBox        aBtnMatch;
73cdf0e10cSrcweir     CheckBox        aBtnRegex;
74cdf0e10cSrcweir     CheckBox        aBtnLookUp;
75cdf0e10cSrcweir     CheckBox        aBtnGeneralPrec;
76cdf0e10cSrcweir 
77cdf0e10cSrcweir     FixedText       aFtPrec;
78cdf0e10cSrcweir     NumericField    aEdPrec;
79cdf0e10cSrcweir 
80cdf0e10cSrcweir     ScDocOptions*   pOldOptions;
81cdf0e10cSrcweir     ScDocOptions*   pLocalOptions;
82cdf0e10cSrcweir     sal_uInt16          nWhichCalc;
83cdf0e10cSrcweir 
84cdf0e10cSrcweir #ifdef _TPCALC_CXX
85cdf0e10cSrcweir private:
86cdf0e10cSrcweir     void            Init();
87cdf0e10cSrcweir 
88cdf0e10cSrcweir     //------------------------------------
89cdf0e10cSrcweir     // Handler:
90cdf0e10cSrcweir     DECL_LINK( RadioClickHdl, RadioButton* );
91cdf0e10cSrcweir     DECL_LINK( CheckClickHdl, CheckBox* );
92cdf0e10cSrcweir 
93cdf0e10cSrcweir #endif
94cdf0e10cSrcweir };
95cdf0e10cSrcweir 
96cdf0e10cSrcweir 
97cdf0e10cSrcweir #endif
98cdf0e10cSrcweir 
99