LibreOffice Module sc (master)  1
tabopdlg.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
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 .
18  */
19 
20 #ifndef INCLUDED_SC_SOURCE_UI_INC_TABOPDLG_HXX
21 #define INCLUDED_SC_SOURCE_UI_INC_TABOPDLG_HXX
22 
23 #include <address.hxx>
24 #include "anyrefdg.hxx"
25 
27 {
35 };
36 
38 {
39 public:
41  ScDocument* pDocument,
42  const ScRefAddress& rCursorPos);
43  virtual ~ScTabOpDlg() override;
44 
45  virtual void SetReference( const ScRange& rRef, ScDocument& rDoc ) override;
46  virtual bool IsRefInputMode() const override { return true; }
47  virtual void SetActive() override;
48 
49  virtual void Close() override;
50 
51 private:
56 
58  const SCTAB nCurTab;
60  const OUString errMsgNoFormula;
61  const OUString errMsgNoColRow;
62  const OUString errMsgWrongFormula;
63  const OUString errMsgWrongRowCol;
64  const OUString errMsgNoColFormula;
65  const OUString errMsgNoRowFormula;
66 
68  std::unique_ptr<weld::Label> m_xFtFormulaRange;
69  std::unique_ptr<formula::RefEdit> m_xEdFormulaRange;
70  std::unique_ptr<formula::RefButton> m_xRBFormulaRange;
71 
72  std::unique_ptr<weld::Label> m_xFtRowCell;
73  std::unique_ptr<formula::RefEdit> m_xEdRowCell;
74  std::unique_ptr<formula::RefButton> m_xRBRowCell;
75 
76  std::unique_ptr<weld::Label> m_xFtColCell;
77  std::unique_ptr<formula::RefEdit> m_xEdColCell;
78  std::unique_ptr<formula::RefButton> m_xRBColCell;
79 
80  std::unique_ptr<weld::Button> m_xBtnOk;
81  std::unique_ptr<weld::Button> m_xBtnCancel;
82 
83  void Init();
84  void RaiseError( ScTabOpErr eError );
85 
86  DECL_LINK( BtnHdl, weld::Button&, void );
87  DECL_LINK( GetEditFocusHdl, formula::RefEdit&, void );
88  DECL_LINK( LoseEditFocusHdl, formula::RefEdit&, void );
89  DECL_LINK( GetButtonFocusHdl, formula::RefButton&, void );
90  DECL_LINK( LoseButtonFocusHdl, formula::RefButton&, void );
91 
92 };
93 
94 #endif // INCLUDED_SC_SOURCE_UI_INC_TABOPDLG_HXX
95 
96 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ScDocument * pDoc
Definition: tabopdlg.hxx:57
ScRefAddress theRowCell
Definition: tabopdlg.hxx:54
ScTabOpDlg(SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pParent, ScDocument *pDocument, const ScRefAddress &rCursorPos)
Definition: tabopdlg.cxx:34
const OUString errMsgWrongFormula
Definition: tabopdlg.hxx:62
virtual void SetReference(const ScRange &rRef, ScDocument &rDoc) override
Definition: tabopdlg.cxx:126
bool bDlgLostFocus
Definition: tabopdlg.hxx:59
std::unique_ptr< formula::RefButton > m_xRBFormulaRange
Definition: tabopdlg.hxx:70
formula::RefEdit * m_pEdActive
Definition: tabopdlg.hxx:67
std::unique_ptr< weld::Button > m_xBtnCancel
Definition: tabopdlg.hxx:81
ScRefAddress theColCell
Definition: tabopdlg.hxx:55
std::unique_ptr< formula::RefEdit > m_xEdFormulaRange
Definition: tabopdlg.hxx:69
ScTabOpErr
Definition: tabopdlg.hxx:26
std::unique_ptr< weld::Label > m_xFtRowCell
Definition: tabopdlg.hxx:72
void RaiseError(ScTabOpErr eError)
Definition: tabopdlg.cxx:161
std::unique_ptr< weld::Label > m_xFtFormulaRange
Definition: tabopdlg.hxx:68
ScRefAddress theFormulaCell
Definition: tabopdlg.hxx:52
std::unique_ptr< weld::Button > m_xBtnOk
Definition: tabopdlg.hxx:80
const OUString errMsgNoRowFormula
Definition: tabopdlg.hxx:65
virtual void Close() override
Definition: tabopdlg.cxx:107
const OUString errMsgNoColRow
Definition: tabopdlg.hxx:61
const SCTAB nCurTab
Definition: tabopdlg.hxx:58
DECL_LINK(BtnHdl, weld::Button &, void)
virtual bool IsRefInputMode() const override
Definition: tabopdlg.hxx:46
std::unique_ptr< formula::RefEdit > m_xEdRowCell
Definition: tabopdlg.hxx:73
std::unique_ptr< formula::RefButton > m_xRBRowCell
Definition: tabopdlg.hxx:74
std::unique_ptr< weld::Label > m_xFtColCell
Definition: tabopdlg.hxx:76
const OUString errMsgNoFormula
Definition: tabopdlg.hxx:60
virtual ~ScTabOpDlg() override
Definition: tabopdlg.cxx:74
const OUString errMsgNoColFormula
Definition: tabopdlg.hxx:64
std::unique_ptr< formula::RefButton > m_xRBColCell
Definition: tabopdlg.hxx:78
std::unique_ptr< formula::RefEdit > m_xEdColCell
Definition: tabopdlg.hxx:77
void Init()
Definition: tabopdlg.cxx:78
virtual void SetActive() override
Definition: tabopdlg.cxx:112
const OUString errMsgWrongRowCol
Definition: tabopdlg.hxx:63
sal_Int16 SCTAB
Definition: types.hxx:23
ScRefAddress theFormulaEnd
Definition: tabopdlg.hxx:53