1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: condfrmt.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
32 #ifndef SC_CONDFRMT_HXX_
33 #define SC_CONDFRMT_HXX_
35 #include "anyrefdg.hxx"
36 #include <vcl/fixed.hxx>
37 #include <vcl/lstbox.hxx>
41 class ScConditionalFormat
;
44 //============================================================================
45 // class ScConditionalFormat
47 // Dialog zum Festlegen von bedingten Formaten
49 class ScConditionalFormatDlg
: public ScAnyRefDlg
52 ScConditionalFormatDlg( SfxBindings
* pB
, SfxChildWindow
* pCW
, Window
* pParent
,
54 const ScConditionalFormat
* pCurrentFormat
);
55 ~ScConditionalFormatDlg();
57 virtual void SetReference( const ScRange
& rRef
, ScDocument
* pDoc
);
58 virtual void AddRefEntry();
59 virtual BOOL
IsRefInputMode() const;
60 virtual void SetActive();
67 formula::RefEdit aEdtCond11
;
68 formula::RefButton aRbCond11
;
69 FixedText aFtCond1And
;
70 formula::RefEdit aEdtCond12
;
71 formula::RefButton aRbCond12
;
72 FixedText aFtCond1Template
;
73 ListBox aLbCond1Template
;
80 formula::RefEdit aEdtCond21
;
81 formula::RefButton aRbCond21
;
82 FixedText aFtCond2And
;
83 formula::RefEdit aEdtCond22
;
84 formula::RefButton aRbCond22
;
85 FixedText aFtCond2Template
;
86 ListBox aLbCond2Template
;
93 formula::RefEdit aEdtCond31
;
94 formula::RefButton aRbCond31
;
95 FixedText aFtCond3And
;
96 formula::RefEdit aEdtCond32
;
97 formula::RefButton aRbCond32
;
98 FixedText aFtCond3Template
;
99 ListBox aLbCond3Template
;
103 CancelButton aBtnCancel
;
130 formula::RefEdit
* pEdActive
;
135 void GetConditionalFormat( ScConditionalFormat
& rCndFmt
);
137 DECL_LINK( ClickCond1Hdl
, void * );
138 DECL_LINK( ChangeCond11Hdl
, void * );
139 DECL_LINK( ChangeCond12Hdl
, void * );
141 DECL_LINK( ClickCond2Hdl
, void * );
142 DECL_LINK( ChangeCond21Hdl
, void * );
143 DECL_LINK( ChangeCond22Hdl
, void * );
145 DECL_LINK( ClickCond3Hdl
, void * );
146 DECL_LINK( ChangeCond31Hdl
, void * );
147 DECL_LINK( ChangeCond32Hdl
, void * );
149 DECL_LINK( GetFocusHdl
, Control
* );
150 DECL_LINK( LoseFocusHdl
, Control
* );
151 DECL_LINK( BtnHdl
, PushButton
* );
152 DECL_LINK( NewBtnHdl
, PushButton
* );
153 #endif // _CONDFRMT_CXX
156 #endif // SC_CONDFRMT_HXX_