Stop leaking all ScPostIt instances.
[LibreOffice.git] / sc / source / ui / inc / tabopdlg.hxx
bloba29fb25dc735ea5c471dbffa1e823ddd71cdd991
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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>
25 #include "global.hxx"
26 #include "address.hxx"
27 #include "anyrefdg.hxx"
30 //------------------------------------------------------------------------
32 enum ScTabOpErr
34 TABOPERR_NOFORMULA = 1,
35 TABOPERR_NOCOLROW,
36 TABOPERR_WRONGFORMULA,
37 TABOPERR_WRONGROW,
38 TABOPERR_NOCOLFORMULA,
39 TABOPERR_WRONGCOL,
40 TABOPERR_NOROWFORMULA
43 //========================================================================
45 class ScTabOpDlg : public ScAnyRefDlg
47 public:
48 ScTabOpDlg( SfxBindings* pB, SfxChildWindow* pCW, Window* pParent,
49 ScDocument* pDocument,
50 const ScRefAddress& rCursorPos );
51 ~ScTabOpDlg();
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();
59 private:
60 FixedLine aFlVariables;
61 FixedText aFtFormulaRange;
62 formula::RefEdit aEdFormulaRange;
63 formula::RefButton aRBFormulaRange;
65 FixedText aFtRowCell;
66 formula::RefEdit aEdRowCell;
67 formula::RefButton aRBRowCell;
69 FixedText aFtColCell;
70 formula::RefEdit aEdColCell;
71 formula::RefButton aRBColCell;
73 OKButton aBtnOk;
74 CancelButton aBtnCancel;
75 HelpButton aBtnHelp;
77 ScRefAddress theFormulaCell;
78 ScRefAddress theFormulaEnd;
79 ScRefAddress theRowCell;
80 ScRefAddress theColCell;
82 ScDocument* pDoc;
83 const SCTAB nCurTab;
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;
93 #ifdef _TABOPDLG_CXX
94 void Init();
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: */