1*cdf0e10cSrcweir /************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir 28*cdf0e10cSrcweir 29*cdf0e10cSrcweir #ifndef SC_CONDFRMT_HXX_ 30*cdf0e10cSrcweir #define SC_CONDFRMT_HXX_ 31*cdf0e10cSrcweir 32*cdf0e10cSrcweir #include "anyrefdg.hxx" 33*cdf0e10cSrcweir #include <vcl/fixed.hxx> 34*cdf0e10cSrcweir #include <vcl/lstbox.hxx> 35*cdf0e10cSrcweir 36*cdf0e10cSrcweir 37*cdf0e10cSrcweir class ScDocument; 38*cdf0e10cSrcweir class ScConditionalFormat; 39*cdf0e10cSrcweir 40*cdf0e10cSrcweir 41*cdf0e10cSrcweir //============================================================================ 42*cdf0e10cSrcweir // class ScConditionalFormat 43*cdf0e10cSrcweir // 44*cdf0e10cSrcweir // Dialog zum Festlegen von bedingten Formaten 45*cdf0e10cSrcweir 46*cdf0e10cSrcweir class ScConditionalFormatDlg : public ScAnyRefDlg 47*cdf0e10cSrcweir { 48*cdf0e10cSrcweir public: 49*cdf0e10cSrcweir ScConditionalFormatDlg( SfxBindings* pB, SfxChildWindow* pCW, Window* pParent, 50*cdf0e10cSrcweir ScDocument* pCurDoc, 51*cdf0e10cSrcweir const ScConditionalFormat* pCurrentFormat ); 52*cdf0e10cSrcweir ~ScConditionalFormatDlg(); 53*cdf0e10cSrcweir 54*cdf0e10cSrcweir virtual void SetReference( const ScRange& rRef, ScDocument* pDoc ); 55*cdf0e10cSrcweir virtual void AddRefEntry(); 56*cdf0e10cSrcweir virtual sal_Bool IsRefInputMode() const; 57*cdf0e10cSrcweir virtual void SetActive(); 58*cdf0e10cSrcweir virtual sal_Bool Close(); 59*cdf0e10cSrcweir 60*cdf0e10cSrcweir private: 61*cdf0e10cSrcweir CheckBox aCbxCond1; 62*cdf0e10cSrcweir ListBox aLbCond11; 63*cdf0e10cSrcweir ListBox aLbCond12; 64*cdf0e10cSrcweir formula::RefEdit aEdtCond11; 65*cdf0e10cSrcweir formula::RefButton aRbCond11; 66*cdf0e10cSrcweir FixedText aFtCond1And; 67*cdf0e10cSrcweir formula::RefEdit aEdtCond12; 68*cdf0e10cSrcweir formula::RefButton aRbCond12; 69*cdf0e10cSrcweir FixedText aFtCond1Template; 70*cdf0e10cSrcweir ListBox aLbCond1Template; 71*cdf0e10cSrcweir PushButton aBtnNew1; 72*cdf0e10cSrcweir CheckBox aCbxCond2; 73*cdf0e10cSrcweir ListBox aLbCond21; 74*cdf0e10cSrcweir ListBox aLbCond22; 75*cdf0e10cSrcweir formula::RefEdit aEdtCond21; 76*cdf0e10cSrcweir formula::RefButton aRbCond21; 77*cdf0e10cSrcweir FixedText aFtCond2And; 78*cdf0e10cSrcweir formula::RefEdit aEdtCond22; 79*cdf0e10cSrcweir formula::RefButton aRbCond22; 80*cdf0e10cSrcweir FixedText aFtCond2Template; 81*cdf0e10cSrcweir ListBox aLbCond2Template; 82*cdf0e10cSrcweir PushButton aBtnNew2; 83*cdf0e10cSrcweir CheckBox aCbxCond3; 84*cdf0e10cSrcweir ListBox aLbCond31; 85*cdf0e10cSrcweir ListBox aLbCond32; 86*cdf0e10cSrcweir formula::RefEdit aEdtCond31; 87*cdf0e10cSrcweir formula::RefButton aRbCond31; 88*cdf0e10cSrcweir FixedText aFtCond3And; 89*cdf0e10cSrcweir formula::RefEdit aEdtCond32; 90*cdf0e10cSrcweir formula::RefButton aRbCond32; 91*cdf0e10cSrcweir FixedText aFtCond3Template; 92*cdf0e10cSrcweir ListBox aLbCond3Template; 93*cdf0e10cSrcweir PushButton aBtnNew3; 94*cdf0e10cSrcweir 95*cdf0e10cSrcweir OKButton aBtnOk; 96*cdf0e10cSrcweir CancelButton aBtnCancel; 97*cdf0e10cSrcweir HelpButton aBtnHelp; 98*cdf0e10cSrcweir 99*cdf0e10cSrcweir Point aCond1Pos1; 100*cdf0e10cSrcweir Point aCond1Pos2; 101*cdf0e10cSrcweir Point aRBtn1Pos1; 102*cdf0e10cSrcweir Point aRBtn1Pos2; 103*cdf0e10cSrcweir Size aCond1Size1; 104*cdf0e10cSrcweir Size aCond1Size2; 105*cdf0e10cSrcweir Size aCond1Size3; 106*cdf0e10cSrcweir 107*cdf0e10cSrcweir Point aCond2Pos1; 108*cdf0e10cSrcweir Point aCond2Pos2; 109*cdf0e10cSrcweir Point aRBtn2Pos1; 110*cdf0e10cSrcweir Point aRBtn2Pos2; 111*cdf0e10cSrcweir Size aCond2Size1; 112*cdf0e10cSrcweir Size aCond2Size2; 113*cdf0e10cSrcweir Size aCond2Size3; 114*cdf0e10cSrcweir 115*cdf0e10cSrcweir Point aCond3Pos1; 116*cdf0e10cSrcweir Point aCond3Pos2; 117*cdf0e10cSrcweir Point aRBtn3Pos1; 118*cdf0e10cSrcweir Point aRBtn3Pos2; 119*cdf0e10cSrcweir Size aCond3Size1; 120*cdf0e10cSrcweir Size aCond3Size2; 121*cdf0e10cSrcweir Size aCond3Size3; 122*cdf0e10cSrcweir FixedLine aFlSep2; 123*cdf0e10cSrcweir FixedLine aFlSep1; 124*cdf0e10cSrcweir formula::RefEdit* pEdActive; 125*cdf0e10cSrcweir sal_Bool bDlgLostFocus; 126*cdf0e10cSrcweir ScDocument* pDoc; 127*cdf0e10cSrcweir 128*cdf0e10cSrcweir #ifdef _CONDFRMT_CXX 129*cdf0e10cSrcweir void GetConditionalFormat( ScConditionalFormat& rCndFmt ); 130*cdf0e10cSrcweir 131*cdf0e10cSrcweir DECL_LINK( ClickCond1Hdl, void * ); 132*cdf0e10cSrcweir DECL_LINK( ChangeCond11Hdl, void * ); 133*cdf0e10cSrcweir DECL_LINK( ChangeCond12Hdl, void * ); 134*cdf0e10cSrcweir 135*cdf0e10cSrcweir DECL_LINK( ClickCond2Hdl, void * ); 136*cdf0e10cSrcweir DECL_LINK( ChangeCond21Hdl, void * ); 137*cdf0e10cSrcweir DECL_LINK( ChangeCond22Hdl, void * ); 138*cdf0e10cSrcweir 139*cdf0e10cSrcweir DECL_LINK( ClickCond3Hdl, void * ); 140*cdf0e10cSrcweir DECL_LINK( ChangeCond31Hdl, void * ); 141*cdf0e10cSrcweir DECL_LINK( ChangeCond32Hdl, void * ); 142*cdf0e10cSrcweir 143*cdf0e10cSrcweir DECL_LINK( GetFocusHdl, Control* ); 144*cdf0e10cSrcweir DECL_LINK( LoseFocusHdl, Control* ); 145*cdf0e10cSrcweir DECL_LINK( BtnHdl, PushButton* ); 146*cdf0e10cSrcweir DECL_LINK( NewBtnHdl, PushButton* ); 147*cdf0e10cSrcweir #endif // _CONDFRMT_CXX 148*cdf0e10cSrcweir }; 149*cdf0e10cSrcweir 150*cdf0e10cSrcweir #endif // SC_CONDFRMT_HXX_ 151*cdf0e10cSrcweir 152*cdf0e10cSrcweir 153