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