1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef SC_TABOPDLG_HXX
21 #define SC_TABOPDLG_HXX
23 #include <vcl/fixed.hxx>
24 #include <vcl/group.hxx>
26 #include "address.hxx"
27 #include "anyrefdg.hxx"
30 //------------------------------------------------------------------------
34 TABOPERR_NOFORMULA
= 1,
36 TABOPERR_WRONGFORMULA
,
38 TABOPERR_NOCOLFORMULA
,
43 //========================================================================
45 class ScTabOpDlg
: public ScAnyRefDlg
48 ScTabOpDlg( SfxBindings
* pB
, SfxChildWindow
* pCW
, Window
* pParent
,
49 ScDocument
* pDocument
,
50 const ScRefAddress
& rCursorPos
);
53 virtual void SetReference( const ScRange
& rRef
, ScDocument
* pDoc
);
54 virtual sal_Bool
IsRefInputMode() const { return sal_True
; }
55 virtual void SetActive();
57 virtual sal_Bool
Close();
60 FixedLine aFlVariables
;
61 FixedText aFtFormulaRange
;
62 formula::RefEdit aEdFormulaRange
;
63 formula::RefButton aRBFormulaRange
;
66 formula::RefEdit aEdRowCell
;
67 formula::RefButton aRBRowCell
;
70 formula::RefEdit aEdColCell
;
71 formula::RefButton aRBColCell
;
74 CancelButton aBtnCancel
;
77 ScRefAddress theFormulaCell
;
78 ScRefAddress theFormulaEnd
;
79 ScRefAddress theRowCell
;
80 ScRefAddress theColCell
;
84 formula::RefEdit
* pEdActive
;
85 sal_Bool bDlgLostFocus
;
86 const OUString errMsgNoFormula
;
87 const OUString errMsgNoColRow
;
88 const OUString errMsgWrongFormula
;
89 const OUString errMsgWrongRowCol
;
90 const OUString errMsgNoColFormula
;
91 const OUString errMsgNoRowFormula
;
95 void RaiseError( ScTabOpErr eError
);
97 DECL_LINK( BtnHdl
, PushButton
* );
98 DECL_LINK( GetFocusHdl
, Control
* );
99 DECL_LINK( LoseFocusHdl
, void* );
100 #endif // _TABOPDLG_CXX
103 #endif // SC_TABOPDLG_HXX
107 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */