xref: /aoo41x/main/sc/source/ui/inc/condfrmt.hxx (revision 38d50f7b)
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
10*38d50f7bSAndrew Rist  *
11*38d50f7bSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*38d50f7bSAndrew Rist  *
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.
19*38d50f7bSAndrew Rist  *
20*38d50f7bSAndrew Rist  *************************************************************/
21*38d50f7bSAndrew Rist 
22*38d50f7bSAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir 
25cdf0e10cSrcweir #ifndef SC_CONDFRMT_HXX_
26cdf0e10cSrcweir #define SC_CONDFRMT_HXX_
27cdf0e10cSrcweir 
28cdf0e10cSrcweir #include "anyrefdg.hxx"
29cdf0e10cSrcweir #include <vcl/fixed.hxx>
30cdf0e10cSrcweir #include <vcl/lstbox.hxx>
31cdf0e10cSrcweir 
32cdf0e10cSrcweir 
33cdf0e10cSrcweir class ScDocument;
34cdf0e10cSrcweir class ScConditionalFormat;
35cdf0e10cSrcweir 
36cdf0e10cSrcweir 
37cdf0e10cSrcweir //============================================================================
38cdf0e10cSrcweir //	class ScConditionalFormat
39cdf0e10cSrcweir //
40cdf0e10cSrcweir // Dialog zum Festlegen von bedingten Formaten
41cdf0e10cSrcweir 
42cdf0e10cSrcweir class ScConditionalFormatDlg : public ScAnyRefDlg
43cdf0e10cSrcweir {
44cdf0e10cSrcweir public:
45cdf0e10cSrcweir 					ScConditionalFormatDlg( SfxBindings* pB, SfxChildWindow* pCW, Window* pParent,
46cdf0e10cSrcweir 											ScDocument* pCurDoc,
47cdf0e10cSrcweir 											const ScConditionalFormat* pCurrentFormat );
48cdf0e10cSrcweir 					~ScConditionalFormatDlg();
49cdf0e10cSrcweir 
50cdf0e10cSrcweir 	virtual void	SetReference( const ScRange& rRef, ScDocument* pDoc );
51cdf0e10cSrcweir 	virtual void	AddRefEntry();
52cdf0e10cSrcweir     virtual sal_Bool    IsRefInputMode() const;
53cdf0e10cSrcweir 	virtual void	SetActive();
54cdf0e10cSrcweir 	virtual sal_Bool	Close();
55cdf0e10cSrcweir 
56cdf0e10cSrcweir private:
57cdf0e10cSrcweir 	CheckBox			aCbxCond1;
58cdf0e10cSrcweir 	ListBox				aLbCond11;
59cdf0e10cSrcweir 	ListBox				aLbCond12;
60cdf0e10cSrcweir 	formula::RefEdit			aEdtCond11;
61cdf0e10cSrcweir 	formula::RefButton			aRbCond11;
62cdf0e10cSrcweir 	FixedText			aFtCond1And;
63cdf0e10cSrcweir 	formula::RefEdit			aEdtCond12;
64cdf0e10cSrcweir 	formula::RefButton			aRbCond12;
65cdf0e10cSrcweir 	FixedText			aFtCond1Template;
66cdf0e10cSrcweir 	ListBox				aLbCond1Template;
67cdf0e10cSrcweir     PushButton          aBtnNew1;
68cdf0e10cSrcweir     CheckBox            aCbxCond2;
69cdf0e10cSrcweir 	ListBox				aLbCond21;
70cdf0e10cSrcweir 	ListBox				aLbCond22;
71cdf0e10cSrcweir 	formula::RefEdit			aEdtCond21;
72cdf0e10cSrcweir 	formula::RefButton			aRbCond21;
73cdf0e10cSrcweir 	FixedText			aFtCond2And;
74cdf0e10cSrcweir 	formula::RefEdit			aEdtCond22;
75cdf0e10cSrcweir 	formula::RefButton			aRbCond22;
76cdf0e10cSrcweir 	FixedText			aFtCond2Template;
77cdf0e10cSrcweir 	ListBox				aLbCond2Template;
78cdf0e10cSrcweir     PushButton          aBtnNew2;
79cdf0e10cSrcweir 	CheckBox			aCbxCond3;
80cdf0e10cSrcweir 	ListBox				aLbCond31;
81cdf0e10cSrcweir 	ListBox				aLbCond32;
82cdf0e10cSrcweir 	formula::RefEdit			aEdtCond31;
83cdf0e10cSrcweir 	formula::RefButton			aRbCond31;
84cdf0e10cSrcweir 	FixedText			aFtCond3And;
85cdf0e10cSrcweir 	formula::RefEdit			aEdtCond32;
86cdf0e10cSrcweir 	formula::RefButton			aRbCond32;
87cdf0e10cSrcweir 	FixedText			aFtCond3Template;
88cdf0e10cSrcweir 	ListBox				aLbCond3Template;
89cdf0e10cSrcweir     PushButton          aBtnNew3;
90cdf0e10cSrcweir 
91cdf0e10cSrcweir 	OKButton			aBtnOk;
92cdf0e10cSrcweir 	CancelButton		aBtnCancel;
93cdf0e10cSrcweir 	HelpButton			aBtnHelp;
94cdf0e10cSrcweir 
95cdf0e10cSrcweir 	Point				aCond1Pos1;
96cdf0e10cSrcweir 	Point				aCond1Pos2;
97cdf0e10cSrcweir 	Point				aRBtn1Pos1;
98cdf0e10cSrcweir 	Point				aRBtn1Pos2;
99cdf0e10cSrcweir 	Size				aCond1Size1;
100cdf0e10cSrcweir 	Size				aCond1Size2;
101cdf0e10cSrcweir 	Size				aCond1Size3;
102cdf0e10cSrcweir 
103cdf0e10cSrcweir 	Point				aCond2Pos1;
104cdf0e10cSrcweir 	Point				aCond2Pos2;
105cdf0e10cSrcweir 	Point				aRBtn2Pos1;
106cdf0e10cSrcweir 	Point				aRBtn2Pos2;
107cdf0e10cSrcweir 	Size				aCond2Size1;
108cdf0e10cSrcweir 	Size				aCond2Size2;
109cdf0e10cSrcweir 	Size				aCond2Size3;
110cdf0e10cSrcweir 
111cdf0e10cSrcweir 	Point				aCond3Pos1;
112cdf0e10cSrcweir 	Point				aCond3Pos2;
113cdf0e10cSrcweir 	Point				aRBtn3Pos1;
114cdf0e10cSrcweir 	Point				aRBtn3Pos2;
115cdf0e10cSrcweir 	Size				aCond3Size1;
116cdf0e10cSrcweir 	Size				aCond3Size2;
117cdf0e10cSrcweir 	Size				aCond3Size3;
118cdf0e10cSrcweir 	FixedLine           aFlSep2;
119cdf0e10cSrcweir 	FixedLine           aFlSep1;
120cdf0e10cSrcweir 	formula::RefEdit*			pEdActive;
121cdf0e10cSrcweir 	sal_Bool				bDlgLostFocus;
122cdf0e10cSrcweir 	ScDocument*			pDoc;
123cdf0e10cSrcweir 
124cdf0e10cSrcweir #ifdef _CONDFRMT_CXX
125cdf0e10cSrcweir 	void	GetConditionalFormat( ScConditionalFormat& rCndFmt );
126cdf0e10cSrcweir 
127cdf0e10cSrcweir 	DECL_LINK( ClickCond1Hdl, void * );
128cdf0e10cSrcweir 	DECL_LINK( ChangeCond11Hdl, void * );
129cdf0e10cSrcweir 	DECL_LINK( ChangeCond12Hdl, void * );
130cdf0e10cSrcweir 
131cdf0e10cSrcweir 	DECL_LINK( ClickCond2Hdl, void * );
132cdf0e10cSrcweir 	DECL_LINK( ChangeCond21Hdl, void * );
133cdf0e10cSrcweir 	DECL_LINK( ChangeCond22Hdl, void * );
134cdf0e10cSrcweir 
135cdf0e10cSrcweir 	DECL_LINK( ClickCond3Hdl, void * );
136cdf0e10cSrcweir 	DECL_LINK( ChangeCond31Hdl, void * );
137cdf0e10cSrcweir 	DECL_LINK( ChangeCond32Hdl, void * );
138cdf0e10cSrcweir 
139cdf0e10cSrcweir     DECL_LINK( GetFocusHdl, Control* );
140cdf0e10cSrcweir     DECL_LINK( LoseFocusHdl, Control* );
141cdf0e10cSrcweir 	DECL_LINK( BtnHdl, PushButton* );
142cdf0e10cSrcweir     DECL_LINK( NewBtnHdl, PushButton* );
143cdf0e10cSrcweir #endif // _CONDFRMT_CXX
144cdf0e10cSrcweir };
145cdf0e10cSrcweir 
146cdf0e10cSrcweir #endif // SC_CONDFRMT_HXX_
147cdf0e10cSrcweir 
148cdf0e10cSrcweir 
149