xref: /aoo4110/main/sc/source/ui/inc/highred.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_HIGHRED_HXX
25 #define SC_HIGHRED_HXX
26 
27 #ifndef _MOREBTN_HXX //autogen
28 #include <vcl/morebtn.hxx>
29 #endif
30 #ifndef _COMBOBOX_HXX //autogen
31 #include <vcl/combobox.hxx>
32 #endif
33 #ifndef _GROUP_HXX //autogen
34 #include <vcl/group.hxx>
35 #endif
36 #include <svtools/headbar.hxx>
37 #include <svtools/svtabbx.hxx>
38 
39 
40 #include "rangenam.hxx"
41 #include "anyrefdg.hxx"
42 
43 #ifndef _MOREBTN_HXX //autogen
44 #include <vcl/morebtn.hxx>
45 #endif
46 #include <vcl/lstbox.hxx>
47 
48 #ifndef _SVX_ACREDLIN_HXX
49 #include <svx/ctredlin.hxx>
50 #endif
51 #include <svx/simptabl.hxx>
52 #include "chgtrack.hxx"
53 #include "chgviset.hxx"
54 
55 class ScViewData;
56 class ScDocument;
57 
58 #ifndef	FLT_DATE_BEFORE
59 #define FLT_DATE_BEFORE		0
60 #define FLT_DATE_SINCE		1
61 #define FLT_DATE_EQUAL		2
62 #define FLT_DATE_NOTEQUAL	3
63 #define FLT_DATE_BETWEEN	4
64 #define FLT_DATE_SAVE		5
65 #endif
66 
67 //==================================================================
68 
69 class ScHighlightChgDlg : public ScAnyRefDlg
70 {
71 private:
72 
73 	CheckBox				aHighlightBox;
74     FixedLine               aFlFilter;
75 	SvxTPFilter			 	aFilterCtr;
76 	CheckBox				aCbAccept;
77 	CheckBox				aCbReject;
78 
79 	OKButton				aOkButton;
80 	CancelButton			aCancelButton;
81 	HelpButton				aHelpButton;
82 
83 	formula::RefEdit				aEdAssign;
84 	formula::RefButton				aRbAssign;
85 
86 	ScViewData*				pViewData;
87 	ScDocument*				pDoc;
88 	ScRangeName				aLocalRangeName;
89 	Selection				theCurSel;
90 	Size					MinSize;
91 	ScRangeList				aRangeList;
92 	ScChangeViewSettings	aChangeViewSet;
93 
94 	void					Init();
95 
96 	DECL_LINK( RefHandle, SvxTPFilter* );
97 	DECL_LINK(HighLightHandle, CheckBox*);
98 	DECL_LINK(OKBtnHdl, PushButton*);
99 
100 
101 protected:
102 
103 	virtual void	RefInputDone( sal_Bool bForced = sal_False );
104 
105 public:
106 					ScHighlightChgDlg( SfxBindings* pB, SfxChildWindow* pCW, Window* pParent,
107 							   ScViewData*		ptrViewData);
108 
109 					~ScHighlightChgDlg();
110 
111 	virtual void	SetActive();
112 	virtual void	SetReference( const ScRange& rRef, ScDocument* pDoc );
113 	virtual sal_Bool	Close();
114 	virtual sal_Bool	IsRefInputMode() const;
115 
116 };
117 
118 
119 #endif // SC_NAMEDLG_HXX
120 
121