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: tabopdlg.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 ************************************************************************/
31 #ifndef SC_TABOPDLG_HXX
32 #define SC_TABOPDLG_HXX
34 #include <vcl/fixed.hxx>
35 #include <vcl/group.hxx>
37 #include "address.hxx"
38 #include "anyrefdg.hxx"
41 //------------------------------------------------------------------------
45 TABOPERR_NOFORMULA
= 1,
47 TABOPERR_WRONGFORMULA
,
49 TABOPERR_NOCOLFORMULA
,
54 //========================================================================
56 class ScTabOpDlg
: public ScAnyRefDlg
59 ScTabOpDlg( SfxBindings
* pB
, SfxChildWindow
* pCW
, Window
* pParent
,
60 ScDocument
* pDocument
,
61 const ScRefAddress
& rCursorPos
);
64 virtual void SetReference( const ScRange
& rRef
, ScDocument
* pDoc
);
65 virtual BOOL
IsRefInputMode() const { return TRUE
; }
66 virtual void SetActive();
71 FixedLine aFlVariables
;
72 FixedText aFtFormulaRange
;
73 formula::RefEdit aEdFormulaRange
;
74 formula::RefButton aRBFormulaRange
;
77 formula::RefEdit aEdRowCell
;
78 formula::RefButton aRBRowCell
;
81 formula::RefEdit aEdColCell
;
82 formula::RefButton aRBColCell
;
85 CancelButton aBtnCancel
;
88 ScRefAddress theFormulaCell
;
89 ScRefAddress theFormulaEnd
;
90 ScRefAddress theRowCell
;
91 ScRefAddress theColCell
;
95 formula::RefEdit
* pEdActive
;
97 const String errMsgNoFormula
;
98 const String errMsgNoColRow
;
99 const String errMsgWrongFormula
;
100 const String errMsgWrongRowCol
;
101 const String errMsgNoColFormula
;
102 const String errMsgNoRowFormula
;
106 void RaiseError( ScTabOpErr eError
);
108 DECL_LINK( BtnHdl
, PushButton
* );
109 DECL_LINK( GetFocusHdl
, Control
* );
110 DECL_LINK( LoseFocusHdl
, Control
* );
111 #endif // _TABOPDLG_CXX
114 #endif // SC_TABOPDLG_HXX