update dev300-m58
[ooovba.git] / sc / source / ui / inc / condfrmt.hxx
blobbd663d38e55eb6585eab4a1a77114c44bea592e2
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: condfrmt.hxx,v $
10 * $Revision: 1.6 $
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>
40 class ScDocument;
41 class ScConditionalFormat;
44 //============================================================================
45 // class ScConditionalFormat
47 // Dialog zum Festlegen von bedingten Formaten
49 class ScConditionalFormatDlg : public ScAnyRefDlg
51 public:
52 ScConditionalFormatDlg( SfxBindings* pB, SfxChildWindow* pCW, Window* pParent,
53 ScDocument* pCurDoc,
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();
61 virtual BOOL Close();
63 private:
64 CheckBox aCbxCond1;
65 ListBox aLbCond11;
66 ListBox aLbCond12;
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;
74 PushButton aBtnNew1;
75 FixedLine aFlSep1;
77 CheckBox aCbxCond2;
78 ListBox aLbCond21;
79 ListBox aLbCond22;
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;
87 PushButton aBtnNew2;
88 FixedLine aFlSep2;
90 CheckBox aCbxCond3;
91 ListBox aLbCond31;
92 ListBox aLbCond32;
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;
100 PushButton aBtnNew3;
102 OKButton aBtnOk;
103 CancelButton aBtnCancel;
104 HelpButton aBtnHelp;
106 Point aCond1Pos1;
107 Point aCond1Pos2;
108 Point aRBtn1Pos1;
109 Point aRBtn1Pos2;
110 Size aCond1Size1;
111 Size aCond1Size2;
112 Size aCond1Size3;
114 Point aCond2Pos1;
115 Point aCond2Pos2;
116 Point aRBtn2Pos1;
117 Point aRBtn2Pos2;
118 Size aCond2Size1;
119 Size aCond2Size2;
120 Size aCond2Size3;
122 Point aCond3Pos1;
123 Point aCond3Pos2;
124 Point aRBtn3Pos1;
125 Point aRBtn3Pos2;
126 Size aCond3Size1;
127 Size aCond3Size2;
128 Size aCond3Size3;
130 formula::RefEdit* pEdActive;
131 BOOL bDlgLostFocus;
132 ScDocument* pDoc;
134 #ifdef _CONDFRMT_CXX
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_